:root {
  --bg: #13151e;
  --bg-2: #171927;
  --panel: #1c1f30;
  --panel-2: #21263a;
  --panel-3: #272d45;
  --soft: #8892b8;
  --text: #f4f7ff;
  --muted: #b5bdd6;
  --accent: #20c997;
  --accent-2: #6c63ff;
  --border: rgba(255,255,255,0.08);
  --danger: #ff5f7d;
  --warning: #ffb020;
  --success: #29c36a;
  --shadow: 0 18px 40px rgba(0,0,0,0.34);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1520px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(32,201,151,0.12), transparent 16%),
    radial-gradient(circle at top right, rgba(108,99,255,0.18), transparent 20%),
    linear-gradient(180deg, #0f1119 0%, #121523 100%);
  min-height: 100vh;
}
body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img, video { display: block; width: 100%; max-width: 100%; }
.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(16,18,28,0.9);
  border-bottom: 1px solid var(--border);
}
.topbar-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow);
}
.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 12px 10px 16px;
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.search-form button,
.button,
.button-link {
  border: 0;
  outline: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}
.search-form button,
.button-primary {
  background: linear-gradient(135deg, var(--accent), #28e8af);
  color: #04100c;
  box-shadow: 0 12px 26px rgba(32,201,151,0.24);
}
.button-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.button-danger {
  background: rgba(255,95,125,0.12);
  color: #ffc2d0;
  border: 1px solid rgba(255,95,125,0.24);
}
.button:hover,
.search-form button:hover,
.button-link:hover {
  transform: translateY(-1px);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-actions a {
  color: var(--muted);
  font-weight: 600;
}
.top-actions a.active,
.top-actions a:hover {
  color: #fff;
}

.hero {
  padding: 28px 0 10px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 18px;
}
.hero-main,
.hero-side {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-main {
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.hero-main::after {
  content: "";
  position: absolute;
  inset: auto -60px -110px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32,201,151,0.22), transparent 60%);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 14px;
  color: #8bf0cf;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero-main h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}
.hero-main p {
  margin: 18px 0 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.7;
}
.hero-main-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-side {
  padding: 22px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}
.stat-card strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: .95rem;
}
.rec-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.rec-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.rec-list li::before {
  content: "✓";
  color: #8bf0cf;
  font-weight: 800;
}

.tag-strip {
  padding: 10px 0 20px;
}
.tag-strip-inner {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.tag-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #e5ebff;
  padding: 10px 14px;
  font-weight: 600;
  font-size: .95rem;
}
.tag-chip:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.feed-section {
  padding: 6px 0 42px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.section-title h2 {
  margin: 0;
  font-size: 1.4rem;
}
.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
}
.feed-grid {
  column-count: 6;
  column-gap: 18px;
}
.feed-card {
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.26);
}
.media-open {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.feed-media-shell {
  position: relative;
  overflow: hidden;
  background: #0d0f16;
}
.feed-image,
.feed-video {
  width: 100%;
  height: auto;
  transition: transform .3s ease;
}
.feed-card:hover .feed-image,
.feed-card:hover .feed-video {
  transform: scale(1.02);
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.18);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -3px;
  margin-right: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.feed-media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.14), transparent 20%, transparent 70%, rgba(0,0,0,0.34));
}
.feed-media-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.media-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.46);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: .78rem;
  font-weight: 700;
}
.media-badge-video {
  background: rgba(32,201,151,0.18);
}
.media-badge-featured {
  background: rgba(108,99,255,0.22);
}
.fullscreen-hint {
  align-self: flex-end;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.48);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: .8rem;
  font-weight: 700;
}
.feed-meta {
  padding: 16px 16px 18px;
}
.feed-meta h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.3;
}
.feed-meta p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: .94rem;
}
.feed-author-line {
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: .86rem;
  color: #c8d1ec;
}
.feed-author-line time {
  color: #91a0c7;
  white-space: nowrap;
}
.feed-footer {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.feed-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #d4ddfb;
  font-size: .9rem;
}
.feed-tags {
  color: #89efd0;
  font-size: .9rem;
  word-break: break-word;
}

.load-more-wrap {
  padding: 16px 0 8px;
  display: grid;
  place-items: center;
  gap: 12px;
}
.sentinel {
  width: 100%;
  height: 1px;
}
.muted-copy {
  color: var(--muted);
  text-align: center;
}

.empty-state {
  padding: 34px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  text-align: center;
}

.panel-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(14,16,25,0.92);
  backdrop-filter: blur(12px);
}
.panel-topbar .topbar-row {
  min-height: 76px;
}
.admin-layout {
  padding: 24px 0 42px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
  align-items: start;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.card-header {
  padding: 20px 22px 0;
}
.card-header h2,
.card-header h3 {
  margin: 0;
}
.card-header p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.card-body {
  padding: 22px;
}
.form-grid {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  color: #eef2ff;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 13px 14px;
  outline: 0;
}
.field textarea {
  min-height: 122px;
  resize: vertical;
}
.field small {
  color: var(--soft);
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.actions-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.flash {
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 16px;
  border: 1px solid transparent;
}
.flash-success {
  background: rgba(41,195,106,0.14);
  border-color: rgba(41,195,106,0.22);
  color: #c6f5d6;
}
.flash-error {
  background: rgba(255,95,125,0.12);
  border-color: rgba(255,95,125,0.2);
  color: #ffd4de;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}
.login-card {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 1fr 420px;
  overflow: hidden;
}
.login-copy {
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(108,99,255,0.24), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02));
}
.login-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}
.login-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.login-copy ul {
  margin: 24px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}
.login-form {
  padding: 34px;
  background: rgba(255,255,255,0.03);
}

.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  vertical-align: top;
}
.table th {
  font-size: .88rem;
  color: #9ca7cd;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.table td {
  color: #eef2ff;
}
.table .thumb-cell {
  width: 86px;
}
.table-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  background: #0b0c12;
}
.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.status-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}
.status-published {
  background: rgba(41,195,106,0.12);
  color: #c6f5d6;
}
.status-draft {
  background: rgba(255,176,32,0.12);
  color: #ffe3a8;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.metric-card strong {
  display: block;
  font-size: 1.3rem;
}
.metric-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.install-shell {
  min-height: 100vh;
  padding: 30px 0 42px;
}
.install-card {
  width: min(calc(100% - 24px), 1080px);
  margin: 0 auto;
}
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.code-note {
  background: #0c0f17;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  color: #c9d0e8;
  line-height: 1.65;
  overflow: auto;
}
.helper-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.lightbox.is-open {
  display: block;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,8,14,0.9);
  backdrop-filter: blur(8px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1040px);
  margin: 24px auto;
  border-radius: 24px;
  background: #0e1118;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lightbox-media {
  background: #090b11;
  display: grid;
  place-items: center;
  max-height: 72vh;
  overflow: hidden;
}
.lightbox-media img,
.lightbox-media video {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
}
.lightbox-meta {
  padding: 20px;
}
.lightbox-meta h3 {
  margin: 0;
  font-size: 1.16rem;
}
.lightbox-meta p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.lightbox-meta span {
  display: inline-block;
  margin-top: 12px;
  color: #9ce6cf;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(9,11,18,0.72);
  color: #fff;
  cursor: pointer;
}

.footer-note {
  padding: 12px 0 28px;
  color: var(--muted);
  text-align: center;
}
.preview-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0d14;
}
.preview-frame img,
.preview-frame video {
  display: block;
  width: 100%;
}

@media (max-width: 1500px) {
  .feed-grid { column-count: 5; }
}
@media (max-width: 1220px) {
  .hero-grid,
  .admin-grid,
  .login-card,
  .install-grid {
    grid-template-columns: 1fr;
  }
  .feed-grid { column-count: 4; }
}
@media (max-width: 960px) {
  .topbar-row {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }
  .tagline {
    display: none;
  }
  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feed-grid { column-count: 3; }
}
@media (max-width: 680px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .hero-main,
  .hero-side,
  .card,
  .login-copy,
  .login-form { border-radius: 20px; }
  .feed-grid { column-count: 2; column-gap: 14px; }
  .feed-card { margin-bottom: 14px; }
  .search-form { padding-right: 8px; }
  .search-form button { padding-inline: 14px; }
  .metric-grid,
  .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .feed-grid { column-count: 1; }
  .hero-main h1 {
    font-size: 1.85rem;
  }
}


.public-hero .hero-main h1 {
  max-width: 13ch;
}
.public-hero-side {
  display: grid;
  gap: 14px;
  align-content: start;
}
.hero-highlight-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
}
.hero-highlight-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}
.hero-highlight-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8bf0cf;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}
.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hero-mini-stats > div {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}
.hero-mini-stats strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.hero-mini-stats span {
  color: var(--muted);
  font-size: .95rem;
}

@media (max-width: 920px) {
  .top-actions .tagline {
    display: none;
  }
  .hero-mini-stats {
    grid-template-columns: 1fr;
  }
}


/* Public home refresh - more portal/community style */
:root {
  --accent: #1bb76e;
  --accent-2: #4f5dff;
  --container: 1680px;
}

body {
  background:
    radial-gradient(circle at 0% 0%, rgba(27,183,110,0.12), transparent 18%),
    radial-gradient(circle at 100% 0%, rgba(79,93,255,0.14), transparent 22%),
    linear-gradient(180deg, #121318 0%, #181a21 100%);
}

.topbar-public {
  background: rgba(24, 26, 33, 0.92);
}

.public-topbar-row {
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  min-height: 74px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-size: 1.3rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1bb76e;
  box-shadow: none;
}

.top-pill,
.top-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #dfe6f7;
}

.top-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.top-action-link:hover,
.top-pill:hover {
  background: rgba(255,255,255,0.08);
}

.public-search {
  max-width: 760px;
  margin-inline: auto;
  background: rgba(255,255,255,0.06);
}

.public-search input::placeholder {
  color: #9aa3bf;
}

.public-top-actions {
  gap: 4px;
}

.billboard {
  padding: 18px 0 14px;
}

.billboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 18px;
  align-items: stretch;
}

.billboard-copy,
.billboard-feature {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}

.billboard-copy {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.billboard-copy::after {
  content: '';
  position: absolute;
  inset: auto -10% -20% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,93,255,0.28), transparent 62%);
  pointer-events: none;
}

.billboard-kicker,
.section-kicker,
.channel-rail-header span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aeb8d3;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.billboard-copy h1 {
  margin: 10px 0 0;
  max-width: 11ch;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: .98;
}

