/* ============================================================
   LANTERNS HUB — cosmic emerald theme
   Pure CSS/SVG artwork only (no HBO imagery)
   ============================================================ */

:root {
  --bg: #04070d;
  --bg-soft: #080e18;
  --panel: #0a1220;
  --panel-2: #0d1728;
  --line: rgba(0, 232, 135, 0.14);
  --line-strong: rgba(0, 232, 135, 0.35);
  --emerald: #00e887;
  --emerald-bright: #5cffb4;
  --emerald-deep: #00b06a;
  --gold: #ffd166;
  --text: #e7eef2;
  --muted: #94a3b3;
  --radius: 14px;
  --glow: 0 0 24px rgba(0, 232, 135, 0.25);
  --font-display: "Orbitron", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --container: 1100px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* animated starfield backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(0, 232, 135, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 20%, rgba(20, 60, 120, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(0, 150, 90, 0.07), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 90px 140px, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, rgba(160,255,210,.6), transparent),
    radial-gradient(1px 1px at 240px 200px, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 310px 100px, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 380px 240px, rgba(160,255,210,.45), transparent);
  background-repeat: repeat;
  background-size: 420px 280px;
  opacity: .5;
  animation: twinkle 9s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .6; } }

img { max-width: 100%; display: block; }
a { color: var(--emerald-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--emerald); color: #03130b; padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 12px 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: 2px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand svg { filter: drop-shadow(0 0 6px rgba(0,232,135,.7)); }
.brand em { color: var(--emerald); font-style: normal; }

.site-nav ul { display: flex; gap: 26px; list-style: none; }
.site-nav a {
  color: var(--muted); font-size: .92rem; font-weight: 600; letter-spacing: .4px;
}
.site-nav a:hover, .site-nav a.active { color: var(--emerald-bright); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: 8px; color: var(--emerald); font-size: 1.3rem; line-height: 1;
  padding: 6px 12px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  font-weight: 700; font-size: .95rem; letter-spacing: .3px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  color: #03130b; box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 34px rgba(0,232,135,.45); }
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--emerald-bright);
  background: rgba(0,232,135,.06);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: 90px 20px 70px;
  background-image:
    linear-gradient(rgba(4,7,13,.45), rgba(4,7,13,.82) 70%, var(--bg)),
    url('https://media.themoviedb.org/t/p/w1920_and_h800_multi_faces/mdbWfpbWhvxgG3k5MHpo90UgAUe.jpg');
  background-size: cover; background-position: center 20%;
}
.hero .emblem {
  width: 92px; margin: 0 auto 22px;
  filter: drop-shadow(0 0 18px rgba(0,232,135,.8));
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(0,232,135,.55)); }
  50% { filter: drop-shadow(0 0 26px rgba(0,232,135,.95)); }
}
.overline {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: 4px;
  color: var(--emerald); text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: 8px; font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, var(--emerald-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(0,232,135,.25);
}
.hero h1 .h1-kw {
  display: block; margin-top: 12px;
  font-family: var(--font-body);
  font-size: clamp(.85rem, 2.1vw, 1.15rem); font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  background: none; -webkit-background-clip: initial; background-clip: initial;
  color: var(--emerald-bright); text-shadow: none;
}
.hero .tagline {
  max-width: 680px; margin: 18px auto 30px;
  color: var(--muted); font-size: 1.06rem;
}

/* ---------- Countdown ---------- */
.countdown-wrap { margin: 8px auto 30px; }
.countdown-label {
  font-size: .85rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; font-weight: 700;
}
.countdown { display: flex; justify-content: center; gap: 12px; }
.count-box {
  min-width: 74px; padding: 12px 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: inset 0 0 18px rgba(0,232,135,.06);
}
.count-box strong {
  display: block; font-family: var(--font-display);
  font-size: 1.7rem; color: var(--emerald-bright);
}
.count-box span { font-size: .7rem; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-alt { background: rgba(10, 18, 32, 0.5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head .overline { margin-bottom: 8px; }
h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: 2px; font-weight: 700;
}
h3 { font-size: 1.15rem; margin-bottom: 8px; }
.section-head p { color: var(--muted); margin-top: 10px; }
.prose { max-width: 800px; }
.prose p { color: #c3cdd6; margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }

/* ---------- Episode grid ---------- */
.ep-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.ep-card {
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ep-card:hover {
  text-decoration: none; transform: translateY(-4px);
  border-color: var(--line-strong); box-shadow: var(--glow);
}
.ep-card .num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: rgba(0,232,135,.35); line-height: 1;
}
.ep-card h3 { font-family: var(--font-display); font-size: 1rem; letter-spacing: 1px; }
.ep-card .date { color: var(--muted); font-size: .85rem; }
.ep-card .tease { color: #b8c4ce; font-size: .88rem; flex-grow: 1; }
.ep-thumb {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 10px; margin-bottom: 8px;
  border: 1px solid var(--line); background: var(--panel-2);
}
.ep-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: rgba(0,232,135,.4); font-size: 1.4rem;
}

.badge {
  display: inline-block; align-self: flex-start;
  font-size: .68rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.badge-live { background: rgba(0,232,135,.14); color: var(--emerald-bright); border: 1px solid var(--line-strong); }
.badge-soon { background: rgba(255,209,102,.12); color: var(--gold); border: 1px solid rgba(255,209,102,.4); }
.badge-finale { background: rgba(120,180,255,.12); color: #9cc4ff; border: 1px solid rgba(120,180,255,.4); }

/* ---------- Schedule table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 13px 18px; text-align: left; font-size: .93rem; }
thead th {
  font-family: var(--font-display); font-size: .74rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--emerald);
  background: rgba(0,232,135,.06); border-bottom: 1px solid var(--line-strong);
}
tbody tr { border-bottom: 1px solid var(--line); background: rgba(10,18,32,.4); }
tbody tr:last-child { border-bottom: none; }
td a { font-weight: 600; }

/* ---------- Cast / compare cards ---------- */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cast-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center;
}
.cast-avatar {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  color: #03130b; background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  box-shadow: var(--glow);
}
.cast-img {
  width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid var(--line-strong); box-shadow: var(--glow);
  background: var(--panel-2);
}
.cast-card .eps { color: var(--muted); font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }
@media (max-width: 640px) {
  .cast-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cast-card { padding: 18px 10px; }
  .cast-img { width: 84px; height: 84px; }
}

/* facts table (show details) */
.facts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; margin-top: 26px;
}
.fact {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px;
}
.fact span { display: block; font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--emerald); margin-bottom: 3px; }
.fact strong { font-size: .95rem; }
.cast-card h3 { font-size: 1rem; }
.cast-card .role { color: var(--emerald-bright); font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.cast-card p { color: var(--muted); font-size: .83rem; }

.vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: start; }
.vs-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.vs-card h3 { font-family: var(--font-display); letter-spacing: 1px; color: var(--emerald-bright); }
.vs-card ul { list-style: none; margin-top: 12px; }
.vs-card li { padding: 8px 0 8px 22px; position: relative; color: #c3cdd6; font-size: .93rem; border-bottom: 1px dashed var(--line); }
.vs-card li:last-child { border-bottom: none; }
.vs-card li::before { content: "▸"; position: absolute; left: 2px; color: var(--emerald); }
.vs-mid {
  align-self: center; font-family: var(--font-display); font-size: 1.6rem;
  color: var(--gold); text-shadow: 0 0 16px rgba(255,209,102,.5);
}

/* ---------- Watch links ---------- */
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.watch-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px;
}
.watch-card .flag { font-size: 1.6rem; line-height: 1; }
.watch-card h3 { margin: 8px 0 4px; font-size: 1.02rem; }
.watch-card .svc { color: var(--emerald-bright); font-weight: 700; font-size: .9rem; }
.watch-card p { color: var(--muted); font-size: .84rem; margin: 8px 0 14px; }
.watch-card .btn { padding: 9px 18px; font-size: .85rem; }

/* ---------- Episode page hero ---------- */
.ep-hero {
  text-align: center; padding: 70px 20px 50px;
  background: radial-gradient(ellipse 70% 70% at 50% -20%, rgba(0,232,135,.14), transparent 70%);
}
.ep-hero .crumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.ep-hero h1 {
  font-family: var(--font-display); letter-spacing: 3px;
  font-size: clamp(1.8rem, 5vw, 3rem);
}
.ep-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  margin: 18px auto 0; color: var(--muted); font-size: .9rem;
}
.ep-meta span strong { color: var(--text); }

/* ---------- Embed frame ---------- */
.embed-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--glow);
  background: var(--panel);
}
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Player zone: wide & cinematic on desktop, full-bleed & taller on mobile */
.player-wrap { max-width: 1040px; }
.player-wrap h2 { margin-bottom: 20px; }
@media (max-width: 767px) {
  #player .container,
  #watch .container { padding-left: 0; padding-right: 0; }
  #player h2,
  #watch h2 { padding: 0 20px; }
  #player .embed-frame,
  #watch .embed-frame {
    aspect-ratio: 16 / 10;
    border-radius: 0;
    border-left: 0; border-right: 0;
  }
  #player,
  #watch { padding-top: 24px; padding-bottom: 24px; }
  #player .player-note,
  #watch .player-note { padding: 0 20px; }
}
.player-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0; cursor: pointer; background: #000;
}
.player-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .25s, transform .4s; }
.player-poster:hover img { opacity: 1; transform: scale(1.02); }
.player-poster .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(0, 232, 135, .94); color: #04070d;
  font-size: 1.7rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  padding-left: 6px; box-shadow: 0 0 44px rgba(0, 232, 135, .65);
  transition: transform .2s;
}
.player-poster:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }
.player-poster .poster-label {
  position: absolute; left: 12px; bottom: 10px;
  background: rgba(4, 7, 13, .78); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: 1.5px;
  padding: 5px 10px; border-radius: 4px;
}
.embed-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 20px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 40%, rgba(0,232,135,.10), transparent 70%),
    var(--panel);
}
.embed-placeholder svg { opacity: .9; filter: drop-shadow(0 0 12px rgba(0,232,135,.6)); }
.embed-placeholder p { color: var(--muted); font-size: .9rem; max-width: 420px; }

