: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; color-scheme: dark; }
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 select,
select {
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  background-color: #161b2b;
  background-image: linear-gradient(45deg, transparent 50%, rgba(238,242,255,0.9) 50%), linear-gradient(135deg, rgba(238,242,255,0.9) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
select[multiple],
select[size] {
  background-image: none;
  padding-right: 14px;
}
select option,
select optgroup {
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #eef2ff !important;
}
select option:hover,
select option:focus,
select option:checked,
select option:active {
  background: #24314f !important;
  background-color: #24314f !important;
  color: #ffffff !important;
}
select option[value=""],
select option[disabled] {
  color: #cbd5e1 !important;
}
.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;
}
.profile-filter-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.profile-content-tabs {
  flex-wrap: wrap;
  justify-content: flex-end;
  width: min(100%, 620px);
}
.profile-content-tabs .feed-mode-tab {
  min-width: 132px;
  min-height: 58px;
  padding: 10px 16px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}
.profile-tab-title {
  display: block;
}
.profile-tab-count {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  color: #97a2ba;
}
.profile-content-tabs .feed-mode-tab.is-active .profile-tab-count {
  color: #dce4f8;
}
.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;
  }
  .profile-filter-stack {
    align-items: stretch;
    width: 100%;
  }
  .profile-content-tabs {
    justify-content: stretch;
    gap: 8px;
  }
  .profile-content-tabs .feed-mode-tab {
    flex: 1 1 calc(50% - 8px);
    min-width: calc(50% - 8px);
  }
}

.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%;
  }
}

.aniclips-hero {
  padding: 28px 0 14px;
}
.aniclips-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: stretch;
}
.aniclips-hero-actions {
  display: grid;
  gap: 16px;
  align-content: start;
}
.aniclips-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;
}
.aniclips-tip-card strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
}
.aniclips-page-shell {
  padding: 8px 0 46px;
}
.aniclips-stack {
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
}
.aniclip-card {
  position: relative;
  scroll-snap-align: start;
}
.aniclip-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);
}
.aniclip-video {
  width: 100%;
  height: 100%;
  min-height: 84vh;
  object-fit: cover;
  display: block;
  background: #000;
}
.aniclip-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;
}
.aniclip-top-meta {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 86px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 3;
}
.aniclip-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.1;
  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;
}
.aniclip-floating-actions {
  position: absolute;
  right: 18px;
  bottom: 112px;
  z-index: 3;
  display: grid;
  gap: 12px;
}
.aniclip-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);
}
.aniclip-action span {
  font-size: .78rem;
  color: #d4e4ff;
}
.aniclip-action-button {
  cursor: pointer;
}
.aniclip-action-button.is-live {
  background: rgba(10, 193, 145, 0.22);
  border-color: rgba(34, 197, 94, 0.45);
}
.aniclip-meta {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  color: #fff;
}
.aniclip-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;
}
.aniclip-meta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.08;
}
.aniclip-meta h2 a,
.aniclip-author-link {
  color: inherit;
  text-decoration: none;
}
.aniclip-meta p {
  margin: 0 0 12px;
  max-width: calc(100% - 82px);
  color: #e0ebff;
  line-height: 1.6;
}
.aniclip-author-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.aniclip-author-link {
  font-weight: 700;
  color: #9cebd2;
}
.aniclip-card.is-active .aniclip-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) {
  .aniclips-stack {
    scroll-snap-type: y proximity;
  }
}
@media (max-width: 900px) {
  .aniclips-hero-row {
    grid-template-columns: 1fr;
  }
  .aniclip-media-shell,
  .aniclip-video {
    min-height: 78vh;
  }
}
@media (max-width: 640px) {
  .aniclips-page-shell .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .aniclip-media-shell,
  .aniclip-video {
    min-height: 76vh;
    border-radius: 22px;
  }
  .aniclip-meta {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .aniclip-meta p {
    max-width: 100%;
    font-size: .94rem;
  }
  .aniclip-floating-actions {
    right: 12px;
    bottom: 120px;
  }
  .aniclip-top-meta {
    top: 12px;
    left: 12px;
  }
}


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

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

body.aniclips-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.aniclips-route .aniclips-page-shell {
  overscroll-behavior-y: contain;
}

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

body.aniclips-route .aniclip-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

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

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

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

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

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

.aniclip-author-inline,
.aniclip-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;
}

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

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

.aniclip-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;
}

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

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

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

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

.aniclip-pill-muted::before {
  font-size: .82rem;
  line-height: 1;
}

.aniclip-card [data-aniclip-state] {
  font-size: .82rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

  body.aniclips-route .aniclip-author-row {
    gap: 10px;
  }

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

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

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

  body.aniclips-route .aniclip-action span {
    font-size: 0.72rem;
  }

  body.aniclips-route .aniclip-action-avatar {
    min-width: 56px;
  }

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

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

  body.aniclips-route .aniclips-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.aniclips-route .public-footer {
    display: none;
  }
}

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

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

  body.aniclips-route .aniclip-meta {
    right: 76px;
  }

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

/* Shorts stage immersive */
.aniclips-stage-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aniclips-stage-backdrop-main,
.aniclips-stage-backdrop-next,
.aniclips-stage-backdrop-overlay {
  position: absolute;
  inset: 0;
}
.aniclips-stage-backdrop-main,
.aniclips-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;
}
.aniclips-stage-backdrop-next {
  inset: 8% -12% auto auto;
  width: 44vw;
  height: 54vh;
  border-radius: 32px;
  opacity: .18;
  transform: scale(1.02) rotate(-4deg);
}
.aniclips-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.aniclips-route .topbar-public,
body.aniclips-route .aniclips-hero,
body.aniclips-route .aniclips-page-shell {
  position: relative;
  z-index: 1;
}

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

body.aniclips-route .aniclips-comments-drawer {
  position: fixed;
  z-index: 96;
}
.aniclip-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;
}
.aniclip-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;
}
.aniclip-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;
}
.aniclip-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);
}
.aniclip-double-like.is-visible {
  animation: shortHeartBurst .86s cubic-bezier(.2,.8,.2,1) forwards;
}
.aniclip-double-like.is-visible .aniclip-double-like-heart {
  animation: shortHeartPop .86s cubic-bezier(.2,.8,.2,1) forwards;
}
.aniclip-double-like.is-visible .aniclip-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); }
}
.aniclip-action strong {
  font-size: 1.15rem;
  line-height: 1;
}
.aniclip-action-like.is-live,
.aniclip-action-button.is-live {
  background: rgba(10, 193, 145, 0.22);
  border-color: rgba(34, 197, 94, 0.42);
}
.aniclip-card.is-active .aniclip-action {
  transform: translateZ(0);
  animation: shortActionPulse .3s ease;
}
@keyframes shortActionPulse {
  0% { transform: scale(.98); }
  100% { transform: scale(1); }
}
.aniclip-card.is-active .aniclip-view-chip,
.aniclip-card.is-active .aniclip-author-inline {
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: 0 10px 32px rgba(2, 8, 23, 0.24);
}
.aniclips-comments-overlay {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(4, 8, 16, 0.6);
  backdrop-filter: blur(10px);
}
.aniclips-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;
}
.aniclips-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.aniclips-drawer-head h2 {
  margin: 6px 0 6px;
  font-size: 1.5rem;
}
.aniclips-drawer-head p {
  margin: 0;
  color: #aebcd8;
}
.aniclips-drawer-body {
  overflow: auto;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 16px;
}
.aniclips-comments-list {
  display: grid;
  gap: 12px;
}
.aniclips-comments-list .comment-card {
  background: rgba(10, 16, 30, 0.76);
}
.aniclips-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.aniclip-comment-card {
  margin: 0;
}
.aniclip-comment-card .comment-form {
  display: grid;
  gap: 12px;
}
.aniclip-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;
}
.aniclip-comment-card .field-group textarea {
  min-height: 96px;
}
body.aniclips-drawer-open {
  overflow: hidden;
}
.aniclip-single-route .aniclips-page-shell {
  padding-top: 10px;
}
.aniclip-single-route .aniclips-stack {
  max-width: 620px;
}
.aniclip-single-route .aniclips-load-more {
  display: none;
}
@media (max-width: 900px) {
  .aniclips-stage-backdrop-next {
    width: 58vw;
    height: 34vh;
    inset: auto -8% 12% auto;
    opacity: .12;
  }
  .aniclips-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);
  }
  .aniclips-drawer-head {
    padding: 16px 16px 12px;
  }
  .aniclips-drawer-body {
    padding: 14px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .aniclips-drawer-actions {
    grid-template-columns: 1fr;
  }
}


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

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

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

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

  body.aniclips-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.aniclips-route .public-topbar-row {
    min-height: var(--aniclips-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.aniclips-route .topbar-left {
    width: 100%;
    justify-content: space-between;
  }

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

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

  body.aniclips-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.aniclips-route .aniclip-card,
  body.aniclips-route .aniclip-media-shell,
  body.aniclips-route .aniclip-video {
    min-height: var(--app-height);
  }

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

  body.aniclips-route .aniclip-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.aniclips-route .aniclip-author-row {
    gap: 8px;
    align-items: center;
  }

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

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

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

  body.aniclips-route .aniclip-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.aniclips-route .aniclip-action strong {
    font-size: 1.12rem;
    line-height: 1;
  }

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

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

  body.aniclips-route .aniclip-action-avatar span {
    display: none;
  }

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

  body.aniclips-route .aniclips-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.aniclips-route .aniclips-drawer-head {
    padding-top: 22px;
  }
}

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

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

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

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

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

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

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

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

  body.aniclips-route .aniclip-action strong {
    font-size: 1.04rem;
  }

  body.aniclips-route .aniclip-action span {
    font-size: 0.62rem;
  }
}


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

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

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

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

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

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

