/* ========== 1001 — Shared Styles ========== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0C0B15;
  --bg2:       #13121F;
  --bg3:       #1C1B2A;
  --bg-grad:   radial-gradient(ellipse at 50% -10%, rgba(201,168,76,0.08) 0%, transparent 60%);
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.14);
  --gold:      #C9A84C;
  --gold-dim:  rgba(201,168,76,0.12);
  --gold-bord: rgba(201,168,76,0.28);
  --teal:      #4ECBA5;
  --teal-dim:  rgba(78,203,165,0.1);
  --teal-bord: rgba(78,203,165,0.28);
  --blue:      #5C7191;
  --blue-deep: #3A4A6B;
  --blue-dim:  rgba(92,113,145,0.12);
  --blue-bord: rgba(92,113,145,0.32);
  --text:      #E8E6F0;
  --text2:     rgba(232,230,240,0.65);
  --text3:     rgba(232,230,240,0.38);
  --r:         8px;
  --r-sm:      5px;
  --r-lg:      14px;
  /* Cinematic easing — feels like a steadicam, not a step. */
  --ease-out-quint: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body { background: var(--bg); }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  animation: pageIn .6s ease-out;
}

/* ===== Motion ===== */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%, 100% { opacity: .92; }
  50%      { opacity: 1;   }
}

/* Reveal-on-scroll: elements with .reveal start hidden, .visible animates in */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease-out, transform .8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.shell { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2rem 0; }

/* ---------- Top Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,11,21,0.96);
  border-bottom: .5px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 1.5rem;
}
.brand {
  font-family: 'Cinzel', serif;
  font-size: 18px; letter-spacing: 4px; color: var(--gold);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 24px; width: auto;
  color: var(--gold);
  flex-shrink: 0;
}
.brand small {
  display: inline-block;
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: var(--text3); letter-spacing: 2px; text-transform: uppercase;
}

/* Hero logo */
.hero-logo {
  display: block;
  width: clamp(200px, 32vw, 360px);
  height: auto;
  color: var(--gold);
  margin: 0 auto 1.75rem;
  animation: shimmer 5s ease-in-out infinite;
}
.nav-links { display: flex; gap: 6px; }
.nav-link {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text2); padding: 8px 14px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--bg2); }
.nav-link.active { color: var(--gold); background: var(--gold-dim); }

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; opacity: .9;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(56px, 12vw, 140px);
  font-weight: 400; letter-spacing: 8px;
  line-height: 1; color: var(--text);
  background: linear-gradient(180deg, #fff 0%, var(--gold) 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}
.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(15px, 2vw, 19px); letter-spacing: 3px;
  text-transform: uppercase; color: var(--text2);
  margin-bottom: 2rem;
}