.billboard-copy p {
  margin: 18px 0 0;
  max-width: 62ch;
  color: #c3cbe1;
  line-height: 1.75;
  font-size: 1.05rem;
}

.billboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.headline-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.headline-stats > div,
.feed-summary-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.045);
  padding: 16px 18px;
}

.headline-stats strong,
.feed-summary-card strong {
  display: block;
  font-size: 1.45rem;
}

.headline-stats span,
.feed-summary-card span {
  color: #adb8d2;
  font-size: .95rem;
}

.billboard-feature {
  padding: 12px;
}

.feature-card {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,0.12);
  color: inherit;
  cursor: pointer;
}

.feature-media {
  position: relative;
  background: #0f1117;
  min-height: 360px;
}

.feature-media img,
.feature-media video {
  width: 100%;
  height: 100%;
  max-height: 470px;
  object-fit: cover;
}

.feature-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.34), transparent 28%, transparent 68%, rgba(0,0,0,.3));
  pointer-events: none;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  background: rgba(0,0,0,0.58);
  border: 1px solid rgba(255,255,255,0.12);
}

.feature-meta {
  padding: 16px 16px 18px;
  text-align: left;
}

.feature-meta h2 {
  margin: 0;
  font-size: 1.18rem;
}

.feature-meta p {
  margin: 10px 0 0;
  color: #c4ccdf;
  line-height: 1.6;
}

.feature-meta span {
  display: inline-block;
  margin-top: 12px;
  color: #8df0c7;
  font-weight: 600;
}

.channel-rail {
  padding: 8px 0 20px;
}