.aniclip-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.aniclips-route {
    --aniclips-header-height: 0px;
  }

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

  body.aniclips-route .aniclips-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.aniclips-route .aniclips-mobile-topbar > * {
    pointer-events: auto;
  }

  body.aniclips-route .aniclips-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.aniclips-route .aniclips-mobile-tab,
  body.aniclips-route .aniclips-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.aniclips-route .aniclips-mobile-tab.is-active {
    background: rgba(27, 214, 138, 0.95);
    color: #02150f;
  }

  body.aniclips-route .aniclips-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.aniclips-route .aniclips-page-shell,
  body.aniclips-route .aniclips-page-shell .container,
  body.aniclips-route .aniclips-stack,
  body.aniclips-route .aniclip-card,
  body.aniclips-route .aniclip-media-shell,
  body.aniclips-route .aniclip-video {
    min-height: var(--app-height);
  }

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

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

  body.aniclips-route .aniclip-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.aniclips-route .aniclip-author-row {
    gap: 8px;
    align-items: center;
  }

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

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

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

  body.aniclips-route .aniclip-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.aniclips-route .aniclip-action strong {
    font-size: 1rem;
  }

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

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

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

  body.aniclips-route .aniclips-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.aniclips-route .aniclips-comments-drawer.is-open {
    transform: translate3d(0, 0, 0);
  }

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

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

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

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

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


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

body.aniclips-route .aniclip-top-meta {
  display: none !important;
}

body.aniclips-route .aniclips-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.aniclips-route .aniclips-mobile-topbar > * {
  pointer-events: auto;
}

body.aniclips-route .aniclips-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.aniclips-route .aniclips-mobile-tab,
body.aniclips-route .aniclips-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.aniclips-route .aniclips-mobile-tab.is-active {
  background: rgba(27,214,138,.95);
  color: #02150f;
}

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

body.aniclips-route .aniclip-title-heading {
  display: none;
}

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

body.aniclips-route .aniclip-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.aniclips-route .aniclip-author-row {
  gap: 8px;
  align-items: center;
}

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

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

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

body.aniclips-route .aniclip-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.aniclips-route .aniclip-action strong {
  font-size: 1rem;
}

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

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

body.aniclips-route .aniclip-action-avatar span {
  display: none !important;
}

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

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

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

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

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

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

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

  body.aniclips-route .aniclip-action,
  body.aniclips-route .aniclip-action-avatar {
    min-width: 42px;
    width: 42px;
  }

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


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

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

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

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

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

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

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

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

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

  body.aniclips-drawer-open .aniclips-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 .billboard-v3 {
  position: relative;
}

body.home-route .billboard-v3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 20px;
  align-items: stretch;
}

body.home-route .billboard-v3-copy,
body.home-route .billboard-v3-stage {
  min-height: 100%;
}

body.home-route .billboard-v3-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

body.home-route .billboard-actions-v3 {
  margin-top: -2px;
}

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

body.home-route .billboard-stat-card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  box-shadow: 0 14px 36px rgba(0,0,0,0.16);
}

body.home-route .billboard-stat-card strong {
  color: #f7fbff;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1;
}

body.home-route .billboard-stat-card span {
  color: #f1f6ff;
  font-weight: 700;
  font-size: 0.92rem;
}

body.home-route .billboard-stat-card small {
  color: #97aad1;
  font-size: 0.8rem;
  line-height: 1.45;
}

body.home-route .billboard-v3-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

body.home-route .billboard-v3-section-head.is-compact {
  margin-bottom: 10px;
}

body.home-route .billboard-v3-section-head h2 {
  margin: 6px 0 0;
  color: #f6fbff;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

body.home-route .billboard-v3-head-note {
  max-width: 260px;
  color: #8fa3cb;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: right;
}

body.home-route .billboard-v3-creators {
  display: grid;
  gap: 12px;
}

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

body.home-route .billboard-creator-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  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 14px 34px rgba(0,0,0,0.16);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

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

body.home-route .billboard-creator-media,
body.home-route .billboard-stage-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #081120;
}

body.home-route .billboard-creator-media {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
}

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

body.home-route .billboard-creator-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

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

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

body.home-route .billboard-creator-user,
body.home-route .billboard-stage-copy {
  display: grid;
  min-width: 0;
}

body.home-route .billboard-creator-user strong,
body.home-route .billboard-creator-user small,
body.home-route .billboard-creator-title,
body.home-route .billboard-creator-stats,
body.home-route .billboard-stage-copy strong,
body.home-route .billboard-stage-copy span,
body.home-route .billboard-stage-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-route .billboard-creator-user strong,
body.home-route .billboard-creator-title,
body.home-route .billboard-stage-copy strong {
  color: #f7fbff;
}

body.home-route .billboard-creator-user strong {
  font-size: 0.92rem;
}

body.home-route .billboard-creator-user small,
body.home-route .billboard-stage-copy span {
  color: #b9c9e8;
  font-size: 0.82rem;
}

body.home-route .billboard-creator-title {
  font-size: 1rem;
}

body.home-route .billboard-creator-stats,
body.home-route .billboard-stage-copy small {
  color: #93a6cc;
  font-size: 0.77rem;
}

body.home-route .billboard-stage-shell {
  display: grid;
  gap: 14px;
  min-height: 100%;
}

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

body.home-route .feature-meta-v3 {
  gap: 10px;
}

body.home-route .billboard-stage-list-wrap {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.022));
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

body.home-route .billboard-stage-list {
  display: grid;
  gap: 10px;
}

body.home-route .billboard-stage-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

body.home-route .billboard-stage-item:hover {
  transform: translateY(-1px);
  border-color: rgba(52,211,153,0.28);
  background: rgba(255,255,255,0.048);
}

body.home-route .billboard-stage-thumb {
  width: 86px;
  height: 86px;
  border-radius: 14px;
}

