/* ==========================================================================
   PurrCine — AURORA design system (v2.0)
   Loaded last. A complete, mobile-first visual layer that replaces the old
   look while keeping every legacy class working.
   ========================================================================== */

:root {
  --ink: #05050a;
  --ink-2: #0a0a12;
  --ink-3: #10101a;
  --panel: rgba(17, 17, 27, .72);
  --panel-solid: #12121c;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f5f3ef;
  --muted: #9b98a8;
  --muted-2: #6d6a7b;
  --accent: #7c8cff;
  --accent-2: #37e3c4;
  --accent-soft: #b3bcff;
  --grad: linear-gradient(120deg, #7c8cff 0%, #9d7bff 45%, #37e3c4 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,140,255,.18), rgba(55,227,196,.14));
  --radius: 20px;
  --radius-sm: 13px;
  --radius-xs: 9px;
  --shadow: 0 30px 80px -30px rgba(0,0,0,.85);
  --shadow-soft: 0 14px 40px -18px rgba(0,0,0,.7);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', 'Outfit', Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 68px;
}

/* ---------------------------------------------------------------- base */
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  color-scheme: dark;
  line-height: 1.6;
  letter-spacing: -.005em;
  padding-bottom: env(safe-area-inset-bottom);
}
body::before {
  background:
    radial-gradient(1100px 700px at 82% -12%, rgba(124,140,255,.14), transparent 62%),
    radial-gradient(900px 620px at 4% 8%, rgba(55,227,196,.07), transparent 60%),
    linear-gradient(180deg, #08080f 0%, #05050a 60%, #05050a 100%) !important;
}
body::after { opacity: .10 !important; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; letter-spacing: -.03em; }
h1 { font-size: clamp(30px, 4.4vw, 58px); line-height: 1.02; }
h2 { font-size: clamp(23px, 2.6vw, 34px); line-height: 1.08; }
h3 { font-size: 19px; }
.container { width: min(1320px, calc(100% - 48px)); }
.section { padding: 54px 0; }
.section-tight { padding: 26px 0; }
.eyebrow { color: var(--accent-soft); font-size: 10.5px; letter-spacing: .2em; }
.eyebrow::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 26px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
a { transition: color .18s var(--ease), opacity .18s var(--ease); }

/* --------------------------------------------------------------- header */
.site-header {
  background: linear-gradient(180deg, rgba(5,5,10,.92), rgba(5,5,10,.55) 70%, transparent);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6,6,12,.86);
  backdrop-filter: blur(24px) saturate(140%);
  border-color: var(--line);
}
.nav-wrap { height: var(--header-h); width: min(1360px, calc(100% - 40px)); gap: 26px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-word { font-family: var(--display); font-size: 21px; font-weight: 650; letter-spacing: -.04em; }
.brand-word span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { gap: 2px; }
.main-nav a {
  padding: 8px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); letter-spacing: .01em;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.055); }