/* ===== Hero word cycler ===== */
.hero-marquee {
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
  margin-top: 1.75rem; margin-bottom: 2rem;
  user-select: none;
}
.hm-line {
  position: relative;
  width: clamp(60px, 12vw, 130px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
  overflow: hidden;
}
.hm-line::after {
  content: '';
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: hmLineSweep 4s ease-in-out infinite;
}
.hm-line:last-child::after {
  animation-direction: reverse;
  animation-delay: 2s;
}
@keyframes hmLineSweep {
  0%   { left: -30%; }
  100% { left: 130%; }
}

.hm-words {
  position: relative;
  width: clamp(180px, 26vw, 280px);
  height: 1.6em;
  display: inline-block;
  overflow: hidden;
}
.hm-word {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: clamp(4px, .8vw, 7px);
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 18px rgba(201,168,76,0.35);
  opacity: 0;
  transform: translateY(10px);
  animation: hmWordCycle 18s cubic-bezier(0.4, 0.1, 0.2, 1) infinite;
  white-space: nowrap;
}
.hm-word:nth-child(1) { animation-delay:    0s; }
.hm-word:nth-child(2) { animation-delay:    3s; }
.hm-word:nth-child(3) { animation-delay:    6s; }
.hm-word:nth-child(4) { animation-delay:    9s; }
.hm-word:nth-child(5) { animation-delay:   12s; }
.hm-word:nth-child(6) { animation-delay:   15s; }

/* Each word: hidden → fade in (3%) → hold (~13%) → fade out (3%) → hidden.
   Uses only opacity + transform (GPU-cheap) — no filter blur. */
@keyframes hmWordCycle {
  0%, 17%, 100% { opacity: 0; transform: translateY(10px); }
  3%, 14%       { opacity: 1; transform: translateY(0); }
  17%           { opacity: 0; transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-word { animation: none; opacity: 1; transform: none; position: static; }
  .hm-words { height: auto; width: auto; }
  .hm-word + .hm-word { display: none; }
  .hm-line::after { animation: none; }
}
.hero-logline {
  max-width: 620px; margin: 0 auto 2.5rem;
  font-size: 17px; color: var(--text2); line-height: 1.7;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; font-family: 'Cinzel', serif;
  border: .5px solid var(--gold-bord); background: var(--gold-dim);
  color: var(--gold); border-radius: var(--r-sm); cursor: pointer;
  transition: all .15s; font-weight: 500;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.btn.ghost { background: transparent; border-color: var(--border2); color: var(--text2); }
.btn.ghost:hover { background: var(--bg2); color: var(--text); border-color: var(--text3); }

/* ---------- Section headings ---------- */
.section-head { margin-bottom: 2.5rem; text-align: center; }
.section-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px; opacity: .85;
}
.section-title {
  font-family: 'Cinzel', serif; font-size: clamp(28px, 4vw, 38px);
  font-weight: 400; letter-spacing: 2px; color: var(--text);
}
.section-sub {
  margin-top: 10px; color: var(--text2); font-size: 14px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.divider { height: .5px; background: var(--border); margin: 4rem 0; }

/* ---------- Stat strip ---------- */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  max-width: 720px; margin: 3rem auto 0;
}
.stat {
  background: var(--bg2); border: .5px solid var(--border);
  border-radius: var(--r); padding: 18px 22px;
}
.stat-label {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 5px;
}
.stat-value {
  font-family: 'Cinzel', serif; font-size: 30px;
  font-weight: 400; color: var(--text);
}

/* ---------- Card grid ---------- */
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid-wide {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* Episode cards */
.ep-card {
  background: var(--bg2);
  border: .5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transform: translate3d(0, 0, 0);
  transition:
    transform .55s var(--ease-out-quint),
    border-color .45s var(--ease-out-quint),
    background-color .45s var(--ease-out-quint);
}
/* Soft glow under card on hover — pseudo with opacity is cheaper to animate than a box-shadow change. */
.ep-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 22px 50px -18px rgba(201,168,76,0.45), 0 10px 28px -10px rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity .55s var(--ease-out-quint);
  z-index: -1;
}
.ep-card:hover {
  transform: translate3d(0, -6px, 0);
  border-color: var(--gold-bord);
  background-color: var(--bg3);
}
.ep-card:hover::before { opacity: 1; }
.ep-poster {
  aspect-ratio: 16/9; background: var(--bg3);
  background-image: linear-gradient(135deg, var(--bg2), var(--bg3));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border-bottom: .5px solid var(--border);
}
.ep-poster::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(12,11,21,0.78) 100%);
  opacity: 0;
  transition: opacity .55s var(--ease-out-quint);
  pointer-events: none;
}
.ep-card:hover .ep-poster::after { opacity: 1; }
.ep-poster img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 1.4s var(--ease-out-quint);
}
.ep-card:hover .ep-poster img { transform: translate3d(0, 0, 0) scale(1.07); }
.ep-poster-num {
  font-family: 'Cinzel', serif; font-size: 64px;
  color: rgba(201,168,76,0.2); font-weight: 400; letter-spacing: 2px;
}
.ep-status {
  position: absolute; top: 12px; right: 12px;
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 8px; border-radius: 3px;
  background: rgba(12,11,21,0.85); border: .5px solid var(--border2);
  color: var(--text2);
}
.ep-status.released { color: var(--teal); border-color: var(--teal-bord); background: rgba(12,11,21,0.85); }
.ep-status.upcoming { color: var(--gold); border-color: var(--gold-bord); }