@media (max-width: 1180px) {
  body.home-route .billboard-v3-grid {
    grid-template-columns: 1fr;
  }

  body.home-route .billboard-v3-stage {
    order: -1;
  }
}



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,
  body.home-route .billboard-v3-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,
  body.home-route .billboard-actions-v3 {
    gap: 8px;
  }

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

  body.home-route .billboard-stat-grid,
  body.home-route .billboard-creator-strip {
    grid-template-columns: 1fr;
  }

  body.home-route .billboard-v3-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.home-route .billboard-v3-head-note {
    max-width: none;
    text-align: left;
  }

  body.home-route .billboard-stage-list-wrap {
    padding: 14px;
  }

  body.home-route .billboard-stage-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  body.home-route .billboard-stage-thumb {
    width: 72px;
    height: 72px;
  }

  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: 680px) {
  body.home-route .billboard-stat-card {
    padding: 14px 16px;
  }

  body.home-route .billboard-creator-card {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
  }

  body.home-route .billboard-creator-media {
    width: 84px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }

  body.home-route .billboard-creator-top {
    gap: 7px;
  }

  body.home-route .billboard-creator-title {
    font-size: 0.94rem;
  }

  body.home-route .feed-card,
  body.home-route .feed-card-v2 {
    margin-bottom: 14px;
    border-radius: 18px;
  }

  body.home-route .feed-media-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #070b12;
  }

  body.home-route .feed-card-aniclip .feed-media-shell {
    max-height: min(68svh, 560px);
  }

  body.home-route .feed-card-aniclip .feed-video,
  body.home-route .feed-card-aniclip .feed-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(68svh, 560px);
    object-fit: contain;
    background: #070b12;
  }

  body.home-route .feed-card:not(.feed-card-aniclip) .feed-media-shell {
    max-height: min(52svh, 320px);
  }

  body.home-route .feed-card:not(.feed-card-aniclip) .feed-video,
  body.home-route .feed-card:not(.feed-card-aniclip) .feed-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(52svh, 320px);
    object-fit: contain;
    background: #070b12;
  }

  body.home-route .feed-card-v2 .feed-media-overlay {
    padding: 10px;
  }

  body.home-route .feed-card-topline {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }

  body.home-route .feed-author-link,
  body.home-route .feed-author-link.is-static {
    min-width: 0;
    max-width: 100%;
  }

  body.home-route .feed-author-link span:last-child,
  body.home-route .feed-author-line,
  body.home-route .feed-tags-v2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.home-route .feed-card-v2 .feed-meta-v2 {
    padding: 11px 12px 12px;
  }

  body.home-route .feed-card-v2 .feed-meta-v2 h3 {
    font-size: .98rem;
    line-height: 1.25;
  }

  body.home-route .feed-card-v2 .feed-meta-v2 p {
    font-size: .86rem;
    -webkit-line-clamp: 2;
  }

  body.home-route .feed-footer-v2,
  body.home-route .feed-reactions {
    gap: 6px;
  }

  body.home-route .reaction-pill {
    min-height: 30px;
    padding: 0 10px;
    font-size: .8rem;
  }

  body.home-route .fullscreen-hint {
    min-height: 34px;
    padding: 0 12px;
    font-size: .82rem;
  }
}

@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.aniclips-route .aniclips-page-shell {
  padding-top: 0;
  padding-bottom: 0;
}

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

body.aniclips-route .aniclip-card {
  scroll-margin-top: 0;
}

body.aniclips-route .aniclip-media-shell {
  touch-action: manipulation;
}

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

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

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

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

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

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

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

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

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

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

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

  body.aniclips-route .aniclip-media-shell {
    border: 0;
    border-radius: 0;
  }
}


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

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

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

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

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

  body.aniclips-route .aniclip-card.is-active .aniclip-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;
  }
}

/* Post page revamp: stronger creator row, cleaner actions, better ad positions */
.post-view-revamp {
  padding: 26px 0 24px;
}

.post-view-grid-revamp {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.78fr);
  gap: 24px;
}

.post-main-card-revamp,
.post-sidebar-card-revamp,
.comments-list-wrap-revamp,
.comment-form-card-revamp {
  background: linear-gradient(180deg, rgba(18, 22, 34, 0.96), rgba(12, 15, 24, 0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.26);
}

.post-media-stage-revamp {
  overflow: hidden;
}

.post-primary-media-revamp {
  min-height: 360px;
  max-height: 76vh;
}

.post-media-overlay-meta {
  position: absolute;
  left: 18px;
  top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 3;
}

.post-overlay-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(8, 11, 17, 0.78);
  border: 1px solid rgba(255,255,255,0.10);
  color: #ecf2ff;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.post-overlay-chip-accent {
  background: rgba(32, 201, 151, 0.18);
  border-color: rgba(32, 201, 151, 0.28);
  color: #8df1cb;
}

.post-media-toolbar-revamp {
  right: 16px;
  bottom: 16px;
}

.post-content-block-revamp {
  padding: 22px 24px 24px;
  display: grid;
  gap: 20px;
}

.post-kicker-row-revamp {
  margin-bottom: 0;
}

.post-inline-metas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.post-title-cluster {
  display: grid;
  gap: 10px;
}

.post-caption-revamp {
  margin: 0;
  max-width: 920px;
}

.post-channel-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(84, 233, 184, 0.06));
  border: 1px solid rgba(255,255,255,0.06);
}

.post-channel-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.post-channel-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.post-channel-copy-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.post-channel-copy-top strong {
  font-size: 1.12rem;
}

.post-channel-handle {
  color: #8ef0cb;
  font-weight: 700;
}

.post-channel-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-channel-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #dfe8ff;
  font-size: .92rem;
}

.post-channel-stats strong {
  margin-right: 6px;
  color: #fff;
}

.post-channel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button-subscribe {
  min-width: 170px;
}

.post-quick-actions-strip {
  display: grid;
  gap: 16px;
  align-items: start;
}

.post-metrics-inline-revamp span {
  min-height: 40px;
}

.post-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.post-panel-head-tight {
  margin-bottom: 14px;
}

.post-panel-head h2 {
  margin: 0;
  font-size: 1.18rem;
}

.post-panel-head p {
  margin: 8px 0 0;
}

.post-panel-link {
  color: #8ef0cb;
  font-weight: 700;
  white-space: nowrap;
}

.post-engagement-panel {
  padding: 20px;
  border-radius: 22px;
  background: rgba(7, 11, 17, 0.44);
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  gap: 16px;
}

.reaction-button-grid-revamp {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-tag-row-revamp {
  margin-top: 0;
}

.post-inline-ad-wrap {
  padding: 0 24px 24px;
}

.post-inline-ad-wrap .ad-section-block {
  margin: 0;
}

.post-inline-ad-wrap .ad-slot {
  position: relative;
}

.post-inline-ad-wrap .ad-slot::before {
  content: 'Patrocinado';
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(8,11,17,0.82);
  color: #9fb0d5;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.post-sidebar-card-revamp {
  padding: 20px;
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 100px);
  overflow: auto;
}

.creator-box-revamp,
.share-panel-revamp,
.reaction-summary-box-revamp,
.report-box-revamp {
  background: rgba(7, 10, 16, 0.46);
}

.creator-box-head-revamp {
  align-items: center;
}

.creator-box-head-revamp h2 {
  margin: 0;
  font-size: 1.12rem;
}

.creator-box-head-revamp p {
  margin: 6px 0 0;
}

.creator-box-bio {
  margin-top: 12px !important;
}

.creator-stats-revamp {
  gap: 10px;
}

.creator-stats-revamp span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.creator-actions-revamp {
  justify-content: flex-start;
}

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

.share-button-strong {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(32,201,151,0.18), rgba(90,100,255,0.16));
  border-color: rgba(84, 233, 184, 0.3);
}

.post-sidebar-ad-wrap {
  display: grid;
  gap: 14px;
}

.post-sidebar-ad-wrap .ad-section {
  margin: 0;
  background: rgba(7, 10, 16, 0.46);
}

.post-related-box-revamp {
  background: rgba(7, 10, 16, 0.46);
}

.post-related-list {
  display: grid;
  gap: 12px;
}

.post-related-card {
  display: block;
}

.post-related-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.post-related-link:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(255,255,255,0.045);
}

.post-related-thumb {
  position: relative;
  display: block;
  min-height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5,9,17,0.94), rgba(10,14,24,0.98));
}

.post-related-thumb-media,
.post-related-thumb-video,
.post-related-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-related-thumb-fallback {
  width: 100%;
  height: 100%;
  min-height: 92px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.82);
  font-size: 1.35rem;
  background: radial-gradient(circle at top, rgba(84,233,184,0.18), transparent 55%), linear-gradient(180deg, rgba(5,9,17,0.98), rgba(11,16,28,1));
}

.post-related-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.post-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-related-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dfe9ff;
  font-size: .73rem;
  font-weight: 800;
}

.post-related-chip-accent {
  color: #8df1cb;
  border-color: rgba(32,201,151,0.24);
  background: rgba(32,201,151,0.14);
}

.post-related-title,
.post-related-meta,
.post-related-stats {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-related-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.35;
}

.post-related-title {
  color: #f6fbff;
  font-size: .98rem;
}

.post-related-meta {
  color: #b8c8e8;
  font-size: .84rem;
}

.post-related-stats {
  color: #8ea3c8;
  font-size: .78rem;
}

.report-form select,
.report-form textarea,
.report-form input {
  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;
}

.comments-section-revamp {
  padding-top: 2px;
}

.comments-layout-revamp {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
}

.comments-list-wrap-revamp,
.comment-form-card-revamp {
  min-height: 100%;
}

.comments-header-row-revamp {
  align-items: flex-start;
}

.comments-subtitle {
  margin: 10px 0 0;
  color: #aebce0;
  line-height: 1.65;
}

.comments-list-revamp {
  margin-top: 6px;
}

.comment-form-card-revamp {
  position: sticky;
  top: 82px;
}

.post-sidebar-card-revamp::-webkit-scrollbar,
.comment-form-card-revamp::-webkit-scrollbar {
  width: 8px;
}

