/* ══════════════════════════════════════════════════════════════════
   Lumen design system — loaded last.
   Principles: neutral surfaces, one accent used sparingly, real typographic hierarchy,
   1px borders instead of glows, motion only where it carries meaning.
   ══════════════════════════════════════════════════════════════════ */
:root {
  --bg: #0f0f10;
  --bg-2: #141415;
  --bg-3: #1a1a1c;
  --panel: #161618;
  --panel-solid: #161618;
  --raise: #1d1d20;
  --line: #262629;
  --line-2: #323236;
  --text: #ececec;
  --text-2: #b4b4b8;
  --muted: #8a8a8f;
  --dim: #5d5d62;
  --accent: #e5533d;
  --accent-2: #e5533d;
  --accent-soft: rgba(229, 83, 61, .12);
  --live: #e5484d;
  --ok: #3fb67f;
  --grad: var(--accent);
  --font: 'Inter', 'Noto Sans Ethiopic', 'Nyala', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Instrument Serif', 'Noto Sans Ethiopic', Georgia, 'Times New Roman', serif;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .55);
  --modal-bg: #161618;
  --menu-bg: #1b1b1e;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --nav-fade: rgba(15, 15, 16, .9);
}
:root[data-theme='light'] {
  --bg: #fbfbfa;
  --bg-2: #ffffff;
  --bg-3: #f3f3f1;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --raise: #ffffff;
  --line: #e7e6e3;
  --line-2: #d9d8d4;
  --text: #1b1b1d;
  --text-2: #4a4a50;
  --muted: #6f6f76;
  --dim: #9b9ba1;
  --accent-soft: rgba(229, 83, 61, .1);
  --modal-bg: #ffffff;
  --menu-bg: #ffffff;
  --surface: rgba(0, 0, 0, .03);
  --surface-2: rgba(0, 0, 0, .055);
  --nav-fade: rgba(251, 251, 250, .92);
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px -14px rgba(0, 0, 0, .18);
}
:root[data-theme='light'] :is(.hero, .player, .ev-hero, .live-hero, .lightbox, .lp-dark, .lp-stage, .paywall, .tv-screen, .studio-stage, .det-hero, .live-wait, .signal-lost) {
  --bg: #0f0f10; --panel: #161618; --line: #2a2a2d; --line-2: #36363a; --text: #ececec; --text-2: #c2c2c6; --muted: #8f8f94;
}

body { background: var(--bg); background-image: none; font-size: 14.5px; letter-spacing: -.003em; }
:root[data-theme='light'] body { background-image: none; }
.grain { display: none !important; }
::selection { background: rgba(229, 83, 61, .3); }

/* ── type ── */
h1, h2, h3, h4 { letter-spacing: -.01em; }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -.015em; }
.display.small { font-size: clamp(28px, 3vw, 40px); }
.display em, .hero-title em { background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; font-style: italic; }
.kicker { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); gap: 6px; }
.kicker .i { width: 14px; height: 14px; }
.muted { color: var(--muted); }
.page-head { gap: 6px; margin-bottom: 24px; }
.page-head p { color: var(--muted); }
.brand-word { font-family: var(--display); font-size: 27px; letter-spacing: -.01em; padding-top: 0; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; color: var(--text) !important; }
.brand-mark { width: 26px; height: 26px; filter: none; }
.brand:hover .brand-mark { transform: none; }