.ep-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.ep-num {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 2px; color: var(--gold); margin-bottom: 6px;
}
.ep-title {
  font-family: 'Cinzel', serif; font-size: 18px;
  font-weight: 500; color: var(--text); margin-bottom: 8px;
  letter-spacing: .5px; line-height: 1.3;
}
.ep-syn { font-size: 13.5px; color: var(--text2); flex: 1; line-height: 1.6; }
.ep-synopsis {
  font-size: 12.5px; color: var(--text2); line-height: 1.55;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Unreleased episodes: blurred poster + label */
.ep-poster img.blurred {
  filter: blur(14px) brightness(0.5) saturate(0.9);
  transform: scale(1.15);
}
.ep-lock {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 18px; gap: 10px;
}
.ep-lock-title {
  font-family: 'Cinzel', serif; font-size: 17px; font-weight: 500;
  color: var(--text); letter-spacing: .5px; line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}
.ep-lock-status {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-bord); border-radius: 999px;
  padding: 4px 12px; background: rgba(12,11,21,0.4);
}
/* Home intro + trailer */
.home-intro {
  max-width: 720px; margin: -0.5rem auto 2.75rem; text-align: center;
  color: var(--text2); font-size: 16px; line-height: 1.85;
}
.trailer-wrap {
  position: relative; width: 100%; max-width: 960px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden;
  border: .5px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.75);
}
.trailer-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ep-foot {
  margin-top: 14px; padding-top: 12px;
  border-top: .5px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 1.5px; color: var(--text3); text-transform: uppercase;
}

/* Character cards */
.ch-card {
  background: var(--bg2); border: .5px solid var(--border);
  border-radius: var(--r); padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition:
    transform .55s var(--ease-out-quint),
    border-color .45s var(--ease-out-quint),
    background-color .45s var(--ease-out-quint);
}
/* Thin gold sweep at the top — draws in from center on hover instead of just fading. */
.ch-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .7s var(--ease-out-quint);
}
/* Soft glow halo on hover */
.ch-card::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 22px 50px -18px rgba(201,168,76,0.4);
  opacity: 0;
  transition: opacity .55s var(--ease-out-quint);
  z-index: -1;
}
.ch-card:hover {
  transform: translate3d(0, -6px, 0);
  border-color: var(--gold-bord);
  background-color: var(--bg3);
}
.ch-card:hover::before { transform: scaleX(1); }
.ch-card:hover::after  { opacity: 1; }
.ch-portrait img {
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 1.4s var(--ease-out-quint);
}
.ch-card:hover .ch-portrait img { transform: translate3d(0, 0, 0) scale(1.08); }
.ch-portrait {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 22px; color: var(--gold);
  margin-bottom: 4px; overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px var(--border), 0 0 0 4px var(--bg2), 0 0 0 5px var(--gold-bord);
  transition: box-shadow .35s ease;
}
.ch-card:hover .ch-portrait { box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--bg2), 0 0 0 5px var(--gold); }
.ch-portrait img { width: 100%; height: 100%; object-fit: cover; }
.ch-name {
  font-family: 'DM Mono', monospace; font-size: 14px;
  color: var(--text); letter-spacing: 1px;
}
.ch-role { font-size: 13px; color: var(--text2); }
.ch-bio { font-size: 13px; color: var(--text3); line-height: 1.6; flex: 1; }
.ch-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* ---------- Badges ---------- */
.badge {
  font-family: 'DM Mono', monospace; font-size: 9.5px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  font-weight: 500; white-space: nowrap;
}
.badge-gold { background: var(--gold-dim); color: var(--gold); border: .5px solid var(--gold-bord); }
.badge-teal { background: var(--teal-dim); color: var(--teal); border: .5px solid var(--teal-bord); }
.badge-blue { background: var(--blue-dim); color: var(--blue); border: .5px solid var(--blue-bord); }
.badge-ghost { background: transparent; color: var(--text3); border: .5px solid var(--border); }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; gap: 10px; margin-bottom: 2rem;
  flex-wrap: wrap; align-items: center;
}
.search {
  flex: 1; min-width: 220px;
  background: var(--bg2); border: .5px solid var(--border);
  border-radius: var(--r); padding: 11px 16px;
  font-size: 13px; color: var(--text);
  outline: none; font-family: inherit;
}
.search::placeholder { color: var(--text3); }
.search:focus { border-color: var(--border2); }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: var(--r-sm); border: .5px solid var(--border);
  background: transparent; color: var(--text2); cursor: pointer;
  font-family: 'DM Mono', monospace; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--border2); }
