:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --bg: #100b0a;
  --panel: rgba(31, 20, 16, .92);
  --panel-2: rgba(44, 26, 20, .78);
  --ink: #fff8f2;
  --muted: #c8aa94;
  --line: rgba(253, 187, 122, .16);
  --line-2: rgba(255,255,255,.08);
  --gold: #ffbc6d;
  --amber: #ff7f50;
  --rose: #ff668f;
  --aqua: #6fd0ff;
  --shadow: 0 28px 70px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,188,109,.05) 1px, transparent 1px 56px),
    linear-gradient(0deg, rgba(255,188,109,.04) 1px, transparent 1px 56px),
    radial-gradient(circle at 82% 10%, rgba(255,127,80,.12), transparent 28%),
    radial-gradient(circle at 12% 15%, rgba(111,208,255,.12), transparent 24%),
    linear-gradient(150deg, #100b0a 0%, #1b1210 42%, #0d0908 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 8px);
  opacity: .4;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
button, select { font: inherit; }

.site-shell {
  width: min(1760px, 100%);
  margin: 0 auto;
  padding: 18px clamp(14px, 2vw, 28px);
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 18px;
}

.side-nav {
  position: sticky;
  top: 18px;
  align-self: start;
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(44, 26, 20, .94), rgba(18, 12, 11, .94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.brand {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand strong {
  color: var(--gold);
  font-size: 1.58rem;
  line-height: 1.02;
  letter-spacing: 0;
}
.brand span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.side-nav nav {
  display: grid;
  align-content: start;
  gap: 8px;
}
.side-nav nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(255,248,242,.74);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-2);
  font-weight: 850;
}
.side-nav nav a.active,
.side-nav nav a:hover {
  color: #140f0c;
  background: var(--gold);
  border-color: var(--gold);
}
.side-nav p,
.hero-copy p,
.page-title p,
.poster-card p,
.strip-card p,
.footer p,
.detail-copy p,
.ledger-row small {
  color: var(--muted);
  line-height: 1.7;
}

main { min-width: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(260px, .58fr) minmax(0, 1.06fr) minmax(300px, .52fr);
  grid-template-areas: "poster copy ticker";
  gap: 16px;
}
.hero-copy,
.ticker,
.feature-poster,
.score-board,
.page-title,
.filters,
.detail-copy,
.poster-card,
.strip-card,
.detail-poster {
  background: linear-gradient(145deg, rgba(34, 18, 14, .92), rgba(18, 11, 10, .92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-copy {
  grid-area: copy;
  min-height: 610px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 72px);
}
.hero-copy::before {
  content: "JAPAN FILM BOARD";
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: rgba(255,188,109,.08);
  font-size: clamp(3.3rem, 10vw, 8.8rem);
  font-weight: 950;
  line-height: .84;
}
.hero-copy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: linear-gradient(90deg, var(--gold), var(--amber), var(--rose), var(--aqua));
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1 {
  max-width: 840px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.28rem, 1.9vw, 2rem);
  line-height: 1.12;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.action,
.ghost {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--gold);
  font-weight: 950;
}
.action { color: #150f0d; background: var(--gold); }
.ghost { color: var(--gold); background: transparent; }

.feature-poster {
  grid-area: poster;
  min-height: 610px;
  padding: 10px;
  overflow: hidden;
}
.feature-poster a {
  position: relative;
  display: block;
  height: 100%;
}
.feature-poster img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}
.feature-poster span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  color: #140f0d;
  background: var(--gold);
  font-weight: 950;
}

.ticker {
  grid-area: ticker;
  min-height: 610px;
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}
.ledger-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.ledger-row b { color: var(--rose); font-size: .82rem; }
.ledger-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-weight: 900;
}
.ledger-row small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .74rem;
}
.ledger-row i {
  justify-self: end;
  color: var(--aqua);
  font-style: normal;
  font-weight: 950;
}

.type-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.type-rail a {
  min-height: 152px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 14px;
  background: rgba(27, 15, 12, .9);
  border: 1px solid var(--line);
}
.type-rail img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: .56;
}
.type-rail a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,7,.12), rgba(10,8,7,.9));
}
.type-rail strong,
.type-rail span {
  position: relative;
  z-index: 1;
}
.type-rail strong { color: var(--gold); font-size: 1.02rem; }
.type-rail span { color: var(--muted); font-size: .8rem; }