.main-nav a.active { color: var(--text); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line); }
.nav-actions { gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--text); display: inline-grid; place-items: center;
  transition: .18s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.08); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .005em;
  white-space: nowrap; transition: .2s var(--ease); cursor: pointer;
}
.btn-sm { height: 34px; padding: 0 13px; font-size: 12px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 14px; }
.btn-primary {
  background: var(--grad); color: #08080f; font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(124,140,255,.7), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(124,140,255,.85); filter: brightness(1.05); }
.btn-ghost { background: rgba(255,255,255,.045); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: var(--line-strong); transform: translateY(-1px); }
.btn-ghost.is-saved { border-color: rgba(55,227,196,.5); color: var(--accent-2); background: rgba(55,227,196,.08); }
.btn-violet { background: rgba(157,123,255,.16); border-color: rgba(157,123,255,.4); color: #d9ccff; }
.btn-violet:hover { background: rgba(157,123,255,.26); }
.link-btn { background: none; border: 0; color: var(--accent-soft); font-size: 12px; font-weight: 600; padding: 0; }

/* ---------------------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.035);
  color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.08); }
.rating-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px;
  border-radius: 7px; background: rgba(255,190,80,.14); color: #ffcf7a;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(55,227,196,.15); animation: pulseDot 2.4s infinite; }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 7px rgba(55,227,196,0); } }

/* --------------------------------------------------------------- panels */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(18px); box-shadow: var(--shadow-soft);
  min-width: 0; max-width: 100%;
}
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head > div { min-width: 0; }
.panel-head h2, .panel-head h3 { margin-top: 6px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-title { margin-top: 6px; }
.section-title span { color: var(--accent-soft); }
.section-link { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.section-link:hover { color: var(--text); }

/* --------------------------------------------------------------- hero
   Full-bleed featured carousel. Overrides studio/cinema conflicts so the
   featured movie is clean, organized, and has no random black gap. */
body.home-page .hero,
body.home-page .hero.hero-carousel {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: clamp(560px, 82vh, 820px) !important;
  padding: 0 !important;
  display: block !important;
  background: var(--ink) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  position: relative;
}
body.home-page .hero-slides {
  display: grid !important;
  position: relative;
  min-height: inherit !important;
}
body.home-page .hero-slide {
  grid-area: 1 / 1;
  position: relative !important;
  inset: auto !important;
  min-height: inherit !important;
  display: flex !important;
  align-items: flex-end !important;
  flex-direction: row !important;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  background: none !important;
  transition: opacity .55s var(--ease), visibility .55s;
}
body.home-page .hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
body.home-page .hero-slide .hero-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  aspect-ratio: auto !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: var(--ink-2) !important;
}
body.home-page .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.02);
  animation: none;
}
body.home-page .hero-bg::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(90deg, rgba(5,5,10,.97) 0%, rgba(5,5,10,.78) 32%, rgba(5,5,10,.22) 62%, rgba(5,5,10,.55) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(5,5,10,.55) 28%, transparent 52%) !important;
}
body.home-page .hero-slide .container {
  position: relative;
  z-index: 3;
  width: min(1320px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
  padding: 0 0 72px !important;
  display: block !important;
}
body.home-page .hero-slide .hero-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) !important;
  grid-template-areas:
    "kicker poster"
    "title poster"
    "tag poster"
    "overview poster"
    "actions poster" !important;
  column-gap: 40px;
  row-gap: 8px;
  align-items: end;
  max-width: none !important;
  padding: 100px 0 0 !important;
  animation: none !important;
}
body.home-page .hero-content > * { grid-column: auto; }
body.home-page .hero-kicker { grid-area: kicker; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; }
body.home-page .hero-title {
  grid-area: title;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: .96;
  letter-spacing: -.04em;
  margin: 0 0 8px;
  max-width: 14ch;
  text-shadow: 0 18px 50px rgba(0,0,0,.55);
}
body.home-page .hero-tagline {
  grid-area: tag;
  font-family: var(--display);
  font-style: italic;
  color: var(--accent-soft);
  font-size: 17px;
  margin: 0 0 6px;
}
body.home-page .hero-overview {
  grid-area: overview;
  color: #c9c6d4;
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0;
}
body.home-page .hero-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-self: start;
}
body.home-page .hero-actions .btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
}
body.home-page .hero-poster {
  grid-area: poster;
  display: block !important;
  width: 100%;
  max-width: 220px;
  justify-self: end;
  align-self: end;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 60px -12px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.1);
  transform: none;
}
body.home-page .hero-poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
body.home-page .hero-nav {
  display: grid !important;
  place-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10,10,18,.65);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  transition: .25s var(--ease);
}
body.home-page .hero:hover .hero-nav,
body.home-page .hero-nav:focus-visible { opacity: 1; }
body.home-page .hero-nav.prev { left: 18px; }
body.home-page .hero-nav.next { right: 18px; }
body.home-page .hero-nav:hover {
  background: var(--accent);
  color: #08080f;
  border-color: transparent;
}
body.home-page .hero-dots {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 22px;
  top: auto;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8,8,14,.55);
  border: 1px solid var(--line);
}
body.home-page .hero-dot {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
body.home-page .hero-dot span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: width .3s, background .3s, border-radius .3s;
}
body.home-page .hero-dot.active span {
  width: 28px;
  border-radius: 999px;
  background: var(--grad);
}
body.home-page .hero-side-note { display: none !important; }

/* Fallback hero (non-home) */
.hero { min-height: clamp(560px, 78vh, 760px); }
.hero-slide { min-height: clamp(560px, 78vh, 760px); }
.hero-bg img { object-position: center 28%; }
.hero-content { max-width: 620px; padding: 96px 0 80px; }
.hero-title { font-size: clamp(38px, 6vw, 76px); line-height: .98; margin: 14px 0 12px; text-shadow: 0 20px 60px rgba(0,0,0,.5); }
.hero-tagline { font-family: var(--display); font-style: italic; color: var(--accent-soft); font-size: 17px; margin-bottom: 10px; }
.hero-overview { color: #c9c6d4; font-size: 14.5px; line-height: 1.7; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; }
.hero-poster { display: none; }
.hero-nav { width: 44px; height: 44px; border-radius: 50%; background: rgba(10,10,18,.6); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.hero-dots { bottom: 26px; }
.hero-dot span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.28); }
.hero-dot.active span { width: 26px; border-radius: 999px; background: var(--grad); }
.hero-side-note { display: none; }

