/* ══════════════════════════════════════════════════════════════════
   LUMEN — light theme
   Cinematic surfaces (player, hero, event banners, lightbox) stay dark in both themes.
   ══════════════════════════════════════════════════════════════════ */
:root[data-theme='light'] {
  --bg: #f4f2ee;
  --bg-2: #ffffff;
  --bg-3: #ebe7e1;
  --panel: rgba(255, 255, 255, .82);
  --panel-solid: #ffffff;
  --line: rgba(24, 18, 34, .09);
  --line-2: rgba(24, 18, 34, .16);
  --text: #17141f;
  --text-2: #3e3a48;
  --muted: #696476;
  --dim: #8d889a;
  --modal-bg: #ffffff;
  --menu-bg: rgba(255, 255, 255, .97);
  --surface: rgba(24, 18, 34, .04);
  --surface-2: rgba(24, 18, 34, .07);
  --nav-fade: rgba(244, 242, 238, .92);
  --shadow: 0 24px 60px -24px rgba(40, 20, 40, .28);
  color-scheme: light;
}
/* always-dark cinematic zones keep the dark palette */
:root[data-theme='light'] :is(.hero, .player, .ev-hero, .live-hero, .lightbox, .lp-dark, .studio-stage, .det-hero, .live-wait, .signal-lost) {
  --text: #f5f2ee;
  --text-2: #d6d2de;
  --muted: #a4a1b0;
  --dim: #7d7a88;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --panel: rgba(22, 22, 34, .62);
  --bg: #07070b;
  color: var(--text);
  color-scheme: dark;
}
:root[data-theme='light'] body {
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(255, 61, 90, .07), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(123, 47, 247, .05), transparent 60%);
}
:root[data-theme='light'] .grain { opacity: .025; }
:root[data-theme='light'] ::selection { background: rgba(255, 61, 90, .25); }
:root[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .18); background-clip: padding-box; border: 2px solid transparent; }

