/* =========================================================
   糖心Vlog — Premium Movie Streaming Design System
   ========================================================= */
:root {
  --bg: #090909;
  --nav: #0B0B0B;
  --card: #151515;
  --surface: #1D1B19;
  --border: #292725;
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #F5F5F5;
  --muted: #999999;
  --muted-2: #6B6B6B;
  --brand: #FF2D6A;
  --brand-hot: #FF6B00;
  --brand-gold: #FFB800;
  --brand-deep: #E6007A;
  --brand-grad: linear-gradient(135deg, #FFB800 0%, #FF6B00 45%, #FF2D6A 100%);
  --overlay: linear-gradient(90deg, rgba(9, 9, 9, 0.88) 0%, rgba(9, 9, 9, 0.35) 55%, rgba(9, 9, 9, 0.15) 100%);
  --overlay-bottom: linear-gradient(180deg, transparent 40%, rgba(9, 9, 9, 0.92) 100%);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --nav-h: 62px;
  --max: 1320px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Georgia", "Songti SC", "SimSun", serif;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: 0.01em; }
p { margin: 0; }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
}
.nav-links a.nav-cta {
  color: #fff;
  background: var(--brand-grad);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { filter: brightness(1.08); color: #fff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  min-width: 180px;
}
.search-box input {
  background: transparent;
  border: 0;
  outline: 0;
  width: 140px;
  color: var(--text);
  font-size: 13px;
}
.search-box input::placeholder { color: var(--muted-2); }
.search-box button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.search-box button:hover { color: var(--brand); }
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Section chrome ---------- */
.section {
  padding: 36px 0 8px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-head > .btn {
  flex-shrink: 0;
}
.section-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.section-title .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}
.section-title h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-family: var(--font-display);
}
.section-title .sub {
  color: var(--muted);
  font-size: 13px;
}
.rail-controls {
  display: flex;
  gap: 8px;
}
.rail-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s var(--ease);
}
.rail-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 22px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.75fr;
  gap: 18px;
  align-items: stretch;
}
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 290px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  min-height: 290px;
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay), var(--overlay-bottom);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 2;
  max-width: min(520px, 72%);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.hero-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-grad);
}
.hero-copy h1 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.hero-copy p {
  color: rgba(245, 245, 245, 0.82);
  font-size: 14px;
  margin-bottom: 16px;
  max-width: 42ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s var(--ease);
}
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn[disabled], .btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* Now Watching */
.now-watching {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 290px;
}
.now-watching .nw-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}
.nw-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.nw-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid transparent;
  transition: 0.2s var(--ease);
}
.nw-item:hover {
  border-color: var(--border);
  transform: translateX(2px);
}
.nw-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.nw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nw-meta { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.nw-meta .name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nw-meta .cat {
  font-size: 11px;
  color: var(--brand-gold);
}
.nw-meta .desc {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Genre */
.genre-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.genre-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s var(--ease);
  white-space: nowrap;
}
.genre-chip:hover { color: var(--text); border-color: #3a3734; }
.genre-chip.active {
  color: #fff;
  border-color: transparent;
  background: var(--brand-grad);
}

/* Poster rails */
.poster-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.poster-card {
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 260px);
  scroll-snap-align: start;
  transition: transform 0.25s var(--ease);
}
.poster-card:hover { transform: translateY(-4px); }
.poster-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.poster-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s var(--ease);
}
.poster-card:hover .poster-cover img { transform: scale(1.03); }
.poster-info { padding: 10px 2px 0; }
.poster-info .title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster-info .meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Creators */
.creator-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.creator-card {
  flex: 0 0 auto;
  width: 148px;
  text-align: center;
}
.creator-avatar {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 10px;
}
.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.creator-card:hover .creator-avatar img { transform: scale(1.05); }
.creator-card .name { font-size: 14px; font-weight: 600; }
.creator-card .tag { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Drama */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.drama-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s;
  color: inherit;
}
.drama-card:hover {
  transform: translateY(-3px);
  border-color: #3d3935;
}
.drama-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #000;
}
.drama-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.drama-card:hover .drama-cover img { transform: scale(1.04); }
.drama-body { padding: 14px; }
.drama-body .label {
  font-size: 11px;
  color: var(--brand-gold);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.drama-body h3 { font-size: 16px; margin-bottom: 6px; }
.drama-body p {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* APP promo */
.app-promo {
  margin-top: 28px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(900px 280px at 10% 0%, rgba(255, 45, 106, 0.18), transparent 60%),
    radial-gradient(700px 260px at 90% 100%, rgba(255, 184, 0, 0.12), transparent 55%),
    var(--card);
  overflow: hidden;
}
.app-promo-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 28px;
  align-items: center;
}
.app-promo-copy .badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 10px;
}
.app-promo-copy h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.app-promo-copy p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
  max-width: 52ch;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 16px 0 20px;
}
.feature-list li {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-grad);
  flex-shrink: 0;
}
.app-shots {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  overflow-x: auto;
}
.app-shots figure {
  margin: 0;
  width: 140px;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow);
}
.app-shots img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
}
/* Top ad showcase */
.ad-top-section {
  padding: 18px 0 6px;
}
.ad-top-panel {
  border-radius: 22px;
  border: 1px solid rgba(255, 45, 106, 0.28);
  background:
    radial-gradient(900px 220px at 0% 0%, rgba(255, 45, 106, 0.22), transparent 55%),
    radial-gradient(700px 200px at 100% 0%, rgba(255, 184, 0, 0.14), transparent 50%),
    var(--card);
  padding: 22px 22px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.ad-top-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.ad-top-head .badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
}
.ad-top-head h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.ad-top-head p {
  color: var(--muted);
  font-size: 13px;
  max-width: 62ch;
  line-height: 1.65;
}
.ad-slot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin-top: 4px;
}
.ad-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  width: 100%;
  overflow: visible;
}
.ad-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--border);
  min-width: 0;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.ad-card:hover {
  border-color: rgba(255, 45, 106, 0.45);
  transform: translateY(-1px);
}
.ad-card.is-featured {
  border-color: rgba(255, 107, 0, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 45, 106, 0.14), rgba(0, 0, 0, 0.35));
}
.ad-card-media {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ad-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.ad-card-media.is-empty::after {
  content: "APP";
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
}
.ad-card-body {
  min-width: 0;
  grid-column: 2;
}
.ad-card .ad-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 2px;
}
.ad-card .ad-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-card-btn {
  grid-column: 2;
  width: auto;
  justify-self: start;
  margin-top: 0;
  padding: 6px 12px;
  font-size: 12px;
  white-space: nowrap;
}
.ad-fallback {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.25);
}
.ad-note {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 12px;
}

