/* ==========================================================
   LEONIDA · SETTINGS STYLES
   leonida/css/settings.css
   Loaded once, cached by the browser across every page.
   ========================================================== */

/* ---------- THEME VARIANTS ---------- */
html[data-ls-theme="vice"] {
  --sunset-a: #8ff4ff; --sunset-b: #4dd8ff; --sunset-c: #7fe8ff;
  --sunset-d: #ff5fa8; --sunset-e: #c94bff;
}
html[data-ls-theme="mono"] {
  --sunset-a: #dcdcdc; --sunset-b: #b8b8b8; --sunset-c: #9a9a9a;
  --sunset-d: #7d7d7d; --sunset-e: #5e5e5e;
}
html[data-ls-theme="mono"] .bg-tint { opacity: .35; }
html[data-ls-theme="emerald"] {
  --sunset-a: #7cffcb; --sunset-b: #34e5b0; --sunset-c: #00c9a7;
  --sunset-d: #0aa398; --sunset-e: #067a6f;
}
html[data-ls-theme="bloodorange"] {
  --sunset-a: #ffd166; --sunset-b: #ff9f1c; --sunset-c: #ff6b35;
  --sunset-d: #e63946; --sunset-e: #9d0208;
}
html[data-ls-theme="grape"] {
  --sunset-a: #e0aaff; --sunset-b: #c77dff; --sunset-c: #9d4edd;
  --sunset-d: #7b2cbf; --sunset-e: #5a189a;
}
html[data-ls-theme="arctic"] {
  --sunset-a: #e0fbfc; --sunset-b: #c2dfe3; --sunset-c: #9db4c0;
  --sunset-d: #5c6b73; --sunset-e: #253237;
}
html[data-ls-theme="goldrush"] {
  --sunset-a: #fff3b0; --sunset-b: #ffd60a; --sunset-c: #ffc300;
  --sunset-d: #ff9500; --sunset-e: #ff5400;
}
html[data-ls-theme="midnight"] {
  --sunset-a: #a5b4fc; --sunset-b: #6366f1; --sunset-c: #4338ca;
  --sunset-d: #312e81; --sunset-e: #1e1b4b;
}
html[data-ls-theme="coral"] {
  --sunset-a: #ffe5ec; --sunset-b: #ffb3c6; --sunset-c: #ff758f;
  --sunset-d: #ff4d6d; --sunset-e: #c9184a;
}
html[data-ls-theme="sakura"] {
  --sunset-a: #fff0f6; --sunset-b: #ffd6e8; --sunset-c: #ffb3d1;
  --sunset-d: #f875aa; --sunset-e: #d6336c;
}
html[data-ls-theme="toxic"] {
  --sunset-a: #f4ffb0; --sunset-b: #d9ff4b; --sunset-c: #aeff00;
  --sunset-d: #7cd600; --sunset-e: #3f8f00;
}
html[data-ls-theme="copper"] {
  --sunset-a: #ffdab0; --sunset-b: #e8a25c; --sunset-c: #b5651d;
  --sunset-d: #8a4a1c; --sunset-e: #4e2a10;
}
html[data-ls-theme="glacier"] {
  --sunset-a: #f0fbff; --sunset-b: #c7f0ff; --sunset-c: #8fdcff;
  --sunset-d: #4bb8e0; --sunset-e: #1f6f8b;
}
html[data-ls-theme="inferno"] {
  --sunset-a: #ffe66d; --sunset-b: #ffa63d; --sunset-c: #ff5714;
  --sunset-d: #d62828; --sunset-e: #6a040f;
}

/* --- shared gradient utility, works across every theme including vice --- */

html[data-ls-theme] .bg-gradient {
  background: linear-gradient(
    135deg,
    var(--sunset-a),
    var(--sunset-b),
    var(--sunset-c),
    var(--sunset-d),
    var(--sunset-e)
  );
}

/* ---------- BACKGROUND DIM / IMAGE ---------- */
.bg-darken { background: rgba(4, 0, 26, var(--bgd-opacity, 0.52)) !important; }
html.ls-hideBackgroundImage body { background-image: none !important; background-color: #04001a; }

/* ---------- GRID DENSITY ---------- */
html[data-ls-gridDensity="compact"] .places-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; gap: 10px !important; }
html[data-ls-gridDensity="cozy"] .places-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important; gap: 22px !important; }

