/* Preset B — Atmospheric Streaming Hero + 4-Col Episode Grid */
:root {
  --bg: #080d12;
  --surface: #101821;
  --surface-2: #16212d;
  --border: rgba(212, 229, 247, 0.10);
  --border-strong: rgba(212, 229, 247, 0.22);
  --text: #eef3f8;
  --text-body: #cfdbe6;
  --muted: #93a6b8;
  --accent: #f0a848;
  --accent-hover: #f6b862;
  --accent-ink: #110c04;
  --accent-soft: rgba(240, 168, 72, 0.14);
  --accent-border: rgba(240, 168, 72, 0.36);
  --crimson: #dc3535;
  --crimson-soft: rgba(220, 53, 53, 0.16);
  --spoiler-title: #f5c176;
  --hdr-bg: rgba(8, 13, 18, 0.90);
  --hdr-text: #eef3f8;
  --hdr-muted: #93a6b8;
  --hdr-border: rgba(212, 229, 247, 0.10);
  --mob-nav-bg: rgba(12, 19, 27, 0.96);
  --mob-nav-text: #a8bacb;
  --ok: #38b87c;
  --err: #f28b82;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --font-head: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* Atmospheric Streaming Hero */
.hero-b {
  position: relative;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-b-bg { position: absolute; inset: 0; z-index: 0; }
.hero-b-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 18%; display: block; }
.hero-b-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 18, 0.96) 0%, rgba(8, 13, 18, 0.85) 46%, rgba(8, 13, 18, 0.30) 78%, rgba(8, 13, 18, 0.50) 100%),
    linear-gradient(180deg, rgba(8, 13, 18, 0.55) 0%, rgba(8, 13, 18, 0.05) 32%, rgba(8, 13, 18, 0.96) 100%);
}
.hero-b-body { position: relative; z-index: 5; padding: 48px 0 44px; max-width: 680px; }
.hero-b-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-body); margin-bottom: 14px; flex-wrap: wrap; }
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  border: 1px solid var(--accent-border);
}
.rating-pill.imdb {
  background: var(--crimson-soft);
  color: #ffb8b8;
  border-color: rgba(220, 53, 53, 0.45);
}
.hero-b-body h1 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: #ffffff;
}
.orig-name { margin: 0 0 14px; font-size: 14px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.hero-b-desc { margin: 0 0 24px; font-size: 16.5px; color: var(--text-body); max-width: 58ch; line-height: 1.6; }

.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-watch {
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(240, 168, 72, 0.24);
}
.btn-watch:hover { background: var(--accent-hover); }
.btn-sec {
  height: 48px;
  padding: 0 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(238, 243, 248, 0.24);
  background: rgba(16, 24, 33, 0.78);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-sec:hover { border-color: rgba(238, 243, 248, 0.45); }

.hero-voices { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-voices-lbl { font-size: 13px; color: var(--muted); margin-right: 4px; }
.v-chip {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(16, 24, 33, 0.84);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.v-chip i { font-style: normal; font-weight: 500; opacity: 0.75; }
.v-chip:hover, .v-chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.voice-more-btn {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.voice-drawer-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Episodes Shelf (4-Col Grid) */
.episodes-sec { padding: 36px 0 32px; }
.seasons-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.season-pill {
  height: 38px;
  padding: 0 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.season-pill:hover { color: var(--text); border-color: var(--border-strong); }
.season-pill.active { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }

.ep-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ep-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
  display: flex;
  flex-direction: column;
}
.ep-tile:hover { transform: translateY(-3px); border-color: var(--accent-border); }
.ep-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1219;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ep-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 18, 0.58) 0%, transparent 40%, rgba(8, 13, 18, 0.78) 100%);
  pointer-events: none;
}
.ep-thumb-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.ep-badge {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(8, 13, 18, 0.80);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.ep-hd { font-size: 12px; font-weight: 700; color: #dce5ee; letter-spacing: 0.04em; }
.ep-tile.watched .ep-hd { color: var(--ok); }
.ep-big-num {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: rgba(238, 243, 248, 0.88);
  position: relative;
  z-index: 1;
}
.ep-body { padding: 12px 14px 14px; }
.ep-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.ep-meta { font-size: 14px; color: var(--muted); }

/* Anti-orphan rules for .ep-grid */
@media (min-width: 1041px) {
  .ep-grid > :last-child:nth-child(4n+1) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .ep-grid > :last-child:nth-child(4n+1) .ep-thumb { width: 280px; flex-shrink: 0; }
}
@media (max-width: 1040px) {
  .ep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 721px) and (max-width: 1040px) {
  .ep-grid > :last-child:nth-child(3n+1) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .ep-grid > :last-child:nth-child(3n+1) .ep-thumb { width: 260px; flex-shrink: 0; }
}
@media (max-width: 720px) {
  .hero-b { min-height: 440px; }
  .hero-b-body { padding: 32px 0 28px; }
  .hero-b-desc { font-size: 15px; }
  .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ep-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .ep-grid { grid-template-columns: 1fr; }
}