.post-sidebar-card-revamp::-webkit-scrollbar-thumb,
.comment-form-card-revamp::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}

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

  .post-sidebar-card-revamp,
  .comment-form-card-revamp {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 840px) {
  .reaction-button-grid-revamp {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-channel-bar {
    grid-template-columns: 1fr;
  }

  .post-channel-actions {
    justify-content: flex-start;
  }

  .post-inline-metas {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .post-view-revamp {
    padding-top: 18px;
  }

  .post-main-card-revamp,
  .post-sidebar-card-revamp,
  .comments-list-wrap-revamp,
  .comment-form-card-revamp {
    border-radius: 20px;
  }

  .post-primary-media-revamp {
    min-height: 240px;
    max-height: 56vh;
  }

  .post-content-block-revamp {
    padding: 16px;
    gap: 16px;
  }

  .post-inline-ad-wrap {
    padding: 0 16px 16px;
  }

  .post-channel-main {
    align-items: flex-start;
    gap: 12px;
  }

  .post-channel-copy-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .post-channel-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .post-channel-actions .button {
    width: 100%;
    min-width: 0;
  }

  .post-channel-stats,
  .post-quick-buttons,
  .post-metrics-inline-revamp,
  .creator-stats-revamp,
  .creator-actions-revamp {
    gap: 8px;
  }

  .post-metrics-inline-revamp {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-metrics-inline-revamp span,
  .post-channel-stats span,
  .creator-stats-revamp span {
    font-size: .86rem;
  }

  .reaction-button-grid-revamp {
    grid-template-columns: 1fr 1fr;
  }

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

  .share-button-strong {
    grid-column: 1 / -1;
  }

  .post-panel-head,
  .comments-header-row-revamp {
    flex-direction: column;
  }

  .post-panel-link {
    white-space: normal;
  }

  .comments-list-wrap-revamp,
  .comment-form-card-revamp,
  .post-sidebar-card-revamp {
    padding: 16px;
  }

  .post-related-link {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
  }

  .post-related-thumb,
  .post-related-thumb-fallback {
    min-height: 84px;
  }

  .post-related-copy {
    gap: 5px;
  }

  .post-related-stats {
    white-space: normal;
    line-height: 1.45;
  }
}


@media (max-width: 920px) {
  .post-view-grid-revamp {
    gap: 18px;
  }

  .post-sidebar-card-revamp {
    display: grid;
    gap: 16px;
  }

  .post-media-stage-revamp {
    border-radius: 20px 20px 0 0;
  }

  .post-content-block-revamp {
    gap: 18px;
  }
}


/* Post page mobile polish and safer protected media layout */
@media (max-width: 680px) {
  .public-topbar-row {
    gap: 10px;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .topbar-left {
    gap: 10px;
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .public-top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .top-action-link {
    min-height: 40px;
    width: 100%;
    justify-content: center;
    font-size: .96rem;
    padding: 0 10px;
  }

  .post-view-revamp {
    padding-top: 14px;
  }

  .post-view-grid-revamp {
    gap: 14px;
  }

  .post-media-stage-revamp {
    border-radius: 18px 18px 0 0;
  }

  .post-primary-media-revamp {
    min-height: 0;
    max-height: min(68svh, 540px);
    aspect-ratio: 9 / 16;
  }

  .post-media-overlay-meta {
    left: 12px;
    top: 12px;
    gap: 8px;
  }

  .post-overlay-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: .8rem;
  }

  .post-media-toolbar-revamp {
    right: 10px;
    bottom: 10px;
  }

  .post-media-toolbar-revamp .icon-chip {
    min-height: 38px;
    padding: 0 12px;
    font-size: .94rem;
  }

  .post-content-block-revamp {
    padding: 14px;
    gap: 14px;
  }

  .post-kicker-row-revamp {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .post-inline-metas {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .post-content-block-revamp h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
    line-height: 1.05;
  }

  .post-caption-revamp {
    font-size: .98rem;
    line-height: 1.55;
  }

  .post-channel-bar {
    padding: 14px;
    gap: 14px;
  }

  .post-channel-main {
    align-items: flex-start;
    gap: 12px;
  }

  .post-channel-copy {
    width: 100%;
    gap: 8px;
  }

  .post-channel-copy-top strong,
  .post-author-link {
    font-size: 1.04rem;
  }

  .post-channel-copy-top {
    width: 100%;
  }

  .post-channel-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .post-channel-stats span {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    font-size: .84rem;
  }

  .post-channel-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .post-channel-actions .button,
  .button-subscribe {
    width: 100%;
    min-width: 0;
  }

  .post-quick-actions-strip {
    gap: 12px;
  }

  .post-metrics-inline-revamp {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .post-metrics-inline-revamp span {
    min-height: 38px;
    justify-content: center;
    font-size: .95rem;
    padding: 0 10px;
  }

  .post-quick-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .post-quick-buttons .icon-chip {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    font-size: .94rem;
  }

  .post-engagement-panel {
    padding: 16px;
    gap: 14px;
  }

  .post-panel-head h2 {
    font-size: 1.05rem;
  }

  .reaction-button-grid-revamp {
    grid-template-columns: 1fr;
  }

  .post-sidebar-card-revamp,
  .comments-list-wrap-revamp,
  .comment-form-card-revamp {
    padding: 14px;
  }

  .share-grid-revamp {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .share-grid-revamp .share-button {
    min-height: 42px;
    padding: 0 10px;
    font-size: .92rem;
  }

  .post-related-list {
    gap: 10px;
  }

  .post-related-link {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
  }

  .post-related-thumb {
    flex: 0 0 86px;
    width: 86px;
    max-width: 86px;
    min-width: 86px;
    height: 128px;
    min-height: 128px;
  }

  .post-related-thumb-media,
  .post-related-thumb-video,
  .post-related-thumb video {
    display: block;
  }

  .post-related-copy {
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
  }

  .post-related-chips {
    gap: 4px;
  }

  .post-related-chip {
    min-height: 22px;
    padding: 0 7px;
    font-size: .68rem;
  }

  .post-related-title {
    font-size: .92rem;
    line-height: 1.3;
  }

  .post-related-meta {
    font-size: .8rem;
  }

  .post-related-stats {
    font-size: .76rem;
    line-height: 1.35;
  }

  .comments-subtitle {
    font-size: .92rem;
    line-height: 1.5;
  }
}

@media (max-width: 560px) {
  body.home-route .feed-card,
  body.home-route .feed-card-v2 {
    border-radius: 16px;
  }

  body.home-route .feed-card-aniclip .feed-media-shell {
    height: min(58svh, 520px);
    min-height: 260px;
    max-height: min(58svh, 520px);
  }

  body.home-route .feed-card-aniclip .feed-video,
  body.home-route .feed-card-aniclip .feed-image {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
  }

  body.home-route .feed-card:not(.feed-card-aniclip) .feed-media-shell {
    height: min(42svh, 320px);
    min-height: 190px;
    max-height: min(42svh, 320px);
  }

  body.home-route .feed-card:not(.feed-card-aniclip) .feed-video,
  body.home-route .feed-card:not(.feed-card-aniclip) .feed-image {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
  }

  body.home-route .feed-card-v2 .feed-media-overlay {
    padding: 8px;
  }

  body.home-route .fullscreen-hint {
    min-height: 30px;
    padding: 0 10px;
    font-size: .76rem;
  }
}

@media (max-width: 420px) {
  body.home-route .feed-card-aniclip .feed-media-shell {
    height: min(54svh, 480px);
    min-height: 240px;
  }

  body.home-route .feed-card:not(.feed-card-aniclip) .feed-media-shell {
    height: min(38svh, 280px);
    min-height: 170px;
  }
}

/* ===== HOME FEED MOBILE FIT OVERRIDE ===== */
@media (max-width: 560px) {
  body.home-route .feed-grid {
    column-count: 1 !important;
    column-gap: 0 !important;
  }

  body.home-route .feed-grid .feed-card,
  body.home-route .feed-grid .feed-card-v2 {
    width: 100%;
    margin: 0 0 14px;
    break-inside: avoid;
    border-radius: 18px;
  }

  body.home-route .feed-grid .feed-media-shell {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    background: #070b12;
  }

  body.home-route .feed-grid .feed-media-shell.is-aniclip {
    height: clamp(300px, 64dvh, 520px);
    min-height: 300px;
    max-height: 520px;
  }

  body.home-route .feed-grid .feed-media-shell.is-video.is-standard {
    height: clamp(220px, 42dvh, 320px);
    min-height: 220px;
    max-height: 320px;
  }

  body.home-route .feed-grid .feed-media-shell.is-image.is-standard {
    height: clamp(220px, 38dvh, 300px);
    min-height: 220px;
    max-height: 300px;
  }

  body.home-route .feed-grid .feed-media-shell > .feed-video,
  body.home-route .feed-grid .feed-media-shell > .feed-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center;
    background: #070b12;
  }

  body.home-route .feed-grid .feed-card-v2 .feed-media-overlay {
    padding: 8px;
  }

  body.home-route .feed-grid .feed-card-v2 .feed-meta-v2 {
    padding: 11px 12px 13px;
  }

  body.home-route .feed-grid .feed-card-v2 .feed-meta-v2 h3 {
    font-size: 0.98rem;
    line-height: 1.2;
  }

  body.home-route .feed-grid .feed-card-v2 .feed-meta-v2 p {
    margin-top: 6px;
    font-size: 0.84rem;
    line-height: 1.42;
    -webkit-line-clamp: 2;
  }

  body.home-route .feed-grid .feed-reactions,
  body.home-route .feed-grid .feed-footer-v2 {
    gap: 6px;
  }

  body.home-route .feed-grid .reaction-pill {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  body.home-route .feed-grid .fullscreen-hint {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  body.home-route .feed-grid .feed-media-shell.is-aniclip {
    height: clamp(280px, 60dvh, 480px);
    min-height: 280px;
  }

  body.home-route .feed-grid .feed-media-shell.is-video.is-standard,
  body.home-route .feed-grid .feed-media-shell.is-image.is-standard {
    height: clamp(210px, 36dvh, 280px);
    min-height: 210px;
  }
}

/* ===== WALLPAPERS ===== */
.wallpapers-route .public-topbar-row,
.wallpaper-detail-route .public-topbar-row {
  gap: 18px;
}

.wallpapers-hero {
  padding: 28px 0 12px;
}

.wallpapers-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
  gap: 20px;
  align-items: end;
}

.wallpapers-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.wallpapers-hero p {
  max-width: 760px;
  color: #b2c0e4;
}

.wallpapers-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.wallpapers-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wallpapers-toolbar-wrap,
.wallpapers-grid-wrap,
.wallpaper-detail-shell,
.wallpaper-related-wrap,
.wallpaper-related-gallery {
  padding-top: 16px;
}

.wallpapers-toolbar {
  padding: 18px;
}

.wallpapers-toolbar-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.wallpaper-category-track {
  padding-top: 8px;
}

.wallpaper-media-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 8px;
}

.wallpaper-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #dce7ff;
  text-decoration: none;
  font-weight: 700;
}

.wallpaper-filter-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: .78rem;
}

.wallpaper-filter-pill.is-active {
  background: linear-gradient(135deg, rgba(24, 209, 145, 0.18), rgba(79, 70, 229, 0.18));
  border-color: rgba(94, 242, 191, 0.22);
  color: #effff9;
}

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

.wallpaper-card {
  background: linear-gradient(180deg, rgba(15, 22, 44, .96), rgba(8, 12, 28, .98));
  border: 1px solid rgba(131, 145, 190, 0.14);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

.wallpaper-card-media {
  display: block;
  position: relative;
  aspect-ratio: 9 / 13;
  background: #060b1c;
}

.wallpaper-card-media img,
.wallpaper-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wallpaper-card-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(3, 10, 24, .72);
  backdrop-filter: blur(10px);
  color: #eef5ff;
}

.wallpaper-card-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wallpaper-card-resolution,
.wallpaper-card-duration,
.wallpaper-card-cta,
.wallpaper-card-chip,
.wallpaper-card-download,
.wallpaper-resolution-pill {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wallpaper-card-resolution,
.wallpaper-card-duration,
.wallpaper-resolution-pill {
  padding: 8px 12px;
  background: rgba(255,255,255,.08);
  font-size: .78rem;
  font-weight: 700;
}

.wallpaper-card-duration {
  background: rgba(94, 242, 191, 0.16);
  color: #dffff2;
}

.wallpaper-card-cta,
.wallpaper-card-download {
  padding: 8px 14px;
  background: rgba(23, 208, 144, .12);
  color: #5ef2bf;
  font-size: .82rem;
  font-weight: 700;
}

.wallpaper-card-body {
  padding: 16px;
}

.wallpaper-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.wallpaper-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.wallpaper-card-body p {
  margin: 0 0 14px;
  color: #9eb0d9;
  min-height: 40px;
  line-height: 1.55;
}

.wallpaper-card-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.wallpaper-card-chip {
  padding: 6px 10px;
  background: rgba(94, 242, 191, .08);
  border: 1px solid rgba(94, 242, 191, .16);
  color: #9ff7d5;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
}

.wallpaper-card-chip.is-muted {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
  color: #d3ddf7;
}

.wallpaper-card-chip.is-live {
  background: rgba(94, 242, 191, .16);
  border-color: rgba(94, 242, 191, .26);
  color: #c8ffe7;
}

.wallpaper-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #d5def8;
  font-size: .88rem;
}

.pagination-wallpapers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 0 6px;
  flex-wrap: wrap;
}

.pagination-status {
  color: #b7c5e8;
}

.wallpaper-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 22px;
  align-items: start;
}

.wallpaper-focus {
  padding: 18px;
}

.wallpaper-focus-media {
  border-radius: 28px;
  overflow: hidden;
  background: #050a18;
  border: 1px solid rgba(132, 145, 188, .12);
}

.wallpaper-focus-media img,
.wallpaper-focus-media video {
  width: 100%;
  display: block;
  max-height: 78vh;
  object-fit: contain;
  background: #020611;
}

.wallpaper-focus-media.is-video {
  padding: 0;
}

.wallpaper-focus-video {
  width: 100%;
  height: auto;
}

.wallpaper-focus-copy {
  padding: 18px 4px 6px;
}

.wallpaper-focus-meta-top,
.wallpaper-chip-row,
.wallpaper-detail-actions,
.wallpaper-stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.wallpaper-focus-copy h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.wallpaper-focus-copy p {
  color: #a8b8df;
  max-width: 840px;
}

.wallpaper-detail-actions {
  margin-top: 18px;
}

.wallpaper-side-stack {
  display: grid;
  gap: 18px;
}

.wallpaper-side-card {
  padding: 18px;
}
.wallpaper-share-panel {
  background: rgba(7, 10, 16, 0.46);
}

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

.wallpaper-side-list {
  display: grid;
  gap: 12px;
}

.wallpaper-sidebar-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.wallpaper-sidebar-card-media {
  position: relative;
  display: block;
  min-height: 104px;
  border-radius: 14px;
  overflow: hidden;
  background: #050a18;
}

.wallpaper-sidebar-card-media img,
.wallpaper-sidebar-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wallpaper-sidebar-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  color: #f5f8ff;
  background: rgba(4, 8, 16, 0.74);
  border: 1px solid rgba(255,255,255,0.12);
}

.wallpaper-sidebar-specs {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: calc(100% - 16px);
}

.wallpaper-sidebar-specs span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(4, 8, 16, 0.74);
  border: 1px solid rgba(255,255,255,0.12);
  color: #eff6ff;
  font-size: .72rem;
  font-weight: 700;
}