/* ---------- CARD RADIUS ---------- */
html[data-ls-cardRadius="sharp"] .gallery-item, html[data-ls-cardRadius="sharp"] .place-card, html[data-ls-cardRadius="sharp"] .trailer-card { border-radius: 4px !important; }
html[data-ls-cardRadius="round"] .gallery-item, html[data-ls-cardRadius="round"] .place-card, html[data-ls-cardRadius="round"] .trailer-card { border-radius: 26px !important; }

/* ---------- GLOW INTENSITY ---------- */
html[data-ls-glowIntensity="off"] .pill,
html[data-ls-glowIntensity="off"] .gallery-item:hover,
html[data-ls-glowIntensity="off"] .place-card:hover,
html[data-ls-glowIntensity="off"] .trailer-card:hover,
html[data-ls-glowIntensity="off"] .status-dot.ok,
html[data-ls-glowIntensity="off"] .new-badge { box-shadow: none !important; animation: none !important; }
html[data-ls-glowIntensity="boosted"] .pill { box-shadow: 0 0 60px rgba(255,140,80,.3), inset 0 1px 0 rgba(255,220,180,.2), 0 8px 32px rgba(0,0,0,.5) !important; }
html[data-ls-glowIntensity="boosted"] .gallery-item:hover,
html[data-ls-glowIntensity="boosted"] .place-card:hover { box-shadow: 0 16px 50px rgba(0,0,0,.6), 0 0 42px rgba(255,140,80,.2) !important; }
html[data-ls-glowIntensity="boosted"] .trailer-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 42px rgba(255,140,80,.22) !important; }

/* ---------- TEXT SIZE ---------- */
html[data-ls-textSize="large"] .bio-text, html[data-ls-textSize="large"] .card-name,
html[data-ls-textSize="large"] .card-file, html[data-ls-textSize="large"] .empty-sub,
html[data-ls-textSize="large"] .status-text, html[data-ls-textSize="large"] .tlb-title,
html[data-ls-textSize="large"] .card-label-title { font-size: 1.15em !important; }
html[data-ls-textSize="small"] .bio-text, html[data-ls-textSize="small"] .card-name,
html[data-ls-textSize="small"] .card-file, html[data-ls-textSize="small"] .empty-sub,
html[data-ls-textSize="small"] .status-text { font-size: 0.88em !important; }

/* ---------- NAVIGATION ---------- */
#bottomNav { transition: opacity .4s ease; }
#bottomNav.ls-nav-dim { opacity: .16; }
html.ls-hideTooltips .bottom-nav-tip { display: none !important; }
html.ls-compactNav .bottom-nav { padding: 5px 8px !important; }
html.ls-compactNav .bottom-nav-btn { width: 32px !important; height: 32px !important; }
html.ls-compactNav .bottom-nav-btn svg { width: 14px !important; height: 14px !important; }
html.ls-hideBrandMark .brand-mark { display: none !important; }
html.ls-hideEyebrows .eyebrow { display: none !important; }
html.ls-hideCountBadges .count-badge { display: none !important; }

/* ---------- MEDIA ---------- */
html.ls-hideFileNames .card-file { display: none !important; }
html.ls-hideCardNumbers .card-num { display: none !important; }
html.ls-disableImageHoverZoom .gallery-item:hover .card-img-wrap img,
html.ls-disableImageHoverZoom .place-card:hover .card-img-wrap img,
html.ls-disableImageHoverZoom .trailer-card:hover .thumb-wrap img { transform: none !important; }
.lb-img, #char-lb-img { transition: opacity var(--ls-lb-speed, 0.15s) !important; }

/* ---------- ACCESSIBILITY ---------- */
html.ls-reduceMotion *, html.ls-reduceMotion *::before, html.ls-reduceMotion *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
}
html.ls-disableShimmerText .leonida-text, html.ls-disableShimmerText .page-title-grad,
html.ls-disableShimmerText .ls-title { animation: none !important; background-position: 0% !important; }
html.ls-highContrastText .status-text, html.ls-highContrastText .empty-sub,
html.ls-highContrastText .bio-text, html.ls-highContrastText .card-file,
html.ls-highContrastText .subtitle, html.ls-highContrastText .pill-lbl,
html.ls-highContrastText .ls-row-sub { color: rgba(255,255,255,.9) !important; }
html.ls-largerClickTargets .bottom-nav-btn { width: 48px !important; height: 48px !important; }
html.ls-largerClickTargets .bottom-nav-btn svg { width: 20px !important; height: 20px !important; }
html.ls-largerClickTargets .viewer-btn, html.ls-largerClickTargets .tlb-btn { padding: 12px 28px !important; }
html.ls-underlineLinks .home-meta, html.ls-underlineLinks .bottom-nav-tip { text-decoration: underline !important; }
html.ls-disableBlur * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.ls-focusOutlines a:focus, html.ls-focusOutlines button:focus,
html.ls-focusOutlines input:focus, html.ls-focusOutlines select:focus {
  outline: 2px solid var(--sunset-b, #ffb347) !important; outline-offset: 2px !important;
}

/* ==========================================================
   SETTINGS BUTTON (matches bottom-nav icon behavior —
   gray at rest, white on hover, theme-color when active)
   ========================================================== */
#ls-settings-btn {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
#ls-settings-btn:hover {
  color: #fff;
}
#ls-settings-btn.active {
  color: var(--sunset-b);
}
#ls-settings-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================
   SETTINGS PANEL
   ========================================================== */
#lsOverlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(4,0,26,0.78); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
#lsOverlay.active { opacity: 1; pointer-events: all; }

#lsPanel {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(700px, 94vw); height: min(600px, 86vh);
  display: flex; flex-direction: row;
  z-index: 9999;
  background: rgba(4,0,26,0.94);
  border: 1px solid rgba(255,140,80,0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(255,140,80,0.08), 0 24px 70px rgba(0,0,0,0.8);
  font-family: 'Rajdhani', sans-serif;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.34,1.4,.64,1);
}
#lsPanel.active { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }

/* ---------- LEFT SIDEBAR ---------- */
.ls-side {
  width: 190px; flex-shrink: 0; display: flex; flex-direction: column;
  background: rgba(0,0,0,0.22); border-right: 1px solid rgba(255,140,80,0.14);
  padding: 20px 12px; overflow-y: auto; scrollbar-width: none;
}
.ls-side::-webkit-scrollbar { display: none; }
.ls-side-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: 21px; letter-spacing: .04em; padding: 4px 10px 18px;
  background: linear-gradient(90deg, var(--sunset-a), var(--sunset-b), var(--sunset-c), var(--sunset-d), var(--sunset-e), var(--sunset-b), var(--sunset-a));
  background-size: 300% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: lsShimmer 8s linear infinite;
}
@keyframes lsShimmer { 0% { background-position: 0%; } 100% { background-position: 300%; } }

.ls-tabs { display: flex; flex-direction: column; gap: 3px; }
.ls-tab {
  text-align: left; padding: 10px 12px; border-radius: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); background: transparent; border: none; cursor: pointer;
  transition: color .15s, background .15s; white-space: nowrap;
}
.ls-tab:hover { color: rgba(255,255,255,0.8); background: rgba(255,140,80,0.08); }
.ls-tab.active { color: #04001a; background: linear-gradient(90deg, var(--sunset-b), var(--sunset-d)); }

/* ---------- RIGHT SIDE (header / body / footer) ---------- */
.ls-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.ls-head { display: flex; align-items: center; justify-content: flex-end; padding: 16px 20px 0; }
.ls-close {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6); font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.ls-close:hover { background: rgba(255,60,60,0.22); border-color: rgba(255,60,60,0.4); color: #fff; }

.ls-body { padding: 6px 24px 4px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(255,140,80,0.25) transparent; }
.ls-body::-webkit-scrollbar { width: 5px; }
.ls-body::-webkit-scrollbar-thumb { background: rgba(255,140,80,0.25); border-radius: 4px; }

.ls-pane { display: none; }
.ls-pane.active { display: block; }

.ls-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid rgba(255,140,80,0.08); }
.ls-row:last-child { border-bottom: none; }
.ls-row-label { font-size: 12.5px; font-weight: 700; letter-spacing: .03em; color: rgba(255,255,255,0.82); }
.ls-row-sub { font-size: 10px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,0.26); margin-top: 2px; }

.ls-tz-preview {
  margin: 14px 2px 4px; padding: 11px 14px; border-radius: 10px;
  background: rgba(255,140,80,0.07); border: 1px solid rgba(255,140,80,0.18);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: rgba(255,220,180,0.9);
}
.ls-tz-note {
  margin: 8px 4px 4px; font-size: 10px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,0.28);
}