/* ---------- Ad slots ---------- */
/* Empty slots collapse to zero height but stay in layout (lazy ads need a position to observe) */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  height: 0; overflow: hidden; margin: 0 auto; max-width: 100%;
}
.ad-slot:has(iframe) { height: auto; overflow: visible; margin: 30px auto; }
.ad-tag {
  font-size: .65rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); opacity: .65;
}
.ad-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: 26px; margin: 34px auto; max-width: 100%; padding: 0 20px;
}
.ad-row .ad-slot { margin: 0; }
.ad-mobile:has(iframe) { margin: 16px auto; }
@media (min-width: 768px) {
  .ad-mobile { display: none !important; }
}

/* ---------- Content blocks on episode pages ---------- */
.content-block { max-width: 820px; margin: 0 auto; }
.content-block h2 { font-size: 1.35rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.content-block h2 .ico { color: var(--emerald); }
.content-block .note {
  border-left: 3px solid var(--gold); background: rgba(255,209,102,.07);
  padding: 12px 16px; border-radius: 0 10px 10px 0;
  color: #d8cfb2; font-size: .88rem; margin-bottom: 16px;
}
.content-block ul.check { list-style: none; margin: 10px 0 16px; }
.content-block ul.check li { padding: 6px 0 6px 26px; position: relative; color: #c3cdd6; }
.content-block ul.check li::before { content: "◆"; position: absolute; left: 4px; color: var(--emerald); font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text);
  list-style: none; position: relative; padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--emerald); font-size: 1.3rem; font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--emerald-bright); }
