/* DXDrama — Midnight marquee
   A late-night vertical cinema: violet-black theater darkness,
   title-card typography, gold marquee light, one red signal. */

:root {
  color-scheme: dark;
  --ink: #0c0b10;
  --ink-2: #100e16;
  --panel: #17151f;
  --panel-2: #1d1a27;
  --paper: #f4eee3;
  --muted: #a89fb0;
  --quiet: #6f6780;
  --gold: #d9a441;
  --gold-bright: #f0c168;
  --red: #e5483f;
  --hairline: rgba(244, 238, 227, 0.12);
  --hairline-soft: rgba(244, 238, 227, 0.07);
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-family: var(--body);
  background: var(--ink);
  color: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 620px at 78% -10%, rgba(217, 164, 65, 0.07), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(90, 62, 138, 0.12), transparent 55%),
    var(--ink);
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; }
button:focus-visible, a:focus-visible, input:focus-visible, video:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */

.site-header {
  height: 68px;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 0 clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--paper);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(217, 164, 65, 0.35), 0 0 18px rgba(217, 164, 65, 0.18);
}
.brand-mark img { width: 32px; height: 32px; object-fit: cover; }
.brand-name, .footer-brand {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.06em;
  line-height: 1;
  padding-top: 3px;
}
.main-nav { display: flex; height: 100%; align-items: center; gap: 30px; }
.main-nav a {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.18s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--paper); }
.main-nav a.active::after {
  content: "";
  height: 2px;
  background: var(--gold);
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  box-shadow: 0 0 12px rgba(217, 164, 65, 0.55);
}
.header-cta {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
  border: 1px solid rgba(217, 164, 65, 0.4);
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.header-cta:hover {
  background: var(--gold);
  color: #171106;
  box-shadow: 0 0 24px rgba(217, 164, 65, 0.35);
}
.header-cta span { margin-left: 8px; }

/* ---------- Shared ---------- */

#app { min-height: calc(100vh - 200px); outline: none; }
.loading-view { color: var(--muted); padding: 90px 7vw; font-size: 14px; }

.hero-platform, .library-section, .platform-note, .page-intro, .catalog-results,
.series-hero, .episodes-section, .demand-panel, .watch-layout, .privacy-page,
.admin-page, .not-found {
  width: min(1280px, calc(100% - 2 * clamp(20px, 6vw, 96px)));
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.24em;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.5;
  margin: 0 0 18px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(229, 72, 63, 0.8);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

h1, h2, p { margin-top: 0; }
.hero-copy h1, .page-intro h1, .series-hero-copy h1, .watch-title h1,
.admin-heading h1, .privacy-page h1, .not-found h1, .empty-library h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.92;
}

/* ---------- Buttons & links ---------- */

.button {
  min-height: 48px;
  padding: 4px 24px 0;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.07em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { opacity: 0.65; cursor: default; }
.button-primary {
  color: #171106;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 8px 28px rgba(217, 164, 65, 0.28);
}
.button-primary:hover:not(:disabled) { box-shadow: 0 12px 36px rgba(217, 164, 65, 0.42); }
.button-outline {
  color: var(--paper);
  border-color: rgba(244, 238, 227, 0.28);
  background: transparent;
}
.button-outline:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(217, 164, 65, 0.07);
}
.button-amber {
  color: #1c1206;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 8px 28px rgba(217, 164, 65, 0.25);
}
.button-amber:hover:not(:disabled) { box-shadow: 0 12px 36px rgba(217, 164, 65, 0.4); }
.button-small { min-height: 40px; padding: 3px 18px 0; font-size: 15px; }
.button-counted, .button.counted {
  color: var(--gold-bright);
  border-color: rgba(217, 164, 65, 0.45);
  background: rgba(217, 164, 65, 0.08);
  box-shadow: none;
}
.text-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(244, 238, 227, 0.22);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.text-link:hover { color: var(--gold-bright); border-color: var(--gold); }
.text-link span { color: var(--gold); margin-left: 6px; }

/* ---------- Home hero ---------- */

.hero-platform {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(48px, 7vh, 84px) 0;
}
.hero-copy { max-width: 640px; }
.hero-copy h1 {
  font-size: clamp(88px, 10.5vw, 156px);
  margin-bottom: 28px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.hero-copy h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  text-shadow: 0 0 32px rgba(217, 164, 65, 0.25);
}
.hero-intro {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 34px 0 44px;
}
.hero-facts {
  display: flex;
  gap: 40px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.hero-facts span + span { border-left: 1px solid var(--hairline); padding-left: 40px; }
.hero-facts b {
  display: block;
  color: var(--paper);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* the "screen" — tall poster frame with marquee glow */
.hero-art {
  position: relative;
  display: block;
  justify-self: end;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(217, 164, 65, 0.22);
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(217, 164, 65, 0.12);
  transform: rotate(1.6deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}
.hero-art:hover {
  transform: rotate(0deg) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 36px 90px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(217, 164, 65, 0.2);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 16, 0) 55%, rgba(12, 11, 16, 0.55));
  pointer-events: none;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* ---------- Poster wall (series grid) ---------- */

.library-section { padding: 44px 0 110px; border-top: 1px solid var(--hairline-soft); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 34px;
}
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .platform-note h2, .demand-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 56px);
  letter-spacing: 0.02em;
  line-height: 0.95;
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.series-card {
  min-width: 0;
  display: block;
  border-radius: 16px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.series-card:hover { transform: translateY(-4px); }
.series-card-art {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--hairline-soft);
  margin-bottom: 16px;
}
.series-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.92);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.45s ease;
}
.series-card:hover .series-card-art {
  border-color: rgba(217, 164, 65, 0.4);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 50px rgba(217, 164, 65, 0.1);
}
.series-card:hover .series-card-art img { transform: scale(1.045); filter: saturate(1.05); }
.art-overlay {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, transparent, rgba(10, 9, 13, 0.72));
}
.series-card-status {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(12, 11, 16, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 8px;
  font-weight: 800;
}
.series-card-copy { display: grid; gap: 7px; padding: 0 2px; }
.genre-line, .catalog-count {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.series-card-copy strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: 0.03em;
  line-height: 1;
}
.series-card-copy > span:last-child { color: var(--muted); font-size: 11.5px; }
.library-note {
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  margin-top: 40px;
}
.note-rule { width: 28px; height: 1px; background: var(--gold); }
.library-note p { color: var(--muted); font-size: 12px; margin: 0; }

/* ---------- Platform strip ---------- */

.platform-note {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 26px;
  background: linear-gradient(120deg, #17141f, #12101a 60%);
  border: 1px solid rgba(217, 164, 65, 0.18);
  border-radius: 20px;
  padding: 40px 44px;
  margin-bottom: 110px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.platform-note-mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
}
.platform-note-mark img { width: 58px; height: 58px; object-fit: cover; }
.platform-note .eyebrow { margin-bottom: 8px; }
.platform-note h2 { font-size: 36px; }

/* ---------- Catalog page ---------- */

.page-intro { padding: 76px 0 36px; }
.page-intro h1 { font-size: clamp(64px, 8vw, 110px); margin-bottom: 20px; }
.page-intro h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--gold);
}
.page-intro > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; max-width: 560px; font-size: 14px; }
.catalog-intro { padding-bottom: 24px; }
.search-field {
  display: flex;
  align-items: center;
  width: min(480px, 100%);
  height: 52px;
  gap: 12px;
  border-bottom: 1px solid rgba(244, 238, 227, 0.25);
  margin-top: 30px;
  color: var(--gold);
  transition: border-color 0.18s ease;
}
.search-field > span:not(.sr-only) { font-size: 24px; line-height: 1; }
.search-field input {
  background: transparent;
  border: 0;
  width: 100%;
  color: var(--paper);
  outline: 0;
  font-size: 14px;
}
.search-field input::placeholder { color: var(--quiet); }
.search-field:focus-within { border-color: var(--gold); }
.genre-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.filter-chip {
  border: 1px solid var(--hairline);
  color: var(--muted);
  background: transparent;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.filter-chip.active, .filter-chip:hover {
  color: var(--gold-bright);
  border-color: rgba(217, 164, 65, 0.55);
  background: rgba(217, 164, 65, 0.08);
}
.catalog-results { padding: 12px 0 110px; }
.catalog-count {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 14px 0 18px;
  margin-bottom: 24px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 500;
  font-size: 11px;
}
.catalog-count span:first-child { color: var(--paper); font-weight: 800; }
.no-results { color: var(--muted); padding: 34px 0; font-size: 13px; }
.empty-library { min-height: 50vh; padding: 12vh 0; }
.empty-library h1 { font-size: 64px; }
.empty-library p:last-child { color: var(--muted); }

/* ---------- Series page ---------- */

.series-hero {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-top: 56px;
  padding-bottom: 76px;
}
.series-hero-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(217, 164, 65, 0.2);
  background: var(--panel);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 70px rgba(217, 164, 65, 0.08);
  transform: rotate(-1.2deg);
}
.series-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(12, 11, 16, 0.5));
}
.series-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.series-hero-copy .back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 40px;
  transition: color 0.16s ease;
}
.back-link:hover { color: var(--gold-bright); }
.series-hero-copy .eyebrow { margin-bottom: 14px; }
.series-hero-copy h1 { font-size: clamp(56px, 6.5vw, 92px); margin: 0 0 14px; }
.series-tagline {
  font-size: 17px;
  color: var(--gold-bright);
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}
.series-description {
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
  font-size: 13.5px;
}
.series-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  margin: 26px 0 30px;
}
.series-meta span { padding: 0 14px; border-left: 1px solid var(--hairline); }
.series-meta span:first-child { padding-left: 0; border: 0; }