.chip.active { color: var(--gold); border-color: var(--gold-bord); background: var(--gold-dim); }

/* ---------- Detail pages ---------- */
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 2rem;
  transition: color .15s;
}
.detail-back:hover { color: var(--gold); }

.detail-hero {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem;
  margin-bottom: 3rem; align-items: start;
}
@media (max-width: 760px) {
  .detail-hero { grid-template-columns: 1fr; gap: 1.5rem; }
}
.detail-poster {
  aspect-ratio: 4/5; background: var(--bg2);
  border-radius: var(--r-lg);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background-image: linear-gradient(135deg, var(--bg2), var(--bg3));
  position: relative;
  padding: 6px;
  box-shadow: inset 0 0 0 1px var(--border), inset 0 0 0 7px var(--bg), inset 0 0 0 8px var(--gold-bord), 0 18px 60px -20px rgba(0,0,0,0.6);
}
.detail-poster img,
.detail-poster .detail-poster-num {
  border-radius: calc(var(--r-lg) - 6px);
  position: relative;
  width: 100%; height: 100%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
}
.detail-poster.wide { aspect-ratio: 16/9; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-poster-num {
  font-family: 'Cinzel', serif; font-size: 120px;
  color: rgba(201,168,76,0.18); font-weight: 400;
}
.detail-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.detail-title {
  font-family: 'Cinzel', serif; font-size: clamp(32px, 5vw, 48px);
  font-weight: 500; letter-spacing: 1px; color: var(--text);
  line-height: 1.1; margin-bottom: 12px;
}
.detail-sub {
  font-family: 'Cinzel', serif; font-size: 16px;
  letter-spacing: 1px; color: var(--text2);
  margin-bottom: 1.5rem; font-style: italic;
}
.detail-meta-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.detail-syn {
  font-size: 16px; color: var(--text); line-height: 1.75;
  margin-bottom: 1.75rem;
}
.detail-syn p + p { margin-top: 1rem; }

.info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px; margin-bottom: 2rem;
  padding: 18px 20px; background: var(--bg2);
  border: .5px solid var(--border); border-radius: var(--r);
}
.info-cell-lbl {
  font-family: 'DM Mono', monospace; font-size: 9.5px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 4px;
}
.info-cell-val { font-size: 13.5px; color: var(--text); }

.block { margin-top: 2.5rem; }
.block-title {
  font-family: 'Cinzel', serif; font-size: 20px;
  font-weight: 500; letter-spacing: 1.5px;
  color: var(--text); margin-bottom: 1rem;
  padding-bottom: 8px; border-bottom: .5px solid var(--border);
}
.block-list { list-style: none; padding: 0; }
.block-list li {
  position: relative; padding: 10px 0 10px 26px;
  font-size: 14.5px; color: var(--text2); line-height: 1.65;
  border-bottom: .5px solid var(--border);
}
.block-list li::before {
  content: ''; position: absolute; left: 6px; top: 17px;
  width: 6px; height: 6px; background: var(--gold);
  border-radius: 50%; opacity: .6;
}
.block-list li:last-child { border-bottom: none; }

.quote {
  padding: 18px 22px; background: var(--bg2);
  border-left: 2px solid var(--gold); border-radius: 4px;
  font-family: 'Cinzel', serif; font-size: 16px;
  font-style: italic; color: var(--text); line-height: 1.6;
  margin-bottom: 10px;
}