/* ── controls ── */
.btn { height: 38px; padding: 0 16px; border-radius: 8px; font-weight: 550; font-size: 14px; letter-spacing: -.005em; gap: 7px; box-shadow: none; }
.btn:active { transform: none; opacity: .85; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn-icon { width: 38px; padding: 0; } .btn-icon.btn-lg { width: 44px; } .btn-sm.btn-icon { width: 32px; }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: none; }
.btn-primary:hover { background: var(--text); opacity: .9; transform: none; box-shadow: none; }
:root[data-theme='light'] .btn-primary:hover { background: var(--text); box-shadow: none; }
.btn-glass { background: var(--surface-2); border: 1px solid var(--line-2); backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--text); }
.btn-glass:hover { background: var(--line); border-color: var(--line-2); }
:root[data-theme='light'] .btn-glass { background: #fff; border-color: var(--line-2); }
:root[data-theme='light'] .btn-glass:hover { background: var(--bg-3); }
:is(.hero, .ev-hero, .det-hero, .lp-dark) .btn-glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
:is(.hero, .ev-hero, .det-hero, .lp-dark) .btn-glass:hover { background: rgba(255, 255, 255, .16); }
:is(.hero, .ev-hero, .det-hero, .lp-dark) .btn-primary { background: #f2f2f2; color: #111; }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-live { background: var(--live); box-shadow: none; }
.btn-live:hover { filter: none; transform: none; background: #d63c42; }
.btn-live.is-live { background: transparent; border: 1px solid var(--live); color: var(--live); animation: none; }
.btn-danger { background: rgba(229, 72, 77, .12); color: #f07075; border: 1px solid rgba(229, 72, 77, .3); }
.input, .select { height: 40px; border-radius: 8px; background: var(--bg-2); border-color: var(--line-2); }
.input:focus, .select:focus { border-color: var(--text-2); background: var(--bg-2); box-shadow: 0 0 0 3px rgba(127, 127, 127, .15); }
textarea.input { border-radius: 8px; }
.search-box { height: 40px; border-radius: 8px; background: var(--bg-2); }
.search-box:focus-within { border-color: var(--text-2); box-shadow: 0 0 0 3px rgba(127, 127, 127, .15); }
.toolbar .select { height: 40px; border-radius: 8px; }
.chip { height: 26px; padding: 0 10px; border-radius: 6px; font-weight: 500; font-size: 12.5px; background: var(--surface-2); border: 0; color: var(--text-2); }
button.chip.on { background: var(--text); color: var(--bg); }
.seg { border-radius: 9px; padding: 3px; background: var(--surface); border-color: var(--line); }
.seg button { height: 32px; border-radius: 7px; font-weight: 500; }
.seg button.on { background: var(--raise); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 1px var(--line-2); }
.pm-switch.on, input:checked + .pm-switch { background: var(--accent); }
.bar i { background: var(--accent); }
.badge-accent { background: var(--accent-soft); color: var(--accent); letter-spacing: .02em; text-transform: none; font-weight: 600; border-radius: 6px; }
.live-dot { animation: none; box-shadow: none; }
.live-pill { border-radius: 4px; font-size: 10.5px; letter-spacing: .06em; }
.live-pill i { animation: blink 1.6s infinite; }
.warn { border-radius: 8px; }

/* ── navigation ── */
.nav { background: transparent; }
.nav.scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
:root[data-theme='light'] .nav.scrolled { background: var(--bg); }
.nav-search.open, .nav-search:focus-within { background: var(--bg-2); border-color: var(--line-2); }
.avatar { border-radius: 50%; box-shadow: none; font-weight: 600; }
.avatar.sm { border-radius: 50%; }
.sidebar { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
:root[data-theme='light'] .sidebar { background: var(--bg-3); }
.sidebar::before { display: none; }
.sb-label { font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--dim); padding: 18px 12px 6px; }
.sb-nav a { height: 38px; border-radius: 8px; font-weight: 500; font-size: 14px; color: var(--text-2); gap: 12px; }
.sb-nav a .i { width: 19px; height: 19px; }
.sb-nav a:hover .i { transform: none; }
.sb-nav a.active, :root[data-theme='light'] .sb-nav a.active { background: var(--surface-2); color: var(--text); }
.sb-nav a.active .i, :root[data-theme='light'] .sb-nav a.active .i { color: var(--text); }
.sb-nav a.active::before { display: none; }
.sb-count { border-radius: 5px; }
.acct-menu { border-radius: 12px; backdrop-filter: none; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5), 0 0 0 1px var(--line-2); }
.acct-menu > button, .acct-menu > a { border-radius: 7px; padding: 9px 10px; }
.tabbar { background: var(--bg-2); backdrop-filter: none; }

/* ── hero ── */
.hero { height: min(78vh, 760px); min-height: 480px; }
.hero-slide.active img { animation: none; }
.hero-shade { background: linear-gradient(90deg, rgba(10, 10, 11, .92) 0%, rgba(10, 10, 11, .6) 38%, rgba(10, 10, 11, .05) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, .3) 22%, transparent 45%); }
:root[data-theme='light'] .hero-shade { background: linear-gradient(90deg, rgba(10, 10, 11, .92) 0%, rgba(10, 10, 11, .6) 38%, rgba(10, 10, 11, .05) 70%), linear-gradient(0deg, rgba(10, 10, 11, .75) 0%, transparent 40%); }
.hero-content { gap: 14px; bottom: clamp(64px, 12vh, 130px); }
.hero-kicker { gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .7); font-weight: 500; }
.hero-kicker span + span::before { content: '·'; margin-right: 10px; }
.hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 88px); line-height: .98; letter-spacing: -.02em; text-shadow: none; }
.hero-meta { font-size: 13px; gap: 6px 12px; color: rgba(255, 255, 255, .78); font-weight: 500; }
.hero-meta span:first-child { border-radius: 4px; }
.hero-meta span + span::before { color: rgba(255, 255, 255, .4); margin-right: 12px; content: '·'; }
.hero-desc { font-size: 15px; color: rgba(255, 255, 255, .78); }
.hero-desc:empty, .watch-desc:empty, .det-desc:empty { display: none; }
.hero-progress { height: 3px; }
.hero-progress i { background: var(--accent); }
.hero-mute { width: 38px; height: 38px; border-color: rgba(255, 255, 255, .3); backdrop-filter: none; }
.hero-dots button.on i::after { background: #fff; }
.hero-aurora, .live-hero-bg { display: none; }
.rows { margin-top: -40px; }
:root[data-theme='light'] .rows { margin-top: 0; }

/* ── rows & cards ── */
.row { margin-bottom: 30px; }
.row-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.row-more { color: var(--muted); font-weight: 500; opacity: 1; transform: none; }
.row-more:hover { color: var(--text); }
.row-track { gap: 12px; padding-bottom: 22px; }
.row-arrow { background: linear-gradient(90deg, var(--bg), transparent) !important; }
.row-arrow.r { background: linear-gradient(270deg, var(--bg), transparent) !important; }
.card { animation: none; }
.card-media { border-radius: 8px; box-shadow: none; outline: 1px solid var(--line); outline-offset: -1px; }
:root[data-theme='light'] .card-media { box-shadow: none; }
.card-shine, .card-play { display: none; }
.card-badge { top: 8px; left: 8px; font-size: 10px; font-weight: 600; letter-spacing: .03em; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .65); backdrop-filter: none; }
.card-dur { right: 8px; bottom: 8px; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .7); backdrop-filter: none; }
.card-progress { left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0; }
.card-progress i { background: var(--accent); }
.card-glyph .i { width: 18%; filter: none; opacity: .7; }
.card-info { padding-top: 9px; }
.card-text h3 { font-size: 14px; font-weight: 550; }
.card-text p { font-size: 12.5px; }
.card-more { border-radius: 6px; }
@media (hover: hover) {
  .card:hover .card-media { transform: none; box-shadow: none; outline-color: var(--text-2); }
  .card:hover .card-media img { transform: none; filter: brightness(1.08); }
}
.card-event .ev-date { background: rgba(0, 0, 0, .72); box-shadow: none; border-radius: 6px; backdrop-filter: none; }
.card-event .ev-date small { color: #fff; opacity: .7; letter-spacing: .06em; }
.card-event .ev-count { background: rgba(0, 0, 0, .72); color: #fff; }
.card-event.is-live .card-media { box-shadow: none; outline: 2px solid var(--live); }
.onboard-card:hover, .mode-card:hover, .lp-feature:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.onboard-card > .i { color: var(--text-2); }

/* ── panels, modals, toasts ── */
.panel, .watch-side, .kpi, .studio-health div, .mode-card, .pipe, .onboard-card, .up-item, .ev-side, .lp-feature {
  background: var(--panel) !important; border: 1px solid var(--line); backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; border-radius: 12px;
}
.kpi::after { display: none; }
.kpi small { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 500; }
.kpi b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.modal-back { background: rgba(0, 0, 0, .6); backdrop-filter: none; -webkit-backdrop-filter: none; }
:root[data-theme='light'] .modal-back { background: rgba(20, 20, 24, .35); }
.modal { border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px var(--line-2); }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-x { background: transparent; backdrop-filter: none; width: 32px; height: 32px; }
.modal-x:hover { background: var(--surface-2); transform: none; }
.det-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1; }
.det-hero img.ok { animation: none; }
.toast { border-radius: 10px; backdrop-filter: none; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .5), 0 0 0 1px var(--line-2); font-weight: 500; }
.toast-ico { width: 24px; height: 24px; background: transparent !important; }
.toast-live .toast-ico { color: var(--live); }
.toast-act { border-radius: 6px; }