/* --------------------------------------------------------------- cards */
.movie-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 16px;
  overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent;
}
.movie-row::-webkit-scrollbar { height: 6px; }
.movie-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 99px; }
.movie-card { scroll-snap-align: start; position: relative; }
.card-poster {
  position: relative; display: block; aspect-ratio: 2/3; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--ink-3); box-shadow: 0 12px 30px -14px rgba(0,0,0,.8);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.movie-card:hover .card-poster { transform: translateY(-6px); box-shadow: 0 26px 50px -18px rgba(0,0,0,.9); }
.movie-card:hover .card-poster img { transform: scale(1.045); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,10,.82) 0%, transparent 46%); opacity: .7; transition: opacity .3s; }
.movie-card:hover .card-shade { opacity: 1; }
.card-badge {
  position: absolute; top: 9px; left: 9px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center;
  border-radius: 6px; background: rgba(5,5,10,.72); backdrop-filter: blur(8px);
  color: var(--text); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.12);
}
.card-badge-tv { background: rgba(124,140,255,.28); border-color: rgba(124,140,255,.4); color: #dfe3ff; }
.card-play {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 13px; padding-left: 3px;
  opacity: 0; transform: scale(.8); transition: .3s var(--ease);
}
.movie-card:hover .card-play { opacity: 1; transform: scale(1); }
.card-body { padding: 9px 2px 0; position: relative; }
.card-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.card-meta .rating-pill { height: 20px; padding: 0 6px; font-size: 10px; }
.card-body h3 { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: -.01em; margin-top: 3px; line-height: 1.3; }
.card-body h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.watchlist-mini {
  position: absolute; top: 8px; right: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10,10,18,.7); color: var(--text);
  font-size: 14px; line-height: 1; display: grid; place-items: center; opacity: 0; transition: .2s;
}
.movie-card:hover .watchlist-mini, .watchlist-mini.is-saved { opacity: 1; }
.watchlist-mini.is-saved { color: var(--accent-2); border-color: rgba(55,227,196,.45); }

/* ------------------------------------------------------- continue row */
.continue-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 16px;
  overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent;
}
.continue-row::-webkit-scrollbar { height: 6px; }
.continue-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 99px; }
.continue-card {
  scroll-snap-align: start; display: block; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), border-color .3s;
}
.continue-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.continue-art { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--ink-3); }
.continue-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.continue-card:hover .continue-art img { transform: scale(1.05); }
.continue-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,10,.72), transparent 60%); }
.continue-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.16); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.32);
  color: #fff; font-size: 13px; padding-left: 3px; transition: .25s var(--ease);
}
.continue-card:hover .continue-play { background: var(--grad); color: #08080f; border-color: transparent; transform: translate(-50%,-50%) scale(1.08); }
.continue-badge {
  position: absolute; top: 10px; left: 10px; height: 21px; padding: 0 8px; display: inline-flex; align-items: center;
  border-radius: 6px; background: rgba(5,5,10,.7); backdrop-filter: blur(8px); font-size: 9.5px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.12);
}
.continue-body, .continue-copy { display: block; padding: 12px 14px 14px; }
.continue-body strong, .continue-copy strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-body small, .continue-copy small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.continue-bar { display: block; height: 4px; border-radius: 99px; background: rgba(255,255,255,.1); margin-top: 10px; overflow: hidden; }
.continue-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.continue-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.45); }
.continue-progress i { display: block; height: 100%; background: var(--grad); }

/* --------------------------------------------------------- genre strip */
.genre-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.genre-strip::-webkit-scrollbar { display: none; }
.genre-chip {
  flex: none; height: 34px; padding: 0 16px; display: inline-flex; align-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--muted); font-size: 12.5px; font-weight: 600;
}
.genre-chip:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.07); }

