/* ═══════════════════════════════════════════════════════════════════════════
   SKMovies Premium — v7.0 · "Cinema Grade" Design Layer
   File: ui-v7.css   (loads LAST — after styles.css → ui-polish.css → v64)
   ─────────────────────────────────────────────────────────────────────────
   Direction: editorial restraint. Netflix / MUBI / Disney+ craft.
     · One accent (--red). Everything else is near-black surfaces + warm
       gray text on a precise hairline system.
     · Radius scale tightened to 8–14px. Shadows tightened, neutral, deep.
     · Micro-labels: 10–11px / 700–800 / 0.08–0.14em tracking / uppercase.
     · Motion: transform+opacity only, 150–250ms, var(--ease). No bounce.
     · All NEW animations applied inside @media (prefers-reduced-motion:
       no-preference). Hover lifts guarded with @media (hover: hover).
   Rules of engagement:
     · Additive layer only. No resets. body selector touches background
       and color only. Local z-index never exceeds 3 (site ladder:
       40/50/80/100/120/150/250/400+ stays untouched).
     · Targets existing class names. New: .src-live / .is-live / .is-dead.
     · Never re-declares geometry owned by ui-polish-v64.css (.card-qa
       corners/sizes, .src-badge placement, .skm-dl-btn__direct hit area).
   ─────────────────────────────────────────────────────────────────────────
   Sections:
     0 · Alias tokens (repairs inline-styled markup) + hairline system
     1 · Token overrides (surfaces, radius, shadows, text scale)
     2 · Canvas: body wash, selection, scrollbars, focus
     3 · Typography discipline & micro-labels
     4 · Header / nav / search / source toggle / notice strip
     5 · Featured slider
     6 · Card grid (editorial cards, qa, badges)
     7 · Movie modal (hero scrim, chips, actions, info, storyline,
         cast, split actions, stream rows, download groups, shots,
         lightbox)
     8 · Sheets (panel, buttons, URL box, source rows, .src-live dots)
     9 · Toast · empty · skeletons · go-top · footer · dashboard · unlock
    10 · Responsive sanity (≤480px / ≥768px)
    11 · Motion guards
   ═══════════════════════════════════════════════════════════════════════════ */


/* ══════════════════ 0 · ALIAS TOKENS + HAIRLINE SYSTEM ══════════════════

   index.html's inline-styled components (Sources sheet rows, unlock modal)
   reference var(--border-color), var(--text-main), var(--bg-card) — none of
   which exist in styles.css, so those declarations currently compute to
   "unset" (invisible borders). Defining them here makes the shipped markup
   render as designed. Aliases follow the active theme. */

:root {
  --border-color: var(--border);
  --text-main: var(--text);
  --bg-card: var(--card-bg);

  /* Hairline ladder (light theme) */
  --v7-line: rgba(13, 17, 27, 0.09);
  --v7-line-strong: rgba(13, 17, 27, 0.16);
  --v7-surface-2: #f1f3f7;              /* recessed wells on light */

  /* Focus ring shared geometry */
  --v7-ring: 0 0 0 3px rgba(255, 30, 66, 0.14);
}

.dark-ui {
  --border-color: var(--card-border-dark);
  --text-main: var(--text-dark);
  --bg-card: var(--card-bg-dark);

  /* Hairline ladder (dark theme) */
  --v7-line: rgba(255, 255, 255, 0.07);
  --v7-line-strong: rgba(255, 255, 255, 0.13);
  --v7-surface-2: #161a24;              /* recessed wells on dark */
}


/* ══════════════════ 1 · TOKEN OVERRIDES ══════════════════
   Same token names, retuned values. Everything downstream inherits the
   calmer palette — this is the single highest-leverage block in the file. */

