:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --bg: #07080d;
  --panel: #10141f;
  --panel-2: #151b2a;
  --ink: #f7fbff;
  --muted: #9aa8b8;
  --line: rgba(255,255,255,.12);
  --cyan: #30d5ff;
  --pink: #ff477e;
  --lime: #b8f35a;
  --amber: #ffc857;
  --violet: #7d5fff;
  --shadow: 0 30px 90px rgba(0,0,0,.48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px 44px),
    linear-gradient(0deg, rgba(255,255,255,.025) 1px, transparent 1px 44px),
    radial-gradient(circle at 18% 8%, rgba(48,213,255,.18), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(255,71,126,.18), transparent 28%),
    linear-gradient(145deg, #07080d 0%, #0b1020 48%, #05060a 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 5px);
  opacity: .25;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
button, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1760px, calc(100% - 28px));
  margin: 14px auto 0;
  min-height: 74px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: rgba(7, 8, 13, .86);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.brand {
  display: grid;
  gap: 2px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border-radius: 2px;
}
.brand strong {
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
}
.brand span {
  color: rgba(255,255,255,.82);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}
.topbar nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
  font-weight: 900;
}
.topbar nav a.active,
.topbar nav a:hover {
  color: var(--ink);
  border-color: rgba(48,213,255,.44);
  background: rgba(48,213,255,.13);
}

.site-shell {
  width: min(1760px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 2vw, 34px);
  display: grid;
  gap: clamp(18px, 2vw, 34px);
}
.cinema-hero {
  display: grid;
  grid-template-columns: minmax(260px, .76fr) minmax(320px, .9fr) minmax(280px, .62fr);
  gap: 12px;
  align-items: stretch;
}
.hero-copy,
.screen-wrap,
.now-panel,
.section,
.score-section,
.archive-hero,
.library-console,
.detail-stage,
.footer {
  background: linear-gradient(145deg, rgba(21,27,42,.94), rgba(10,13,22,.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-copy {
  min-height: 560px;
  padding: clamp(22px, 3.1vw, 48px);
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
}
.hero-copy::after {
  content: "SCREEN 09";
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: rgba(255,255,255,.06);
  font-size: clamp(2.6rem, 6.3vw, 6.4rem);
  font-weight: 950;
  line-height: .8;
}
.eyebrow {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 4.5vw, 5.15rem);
  line-height: .95;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}
h3 { line-height: 1.18; }
.hero-copy p,
.archive-hero p,
.poster-card p,
.strip-card p,
.detail-copy p,
.footer p,
.ledger-row small {
  color: var(--muted);
  line-height: 1.62;
}
.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.action,
.ghost {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  font-weight: 950;
}
.action {
  color: #061018;
  background: var(--cyan);
  border-color: var(--cyan);
}
.ghost {
  color: var(--ink);
  background: rgba(255,255,255,.06);
}

.screen-wrap {
  min-height: 560px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 10%),
    linear-gradient(145deg, rgba(21,27,42,.94), rgba(5,6,10,.94));
}
.screen {
  height: 100%;
  border: 7px solid #05060a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 0 60px rgba(48,213,255,.18);
  overflow: hidden;
  background: #05060a;
}
.screen a {
  position: relative;
  display: block;
  height: 100%;
  max-height: 540px;
}
.screen img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}
.screen span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 10px 12px;
  color: #061018;
  background: var(--lime);
  font-weight: 950;
}
.now-panel {
  min-height: 560px;
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}
.section-head {
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-head a {
  color: var(--cyan);
  font-weight: 950;
}
.ticker-list,
.score-section > div:last-child {
  display: grid;
}
.ledger-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row b {
  color: var(--pink);
  font-size: .82rem;
  font-weight: 950;
}
.ledger-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-weight: 950;
}
.ledger-row small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ledger-row i {
  justify-self: end;
  color: var(--lime);
  font-style: normal;
  font-weight: 950;
}

.channel-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.channel-strip a {
  min-height: 112px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
}
.channel-strip strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.08rem;
}
.channel-strip span {
  color: var(--muted);
  font-size: .86rem;
}
.channel-strip img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.22);
}