/* =========================================================== DETAIL PAGE */
.detail-hero-v2 { position: relative; padding: calc(var(--header-h) + 26px) 0 0; overflow: hidden; }
.detail-hero-bg { position: absolute; inset: 0; z-index: 0; }
.detail-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.detail-hero-fade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,5,10,.96) 0%, rgba(5,5,10,.7) 40%, rgba(5,5,10,.28) 100%),
    linear-gradient(0deg, var(--ink) 1%, rgba(5,5,10,.25) 55%, rgba(5,5,10,.7) 100%);
}
.detail-hero-v2 .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 26px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { opacity: .4; }
.breadcrumb b { color: var(--text); font-weight: 600; }
.detail-hero-grid { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: end; padding-bottom: 46px; }
.detail-poster-v2 { position: relative; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); aspect-ratio: 2/3; }
.detail-poster-v2 img { width: 100%; height: 100%; object-fit: cover; }
.detail-poster-v2 .rating-pill { position: absolute; top: 10px; left: 10px; }
.detail-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.type-chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 7px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.type-chip-tv { background: rgba(124,140,255,.2); border-color: rgba(124,140,255,.42); color: #dfe3ff; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.live-note { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--accent-2); font-weight: 600; }
.detail-headline h1 { font-size: clamp(34px, 5vw, 64px); line-height: .98; margin-bottom: 14px; }
.detail-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.detail-facts span { display: inline-flex; align-items: center; }
.detail-facts span + span::before { content: "·"; margin-right: 16px; opacity: .4; }
.fact-rating { color: #ffcf7a; font-weight: 700; }
.detail-overview { color: #c9c6d4; font-size: 14.5px; line-height: 1.72; max-width: 680px; margin: 16px 0 20px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.detail-body { padding: 44px 0 70px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.detail-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.detail-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.fact-list { display: grid; gap: 2px; }
.fact-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.fact-list > div:last-child { border-bottom: 0; }
.fact-list span { color: var(--muted); }
.fact-list strong { font-weight: 600; text-align: right; }

/* season / episode browser */
.season-select-field { width: 220px; max-width: 100%; min-width: 0; }
.season-overview { color: var(--muted); font-size: 13px; line-height: 1.65; margin: -4px 0 18px; max-width: 720px; }
.episode-list { display: grid; gap: 8px; }
.episode-row {
  display: grid; grid-template-columns: 132px minmax(0,1fr) 34px; gap: 14px; align-items: center;
  padding: 10px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: rgba(255,255,255,.02); transition: .2s var(--ease);
}
.episode-row:hover { background: rgba(255,255,255,.055); border-color: var(--line); transform: translateX(2px); }
.episode-row.is-active { border-color: rgba(55,227,196,.4); background: rgba(55,227,196,.06); }
.episode-thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--ink-3); }
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; }
.episode-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 24px; color: var(--muted-2); }
.episode-play {
  position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(5,5,10,.6); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3); font-size: 9px; padding-left: 2px; opacity: 0; transition: .2s;
}
.episode-row:hover .episode-play { opacity: 1; }
.episode-copy { min-width: 0; display: grid; gap: 2px; }
.episode-copy strong { font-size: 13px; font-weight: 600; line-height: 1.35; }
.ep-num { color: var(--accent-soft); font-weight: 700; }
.episode-copy small { color: var(--muted-2); font-size: 11px; }
.episode-copy > span { color: var(--muted); font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode-go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.episode-row:hover .episode-go { background: var(--grad); color: #08080f; border-color: transparent; }
.episode-now { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }

/* cast */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cast-card { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: var(--radius-sm); background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.cast-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--ink-3); }
.cast-card div { min-width: 0; }
.cast-card strong { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-card span { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* sources */
.source-preview { display: grid; gap: 6px; }
.source-preview-item {
  display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: var(--radius-xs); border: 1px solid var(--line);
  background: rgba(255,255,255,.025); font-size: 12.5px;
}
.source-preview-item:hover { background: rgba(255,255,255,.07); border-color: var(--line-strong); }
.source-preview-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.source-preview-item strong { font-weight: 600; }
.source-preview-item > span:last-child { color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.watch-note { color: var(--muted-2); font-size: 11.5px; line-height: 1.6; margin-top: 12px; }

/* trailer modal */
.trailer-modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: rgba(3,3,7,.9); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: .25s var(--ease); }
.trailer-modal.open { opacity: 1; visibility: visible; }
.trailer-modal iframe { width: min(1080px, 100%); aspect-ratio: 16/9; border: 0; border-radius: var(--radius-sm); background: #000; }
.trailer-close { position: absolute; top: 20px; right: 20px; }
body.modal-open { overflow: hidden; }

/* ============================================================ WATCH PAGE */
.watch-body { background: #040408; }
.watch-shell { padding: calc(var(--header-h) + 18px) 0 60px; }
.watch-topbar { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; }
.watch-back { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 600; flex: none; }
.watch-back:hover { color: var(--text); }
.watch-heading { flex: 1; min-width: 0; }
.watch-heading h1 { font-family: var(--font); font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.watch-heading .eyebrow { font-size: 9.5px; }
.watch-subline { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.watch-subline span + span::before { content: "·"; margin-right: 14px; opacity: .4; }
.resume-chip { color: var(--accent-2); font-weight: 600; }
.watch-head-actions { display: flex; gap: 7px; flex: none; }
.watch-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; align-items: start; }
.watch-main { min-width: 0; display: grid; gap: 18px; }
.watch-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }

/* player */
.player-card { border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); }
.player-stage { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.player-stage iframe, .player-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player-loading {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: 12px; justify-items: center;
  background: radial-gradient(600px 300px at 50% 40%, rgba(124,140,255,.12), transparent 70%), #05050a;
  transition: opacity .4s, visibility .4s; text-align: center; padding: 20px;
}
.player-loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.player-loading small { color: var(--muted); font-size: 12px; }
.player-error { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; text-align: center; background: rgba(5,5,10,.94); opacity: 0; visibility: hidden; transition: .25s; }
.player-error.show { opacity: 1; visibility: visible; }
.player-error h3 { margin: 8px 0 6px; font-size: 22px; }
.player-error p { color: var(--muted); font-size: 12.5px; max-width: 360px; margin: 0 auto 16px; }
.player-error-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.player-controls {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #07070d;
  border-top: 1px solid var(--line);
}
.player-controls[hidden] { display: none; }
.pc-btn { width: 34px; height: 34px; border-radius: 8px; border: 0; background: rgba(255,255,255,.06); color: var(--text); display: grid; place-items: center; flex: none; }
.pc-btn:hover { background: rgba(255,255,255,.12); }
.pc-btn svg { width: 17px; height: 17px; fill: currentColor; }
.pc-seek { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.pc-time { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.pc-seek input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); height: 4px; }
.pc-volume { display: flex; align-items: center; gap: 6px; }
.pc-volume input[type=range] { width: 72px; accent-color: var(--accent); height: 4px; }
.player-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; background: linear-gradient(180deg, #0a0a12, #07070d); border-top: 1px solid var(--line);
}
.server-current { display: flex; align-items: center; gap: 10px; min-width: 0; }
.server-current b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-current small { display: block; color: var(--muted-2); font-size: 10.5px; }
.player-toolbar-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--text); font-size: 11.5px; font-weight: 600; transition: .18s var(--ease);
}
.tool-btn:hover { background: rgba(255,255,255,.09); border-color: var(--line-strong); }
.tool-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-btn-accent { background: var(--grad); color: #08080f; border-color: transparent; font-weight: 700; }
.tool-btn-accent svg { fill: currentColor; stroke: none; }
.tool-btn-accent:hover { filter: brightness(1.06); }
.tool-count { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: rgba(255,255,255,.14); display: inline-grid; place-items: center; font-size: 9.5px; }

/* episode panel on watch */
.episode-panel { padding: 20px; }
.episode-selectors { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-bottom: 16px; }
.select-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; max-width: 100%; }
.select-field > span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 40px; padding: 0 34px 0 12px;
  border-radius: var(--radius-xs); border: 1px solid var(--line); background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 17px) 17px/5px 5px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 12px) 17px/5px 5px no-repeat,
    rgba(255,255,255,.06);
  color: var(--text) !important; font-size: 12.5px; font-weight: 500;
  color-scheme: dark;
}
.select { max-width: 100%; text-overflow: ellipsis; }
.select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Make dropdown options readable (fixes all-white / invisible text) */
select.select option,
.select option,
select option {
  background-color: #12121c !important;
  color: #f5f3ef !important;
}
select.select optgroup,
.select optgroup {
  background-color: #12121c;
  color: #9b98a8;
}