.wallpaper-sidebar-card-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
}

.wallpaper-sidebar-card-copy h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.wallpaper-sidebar-card-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.wallpaper-sidebar-card-copy p {
  margin: 0;
  color: #9fb0d5;
}

.wallpaper-sidebar-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #c7d2eb;
  font-size: .88rem;
}


.wallpaper-bottom-grid {
  align-items: start;
}


.wallpaper-post-view {
  padding-top: 22px;
}

.wallpaper-post-grid {
  align-items: start;
}

.wallpaper-main-card {
  overflow: hidden;
}

.wallpaper-media-stage {
  display: grid;
  place-items: center;
  background: #050a18;
}

.wallpaper-primary-media {
  width: 100%;
  max-height: 82vh;
  min-height: 420px;
  object-fit: contain;
  background: #020611;
}

.wallpaper-primary-media[src] {
  height: auto;
}

.wallpaper-content-block {
  gap: 18px;
}

.wallpaper-title-cluster h1 {
  margin: 0;
}

.wallpaper-spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -2px;
}

.wallpaper-spec-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #e7efff;
  font-size: .86rem;
  font-weight: 700;
}

.wallpaper-spec-pill.is-strong {
  background: rgba(94, 242, 191, 0.12);
  border-color: rgba(94, 242, 191, 0.22);
  color: #d9fff0;
}

