:root {
  --bg: #070708;
  --bg-2: #121214;
  --ink: #f6f1e8;
  --muted: #b7b0a6;
  --gold: #e4c48a;
  --gold-2: #a78445;
  --line: rgba(228, 196, 138, 0.28);
  --card: 220px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 "Avenir Next", "Segoe UI", sans-serif;
}
button, a { -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }

.top {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(14px + env(safe-area-inset-top)) 22px 14px;
  background: linear-gradient(#070708, rgba(7, 7, 8, 0));
}
.top.solid {
  background: rgba(7, 7, 8, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.logo {
  color: var(--ink);
  text-decoration: none;
  font-family: Didot, "Bodoni MT", Palatino, Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
}
.logo em {
  margin-left: 6px;
  padding: 1px 6px 2px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  color: var(--gold);
  font-style: normal;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  vertical-align: 4px;
}
.top-nav { display: flex; gap: 18px; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.top-nav a:hover { color: white; }

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 120px 22px 54px;
  overflow: hidden;
  background: #111;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 18%;
  transform: scale(1.04);
  filter: saturate(0.9);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.94) 0%, rgba(7, 7, 8, 0.72) 42%, rgba(7, 7, 8, 0.15) 70%),
    linear-gradient(180deg, rgba(7, 7, 8, 0.2), rgba(7, 7, 8, 0.15) 40%, #070708);
}
.hero-copy { position: relative; max-width: 640px; }
.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.hero h1 {
  margin: 0;
  font-family: Didot, "Bodoni MT", Palatino, Georgia, serif;
  font-weight: 500;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.9;
}
.hero-meta { margin: 14px 0; color: var(--muted); }
.hero-text { margin: 0 0 22px; max-width: 46ch; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.play, .ghost, .text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.play { background: white; color: #111; font-weight: 700; }
.play:hover { background: var(--gold); }
.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.ghost:hover { border-color: var(--gold); }
.play:disabled, .ghost:disabled, .mini:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.row { padding: 8px 0 18px; }
.row-head, .row-scroller {
  padding-left: 22px;
  padding-right: 22px;
}
.row h2 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
  font-weight: 650;
}
.row-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 46vw);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.row-scroller::-webkit-scrollbar { display: none; }
.wide { grid-auto-columns: minmax(240px, 72vw); }

.card > button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.card, .photo {
  scroll-snap-align: start;
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #1b1b1e;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.card img, .photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #222;
}
.photo img { aspect-ratio: 3 / 4; }
.card figcaption, .card-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}
.card strong, .photo strong { display: block; font-size: 0.95rem; }
.card em, .photo em {
  color: var(--gold);
  font-style: normal;
  font-size: 0.78rem;
}
.card:hover img, .photo:hover img { transform: scale(1.03); }
.card img, .photo img { transition: transform 0.35s ease; }
.series-card img { aspect-ratio: 16 / 10; }

.mini {
  margin-top: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  font: inherit;
  cursor: pointer;
}

.foot {
  margin-top: 28px;
  padding: 36px 22px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.foot-logo { margin: 0; }
.foot-name {
  margin: 8px 0 0;
  font-family: Didot, "Bodoni MT", Palatino, Georgia, serif;
  font-size: 1.35rem;
}
.foot-note { margin: 6px 0 0; color: var(--muted); }

.sheet, .stage, .light {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
}
.sheet-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); }
.sheet-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: min(92vh, 860px);
  overflow: auto;
  background: #101012;
  border-radius: 22px 22px 0 0;
  padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
}
.sheet-hero {
  display: grid;
  gap: 16px;
}
.sheet-hero img {
  width: 100%;
  max-height: 240px;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 20%;
}
.sheet h3 {
  margin: 0;
  font-family: Didot, "Bodoni MT", Palatino, Georgia, serif;
  font-size: 2.4rem;
  font-weight: 500;
}
.ep {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ep img { width: 112px; height: 64px; object-fit: cover; border-radius: 8px; background: #222; }
.ep p { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; }
.ep button {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.stage, .light {
  display: grid;
  grid-template-rows: auto 1fr;
}
.stage-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
}
.stage-bar p { margin: 0; font-weight: 650; }
.icon-btn, .text-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font: inherit;
  cursor: pointer;
}
.icon-btn { font-size: 1.6rem; line-height: 1; }
.text-btn { padding: 0 14px; text-decoration: none; }
.sheet-x { position: absolute; top: 12px; right: 12px; }
#screen, #light-img {
  width: min(1100px, 100%);
  max-height: calc(100vh - 88px);
  margin: 0 auto 12px;
  background: black;
  object-fit: contain;
}
.stage-msg {
  position: absolute;
  left: 16px; right: 16px; bottom: 24px;
  margin: 0;
  text-align: center;
  color: var(--gold);
}
.light { grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr; }
.light .stage-bar { grid-column: 1 / -1; }
.nav-arrow {
  align-self: center;
  width: 46px;
  height: 72px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
}
.empty {
  margin: 28vh 22px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero { align-items: center; padding-left: 7vw; }
  .row-scroller, .wide { grid-auto-columns: var(--card); }
  .wide { grid-auto-columns: 320px; }
  .sheet-panel {
    left: 50%;
    right: auto;
    bottom: 50%;
    transform: translate(-50%, 50%);
    width: min(860px, calc(100% - 48px));
    border-radius: 22px;
    max-height: min(86vh, 760px);
  }
  .sheet-hero { grid-template-columns: 280px 1fr; align-items: center; }
}