.mini-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.mini-card {
  background: var(--bg2);
  border: .5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  position: relative;
  transform: translate3d(0, 0, 0);
  transition:
    transform .55s var(--ease-out-quint),
    border-color .45s var(--ease-out-quint),
    background-color .45s var(--ease-out-quint);
}
.mini-card::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 18px 40px -16px rgba(201,168,76,0.4);
  opacity: 0;
  transition: opacity .55s var(--ease-out-quint);
  z-index: -1;
}
.mini-card:hover {
  border-color: var(--gold-bord);
  background-color: var(--bg3);
  transform: translate3d(0, -5px, 0);
}
.mini-card:hover::after { opacity: 1; }
/* Optional portrait area — only renders when .mini-card-portrait child is present */
.mini-card-portrait {
  aspect-ratio: 4 / 5;
  background: var(--bg3);
  background-image: linear-gradient(135deg, var(--bg2), var(--bg3));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.mini-card-portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 1.4s var(--ease-out-quint);
}
.mini-card:hover .mini-card-portrait img { transform: translate3d(0, 0, 0) scale(1.07); }
.mini-card-portrait::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 35%;
  background: linear-gradient(to bottom, transparent, rgba(12,11,21,0.55));
  pointer-events: none;
}
.mini-card-fallback {
  font-family: 'Cinzel', serif; font-size: 36px;
  color: var(--gold); opacity: .45;
}
.mini-card-body { padding: 12px 14px 14px; }
.mini-card-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 9.5px;
  letter-spacing: 1.5px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 4px;
}
.mini-card-title {
  font-family: 'Cinzel', serif; font-size: 15px;
  color: var(--text); letter-spacing: .5px;
  line-height: 1.25;
}
.mini-card-sub { font-size: 12px; color: var(--text3); margin-top: 3px; }
/* When mini-card has no portrait (e.g., on character.html "Appears In"),
   restore the simple padded look. */
.mini-card:not(:has(.mini-card-portrait)) { padding: 14px 16px; }
.mini-card:not(:has(.mini-card-portrait)) .mini-card-body { padding: 0; }

/* ---------- Featured episode banner (homepage) ---------- */
.featured {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  border: .5px solid var(--border);
  margin: 2rem 0 3rem;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  display: flex; align-items: flex-end;
  background: var(--bg2);
  isolation: isolate;
}
.featured-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: -2;
  animation: kenBurns 22s ease-in-out infinite alternate;
  transform-origin: 30% 50%;
}
.featured:hover .featured-bg { animation-play-state: paused; transform: scale(1.06); transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1); }
@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, 1%); }
}
@media (prefers-reduced-motion: reduce) {
  .featured-bg { animation: none; }
}
.featured-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,11,21,0.10) 0%, rgba(12,11,21,0.55) 55%, rgba(12,11,21,0.95) 100%),
    linear-gradient(90deg, rgba(12,11,21,0.7) 0%, rgba(12,11,21,0.2) 60%, transparent 100%);
}
.featured-content {
  padding: 3rem 2.5rem 2.5rem;
  max-width: 620px;
}
.featured-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 10.5px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.featured-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
  animation: shimmer 2.4s ease-in-out infinite;
}
.featured-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 500; letter-spacing: 1.5px;
  line-height: 1.05; margin-bottom: 14px;
  color: var(--text);
  text-shadow: 0 4px 28px rgba(0,0,0,0.7);
}
.featured-sub {
  font-family: 'Cinzel', serif; font-style: italic;
  font-size: 16px; color: var(--text2);
  margin-bottom: 18px; letter-spacing: .5px;
}
.featured-syn {
  font-size: 15px; color: var(--text2);
  line-height: 1.7; margin-bottom: 22px;
  max-width: 540px;
}
.featured-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r-sm);
  background: var(--gold); color: var(--bg);
  font-family: 'Cinzel', serif; font-size: 13px;
  letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 500; border: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px -8px rgba(201,168,76,0.5);
}
.featured-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(201,168,76,0.7);
}
@media (max-width: 700px) {
  .featured { min-height: 0; }
  .featured-content { padding: 1.5rem 1.25rem 1.25rem; }
  .featured-syn { display: none; }
}