.wallpaper-spec-pill.is-muted {
  color: #b9c6e4;
}

.wallpaper-channel-bar {
  margin-top: 2px;
}

.wallpaper-quick-actions-strip {
  gap: 14px;
}

.wallpaper-engagement-panel {
  margin-top: 2px;
}

.wallpaper-sidebar-card-revamp {
  display: grid;
  gap: 16px;
}

.wallpaper-related-box {
  background: rgba(7, 10, 16, 0.46);
}

.wallpaper-comments-section {
  padding-top: 4px;
}

@media (max-width: 1180px) {
  .wallpaper-sidebar-card-revamp {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 680px) {
  .wallpaper-post-view {
    padding-top: 14px;
  }

  .wallpaper-media-stage {
    border-radius: 18px 18px 0 0;
  }

  .wallpaper-primary-media {
    min-height: 220px;
    max-height: min(74svh, 620px);
    aspect-ratio: auto;
    object-fit: contain;
  }

  .wallpaper-content-block {
    padding: 14px;
    gap: 14px;
  }

  .wallpaper-title-cluster h1 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
    line-height: 1.05;
  }

  .wallpaper-title-cluster .post-caption-revamp {
    font-size: .98rem;
    line-height: 1.55;
  }

  .wallpaper-channel-bar {
    padding: 14px;
  }

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

  .wallpaper-share-grid .share-button-strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .wallpaper-primary-media {
    max-height: min(68svh, 540px);
  }

  .wallpaper-media-filter {
    gap: 8px;
  }

  .wallpaper-filter-pill {
    width: 100%;
    justify-content: space-between;
  }

  .wallpaper-spec-strip {
    gap: 8px;
  }

  .wallpaper-spec-pill {
    min-height: 34px;
    font-size: .8rem;
    padding: 0 12px;
  }

  .wallpaper-sidebar-card-revamp,
  .wallpaper-related-box,
  .wallpaper-share-panel {
    gap: 14px;
  }
}

.admin-batch-wallpaper-field select[multiple] {
  min-height: 180px;
}

.admin-form-actions-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 1100px) {
  .wallpapers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wallpaper-detail-grid,
  .wallpapers-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .wallpapers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .wallpaper-card-body {
    padding: 14px;
  }

  .wallpaper-card-overlay {
    inset: auto 10px 10px 10px;
    padding: 8px 10px;
  }

  .wallpapers-toolbar {
    padding: 14px;
  }

  .wallpapers-hero {
    padding-top: 20px;
  }
}

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

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

  .wallpaper-focus {
    padding: 12px;
  }

  .wallpaper-focus-media img,
.wallpaper-focus-media video {
    max-height: 62vh;
  }

  .wallpaper-focus-copy h1 {
    font-size: 2rem;
  }

  .wallpaper-detail-actions,
  .wallpaper-chip-row,
  .wallpaper-stats-inline,
  .admin-form-actions-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .wallpaper-detail-actions .button,
  .admin-form-actions-inline .button {
    width: 100%;
    justify-content: center;
  }

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

  .wallpaper-sidebar-card {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .wallpaper-sidebar-card-media {
    min-height: 90px;
  }

  .wallpaper-sidebar-card-copy h3 {
    font-size: .96rem;
  }

  .wallpaper-sidebar-card-meta {
    font-size: .82rem;
    gap: 6px;
  }
}

/* ===== HOME WALLPAPERS ADDON ===== */
.home-wallpapers-wrap {
  margin: 28px auto 18px;
}

.home-wallpapers-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-wallpapers-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wallpaper-home-track {
  margin-bottom: 18px;
}

.home-wallpapers-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 18px;
  align-items: start;
}

.home-wallpapers-feature-col {
  min-width: 0;
}

.home-wallpapers-side-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
}

.home-wallpapers-side-head {
  display: grid;
  gap: 4px;
  padding: 4px 4px 6px;
}

.home-wallpapers-side-head strong {
  font-size: 1rem;
  color: #f8fbff;
}

.home-wallpapers-side-head span {
  color: #9eb0d9;
  font-size: .92rem;
}

.home-wallpaper-featured,
.home-wallpaper-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(9, 14, 30, 0.96), rgba(4, 9, 20, 0.96));
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.34);
}

.home-wallpaper-featured-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #070b12;
}

.home-wallpaper-media {
  position: relative;
  display: block;
  aspect-ratio: 10 / 13;
  background: #070b12;
}

.home-wallpaper-featured-media img,
.home-wallpaper-featured-media video,
.home-wallpaper-media img,
.home-wallpaper-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-wallpaper-featured-top,
.home-wallpaper-featured-bottom,
.home-wallpaper-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-wallpaper-featured-top,
.home-wallpaper-overlay-top {
  top: 14px;
}

.home-wallpaper-featured-bottom,
.home-wallpaper-overlay-bottom {
  bottom: 14px;
}

.home-wallpaper-featured-bottom,
.home-wallpaper-overlay-bottom {
  justify-content: space-between;
}

.home-wallpaper-chip,
.home-wallpaper-resolution,
.home-wallpaper-featured-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(2, 6, 23, 0.72);
  color: #ecfeff;
  font-size: .82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.home-wallpaper-chip.is-live {
  background: rgba(94, 242, 191, 0.16);
  border-color: rgba(94, 242, 191, 0.24);
  color: #d9fff0;
}

.home-wallpaper-chip.is-static {
  background: rgba(255,255,255,0.08);
}

.home-wallpaper-featured-cta {
  background: rgba(94, 242, 191, 0.14);
  color: #ccffe8;
}

.home-wallpaper-featured-copy {
  padding: 18px 20px 20px;
}

.home-wallpaper-featured-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
}

.home-wallpaper-featured-copy h3 a,
.home-wallpaper-copy h3 a {
  color: inherit;
}

.home-wallpaper-featured-copy p {
  margin: 0 0 14px;
  color: #9eb0d9;
  line-height: 1.6;
}

.home-wallpaper-copy {
  padding: 14px 16px 16px;
}

.home-wallpaper-copy h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.home-wallpaper-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: .86rem;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .home-wallpapers-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-wallpapers-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-wallpapers-side-grid {
    grid-template-columns: 1fr;
  }

  .home-wallpapers-side-head {
    padding: 0;
  }

  .home-wallpaper-featured,
  .home-wallpaper-card {
    border-radius: 18px;
  }

  .home-wallpaper-featured-media {
    aspect-ratio: 10 / 12;
  }

  .home-wallpaper-copy,
  .home-wallpaper-featured-copy {
    padding: 12px;
  }

  .home-wallpaper-copy h3 {
    font-size: .92rem;
    line-height: 1.3;
  }

  .home-wallpaper-featured-copy h3 {
    font-size: 1.1rem;
  }

  .home-wallpaper-meta {
    font-size: .78rem;
  }
}

/* ===== HOME FEED MOBILE COVER MODE ===== */
@media (max-width: 560px) {
  body.home-route .feed-grid .feed-media-shell.is-aniclip,
  body.home-route .feed-grid .feed-media-shell.is-video.is-standard {
    aspect-ratio: 10 / 13;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  body.home-route .feed-grid .feed-media-shell.is-image.is-standard {
    aspect-ratio: 4 / 5;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  body.home-route .feed-grid .feed-media-shell > .feed-video,
  body.home-route .feed-grid .feed-media-shell > .feed-image {
    object-fit: cover !important;
    object-position: center center !important;
  }

  body.home-route .feed-grid .feed-card-v2 .feed-meta-v2 {
    padding: 14px 14px 16px;
  }

  body.home-route .feed-grid .feed-card-v2 h3 {
    font-size: 1.05rem;
  }

}

@media (max-width: 560px) {
  body.home-route .feed-grid .feed-card-v2 .feed-media-shell {
    border-radius: 22px 22px 0 0;
    overflow: hidden;
  }

  body.home-route .feed-grid .feed-media-shell.is-aniclip,
  body.home-route .feed-grid .feed-media-shell.is-video.is-standard {
    aspect-ratio: 9 / 12;
  }

  body.home-route .feed-grid .feed-media-shell.is-aniclip > .feed-video,
  body.home-route .feed-grid .feed-media-shell.is-video.is-standard > .feed-video,
  body.home-route .feed-grid .feed-media-shell.is-aniclip > .feed-image,
  body.home-route .feed-grid .feed-media-shell.is-video.is-standard > .feed-image {
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
  }
}

.wallpaper-discovery-section {
  margin: 0 0 26px;
}

.wallpaper-discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.wallpaper-suggested-above {
  margin-top: 22px;
}

.wallpaper-load-more-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 26px 0 8px;
}

.wallpaper-load-more-wrap.is-finished {
  opacity: 0.92;
}

.load-more-sentinel {
  width: 100%;
  height: 1px;
}

.icon-chip[data-wallpaper-favorite].is-ready {
  border-color: rgba(36, 226, 143, 0.45);
  box-shadow: 0 0 0 1px rgba(36, 226, 143, 0.14) inset;
}

.icon-chip[data-wallpaper-favorite] strong {
  font-size: 0.92rem;
  font-weight: 800;
}

@media (max-width: 820px) {
  .wallpaper-discovery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wallpaper-load-more-wrap {
    margin-top: 18px;
  }
}


.wallpaper-card-chip.is-weekly,
.home-wallpaper-chip.is-weekly {
  background: rgba(255, 184, 77, 0.18);
  border-color: rgba(255, 184, 77, 0.34);
  color: #ffe8b5;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallpaper-favorites-hero .metric-card strong {
  color: #fff3c4;
}

.wallpaper-favorites-pagination {
  margin-top: 28px;
}


/* ===== Wallpapers next iteration: trends + collections + stronger responsive layout ===== */
.wallpaper-discovery-grid--rail {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.wallpaper-discovery-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wallpaper-insights-wrap {
  margin: 0 auto 26px;
}

.wallpaper-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr);
  gap: 18px;
  align-items: start;
}