.channel-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.channel-rail-header a {
  color: #a6b0ca;
  font-weight: 700;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.channel-card {
  min-height: 108px;
  padding: 16px;
  border-radius: 16px;
  color: white;
  display: grid;
  align-content: space-between;
  gap: 6px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}

.channel-card strong {
  font-size: 1.08rem;
  line-height: 1.15;
}

.channel-card small,
.channel-card .channel-overline {
  opacity: .92;
}

.channel-card .channel-overline {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.channel-card.is-green { background: linear-gradient(135deg, #1bb76e, #1d9b62); }
.channel-card.is-blue { background: linear-gradient(135deg, #4f5dff, #3950f0); }
.channel-card.is-purple { background: linear-gradient(135deg, #7f4dff, #6234d8); }
.channel-card.is-orange { background: linear-gradient(135deg, #ff8b3d, #ea6d1f); }
.channel-card.is-cyan { background: linear-gradient(135deg, #13b8d1, #0f8cad); }
.channel-card.is-pink { background: linear-gradient(135deg, #d84fff, #a933dd); }

.section-header-feed {
  margin-bottom: 18px;
}

.feed-section {
  padding-top: 10px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.feed-summary-card {
  min-width: 150px;
  text-align: right;
}

.feed-grid {
  column-gap: 16px;
}

.feed-card {
  border-radius: 16px;
  background: #1d2028;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
}

.feed-media-overlay {
  padding: 12px;
}

.media-badge,
.fullscreen-hint {
  min-height: 32px;
  padding: 0 10px;
  font-size: .78rem;
}

.feed-meta {
  padding: 14px 14px 16px;
}

.feed-meta h3 {
  font-size: 1rem;
}

.feed-meta p {
  font-size: .92rem;
}

.feed-author-line,
.feed-stats,
.feed-tags,
.muted-copy,
.section-title p {
  color: #aeb7cf;
}

.lightbox-dialog {
  background: #1a1d24;
}

.footer-note { display: none; }

@media (max-width: 1360px) {
  .channel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1220px) {
  .billboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .public-topbar-row { grid-template-columns: 1fr; }
  .topbar-left { flex-wrap: wrap; }
  .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .headline-stats { grid-template-columns: 1fr; }
  .feed-summary-card { min-width: 0; text-align: left; }
}

@media (max-width: 680px) {
  .hide-mobile { display: none; }
  .billboard-copy { padding: 22px; }
  .billboard-copy h1 { max-width: 12ch; }
  .feature-media { min-height: 240px; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-card { min-height: 92px; }
}

@media (max-width: 460px) {
  .channel-grid { grid-template-columns: 1fr; }
}

/* Next stage: closer to viral portal */
.top-pill.is-active,
.feed-mode-tab.is-active {
  background: #1bb76e;
  color: #08120d;
  border-color: rgba(27,183,110,0.5);
}

.topic-ribbon {
  padding: 12px 0 8px;
}
.topic-ribbon-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 170px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.topic-ribbon-track::-webkit-scrollbar { display: none; }
.topic-tile {
  min-height: 88px;
  border-radius: 16px;
  color: #fff;
  padding: 14px 16px;
  display: grid;
  align-content: space-between;
  box-shadow: 0 12px 22px rgba(0,0,0,0.15);
}
.topic-tile strong {
  font-size: 1rem;
  line-height: 1.15;
}
.topic-tile small,
.topic-tile-kicker {
  opacity: 0.94;
}
.topic-tile-kicker {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.topic-tile.is-green { background: linear-gradient(135deg, #1bb76e, #179b5d); }
.topic-tile.is-blue { background: linear-gradient(135deg, #5e6bff, #4153f4); }
.topic-tile.is-purple { background: linear-gradient(135deg, #935dff, #6c35f3); }
.topic-tile.is-orange { background: linear-gradient(135deg, #ff9a4d, #ef6a14); }
.topic-tile.is-cyan { background: linear-gradient(135deg, #18c6da, #0d8fab); }
.topic-tile.is-pink { background: linear-gradient(135deg, #eb63ff, #bd31e8); }

.billboard-v2 .billboard-copy h1 {
  max-width: 12ch;
}
.headline-stats-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.feature-meta-v2 {
  display: grid;
  gap: 10px;
}
.feature-rank-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.feature-rank-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(27,183,110,0.12);
  border: 1px solid rgba(27,183,110,0.22);
  color: #aef2cd;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.feature-rank-meta {
  color: #a9b2cb;
  font-size: .92rem;
}

.section-header-feed-v2 {
  align-items: center;
}
.feed-header-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.feed-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
}
.feed-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #dce4f8;
  font-weight: 800;
  font-size: .92rem;
}
.feed-summary-card-v2 {
  min-width: 160px;
}
.feed-grid-v2 {
  column-gap: 14px;
}
.feed-card-v2 {
  border-radius: 14px;
  background: #1c1f27;
}
.feed-card-v2 .feed-image,
.feed-card-v2 .feed-video {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feed-card-v2 .feed-media-overlay {
  padding: 10px;
}
.feed-card-v2 .feed-meta-v2 {
  padding: 12px 12px 14px;
}
.feed-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.feed-author-pill,
.feed-tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}
.feed-author-pill {
  background: rgba(255,255,255,0.06);
  color: #edf2ff;
}
.feed-tag-pill {
  background: rgba(27,183,110,0.12);
  color: #9debc3;
}
.feed-card-v2 .feed-meta h3,
.feed-card-v2 .feed-meta-v2 h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}
.feed-card-v2 .feed-meta p,
.feed-card-v2 .feed-meta-v2 p {
  margin: 8px 0 0;
  color: #bac4dd;
  line-height: 1.52;
  font-size: .89rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-author-line-v2 {
  margin-top: 12px;
  font-size: .8rem;
  color: #96a4c7;
}
.feed-footer-v2 {
  margin-top: 12px;
  gap: 10px;
}
.feed-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reaction-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  color: #ebf0ff;
  font-size: .84rem;
  font-weight: 700;
}
.feed-tags-v2 {
  color: #89efd0;
  font-size: .83rem;
  line-height: 1.55;
}
.load-more-wrap-v2 {
  padding-top: 20px;
}

@media (max-width: 1100px) {
  .headline-stats-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .feed-header-side {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .headline-stats-wide {
    grid-template-columns: 1fr;
  }
  .feed-mode-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .feed-mode-tab {
    flex: 1;
  }
}

.feed-title-link {
  color: inherit;
}
.feed-title-link:hover {
  color: #8df2d0;
}
.feature-card {
  color: inherit;
}
.empty-view {
  padding: 72px 0 96px;
}
.empty-view-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.34);
}
.empty-view-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}
.empty-view-card p {
  margin: 0 0 20px;
  color: #c3cee8;
  font-size: 1.05rem;
}
.post-view {
  padding: 28px 0 24px;
}
.post-view-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr);
  gap: 22px;
  align-items: start;
}
.post-main-card,
.post-sidebar-card,
.comment-form-card,
.comments-list-wrap {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  box-shadow: 0 18px 44px rgba(0,0,0,0.26);
}
.post-main-card {
  overflow: hidden;
}
.post-media-stage {
  position: relative;
  background: #0d1017;
}
.post-primary-media {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #0d1017;
}
.post-media-toolbar {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.icon-chip,
.share-button,
.reaction-action {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(8,11,17,0.72);
  color: #edf2ff;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.icon-chip,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
}
.icon-chip:hover,
.share-button:hover,
.reaction-action:hover {
  transform: translateY(-1px);
  border-color: rgba(84,233,184,0.45);
}
.post-content-block {
  padding: 22px 24px 26px;
}
.post-kicker-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.post-back-link,
.post-meta-inline {
  color: #91a7d2;
  font-size: .92rem;
  font-weight: 700;
}
.post-content-block h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
}
.post-caption {
  margin: 16px 0 0;
  color: #d5def3;
  line-height: 1.7;
  font-size: 1.04rem;
}
.post-owner-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.post-owner-row strong {
  display: block;
  font-size: 1rem;
}
.post-owner-row span {
  display: block;
  margin-top: 6px;
  color: #9fb0d5;
}
.post-metrics-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.post-metrics-inline span {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #edf2ff;
  font-weight: 700;
}
.post-tag-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.post-tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(32,201,151,0.12);
  color: #8ef0cb;
  border: 1px solid rgba(32,201,151,0.18);
  font-weight: 700;
}
.post-sidebar-card {
  padding: 20px;
  display: grid;
  gap: 18px;
}
.engagement-section {
  padding: 18px;
  border-radius: 20px;
  background: rgba(10,13,19,0.36);
  border: 1px solid rgba(255,255,255,0.06);
}
.engagement-section h2 {
  margin: 0;
  font-size: 1.08rem;
}
.engagement-section p {
  margin: 10px 0 0;
  color: #aebce0;
  line-height: 1.6;
}
.reaction-button-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.reaction-action {
  width: 100%;
  padding: 14px 14px;
  border-radius: 18px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.reaction-action.is-active {
  background: linear-gradient(135deg, rgba(32,201,151,0.22), rgba(108,99,255,0.18));
  border-color: rgba(32,201,151,0.45);
}
.reaction-action-emoji {
  font-size: 1.24rem;
}
.reaction-action-label {
  font-weight: 700;
}
.reaction-action-count {
  font-size: .95rem;
}
.share-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.share-button {
  width: 100%;
}
.reaction-summary-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.reaction-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #edf2ff;
}
.comments-section {
  padding: 6px 0 96px;
}
.comments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 22px;
  align-items: start;
}
.comments-list-wrap,
.comment-form-card {
  padding: 24px;
}
.comments-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.comments-header-row h2,
.comment-form-card h2 {
  margin: 8px 0 0;
  font-size: 1.9rem;
}
.comments-total-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  font-weight: 700;
}
.comments-list {
  display: grid;
  gap: 14px;
}
.comment-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(8,11,17,0.44);
  border: 1px solid rgba(255,255,255,0.06);
}
.comment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.comment-card-head strong {
  font-size: 1rem;
}
.comment-card-head time {
  color: #8fa2cc;
  font-size: .88rem;
}
.comment-card p,
.empty-comments {
  margin: 12px 0 0;
  color: #d7e0f4;
  line-height: 1.7;
}
.comment-form {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}
.field-group {
  display: grid;
  gap: 8px;
}
.field-group label {
  font-weight: 700;
  color: #eef3ff;
}
.field-group input,
.field-group textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(8,11,17,0.58);
  color: #fff;
  padding: 14px 16px;
  outline: none;
}
.field-group input:focus,
.field-group textarea:focus {
  border-color: rgba(84,233,184,0.45);
  box-shadow: 0 0 0 4px rgba(84,233,184,0.08);
}
.form-feedback {
  min-height: 20px;
  margin: 0;
  color: #aebce0;
  font-weight: 600;
}
.form-feedback[data-state="success"] {
  color: #8ef0cb;
}
.form-feedback[data-state="error"] {
  color: #ff8f8f;
}

@media (max-width: 1100px) {
  .post-view-grid,
  .comments-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .post-content-block {
    padding: 18px;
  }
  .reaction-button-grid,
  .share-grid {
    grid-template-columns: 1fr;
  }
  .comments-header-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* community accounts and post interactions */
.auth-shell,
.install-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 18px;
}
.auth-card,
.install-card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  padding: 24px;
  border-radius: 28px;
}
.install-card {
  background: rgba(16,20,33,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
}
.install-copy,
.install-form-card {
  border-radius: 22px;
}
.install-copy {
  padding: 28px;
  background: linear-gradient(135deg, rgba(42,57,195,0.28), rgba(15,17,28,0.12));
}
.install-form-card {
  padding: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.install-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #b8c4e5;
}
.install-list li + li {
  margin-top: 10px;
}
.field-full {
  grid-column: 1 / -1;
}
.profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #54e9b8, #5a64ff);
  color: #07111d;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(53, 209, 184, 0.25);
}
.profile-badge-sm {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}
.profile-badge-md {
  width: 54px;
  height: 54px;
  font-size: 1rem;
}
.profile-badge-lg {
  width: 68px;
  height: 68px;
  font-size: 1.2rem;
}
.profile-badge-xl {
  width: 96px;
  height: 96px;
  font-size: 1.6rem;
}
.feed-author-link,
.feed-author-link.is-static {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f3f6ff;
  text-decoration: none;
  font-weight: 700;
}
.feed-author-link:hover {
  color: #54e9b8;
}
.post-owner-row-rich,
.post-owner-card,
.creator-box-head,
.creator-actions,
.creator-stats,
.profile-hero-main,
.profile-hero-side {
  display: flex;
  align-items: center;
}
.post-owner-row-rich {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.post-owner-card {
  gap: 14px;
}
.post-owner-card span,
.profile-handle,
.comment-helper {
  color: #9eaccf;
}
.post-author-link {
  color: #fff;
  text-decoration: none;
}
.post-author-link:hover {
  color: #54e9b8;
}
.post-metrics-inline-rich {
  gap: 14px;
  flex-wrap: wrap;
}
.creator-box {
  gap: 18px;
}
.creator-box-head {
  align-items: flex-start;
  gap: 16px;
}
.creator-box-head p {
  margin: 8px 0 0;
  color: #afbcde;
}
.creator-stats {
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #dce6ff;
}
.creator-stats strong {
  display: block;
  color: #fff;
}
.creator-actions {
  gap: 12px;
  flex-wrap: wrap;
}
.reply-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(84, 233, 184, 0.08);
  border: 1px solid rgba(84, 233, 184, 0.18);
  color: #dce7ff;
}
.reply-cancel-button,
.comment-reply-button {
  border: 0;
  background: transparent;
  color: #54e9b8;
  font-weight: 700;
  cursor: pointer;
}
.comment-card {
  display: block;
}
.comment-card + .comment-card {
  margin-top: 16px;
}
.comment-author-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.comment-user-link {
  color: #54e9b8;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.comment-user-link.is-guest {
  color: #8a95b3;
}
.comment-card-actions {
  margin-top: 10px;
}
.comment-replies {
  margin-top: 14px;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.comment-card.depth-1,
.comment-card.depth-2,
.comment-card.depth-3 {
  margin-top: 14px;
}
.profile-hero {
  padding: 26px 0 8px;
}
.profile-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(25,31,53,0.9), rgba(18,20,32,0.95));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.26);
}
.profile-hero-main {
  gap: 18px;
  align-items: flex-start;
}
.profile-handle {
  margin: 6px 0 10px;
  font-weight: 700;
}
.profile-bio {
  max-width: 760px;
  color: #d2dcf7;
}
.creator-stats-profile {
  justify-content: flex-end;
}
.auth-card .login-copy,
.auth-card .login-form {
  border-radius: 22px;
}
.top-actions.public-top-actions {
  flex-wrap: wrap;
}
.empty-page {
  padding: 80px 0;
}
.feed-author-line-v2 {
  gap: 10px;
}
.install-body {
  background: #0b0f19;
}

@media (max-width: 980px) {
  .auth-card,
  .install-card,
  .profile-hero-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-hero-side,
  .creator-stats-profile {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .profile-hero-main,
  .creator-box-head {
    flex-direction: column;
  }
  .post-owner-row-rich {
    align-items: flex-start;
  }
  .comment-replies {
    padding-left: 12px;
  }
}

/* Public refresh: cleaner public copy + better category UX */
.topic-ribbon-v3 {
  padding: 14px 0 8px;
}

.topic-ribbon-header,
.profile-topics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.topic-ribbon-header h2,
.profile-topics-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.15rem, 1.2vw, 1.45rem);
}

.category-reset-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #f4f7ff;
  font-weight: 700;
  white-space: nowrap;
}

.topic-ribbon-v3 .topic-ribbon-track,
.topic-ribbon-track-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  overflow: visible;
  padding-bottom: 0;
}

.topic-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 140px;
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  color: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.topic-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 18px 34px rgba(0,0,0,0.24);
}

.topic-chip.is-active {
  border-color: rgba(27,183,110,0.55);
  box-shadow: 0 14px 34px rgba(27,183,110,0.18);
}

.topic-chip.topic-chip-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
}

.topic-chip-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.topic-chip-meta {
  display: block;
  color: rgba(255,255,255,0.82);
  font-size: .84rem;
  font-weight: 600;
}

.billboard-v2 .billboard-copy h1 {
  max-width: 11ch;
}

.billboard-copy-recommended .billboard-kicker {
  margin-bottom: 16px;
}

.billboard-copy-recommended h1 {
  max-width: 9.6ch;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-benefit-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
}

.hero-benefit-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: .98rem;
  line-height: 1.2;
}

.hero-benefit-card span {
  display: block;
  color: rgba(232,238,255,0.84);
  font-size: .9rem;
  line-height: 1.5;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.topic-grid-profile {
  margin-top: 18px;
}

.topic-chip-profile {
  min-width: 0;
  min-height: 102px;
}

.topic-chip-topline {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-topics-head-v2 {
  align-items: flex-start;
}

.profile-topics-copy {
  margin: 8px 0 0;
  max-width: 64ch;
  color: rgba(232,238,255,0.82);
}

.profile-topics-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-topics-counter {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #f4f7ff;
  font-weight: 700;
  white-space: nowrap;
}

.active-topic-banner {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(27,183,110,0.24);
  background: rgba(27,183,110,0.09);
  color: #f4f7ff;
}

.active-topic-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.active-topic-banner strong {
  font-size: 1rem;
}

.billboard-copy p {
  max-width: 62ch;
}

.profile-hero-card {
  align-items: flex-start;
}

.profile-hero-main {
  flex: 1;
  min-width: 0;
}

.profile-hero-side {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.profile-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e8eeff;
  font-size: .84rem;
  font-weight: 700;
}

.profile-topics {
  padding: 8px 0 6px;
}

.profile-topics-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
  box-shadow: 0 16px 36px rgba(0,0,0,0.2);
}

.profile-topics-card .topic-chip {
  min-width: 132px;
}

@media (max-width: 1100px) {
  .billboard-v2 .billboard-copy h1 {
    max-width: 12ch;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .topic-ribbon-v3 .topic-ribbon-track,
  .topic-ribbon-track-profile {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .topic-chip {
    flex: 0 0 180px;
    scroll-snap-align: start;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .profile-hero-side {
    width: 100%;
    justify-items: start;
  }

  .creator-stats-profile {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topic-ribbon-header,
  .profile-topics-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .topic-chip {
    flex-basis: 170px;
    min-height: 72px;
  }

  .profile-topics-card {
    padding: 16px;
    border-radius: 20px;
  }

  .profile-meta-row {
    gap: 8px;
  }

  .profile-meta-pill {
    min-height: 32px;
    padding-inline: 11px;
  }

  .profile-topics-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .active-topic-banner {
    width: 100%;
    align-items: flex-start;
  }

  .topic-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .topic-grid .topic-chip {
    flex: 0 0 220px;
    min-width: 220px;
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  .billboard-copy {
    padding: 22px;
  }

  .billboard-v2 .billboard-copy h1 {
    max-width: 8.5ch;
    font-size: clamp(2rem, 10vw, 2.9rem);
  }

  .topic-chip {
    flex-basis: 160px;
    min-width: 160px;
  }

  .topic-grid .topic-chip {
    flex-basis: 180px;
    min-width: 180px;
  }
}

.profile-badge.has-avatar {
  overflow: hidden;
  padding: 0;
  background: rgba(255,255,255,0.08);
  color: transparent;
}
.profile-badge.has-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.account-shell {
  align-items: flex-start;
}
.account-page {
  padding: 28px 0 56px;
}
.account-page .account-layout {
  width: 100%;
}
.account-layout {
  width: min(1120px, 100%);
  display: grid;
  gap: 22px;
}
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
}
.account-card {
  padding: 0;
  overflow: hidden;
}
.account-card-full {
  grid-column: 1 / -1;
}
.account-intro-card {
  padding: 24px;
}
.account-intro-top,
.avatar-settings-preview,
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}
.account-intro-top {
  align-items: flex-start;
}
.account-intro-copy {
  max-width: 70ch;
  color: #b8c4e5;
}
.account-intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.avatar-settings-preview {
  margin-bottom: 18px;
}
.avatar-settings-preview p,
.user-edit-meta {
  color: #aebce0;
}
.account-password-grid {
  align-items: end;
}
.users-admin-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}
.user-status-stack {
  display: grid;
  gap: 6px;
}
.user-edit-grid {
  grid-template-columns: minmax(0, 1.1fr) 340px;
}
.user-edit-meta {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  line-height: 1.55;
}
.button-disabled {
  opacity: .6;
  cursor: default;
  pointer-events: none;
}
.align-end {
  align-self: end;
}
@media (max-width: 980px) {
  .account-grid,
  .users-admin-grid,
  .user-edit-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .account-intro-top,
  .avatar-settings-preview,
  .admin-user-cell {
    align-items: flex-start;
    flex-direction: column;
  }
}

.status-approved {
  background: rgba(41,195,106,0.12);
  color: #c6f5d6;
}
.status-pending {
  background: rgba(255,176,32,0.12);
  color: #ffe3a8;
}
.status-hidden {
  background: rgba(239,68,68,0.12);
  color: #fecaca;
}
.text-link-inline {
  color: #97e8ff;
  font-weight: 600;
  text-decoration: none;
}
.text-link-inline:hover {
  text-decoration: underline;
}
.account-cover-preview,
.cover-uploader-preview,
.profile-hero-cover {
  position: relative;
  width: 100%;
  min-height: 180px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(24,211,158,0.12), rgba(96,88,255,0.18));
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.account-cover-preview::after,
.cover-uploader-preview::after,
.profile-hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,11,20,0.05), rgba(6,11,20,0.68));
}
.account-cover-preview {
  min-height: 160px;
  margin-bottom: 20px;
}
.cover-uploader-preview {
  min-height: 220px;
  margin-bottom: 18px;
}
.cover-uploader-preview-admin {
  min-height: 160px;
}
.cover-uploader-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
  display: grid;
  gap: 6px;
  color: #f7fbff;
}
.cover-uploader-overlay span {
  color: rgba(240,245,255,0.82);
  font-size: .95rem;
}
.profile-hero-with-cover {
  padding-top: 16px;
}
.profile-hero-cover {
  min-height: 260px;
}
.profile-hero-card-overlap {
  margin-top: -72px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(18px);
}
.moderation-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.moderation-filters select {
  min-width: 190px;
}
.moderation-table td {
  vertical-align: top;
}
.moderation-comment-cell {
  display: grid;
  gap: 6px;
  min-width: 280px;
}
.moderation-comment-cell small {
  color: #97a5c4;
}
.moderation-comment-cell p {
  margin: 0;
  color: #dfe7fb;
  line-height: 1.55;
}
.moderation-actions {
  min-width: 260px;
}
@media (max-width: 980px) {
  .profile-hero-cover {
    min-height: 190px;
  }
  .profile-hero-card-overlap {
    margin-top: -42px;
  }
}
@media (max-width: 680px) {
  .account-cover-preview,
  .cover-uploader-preview,
  .profile-hero-cover {
    min-height: 150px;
    border-radius: 18px;
  }
  .profile-hero-card-overlap {
    margin-top: -24px;
  }
  .moderation-comment-cell {
    min-width: 220px;
  }
}

.ad-section-block {
  margin: 0 auto 22px;
}
.ad-slot {
  background: linear-gradient(180deg, rgba(17, 22, 38, 0.9), rgba(14, 18, 30, 0.92));
  border: 1px solid rgba(120, 141, 190, 0.18);
  border-radius: 22px;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.22);
}
.ad-slot iframe,
.ad-slot img,
.ad-slot video {
  max-width: 100%;
  display: block;
  border: 0;
}
.feed-card-ad {
  min-height: 220px;
}
.ad-slot-feed {
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot-sidebar {
  min-height: 250px;
}
.settings-stack {
  display: grid;
  gap: 24px;
}
.settings-form-grid {
  gap: 18px;
}
.settings-box {
  border: 1px solid rgba(114, 132, 180, 0.16);
  border-radius: 18px;
  padding: 18px;
  background: rgba(11, 17, 30, 0.55);
}
.settings-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.settings-box-head h3 {
  margin: 0 0 6px;
}
.settings-box-head p {
  margin: 0;
  color: #9db0d8;
}
.settings-subtitle {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #82f5d5;
  font-weight: 800;
  margin-top: 6px;
}
.settings-test-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(114, 132, 180, 0.15);
}
.field-label-static {
  display: block;
  margin-bottom: 8px;
  font-size: 0.94rem;
  color: #dbe8ff;
  font-weight: 600;
}
.captcha-field {
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(116, 133, 183, 0.28);
  background: rgba(11, 17, 30, 0.4);
}
.captcha-help {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.28);
  color: #fde68a;
}
@media (max-width: 820px) {
  .settings-box-head {
    flex-direction: column;
  }
  .ad-slot-feed {
    min-height: 180px;
  }
}


.public-footer {
  margin-top: 36px;
  padding: 28px 0 42px;
  border-top: 1px solid rgba(114, 132, 180, 0.12);
  background: rgba(5, 9, 19, 0.68);
}
.public-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: start;
}
.public-footer p {
  color: #9db0d8;
  margin: 10px 0 0;
  line-height: 1.7;
}
.public-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}
.public-footer-links a {
  color: #dbe8ff;
  text-decoration: none;
  font-weight: 600;
}
.public-footer-links a:hover {
  color: #82f5d5;
}
.static-page-wrap {
  padding: 42px 0 68px;
}
.static-page-card {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid rgba(114, 132, 180, 0.14);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 24, 41, 0.96), rgba(11, 15, 28, 0.96));
  padding: 34px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}