/* ---------- Episodes ---------- */

.episodes-section { border-top: 1px solid var(--hairline-soft); padding: 48px 0 64px; }
.episode-count { color: var(--muted); font-size: 11px; padding-bottom: 6px; }
.episode-list { border-top: 1px solid var(--hairline-soft); }
.episode-row {
  min-height: 132px;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: background 0.15s ease;
}
a.episode-row:hover { background: rgba(217, 164, 65, 0.045); }
.episode-image {
  width: 68px;
  height: 104px;
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--hairline-soft);
}
.episode-image img { width: 100%; height: 100%; object-fit: cover; }
.episode-number {
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
  background: rgba(12, 11, 16, 0.72);
  padding: 3px 7px;
  border-radius: 0 0 8px 0;
}
.episode-copy { display: grid; gap: 7px; }
.episode-eyebrow {
  color: var(--gold);
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.episode-copy strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.03em;
  line-height: 1;
}
.episode-summary { max-width: 600px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.episode-end {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.episode-end span { color: var(--gold); font-size: 16px; }
.episode-locked { grid-template-columns: 76px minmax(0, 1fr) auto auto; opacity: 0.9; }
.locked-art {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--quiet);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 6.5px;
  background: linear-gradient(150deg, #1b1826, #0f0d15);
}
.lock-icon {
  width: 14px;
  height: 11px;
  margin-top: 8px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  position: relative;
  opacity: 0.8;
}
.lock-icon::before {
  content: "";
  position: absolute;
  left: 2.5px;
  right: 2.5px;
  height: 7px;
  top: -8px;
  border: 1px solid var(--gold);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.episode-row-action { display: contents; }
.episode-locked .button { grid-column: 4; }

/* ---------- Demand panel ---------- */

.demand-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 200px at 85% 50%, rgba(217, 164, 65, 0.1), transparent 70%),
    linear-gradient(120deg, #181522, #12101a);
  border: 1px solid rgba(217, 164, 65, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 38px 42px;
  margin-bottom: 110px;
}
.demand-panel .eyebrow { margin-bottom: 8px; }
.demand-panel h2 { font-size: 38px; }
.demand-panel p:not(.eyebrow) {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.65;
}
.demand-action { display: grid; justify-items: end; gap: 12px; flex: 0 0 auto; }
.demand-count { color: var(--muted); font-size: 9.5px; }

/* ---------- Watch page ---------- */

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 52px;
  padding-top: 36px;
  padding-bottom: 100px;
  align-items: start;
}
.watch-main > .back-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 18px;
}
.video-frame {
  position: relative;
  background: #050408;
  width: min(100%, 400px);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(217, 164, 65, 0.07);
}
.video-frame video {
  display: block;
  width: 100%;
  max-height: 76vh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #050408;
}
.video-live {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #f6f1e6;
  background: rgba(12, 11, 16, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(244, 238, 227, 0.14);
  border-radius: 999px;
  padding: 6px 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 8px;
  font-weight: 800;
  pointer-events: none;
}
.video-live i {
  display: inline-block;
  height: 6px;
  width: 6px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(229, 72, 63, 0.9);
  border-radius: 50%;
  margin-right: 7px;
}
.watch-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 0;
}
.watch-title .eyebrow { margin-bottom: 10px; }
.watch-title h1 { margin: 0 0 10px; font-size: clamp(34px, 3.6vw, 48px); }
.watch-title p:last-child { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0; }
.watch-navigation { display: flex; gap: 10px; flex: 0 0 auto; }
.watch-sidebar {
  border-left: 1px solid var(--hairline-soft);
  padding-left: 28px;
  padding-top: 52px;
}
.watch-sidebar .eyebrow { margin-bottom: 6px; }
.watch-sidebar h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.03em;
  margin: 0 0 22px;
}
.watch-episode-list { border-top: 1px solid var(--hairline-soft); }
.watch-episode {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--hairline-soft);
  padding: 13px 0;
  color: var(--muted);
  transition: color 0.15s ease;
}
.watch-episode:hover { color: var(--paper); }
.watch-episode.current { color: var(--paper); }
.watch-number {
  color: var(--gold);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.08em;
}
.watch-episode b, .watch-episode small { display: block; }
.watch-episode b { font-size: 11px; font-weight: 700; color: inherit; }
.watch-episode small { margin-top: 4px; font-size: 9px; color: var(--quiet); }
.watch-episode > span:last-child { font-size: 9px; font-weight: 700; }
.watch-episode.current > span:last-child { color: var(--gold-bright); }
.watch-ask { padding-top: 26px; display: grid; justify-items: start; gap: 10px; }
.watch-ask b { font-size: 12.5px; }
.watch-ask p { color: var(--muted); font-size: 10.5px; line-height: 1.55; margin: 0; }

