:root {
  --bg: #0a0a0c;
  --surface: #131318;
  --surface-2: #1b1b22;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #9ca0ab;
  --red: #e51c23;
  --red-hover: #ff2b33;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Arial, sans-serif; }
body { background: var(--bg); color: var(--text); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Sticky Top Header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-link { display: flex; align-items: center; gap: 10px; }
.brand-link img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.studio-pill {
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #e4e6eb !important; font-size: 13px; transition: background 0.2s, border-color 0.2s;
}
.studio-pill:hover { background: rgba(229, 28, 35, 0.16); border-color: rgba(229, 28, 35, 0.5); color: #fff !important; }

/* Hero Section */
.hero-stage {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #0a0a0c;
}
.hero-backdrop {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center; opacity: 0.88; pointer-events: none;
}
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #0a0a0c 0%, rgba(10,10,12,0.95) 36%, rgba(10,10,12,0.36) 72%, rgba(10,10,12,0.72) 100%),
              linear-gradient(180deg, rgba(10,10,12,0.22) 0%, rgba(10,10,12,0) 52%, #0a0a0c 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 52px 0 48px; max-width: 590px;
}
.age-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.22); background: rgba(0,0,0,0.45);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: #f0f0f4; margin-bottom: 14px;
}
.age-chip span { color: var(--red); }
.hero-logo { width: min(285px, 68vw); height: auto; display: block; margin-bottom: 14px; filter: drop-shadow(0 10px 26px rgba(0,0,0,0.75)); }
.hero-h1 { font-size: clamp(20px, 2.4vw, 25px); font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -0.01em; }
.hero-lead { font-size: 15px; color: #c7cad4; max-width: 510px; margin-bottom: 24px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red); color: #fff; border: none; cursor: pointer;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 24px rgba(229, 28, 35, 0.35); transition: background 0.18s;
}
.btn-primary:hover { background: var(--red-hover); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.09); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18); cursor: pointer;
  padding: 13px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  backdrop-filter: blur(8px); transition: background 0.18s, border-color 0.18s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.32); }

/* Catalog Sections */
.catalog-section { padding: 36px 0 44px; }
.mini-section { padding: 34px 0 52px; border-top: 1px solid var(--border); }
.catalog-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px;
}
.catalog-title-group { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.catalog-h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.section-sub { font-size: 14px; color: var(--muted); }
.season-tabs { display: inline-flex; background: var(--surface); padding: 4px; border-radius: 10px; border: 1px solid var(--border); gap: 4px; }
.season-btn {
  background: transparent; color: var(--muted); border: none; cursor: pointer;
  padding: 7px 15px; border-radius: 7px; font-size: 13.5px; font-weight: 700; transition: all 0.16s;
}
.season-btn:hover { color: #fff; }
.season-btn.is-active { background: var(--red); color: #fff; }

/* Pure Full 9:16 Uncropped Poster Grid — ZERO Text Overlays! */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.ep-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #08080a; border: 1px solid var(--border);
  aspect-ratio: 9 / 16; display: block; cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.ep-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 28, 35, 0.65);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.72);
}
.ep-card > a { display: block; width: 100%; height: 100%; position: relative; }
.ep-poster {
  width: 100%; height: 100%; object-fit: contain; display: block;
  background: #08080a;
  transition: transform 0.3s ease;
}
.ep-card:hover .ep-poster { transform: scale(1.02); }
.ep-play-circle {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(10, 10, 14, 0.62); border: 1.5px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; padding-left: 3px; opacity: 0.78;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s, transform 0.2s; pointer-events: none;
}
.ep-card:hover .ep-play-circle {
  opacity: 1; background: var(--red); border-color: var(--red); transform: translate(-50%, -50%) scale(1.1);
}