.static-page-excerpt {
  color: #9db0d8;
  font-size: 1.05rem;
  line-height: 1.7;
}
.static-page-content {
  margin-top: 24px;
  color: #e5efff;
  line-height: 1.82;
}
.static-page-content h2,
.static-page-content h3 {
  margin: 28px 0 10px;
}
.report-box .field-group {
  margin-bottom: 14px;
}
.report-form textarea,
.report-form select,
.report-form input {
  width: 100%;
}
.comment-report-form {
  display: inline-flex;
}
.comment-report-button {
  border: none;
  background: transparent;
  color: #8fa3d8;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.comment-report-button:hover {
  color: #82f5d5;
}
.reports-stack {
  display: grid;
  gap: 18px;
}
.report-card {
  border: 1px solid rgba(114, 132, 180, 0.16);
  border-radius: 22px;
  padding: 20px;
  background: rgba(11, 17, 30, 0.65);
}
.report-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 10px;
}
.report-card-head h3 {
  margin: 4px 0 0;
}
.report-actions-row {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.report-actions-row textarea {
  width: 100%;
  min-height: 90px;
}
@media (max-width: 820px) {
  .public-footer-grid {
    grid-template-columns: 1fr;
  }
  .public-footer-links {
    justify-content: flex-start;
  }
  .static-page-card {
    padding: 24px;
    border-radius: 22px;
  }
  .report-card-head {
    flex-direction: column;
  }
}



.submit-shell {
  padding: 28px 0 44px;
}
.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: 20px;
  align-items: start;
}
.submit-card,
.submit-preview-card {
  overflow: hidden;
}
.submit-form-grid {
  align-items: start;
}
.submit-form-grid .field-half {
  min-width: 0;
}
.upload-dropzone {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 26px 22px;
  border-radius: 20px;
  border: 1.5px dashed rgba(67, 232, 181, 0.32);
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.94), rgba(11, 18, 31, 0.82));
  color: #d9e7ff;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.upload-dropzone:hover,
