/* ===========================================================
   California TV — Golden Hour theme
   Shared stylesheet for all pages
   =========================================================== */

:root {
  /* Core palette — California sunset over a night sky */
  --night: #0a0613;
  --night-2: #120a22;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.08);
  --ink: #f6f1ff;
  --muted: #b7adcf;
  --faint: #837a99;

  /* Brand gradients */
  --sun: #ffb347;
  --coral: #ff6a5e;
  --pink: #ff4d8d;
  --violet: #8b5cf6;
  --ocean: #38bdf8;

  --grad-sun: linear-gradient(135deg, #ffd16a 0%, #ff8a5b 38%, #ff4d8d 100%);
  --grad-night: linear-gradient(180deg, #0a0613 0%, #160c2b 55%, #0a0613 100%);
  --grad-ocean: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 100%);

  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 18px 50px -12px rgba(255, 77, 141, 0.45);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1240px;
  --nav-h: 74px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--night);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient animated aurora behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 15% 10%, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(45% 45% at 85% 15%, rgba(255, 106, 94, 0.22), transparent 60%),
    radial-gradient(50% 50% at 50% 95%, rgba(255, 77, 141, 0.18), transparent 60%),
    var(--night);
  filter: blur(10px);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-2%,0) scale(1.08); }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--pink); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Reusable bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sun);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-sun); border-radius: 2px; }

.gradient-text {
  background: var(--grad-sun);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section { padding: 96px 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); max-width: 460px; margin-top: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-sun); color: #1a0b13; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 24px 60px -10px rgba(255,77,141,0.6); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--ink); border: 1px solid var(--panel-border); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Pills / badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--panel-border);
  color: var(--ink);
}
.badge-live { background: rgba(255,77,94,0.16); border-color: rgba(255,77,94,0.4); color: #ff8a82; }
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 0 rgba(255,77,94,0.7); animation: pulse 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,94,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255,77,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); }
}

/* ===========================================================
   Navigation
   =========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 6, 19, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--panel-border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-sun);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px -6px rgba(255,138,91,0.6);
  position: relative; overflow: hidden;
}
.brand .logo-mark svg { width: 22px; height: 22px; display: block; }
.brand .logo-mark [data-icon] { display: contents; }
.brand b { font-weight: 800; }
.brand span.ca { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--muted);
  padding: 9px 15px; border-radius: 10px;
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  background: var(--grad-sun); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--panel-border);
  padding: 8px 14px; border-radius: 999px; color: var(--muted);
  transition: border-color 0.25s, background 0.25s;
}
.nav-search:hover { border-color: rgba(255,255,255,0.2); }
.nav-search svg { width: 16px; height: 16px; }

.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--panel-border); position: relative; }
.hamburger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s var(--ease); }
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(10,6,19,0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 6px; padding: 28px 24px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a { font-size: 20px; font-weight: 700; padding: 14px 8px; border-bottom: 1px solid var(--panel-border); color: var(--ink); }
.mobile-menu .btn { margin-top: 16px; }

/* ===========================================================
   Hero
   =========================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,6,19,0.55) 0%, rgba(10,6,19,0.2) 40%, rgba(10,6,19,0.92) 100%),
    linear-gradient(90deg, rgba(10,6,19,0.85) 0%, rgba(10,6,19,0.1) 60%);
}
.hero-inner { position: relative; padding-top: var(--nav-h); max-width: 720px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 82px); line-height: 1.02; font-weight: 800;
  letter-spacing: -0.03em; margin: 18px 0 20px;
}
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; gap: 26px; margin-top: 42px; flex-wrap: wrap; }
.hero-meta .stat b { font-size: 26px; font-weight: 800; display: block; }
.hero-meta .stat span { font-size: 13px; color: var(--faint); letter-spacing: 0.04em; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--faint); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid var(--faint); border-radius: 14px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: var(--sun); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:1; top:7px;} 100%{opacity:0; top:18px;} }

/* Marquee of brands / genres */
.marquee { overflow: hidden; padding: 22px 0; border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); background: rgba(255,255,255,0.015); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollx 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 18px; font-weight: 700; color: var(--faint); white-space: nowrap; letter-spacing: 0.02em; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ===========================================================
   Content rows / cards
   =========================================================== */