/* Filter bar layout — organized, readable controls */
.filter-bar {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px !important;
  border: 1px solid var(--line) !important;
  background: rgba(17, 17, 27, .82) !important;
  border-radius: 14px !important;
  margin: 20px 0 24px !important;
}
.filter-bar form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.filter-bar .input,
.filter-bar .filter-search,
.filter-bar .select {
  min-width: 0;
  flex: 1 1 140px;
  max-width: 220px;
  height: 40px;
  background-color: rgba(255,255,255,.06) !important;
  color: var(--text) !important;
  border: 1px solid var(--line);
}
.filter-bar .filter-search { flex: 1 1 180px; max-width: 280px; }
.filter-bar .btn { flex: none; white-space: nowrap; }
.filter-bar .type-toggle { flex: none; margin-left: auto; }
.type-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.type-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: .18s var(--ease);
}
.type-pill:hover { color: var(--text); }
.type-pill.active {
  background: var(--grad);
  color: #08080f;
}
.episode-jump { display: flex; gap: 7px; flex-wrap: wrap; }

/* up next + side cards */
.side-panel { padding: 18px; }
.upnext-list { display: grid; gap: 5px; }
.upnext-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; border: 1px solid transparent; }
.upnext-item:hover { background: rgba(255,255,255,.05); }
.upnext-item.is-active { background: rgba(55,227,196,.07); border-color: rgba(55,227,196,.3); }
.upnext-num { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: 11px; font-weight: 700; flex: none; }
.upnext-item strong { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.upnext-item small { color: var(--muted-2); font-size: 10.5px; }
.side-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-cards .movie-card .card-body h3 { font-size: 11.5px; }
.side-cards .movie-card .card-meta { font-size: 10px; }
.watch-about { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.watch-about h2 { margin: 6px 0 10px; font-size: 26px; }
.watch-about p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 640px; }
.watch-about .chips { margin-top: 14px; }
.watch-about-facts { display: grid; gap: 12px; min-width: 130px; }
.watch-about-facts > div { display: grid; gap: 1px; }
.watch-about-facts span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); }
.watch-about-facts strong { font-size: 15px; font-weight: 600; }