.ls-switch { position: relative; width: 40px; height: 23px; flex-shrink: 0; }
.ls-switch input { opacity: 0; width: 0; height: 0; }
.ls-slider { position: absolute; inset: 0; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15); transition: background .2s; }
.ls-slider::before { content: ''; position: absolute; width: 17px; height: 17px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ls-switch input:checked + .ls-slider { background: linear-gradient(90deg, var(--sunset-b), var(--sunset-d)); border-color: transparent; }
.ls-switch input:checked + .ls-slider::before { transform: translateX(17px); }

.ls-select-native { display: none; }

.ls-cs { position: relative; flex-shrink: 0; }
.ls-cs-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-width: 132px; padding: 8px 10px; border-radius: 8px;
  background: rgba(255,140,80,0.07); color: #fff; font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 11.5px; letter-spacing: .04em;
  border: 1px solid rgba(255,140,80,0.22); cursor: pointer; transition: all .15s;
}
.ls-cs-trigger:hover { background: rgba(255,140,80,0.13); border-color: rgba(255,140,80,0.4); }
.ls-cs.open .ls-cs-trigger { border-color: rgba(255,179,71,0.6); background: rgba(255,140,80,0.16); }
.ls-cs-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-cs-arrow { font-size: 9px; color: rgba(255,179,71,0.85); flex-shrink: 0; transition: transform .15s; }
.ls-cs.open .ls-cs-arrow { transform: rotate(180deg); }
.ls-cs-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 100%; max-height: 220px; overflow-y: auto;
  background: #0d0326; border: 1px solid rgba(255,140,80,0.3); border-radius: 10px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.65); padding: 5px; z-index: 30;
  opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .12s, transform .12s;
  scrollbar-width: thin; scrollbar-color: rgba(255,140,80,0.25) transparent;
}
.ls-cs.open .ls-cs-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.ls-cs.open-up .ls-cs-menu { top: auto; bottom: calc(100% + 6px); }
.ls-cs-option {
  display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 7px;
  background: transparent; border: none; color: rgba(255,255,255,0.68);
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 11.5px; letter-spacing: .02em;
  cursor: pointer; white-space: nowrap; transition: all .12s;
}
.ls-cs-option:hover { background: rgba(255,140,80,0.14); color: #fff; }
.ls-cs-option.active { background: linear-gradient(90deg, color-mix(in srgb, var(--sunset-b) 24%, transparent), color-mix(in srgb, var(--sunset-d) 24%, transparent)); color: #fff; }

.ls-range { width: 120px; accent-color: var(--sunset-b); flex-shrink: 0; }

.ls-action-btn {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  font-size: 11px; padding: 8px 14px; border-radius: 8px; cursor: pointer; flex-shrink: 0;
  border: 1px solid rgba(255,140,80,0.28); background: rgba(255,140,80,0.08); color: rgba(255,220,180,0.85);
  transition: all .15s;
}
.ls-action-btn:hover { background: rgba(255,140,80,0.18); color: #fff; }
.ls-action-btn.danger { border-color: rgba(255,60,60,0.35); background: rgba(255,60,60,0.08); color: rgba(255,150,150,0.85); }
.ls-action-btn.danger:hover { background: rgba(255,60,60,0.2); color: #fff; }

.ls-footer { display: flex; align-items: center; gap: 10px; padding: 16px 24px 20px; border-top: 1px solid rgba(255,140,80,0.1); position: relative; }
.ls-btn {
  flex: 1; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase; font-size: 13px; padding: 11px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6);
  transition: all .15s;
}
.ls-btn:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.ls-btn-save { background: linear-gradient(90deg, var(--sunset-b), var(--sunset-d)); border-color: transparent; color: #04001a; }
.ls-btn-save:hover { filter: brightness(1.08); color: #04001a; }

.ls-toast {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--sunset-b, #ffb347); opacity: 0; transition: opacity .2s; white-space: nowrap; pointer-events: none;
}
.ls-toast.show { opacity: 1; }

.ls-debug { font-size: 9.5px; font-weight: 600; letter-spacing: .05em; color: rgba(255,255,255,0.22); padding: 0 24px 14px; font-family: monospace; }

/* ── RADIO TAB ─────────────────────────────────────── */
.ls-radio-now { display: flex; align-items: center; gap: 14px; padding: 12px 2px 18px; border-bottom: 1px solid rgba(255,140,80,0.1); margin-bottom: 6px; }
.ls-radio-eq { display: flex; align-items: flex-end; gap: 3px; width: 22px; height: 20px; flex-shrink: 0; }
.ls-radio-eq span { display: block; width: 4px; background: linear-gradient(180deg, var(--sunset-b), var(--sunset-d)); border-radius: 2px; height: 6px; opacity: .3; transition: opacity .2s; }
.ls-radio-eq.playing span { opacity: 1; animation: lsEq 0.9s ease-in-out infinite; }
.ls-radio-eq.playing span:nth-child(1) { animation-delay: 0s; }
.ls-radio-eq.playing span:nth-child(2) { animation-delay: 0.2s; }
.ls-radio-eq.playing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lsEq { 0%, 100% { height: 6px; } 50% { height: 18px; } }

/* track name + artist. Capped so a long title can't squeeze the
   progress bar out; it truncates with an ellipsis instead. */
.ls-radio-nowtext { flex: 0 1 auto; min-width: 0; max-width: 46%; }
.ls-radio-station {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 16px; text-transform: uppercase;
  letter-spacing: .04em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ls-radio-genre {
  font-size: 10px; font-weight: 600; letter-spacing: .08em; color: rgba(255,255,255,0.35); text-transform: uppercase; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ls-radio-playbtn {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--sunset-b), var(--sunset-d)); border: none; color: #04001a;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.ls-radio-playbtn:hover { transform: scale(1.08); }

/* ── RADIO PROGRESS BAR + TIME ──────────────────────
   Everything here reads the theme's --sunset-* variables, so the bar
   recolors itself with any preset or custom theme - same gradient as
   the play button, tabs and Save button. */
.ls-radio-progress { flex: 1 1 0; min-width: 90px; display: flex; align-items: center; gap: 10px; }
.ls-radio-bar {
  position: relative; flex: 1; min-width: 0; height: 20px; cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; outline: none;
}
.ls-radio-bar-track {
  position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--sunset-b, #ffb347) 16%, rgba(255,255,255,0.08));
  transition: height .15s, margin-top .15s;
}
.ls-radio-bar:hover .ls-radio-bar-track,
.ls-radio-bar.dragging .ls-radio-bar-track,
.ls-radio-bar:focus-visible .ls-radio-bar-track { height: 6px; margin-top: -3px; }
.ls-radio-bar-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--sunset-b, #ffb347), var(--sunset-d, #e8507a));
  clip-path: inset(0 100% 0 0);
  transition: clip-path .25s linear;
}
.ls-radio-bar-knob {
  position: absolute; top: 50%; left: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; background: #fff; pointer-events: none;
  box-shadow: 0 0 10px color-mix(in srgb, var(--sunset-b, #ffb347) 85%, transparent);
  opacity: 0; transition: opacity .15s, left .25s linear;
}
.ls-radio-bar:hover .ls-radio-bar-knob,
.ls-radio-bar.dragging .ls-radio-bar-knob,
.ls-radio-bar:focus-visible .ls-radio-bar-knob { opacity: 1; }
/* while dragging, follow the cursor instantly instead of easing */
.ls-radio-bar.dragging .ls-radio-bar-fill { transition: none; }
.ls-radio-bar.dragging .ls-radio-bar-knob { transition: opacity .15s; }
.ls-radio-time {
  flex-shrink: 0; display: flex; align-items: baseline; gap: 4px; white-space: nowrap;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 12.5px; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.ls-radio-cur { color: rgba(255,255,255,0.9); }
.ls-radio-sep, .ls-radio-dur { color: rgba(255,255,255,0.32); }

.ls-radio-tracklist { max-height: 190px; overflow-y: auto; padding: 10px 2px 4px; scrollbar-width: thin; scrollbar-color: rgba(255,140,80,0.25) transparent; }
.ls-radio-tracklist::-webkit-scrollbar { width: 5px; }
.ls-radio-tracklist::-webkit-scrollbar-thumb { background: rgba(255,140,80,0.25); border-radius: 4px; }
.ls-radio-empty { padding: 16px 12px; font-size: 11px; font-weight: 600; line-height: 1.6; color: rgba(255,255,255,0.35); background: rgba(255,140,80,0.05); border: 1px dashed rgba(255,140,80,0.2); border-radius: 10px; }
.ls-radio-empty b { color: rgba(255,220,180,0.75); font-weight: 700; }
.ls-track-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 9px; margin-bottom: 2px;
  background: transparent; border: 1px solid transparent; cursor: pointer; transition: all .15s;
}
.ls-track-item:hover { background: rgba(255,140,80,0.08); }
.ls-track-item.active { background: rgba(255,140,80,0.1); border-color: rgba(255,140,80,0.28); }
.ls-track-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,0.2); }
.ls-track-item.playing .ls-track-dot { background: var(--sunset-b); box-shadow: 0 0 8px color-mix(in srgb, var(--sunset-b) 80%, transparent); }
.ls-track-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ls-track-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 12.5px; letter-spacing: .02em; color: rgba(255,255,255,0.85); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-track-item.active .ls-track-title { color: #fff; }
.ls-track-artist { font-size: 9.5px; font-weight: 600; letter-spacing: .05em; color: rgba(255,255,255,0.32); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-track-playicon { flex-shrink: 0; font-size: 9px; color: rgba(255,255,255,0.25); opacity: 0; transition: opacity .15s; }
.ls-track-item:hover .ls-track-playicon, .ls-track-item.active .ls-track-playicon { opacity: 1; color: color-mix(in srgb, var(--sunset-b) 80%, transparent); }

@media (max-width: 640px) {
  #lsPanel { width: 94vw; height: 88vh; }
  .ls-side { width: 130px; padding: 16px 8px; }
  .ls-side-title { font-size: 17px; padding: 2px 8px 14px; }
  .ls-tab { font-size: 9.5px; padding: 9px 8px; }
  .ls-cs-trigger { font-size: 10.5px; min-width: 108px; }
}

/* narrow screens: keep just the elapsed time so the bar has room */
@media (max-width: 520px) {
  .ls-radio-sep, .ls-radio-dur { display: none; }
  .ls-radio-progress { gap: 8px; }
  .ls-radio-now { gap: 10px; }
}

@media (max-width: 420px) {
  #lsPanel { flex-direction: column; height: 90vh; }
  .ls-side {
    width: 100%; flex-direction: row; align-items: center; gap: 10px;
    border-right: none; border-bottom: 1px solid rgba(255,140,80,0.14);
    padding: 12px 14px; overflow-x: auto; overflow-y: visible;
  }
  .ls-side-title { padding: 0; flex-shrink: 0; }
  .ls-tabs { flex-direction: row; gap: 4px; }
  .ls-tab { white-space: nowrap; }
}

/* ── THEME TAB ─────────────────────────────────────── */
.ls-theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 2px 2px; }
.ls-swatch {
  position: relative; height: 52px; border-radius: 12px; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.08); overflow: hidden; transition: all .15s;
  display: flex; align-items: flex-end; padding: 6px 8px;
}
.ls-swatch:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }
.ls-swatch.active { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.15); }
.ls-swatch-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .03em; color: #04001a;
  background: rgba(255,255,255,0.75); padding: 2px 7px; border-radius: 5px;
}
.ls-swatch-custom { background: repeating-linear-gradient(45deg, #1a1a2e, #1a1a2e 8px, #24243e 8px, #24243e 16px); }
.ls-custom-colors { display: none; gap: 12px; padding: 16px 2px 4px; flex-wrap: wrap; }
.ls-custom-colors.show { display: flex; }
.ls-color-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ls-color-input {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer; background: none; padding: 0; overflow: hidden;
}
.ls-color-input::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
.ls-color-input::-webkit-color-swatch { border: none; border-radius: 50%; }
.ls-color-num { font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,0.35); letter-spacing: .04em; }

/* ── CURSOR GLOW (Effects tab) ─────────────────────── */
#lsCursorGlow {
  position: fixed; top: 0; left: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 50%; pointer-events: none; z-index: 99998; will-change: transform;
  background: radial-gradient(circle, var(--sunset-b, #ffb347) 0%, transparent 70%);
  opacity: 0.55; filter: blur(2px); display: none;
}
html.ls-cursorGlow #lsCursorGlow { display: block; }

/* ── SCANLINE OVERLAY (Effects tab) ────────────────── */
html.ls-scanlineOverlay body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 99997;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.14) 0px, rgba(0,0,0,0.14) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay; opacity: 0.5;
}

/* ── PAGE FADE-IN (Effects tab) ────────────────────── */
html.ls-pageFadeIn body { animation: lsPageFadeIn .5s ease; }
@keyframes lsPageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── AMBIENT RADIO PULSE (Effects tab) ─────────────── */
html.ls-ambientPulse.ls-radio-playing body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 50% 40%, var(--sunset-b, #ffb347) 0%, transparent 60%);
  opacity: 0.03; animation: lsAmbientPulse 2.6s ease-in-out infinite; mix-blend-mode: screen;
}
@keyframes lsAmbientPulse { 0%, 100% { opacity: 0.03; } 50% { opacity: 0.12; } }