.row { margin-bottom: 56px; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.row-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.row-head a { font-size: 14px; font-weight: 600; color: var(--muted); }
.row-head a:hover { color: var(--sun); }

.scroller { position: relative; }
.scroller-track {
  display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 18px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.scroller-track::-webkit-scrollbar { height: 6px; }

.card {
  position: relative; flex: 0 0 auto; width: 230px; aspect-ratio: 2/3;
  border-radius: var(--radius-sm); overflow: hidden;
  scroll-snap-align: start; cursor: pointer;
  background: var(--night-2); border: 1px solid var(--panel-border);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,6,19,0.95) 100%);
  opacity: 0.85; transition: opacity 0.4s;
}
.card:hover { transform: translateY(-8px) scale(1.03); box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,0.18); z-index: 2; }
.card:hover img { transform: scale(1.1); }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; z-index: 2; transform: translateY(8px); opacity: 0.92; transition: transform 0.4s var(--ease), opacity 0.4s; }
.card:hover .card-body { transform: translateY(0); opacity: 1; }
.card-body h4 { font-size: 16px; font-weight: 700; line-height: 1.2; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 5px; }
.card-meta .imdb { color: var(--sun); font-weight: 700; }
.card-tag { position: absolute; top: 12px; left: 12px; z-index: 3; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 4px 9px; border-radius: 7px; background: rgba(10,6,19,0.7); backdrop-filter: blur(6px); text-transform: uppercase; }
.card-tag.new { background: var(--grad-sun); color: #1a0b13; }
.card-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.6); z-index: 3; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,0.16); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transition: 0.4s var(--ease); border: 1px solid rgba(255,255,255,0.3); }
.card:hover .card-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.card-play svg { width: 22px; height: 22px; }

.scroll-btn { position: absolute; top: calc(50% - 18px); transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(10,6,19,0.85); border: 1px solid var(--panel-border); display: grid; place-items: center; z-index: 5; opacity: 0; transition: opacity 0.3s, background 0.3s; backdrop-filter: blur(8px); }
.scroller:hover .scroll-btn { opacity: 1; }
.scroll-btn:hover { background: var(--grad-sun); color: #1a0b13; }
.scroll-btn.prev { left: -14px; }
.scroll-btn.next { right: -14px; }
.scroll-btn svg { width: 20px; height: 20px; }

/* ===========================================================
   Feature / spotlight band
   =========================================================== */
.spotlight { position: relative; border-radius: 28px; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; border: 1px solid var(--panel-border); }
.spotlight video, .spotlight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.spotlight::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,6,19,0.95) 10%, rgba(10,6,19,0.25) 70%), linear-gradient(180deg, transparent 50%, rgba(10,6,19,0.9)); z-index: -1; }
.spotlight-body { padding: 48px; max-width: 540px; }
.spotlight-body h2 { font-size: clamp(28px,4vw,46px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 14px; }
.spotlight-body p { color: var(--muted); margin-bottom: 26px; }

/* ===========================================================
   Feature grid (why CA TV)
   =========================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 32px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--panel-border); position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.feature::before { content: ""; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px; border-radius: 50%; background: var(--grad-sun); opacity: 0.14; filter: blur(20px); transition: opacity 0.4s; }
.feature:hover::before { opacity: 0.28; }
.feature .ficon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.06); border: 1px solid var(--panel-border); display: grid; place-items: center; margin-bottom: 20px; }
.feature .ficon svg { width: 26px; height: 26px; color: var(--sun); }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ===========================================================
   Pricing
   =========================================================== */
.toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 48px; }
.toggle { width: 58px; height: 32px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid var(--panel-border); position: relative; transition: background 0.3s; }
.toggle.on { background: var(--grad-sun); }
.toggle .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left 0.3s var(--ease); }
.toggle.on .knob { left: 29px; }
.toggle-wrap .save { font-size: 13px; font-weight: 700; color: var(--sun); background: rgba(255,179,71,0.12); padding: 4px 10px; border-radius: 999px; }
.toggle-label { font-weight: 600; color: var(--muted); }
.toggle-label.active { color: var(--ink); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 34px 30px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); position: relative; transition: transform 0.4s var(--ease), border-color 0.3s; }
.plan:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.18); }
.plan.featured { background: linear-gradient(180deg, rgba(255,138,91,0.12), rgba(255,77,141,0.06)); border-color: rgba(255,138,91,0.4); box-shadow: var(--shadow-glow); }
.plan .plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-sun); color: #1a0b13; font-size: 12px; font-weight: 800; padding: 6px 16px; border-radius: 999px; letter-spacing: 0.04em; }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan .price { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 4px; }
.plan .price .amt { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; }
.plan .price .per { color: var(--faint); font-size: 15px; }
.plan .desc { color: var(--muted); font-size: 14px; margin-bottom: 24px; min-height: 42px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; flex: 1; }
.plan ul li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--ink); }
.plan ul li svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--sun); margin-top: 2px; }
.plan ul li.off { color: var(--faint); }
.plan ul li.off svg { color: var(--faint); }