/* server bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 600; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(3,3,7,.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-card {
  position: relative; z-index: 1; width: min(560px, 100%); max-height: 82vh; overflow-y: auto;
  background: #0c0c15; border: 1px solid var(--line-strong); border-radius: 22px 22px 0 0;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .34s var(--ease);
  box-shadow: 0 -30px 80px rgba(0,0,0,.8);
}
.sheet.open .sheet-card { transform: translateY(0); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sheet-head h2 { margin-top: 5px; font-size: 24px; }
.sheet-server-list { display: grid; gap: 7px; margin: 16px 0; }
.sheet-server {
  display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: rgba(255,255,255,.03); text-align: left; color: var(--text); transition: .18s var(--ease);
}
.sheet-server:hover { background: rgba(255,255,255,.07); border-color: var(--line-strong); }
.sheet-server.is-active { border-color: rgba(55,227,196,.45); background: rgba(55,227,196,.08); }
.sheet-server-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: 15px; }
.sheet-server strong { display: block; font-size: 13px; font-weight: 600; }
.sheet-server small { color: var(--muted-2); font-size: 11px; }
.sheet-server-state { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sheet-server.is-active .sheet-server-state { color: var(--accent-2); }
.sheet-server-nav { display: flex; gap: 8px; }
.sheet-server-nav .btn { flex: 1; }
body.sheet-open { overflow: hidden; }

/* pseudo / native fullscreen */
.player-stage:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; background: #000; }
.player-stage:-webkit-full-screen { width: 100vw; height: 100vh; }
.player-stage.is-pseudo-fullscreen {
  position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important;
  height: 100dvh !important; aspect-ratio: auto !important; z-index: 9999 !important; background: #000 !important;
  border-radius: 0 !important; margin: 0 !important;
}
.player-stage.is-pseudo-fullscreen iframe, .player-stage.is-pseudo-fullscreen video { width: 100% !important; height: 100% !important; }
.pseudo-fullscreen-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 20;
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(5,5,10,.7);
  backdrop-filter: blur(10px); color: #fff; font-size: 12px; font-weight: 600;
}
body.is-fullscreen { overflow: hidden; }

/* theater mode */
body.theater-mode .site-header, body.theater-mode .site-footer, body.theater-mode .watch-side, body.theater-mode .watch-topbar, body.theater-mode .watch-about, body.theater-mode .episode-panel { display: none !important; }
body.theater-mode .watch-shell { padding: 0; }
body.theater-mode .container.watch-layout { width: 100%; max-width: none; display: block; }
body.theater-mode .player-card { border-radius: 0; border: 0; }
body.theater-mode .player-stage { aspect-ratio: auto; height: 100vh; height: 100dvh; }
body.theater-mode .player-stage iframe, body.theater-mode .player-stage video { height: 100%; }

/* ============================================================= LIBRARY */
.library-hero { padding: calc(var(--header-h) + 48px) 0 30px; position: relative; }
.library-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 20% 0%, rgba(124,140,255,.14), transparent 65%); pointer-events: none; }
.library-hero h1 { font-size: clamp(34px, 5vw, 60px); margin: 8px 0 10px; }
.library-hero p { color: var(--muted); max-width: 520px; font-size: 13.5px; }
.accent-dot { color: var(--accent-2); }
.library-stats { display: flex; gap: 30px; margin-top: 22px; }
.library-stats > div { display: grid; gap: 1px; }
.library-stats strong { font-family: var(--display); font-size: 30px; font-weight: 650; }
.library-stats span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.type-toggle { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.type-pill { height: 32px; padding: 0 15px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); }
.type-pill:hover { color: var(--text); }
.type-pill.active { background: var(--grad); color: #08080f; font-weight: 700; }
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.library-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }

/* ============================================================== EMPTY */
.empty-state { text-align: center; padding: 60px 20px; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: rgba(255,255,255,.015); }
.empty-state h1, .empty-state h2 { margin: 10px 0 8px; }
.empty-state p { color: var(--muted); font-size: 13.5px; max-width: 440px; margin: 0 auto; }
.empty-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ============================================================== FORMS */
input[type=text], input[type=email], input[type=password], input[type=search], textarea, .input {
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: var(--radius-xs);
  color: var(--text); padding: 11px 13px; font-size: 13px; width: 100%;
}
input:focus, textarea:focus, .input:focus { outline: none; border-color: rgba(124,140,255,.6); box-shadow: 0 0 0 3px rgba(124,140,255,.15); }