:root {
  /* Radius scale — tightened to 8–14px editorial range */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  /* Neutral text scale (warm gray, both themes) */
  --bg: #f5f6f8;
  --border: #e4e7ed;
  --text: #10141d;
  --text-muted: #5d6a7e;

  /* Shadow scale — neutral, tight, deep instead of wide + neon */
  --shadow-sm: 0 1px 2px rgba(10, 14, 24, 0.06);
  --shadow-card: 0 1px 2px rgba(10, 14, 24, 0.05), 0 10px 24px -16px rgba(10, 14, 24, 0.18);
  --shadow-card-hover: 0 18px 36px -18px rgba(217, 4, 41, 0.28), 0 6px 16px -10px rgba(10, 14, 24, 0.2);
  --shadow-modal: 0 32px 80px -28px rgba(0, 0, 0, 0.75);
}

.dark-ui {
  /* Dark surfaces — near-black, faintly cool, not blue-mush */
  --bg-dark: #0a0c10;
  --card-bg-dark: #10131b;
  --card-border-dark: rgba(255, 255, 255, 0.07);
  --text-dark: #f2f4f8;
  --text-muted-dark: #98a2b4;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.44), 0 12px 28px -18px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: 0 22px 44px -20px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 30, 66, 0.16);
}


/* ══════════════════ 2 · CANVAS ══════════════════ */

/* Body background depth — a quiet top-down wash, never flat black.
   (body selector restricted to background/color + scrollbar theming per
   layer rules; no geometry, no resets) */
body {
  background-color: #f5f6f8;
  background-image: radial-gradient(1100px 420px at 50% -160px, rgba(16, 22, 38, 0.05), rgba(16, 22, 38, 0) 70%);
  background-repeat: no-repeat;
  /* Firefox scrollbar theming — inherited by inner scrollers (modal, sheets) */
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 130, 148, 0.3) transparent;
}

.dark-ui,
.dark-ui body,
body.dark-ui {
  background-color: #0a0c10 !important;
  background-image:
    radial-gradient(1100px 460px at 50% -180px, rgba(46, 56, 82, 0.28), rgba(46, 56, 82, 0) 70%),
    linear-gradient(180deg, rgba(13, 16, 24, 0.6) 0%, rgba(8, 10, 14, 0) 640px) !important;
  background-repeat: no-repeat !important;
  color: var(--text-dark);
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

/* Selection */
::selection { background: var(--red); color: #ffffff; text-shadow: none; }

/* Scrollbars — quiet hairline thumbs, accent only on hover */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120, 130, 148, 0.28); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120, 130, 148, 0.45); }
.dark-ui ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); }
.dark-ui ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }

/* Unified keyboard focus ring (matches v6.4 components) */
.hero-btn:focus-visible,
.sheet__btn:focus-visible,
#loadMoreBtn:focus-visible,
.view-more-btn:focus-visible,
.search-clear:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}


/* ══════════════════ 3 · TYPOGRAPHY DISCIPLINE & MICRO-LABELS ══════════════════ */

/* Display headings: tighter tracking, calmer weight */
.logo-text { letter-spacing: -0.03em; }
.movie-hero__title { letter-spacing: -0.02em; line-height: 1.16; }
.sheet__title { letter-spacing: -0.015em; }

/* Section title: kill the red-block-with-black-border chip; replace with
   an editorial kicker — small caps + 14px red rule. */
.section-title span {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-title span::before {
  content: '';
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--red);
}
.dark-ui .section-title span { color: var(--text-dark); }

/* In-modal section titles: same kicker language, hairline underline */
.post-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 30px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--v7-line);
}
.post-section-title::before {
  content: '';
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--red);
  flex: 0 0 auto;
}
/* Emoji boxes shipped via ::before content — replaced by the red rule. */
.post-section-title.download::before,
.post-section-title.screenshots::before { content: ''; }
.dark-ui .post-section-title { color: var(--text-muted-dark); border-bottom-color: var(--v7-line); }

/* Storyline + info-grid labels share the kicker voice */
.movie-storyline-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.dark-ui .movie-storyline-label { color: var(--text-muted-dark); }