.section,
.score-section {
  padding: clamp(16px, 2vw, 24px);
}
.poster-wall {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.poster-card,
.strip-card {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.poster-card:hover,
.strip-card:hover {
  transform: translateY(-3px);
  border-color: rgba(48,213,255,.55);
  box-shadow: 0 18px 38px rgba(48,213,255,.12);
}
.poster-card a {
  display: grid;
}
.poster-card figure,
.strip-card figure {
  position: relative;
  margin: 0;
  background: #05060a;
}
.poster-card img {
  aspect-ratio: 3 / 4.35;
  height: 100%;
  object-fit: cover;
}
.poster-card figcaption,
.strip-card figcaption {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 4px 7px;
  color: #061018;
  background: var(--amber);
  font-size: .82rem;
  font-weight: 950;
}
.poster-card div {
  min-height: 120px;
  padding: 10px;
}
.poster-card span,
.strip-card span {
  color: var(--cyan);
  font-size: .76rem;
  font-weight: 950;
}
.poster-card h3,
.strip-card h3 {
  margin: 5px 0;
  font-size: .98rem;
}
.poster-card p,
.strip-card p {
  margin-bottom: 6px;
  font-size: .82rem;
}
.poster-card em,
.strip-card em {
  color: var(--pink);
  font-size: .8rem;
  font-style: normal;
  font-weight: 950;
}
.duo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.strip-card a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
}
.strip-card img {
  height: 130px;
  object-fit: cover;
}
.strip-card div { padding: 10px; }

.archive-hero {
  min-height: 360px;
  padding: clamp(24px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: end;
}
.archive-hero h1 {
  font-size: clamp(2.4rem, 6vw, 6rem);
}
.archive-counter {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
}
.archive-counter span {
  display: block;
  color: var(--lime);
  font-size: 2rem;
  font-weight: 950;
}
.library-console {
  padding: clamp(16px, 2vw, 24px);
}
.filters {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  align-items: start;
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-buttons button,
.sorter select {
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  font-weight: 950;
}
.filter-buttons button.active {
  color: #061018;
  background: var(--cyan);
  border-color: var(--cyan);
}
.sorter {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 950;
}

.detail-stage {
  min-height: 660px;
  padding: clamp(16px, 2vw, 26px);
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
}
.detail-poster {
  margin: 0;
  border: 10px solid #05060a;
  background: #05060a;
}
.detail-poster img {
  height: 100%;
  min-height: 600px;
  object-fit: cover;
}
.detail-copy {
  padding: clamp(18px, 4vw, 58px);
  display: grid;
  align-content: center;
}
.detail-copy h1 {
  font-size: clamp(2.4rem, 5vw, 5.8rem);
}
.sub {
  color: var(--cyan) !important;
  font-weight: 950;
  font-size: 1.15rem;
}
.facts {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.facts span {
  padding: 8px 10px;
  color: #061018;
  background: var(--lime);
  font-weight: 950;
}
.related-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.footer {
  width: min(1760px, calc(100% - 28px));
  margin: 0 auto 28px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 18px;
}
.footer strong { font-size: 1.4rem; }
.footer h3 {
  color: var(--cyan);
  margin-bottom: 8px;
}
.footer a {
  display: block;
  margin: 5px 0;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 1260px) {
  .cinema-hero,
  .archive-hero,
  .detail-stage,
  .duo-layout {
    grid-template-columns: 1fr;
  }
  .poster-wall,
  .related-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .channel-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .screen-wrap,
  .hero-copy,
  .now-panel {
    min-height: 520px;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr;
  }
  .topbar nav {
    justify-content: flex-start;
  }
  .poster-wall,
  .related-grid,
  .route-grid,
  .channel-strip,
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .archive-hero,
  .hero-copy {
    padding: 22px;
  }
  h1 { font-size: 2.7rem; }
}

@media (max-width: 520px) {
  .site-shell { padding-inline: 10px; }
  .poster-wall,
  .related-grid,
  .channel-strip,
  .footer {
    grid-template-columns: 1fr;
  }
  .screen-wrap,
  .hero-copy,
  .now-panel {
    min-height: auto;
  }
  .screen a { min-height: 430px; }
  .detail-stage { padding: 10px; }
  .detail-poster img { min-height: 420px; }
}