.faq .faq-a { padding: 0 20px 16px; color: var(--muted); font-size: .93rem; }

/* ---------- Prev / Next ---------- */
.ep-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 820px; margin: 0 auto;
}
.ep-nav a {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ep-nav a:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--glow); }
.ep-nav .dir { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.ep-nav .ttl { font-family: var(--font-display); font-size: .95rem; margin-top: 6px; color: var(--emerald-bright); }
.ep-nav .next { text-align: right; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4,7,13,.85);
  padding: 44px 0 30px; margin-top: 40px;
  font-size: .85rem; color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.site-footer h4 { color: var(--text); font-size: .9rem; margin-bottom: 10px; letter-spacing: 1px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--emerald-bright); }
.disclaimer {
  border-top: 1px solid var(--line); padding-top: 20px;
  font-size: .78rem; line-height: 1.7; color: #6b7885;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .vs-grid { grid-template-columns: 1fr; }
  .vs-mid { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .ep-nav { grid-template-columns: 1fr; }
  .ep-nav .next { text-align: left; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(4,7,13,.97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: none; }
  .site-nav a { display: block; padding: 14px 24px; font-size: 1rem; }
  section { padding: 44px 0; }
  .hero { padding: 64px 16px 54px; }
  .count-box { min-width: 64px; padding: 10px 8px; }
  .count-box strong { font-size: 1.4rem; }
}