/* SEO block */
.seo-block {
  margin: 42px 0 10px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.seo-block h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.seo-block h3 {
  font-size: 16px;
  margin: 20px 0 8px;
  color: #fff;
}
.seo-block p, .seo-block li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.seo-block p + p { margin-top: 10px; }
.seo-block a {
  color: #ff8aa8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seo-block a:hover { color: var(--brand); }
.faq-list details {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.faq-list details p { margin-top: 8px; }

/* Footer */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: #070707;
  padding: 36px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-brand img { height: 40px; margin-bottom: 12px; }
.footer-brand p {
  color: var(--muted);
  font-size: 13px;
  max-width: 36ch;
}
.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #fff;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 12px;
}

/* Page heroes (inner pages) */
.page-hero {
  padding: 34px 0 10px;
}
.page-hero .kicker {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-family: var(--font-display);
  margin-bottom: 10px;
}
.page-hero p {
  color: var(--muted);
  max-width: 60ch;
  font-size: 15px;
}

.prose {
  max-width: 820px;
}
.prose h2 {
  font-size: 22px;
  margin: 28px 0 10px;
}
.prose h3 {
  font-size: 17px;
  margin: 20px 0 8px;
}
.prose p, .prose li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 18px; list-style: disc; }
.prose a { color: #ff8aa8; text-decoration: underline; text-underline-offset: 3px; }

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.2s var(--ease);
}
.content-card:hover { border-color: #3d3935; transform: translateY(-2px); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-body { padding: 16px; }
.news-body .cat {
  font-size: 11px;
  color: var(--brand-gold);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.news-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.35;
}
.news-body p {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.feature-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.feature-box h3 { font-size: 16px; margin-bottom: 8px; }
.feature-box p { color: var(--muted); font-size: 13px; }

.app-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.app-gallery figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.app-gallery img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
}
.app-gallery figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  background: var(--card);
}

.error-page {
  min-height: calc(100vh - var(--nav-h) - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 20px;
}
.error-page .code {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}
.error-page h1 { font-size: 28px; margin-bottom: 10px; }
.error-page p { color: var(--muted); margin-bottom: 22px; }

.legal-wrap { padding-bottom: 48px; }

/* Mobile */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .now-watching { min-height: auto; }
  .drama-grid { grid-template-columns: repeat(2, 1fr); }
  .app-promo-inner { grid-template-columns: 1fr; }
  .app-shots { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .app-feature-grid { grid-template-columns: 1fr; }
  .app-gallery { grid-template-columns: repeat(3, 1fr); }
  .ad-top-head { flex-direction: column; }
  .ad-slot-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .ad-card { grid-template-columns: 40px 1fr; padding: 8px 10px; column-gap: 8px; row-gap: 6px; }
  .ad-card-media { width: 40px; height: 40px; border-radius: 10px; }
  .ad-card .ad-title { font-size: 12px; }
  .ad-card-btn { padding: 5px 10px; font-size: 11px; }
  /* 窄屏：文案移出 Banner，避免遮挡主视觉 */
  .hero-banner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-banner::after { display: none; }
  .hero-banner img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center top;
  }
  .hero-copy {
    position: static;
    max-width: none;
    padding: 18px 18px 20px;
    background: var(--card);
  }
  .hero-copy p { color: var(--muted); max-width: none; }
}

@media (max-width: 760px) {
  .ad-top-panel { padding: 14px 12px 12px; }
  .ad-top-head h2 { font-size: 20px; }
  .ad-top-head p { font-size: 12px; }
  .ad-slot-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .container { width: min(100% - 28px, var(--max)); }
  .nav-inner {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(11, 11, 11, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px 18px;
    gap: 4px;
    display: none;
    flex: unset;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 8px;
    border-radius: 10px;
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: rgba(255, 45, 106, 0.12); color: #fff; }
  .nav-right {
    margin-left: auto;
    order: 2;
  }
  .brand { order: 1; }
  .nav-right .search-box { min-width: 0; width: 120px; }
  .search-box input { width: 72px; }
  .hero-banner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .hero-banner::after {
    display: none; /* 移动端去掉遮罩，避免盖住 Banner */
  }
  .hero-banner img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
  }
  .hero-copy {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: none;
    padding: 16px 16px 18px;
    background: var(--card);
  }
  .hero-copy h1 { font-size: 24px; margin-bottom: 8px; }
  .hero-copy p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
    max-width: none;
  }
  .hero-tag { margin-bottom: 8px; }
  .poster-card { width: 220px; }
  .drama-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .drama-body { padding: 10px; }
  .drama-body h3 { font-size: 14px; }
  .drama-body p { font-size: 12px; -webkit-line-clamp: 2; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .app-gallery { grid-template-columns: repeat(2, 1fr); }
  .seo-block { padding: 20px; }
}

@media (min-width: 560px) and (max-width: 760px) {
  /* 较宽手机/小平板：一行四个 */
  .drama-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .drama-body p { display: none; }
}
