:root {
  --bg: #0b0f12;
  --surface: #13191f;
  --surface-2: #1a222a;
  --border: rgba(235, 242, 248, 0.09);
  --border-strong: rgba(235, 242, 248, 0.18);
  --text: #f1f4f7;
  --muted: #98a5b3;
  --accent: #df723c;
  --accent-hover: #ec824d;
  --accent-ink: #120904;
  --accent-soft: rgba(223, 114, 60, 0.15);
  --ok: #38b87c;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --font-head: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 32px); }

/* Header */
.topbar {
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 18, 0.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); }
.btn-continue {
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(223, 114, 60, 0.38);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.btn-continue:hover { background: rgba(223, 114, 60, 0.24); }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  padding: 16px 0 4px;
  flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.45; }

/* Theater 1st Screen */
.theater { padding: 18px 0 36px; }
.theater-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.theater-head h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.theater-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--border);
}
.score-chip b { color: var(--accent); }

.voice-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.voice-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.voice-pill {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 150ms ease;
}
.voice-pill:hover { color: var(--text); border-color: var(--border-strong); }
.voice-pill.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}
.voice-pill small { font-size: 12px; opacity: 0.72; }

.theater-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

/* Player */
.player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #06090b;
  overflow: hidden;
  cursor: pointer;
}
.player-stage img.stage-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  display: block;
}
.player-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(11, 15, 18, 0.28) 0%, rgba(11, 15, 18, 0.88) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  text-align: center;
}
.ep-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(11, 15, 18, 0.82);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(223, 114, 60, 0.45);
}
.play-big {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 36px rgba(223, 114, 60, 0.38);
  transition: transform 180ms ease, background 180ms ease;
}
.play-big:hover { transform: scale(1.06); background: var(--accent-hover); }
.player-caption { font-family: var(--font-head); font-size: clamp(16px, 1.8vw, 21px); font-weight: 700; }
.player-hint { font-size: 13px; color: var(--muted); max-width: 46ch; }
.player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player-toolbar {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}
.nav-eps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-ghost {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-ghost.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}
.btn-ghost.primary:hover { background: var(--accent-hover); }
.btn-ghost.disabled { opacity: 0.42; pointer-events: none; }

.player-tools-right { display: flex; align-items: center; gap: 8px; }
.vote-btn {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vote-btn:hover, .vote-btn.voted { color: var(--text); border-color: var(--accent); }

/* Playlist Sidebar */
.playlist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.playlist-head { padding: 14px 16px 12px; border-bottom: 1px solid var(--border); }
.playlist-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.playlist-title-row h2 { margin: 0; font-family: var(--font-head); font-size: 16px; font-weight: 700; }
.playlist-count { font-size: 13px; color: var(--muted); }
.season-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.s-btn {
  height: 34px;
  min-width: 68px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.s-btn:hover { color: var(--text); border-color: var(--border-strong); }
.s-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }

.playlist-items {
  max-height: 430px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ep-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: 150ms ease;
}
.ep-row:hover { background: var(--surface-2); }
.ep-row.active { background: var(--accent-soft); border-color: rgba(223, 114, 60, 0.45); }
.ep-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  background: var(--bg);
  padding: 4px 0;
  border-radius: 5px;
}
.ep-row.active .ep-num { background: var(--accent); color: var(--accent-ink); }
.ep-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-qual { font-size: 11px; color: var(--muted); }

/* Ad Slot (VideoRoll / custom) */
.ad-slot { margin: 20px 0; display: flex; justify-content: center; }

/* Season Matrix (Voice × Season quick map from Variant D) */
.section-block { padding: 32px 0; border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; }
.section-head span { font-size: 14px; color: var(--muted); }

.seasons-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.season-card {
  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;
}
.season-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.season-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.season-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.season-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(11, 15, 18, 0.82);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(223, 114, 60, 0.35);
}
.season-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.season-body h3 { margin: 0; font-family: var(--font-head); font-size: 16px; font-weight: 700; }
.season-body p { margin: 0; font-size: 13px; color: var(--muted); }

/* Episodes Cards Grid (Season & Voice pages) */
.episodes-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  transition: border-color 150ms ease, background 150ms ease;
}
.ep-card:hover { border-color: var(--accent); background: var(--surface-2); }
.ep-card-code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 10px 6px;
  border-radius: var(--r-sm);
  text-align: center;
}
.ep-card-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.ep-card-desc { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-card-go { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Voice Availability Matrix */
.voice-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.vm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vm-name { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.vm-name:hover { color: var(--accent); }
.vm-cnt { font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 99px; }
.vm-seasons { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-s {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.vm-s:hover { border-color: var(--accent); color: var(--accent); }

/* Editorial Content & Passport */
.details-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.poster-box {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 2 / 3;
  background: var(--surface);
}
.poster-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin-bottom: 22px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
}
.meta-k { color: var(--muted); display: block; font-size: 12px; }
.meta-v { color: var(--text); font-weight: 600; }

.prose { max-width: 74ch; }
.prose h2 { font-family: var(--font-head); font-size: clamp(20px, 2vw, 24px); margin: 26px 0 12px; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-head); font-size: 18px; margin: 20px 0 8px; }
.prose p { margin: 0 0 14px; color: #ccd5df; line-height: 1.65; }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: #ccd5df; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.table-wrap { overflow-x: auto; margin: 16px 0 22px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.prose th { text-align: left; padding: 11px 12px; background: var(--surface-2); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); }
.prose td { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.prose tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 18px; }
.faq-item summary { font-family: var(--font-head); font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 12px 0 0; color: #ccd5df; font-size: 15px; line-height: 1.6; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 54px;
  color: var(--muted);
  font-size: 14px;
}
.footer-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* Cookie Bar (R-001: 1 line, minimal height, pinned to bottom) */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(19, 25, 31, 0.96);
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.cookie-bar a { color: var(--text); text-decoration: underline; }
.cookie-ok {
  height: 30px;
  padding: 0 14px;
  border-radius: 5px;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 13px;
}
.cookie-bar.hidden { display: none; }

/* Modal for Report Issue */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 11, 0.82);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  max-width: 420px;
  width: 100%;
  padding: 22px;
}
.modal-box h3 { margin: 0 0 14px; font-family: var(--font-head); font-size: 18px; }
.modal-box label { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 14px; cursor: pointer; }
.modal-box textarea { width: 100%; min-height: 70px; margin: 10px 0 14px; padding: 10px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 1040px) {
  .theater-grid { grid-template-columns: 1fr; }
  .seasons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .brand { font-size: 15px; gap: 7px; }
  .btn-continue { height: 34px; padding: 0 10px; font-size: 13px; }
  .btn-continue .cont-prefix { display: none; }
  .episodes-cards { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .poster-box { max-width: 170px; }
  .meta-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .seasons-grid { grid-template-columns: 1fr; }
  .ep-card { grid-template-columns: 54px 1fr; }
  .ep-card-go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