/* ── player ── */
.ply-box { border-radius: 10px; box-shadow: none; }
.ply-played { background: var(--accent); box-shadow: none; }
.ply-knob { box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.player.is-fresh.is-paused .ply-big { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: rgba(0, 0, 0, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.ply-big { background: rgba(0, 0, 0, .5); backdrop-filter: none; }
.ply-ring, .ply-spinner .ply-ring { border-top-color: #fff; border-right-color: rgba(255, 255, 255, .6); filter: none; }
.ply-menu { border-radius: 12px; backdrop-filter: none; background: #1b1b1e; }
.ply-art { background: #0e0e10; }
.ply-art-cover { background: #222; }
.ply-captions .cue span { border-radius: 4px; }
.upn { border-radius: 12px; backdrop-filter: none; background: #1b1b1e; }

/* ── watch page ── */
.watch-backdrop { display: none; }
.watch-title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.015em; line-height: 1.05; }
.qitem { border-radius: 8px; animation: none; }
.qitem.now { background: var(--surface-2); box-shadow: none; }
.qthumb { border-radius: 6px; }
.tabs button { border-radius: 7px; font-weight: 500; }
.tabs button.on { background: var(--surface-2); }
.party-art { background: var(--surface-2); color: var(--text-2); box-shadow: none; transform: none; border-radius: 14px; }
.party-banner { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.msg-av { box-shadow: none; }
.float-emoji { filter: none; }

/* ── live / studio / events ── */
.live-hero { background: var(--panel); border-radius: 16px; }
.live-hero .display em { font-style: italic; }
.mode-ico, .lp-ico { background: var(--surface-2) !important; color: var(--text) !important; box-shadow: none !important; border-radius: 10px; }
.step { background: var(--surface-2); color: var(--text); font-weight: 600; }
.mode-opt.on, .source-opt.on { background: var(--accent-soft); border-color: var(--accent); box-shadow: none; }
.mode-opt .i, .source-opt .i { color: var(--text-2); }
.mode-opt.on .i, .source-opt.on .i { color: var(--accent); }
.studio-stage { border-radius: 10px; box-shadow: none; outline: 1px solid var(--line); }
.studio-meter i { background: var(--ok); }
.sbtn { border-radius: 8px; height: 40px; }
.sbtn.rec { background: rgba(229, 72, 77, .12); border-color: rgba(229, 72, 77, .45); }
.ev-hero { border-radius: 16px; box-shadow: none; outline: 1px solid var(--line); }
.ev-hero.is-live { box-shadow: none; outline: 2px solid var(--live); }
.ev-hero-bg img.ok { animation: none; }
.ev-title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.5vw, 76px); line-height: .98; letter-spacing: -.02em; text-shadow: none; }
.cd div { border-radius: 10px; background: rgba(255, 255, 255, .06); backdrop-filter: none; box-shadow: none; border: 1px solid rgba(255, 255, 255, .1); min-width: 70px; }
.cd b { font-family: 'Inter', var(--font); font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cd b.flip { animation: none; }
.cd small { letter-spacing: 0; text-transform: none; font-weight: 500; }
.ev-empty { border-radius: 14px; }
.qr-card svg { border-radius: 10px; box-shadow: none; outline: 1px solid var(--line); }

/* ── upload / stats ── */
.dropzone { border-radius: 14px; background: var(--panel); border: 1.5px dashed var(--line-2); }
:root[data-theme='light'] .dropzone { background: #fff; }
.dropzone::before { display: none; }
.dropzone:hover, .dropzone.over { border-color: var(--text-2); transform: none; background: var(--panel); }
.drop-orb { width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); color: var(--text); box-shadow: none; }
.dropzone:hover .drop-orb, .dropzone.over .drop-orb { transform: none; }
.drop-orb .i { width: 26px; height: 26px; }
.dropzone h2 { font-size: 20px; font-weight: 600; }
.dropzone u { color: var(--text); }
.flow li::after { background: var(--line-2); }
.flow li:last-child::before { background: var(--text); color: var(--bg); }
.t-video { background: var(--accent); } .t-audio { background: #d9a23c; } .t-image { background: #6e7fd8; }

/* ── auth ── */
.auth-bg i { display: none; }
.auth-bg { background: var(--bg); }
.auth-bg::after { display: none; }
.auth-card { border-radius: 16px; background: var(--panel) !important; backdrop-filter: none; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-2); padding: 30px 28px; }
.auth-title { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: -.015em; }
.auth-quote .display { font-size: clamp(44px, 5vw, 76px); }
.auth.as-modal { background: rgba(0, 0, 0, .6); backdrop-filter: none; -webkit-backdrop-filter: none; }
.input-ico .input { height: 44px; }
.pw-meter[data-level='4'] i { background: var(--ok); }

/* ── languages ── */
body.lang-ethiopic :is(.display, .hero-title, .ev-title, .watch-title, .det-head h2, .auth-title, .lp-title, .lp-h2) { font-family: 'Noto Sans Ethiopic', var(--font); font-weight: 700; letter-spacing: -.01em; }

/* ── likes & comments ── */
.like-btn { gap: 6px; padding: 0 12px; }
.like-btn .i { width: 17px; height: 17px; color: var(--muted); }
.like-btn.on .i { color: var(--accent); }
.like-n { font-variant-numeric: tabular-nums; font-weight: 600; }
.comments { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 860px; }
.comments-h { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.comments-n { font-weight: 500; margin-left: 4px; }
.comment-form { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; margin-bottom: 22px; }
.comment-form textarea { min-height: 40px; resize: none; line-height: 1.5; padding-top: 9px; }
.comment-form .btn { margin-top: 4px; }
.comment-list { display: grid; gap: 18px; }
.comment { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.comment-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.comment-meta time { color: var(--muted); }
.comment-del { margin-left: auto; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); opacity: 0; }
.comment:hover .comment-del, .comment-del:focus-visible { opacity: 1; }
.comment-del:hover { background: var(--surface-2); color: var(--text); }
.comment-del .i { width: 15px; height: 15px; }
.comment p { margin-top: 3px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.comments-empty { font-size: 14px; }
@media (hover: none) { .comment-del { opacity: 1; } }

/* ── devices ── */
.dev-list { display: grid; margin: 14px 0 4px; border-top: 1px solid var(--line); }
.dev-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dev-row > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dev-row > div > .i { width: 20px; height: 20px; color: var(--muted); flex: none; }
.dev-row span { display: grid; min-width: 0; }
.dev-row b { font-weight: 550; font-size: 14px; }
.dev-row small { font-size: 12.5px; }

/* text on top of artwork is always light, in both themes */
.card-badge, .card-dur, .qthumb em, .card-event .ev-date b, .card-event .ev-date small, .card-live .card-dur { color: #fff; }
/* avatars: quiet neutral discs with initials (inline gradient art is overridden) */
.avatar, .msg-av { background: var(--raise) !important; color: var(--text) !important; text-shadow: none !important; box-shadow: inset 0 0 0 1px var(--line-2) !important; }