/* ===========================================================
   Filters (shows page)
   =========================================================== */
.page-head { padding: calc(var(--nav-h) + 60px) 0 30px; }
.page-head h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { color: var(--muted); margin-top: 12px; max-width: 560px; }

.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px; padding: 11px 18px; flex: 1; min-width: 240px; max-width: 380px; }
.search-box svg { width: 18px; height: 18px; color: var(--faint); }
.search-box input { background: none; border: none; outline: none; color: var(--ink); font-size: 15px; font-family: inherit; width: 100%; }
.search-box input::placeholder { color: var(--faint); }
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip { padding: 9px 17px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-border); font-size: 14px; font-weight: 600; color: var(--muted); transition: 0.25s; }
.chip:hover { color: var(--ink); border-color: rgba(255,255,255,0.22); }
.chip.active { background: var(--grad-sun); color: #1a0b13; border-color: transparent; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.grid .card { width: 100%; }
.empty { text-align: center; padding: 80px 0; color: var(--faint); }
.empty svg { width: 56px; height: 56px; margin-bottom: 16px; opacity: 0.4; }

/* ===========================================================
   Live TV page
   =========================================================== */
.live-hero { position: relative; border-radius: 26px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; margin-bottom: 40px; border: 1px solid var(--panel-border); }
.live-hero video, .live-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.live-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,19,0.4), rgba(10,6,19,0.95)); z-index: -1; }
.live-hero .lh-body { padding: 40px; }
.live-hero h2 { font-size: clamp(26px,4vw,42px); font-weight: 800; margin: 14px 0; }

.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.channel { display: flex; gap: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--panel-border); transition: 0.35s var(--ease); cursor: pointer; }
.channel:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }
.channel .ch-thumb { width: 110px; height: 74px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; position: relative; }
.channel .ch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.channel .ch-info { min-width: 0; }
.channel .ch-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.channel .ch-now { font-size: 13px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel .ch-next { font-size: 12px; color: var(--faint); margin-top: 6px; }
.progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.12); margin-top: 9px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad-sun); border-radius: 4px; }

/* ===========================================================
   Detail page
   =========================================================== */
.detail-hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; padding-bottom: 64px; }
.detail-bg { position: absolute; inset: 0; z-index: -1; }
.detail-bg img, .detail-bg video { width: 100%; height: 100%; object-fit: cover; }
.detail-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,19,0.6) 0%, rgba(10,6,19,0.3) 40%, rgba(10,6,19,0.98) 100%), linear-gradient(90deg, rgba(10,6,19,0.9), transparent 70%); }
.detail-wrap { display: flex; gap: 40px; align-items: flex-end; }
.detail-poster { flex: 0 0 260px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--panel-border); aspect-ratio: 2/3; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; }
.detail-info h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin: 14px 0 16px; }
.detail-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-overview { color: var(--muted); font-size: 17px; max-width: 640px; margin-bottom: 26px; }
.detail-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.detail-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 22px; margin-top: 40px; }
.detail-facts .fact span { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.detail-facts .fact b { display: block; font-size: 16px; margin-top: 4px; }
.icon-btn { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); display: grid; place-items: center; transition: 0.3s; }
.icon-btn:hover { background: rgba(255,255,255,0.15); transform: translateY(-3px); }
.icon-btn svg { width: 20px; height: 20px; }

.cast-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; }
.cast { flex: 0 0 auto; width: 120px; text-align: center; }
.cast img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 2px solid var(--panel-border); }
.cast b { font-size: 14px; display: block; }
.cast span { font-size: 12px; color: var(--faint); }