.wallpaper-trending-panel,
.wallpaper-collections-panel {
  padding: 20px;
  border-radius: 26px;
}

.wallpaper-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.wallpaper-panel-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
}

.wallpaper-panel-head p {
  margin: 0;
  color: #9fb1d7;
  max-width: 62ch;
}

.wallpaper-trending-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wallpaper-trending-tab {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #deebff;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.wallpaper-trending-tab.is-active {
  background: linear-gradient(135deg, rgba(24, 209, 145, 0.18), rgba(79, 70, 229, 0.18));
  border-color: rgba(94, 242, 191, 0.24);
  color: #f5fff9;
}

.wallpaper-trending-pane[hidden] {
  display: none !important;
}

.wallpaper-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wallpaper-collection-tile {
  min-height: 132px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  text-decoration: none;
  color: #f1f6ff;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(9, 14, 30, 0.98));
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.24);
}

.wallpaper-collection-tile.is-personal {
  background: linear-gradient(160deg, rgba(12, 28, 30, 0.98), rgba(17, 16, 47, 0.98));
  border-color: rgba(94, 242, 191, 0.18);
}

.wallpaper-collection-tile strong {
  font-size: 1.08rem;
  line-height: 1.2;
}

.wallpaper-collection-tile small,
.wallpaper-collection-kicker {
  color: rgba(235, 243, 255, 0.8);
}

.wallpaper-collection-kicker {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wallpapers-toolbar-top.is-single {
  align-items: flex-start;
}

.wallpapers-toolbar-top.is-single .feed-mode-tabs {
  width: 100%;
}

.wallpaper-category-track {
  grid-auto-columns: minmax(160px, 190px);
}

.wallpapers-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.wallpaper-discovery-grid .home-wallpaper-card,
.wallpaper-trending-panel .home-wallpaper-card {
  border-radius: 20px;
}

.wallpaper-discovery-grid--compact .home-wallpaper-media,
.wallpaper-discovery-grid--rail .home-wallpaper-media {
  aspect-ratio: 10 / 12;
}

.wallpaper-discovery-grid--compact .home-wallpaper-copy,
.wallpaper-discovery-grid--rail .home-wallpaper-copy {
  padding: 12px 14px 14px;
}

.wallpaper-discovery-grid--compact .home-wallpaper-copy h3,
.wallpaper-discovery-grid--rail .home-wallpaper-copy h3 {
  font-size: .96rem;
  line-height: 1.35;
}

.wallpaper-discovery-grid--compact .home-wallpaper-meta,
.wallpaper-discovery-grid--rail .home-wallpaper-meta {
  font-size: .78rem;
  gap: 8px;
}

@media (max-width: 1280px) {
  .wallpaper-discovery-grid--rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .wallpaper-insights-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .wallpaper-discovery-grid--rail,
  .wallpaper-discovery-grid--compact {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 78vw);
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .wallpaper-discovery-grid--rail::-webkit-scrollbar,
  .wallpaper-discovery-grid--compact::-webkit-scrollbar {
    display: none;
  }

  .wallpaper-discovery-grid--rail > *,
  .wallpaper-discovery-grid--compact > * {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .wallpapers-hero {
    padding-top: 18px;
  }

  .wallpapers-hero h1 {
    font-size: 2.1rem;
    line-height: 1.02;
  }

  .wallpapers-toolbar,
  .wallpaper-trending-panel,
  .wallpaper-collections-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .wallpaper-panel-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .wallpaper-trending-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wallpaper-trending-tab {
    width: 100%;
    justify-content: center;
  }

  .wallpaper-collection-grid {
    grid-template-columns: 1fr;
  }

  .wallpaper-collection-tile {
    min-height: 110px;
    padding: 16px;
  }

  .wallpapers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .wallpaper-card {
    border-radius: 20px;
  }

  .wallpaper-card-body {
    padding: 12px;
  }

  .wallpaper-card-body h3 {
    font-size: .95rem;
    line-height: 1.3;
  }

  .wallpaper-card-body p {
    min-height: 0;
    font-size: .82rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .wallpaper-card-footer {
    flex-wrap: wrap;
    font-size: .8rem;
  }

  .wallpaper-card-overlay {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 8px 10px;
    gap: 8px;
  }

  .wallpaper-card-badges {
    gap: 6px;
  }

  .wallpaper-card-resolution,
  .wallpaper-card-duration,
  .wallpaper-card-cta {
    padding: 6px 10px;
    font-size: .72rem;
  }
}

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

  .wallpaper-category-track {
    grid-auto-columns: minmax(150px, 78vw);
  }

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

  .wallpapers-route .topbar-left {
    flex-wrap: wrap;
  }

  .wallpapers-route .public-search {
    width: 100%;
    max-width: none;
  }

  .wallpapers-route .public-top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .wallpapers-route .top-action-link,
  .wallpapers-route .top-pill {
    justify-content: center;
  }
}

/* ===== Wallpapers gallery cleanup pass ===== */
.wallpaper-section-shell {
  margin: 0 auto 24px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.96), rgba(6, 10, 24, 0.98));
  border: 1px solid rgba(131, 145, 190, 0.12);
  box-shadow: 0 22px 54px rgba(2, 8, 23, 0.22);
}

.wallpaper-section-shell .section-header-feed {
  margin-bottom: 16px;
}

.wallpaper-section-shell .section-title-wrap h2,
.wallpaper-gallery-heading h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.28rem, 2vw, 1.8rem);
}

.wallpaper-section-shell .section-title-wrap p,
.wallpaper-gallery-heading p {
  margin: 0;
  color: #9fb1d7;
  max-width: 62ch;
}

.wallpaper-gallery-section {
  margin: 0 auto 28px;
}

.wallpaper-gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.wallpapers-toolbar {
  margin-bottom: 18px;
}

.wallpapers-above-grid-ad {
  min-width: 0;
}

.wallpaper-insights-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.wallpaper-trending-panel,
.wallpaper-collections-panel {
  min-height: 100%;
}

.wallpaper-collection-grid.is-single {
  grid-template-columns: 1fr;
}

.wallpaper-discovery-grid--rail {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.wallpaper-discovery-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-wallpaper-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.wallpaper-discovery-grid--rail .home-wallpaper-media,
.wallpaper-discovery-grid--compact .home-wallpaper-media {
  aspect-ratio: 4 / 5;
}

.wallpaper-discovery-grid--rail .home-wallpaper-copy,
.wallpaper-discovery-grid--compact .home-wallpaper-copy {
  padding: 12px 14px 14px;
}

.wallpaper-discovery-grid--rail .home-wallpaper-copy h3,
.wallpaper-discovery-grid--compact .home-wallpaper-copy h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.65em;
  margin-bottom: 10px;
  font-size: .98rem;
  line-height: 1.35;
}

.wallpaper-discovery-grid--rail .home-wallpaper-meta,
.wallpaper-discovery-grid--compact .home-wallpaper-meta {
  justify-content: flex-start;
  gap: 8px 12px;
  font-size: .78rem;
}

.wallpapers-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.wallpaper-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border-radius: 22px;
}

.wallpaper-card-media {
  aspect-ratio: 4 / 5;
}

