/* MCU 观影指南 — dark cinema theme. Mobile first; no web fonts, no frameworks. */
:root {
  --bg: #0a0a0f;
  --surface: #15151d;
  --surface-2: #1d1d28;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f2f2f6;
  --text-2: #c3c3cf;
  --text-3: #9393a3;
  --red: #e62429;
  --red-hover: #ff3138;
  --red-text: #ff5a5f;
  --gold: #f5c451;
  --blue-text: #8fbaff;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 52px;
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.7 var(--font); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--gold); color: #17130a; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px; background: var(--red); color: #fff;
  font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 0.15s;
}
.btn:hover { background: var(--red-hover); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 13.5px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate; padding: 64px 20px 52px;
  background:
    radial-gradient(110% 70% at 85% 0%, rgba(230, 36, 41, 0.38), transparent 62%),
    radial-gradient(70% 60% at 0% 100%, rgba(245, 196, 81, 0.12), transparent 62%),
    var(--bg);
}
.hero-collage {
  position: absolute; z-index: -1; top: -60px; left: -8%; right: -8%;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  transform: rotate(-8deg) scale(1.12); opacity: 0.42;
}
.hero-collage img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.hero-collage .ph { position: relative; inset: auto; aspect-ratio: 2 / 3; border-radius: 8px; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.5) 0%, rgba(10, 10, 15, 0.86) 55%, var(--bg) 100%);
}
@media (min-width: 720px) {
  .hero { padding: 96px 32px 72px; }
  .hero-collage { left: 34%; right: -12%; grid-template-columns: repeat(4, 1fr); }
  .hero::after {
    background:
      linear-gradient(90deg, var(--bg) 30%, rgba(10, 10, 15, 0.7) 60%, rgba(10, 10, 15, 0.45) 100%),
      linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  }
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.hero h1 { margin-top: 12px; font-size: clamp(38px, 7.2vw, 72px); font-weight: 900; line-height: 1.08; letter-spacing: 0.02em; }
.hero h1 span {
  display: block; background: linear-gradient(90deg, #ff3b40, #ff8a5c); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 18px; max-width: 600px; color: var(--text-2); font-size: 16px; }
.next {
  display: inline-grid; gap: 2px; margin-top: 26px; padding: 14px 18px;
  border: 1px solid rgba(245, 196, 81, 0.35); border-radius: var(--radius); background: rgba(245, 196, 81, 0.08);
}
.next-label { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.next-title { font-size: 18px; font-weight: 800; }
.next-when { color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px; margin-top: 24px; }
@media (min-width: 520px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats div {
  display: flex; flex-direction: column-reverse; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04);
}
.stats dd { font-size: 28px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stats dt { color: var(--text-3); font-size: 12.5px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ------------------------------------------------------------------ top nav */
.topnav {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 15, 0.86); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.topnav-inner {
  display: flex; align-items: center; gap: 2px; max-width: var(--maxw); height: var(--nav-h); margin: 0 auto; padding: 0 12px;
  overflow-x: auto; scrollbar-width: none;
}
.topnav-inner::-webkit-scrollbar { display: none; }
.topnav a {
  flex: none; padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-size: 14px; text-decoration: none; white-space: nowrap;
}
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.topnav .brand { margin-right: auto; color: var(--text); font-weight: 800; }

/* ------------------------------------------------------------------ sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px 0; }
@media (min-width: 720px) { .section { padding: 72px 32px 0; } }
.section-head h2 {
  display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; line-height: 1.3;
}
.section-head h2::before { content: ""; flex: none; width: 6px; height: 0.95em; border-radius: 3px; background: var(--red); }
.lead { max-width: 780px; margin-top: 8px; color: var(--text-2); }
.note {
  margin-top: 24px; padding: 12px 16px; border-left: 3px solid var(--line-2); border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.025); color: var(--text-3); font-size: 13px;
}

/* ------------------------------------------------------------------ latest */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 20px; }
.news-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.news-item h3 { margin: 8px 0 4px; font-size: 16px; line-height: 1.45; }
.news-item p { color: var(--text-2); font-size: 14px; }
.news-item strong { color: var(--gold); }
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08);
  color: var(--text-2); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
}
.pill--official { background: rgba(80, 150, 255, 0.15); color: var(--blue-text); }
.pill--data { background: rgba(245, 196, 81, 0.15); color: var(--gold); }
.sources { margin-top: 14px; color: var(--text-3); font-size: 12.5px; }
.sources a { color: var(--blue-text); text-decoration: none; }
.sources a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ list controls */
.controls { display: grid; gap: 12px; margin-top: 22px; }
.controls-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg button {
  min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-2); font-weight: 700; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--red); color: #fff; }
.seg button:disabled { opacity: 0.4; cursor: not-allowed; }
.search { flex: 1 1 220px; max-width: 380px; }
.search input {
  width: 100%; min-height: 46px; padding: 0 16px 0 42px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239393a3' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px 50% / 17px;
  color: var(--text); font-size: 15px;
}
.search input::placeholder { color: var(--text-3); }
.chips { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; min-height: 36px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--text-2); font-size: 13.5px; cursor: pointer;
}
.chips button:hover { color: var(--text); }
.chips button[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); font-weight: 700; }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--text-2); font-size: 13.5px; cursor: pointer; }
.toggle input { width: 17px; height: 17px; margin: 0; accent-color: var(--red); }
.controls.is-route .controls-row--chips { opacity: 0.35; pointer-events: none; }
.route-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 12px 16px;
  border: 1px solid rgba(230, 36, 41, 0.45); border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(230, 36, 41, 0.24), rgba(230, 36, 41, 0.05));
}
.route-banner-label { color: var(--red-text); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.list-note { max-width: 820px; margin-top: 16px; color: var(--text-3); font-size: 13.5px; }
.count { margin-top: 4px; color: var(--text-3); font-size: 12.5px; }
.count:empty { display: none; }
.empty { margin-top: 24px; padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-3); text-align: center; }