/* ===========================================================
   Auth page
   =========================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-visual { position: relative; overflow: hidden; }
.auth-visual video, .auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,138,91,0.3), rgba(139,92,246,0.4)), rgba(10,6,19,0.45); }
.auth-visual .av-body { position: relative; z-index: 2; padding: 60px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.auth-visual blockquote { font-size: 26px; font-weight: 700; line-height: 1.3; max-width: 440px; letter-spacing: -0.01em; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.auth-form p.sub { color: var(--muted); margin: 8px 0 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.field input { width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--panel-border); color: var(--ink); font-family: inherit; font-size: 15px; outline: none; transition: border-color 0.25s, background 0.25s; }
.field input:focus { border-color: var(--sun); background: rgba(255,255,255,0.06); }
.field input.error { border-color: var(--coral); }
.field .err-msg { color: var(--coral); font-size: 12px; margin-top: 6px; display: none; }
.field .err-msg.show { display: block; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 13px; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--panel-border); }
.social-btns { display: flex; gap: 12px; }
.social-btns button { flex: 1; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--panel-border); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.25s; }
.social-btns button:hover { background: rgba(255,255,255,0.08); }
.auth-switch { text-align: center; margin-top: 24px; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--sun); font-weight: 700; }
.tabs { display: flex; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px; padding: 5px; margin-bottom: 28px; }
.tabs button { flex: 1; padding: 11px; border-radius: 8px; font-weight: 700; color: var(--muted); transition: 0.25s; }
.tabs button.active { background: var(--grad-sun); color: #1a0b13; }

/* ===========================================================
   Modal video player
   =========================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,3,10,0.85); backdrop-filter: blur(8px); animation: fadeIn 0.3s; }
.modal-card { position: relative; z-index: 2; width: min(960px, 100%); border-radius: 20px; overflow: hidden; background: var(--night-2); border: 1px solid var(--panel-border); box-shadow: var(--shadow-lg); animation: pop 0.4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(10px); } }
.modal-video { position: relative; aspect-ratio: 16/9; background: #000; }
.modal-video video { width: 100%; height: 100%; object-fit: cover; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; background: rgba(10,6,19,0.7); border: 1px solid var(--panel-border); display: grid; place-items: center; backdrop-filter: blur(6px); transition: 0.25s; }
.modal-close:hover { background: var(--coral); transform: rotate(90deg); }
.modal-close svg { width: 20px; height: 20px; }
.modal-info { padding: 22px 26px 26px; }
.modal-info h3 { font-size: 24px; font-weight: 800; }
.modal-info .card-meta { margin: 8px 0 14px; }
.modal-info p { color: var(--muted); font-size: 15px; }

/* ===========================================================
   Newsletter / CTA band
   =========================================================== */
.cta-band { position: relative; border-radius: 28px; overflow: hidden; padding: 64px 48px; text-align: center; border: 1px solid var(--panel-border); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grad-ocean); opacity: 0.14; z-index: -1; }
.cta-band h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { color: var(--muted); max-width: 480px; margin: 14px auto 30px; }
.cta-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.cta-form input { flex: 1; padding: 15px 20px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-border); color: var(--ink); font-family: inherit; font-size: 15px; outline: none; }
.cta-form input:focus { border-color: var(--sun); }
.cta-note { font-size: 13px; color: var(--faint); margin-top: 14px; }

/* ===========================================================
   Footer
   =========================================================== */
.footer { border-top: 1px solid var(--panel-border); padding: 64px 0 32px; margin-top: 40px; background: rgba(255,255,255,0.012); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 16px 0 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; background: var(--panel); border: 1px solid var(--panel-border); display: grid; place-items: center; transition: 0.3s; }
.footer-social a:hover { background: var(--grad-sun); color: #1a0b13; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--sun); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--panel-border); flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: var(--faint); font-size: 13px; }
.footer-bottom .fb-links { display: flex; gap: 22px; }
.footer-bottom .fb-links a { color: var(--faint); font-size: 13px; }
.footer-bottom .fb-links a:hover { color: var(--ink); }

/* ===========================================================
   Scroll reveal animation
   =========================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* Toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 300; background: rgba(20,12,38,0.96); border: 1px solid var(--panel-border); padding: 14px 22px; border-radius: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: 0.4s var(--ease); backdrop-filter: blur(12px); font-weight: 600; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 20px; height: 20px; color: var(--sun); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
  .nav-links, .nav-search { display: none; }
  .hamburger { display: block; }
  .feature-grid, .plans { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .detail-wrap { flex-direction: column; align-items: flex-start; }
  .detail-poster { flex: 0 0 auto; width: 180px; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .hero-meta { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .spotlight-body, .live-hero .lh-body { padding: 28px; }
  .card { width: 165px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