.upload-dropzone:focus-visible,
.upload-dropzone.is-dragover {
  transform: translateY(-1px);
  border-color: rgba(67, 232, 181, 0.76);
  background: linear-gradient(180deg, rgba(12, 26, 36, 0.98), rgba(12, 22, 36, 0.9));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(67, 232, 181, 0.12) inset;
}
.upload-dropzone strong {
  font-size: 1.06rem;
  color: #fff;
}
.upload-dropzone span,
.upload-dropzone small {
  color: #a8bbde;
  line-height: 1.55;
}
.upload-dropzone-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: radial-gradient(circle at top, rgba(67, 232, 181, 0.28), rgba(67, 232, 181, 0.08));
  color: #43e8b5;
}
.visually-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.field-optional {
  color: #8aa3d1;
  font-size: .9rem;
  font-weight: 500;
}
.submit-video-tools {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(114, 132, 180, 0.16);
  background: rgba(10, 16, 28, 0.58);
}
.submit-tools-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.button-small {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .9rem;
}
.submit-video-tools input[type="range"] {
  width: 100%;
}
.submit-frame-current {
  color: #b8c8ea;
  font-size: .92rem;
  text-align: right;
}
.submit-progress-wrap {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(114, 132, 180, 0.18);
  background: rgba(10, 16, 28, 0.56);
}
.submit-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #fff;
}
.submit-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.submit-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2be7ae, #4ca5ff 72%, #9157ff);
  transition: width .2s ease;
}
.submit-progress-subtext {
  color: #9eb1d6;
  font-size: .93rem;
}
.submit-preview-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 16px;
  align-items: start;
}
.submit-preview-frame {
  min-height: 320px;
  max-height: 500px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(114, 132, 180, 0.16);
  background:
    radial-gradient(circle at top, rgba(76, 165, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(10, 14, 22, 0.98), rgba(8, 11, 18, 0.96));
}
.submit-preview-frame.is-portrait .submit-preview-media-wrap {
  max-width: 320px;
}
.submit-preview-media-wrap {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
}
.submit-preview-frame img,
.submit-preview-frame video {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 18px;
  background: #070b12;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}
.submit-preview-empty {
  padding: 28px;
  color: #9db0d8;
  text-align: center;
}
.submit-cover-preview {
  display: grid;
  gap: 10px;
}
.submit-cover-kicker {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9cb4e6;
}
.submit-cover-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(114, 132, 180, 0.16);
  background: rgba(10, 15, 25, 0.54);
}
.submit-cover-media {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.submit-cover-caption {
  padding: 12px 14px;
  color: #d6e3fb;
  font-size: .92rem;
}
.submit-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.submit-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(114, 132, 180, 0.16);
  background: rgba(10, 16, 28, 0.62);
  color: #d8e6ff;
  font-size: .9rem;
}
.submit-side-notes {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.submit-tip {
  border: 1px solid rgba(114, 132, 180, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(10, 15, 25, 0.45);
}
.submit-tip strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}
.submit-tip span {
  color: #b9c9eb;
  line-height: 1.55;
}
.submit-preview-meta {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(114, 132, 180, 0.16);
  background: rgba(11, 17, 30, 0.58);
  color: #b9c9eb;
  line-height: 1.6;
}
.submit-preview-meta[data-state="positive"] {
  border-color: rgba(67, 232, 181, 0.28);
  color: #dffbf1;
}
.submit-preview-meta[data-state="negative"] {
  border-color: rgba(255, 116, 116, 0.28);
  color: #ffd7d7;
}
@media (max-width: 1120px) {
  .submit-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 920px) {
  .submit-preview-stage {
    grid-template-columns: 1fr;
  }
  .submit-cover-card {
    max-width: 240px;
  }
}
@media (max-width: 720px) {
  .submit-shell {
    padding: 16px 0 30px;
  }
  .submit-tools-head,
  .submit-progress-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .submit-preview-frame {
    min-height: 220px;
    max-height: 420px;
  }
  .submit-preview-frame img,
  .submit-preview-frame video {
    max-height: 400px;
  }
  .submit-preview-frame.is-portrait .submit-preview-media-wrap {
    max-width: 100%;
  }
}

.shorts-hero {
  padding: 28px 0 14px;
}
.shorts-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: stretch;
}
.shorts-hero-actions {
  display: grid;
  gap: 16px;
  align-content: start;
}
.shorts-tip-card {
  border: 1px solid rgba(114, 132, 180, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(11, 17, 30, 0.92));
  border-radius: 22px;
  padding: 18px;
  color: #cfe0ff;
}
.shorts-tip-card strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
}
.shorts-page-shell {
  padding: 8px 0 46px;
}
.shorts-stack {
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
}
.short-card {
  position: relative;
  scroll-snap-align: start;
}
.short-media-shell {
  position: relative;
  min-height: 84vh;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(114, 132, 180, 0.18);
  background: #050814;
  box-shadow: 0 22px 70px rgba(2, 8, 23, 0.42);
}
.short-video {
  width: 100%;
  height: 100%;
  min-height: 84vh;
  object-fit: cover;
  display: block;
  background: #000;
}
.short-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 16, 0.1) 0%, rgba(4, 8, 16, 0.12) 35%, rgba(4, 8, 16, 0.84) 100%);
  pointer-events: none;
}
.short-top-meta {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 86px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 3;
}
.short-pill {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(7, 12, 23, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f6fbff;
  font-weight: 700;
  font-size: .82rem;
}
.short-floating-actions {
  position: absolute;
  right: 18px;
  bottom: 112px;
  z-index: 3;
  display: grid;
  gap: 12px;
}
.short-action {
  min-width: 56px;
  padding: 10px 10px 12px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  background: rgba(7, 12, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  justify-items: center;
  gap: 5px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(2, 8, 23, 0.34);
}
.short-action span {
  font-size: .78rem;
  color: #d4e4ff;
}
.short-action-button {
  cursor: pointer;
}
.short-action-button.is-live {
  background: rgba(10, 193, 145, 0.22);
  border-color: rgba(34, 197, 94, 0.45);
}
.short-meta {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  color: #fff;
}
.short-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(7, 12, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.short-meta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.08;
}
.short-meta h2 a,
.short-author-link {
  color: inherit;
  text-decoration: none;
}
.short-meta p {
  margin: 0 0 12px;
  max-width: calc(100% - 82px);
  color: #e0ebff;
  line-height: 1.6;
}
.short-author-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.short-author-link {
  font-weight: 700;
  color: #9cebd2;
}
.short-card.is-active .short-media-shell {
  box-shadow: 0 26px 80px rgba(5, 224, 165, 0.12);
  border-color: rgba(10, 193, 145, 0.32);
}
@media (min-width: 1024px) {
  .shorts-stack {
    scroll-snap-type: y proximity;
  }
}
@media (max-width: 900px) {
  .shorts-hero-row {
    grid-template-columns: 1fr;
  }
  .short-media-shell,
  .short-video {
    min-height: 78vh;
  }
}
@media (max-width: 640px) {
  .shorts-page-shell .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .short-media-shell,
  .short-video {
    min-height: 76vh;
    border-radius: 22px;
  }
  .short-meta {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .short-meta p {
    max-width: 100%;
    font-size: .94rem;
  }
  .short-floating-actions {
    right: 12px;
    bottom: 120px;
  }
  .short-top-meta {
    top: 12px;
    left: 12px;
  }
}


/* Mobile-first Shorts Pro */
:root {
  --app-height: 100vh;
}

body.shorts-route {
  --shorts-header-height: 74px;
}

body.shorts-route .topbar-public {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid rgba(126, 142, 190, 0.14);
}

body.shorts-route .shorts-page-shell {
  overscroll-behavior-y: contain;
}

body.shorts-route .shorts-stack {
  scroll-snap-type: y mandatory;
  max-width: 520px;
  gap: 22px;
}

body.shorts-route .short-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body.shorts-route .short-media-shell,
body.shorts-route .short-video {
  min-height: min(88vh, 920px);
}

.short-pill-muted {
  background: rgba(5, 224, 165, 0.18);
  border-color: rgba(5, 224, 165, 0.32);
}

.short-action-avatar {
  padding: 6px 6px 10px;
  min-width: 62px;
  background: rgba(7, 12, 23, 0.42);
}

.short-action-avatar .profile-badge {
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.26);
}

.short-action-avatar span {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.short-author-inline,
.short-view-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(7, 12, 23, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d7e7ff;
  font-weight: 600;
  font-size: 0.9rem;
}

.short-caption-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 4;
}

.short-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #1bb76e, #34d399);
  box-shadow: 0 0 16px rgba(27, 183, 110, 0.34);
  transition: width 0.12s linear;
}

.short-card.is-paused .short-pill-muted {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
}

.short-card.is-paused .short-pill-muted::before {
  content: 'Pausado';
}

.short-card.is-paused [data-short-state] {
  color: #fff;
}

.short-card:not(.is-paused) .short-pill-muted::before {
  content: 'Ao vivo';
}

.short-card [data-short-state] {
  font-size: 0;
}

@media (max-width: 900px) {
  body.shorts-route {
    --shorts-header-height: 68px;
  }

  body.shorts-route .shorts-hero {
    display: none;
  }

  body.shorts-route .public-topbar-row {
    min-height: var(--shorts-header-height);
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  body.shorts-route .topbar-left {
    min-width: 0;
    gap: 8px;
  }

  body.shorts-route .brand span:last-child {
    font-size: 1.05rem;
  }

  body.shorts-route .top-pill,
  body.shorts-route .top-action-link,
  body.shorts-route .button-small {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.85rem;
  }

  body.shorts-route .shorts-page-shell,
  body.shorts-route .shorts-page-shell .container {
    padding: 0;
    max-width: none;
  }

  body.shorts-route .shorts-stack {
    max-width: none;
    gap: 0;
    padding-bottom: 0;
  }

  body.shorts-route .short-card {
    min-height: calc(var(--app-height) - var(--shorts-header-height));
  }

  body.shorts-route .short-media-shell,
  body.shorts-route .short-video {
    min-height: calc(var(--app-height) - var(--shorts-header-height));
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  body.shorts-route .short-meta {
    left: 16px;
    right: 82px;
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  body.shorts-route .short-meta h2 {
    font-size: clamp(1.5rem, 8vw, 2.35rem);
  }

  body.shorts-route .short-meta p {
    max-width: none;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  body.shorts-route .short-author-row {
    gap: 10px;
  }

  body.shorts-route .short-author-inline,
  body.shorts-route .short-view-chip {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  body.shorts-route .short-floating-actions {
    right: 14px;
    bottom: calc(104px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  body.shorts-route .short-action {
    min-width: 54px;
    padding: 9px 8px 10px;
    border-radius: 20px;
  }

  body.shorts-route .short-action span {
    font-size: 0.72rem;
  }

  body.shorts-route .short-action-avatar {
    min-width: 56px;
  }

  body.shorts-route .short-top-meta {
    top: 14px;
    left: 14px;
    right: 14px;
    gap: 8px;
  }

  body.shorts-route .short-pill {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  body.shorts-route .shorts-load-more {
    margin: 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(5, 8, 16, 0), rgba(5, 8, 16, 0.78));
  }

  body.shorts-route .public-footer {
    display: none;
  }
}

@media (max-width: 520px) {
  body.shorts-route .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  body.shorts-route .top-action-link {
    padding: 0 8px;
  }

  body.shorts-route .short-meta {
    right: 76px;
  }

  body.shorts-route .short-author-row .button {
    width: 100%;
    justify-content: center;
  }
}

/* Shorts stage immersive */
.shorts-stage-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.shorts-stage-backdrop-main,
.shorts-stage-backdrop-next,
.shorts-stage-backdrop-overlay {
  position: absolute;
  inset: 0;
}
.shorts-stage-backdrop-main,
.shorts-stage-backdrop-next {
  background-position: center;
  background-size: cover;
  filter: blur(36px) saturate(1.1);
  opacity: .26;
  transform: scale(1.08);
  transition: opacity .35s ease, transform .35s ease, background-image .35s ease;
}
.shorts-stage-backdrop-next {
  inset: 8% -12% auto auto;
  width: 44vw;
  height: 54vh;
  border-radius: 32px;
  opacity: .18;
  transform: scale(1.02) rotate(-4deg);
}
.shorts-stage-backdrop-overlay {
  background: radial-gradient(circle at 22% 22%, rgba(27, 183, 110, 0.12), transparent 28%), linear-gradient(180deg, rgba(5, 8, 16, 0.18), rgba(5, 8, 16, 0.88) 58%, rgba(5, 8, 16, 0.96));
}
body.shorts-route .topbar-public,
body.shorts-route .shorts-hero,
body.shorts-route .shorts-page-shell {
  position: relative;
  z-index: 1;
}

body.shorts-route .shorts-comments-overlay {
  position: fixed;
  inset: 0;
  z-index: 88;
}

body.shorts-route .shorts-comments-drawer {
  position: fixed;
  z-index: 96;
}
.short-ambient-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(5,8,16,0), rgba(5,8,16,.22) 30%, rgba(5,8,16,.78));
  z-index: 2;
}
.short-double-like {
  --heart-x: 50%;
  --heart-y: 50%;
  position: absolute;
  left: var(--heart-x);
  top: var(--heart-y);
  z-index: 5;
  width: 132px;
  height: 132px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.62);
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.34));
  pointer-events: none;
}
.short-double-like-heart {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 1;
}
.short-double-like-ripple {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.9);
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
  box-shadow: 0 0 0 10px rgba(255, 46, 99, 0.08);
}
.short-double-like.is-visible {
  animation: shortHeartBurst .86s cubic-bezier(.2,.8,.2,1) forwards;
}
.short-double-like.is-visible .short-double-like-heart {
  animation: shortHeartPop .86s cubic-bezier(.2,.8,.2,1) forwards;
}
.short-double-like.is-visible .short-double-like-ripple {
  animation: shortHeartRipple .86s ease forwards;
}
@keyframes shortHeartBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.62); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
  100% { opacity: 0; transform: translate(-50%, -57%) scale(1.18); }
}
@keyframes shortHeartPop {
  0% { transform: translate(-50%, -50%) scale(.6) rotate(-12deg); }
  24% { transform: translate(-50%, -50%) scale(1.18) rotate(0deg); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes shortHeartRipple {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  16% { opacity: .82; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.8); }
}
.short-action strong {
  font-size: 1.15rem;
  line-height: 1;
}
.short-action-like.is-live,
.short-action-button.is-live {
  background: rgba(10, 193, 145, 0.22);
  border-color: rgba(34, 197, 94, 0.42);
}
.short-card.is-active .short-action {
  transform: translateZ(0);
  animation: shortActionPulse .3s ease;
}
@keyframes shortActionPulse {
  0% { transform: scale(.98); }
  100% { transform: scale(1); }
}
.short-card.is-active .short-view-chip,
.short-card.is-active .short-author-inline {
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: 0 10px 32px rgba(2, 8, 23, 0.24);
}
.shorts-comments-overlay {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(4, 8, 16, 0.6);
  backdrop-filter: blur(10px);
}
.shorts-comments-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(430px, 100vw);
  z-index: 90;
  background: rgba(7, 11, 20, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -18px 0 60px rgba(2, 8, 23, 0.4);
  display: grid;
  grid-template-rows: auto 1fr;
}
.shorts-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.shorts-drawer-head h2 {
  margin: 6px 0 6px;
  font-size: 1.5rem;
}
.shorts-drawer-head p {
  margin: 0;
  color: #aebcd8;
}
.shorts-drawer-body {
  overflow: auto;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 16px;
}
.shorts-comments-list {
  display: grid;
  gap: 12px;
}
.shorts-comments-list .comment-card {
  background: rgba(10, 16, 30, 0.76);
}
.shorts-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.shorts-comment-card {
  margin: 0;
}
.shorts-comment-card .comment-form {
  display: grid;
  gap: 12px;
}
.shorts-comment-card {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.2), rgba(7, 11, 20, 0.96) 18%, rgba(7, 11, 20, 0.98));
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 12px;
  margin-top: 4px;
}
.short-comment-card .field-group textarea {
  min-height: 96px;
}
body.shorts-drawer-open {
  overflow: hidden;
}
.short-single-route .shorts-page-shell {
  padding-top: 10px;
}
.short-single-route .shorts-stack {
  max-width: 620px;
}
.short-single-route .shorts-load-more {
  display: none;
}
@media (max-width: 900px) {
  .shorts-stage-backdrop-next {
    width: 58vw;
    height: 34vh;
    inset: auto -8% 12% auto;
    opacity: .12;
  }
  .shorts-comments-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-height: min(76vh, calc(var(--app-height) - 44px));
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 60px rgba(2, 8, 23, 0.42);
  }
  .shorts-drawer-head {
    padding: 16px 16px 12px;
  }
  .shorts-drawer-body {
    padding: 14px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .shorts-drawer-actions {
    grid-template-columns: 1fr;
  }
}