/* ============================================================== FOOTER */
.site-footer { border-top: 1px solid var(--line); background: #040408; padding-top: 46px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 36px; }
.footer-brand p { color: var(--muted); font-size: 12.5px; line-height: 1.7; max-width: 320px; margin-top: 12px; }
.footer-small { color: var(--muted-2) !important; font-size: 10.5px !important; margin-top: 12px !important; }
.site-footer h4 { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.site-footer .footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 8px; }
.site-footer .footer-grid a { color: var(--muted); font-size: 12.5px; }
.site-footer .footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 11px; flex-wrap: wrap; }

/* ===================================================== MOBILE BOTTOM NAV */
.mobile-dock { display: none; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1080px) {
  .detail-layout { grid-template-columns: minmax(0,1fr) 300px; }
  .watch-layout { grid-template-columns: minmax(0,1fr) 290px; }
  .movie-row { grid-auto-columns: 156px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .detail-layout, .watch-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-side, .watch-side { position: static; }
  .detail-hero-grid { grid-template-columns: 150px 1fr; gap: 22px; }
  .detail-poster-v2 { max-width: 150px; }
  .watch-about { grid-template-columns: 1fr; }
  .watch-about-facts { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  body.home-page .hero-slide .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 180px) !important;
    column-gap: 24px;
  }
  body.home-page .hero-poster { max-width: 180px; }
  body.home-page .hero-title { font-size: clamp(32px, 5vw, 52px); }
  .filter-bar .input,
  .filter-bar .filter-search,
  .filter-bar .select { max-width: 180px; }
}