/* chrome */
:root[data-theme='light'] .nav.scrolled { background: rgba(250, 248, 245, .85); box-shadow: 0 1px 0 var(--line); }
:root[data-theme='light'] .nav-icon { color: var(--text-2); }
:root[data-theme='light'] .nav-icon:hover { background: rgba(0, 0, 0, .06); color: var(--text); }
:root[data-theme='light'] .nav-search .i { color: var(--text-2); }
:root[data-theme='light'] .nav-search.open, :root[data-theme='light'] .nav-search:focus-within { background: #fff; }
:root[data-theme='light'] .brand-word { background: linear-gradient(180deg, #2a1420, #c2410c); -webkit-background-clip: text; background-clip: text; }
:root[data-theme='light'] .sidebar { background: linear-gradient(180deg, #fbfaf8, #f3f0eb); }
:root[data-theme='light'] .sb-nav a:hover { background: rgba(0, 0, 0, .05); color: var(--text); }
:root[data-theme='light'] .sb-nav a.active { color: var(--text); background: linear-gradient(90deg, rgba(255, 61, 90, .14), rgba(255, 159, 67, .06)); }
:root[data-theme='light'] .sb-nav a.active .i { color: #e8364f; }
:root[data-theme='light'] .sb-user:hover, :root[data-theme='light'] .sb-collapse:hover { background: rgba(0, 0, 0, .05); }
:root[data-theme='light'] .tabbar { background: rgba(252, 251, 249, .94); }
:root[data-theme='light'] .kicker { color: #d9480f; }

/* controls */
:root[data-theme='light'] .btn-primary { box-shadow: 0 10px 26px -12px rgba(23, 20, 31, .5); }
:root[data-theme='light'] .btn-primary:hover { background: #000; box-shadow: 0 14px 34px -12px rgba(255, 61, 90, .55); }
:root[data-theme='light'] .btn-glass { background: rgba(255, 255, 255, .75); border-color: var(--line-2); color: var(--text); }
:root[data-theme='light'] .btn-glass:hover { background: #fff; }
:root[data-theme='light'] :is(.hero, .ev-hero, .det-hero, .lp-dark) .btn-glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
:root[data-theme='light'] :is(.hero, .ev-hero, .det-hero, .lp-dark) .btn-primary { background: #f5f2ee; color: #0a0a0f; }
:root[data-theme='light'] .btn-ghost:hover { background: rgba(0, 0, 0, .05); }
:root[data-theme='light'] .input, :root[data-theme='light'] .select { background: #fff; }
:root[data-theme='light'] .select option { background: #fff; color: var(--text); }
:root[data-theme='light'] .search-box { background: #fff; }
:root[data-theme='light'] .chip { background: rgba(0, 0, 0, .05); color: var(--text-2); }
:root[data-theme='light'] button.chip:hover { background: rgba(0, 0, 0, .09); }
:root[data-theme='light'] .seg { background: rgba(0, 0, 0, .04); }
:root[data-theme='light'] .seg button.on { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
:root[data-theme='light'] .pm-switch { background: rgba(0, 0, 0, .18); }
:root[data-theme='light'] .bar, :root[data-theme='light'] .stack-bar { background: rgba(0, 0, 0, .07); }
:root[data-theme='light'] .warn { background: rgba(255, 159, 67, .16); color: #8a4a06; }
:root[data-theme='light'] .warn a { color: #8a4a06; }
:root[data-theme='light'] .warn-inline { color: #b45309; }
:root[data-theme='light'] .copy-field { background: #faf8f5; }
:root[data-theme='light'] .live-pill.off { background: rgba(0, 0, 0, .08); }

/* surfaces */
:root[data-theme='light'] .panel, :root[data-theme='light'] .watch-side, :root[data-theme='light'] .kpi, :root[data-theme='light'] .studio-health div,
:root[data-theme='light'] .mode-card, :root[data-theme='light'] .pipe, :root[data-theme='light'] .onboard-card, :root[data-theme='light'] .up-item { background: rgba(255, 255, 255, .86); box-shadow: 0 10px 30px -22px rgba(40, 20, 40, .35); }
:root[data-theme='light'] .tabs button.on { background: rgba(0, 0, 0, .06); }
:root[data-theme='light'] .qitem:hover, :root[data-theme='light'] .recent-urls a:hover { background: rgba(0, 0, 0, .04); }
:root[data-theme='light'] .row-arrow { background: linear-gradient(90deg, rgba(244, 242, 238, .95), transparent); color: var(--text); }
:root[data-theme='light'] .row-arrow.r { background: linear-gradient(270deg, rgba(244, 242, 238, .95), transparent); }
:root[data-theme='light'] .card-media { box-shadow: 0 12px 28px -16px rgba(40, 20, 40, .45), inset 0 0 0 1px rgba(0, 0, 0, .05); }
:root[data-theme='light'] .card-more { background: #fff; }
:root[data-theme='light'] .grid.layout-list .card { background: #fff; }
:root[data-theme='light'] .watch-backdrop { opacity: .28; }
:root[data-theme='light'] .watch-backdrop::after { background: linear-gradient(180deg, rgba(244, 242, 238, .55), var(--bg) 70%); }
:root[data-theme='light'] .modal-back { background: rgba(30, 24, 36, .45); }
:root[data-theme='light'] .modal-x { background: rgba(0, 0, 0, .06); }
:root[data-theme='light'] .toast { color: var(--text); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .25), 0 0 0 1px var(--line-2); }
:root[data-theme='light'] .toast-ico { background: rgba(0, 0, 0, .06); }
:root[data-theme='light'] .msg p { color: var(--text-2); }
:root[data-theme='light'] .msg-sys { background: rgba(0, 0, 0, .04); }
:root[data-theme='light'] .chat-react button:hover { background: rgba(0, 0, 0, .05); }
:root[data-theme='light'] .sbtn { background: #fff; }
:root[data-theme='light'] .sbtn:hover { background: #f6f3ef; }
:root[data-theme='light'] .mode-opt, :root[data-theme='light'] .source-opt { background: #fff; }
:root[data-theme='light'] .dropzone { background: radial-gradient(70% 90% at 50% 0%, rgba(255, 61, 90, .08), transparent 70%), rgba(255, 255, 255, .7); border-color: rgba(0, 0, 0, .18); }
:root[data-theme='light'] .drop-folder { background: rgba(255, 255, 255, .8); }
:root[data-theme='light'] .invite-list, :root[data-theme='light'] .recovery code { background: #faf8f5; }
:root[data-theme='light'] .ev-empty, :root[data-theme='light'] .empty-state.wide { border-color: rgba(0, 0, 0, .15); }
:root[data-theme='light'] .acct-menu > button:hover, :root[data-theme='light'] .acct-menu > a:hover { background: rgba(0, 0, 0, .05); }
:root[data-theme='light'] .menu-badge { background: rgba(0, 0, 0, .06); }
:root[data-theme='light'] .spec tr + tr { border-color: var(--line); }
:root[data-theme='light'] kbd { background: rgba(0, 0, 0, .06); }
:root[data-theme='light'] .auth-card { background: rgba(255, 255, 255, .92); }
:root[data-theme='light'] .auth-panel { background: linear-gradient(90deg, transparent, rgba(244, 242, 238, .75) 18%); }
:root[data-theme='light'] .auth-error { color: #c0263d; }

/* the home hero stays cinematic-dark: keep the header light-on-dark over it, and start the rows below it */
:root[data-theme='light'] body[data-route='home'] .nav:not(.scrolled) { background: linear-gradient(180deg, rgba(7, 7, 11, .7), transparent); }
:root[data-theme='light'] body[data-route='home'] .nav:not(.scrolled) .nav-icon,
:root[data-theme='light'] body[data-route='home'] .nav:not(.scrolled) .nav-search .i { color: #f5f2ee; }
:root[data-theme='light'] body[data-route='home'] .nav:not(.scrolled) .brand-mobile .brand-word { background: linear-gradient(180deg, #fff, #ffc4ac); -webkit-background-clip: text; background-clip: text; }
:root[data-theme='light'] .rows { margin-top: 0; padding-top: 30px; }
:root[data-theme='light'] .hero-shade { background: linear-gradient(90deg, rgba(7, 7, 11, .96) 0%, rgba(7, 7, 11, .7) 32%, rgba(7, 7, 11, .1) 65%, rgba(7, 7, 11, .3) 100%), linear-gradient(0deg, rgba(7, 7, 11, .85) 0%, rgba(7, 7, 11, .4) 25%, transparent 50%), linear-gradient(180deg, rgba(7, 7, 11, .6), transparent 22%); }