.wallpaper-card-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0;
}

.wallpaper-card-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.wallpaper-card-body p {
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wallpaper-card-footer {
  margin-top: auto;
  flex-wrap: wrap;
}

.wallpapers-inline-ad {
  grid-column: 1 / -1;
}

.wallpapers-inline-ad > * {
  width: 100%;
}

@media (max-width: 1480px) {
  .wallpaper-discovery-grid--rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 1120px) {
  .wallpaper-insights-grid {
    grid-template-columns: 1fr;
  }

  .wallpaper-discovery-grid--rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .wallpaper-section-shell {
    padding: 16px;
    border-radius: 22px;
    margin-bottom: 18px;
  }

  .wallpaper-gallery-heading {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .wallpaper-discovery-grid--rail,
  .wallpaper-discovery-grid--compact {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 74vw);
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .wallpaper-discovery-grid--rail::-webkit-scrollbar,
  .wallpaper-discovery-grid--compact::-webkit-scrollbar {
    display: none;
  }

  .wallpaper-discovery-grid--rail > *,
  .wallpaper-discovery-grid--compact > * {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .wallpaper-section-shell {
    padding: 14px;
  }

  .wallpapers-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wallpaper-card,
  .home-wallpaper-card {
    border-radius: 18px;
  }

  .wallpaper-card-media,
  .wallpaper-discovery-grid--rail .home-wallpaper-media,
  .wallpaper-discovery-grid--compact .home-wallpaper-media {
    aspect-ratio: 10 / 12;
  }

  .wallpaper-card-body,
  .wallpaper-discovery-grid--rail .home-wallpaper-copy,
  .wallpaper-discovery-grid--compact .home-wallpaper-copy {
    padding: 12px;
  }

  .wallpaper-card-body h3,
  .wallpaper-discovery-grid--rail .home-wallpaper-copy h3,
  .wallpaper-discovery-grid--compact .home-wallpaper-copy h3 {
    font-size: .95rem;
  }

  .wallpaper-card-footer,
  .wallpaper-discovery-grid--rail .home-wallpaper-meta,
  .wallpaper-discovery-grid--compact .home-wallpaper-meta {
    font-size: .78rem;
  }
}

/* ===== Community ranking refresh ===== */
.billboard-copy-recommended .billboard-kicker {
  letter-spacing: .12em;
}

.community-ranking-board {
  margin: 0 0 24px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(16,23,46,.92), rgba(8,13,29,.96));
  box-shadow: 0 20px 80px rgba(0,0,0,.22);
}

.community-ranking-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.community-ranking-head h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
}

.community-ranking-head p,
.community-ranking-note {
  color: rgba(224,231,255,.74);
}

.community-ranking-note {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  white-space: nowrap;
  font-size: .9rem;
}

.community-ranking-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.community-ranking-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  min-width: 0;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.community-ranking-card:hover {
  transform: translateY(-2px);
  border-color: rgba(60, 244, 177, .28);
  background: rgba(255,255,255,.05);
}

.community-ranking-number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(8,12,24,.86);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
}

.community-ranking-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 10 / 12;
  background: rgba(3,8,20,.95);
}

.community-ranking-thumb img,
.community-ranking-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-ranking-thumb .creator-spotlight-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5,10,19,.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.community-ranking-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.community-ranking-copy strong {
  font-size: .98rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-ranking-copy span,
.community-ranking-copy small {
  color: rgba(224,231,255,.74);
}

.feed-rank-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8,12,24,.82);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.feed-card-topline-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.feed-mini-rank {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(60, 244, 177, .12);
  border: 1px solid rgba(60, 244, 177, .18);
  color: #7bf1c8;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 1100px) {
  .community-ranking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .community-ranking-board {
    padding: 18px;
    border-radius: 22px;
  }

  .community-ranking-head {
    flex-direction: column;
  }

  .community-ranking-note {
    white-space: normal;
  }

  .community-ranking-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 82vw);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .community-ranking-grid::-webkit-scrollbar {
    display: none;
  }

  .feed-card-topline {
    gap: 10px;
  }

  .feed-card-topline-side {
    width: 100%;
    justify-content: flex-start;
  }
}


/* ===== Unified public header cleanup ===== */
.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.topbar-menu-toggle {
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #f4f7ff;
}

.topbar-menu-toggle:hover {
  background: rgba(255,255,255,0.08);
}

.public-topbar-row {
  align-items: center;
}

.public-top-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.public-top-actions .top-action-link,
.public-top-actions .button {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .topbar-public .public-topbar-row {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .topbar-public .topbar-main,
  .topbar-public .public-search,
  .topbar-public .public-top-actions {
    grid-column: 1 / -1;
  }

  .topbar-public .topbar-main {
    order: 1;
  }

  .topbar-public .public-search {
    order: 2;
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .topbar-public .topbar-left {
    min-width: 0;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }

  .topbar-public .topbar-left::-webkit-scrollbar {
    display: none;
  }

  .topbar-public .topbar-left .brand,
  .topbar-public .topbar-left .top-pill {
    flex: 0 0 auto;
  }

  .topbar-public .public-top-actions {
    display: none;
    order: 3;
    width: 100%;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(11,15,26,0.96);
    box-shadow: 0 18px 36px rgba(0,0,0,0.28);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .topbar-public .public-top-actions.open {
    display: grid;
  }

  .topbar-public .public-top-actions .top-action-link,
  .topbar-public .public-top-actions .button,
  .topbar-public .public-top-actions .top-pill {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .topbar-public .topbar-left .brand span:last-child {
    max-width: 12ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-public .public-top-actions {
    grid-template-columns: 1fr;
  }
}


.admin-server-import-card {
  display: grid;
  gap: 20px;
}

.admin-server-import-grid {
  align-items: start;
}

.admin-server-import-panel {
  display: grid;
}

.admin-server-import-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-server-import-log {
  display: grid;
  gap: 10px;
  min-height: 260px;
  max-height: 560px;
  overflow: auto;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(114, 132, 180, 0.16);
  background: rgba(10, 16, 28, 0.48);
}

.admin-server-import-log-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  text-align: center;
  color: #9eb1d6;
}

.admin-server-import-log-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(114, 132, 180, 0.16);
  background: rgba(255,255,255,0.03);
}

.admin-server-import-log-item strong {
  color: #fff;
  font-size: .95rem;
}

.admin-server-import-log-item span {
  color: #9eb1d6;
  font-size: .88rem;
  word-break: break-word;
}

.admin-server-import-log-item.is-success {
  border-color: rgba(67, 232, 181, 0.22);
  background: rgba(18, 42, 38, 0.55);
}

.admin-server-import-log-item.is-error {
  border-color: rgba(255, 95, 125, 0.22);
  background: rgba(44, 19, 27, 0.52);
}

@media (max-width: 980px) {
  .admin-server-import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-server-import-summary {
    grid-template-columns: 1fr;
  }
}

/* ===== Wallpapers mobile vertical fix ===== */
@media (max-width: 820px) {
  .wallpaper-insights-wrap,
  .wallpaper-insights-grid,
  .wallpaper-trending-panel,
  .wallpaper-collections-panel,
  .wallpaper-section-shell,
  .wallpaper-gallery-section {
    min-width: 0;
    overflow-x: clip;
  }

  .wallpaper-trending-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wallpaper-trending-tab {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .wallpaper-discovery-grid--rail,
  .wallpaper-discovery-grid--compact {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    gap: 14px;
    padding-bottom: 0;
  }

  .wallpaper-discovery-grid--rail > *,
  .wallpaper-discovery-grid--compact > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .wallpaper-discovery-grid--rail,
  .wallpaper-discovery-grid--compact {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .wallpaper-discovery-grid--rail .home-wallpaper-media,
  .wallpaper-discovery-grid--compact .home-wallpaper-media {
    aspect-ratio: 10 / 12;
  }
}


/* ===== Wallpapers mobile vertical sections limit ===== */
@media (max-width: 820px) {
  .wallpaper-suggested-above .wallpaper-discovery-grid--rail,
  .wallpaper-community-section .wallpaper-discovery-grid--rail,
  .wallpaper-trending-panel .wallpaper-trending-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    overflow: visible;
    gap: 14px;
    padding-bottom: 0;
  }

  .wallpaper-suggested-above .wallpaper-discovery-grid--rail > :nth-child(n + 4),
  .wallpaper-community-section .wallpaper-discovery-grid--rail > :nth-child(n + 4),
  .wallpaper-trending-panel .wallpaper-trending-grid > :nth-child(n + 4) {
    display: none;
  }
}