.section { padding-top: 42px; }
.section.compact { padding-top: 18px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.section-head a { color: var(--gold); font-weight: 950; }

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.library-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.poster-card,
.strip-card {
  min-width: 0;
  overflow: hidden;
}
.poster-card a { display: grid; height: 100%; }
.poster-card figure,
.strip-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #0b0807;
}
.poster-card figure { aspect-ratio: 2 / 3; }
.poster-card img,
.strip-card img {
  height: 100%;
  object-fit: cover;
  transition: transform .26s ease, filter .26s ease;
}
.poster-card:hover img,
.strip-card:hover img { transform: scale(1.04); filter: saturate(1.12) contrast(1.08); }
figcaption {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 5px 8px;
  color: #150f0d;
  background: var(--gold);
  font-weight: 950;
}
.poster-card div,
.strip-card div { display: grid; gap: 6px; padding: 11px; }
.poster-card span,
.strip-card span {
  width: max-content;
  max-width: 100%;
  padding: 3px 7px;
  color: #150f0d;
  background: var(--aqua);
  font-size: .68rem;
  font-weight: 950;
}
.poster-card h3,
.strip-card h3 { margin-bottom: 0; font-size: .96rem; line-height: 1.3; }
.poster-card p,
.strip-card p { margin: 0; font-size: .78rem; }
.poster-card em,
.strip-card em { color: var(--gold); font-style: normal; font-size: .78rem; }

.dual-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .34fr);
  gap: 16px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.strip-card a {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  min-height: 110px;
}
.strip-card figure { aspect-ratio: auto; height: 100%; }
.score-board { align-self: start; padding: 16px; }

.page-title {
  margin-top: 0;
  padding: 20px 20px 18px;
}
.page-title h1 { margin-bottom: 12px; font-size: clamp(2.05rem, 3.4vw, 3.8rem); }
.filters {
  margin-top: 14px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.filters > div { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button,
.filters select,
.filters span {
  min-height: 38px;
  padding: 0 11px;
  color: var(--ink);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  font-weight: 850;
}
.filters button.active,
.filters button:hover { color: #150f0d; background: var(--gold); }
.filters select { color: var(--ink); background: #241814; }
.filters option { color: #111; }

.detail {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(300px, .42fr) minmax(0, 1fr);
  gap: 16px;
}
.detail-poster { margin: 0; overflow: hidden; }
.detail-poster img { height: 100%; object-fit: cover; }
.detail-copy {
  padding: clamp(24px, 4.2vw, 64px);
  display: grid;
  align-content: center;
}
.detail-copy .sub {
  margin-top: -5px;
  color: var(--gold);
  font-size: 1.05rem;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0 18px;
}
.facts span {
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255,188,109,.1);
  border: 1px solid rgba(255,188,109,.24);
  font-weight: 850;
}

.footer {
  width: min(1760px, 100%);
  margin: 50px auto 0;
  padding: 26px clamp(14px, 2vw, 28px);
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(150px, .5fr));
  gap: 20px;
  background: #090605;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer strong { color: var(--gold); font-size: 1.16rem; }
.footer h3 { color: var(--amber); margin-bottom: 10px; font-size: .94rem; }
.footer a { display: block; color: var(--muted); margin: 7px 0; }

@media (max-width: 1200px) {
  .site-shell { grid-template-columns: 1fr; }
  .side-nav {
    min-height: auto;
    position: static;
  }
  .hero {
    grid-template-columns: minmax(240px, .45fr) minmax(0, 1fr);
    grid-template-areas:
      "poster copy"
      "ticker ticker";
  }
  .ticker { min-height: auto; }
}

@media (max-width: 860px) {
  .site-shell { padding: 12px; }
  .hero, .dual-section, .detail { grid-template-columns: 1fr; }
  .hero { grid-template-areas: "poster" "copy" "ticker"; }
  .feature-poster, .hero-copy { min-height: auto; }
  .feature-poster { height: min(560px, 112vw); }
  .type-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2rem, 11vw, 3.4rem); }
}

@media (max-width: 520px) {
  .type-rail { grid-template-columns: 1fr; }
  .vault-grid, .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .strip-card a { grid-template-columns: 112px minmax(0, 1fr); }
  .poster-card div, .strip-card div { padding: 9px; }
}