.dash-stat .label { letter-spacing: 0.1em; }
.dash-section h3 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom-color: var(--v7-line);
}
.dark-ui .dash-section h3 { color: var(--text-muted-dark); }


/* ══════════════════ 4 · HEADER / NAV ══════════════════ */

/* Solid elevated chrome — no radial red glow (dated), hairline separation */
.site-header {
  background: var(--card-bg);
  border-bottom-color: var(--v7-line);
}
.dark-ui .site-header {
  background: #0c0f15;
  border-bottom-color: var(--v7-line);
}
.site-header::after { display: none; }

/* Sticky search bar reads as an elevated bar over content */
.nav-bar {
  border-bottom-color: var(--v7-line);
  box-shadow: 0 12px 28px -24px rgba(0, 0, 0, 0.75);
}
.dark-ui .nav-bar {
  background: rgba(9, 11, 16, 0.97);
}

/* Search field — squared-off, quiet, red focus ring */
.search-form { border-radius: 10px; }
.dark-ui .search-form { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.07); }
.search-form:focus-within { box-shadow: var(--v7-ring); }
.dark-ui .search-form:focus-within { background: #12151d; box-shadow: var(--v7-ring); }
.search-input { font-weight: 500; letter-spacing: 0.01em; }

/* Nav links: active = red tint block (accent), rest neutral */
.nav-link { font-weight: 700; letter-spacing: 0.01em; }
.dark-ui .nav-link { color: rgba(242, 244, 248, 0.78); }
.nav-link.is-active { background: var(--red); border-radius: var(--radius-pill); }

/* Source toggle: keep provider state hues (functional), refine chrome */
.source-toggle { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.dark-ui .source-toggle { box-shadow: none; }

/* Notice strip: tinted editorial bar instead of solid red slab */
.notice-strip {
  background: rgba(255, 30, 66, 0.08) !important;
  color: #ffd9de !important;
  border: 1px solid rgba(255, 30, 66, 0.2) !important;
  border-radius: 10px;
}
.notice-strip-label {
  background: var(--red) !important;
  border-radius: 6px;
  letter-spacing: 0.1em;
  font-size: 10px;
  padding: 3px 9px;
}
.dark-ui .notice-strip { border-color: rgba(255, 30, 66, 0.24) !important; }


/* ══════════════════ 5 · FEATURED SLIDER ══════════════════ */

.featured-slider .prev,
.featured-slider .next {
  background: rgba(12, 15, 22, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
}
.featured-slider .prev:hover,
.featured-slider .next:hover {
  background: var(--red);
  border-color: var(--red);
}
.slider { gap: 14px; }
.featured-post { background: #0b0d12; }
.featured-post .title {
  background: linear-gradient(to top, rgba(5, 7, 11, 0.92) 0%, rgba(5, 7, 11, 0.55) 45%, rgba(5, 7, 11, 0) 100%);
  padding: 28px 16px 13px;
}
.featured-post .title h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}


/* ══════════════════ 6 · CARD GRID — EDITORIAL CARDS ══════════════════ */

/* One surface, one hairline: flatten the card (no inner white slab,
   no 3px bottom bar). Poster stays aspect-locked (styles.css 2/3). */
.single-post { border-color: var(--v7-line); }
.dark-ui .single-post { box-shadow: var(--shadow-card); }

.post-desc {
  background: transparent;
  box-shadow: none;
  border-bottom: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 11px 12px 12px;
}
.dark-ui .post-desc {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.post-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.005em;
}
.dark-ui .post-title { color: #eef1f6; }

/* Meta row: quiet data voice */
.post-meta { letter-spacing: 0.01em; }
.dark-ui .post-meta { color: var(--text-muted-dark); }
.post-meta .dot { opacity: 0.35; }

/* Poster scrim: shorter, heavier at the base — text sits on solid ground */
.thumb::after {
  background: linear-gradient(to top, rgba(5, 7, 11, 0.6) 0%, rgba(5, 7, 11, 0.18) 34%, rgba(5, 7, 11, 0) 55%);
}

/* Quality badges: near-black chips, hairline ring */
.badge {
  background: rgba(6, 8, 12, 0.74);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  letter-spacing: 0.07em;
}

/* Provider pill (.src-badge): keep v6.4 geometry; refine chrome only */
.src-badge {
  background: rgba(6, 8, 13, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.src-badge::before {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* Card quick actions: keep v6.4 geometry/behavior; retune depth only.
   (play = accent, download = neutral glass — clear hierarchy, zero noise) */
.card-qa__btn--play {
  border-color: rgba(255, 92, 114, 0.5);
  box-shadow: 0 6px 16px -4px rgba(217, 4, 41, 0.5);
}
.card-qa__btn--dl {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(9, 12, 18, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}


/* ══════════════════ 7 · MOVIE MODAL ══════════════════ */

/* Card surface + rail */
.modal__card { background: var(--bg-dark); }
.dark-ui .modal__card { background: var(--bg-dark) !important; }
.modal__close {
  background: rgba(8, 10, 15, 0.78);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.55);
}

/* ── Hero scrim geometry: structured, dual-direction, plus corner
      vignette. No blur, no mush — the poster stays crisp behind a
      cinematic gradient scaffold. ── */
.movie-hero { background-color: #07090d; }
.movie-hero__overlay,
.dark-ui .movie-hero__overlay {
  background:
    radial-gradient(130% 100% at 88% 0%, rgba(6, 8, 12, 0) 42%, rgba(6, 8, 12, 0.42) 100%),
    linear-gradient(to top, rgba(6, 8, 12, 0.97) 0%, rgba(6, 8, 12, 0.68) 30%, rgba(6, 8, 12, 0.24) 58%, rgba(6, 8, 12, 0.02) 88%);
}
@media (min-width: 768px) {
  .movie-hero__overlay,
  .dark-ui .movie-hero__overlay {
    background:
      linear-gradient(to right, rgba(6, 8, 12, 0.97) 0%, rgba(6, 8, 12, 0.74) 34%, rgba(6, 8, 12, 0.3) 64%, rgba(6, 8, 12, 0.08) 100%),
      linear-gradient(to top, rgba(6, 8, 12, 0.82) 0%, rgba(6, 8, 12, 0) 32%);
  }
}

.movie-hero__content { padding: 84px 24px 34px; }
.movie-hero__title { font-weight: 800; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }

/* Chip row: squared editor chips, hairline ring — not pill candy */
.movie-hero__chips { margin-bottom: 16px; }
.chip {
  border-radius: 6px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.chip--imdb { background: rgba(251, 191, 36, 0.14); border-color: rgba(251, 191, 36, 0.3); color: #fbd45c; }
.chip--quality { background: rgba(255, 30, 66, 0.14); border-color: rgba(255, 30, 66, 0.32); color: #ff7d8f; }

/* Action hierarchy: primary = solid red, everything else ghost */
.hero-btn { border-radius: 8px; font-weight: 700; letter-spacing: 0.015em; }
.hero-btn--primary {
  background: var(--red);
  box-shadow: 0 8px 20px -8px rgba(217, 4, 41, 0.5);
}
.hero-btn--primary:hover { background: var(--red-dark); box-shadow: 0 10px 24px -8px rgba(217, 4, 41, 0.55); }
.hero-btn--ghost {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-btn--ghost:hover { background: rgba(255, 255, 255, 0.15); }
.hero-btn--fav[data-fav="1"] { background: rgba(251, 191, 36, 0.14); border-color: rgba(251, 191, 36, 0.3); color: #fbd45c; }

/* Info grid: quiet data table on a hairline card */
.movie-info-grid {
  background: transparent;
  border: 1px solid var(--v7-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  gap: 12px;
}
.movie-info-row strong {
  width: 96px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 2px;
}
.movie-info-row span { font-size: 13.5px; line-height: 1.55; }
.dark-ui .movie-info-grid { background: transparent; }
.dark-ui .movie-info-row strong { color: var(--text-muted-dark); }
.dark-ui .movie-info-row span { color: #dfe4ee; }

/* Storyline: editorial pull-quote with a red spine */
.movie-storyline {
  background: transparent;
  border: 1px solid var(--v7-line);
  border-left: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.movie-storyline p { font-size: 13.5px; line-height: 1.68; }
.dark-ui .movie-storyline p { color: #c3cbd9; }

/* Poster: hairline frame */
.movie-info-poster { border: 1px solid var(--v7-line); }

/* Cast: quieter chips, accent only on hover/cta */
.skm-cast-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dark-ui .skm-cast-title { color: var(--text-muted-dark); }
.skm-cast-chip {
  border-radius: var(--radius);
  padding: 12px 8px 10px;
  background: transparent;
  border-color: var(--v7-line);
}
.skm-cast-chip:hover {
  border-color: rgba(255, 30, 66, 0.4);
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.5);
}
.dark-ui .skm-cast-chip { background: transparent; border-color: var(--v7-line); }
.dark-ui .skm-cast-chip:hover { box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.6); }
.skm-cast-avatar {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14),
              inset 0 -8px 14px rgba(0, 0, 0, 0.2);
}
.skm-cast-name { font-size: 12px; }
.skm-cast-more { font-size: 10px; letter-spacing: 0.02em; }

/* Split actions: red primary, neutral ghost — same hierarchy as hero */
.skm-split__btn { border-radius: var(--radius); letter-spacing: 0.02em; }
.skm-split__btn--stream {
  background: var(--red);
  box-shadow: 0 10px 24px -10px rgba(217, 4, 41, 0.5);
}
.skm-split__btn--stream:hover { background: var(--red-dark); }
.skm-split__btn--dl {
  background: var(--v7-surface-2);
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px var(--v7-line);
}
.skm-split__btn--dl:hover { background: var(--v7-line); box-shadow: inset 0 0 0 1px var(--v7-line-strong); }
.skm-split__count { font-weight: 700; opacity: 0.75; }

/* Stream rows: red spine + neutral body */
.skm-stream-row {
  border-left: 2px solid var(--red);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}
.skm-stream-row:hover {
  background: rgba(255, 30, 66, 0.08);
  transform: translateX(2px);
}
.dark-ui .skm-stream-row { background: rgba(255, 255, 255, 0.035); color: #e8ecf4; }
.dark-ui .skm-stream-row:hover { background: rgba(255, 30, 66, 0.1); }
.skm-stream-row__icon { background: rgba(255, 30, 66, 0.12); color: var(--red); }
.dark-ui .skm-stream-row__icon { color: #ff7d8f; }
.skm-stream-row__play { border-radius: 6px; letter-spacing: 0.08em; }

/* Download groups + buttons */
.skm-dl-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.skm-dl-group__title::before {
  content: '';
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--red);
  flex: 0 0 auto;
}
.dark-ui .skm-dl-group__title { color: var(--text-muted-dark); }
.skm-dl-grid { gap: 10px; }
.skm-dl-btn {
  border-radius: var(--radius);
  background: var(--card-bg);
  border-color: var(--v7-line);
  box-shadow: var(--shadow-sm);
}
.skm-dl-btn:hover {
  border-color: rgba(255, 30, 66, 0.38);
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}
.dark-ui .skm-dl-btn { background: var(--card-bg-dark); }
.dark-ui .skm-dl-btn:hover { border-color: rgba(255, 30, 66, 0.42); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.7); }
.skm-dl-btn__host { letter-spacing: 0.01em; }
.skm-dl-btn__q { letter-spacing: 0.08em; }

/* Direct corner tab: keep v6.4 geometry + hit expander; neutral chrome,
   red glyph; hover fills red (v6.4 behavior preserved). */
.skm-dl-btn__direct {
  background: rgba(255, 255, 255, 0.045);
  border-left-color: var(--v7-line);
  border-bottom-color: var(--v7-line);
}
.dark-ui .skm-dl-btn__direct {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--v7-line);
  border-bottom-color: var(--v7-line);
}

/* Screenshots grid */
.skm-shot {
  border-radius: var(--radius);
  border-color: var(--v7-line);
  background: #0b0d12;
  box-shadow: none;
}
.skm-shot:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 30, 66, 0.35);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.55);
}
.skm-shot img { transform: none; }
@media (hover: hover) {
  .skm-shot:hover img { transform: scale(1.04); }   /* cap zoom at 1.04 */
}
.dark-ui .skm-shot { border-color: var(--v7-line); background: #0b0d12; }

/* Lightbox: deeper, quieter chrome */
.skm-lightbox-backdrop {
  /* [#v7.1.0] PERF: blur removed */
  background: rgba(5, 6, 10, 0.985);
}
.skm-lightbox-count { letter-spacing: 0.08em; font-size: 12px; }
.skm-lightbox-btn,
.skm-lightbox-nav {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}
.skm-lightbox-btn:hover,
.skm-lightbox-nav:hover { background: rgba(255, 255, 255, 0.16); }
.skm-lightbox-thumb.is-active { border-color: var(--red); }
.skm-lightbox-stage img { border-radius: 8px; }

/* Seasons block ships inline styles — leave markup alone (owner integrates). */


/* ══════════════════ 8 · SHEETS ══════════════════ */

.sheet__panel {
  border-radius: 18px 18px 0 0;
  background: #ffffff;
}
.dark-ui .sheet__panel {
  background: linear-gradient(180deg, #10131b 0%, #0b0e15 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 48px rgba(0, 0, 0, 0.62);
}
.sheet__handle { padding: 12px 0 6px; }
.sheet__handle::before {
  width: 36px;
  height: 3px;
  background: rgba(13, 17, 27, 0.16);
}
.dark-ui .sheet__handle::before { background: rgba(255, 255, 255, 0.16); }

.sheet__header { border-bottom-color: var(--v7-line); }
.dark-ui .sheet__header { border-bottom-color: var(--v7-line); }
.sheet__title { font-size: 15px; font-weight: 800; }
.sheet__hint { font-size: 12.5px; }

/* Action buttons: flat surfaces + hairlines; primary keeps red identity */
.sheet__btn {
  border-radius: var(--radius);
  background: var(--v7-surface-2);
  border: 1px solid transparent;
}
.dark-ui .sheet__btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--v7-line);
}
.sheet__btn::before { content: none; }          /* remove sheen overlay */
@media (hover: hover) {
  .sheet__btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 30, 66, 0.42);
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45);
    background: #ffffff;
  }
  .dark-ui .sheet__btn:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 30, 66, 0.45);
    box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.6);
  }
}
.sheet__btn:active { transform: scale(0.98); }
@media (hover: none) {
  .sheet__btn:hover { transform: none; }        /* kill sticky hover on touch */
}
.sheet__btn-icon { border-radius: 9px; background: rgba(13, 17, 27, 0.05); }
.dark-ui .sheet__btn-icon { background: rgba(255, 255, 255, 0.06); }
.sheet__btn--primary {
  background: rgba(255, 30, 66, 0.09);
  border-color: rgba(255, 30, 66, 0.32);
}
.dark-ui .sheet__btn--primary {
  background: rgba(255, 30, 66, 0.1);
  border-color: rgba(255, 30, 66, 0.36);
}
@media (hover: hover) {
  .sheet__btn--primary:hover { background: rgba(255, 30, 66, 0.15); border-color: rgba(255, 30, 66, 0.5); }
  .dark-ui .sheet__btn--primary:hover { background: rgba(255, 30, 66, 0.16); }
}
.sheet__btn--tip { letter-spacing: 0.02em; }
/* re-assert the separator row AFTER the base restyle (equal specificity,
   later source order — keeps the tip transparent, not a tile) */
.sheet__btn--tip,
.sheet__btn--tip:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* URL copy row */
.sheet__url { border-radius: 10px; }
.dark-ui .sheet__url { border-color: var(--v7-line); }
.sheet__url-label { letter-spacing: 0.1em; }
.sheet__url-label::before {
  content: '';
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--red);
  font-size: 0;                                   /* replaces 🔗 glyph */
}
.sheet__url-copy { border-radius: 8px; letter-spacing: 0.02em; }
.sheet__url-copy:hover { background: var(--red-dark); transform: none; }


/* ── Source provider rows (inline-styled markup — aliases now resolve) ── */
.source-select-btn { transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
@media (hover: hover) {
  .source-select-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 30, 66, 0.38);
    box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.55);
  }
}
.source-select-btn:active { transform: translateY(0) scale(0.985); }
.source-select-btn:disabled:hover { transform: none; box-shadow: none; }

/* "All Sources" keeps its v6.4 blue/purple glow identity — re-asserted
   AFTER the generic hover above (ties broken by source order). */
@media (hover: hover) {
  .source-select-btn--all:hover {
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.6),
                0 10px 28px rgba(37, 99, 235, 0.22),
                0 0 18px rgba(168, 85, 247, 0.22);
  }
}