/* Shorts mobile cleanup */
.short-mobile-copy {
  display: none;
  margin: 0 0 12px;
  color: #eef4ff;
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 32rem;
}

.short-title-heading {
  margin: 0 0 10px;
}

.short-caption-desktop {
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  body.shorts-route {
    --shorts-header-height: 56px;
  }

  body.shorts-route .topbar-public {
    position: fixed;
    background: linear-gradient(180deg, rgba(4, 8, 16, 0.72), rgba(4, 8, 16, 0));
    border-bottom: 0;
    backdrop-filter: none;
    box-shadow: none;
  }

  body.shorts-route .public-topbar-row {
    min-height: var(--shorts-header-height);
    padding-top: max(8px, env(safe-area-inset-top));
    padding-left: 10px;
    padding-right: 10px;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  body.shorts-route .topbar-left {
    width: 100%;
    justify-content: space-between;
  }

  body.shorts-route .brand {
    gap: 8px;
  }

  body.shorts-route .brand span:last-child,
  body.shorts-route .top-actions,
  body.shorts-route .top-action-link,
  body.shorts-route .button-small,
  body.shorts-route .short-top-meta,
  body.shorts-route .short-kicker,
  body.shorts-route .short-title-heading,
  body.shorts-route .short-caption-desktop,
  body.shorts-route .short-author-inline,
  body.shorts-route .short-author-row .button {
    display: none !important;
  }

  body.shorts-route .top-pill {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.78rem;
    border-radius: 999px;
    background: rgba(7, 12, 23, 0.5);
    border-color: rgba(255, 255, 255, 0.12);
  }

  body.shorts-route .short-card,
  body.shorts-route .short-media-shell,
  body.shorts-route .short-video {
    min-height: var(--app-height);
  }

  body.shorts-route .short-meta {
    left: 14px;
    right: 74px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    gap: 0;
  }

  body.shorts-route .short-mobile-copy {
    display: block;
    margin-bottom: 10px;
    max-width: 68vw;
    font-size: 0.94rem;
    line-height: 1.38;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  }

  body.shorts-route .short-author-row {
    gap: 8px;
    align-items: center;
  }

  body.shorts-route .short-author-link {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 1.08rem;
    font-weight: 800;
    color: #b9ffee;
    box-shadow: none;
  }

  body.shorts-route .short-view-chip {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.74rem;
    background: rgba(7, 12, 23, 0.66);
  }

  body.shorts-route .short-floating-actions {
    right: 10px;
    bottom: calc(108px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  body.shorts-route .short-action {
    min-width: 46px;
    width: 46px;
    padding: 8px 4px 9px;
    border-radius: 18px;
    background: rgba(7, 12, 23, 0.6);
    backdrop-filter: blur(12px);
  }

  body.shorts-route .short-action strong {
    font-size: 1.12rem;
    line-height: 1;
  }

  body.shorts-route .short-action span {
    font-size: 0.66rem;
    margin-top: 4px;
  }

  body.shorts-route .short-action-avatar {
    min-width: 46px;
    padding: 5px;
  }

  body.shorts-route .short-action-avatar span {
    display: none;
  }

  body.shorts-route .short-action-avatar .profile-badge {
    width: 36px;
    height: 36px;
  }

  body.shorts-route .shorts-comments-drawer::before {
    content: '';
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
  }

  body.shorts-route .shorts-drawer-head {
    padding-top: 22px;
  }
}

@media (max-width: 520px) {
  body.shorts-route .brand {
    min-width: auto;
  }

  body.shorts-route .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  body.shorts-route .topbar-left {
    gap: 6px;
  }

  body.shorts-route .top-pill {
    padding: 0 10px;
    font-size: 0.76rem;
  }

  body.shorts-route .short-meta {
    right: 68px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  body.shorts-route .short-mobile-copy {
    max-width: 63vw;
    font-size: 0.9rem;
  }

  body.shorts-route .short-floating-actions {
    right: 8px;
    bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body.shorts-route .short-action,
  body.shorts-route .short-action-avatar {
    min-width: 42px;
    width: 42px;
    border-radius: 16px;
  }

  body.shorts-route .short-action strong {
    font-size: 1.04rem;
  }

  body.shorts-route .short-action span {
    font-size: 0.62rem;
  }
}


/* Shorts stage 2 mobile refinement */
.shorts-mobile-topbar {
  display: none;
}
.shorts-mobile-topbar {
  transition: transform .28s ease, opacity .24s ease;
}
body.shorts-ui-hidden .shorts-mobile-topbar {
  opacity: 0;
  transform: translate3d(0, -16px, 0);
}

.shorts-drawer-handle {
  display: none;
}

.short-mobile-copy-wrap {
  display: none;
}

.short-mobile-copy-full {
  display: none;
}

.short-mobile-copy-wrap.is-expanded .short-mobile-copy-collapsed {
  display: none;
}

.short-mobile-copy-wrap.is-expanded .short-mobile-copy-full {
  display: inline;
}

.short-mobile-more {
  appearance: none;
  border: 0;
  background: transparent;
  color: #c9fff0;
  font-weight: 700;
  padding: 0;
  margin-top: 4px;
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  body.shorts-route {
    --shorts-header-height: 0px;
  }

  body.shorts-route .topbar-public {
    display: none !important;
  }

  body.shorts-route .shorts-mobile-topbar {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    z-index: 90;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    pointer-events: none;
  }

  body.shorts-route .shorts-mobile-topbar > * {
    pointer-events: auto;
  }

  body.shorts-route .shorts-mobile-tabs {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(8, 13, 24, 0.48);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }

  body.shorts-route .shorts-mobile-tab,
  body.shorts-route .shorts-mobile-edge {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #eef4ff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
  }

  body.shorts-route .shorts-mobile-tab.is-active {
    background: rgba(27, 214, 138, 0.95);
    color: #02150f;
  }

  body.shorts-route .shorts-mobile-edge {
    background: rgba(8, 13, 24, 0.52);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding-inline: 11px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }

  body.shorts-route .shorts-page-shell,
  body.shorts-route .shorts-page-shell .container,
  body.shorts-route .shorts-stack,
  body.shorts-route .short-card,
  body.shorts-route .short-media-shell,
  body.shorts-route .short-video {
    min-height: var(--app-height);
  }

  body.shorts-route .short-meta {
    left: 14px;
    right: 70px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    gap: 0;
  }

  body.shorts-route .short-mobile-copy-wrap {
    display: block;
    max-width: min(70vw, 340px);
    margin-bottom: 9px;
  }

  body.shorts-route .short-mobile-copy {
    display: block;
    margin: 0;
    color: #eef4ff;
    font-size: 0.94rem;
    line-height: 1.36;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
  }

  body.shorts-route .short-author-row {
    gap: 8px;
    align-items: center;
  }

  body.shorts-route .short-author-link {
    font-size: 1rem;
    line-height: 1;
  }

  body.shorts-route .short-view-chip {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.7rem;
    background: rgba(7, 12, 23, 0.62);
  }

  body.shorts-route .short-floating-actions {
    right: 8px;
    bottom: calc(94px + env(safe-area-inset-bottom));
    gap: 7px;
  }

  body.shorts-route .short-action {
    min-width: 42px;
    width: 42px;
    padding: 7px 4px 8px;
    border-radius: 16px;
    background: rgba(7, 12, 23, 0.48);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  }

  body.shorts-route .short-action strong {
    font-size: 1rem;
  }

  body.shorts-route .short-action span {
    font-size: 0.64rem;
    margin-top: 3px;
  }

  body.shorts-route .short-action-avatar {
    min-width: 42px;
    padding: 4px;
  }

  body.shorts-route .short-action-avatar .profile-badge {
    width: 34px;
    height: 34px;
  }

  body.shorts-route .shorts-comments-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: min(78vh, 720px);
    border-radius: 24px 24px 0 0;
    transform: translate3d(0, 102%, 0);
    padding-top: 8px;
  }

  body.shorts-route .shorts-comments-drawer.is-open {
    transform: translate3d(0, 0, 0);
  }

  body.shorts-route .shorts-drawer-head {
    padding-top: 4px;
    gap: 10px;
  }

  body.shorts-route .shorts-drawer-handle {
    display: block;
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 auto 6px;
  }

  body.shorts-route .shorts-drawer-head .icon-chip {
    min-height: 34px;
    padding: 0 12px;
  }

  body.shorts-route .shorts-drawer-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.shorts-ui-hidden .shorts-mobile-topbar {
    pointer-events: none;
  }
}


/* Shorts cleanup mobile real */
body.shorts-route .topbar-public,
body.shorts-route .shorts-hero {
  display: none !important;
}

body.shorts-route .short-top-meta {
  display: none !important;
}

body.shorts-route .shorts-mobile-topbar {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  z-index: 120;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

body.shorts-route .shorts-mobile-topbar > * {
  pointer-events: auto;
}

body.shorts-route .shorts-mobile-tabs {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.46);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

body.shorts-route .shorts-mobile-tab,
body.shorts-route .shorts-mobile-edge {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #eef4ff;
  text-decoration: none;
  font-weight: 700;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,13,24,.52);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

body.shorts-route .shorts-mobile-tab.is-active {
  background: rgba(27,214,138,.95);
  color: #02150f;
}

body.shorts-route .short-meta {
  left: 14px;
  right: 74px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  gap: 8px;
}

body.shorts-route .short-title-heading {
  display: none;
}

body.shorts-route .short-mobile-copy-wrap {
  display: block;
  max-width: min(64vw, 290px);
  margin-bottom: 4px;
}

body.shorts-route .short-mobile-copy {
  display: block;
  margin: 0;
  color: #eef4ff;
  font-size: .95rem;
  line-height: 1.34;
  text-shadow: 0 2px 18px rgba(0,0,0,.32);
}

body.shorts-route .short-author-row {
  gap: 8px;
  align-items: center;
}

body.shorts-route .short-author-link {
  font-size: 1.02rem;
  line-height: 1;
}

body.shorts-route .short-view-chip {
  min-height: 28px;
  padding: 0 8px;
  font-size: .72rem;
  background: rgba(7,12,23,.62);
}

body.shorts-route .short-floating-actions {
  right: 8px;
  bottom: calc(112px + env(safe-area-inset-bottom));
  gap: 8px;
}

body.shorts-route .short-action {
  min-width: 46px;
  width: 46px;
  padding: 7px 4px 8px;
  border-radius: 16px;
  background: rgba(7,12,23,.42);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

body.shorts-route .short-action strong {
  font-size: 1rem;
}

body.shorts-route .short-action span {
  font-size: .64rem;
  margin-top: 3px;
}

body.shorts-route .short-action-avatar {
  min-width: 46px;
  padding: 5px;
}

body.shorts-route .short-action-avatar span {
  display: none !important;
}

body.shorts-route .short-action-avatar .profile-badge {
  width: 36px;
  height: 36px;
}

@media (max-width: 900px) {
  body.shorts-route .shorts-mobile-topbar {
    top: max(8px, env(safe-area-inset-top));
    left: 8px;
    right: 8px;
  }

  body.shorts-route .shorts-mobile-edge {
    min-height: 32px;
    padding-inline: 10px;
    font-size: .78rem;
  }

  body.shorts-route .shorts-mobile-tab {
    min-height: 32px;
    padding-inline: 12px;
    font-size: .8rem;
  }

  body.shorts-route .short-meta {
    right: 68px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }

  body.shorts-route .short-mobile-copy-wrap {
    max-width: min(66vw, 250px);
  }

  body.shorts-route .short-floating-actions {
    right: 6px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    gap: 7px;
  }

  body.shorts-route .short-action,
  body.shorts-route .short-action-avatar {
    min-width: 42px;
    width: 42px;
  }

  body.shorts-route .short-action-avatar .profile-badge {
    width: 32px;
    height: 32px;
  }
}


/* Shorts comments/avatar restore patch */
@media (min-width: 901px) {
  .shorts-comments-overlay {
    display: none !important;
  }

  .shorts-comments-drawer {
    width: min(420px, 32vw);
    transform: translate3d(100%,0,0);
    transition: transform .24s ease, opacity .24s ease;
    opacity: 0;
    pointer-events: none;
  }

  body.shorts-drawer-open .shorts-comments-drawer {
    transform: translate3d(0,0,0);
    opacity: 1;
    pointer-events: auto;
  }

  body.shorts-drawer-open .shorts-page-shell .container {
    max-width: min(1280px, calc(100% - 440px));
    margin: 0 auto;
  }
}

body.shorts-route .short-action-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.shorts-route .short-action-avatar .profile-badge.has-avatar,
body.shorts-route .short-action-avatar .profile-badge.has-avatar img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.shorts-route .short-action-avatar .profile-badge.has-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .shorts-comments-overlay[hidden],
  .shorts-comments-drawer[hidden] {
    display: none !important;
  }

  body.shorts-drawer-open .shorts-comments-overlay {
    display: block !important;
  }

  body.shorts-drawer-open .shorts-comments-drawer {
    display: grid !important;
  }
}

/* Home + shorts refinement patch */
.hide-desktop {
  display: none;
}

body.home-route .billboard-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

body.home-route .billboard-metric-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #eef4ff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}


body.home-route .creator-spotlights {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

body.home-route .creator-spotlights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

body.home-route .creator-spotlights-head h2 {
  margin: 6px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: #f6fbff;
}

body.home-route .creator-spotlights-note {
  max-width: 240px;
  color: #8ea3c8;
  font-size: 0.8rem;
  line-height: 1.4;
}

body.home-route .creator-spotlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.home-route .creator-spotlight-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

body.home-route .creator-spotlight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52,211,153,0.28);
  background: linear-gradient(180deg, rgba(18, 227, 154, 0.09), rgba(255,255,255,0.05));
}

body.home-route .creator-spotlight-media,
body.home-route .feature-rail-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #07111f;
}

body.home-route .creator-spotlight-media {
  width: 118px;
  min-height: 124px;
  border-radius: 16px;
}

body.home-route .creator-spotlight-media img,
body.home-route .creator-spotlight-video,
body.home-route .feature-rail-thumb img,
body.home-route .feature-rail-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.home-route .creator-spotlight-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 12, 23, 0.78);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f6fbff;
  font-size: 0.8rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

body.home-route .creator-spotlight-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

body.home-route .creator-spotlight-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.home-route .creator-spotlight-badge .profile-badge {
  width: 34px;
  height: 34px;
}

body.home-route .creator-spotlight-author-text {
  display: grid;
  min-width: 0;
}

body.home-route .creator-spotlight-author-text strong,
body.home-route .creator-spotlight-author-text small,
body.home-route .creator-spotlight-title,
body.home-route .creator-spotlight-meta,
body.home-route .creator-spotlight-stats {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-route .creator-spotlight-author-text strong,
body.home-route .creator-spotlight-title {
  color: #f6fbff;
}

body.home-route .creator-spotlight-author-text small,
body.home-route .creator-spotlight-meta {
  color: #bfd0ef;
}

body.home-route .creator-spotlight-title {
  font-size: 0.98rem;
}

body.home-route .creator-spotlight-meta {
  font-size: 0.86rem;
}

body.home-route .creator-spotlight-stats {
  color: #8ea3c8;
  font-size: 0.78rem;
}

body.home-route .feature-rail {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

body.home-route .feature-rail-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

body.home-route .feature-rail-card:hover {
  transform: translateY(-1px);
  border-color: rgba(52,211,153,0.3);
  background: rgba(255,255,255,0.05);
}

body.home-route .feature-rail-thumb {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1020;
}

body.home-route .feature-rail-thumb img,
body.home-route .feature-rail-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-route .feature-rail-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.home-route .feature-rail-copy strong,
body.home-route .feature-rail-copy span,
body.home-route .feature-rail-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-route .feature-rail-copy strong {
  color: #f5f8ff;
  font-size: 0.98rem;
}

body.home-route .feature-rail-copy span {
  color: #c9d3ec;
  font-size: 0.87rem;
}

body.home-route .feature-rail-copy small {
  color: #9fb0d3;
  font-size: 0.78rem;
}

body.home-route .feed-grid {
  column-count: 4;
}

@media (max-width: 1280px) {
  body.home-route .feed-grid {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .hide-desktop {
    display: inline-flex;
  }

  body.home-route .public-topbar-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-block: 12px;
  }

  body.home-route .topbar-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  body.home-route .public-search,
  body.home-route .public-top-actions {
    grid-column: 1 / -1;
  }

  body.home-route .public-search {
    width: 100%;
    order: 3;
  }

  body.home-route .public-top-actions {
    display: none;
    order: 4;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(13,18,30,0.92);
  }

  body.home-route .public-top-actions.open {
    display: grid;
    gap: 8px;
  }

  body.home-route .billboard-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.home-route .billboard-copy,
  body.home-route .billboard-feature {
    border-radius: 20px;
  }

  body.home-route .billboard-copy {
    padding: 22px;
  }

  body.home-route .billboard-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  body.home-route .billboard-actions,
  body.home-route .billboard-metrics {
    gap: 8px;
  }

  body.home-route .billboard-actions .button,
  body.home-route .billboard-metric-pill {
    width: 100%;
    justify-content: center;
  }


  body.home-route .creator-spotlights-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.home-route .creator-spotlights-note {
    max-width: none;
  }

  body.home-route .creator-spotlights-grid {
    grid-template-columns: 1fr;
  }

  body.home-route .creator-spotlight-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  body.home-route .creator-spotlight-media {
    width: 92px;
    min-height: 104px;
  }

  body.home-route .hero-benefits {
    grid-template-columns: 1fr;
  }

  body.home-route .feature-media {
    min-height: 300px;
  }

  body.home-route .feature-card {
    height: auto;
  }

  body.home-route .feature-rail-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  body.home-route .feature-rail-thumb {
    width: 76px;
    height: 76px;
  }

  body.home-route .feed-grid {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  body.home-route .container {
    width: min(calc(100% - 20px), var(--container));
  }

  body.home-route .public-topbar-row {
    gap: 10px;
  }

  body.home-route .brand {
    min-width: 0;
    font-size: 1rem;
  }

  body.home-route .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.home-route .billboard {
    padding-top: 12px;
  }

  body.home-route .billboard-copy {
    padding: 18px;
  }


  body.home-route .creator-spotlight-card {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 8px;
  }

  body.home-route .creator-spotlight-media {
    width: 78px;
    min-height: 92px;
  }

  body.home-route .creator-spotlight-title {
    font-size: 0.92rem;
  }

  body.home-route .feature-media {
    min-height: 240px;
  }

  body.home-route .feed-grid {
    column-count: 1;
  }

  body.home-route .floating-submit-button {
    right: 14px;
    bottom: 16px;
  }
}

:root {
  --app-height: 100dvh;
}

body.shorts-route .shorts-page-shell {
  padding-top: 0;
  padding-bottom: 0;
}

body.shorts-route .shorts-stack {
  overscroll-behavior-y: contain;
}

body.shorts-route .short-card {
  scroll-margin-top: 0;
}

body.shorts-route .short-media-shell {
  touch-action: manipulation;
}

body.shorts-route .short-action,
body.shorts-route .short-action-avatar,
body.shorts-route .short-mobile-more,
body.shorts-route .shorts-drawer-head .icon-chip,
body.shorts-route .shorts-drawer-handle {
  cursor: pointer;
}

body.shorts-route .shorts-comments-overlay {
  opacity: 0;
  transition: opacity .24s ease;
}

body.shorts-route .shorts-comments-drawer {
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform .24s ease, opacity .24s ease;
}

body.shorts-route.shorts-drawer-open .shorts-comments-overlay,
body.shorts-drawer-open .shorts-comments-overlay {
  opacity: 1;
}

@media (min-width: 901px) {
  body.shorts-route .shorts-comments-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(430px, 100vw);
    transform: translate3d(102%, 0, 0);
    border-radius: 0;
  }

  body.shorts-route .shorts-comments-drawer.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
  }

  body.shorts-route .shorts-page-shell .container {
    width: min(calc(100% - 32px), 1320px);
  }
}

@media (max-width: 900px) {
  body.shorts-route .shorts-comments-drawer {
    transform: translate3d(0, 102%, 0);
  }

  body.shorts-route .shorts-comments-drawer.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
  }

  body.shorts-route .shorts-stack {
    gap: 0 !important;
  }

  body.shorts-route .short-card,
  body.shorts-route .short-media-shell,
  body.shorts-route .short-video {
    height: var(--app-height);
    min-height: var(--app-height);
  }

  body.shorts-route .short-media-shell {
    border: 0;
    border-radius: 0;
  }
}


body.shorts-route .shorts-comments-drawer .section-kicker {
  color: #9fb4d9;
}

body.shorts-route .shorts-comments-list {
  max-height: 100%;
}

body.shorts-route .shorts-comments-list .comment-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
}

body.shorts-route .shorts-comments-drawer .comment-feedback {
  margin-bottom: 12px;
}

@media (min-width: 901px) {
  body.shorts-route .shorts-comments-drawer {
    box-shadow: -24px 0 60px rgba(2, 8, 23, 0.46);
  }

  body.shorts-route .short-card.is-active .short-media-shell {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  }
}

.admin-batch-callout {
  margin: 0 0 20px;
}
.admin-batch-callout-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.admin-batch-callout-body h2 {
  margin: 8px 0 0;
}
.admin-batch-layout {
  display: grid;
  gap: 20px;
}
.admin-batch-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.admin-batch-hero {
  overflow: hidden;
}
.admin-batch-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
}
.admin-batch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(67, 232, 181, 0.12);
  border: 1px solid rgba(67, 232, 181, 0.2);
  color: #cffff1;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-batch-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}