/* ---------- Privacy / admin / misc ---------- */

.privacy-page { padding-bottom: 110px; }
.privacy-copy { max-width: 640px; border-top: 1px solid var(--hairline-soft); padding-top: 24px; }
.privacy-copy h2 { font-size: 16px; margin: 26px 0 9px; }
.privacy-copy p { color: var(--muted); line-height: 1.8; font-size: 12.5px; }
.privacy-copy .button { margin-top: 12px; }
.not-found { min-height: 52vh; padding: 13vh 0; }
.not-found h1 { font-size: 52px; }
.admin-page { min-height: 75vh; padding: 70px 0 100px; }
.admin-heading { max-width: 700px; }
.admin-heading h1 { font-size: 64px; margin-bottom: 12px; }
.admin-heading > p:last-child { color: var(--muted); font-size: 12.5px; }
.admin-login {
  max-width: 520px;
  padding: 26px;
  margin: 26px 0 36px;
  background: var(--panel);
  border: 1px solid var(--hairline-soft);
  border-radius: 16px;
  display: grid;
  gap: 16px;
}
.admin-login label { display: grid; gap: 9px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.admin-login input {
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  padding: 13px;
  border-radius: 8px;
}
.admin-login input:focus { border-color: var(--gold); outline: none; }
.form-message { color: var(--gold-bright); font-size: 11px; min-height: 14px; margin: 0; }
.admin-results { display: grid; gap: 28px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}
.metric { padding: 22px 16px 22px 0; display: grid; gap: 10px; }
.metric + .metric { border-left: 1px solid var(--hairline-soft); padding-left: 22px; }
.metric span { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.metric strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.03em;
  line-height: 1;
}
.admin-block { border-bottom: 1px solid var(--hairline-soft); padding-bottom: 24px; }
.admin-block h2 { font-size: 16px; margin-bottom: 18px; }
.daily-chart {
  height: 180px;
  display: flex;
  align-items: end;
  gap: 8px;
  border-bottom: 1px solid var(--hairline-soft);
  padding: 0 3px;
}
.day-bar {
  height: 100%;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
  min-width: 0;
}
.day-bar > span {
  display: block;
  width: min(26px, 65%);
  height: var(--bar);
  background: linear-gradient(180deg, var(--gold-bright), #8a6423);
  border-radius: 3px 3px 0 0;
  min-height: 3px;
}
.day-bar small { color: var(--quiet); font-size: 7px; writing-mode: vertical-rl; transform: rotate(180deg); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; text-align: left; }
th {
  color: var(--quiet);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
th, td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--hairline-soft); }
td { color: #cfc8d8; font-size: 11.5px; }
.measurement-note, .updated-at { font-size: 9.5px; color: var(--quiet); margin: 0; line-height: 1.7; }

/* ---------- Footer & toast ---------- */

.site-footer {
  border-top: 1px solid var(--hairline-soft);
  min-height: 150px;
  padding: 28px clamp(20px, 6vw, 96px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 26px;
  align-items: center;
  color: var(--muted);
}
.footer-brand { color: var(--paper); }
.site-footer p { margin: 0; font-size: 10.5px; }
.footer-links { display: flex; gap: 20px; font-size: 10.5px; }
.footer-links a { transition: color 0.16s ease; }
.footer-links a:hover { color: var(--gold-bright); }
.site-footer small { grid-column: 2 / -1; font-size: 9px; color: var(--quiet); }
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
  color: #171106;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 30px rgba(217, 164, 65, 0.3);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Page entrance (one orchestrated moment) ---------- */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy > *, .hero-art { animation: rise-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.36s; }
.hero-art { animation-delay: 0.22s; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-platform { grid-template-columns: 1fr; gap: 44px; min-height: 0; }
  .hero-art { justify-self: start; width: min(100%, 360px); transform: rotate(0.8deg); }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .watch-sidebar { padding-left: 20px; }
  .platform-note h2 { font-size: 30px; }
}

@media (max-width: 650px) {
  .site-header { height: 60px; padding: 0 18px; gap: 20px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .brand-mark img { width: 29px; height: 29px; }
  .brand-name { font-size: 21px; }
  .main-nav { gap: 18px; margin-left: auto; }
  .main-nav a { font-size: 12px; }
  .header-cta { display: none; }
  .hero-platform, .library-section, .platform-note, .page-intro, .catalog-results,
  .series-hero, .episodes-section, .demand-panel, .watch-layout, .privacy-page,
  .admin-page, .not-found { width: calc(100% - 36px); }
  .hero-platform { padding: 48px 0 44px; }
  .hero-copy h1 { font-size: clamp(64px, 19vw, 96px); }
  .hero-copy h1 em { -webkit-text-stroke-width: 1.5px; }
  .hero-intro { font-size: 14px; }
  .hero-actions { margin: 28px 0 32px; align-items: start; flex-direction: column; gap: 18px; }
  .hero-facts { gap: 22px; }
  .hero-facts span + span { padding-left: 22px; }
  .hero-facts b { font-size: 28px; }
  .hero-art { width: min(100%, 320px); }
  .library-section { padding: 34px 0 72px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 36px; }
  .section-heading .text-link { white-space: nowrap; font-size: 11px; }
  .series-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .series-card-copy strong { font-size: 21px; }
  .platform-note { grid-template-columns: 52px 1fr; gap: 16px; padding: 26px 20px; margin-bottom: 68px; }
  .platform-note-mark { width: 48px; height: 48px; border-radius: 13px; }
  .platform-note-mark img { width: 47px; height: 47px; }
  .platform-note h2 { font-size: 26px; }
  .platform-note > .button { grid-column: 1 / -1; justify-self: start; }
  .page-intro { padding: 52px 0 28px; }
  .page-intro h1 { font-size: 60px; }
  .catalog-count { gap: 12px; line-height: 1.5; }
  .catalog-count span:last-child { text-align: right; max-width: 56%; }
  .catalog-results { padding-bottom: 72px; }
  .series-hero { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding-top: 26px; padding-bottom: 44px; }
  .series-hero-image { width: min(100%, 300px); transform: rotate(0); }
  .series-hero-copy .back-link { margin-bottom: 28px; }
  .series-hero-copy h1 { font-size: 52px; }
  .series-tagline { font-size: 15px; }
  .series-meta { gap: 8px 0; }
  .episodes-section { padding: 34px 0 44px; }
  .episode-row { grid-template-columns: 58px minmax(0, 1fr); gap: 13px; min-height: 112px; padding: 11px 0; }
  .episode-image { width: 54px; height: 82px; }
  .episode-copy strong { font-size: 19px; }
  .episode-summary { font-size: 10px; }
  .episode-end { grid-column: 2; justify-self: start; margin-top: -4px; }
  .episode-locked { grid-template-columns: 58px minmax(0, 1fr); }
  .episode-locked .button { grid-column: 2; justify-self: start; }
  .episode-locked .episode-row-action { display: block; grid-column: 2; }
  .demand-panel { display: grid; gap: 24px; padding: 28px 22px; margin-bottom: 70px; }
  .demand-panel h2 { font-size: 30px; }
  .demand-action { justify-items: start; }
  .watch-layout { display: flex; flex-direction: column; gap: 36px; padding-top: 26px; }
  .video-frame { width: min(100%, 380px); }
  .video-frame video { max-height: none; }
  .watch-title { display: grid; }
  .watch-navigation { justify-content: start; }
  .watch-sidebar { border-left: 0; border-top: 1px solid var(--hairline-soft); padding: 26px 0 0; width: 100%; }
  .watch-episode { grid-template-columns: 36px 1fr auto; }
  .site-footer { grid-template-columns: 1fr auto; gap: 10px 14px; padding: 26px 18px; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
  .footer-links { grid-column: 1 / -1; grid-row: 3; }
  .site-footer small { grid-column: 1 / -1; grid-row: 4; }
  .admin-heading h1 { font-size: 48px; }
  .admin-login { padding: 20px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline-soft); }
  .metric:nth-child(4) { border-top: 1px solid var(--hairline-soft); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