/* Bengali description line: bump to 13px minimum for legibility
   (needs !important — the size ships inline in index.html). */
.source-select-btn > span:last-child {
  font-size: 13px !important;
  line-height: 1.6 !important;
}

/* Corner chips (Primary / NEW / Offline…) — micro-label voice */
.source-select-btn .chip {
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── .src-live — live source-health dots (NEW v7 component) ──
   JS (updateSourceHealth) adds .is-live / .is-dead per provider.
   idle = neutral · live = green + breathing ring · dead = red static */
.src-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: #5b6572;
  vertical-align: middle;
  position: relative;
  flex: 0 0 auto;
}
.src-live.is-live { background: #22c55e; }
.src-live.is-dead { background: #ef4444; opacity: 0.9; }
.src-live.is-dead::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
@media (prefers-reduced-motion: no-preference) {
  .src-live.is-live::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(34, 197, 94, 0.55);
    animation: srcLivePulse 2.4s var(--ease-out) infinite;
  }
}
@keyframes srcLivePulse {
  0%   { transform: scale(0.55); opacity: 1; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}


/* ══════════════════ 9 · TOAST · EMPTY · SKELETON · GO-TOP · FOOTER ══════════════════ */

/* Toast: dark chrome in both themes, hairline + status tint */
.toast {
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
}
.toast--success {
  background: #0c231b;
  border-color: rgba(52, 211, 153, 0.35);
  color: #d1fae5;
}
.toast--error {
  background: #2a1214;
  border-color: rgba(248, 113, 113, 0.38);
  color: #fecdd3;
}

/* Empty state */
#empty { padding: 56px 16px 48px; }
#empty img { opacity: 0.88; margin-bottom: 6px; }
#empty h3 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
#empty p { font-size: 13px; margin-top: 6px; }
.dark-ui #empty h3 { color: var(--text-dark); }

/* Skeletons: calmer contrast, hairline frame */
.skeleton { border-radius: var(--radius-lg); border-color: var(--v7-line); }
.dark-ui .skeleton { background: #0f121a; }
.dark-ui .skeleton__poster {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.025) 100%);
  background-size: 200% 100%;
}
.dark-ui .skeleton__line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.025) 100%);
  background-size: 200% 100%;
}