/* ---------- "Watch on YouTube" link button — outlined, sweep-fill, DM Mono ---------- */
.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 26px 14px 22px;
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(12,11,21,0.45);
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  text-decoration: none;
  transition: color .45s cubic-bezier(0.4, 0.1, 0.2, 1),
              transform .25s ease,
              letter-spacing .35s ease,
              box-shadow .35s ease;
  box-shadow: 0 0 0 0 rgba(201,168,76, 0);
}
.yt-link::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold) 0%, #f0d27a 50%, var(--gold) 100%);
  transform: translateX(-101%);
  transition: transform .55s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: -1;
}
.yt-link:hover {
  color: var(--bg);
  letter-spacing: 4px;
  box-shadow: 0 14px 36px -10px rgba(201,168,76,0.55);
}
.yt-link:hover::before { transform: translateX(0); }
.yt-link-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform .4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.yt-link-icon svg { margin-left: 1.5px; }
.yt-link:hover .yt-link-icon { transform: rotate(360deg); }
.yt-link-arrow {
  display: inline-block;
  margin-left: -2px;
  transition: transform .35s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.yt-link:hover .yt-link-arrow { transform: translateX(6px); }

@media (max-width: 600px) {
  .yt-link {
    font-size: 10.5px; letter-spacing: 2.5px;
    padding: 12px 20px 12px 16px;
  }
  .yt-link:hover { letter-spacing: 3px; }
}

/* ---------- Cinematic episode detail hero ---------- */
.cine-hero {
  position: relative;
  margin: 0 -1.5rem 2.5rem;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  /* Isolate the hero's paint work so scrolling outside it
     doesn't trigger repaint of these layers. */
  contain: layout paint;
}
/* Ambient backdrop — gradient-only, no expensive blur filter.
   The original blurred bitmap was the dominant cause of scroll jank
   on detail pages. A radial gradient is essentially free to paint. */
.cine-hero-bg-blur {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(40,35,55,0.85) 0%, var(--bg) 70%);
}
/* Tone wash via simple gradient layer (no mix-blend-mode, no filters) */
.cine-hero[data-tone="cool"] .cine-hero-bg-blur {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(58,74,107,0.55) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(20,25,40,0.7) 0%, var(--bg) 70%);
}
.cine-hero[data-tone="warm"] .cine-hero-bg-blur {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(120,80,40,0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(40,30,20,0.7) 0%, var(--bg) 70%);
}
/* Crisp image — fully visible, anchored to the top of the hero */
.cine-hero-bg {
  position: relative; z-index: -2;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: contain; background-position: center top;
  background-repeat: no-repeat;
  max-height: 70vh;
}
/* Soft fade at the bottom of the contained image into the page bg */
.cine-hero-bg::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--bg) 90%);
  pointer-events: none;
}
.cine-hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}
.cine-hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.cine-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 500; letter-spacing: 2px;
  line-height: 1.02; color: var(--text);
  text-shadow: 0 4px 32px rgba(0,0,0,0.7);
  margin-bottom: 12px;
  max-width: 820px;
  opacity: 0;
  transform: scale(1.04) translateY(8px);
  animation: titleLand 1.1s cubic-bezier(0.2, 0.6, 0.2, 1) .8s forwards;
}
.cine-hero-eyebrow {
  opacity: 0;
  animation: fadeUp .6s ease-out .55s forwards;
}
.cine-hero-sub, .cine-hero-meta, .cine-hero-syn, .yt-link {
  opacity: 0;
  animation: fadeUp .8s ease-out 1.4s forwards;
}
.cine-hero-meta { animation-delay: 1.5s; }
.cine-hero-syn  { animation-delay: 1.65s; }
.yt-link        { animation-delay: 1.8s; }