/* ------------------------------------------------------------------ groups + cards */
.group { margin-top: 26px; }
.group-head {
  position: sticky; top: var(--nav-h); z-index: 5; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-bottom: 8px; padding: 10px 0 8px; background: linear-gradient(180deg, var(--bg) 78%, rgba(10, 10, 15, 0));
}
.group-head h3 { font-size: 18px; font-weight: 800; }
.group-head p { color: var(--text-3); font-size: 13px; }
.group--outside .group-head h3 { color: var(--text-2); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.poster {
  position: relative; overflow: hidden; aspect-ratio: 2 / 3; border-radius: var(--radius-sm);
  background: var(--surface-2); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.card:hover .poster img { transform: scale(1.04); }
.badge {
  position: absolute; left: 6px; top: 6px; padding: 1px 7px; border-radius: 6px;
  background: rgba(10, 10, 15, 0.8); color: var(--text); font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.badge--show { color: var(--blue-text); }
.badge--soon { background: var(--gold); color: #1d1704; }
.ph + .badge { display: none; }
.card[data-step]::before {
  content: attr(data-step); position: absolute; z-index: 2; right: 6px; top: 6px; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.card-body { padding-top: 8px; }
.card .t {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: 13.5px; font-weight: 700; line-height: 1.4;
}
.card .en { overflow: hidden; color: var(--text-3); font-size: 11.5px; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.card .m { margin-top: 2px; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.card .n {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  margin-top: 4px; color: var(--text-2); font-size: 12px; line-height: 1.5;
}
.card[data-status="upcoming"] .m { color: var(--gold); }
@media (max-width: 719px) {
  .card .en, .card .n { display: none; }
  .card .m { font-size: 11.5px; }
}

/* Placeholder poster, used until TMDB posters are fetched (and for titles TMDB lacks). */
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 10px 10px;
  background: var(--ph, linear-gradient(160deg, #2c2c38, #15151d));
}
.ph[data-tone="p1"] { --ph: linear-gradient(160deg, #8e1d24, #2b0c10); }
.ph[data-tone="p2"] { --ph: linear-gradient(160deg, #8a4a12, #2a1405); }
.ph[data-tone="p3"] { --ph: linear-gradient(160deg, #5a2a91, #1b0d2e); }
.ph[data-tone="p4"] { --ph: linear-gradient(160deg, #1e5aa0, #0b1a2e); }
.ph[data-tone="p5"] { --ph: linear-gradient(160deg, #11806c, #062520); }
.ph[data-tone="p6"] { --ph: linear-gradient(160deg, #a07c14, #2b2104); }
.ph[data-tone="legacy"] { --ph: linear-gradient(160deg, #3f3f4e, #16161d); }
.ph-big { color: rgba(255, 255, 255, 0.94); font-size: clamp(24px, 6vw, 38px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.ph-en { color: rgba(255, 255, 255, 0.72); font-size: 10px; letter-spacing: 0.06em; line-height: 1.3; text-transform: uppercase; }

/* ------------------------------------------------------------------ routes */
.routes-featured { display: grid; gap: 16px; margin-top: 22px; }
.route-feature {
  display: grid; gap: 18px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(135deg, rgba(230, 36, 41, 0.1), transparent 45%), var(--surface);
}
@media (min-width: 960px) { .route-feature { grid-template-columns: 290px minmax(0, 1fr); align-items: start; padding: 24px; } }
.kicker { color: var(--red-text); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.route-head h3 { margin-top: 4px; font-size: 24px; font-weight: 800; line-height: 1.3; }
.tagline { color: var(--gold); font-weight: 700; }
.route-head .desc { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.route-head .btn { margin-top: 16px; }
.strip {
  display: grid; grid-auto-columns: 128px; grid-auto-flow: column; gap: 12px; min-width: 0; padding-bottom: 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-color: var(--line-2) transparent; scrollbar-width: thin;
}
.strip-item { scroll-snap-align: start; }
.poster--strip { box-shadow: none; }
.step {
  position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.strip-item .t { margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1.4; }
.strip-item .why { margin-top: 2px; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.strip-item .soon { color: var(--gold); font-size: 12px; font-weight: 700; }
.subhead { margin-top: 40px; font-size: 18px; font-weight: 800; }
.routes-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); align-items: start; gap: 10px; margin-top: 14px; }
.route-line { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.route-line[open] { border-color: var(--line-2); }
.route-line summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 14px 16px;
  list-style: none; cursor: pointer;
}
.route-line summary::-webkit-details-marker { display: none; }
.route-line summary h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.tag {
  padding: 1px 8px; border-radius: 999px; background: rgba(230, 36, 41, 0.16); color: var(--red-text); font-size: 11.5px; font-weight: 700;
}
.route-count { color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.route-count::after { content: " ▾"; }
.route-line[open] .route-count::after { content: " ▴"; }
.mini-strip { display: flex; grid-column: 1 / -1; gap: 6px; }
.mini { position: relative; flex: none; overflow: hidden; width: 40px; aspect-ratio: 2 / 3; border-radius: 4px; background: var(--surface-2); }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini .ph { padding: 4px; }
.mini .ph-big { font-size: 12px; }
.route-line-body { padding: 0 16px 16px; }
.route-line .desc { color: var(--text-2); font-size: 14px; }
.route-line .btn { margin-top: 14px; }
.steps { margin-top: 12px; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 7px 0;
  border-top: 1px solid var(--line); font-size: 14px; counter-increment: step;
}
.steps li::before { content: counter(step); color: var(--red-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.step-m { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.steps li.is-soon .step-m { color: var(--gold); }

/* ------------------------------------------------------------------ story */
.story { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1fr; } }
.story-part { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.story-part h3 { font-size: 18px; font-weight: 800; line-height: 1.4; }
.quote { margin: 4px 0 12px; color: var(--gold); font-weight: 700; }
.story-part p:not(.quote) { color: var(--text-2); font-size: 14.5px; }
.story-part p + p { margin-top: 10px; }
.story-part b, .story-part strong { color: var(--text); }

/* ------------------------------------------------------------------ upcoming */
.upcoming { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 900px) { .upcoming { grid-template-columns: 1fr 1fr; } }
.up {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.poster--up { width: 84px; box-shadow: none; }
.up-when { color: var(--gold); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.up h3 { margin-top: 2px; font-size: 17px; font-weight: 800; line-height: 1.35; }
.up h3 .en { display: block; color: var(--text-3); font-size: 12px; font-weight: 500; }
.up-note { margin-top: 6px; color: var(--text-2); font-size: 13.5px; }
.up-count { margin-top: 6px; color: var(--red-text); font-size: 13px; font-weight: 700; }
.up-count:empty { display: none; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  display: grid; gap: 8px; max-width: var(--maxw); margin: 80px auto 0; padding: 28px 20px 48px;
  border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px;
}
@media (min-width: 720px) { .site-footer { padding: 28px 32px 56px; } }
.site-footer a { color: var(--text-2); }
.tmdb { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.tmdb img { flex: none; width: 96px; height: auto; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ 404 */
.page-404 {
  display: grid; place-items: center; min-height: 100vh; padding: 24px;
  background: radial-gradient(90% 60% at 50% 0%, rgba(230, 36, 41, 0.3), transparent 65%), var(--bg);
}
.nf { max-width: 520px; text-align: center; }
.nf-code { color: var(--red); font-size: 104px; font-weight: 900; line-height: 1; letter-spacing: 0.04em; }
.nf h1 { margin: 18px 0 8px; font-size: 26px; }
.nf p { color: var(--text-2); }
.nf .btn { margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