/* Load more: uppercase ghost button */
#loadMoreBtn {
  border: 1px solid var(--v7-line-strong);
  border-radius: var(--radius);
  padding: 11px 28px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
}
#loadMoreBtn:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(255, 30, 66, 0.05);
}
.dark-ui #loadMoreBtn { color: var(--text-muted-dark); }
.dark-ui #loadMoreBtn:hover { color: #ff7d8f; }

/* Go-top: editorial square-ish FAB */
#go-top {
  border-radius: 12px;
  box-shadow: 0 10px 24px -8px rgba(217, 4, 41, 0.5);
}

/* Footer: dark editorial band */
.footer-top {
  background: #0c0f15;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #c5ccd8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 20px;
}
.footer-bottom { background: #08090d; padding: 28px 20px 22px; }
.footer-text p { color: #8b95a7; font-size: 13px; }
.footer-links a { color: #9aa4b6; }
.footer-links a:hover { color: var(--red); }
.footer-bottom .copyright { color: #5c6675; }
.footer-bottom .mlsbd { color: #191d26; letter-spacing: -0.03em; }
.dark-ui .footer-bottom .mlsbd { color: #1c212c; }

/* Dashboard */
.dash-stat { border-radius: var(--radius); border-color: var(--v7-line); }
.dash-section { border-radius: var(--radius); border-color: var(--v7-line); }
.dash-stat .num { letter-spacing: -0.01em; }
.dash-item { border-bottom-color: var(--v7-line); }
.url-item { border-bottom-color: var(--v7-line); }

/* Dashboard action buttons: destructive/utility actions stay ghost */
.view-more-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--v7-line-strong);
  border-radius: 8px;
  font-weight: 700;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.view-more-btn:hover {
  color: var(--red);
  border-color: rgba(255, 30, 66, 0.45);
  background: rgba(255, 30, 66, 0.05);
  opacity: 1;
}
.dark-ui .view-more-btn { background: transparent; color: var(--text-muted-dark); }
.dark-ui .view-more-btn:hover { color: #ff7d8f; background: rgba(255, 30, 66, 0.08); }

/* Unlock modal (inline-styled card — chrome only, no geometry fights) */
#unlockModal .sheet__card { border-radius: 14px; }
#unlockCodeInput:focus { border-color: var(--red) !important; box-shadow: var(--v7-ring); }
#submitUnlockBtn:hover { filter: brightness(1.1); transform: translateY(-1px); }
#submitUnlockBtn:active { transform: scale(0.97); }
#unlockModal [data-close-unlock]:hover { background: rgba(255, 255, 255, 0.09) !important; color: var(--text-main) !important; }


/* ══════════════════ 10 · RESPONSIVE SANITY ══════════════════ */

@media (max-width: 480px) {
  .section-title span { font-size: 12px; letter-spacing: 0.1em; }
  .movie-hero__content { padding: 56px 16px 22px; }
  .movie-hero__title { font-size: 20px; }
  .post-section-title { margin: 24px 0 12px; }
  .movie-info-grid { padding: 14px; }
  .movie-info-row strong { width: 88px; }
  .sheet__btn-icon { width: 42px; height: 42px; font-size: 20px; }
  .skm-dl-grid { gap: 8px; }
  /* card-qa stacking + src-badge slimming remain owned by v6.4 — untouched */
}

@media (min-width: 768px) {
  .movies-grid { gap: 20px; }
  .movie-detail-body { padding: 28px 20px 52px; }
}


/* ══════════════════ 11 · MOTION GUARDS ══════════════════ */

/* Belt-and-braces scoped kill for the one animation this layer applies.
   (ui-polish.css already zeroes all durations under `reduce`.) */
@media (prefers-reduced-motion: reduce) {
  .src-live.is-live::after { animation: none !important; content: none; }
  .source-select-btn,
  .skm-dl-btn,
  .skm-stream-row,
  .skm-shot,
  .sheet__btn { transition: none !important; }
}