@keyframes titleLand {
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cine-hero-sub {
  font-family: 'Cinzel', serif; font-style: italic;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--text2); margin-bottom: 20px;
  letter-spacing: 1px;
}
.cine-hero-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.cine-hero-syn {
  font-size: 16px; color: var(--text);
  line-height: 1.75; max-width: 620px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
@media (max-width: 760px) {
  .cine-hero { margin: 0 -1.5rem 2rem; }
  .cine-hero-content { padding: 1rem 1.5rem 2rem; }
}

/* ---------- Ornamental section divider (with logo motif) ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
  margin: 4rem auto 3rem;
  max-width: 480px;
  padding: 0 1.5rem;
  user-select: none;
}
.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}
.ornament-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 22px;
  color: var(--gold);
  opacity: .8;
  transition: opacity .3s ease, transform .6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.ornament:hover .ornament-mark { opacity: 1; transform: rotate(180deg); }

/* ---------- Floating scroll-to-top button ---------- */
.scroll-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(12,11,21,0.95);
  border: 1px solid var(--gold-bord);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 80;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .25s ease, border-color .25s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
  font-family: inherit;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.scroll-top svg { display: block; }
@media (max-width: 600px) {
  .scroll-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ---------- Episode rail (film-reel at bottom of detail pages) ---------- */
.reel {
  position: relative;
  margin: 5rem -1.5rem 0;
  padding: 2.5rem 1.5rem 2.5rem;
  border-top: .5px solid var(--border);
  background: linear-gradient(to bottom, transparent, rgba(12,11,21,0.6));
}
.reel-head {
  max-width: 1080px; margin: 0 auto 1.5rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.reel-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 10.5px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold);
}
.reel-title {
  font-family: 'Cinzel', serif; font-size: 18px;
  letter-spacing: 1.5px; color: var(--text2);
}
.reel-track {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding: 8px 1.5rem 18px;
  margin: 0 -1.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-bord) transparent;
}
.reel-track::-webkit-scrollbar { height: 4px; }
.reel-track::-webkit-scrollbar-track { background: transparent; }
.reel-track::-webkit-scrollbar-thumb { background: var(--gold-bord); border-radius: 4px; }
.reel-card {
  flex-shrink: 0;
  width: 220px;
  scroll-snap-align: start;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg2);
  border: .5px solid var(--border);
  text-decoration: none;
  display: flex; flex-direction: column;
  position: relative;
  transform: translate3d(0, 0, 0);
  transition:
    transform .55s var(--ease-out-quint),
    border-color .45s var(--ease-out-quint);
}
.reel-card::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 16px 36px -16px rgba(201,168,76,0.4);
  opacity: 0;
  transition: opacity .55s var(--ease-out-quint);
  z-index: -1;
}
.reel-card:hover {
  transform: translate3d(0, -5px, 0);
  border-color: var(--gold-bord);
}
.reel-card:hover::after { opacity: 1; }
.reel-card .reel-poster img {
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 1.4s var(--ease-out-quint);
}
.reel-card:hover .reel-poster img { transform: translate3d(0, 0, 0) scale(1.06); }
.reel-card.is-current {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-bord);
}
.reel-poster {
  aspect-ratio: 16/9;
  background-color: var(--bg3);
  position: relative;
  overflow: hidden;
}
.reel-poster img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.reel-poster::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,11,21,0.7), transparent 50%);
  pointer-events: none;
}
.reel-num {
  position: absolute; bottom: 6px; left: 9px;
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 1.5px; color: var(--gold);
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  z-index: 1;
}
.reel-body {
  padding: 10px 14px 14px;
}
.reel-card-title {
  font-family: 'Cinzel', serif; font-size: 14px;
  color: var(--text); letter-spacing: .5px;
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel-card-meta {
  font-family: 'DM Mono', monospace; font-size: 9.5px;
  letter-spacing: 1.5px; color: var(--text3);
  margin-top: 6px; text-transform: uppercase;
}

@media (max-width: 600px) {
  .reel-card { width: 180px; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: .5px solid var(--border);
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px; letter-spacing: 2.5px;
  color: var(--text3); text-transform: uppercase;
  margin-top: 4rem;
}

/* ---------- Empty state ---------- */
.empty {
  text-align: center; padding: 5rem 1rem;
  color: var(--text3);
}
.empty-title {
  font-family: 'Cinzel', serif; font-size: 18px;
  color: var(--text2); margin-bottom: 8px;
}
.empty-sub { font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .nav-links { gap: 0; }
  .nav-link { padding: 8px 10px; font-size: 11px; letter-spacing: 1.5px; }
  .brand { font-size: 16px; letter-spacing: 3px; }
  .brand small { display: none; }
  .section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 2rem; }
}