@media (max-width: 768px) {
  :root { --header-h: 58px; --radius: 16px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .container { width: calc(100% - 28px); }
  .section { padding: 38px 0; }
  .section-tight { padding: 20px 0; }
  .nav-wrap {
    width: calc(100% - 20px);
    height: var(--header-h);
    gap: 8px;
    align-items: center;
  }
  .brand { flex: none; min-width: 0; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .brand-word { font-size: 17px; }
  .main-nav, .install-btn, .user-trigger-name, .notif-menu { display: none !important; }
  /* Keep a clean, organized top bar: search + primary CTA + menu */
  .mobile-toggle { display: inline-grid !important; }
  .nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
  }
  .nav-actions .icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .nav-actions .icon-btn svg {
    width: 20px;
    height: 20px;
  }
  .nav-actions .btn-sm {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }
  .nav-actions .btn-sm svg {
    width: 16px;
    height: 16px;
  }
  .mobile-nav { display: none !important; }

  /* Featured hero — stack cleanly on mobile, no black gap */
  body.home-page .hero,
  body.home-page .hero.hero-carousel,
  body.home-page .hero-slide {
    min-height: 72vh !important;
  }
  body.home-page .hero-slide .container {
    width: calc(100% - 28px) !important;
    padding: 0 0 56px !important;
  }
  body.home-page .hero-slide .hero-content {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "kicker"
      "title"
      "tag"
      "overview"
      "actions" !important;
    padding: 72px 0 0 !important;
    row-gap: 6px;
  }
  body.home-page .hero-poster { display: none !important; }
  body.home-page .hero-title { font-size: clamp(30px, 9vw, 42px); max-width: none; }
  body.home-page .hero-overview {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.home-page .hero-actions { gap: 8px; margin-top: 14px; }
  body.home-page .hero-actions .btn { flex: 1 1 auto; min-width: 0; }
  body.home-page .hero-nav { display: none !important; }
  body.home-page .hero-dots { bottom: 14px; }

  /* Filters stack cleanly */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px !important;
  }
  .filter-bar form {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar .input,
  .filter-bar .filter-search,
  .filter-bar .select {
    width: 100% !important;
    max-width: none !important;
    flex: none;
  }
  .filter-bar .btn { width: 100%; }
  .filter-bar .type-toggle { margin-left: 0; width: 100%; }
  .type-toggle { width: 100%; }
  .type-pill { flex: 1; justify-content: center; text-align: center; }

  /* mobile dock — larger, clearer icons */
  .mobile-dock {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    background: rgba(7,7,13,.92); backdrop-filter: blur(24px) saturate(150%);
    border-top: 1px solid var(--line);
  }
  .mobile-dock a {
    display: grid; justify-items: center; gap: 4px;
    padding: 6px 2px; border-radius: 12px;
    color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .01em;
  }
  .mobile-dock a.active { color: var(--text); }
  .mobile-dock a.active svg { color: var(--accent-soft); }
  .mobile-dock svg {
    width: 24px; height: 24px;
    fill: none; stroke: currentColor; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .mobile-dock .dock-fab { position: relative; }
  .mobile-dock .dock-fab span {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--grad); display: grid; place-items: center;
    box-shadow: 0 12px 28px -8px rgba(124,140,255,.85);
  }
  .mobile-dock .dock-fab svg { width: 22px; height: 22px; color: #08080f; stroke-width: 2.1; }

  .hero, .hero-slide { min-height: 74vh; }
  .hero-content { padding: 74px 0 54px; }
  .hero-title { font-size: clamp(34px, 10vw, 48px); }
  .hero-overview { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-nav { display: none; }
  .hero-dots { bottom: 14px; }

  .movie-row { grid-auto-columns: 128px; gap: 11px; }
  .movie-grid, .library-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 9px; }
  .continue-row { grid-auto-columns: 258px; gap: 12px; }
  .section-head { margin-bottom: 16px; }
  .section-link { font-size: 11.5px; }

  /* detail mobile */
  .detail-hero-v2 { padding-top: calc(var(--header-h) + 10px); }
  .breadcrumb { margin-bottom: 14px; font-size: 10.5px; }
  .detail-hero-grid { grid-template-columns: 1fr; gap: 16px; padding-bottom: 26px; }
  .detail-poster-v2 { display: none; }
  .detail-headline h1 { font-size: clamp(30px, 9vw, 42px); }
  .detail-overview { font-size: 13px; margin: 12px 0 16px; }
  .detail-actions { gap: 8px; }
  .detail-actions .btn { flex: 1 1 46%; height: 44px; }
  .detail-actions .btn:first-child { flex-basis: 100%; }
  .detail-body { padding: 26px 0 40px; }
  .panel { padding: 18px; }
  .episode-row { grid-template-columns: 104px minmax(0,1fr); gap: 10px; padding: 8px; }
  .episode-go { display: none; }
  .episode-copy > span { -webkit-line-clamp: 2; font-size: 11.5px; }
  .episode-selectors { grid-template-columns: 1fr; }
  .season-select-field { width: 100%; }
  .cast-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cast-card img { width: 38px; height: 38px; }

  /* watch mobile — the critical fix */
  .watch-shell { padding: calc(var(--header-h) + 6px) 0 30px; }
  .watch-topbar { padding: 6px 0 10px; gap: 10px; flex-wrap: wrap; }
  .watch-back { font-size: 11.5px; }
  .watch-heading { order: 3; flex-basis: 100%; }
  .watch-heading h1 { font-size: 15px; }
  .watch-head-actions { margin-left: auto; }
  .watch-head-actions .btn { height: 32px; padding: 0 11px; font-size: 11px; }
  .watch-layout { gap: 14px; }
  .player-card { border-radius: 12px; margin-inline: -14px; border-left: 0; border-right: 0; }
  .player-stage { aspect-ratio: 16/9; }
  .player-controls { padding: 7px 10px; gap: 7px; }
  .pc-volume { display: none; }
  .pc-btn { width: 30px; height: 30px; }
  .player-toolbar { padding: 9px 10px; gap: 8px; }
  .server-current small { display: none; }
  .server-current b { font-size: 11px; max-width: 120px; }
  .player-toolbar-actions { gap: 5px; }
  .tool-btn { height: 32px; padding: 0 9px; font-size: 10.5px; }
  .tool-btn .tool-count { display: none; }
  .tool-btn-accent { padding: 0 11px; }
  .tool-btn-accent svg { width: 14px; height: 14px; }
  .episode-panel { padding: 16px; }
  .episode-jump { width: 100%; }
  .episode-jump .btn { flex: 1; }
  .watch-about { padding: 18px; }
  .watch-about h2 { font-size: 21px; }
  .watch-about-facts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .side-cards { grid-template-columns: repeat(2, 1fr); }
  .sheet-card { border-radius: 18px 18px 0 0; padding: 18px 14px calc(16px + env(safe-area-inset-bottom)); }

  /* library */
  .library-hero { padding-top: calc(var(--header-h) + 26px); }
  .library-stats { gap: 22px; }
  .library-stats strong { font-size: 24px; }
  .type-toggle { width: 100%; }
  .type-pill { flex: 1; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 26px; }
  .site-footer { padding-top: 32px; }
  .footer-bottom { padding-bottom: 20px; }
  .hide-mobile { display: none !important; }
  .trailer-modal { padding: 10px; }
  .trailer-close { top: 10px; right: 10px; }
}

@media (max-width: 420px) {
  .movie-grid, .library-grid { grid-template-columns: repeat(2, 1fr); }
  .movie-row { grid-auto-columns: 118px; }
  .continue-row { grid-auto-columns: 232px; }
  .detail-facts { font-size: 11.5px; gap: 6px 12px; }
  .detail-facts span + span::before { margin-right: 12px; }
  .tool-btn span:not(.tool-count) { display: none; }
  .tool-btn-accent span { display: inline; }
  .player-toolbar-actions .tool-btn:first-child { padding: 0 8px; }
}

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