.admin-batch-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.admin-batch-form {
  gap: 16px;
}
.admin-batch-field-row {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  gap: 14px;
}
.admin-batch-field-row > div {
  display: grid;
  gap: 8px;
}
.admin-batch-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}
.admin-batch-dropzone {
  min-height: 178px;
}
.admin-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-batch-queue-wrap {
  display: grid;
  gap: 18px;
}
.admin-batch-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.admin-batch-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(114, 132, 180, 0.16);
  background: rgba(10, 16, 28, 0.56);
}
.admin-batch-summary-card strong {
  font-size: 1.35rem;
  color: #fff;
}
.admin-batch-summary-card span {
  color: #9eb1d6;
}
.admin-batch-overall-progress {
  margin: 0;
}
.admin-batch-queue-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  text-align: center;
  padding: 24px;
  border-radius: 22px;
  border: 1px dashed rgba(114, 132, 180, 0.2);
  color: #9eb1d6;
  background: rgba(10, 16, 28, 0.35);
}
.admin-batch-queue {
  display: grid;
  gap: 12px;
}
.admin-batch-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(114, 132, 180, 0.16);
  background: rgba(10, 16, 28, 0.52);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.admin-batch-item[data-status="uploading"] {
  border-color: rgba(67, 232, 181, 0.28);
  background: rgba(10, 22, 28, 0.68);
}
.admin-batch-item[data-status="done"] {
  border-color: rgba(67, 232, 181, 0.24);
}
.admin-batch-item[data-status="error"] {
  border-color: rgba(255, 116, 116, 0.22);
}
.admin-batch-item-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.admin-batch-item-title {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  word-break: break-word;
}
.admin-batch-item-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9eb1d6;
  font-size: .92rem;
}
.admin-batch-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(114, 132, 180, 0.16);
}
.admin-batch-status {
  min-width: 110px;
  text-align: center;
  justify-content: center;
}
.admin-batch-status[data-status="queued"] {
  color: #dbe6ff;
}
.admin-batch-status[data-status="uploading"] {
  color: #dffff5;
  background: rgba(67, 232, 181, 0.14);
  border-color: rgba(67, 232, 181, 0.22);
}
.admin-batch-status[data-status="done"] {
  color: #dffff5;
  background: rgba(67, 232, 181, 0.14);
  border-color: rgba(67, 232, 181, 0.22);
}
.admin-batch-status[data-status="error"] {
  color: #ffdede;
  background: rgba(255, 95, 125, 0.12);
  border-color: rgba(255, 95, 125, 0.22);
}
.admin-batch-item-progress {
  display: grid;
  gap: 8px;
}
.admin-batch-item-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.admin-batch-item-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2be7ae, #4ca5ff 72%, #9157ff);
  transition: width .22s ease;
}
.admin-batch-item-feedback {
  color: #9eb1d6;
  font-size: .93rem;
  line-height: 1.55;
}
.admin-batch-item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-batch-item-links a {
  color: #7ee6ff;
  font-weight: 600;
}
@media (max-width: 1120px) {
  .admin-batch-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .admin-batch-hero-head,
  .admin-batch-callout-body,
  .admin-batch-item-head {
    flex-direction: column;
  }
  .admin-batch-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-batch-field-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .admin-batch-summary {
    grid-template-columns: 1fr;
  }
  .admin-batch-actions,
  .admin-batch-hero-actions {
    width: 100%;
  }
  .admin-batch-actions .button,
  .admin-batch-hero-actions .button,
  .admin-batch-callout-body .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.icon-chip.is-locked,
.share-button.is-locked,
.download-gate-link.is-disabled {
  opacity: .88;
  border-color: rgba(255,255,255,.14);
}

.icon-chip.is-ready,
.share-button.is-ready,
.download-gate-link.is-ready {
  border-color: rgba(54,227,156,.45);
  box-shadow: 0 0 0 1px rgba(54,227,156,.12) inset;
}

.download-hint {
  margin: 0 0 14px;
  color: rgba(220, 230, 255, .78);
  line-height: 1.55;
}

.download-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.download-gate-modal[hidden] {
  display: none;
}

.download-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 24, .72);
  backdrop-filter: blur(10px);
}

.download-gate-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(8,12,23,.98));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 28px 90px rgba(0,0,0,.38);
}

.download-gate-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.download-gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7deec0;
  background: rgba(54,227,156,.12);
  border: 1px solid rgba(54,227,156,.2);
}

.download-gate-panel h2 {
  margin: 14px 0 10px;
}

.download-gate-panel p {
  color: rgba(220, 230, 255, .8);
  line-height: 1.65;
}

.download-gate-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 14px;
}

.download-gate-status {
  margin: 0 0 16px;
  font-weight: 700;
  color: #9be6c8;
}

.download-gate-link {
  width: 100%;
  justify-content: center;
}

.download-gate-note {
  margin-top: 14px;
  font-size: .92rem;
  color: rgba(220,230,255,.62);
}

body.download-gate-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .download-gate-modal {
    align-items: end;
    padding: 0;
  }

  .download-gate-panel {
    width: 100%;
    border-radius: 26px 26px 0 0;
    padding: 24px 18px 20px;
  }

  .download-gate-share-grid {
    grid-template-columns: 1fr;
  }
}