/* Official Series Info Passport & SEO FAQ */
.series-passport { padding: 40px 0 32px; border-top: 1px solid var(--border); }
.passport-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px;
}
.passport-h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.passport-desc { color: #c7cad4; font-size: 14.5px; line-height: 1.65; margin-bottom: 18px; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-dl { display: grid; grid-template-columns: 145px 1fr; gap: 10px 14px; font-size: 14px; }
.meta-dl dt { color: var(--muted); }
.meta-dl dd { color: #fff; font-weight: 600; }

.faq-wrap { margin-top: 24px; display: grid; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 15px 20px; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #f0f1f5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--muted); font-weight: 500; transition: transform 0.18s; }
.faq-item[open] summary::after { content: '−'; color: var(--red); }
.faq-ans { padding: 0 20px 16px; font-size: 14px; color: #c3c6d1; line-height: 1.6; }
.faq-ans a { color: #ff6b70; text-decoration: underline; }

/* Studio Craft Card */
.studio-craft-section { padding: 12px 0 48px; }
.studio-craft-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 30px; border-radius: 18px;
  background: linear-gradient(135deg, #171821 0%, #1d1216 100%);
  border: 1px solid rgba(229, 28, 35, 0.32);
}
.studio-craft-tag {
  display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: #ff6b70; margin-bottom: 6px;
}
.studio-craft-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.studio-craft-sub { font-size: 14px; color: #c5c8d3; max-width: 640px; }
.studio-craft-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 34px; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: #fff; }

/* Clean Spoiler-Free Cinema Modal Player — NO Autoplay Until User Clicks Play! */
.cinema-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 4, 7, 0.93); backdrop-filter: blur(16px);
  display: none; align-items: center; justify-content: center; padding: 14px;
}
.cinema-overlay.is-open { display: flex; }
.cinema-dialog {
  width: 100%; max-width: 470px; max-height: 96vh;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.14); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.9);
}
.cinema-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; background: #101015; border-bottom: 1px solid var(--border);
}
.cinema-ep-label { font-size: 13.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cinema-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.quality-switch {
  display: inline-flex; background: var(--surface-2); padding: 2px; border-radius: 8px; border: 1px solid var(--border); gap: 2px;
}
.q-btn {
  background: transparent; color: var(--muted); border: none; cursor: pointer;
  padding: 4px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; transition: all 0.15s;
}
.q-btn:hover { color: #fff; }
.q-btn.is-active { background: var(--red); color: #fff; }
.cinema-close {
  background: rgba(255,255,255,0.08); color: #fff; border: 1px solid var(--border);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.cinema-close:hover { background: var(--red); border-color: var(--red); }

.cinema-stage {
  background: #000; position: relative; width: 100%;
  aspect-ratio: 9 / 16; max-height: calc(96vh - 116px);
  display: flex; align-items: center; justify-content: center;
}
.cinema-stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

/* Deliberate Center Play Button Overlay (prevents startling auto-sound!) */
.stage-play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5;
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(229, 28, 35, 0.92); color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.78), 0 0 0 8px rgba(229, 28, 35, 0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; padding-left: 5px; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}
.stage-play-btn:hover { background: var(--red-hover); transform: translate(-50%, -50%) scale(1.08); }
.stage-play-btn.is-hidden { opacity: 0; pointer-events: none; }

.marathon-jumps {
  display: none; flex-wrap: wrap; gap: 5px; padding: 9px 12px;
  background: #101015; border-top: 1px solid var(--border); justify-content: center;
}
.marathon-jumps.is-visible { display: flex; }
.jump-chip {
  background: var(--surface-2); color: #d8dbe4; border: 1px solid var(--border);
  padding: 3px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.jump-chip:hover { border-color: var(--red); color: #fff; }

.cinema-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; background: #101015; border-top: 1px solid var(--border);
}
.nav-ep-btn {
  background: var(--surface-2); color: #fff; border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 8px; font-weight: 700; font-size: 12.5px; cursor: pointer;
}
.nav-ep-btn:hover:not(:disabled) { border-color: var(--red); background: rgba(229,28,35,0.14); }
.nav-ep-btn:disabled { opacity: 0.32; cursor: default; }
.autoplay-toggle {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none;
}
.autoplay-toggle input { accent-color: var(--red); width: 15px; height: 15px; cursor: pointer; }

/* Standalone Episode SEO Page */
.ep-standalone { padding: 32px 0 48px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.ep-standalone-box {
  max-width: 460px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
}
.seo-ep-nav {
  max-width: 780px; margin: 28px auto 0; text-align: center;
}
.seo-ep-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 10px; }
.seo-ep-pill {
  padding: 5px 10px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.seo-ep-pill:hover, .seo-ep-pill.is-current { border-color: var(--red); color: #fff; }
.seo-ep-pill.is-current { background: var(--red); }

@media (max-width: 980px) {
  .episodes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .passport-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .episodes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .topbar-inner { height: 56px; }
  .studio-pill { display: none; }
  .nav-links { gap: 15px; font-size: 13px; }
  .hero-content { padding: 34px 0 30px; }
  .cinema-overlay { padding: 0; }
  .cinema-dialog { max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; justify-content: space-between; }
  .cinema-stage { max-height: calc(100dvh - 112px); flex: 1; }
}
