/* =========================================================================
   Nerdfest Radio — retro arcade / synthwave HUD
   <html data-theme="light|dark"> is set by an inline script in <head>.
   Dark  = night drive: indigo-black, neon cyan + hot pink, orange sparingly.
   Light = handheld console: warm off-white body, lavender panels, purple ink.
   ========================================================================= */

/* Horizon tint from the playing cover (animated between tracks). */
@property --amb-1 { syntax: '<color>'; inherits: true; initial-value: #ff2d6f; }

/* ---------- tokens: dark (default look; light overrides below) ---------- */
:root {
  color-scheme: dark;

  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --cyan: #22d3ee;
  --pink: #ff2d6f;
  --orange: #ff7a1a;
  --cyan-text: #22d3ee;          /* 10:1 on panels */
  --pink-text: #ff5c8f;          /* 6:1 on panels */
  --orange-text: #ff9a4d;

  --bg: #0d0718;
  --sky-top: #070310;
  --sky-mid: #160a2c;
  --text: #f1ebff;
  --text-2: #bdb2da;             /* ~8.5:1 */
  --text-3: #9488b4;             /* ~5.4:1 */
  --ink-on-accent: #0d0718;      /* text on cyan/pink fills */

  --panel: rgba(20, 10, 38, 0.74);
  --panel-strong: rgba(16, 8, 31, 0.88);
  --panel-solid: #150b27;
  --panel-raise: rgba(34, 211, 238, 0.06);
  --row-hover: rgba(34, 211, 238, 0.07);
  --row-current: rgba(255, 45, 111, 0.1);
  --line: rgba(34, 211, 238, 0.26);
  --line-soft: rgba(189, 178, 218, 0.12);
  --line-strong: rgba(34, 211, 238, 0.55);
  --hud: #22d3ee;
  --field: rgba(5, 2, 12, 0.55);
  --field-border: rgba(189, 178, 218, 0.24);
  --track: rgba(189, 178, 218, 0.2);

  --btn-bg: rgba(34, 211, 238, 0.06);
  --btn-border: rgba(34, 211, 238, 0.5);
  --btn-shadow: rgba(34, 211, 238, 0.35);
  --primary-bg: #22d3ee;
  --primary-shadow: #ff2d6f;
  --danger: #ff4d6d;
  --danger-text: #ff7b93;

  --grid: rgba(255, 45, 111, 0.6);
  --sun-core: rgba(255, 122, 26, 0.55);
  --sun-mid: rgba(255, 45, 111, 0.3);
  --scan: rgba(0, 0, 0, 0.13);
  --glow-cyan: 0 0 0 1px rgba(34, 211, 238, 0.6), 0 0 14px rgba(34, 211, 238, 0.45);
  --glow-pink: 0 0 0 1px rgba(255, 45, 111, 0.6), 0 0 16px rgba(255, 45, 111, 0.45);
  --ring: #22d3ee;
  --drop: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  --wave-rest: rgba(189, 178, 218, 0.34);
  --wave-buf: rgba(189, 178, 218, 0.55);
  --wave-head: #ffffff;

  --blur: 8px;
  --r: 6px;
  --r-sm: 4px;
  --r-lg: 8px;
  --gutter: 24px;
  --maxw: 1180px;
  --player-h: 84px;

  transition: --amb-1 1.4s ease;
}

/* ---------- tokens: light ("handheld console") ---------- */
:root[data-theme="light"] {
  color-scheme: light;

  --cyan: #0891b2;
  --pink: #e0195a;
  --cyan-text: #0a5f75;          /* 6.6:1 on lavender */
  --pink-text: #b0124a;          /* 6.1:1 */
  --orange-text: #a54400;

  --bg: #f4f1e8;
  --sky-top: #f4f1e8;
  --sky-mid: #ece6f4;
  --text: #2a1446;               /* 12:1 */
  --text-2: #4b3868;             /* 8:1 */
  --text-3: #66558a;             /* 5.2:1 */
  --ink-on-accent: #2a1446;

  --panel: rgba(236, 230, 248, 0.82);
  --panel-strong: rgba(240, 235, 251, 0.94);
  --panel-solid: #ece6f8;
  --panel-raise: rgba(42, 20, 70, 0.04);
  --row-hover: rgba(42, 20, 70, 0.05);
  --row-current: rgba(224, 25, 90, 0.08);
  --line: rgba(42, 20, 70, 0.22);
  --line-soft: rgba(42, 20, 70, 0.1);
  --line-strong: rgba(42, 20, 70, 0.5);
  --hud: #2a1446;
  --field: rgba(255, 255, 255, 0.75);
  --field-border: rgba(42, 20, 70, 0.28);
  --track: rgba(42, 20, 70, 0.16);

  --btn-bg: #f7f4fc;
  --btn-border: #2a1446;
  --btn-shadow: #2a1446;
  --primary-bg: #22d3ee;
  --primary-shadow: #2a1446;
  --danger: #c8102e;
  --danger-text: #a50d26;

  --grid: rgba(122, 92, 190, 0.42);
  --sun-core: rgba(255, 122, 26, 0.3);
  --sun-mid: rgba(255, 45, 111, 0.16);
  --scan: rgba(42, 20, 70, 0.05);
  --glow-cyan: 0 0 0 1px #0891b2, 0 0 0 4px rgba(8, 145, 178, 0.2);
  --glow-pink: 0 0 0 1px #e0195a, 0 0 0 4px rgba(224, 25, 90, 0.18);
  --ring: #0a5f75;
  --drop: 0 14px 30px -18px rgba(42, 20, 70, 0.45);
  --wave-rest: rgba(42, 20, 70, 0.26);
  --wave-buf: rgba(42, 20, 70, 0.42);
  --wave-head: #2a1446;
}

@media (max-width: 719px) {
  :root { --gutter: 16px; --player-h: 108px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.has-player .wrap { padding-bottom: calc(var(--player-h) + 44px + env(safe-area-inset-bottom, 0px)); }

button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
h2 { font-size: 1.1rem; font-weight: 800; }
a { color: inherit; }
::selection { background: var(--pink); color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 60; padding: 8px 14px;
  background: var(--primary-bg); color: var(--ink-on-accent); font: 700 0.8rem var(--mono);
  text-transform: uppercase; letter-spacing: 0.08em; border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* HUD label type: monospace, uppercase, tracked out */
.mono, .p-label, .tab, .badge, .tag, .eyebrow, .row-num, .row-meta, .time, .status, .btn, .chip,
.hero-meta, .pl-label, .menu-head, dialog label > span:first-child, .vis-seg legend, .more summary, .slug-status {
  font-family: var(--mono);
}

.ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter;
}
.ico .fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- synthwave backdrop ---------- */
.synth {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-mid) 58%, var(--bg) 100%);
}
/* Horizon glow: a thin band (tinted by the playing cover) rather than a blob. */
.synth::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 34vh; height: 18vh; transform: translateY(50%);
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--amb-1) 22%, transparent) 50%, transparent);
}
/* Striped retro sun sitting on the horizon. */
.sun {
  position: absolute; left: 50%; bottom: 34vh; width: min(38vmin, 340px); aspect-ratio: 1;
  transform: translate(-50%, 18%);
  border-radius: 50%;
  background: linear-gradient(to bottom, #ffd23f 0%, var(--orange) 38%, var(--pink) 72%, #b0127a 100%);
  opacity: var(--sun-opacity, 0.85);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 48%, transparent 48%), repeating-linear-gradient(to bottom, transparent 0 5px, #000 5px 14px);
  mask-image: linear-gradient(to bottom, #000 0 48%, transparent 48%), repeating-linear-gradient(to bottom, transparent 0 5px, #000 5px 14px);
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--pink) 55%, transparent));
}
:root[data-theme="light"] .sun { --sun-opacity: 0.55; filter: none; }
.floor-wrap {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; overflow: hidden;
  perspective: 220px; perspective-origin: 50% 0%;
  background: linear-gradient(to bottom, var(--sky-mid), var(--bg)); /* floor hides the lower half of the sun */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, #000 40%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, #000 40%);
}
.floor-wrap::before { /* horizon line */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--grid) 20%, var(--grid) 80%, transparent);
}
.floor {
  position: absolute; left: -100%; right: -100%; top: -48px; height: 240%;
  transform-origin: 50% 0;
  transform: rotateX(72deg) translate3d(0, 0, 0);
  background-image:
    linear-gradient(to bottom, var(--grid) 1.5px, transparent 1.5px),
    linear-gradient(to right, var(--grid) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  animation: grid-roll 0.9s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}
body.is-playing .floor { animation-play-state: running; }
@keyframes grid-roll {
  from { transform: rotateX(72deg) translate3d(0, 0, 0); }
  to   { transform: rotateX(72deg) translate3d(0, 40px, 0); }
}
.scanlines {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--scan) 0 1px, transparent 1px 3px);
}

/* ---------- panels: hard-edged glass ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--drop);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
}
.panel-strong { background: var(--panel-strong); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel, .panel-strong { background: var(--panel-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .panel, .panel-strong { background: var(--panel-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* HUD corner brackets: four L-ticks drawn with background gradients on one pseudo-element. */
.hud::before {
  content: ''; position: absolute; inset: -1px; pointer-events: none; border-radius: inherit; z-index: 1;
  --t: 2px; --l: 12px;
  background:
    linear-gradient(var(--hud), var(--hud)) top left / var(--l) var(--t),
    linear-gradient(var(--hud), var(--hud)) top left / var(--t) var(--l),
    linear-gradient(var(--hud), var(--hud)) top right / var(--l) var(--t),
    linear-gradient(var(--hud), var(--hud)) top right / var(--t) var(--l),
    linear-gradient(var(--hud), var(--hud)) bottom left / var(--l) var(--t),
    linear-gradient(var(--hud), var(--hud)) bottom left / var(--t) var(--l),
    linear-gradient(var(--hud), var(--hud)) bottom right / var(--l) var(--t),
    linear-gradient(var(--hud), var(--hud)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
}

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 10px; z-index: 10;
  display: flex; align-items: center; gap: 14px;
  width: calc(100% - 2 * var(--gutter)); max-width: var(--maxw);
  margin: 10px auto 0; padding: 8px 10px;
}
.brand {
  display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto;
  text-decoration: none; border-radius: var(--r-sm);
  font: 800 0.95rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
}
.brand #site-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { flex: none; width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand:hover .logo { filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.7)); }

.search-wrap { position: relative; flex: 1 1 auto; min-width: 0; max-width: 460px; margin: 0 auto; }
.search-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search {
  width: 100%; height: 38px; padding: 0 12px 0 36px; border-radius: var(--r-sm);
  background: var(--field); border: 1px solid var(--field-border); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search::placeholder { color: var(--text-3); opacity: 1; font-family: var(--mono); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }
.search:focus { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

/* 3-position hardware switch */
.seg {
  position: relative; display: inline-flex; flex: none; margin: 0; padding: 3px; min-width: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--field);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
  --i: 0;
}
.seg label { position: relative; z-index: 1; display: block; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-btn {
  display: grid; place-items: center; width: 32px; height: 28px; border-radius: 2px;
  color: var(--text-3); transition: color 0.15s;
}
.seg-btn .ico { width: 16px; height: 16px; }
.seg label:hover .seg-btn { color: var(--text); }
.seg input:checked + .seg-btn { color: var(--ink-on-accent); }
.seg input:focus-visible + .seg-btn { outline: 2px solid var(--ring); outline-offset: 1px; }
.seg-knob {
  position: absolute; z-index: 0; top: 3px; left: 3px; width: 32px; height: 28px; border-radius: 2px;
  background: var(--primary-bg);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateX(calc(var(--i) * 32px));
  transition: transform 0.18s steps(3, end);
}
.seg:has(input[value="auto"]:checked) { --i: 1; }
.seg:has(input[value="dark"]:checked) { --i: 2; }
@supports not selector(:has(*)) {
  .seg-knob { display: none; }
  .seg input:checked + .seg-btn { background: var(--primary-bg); }
}

.actions { display: flex; gap: 8px; flex: none; }

/* ---------- buttons: flat, chunky, hard pixel shadow ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  color: var(--text); background: var(--btn-bg); border: 1px solid var(--btn-border);
  box-shadow: 3px 3px 0 var(--btn-shadow);
  transition: transform 0.06s, box-shadow 0.06s, background-color 0.12s, color 0.12s;
}
.btn .ico { width: 16px; height: 16px; }
.btn:hover { background: var(--row-hover); border-color: var(--cyan); }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--btn-shadow); }
.btn.primary { background: var(--primary-bg); color: var(--ink-on-accent); border-color: var(--primary-bg); box-shadow: 3px 3px 0 var(--primary-shadow); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.primary:active:not(:disabled) { box-shadow: 0 0 0 var(--primary-shadow); }
.btn.danger { color: var(--danger-text); border-color: var(--danger); box-shadow: 3px 3px 0 color-mix(in srgb, var(--danger) 55%, transparent); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible { outline: none; box-shadow: 3px 3px 0 var(--btn-shadow), var(--glow-cyan); }
.btn.primary:focus-visible { box-shadow: 3px 3px 0 var(--primary-shadow), var(--glow-cyan); }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0; border-radius: var(--r-sm); cursor: pointer;
  background: transparent; border: 0; color: var(--text);
  transition: background-color 0.12s, color 0.12s, transform 0.06s;
}
.icon-btn:hover { background: var(--row-hover); color: var(--cyan-text); }
.icon-btn:active:not(:disabled) { transform: translateY(1px); }
.icon-btn:disabled { opacity: 0.35; cursor: default; background: transparent; color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.icon-btn svg.ico { width: 18px; height: 18px; fill: none; }
.icon-btn .wave { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.icon-btn.big {
  width: 46px; height: 46px; color: var(--ink-on-accent); background: var(--primary-bg);
  border: 1px solid var(--primary-bg); box-shadow: 3px 3px 0 var(--primary-shadow);
}
.icon-btn.big:hover { color: var(--ink-on-accent); background: var(--primary-bg); filter: brightness(1.08); }
.icon-btn.big:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--primary-shadow); }
.icon-btn.big.on { box-shadow: 3px 3px 0 var(--primary-shadow), 0 0 18px rgba(34, 211, 238, 0.55); }
.icon-btn .i-pause, .icon-btn .i-mute { display: none; }
.icon-btn.on .i-pause, .icon-btn.on .i-mute { display: block; }
.icon-btn.on .i-play, .icon-btn.on .i-vol { display: none; }

.icon-btn.sm { width: 32px; height: 32px; color: var(--text-2); border: 1px solid transparent; }
.icon-btn.sm svg.ico { width: 16px; height: 16px; }
.icon-btn.sm:hover { color: var(--cyan-text); border-color: var(--line); }
.icon-btn.sm.danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 26px var(--gutter) 48px; outline: none; }
.lib-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; }
.lib-head #new-pl-btn { margin-left: auto; }
.status { margin: 0; color: var(--text-3); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; min-height: 1.5em; }

/* Tabs: big HUD labels with a pixel underline */
.tabs { display: flex; gap: 4px; }
.tab {
  position: relative; padding: 6px 12px 10px; text-decoration: none;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.3rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3); border-radius: var(--r-sm);
}
.tab::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 4px;
  background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 6px);
  opacity: 0; transform: scaleX(0.4); transform-origin: left; transition: transform 0.2s steps(4), opacity 0.1s;
}
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { color: var(--pink-text); }
.tab[aria-current="page"]::after { opacity: 1; transform: none; }
:root:not([data-theme="light"]) .tab[aria-current="page"] { text-shadow: 0 0 12px rgba(255, 45, 111, 0.55); }

/* Genre chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip {
  height: 28px; padding: 0 10px; border-radius: var(--r-sm); cursor: pointer;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--field); color: var(--text-2); border: 1px dashed var(--field-border);
  transition: color 0.12s, border-color 0.12s, background-color 0.12s;
}
.chip:hover { color: var(--text); border-color: var(--cyan); }
.chip[aria-pressed="true"] { color: var(--ink-on-accent); background: var(--cyan); border: 1px solid var(--cyan); }

/* ---------- badges & tags ---------- */
.badge, .tag {
  display: inline-flex; align-items: center; gap: 4px; flex: none; vertical-align: middle;
  height: 20px; padding: 0 6px; border-radius: 2px;
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1; white-space: nowrap;
}
.badge .ico, .tag .ico { width: 11px; height: 11px; stroke-width: 2.5; }
.badge { color: var(--pink-text); border: 1px solid currentColor; }
.badge.sched { color: var(--orange-text); }
.tag { color: var(--cyan-text); background: color-mix(in srgb, var(--cyan) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent); }

/* ---------- tracklist (home + playlist page) ---------- */
.tracklist-panel { padding: 6px; }
.tracklist { list-style: none; margin: 0; padding: 0; }
.row {
  position: relative;
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 40px 48px minmax(0, 1fr) auto auto;
  padding: 6px 8px; border-radius: var(--r-sm);
  transition: background-color 0.1s;
}
.row + .row::after { /* dashed separator */
  content: ''; position: absolute; left: 8px; right: 8px; top: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-soft) 0 6px, transparent 6px 10px);
}
.row:hover, .row:focus-within { background: var(--row-hover); }
.row.current { background: var(--row-current); }
.row.current::before { /* playing marker */
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--pink);
}
:root:not([data-theme="light"]) .row.current::before { box-shadow: 0 0 10px var(--pink); }

.row-play {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; color: var(--text);
}
.row-play svg { width: 20px; height: 20px; fill: currentColor; }
.row-num { font-size: 0.85rem; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.row-play .i-play, .row-play .i-pause, .row-play .eq { display: none; }
.row:hover .row-play .row-num, .row-play:focus-visible .row-num, .row.current .row-play .row-num { display: none; }
.row:hover .row-play .i-play, .row-play:focus-visible .i-play, .row.current:not(.playing) .row-play .i-play { display: block; }
.row.current .row-play { color: var(--pink-text); }
.row.playing .row-play .i-play { display: none !important; }
.row.playing .row-play .eq { display: flex; }
.row.playing:hover .row-play .eq, .row.playing .row-play:focus-visible .eq { display: none; }
.row.playing:hover .row-play .i-pause, .row.playing .row-play:focus-visible .i-pause { display: block; }

.row-cover {
  width: 48px; height: 48px; border-radius: var(--r-sm); overflow: hidden; flex: none;
  border: 1px solid var(--line-soft); background: var(--field);
}
.cover { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: auto; }
.cover.ph {
  display: grid; place-items: center; color: rgba(255, 255, 255, 0.95);
  font: 800 1.2rem var(--mono); text-transform: uppercase; user-select: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.row-main { min-width: 0; }
.row-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.b-short { display: none; }
.row-title {
  flex: 0 1 auto; min-width: 5em; font-weight: 650; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-radius: 2px;
}
.row-title:hover { color: var(--cyan-text); text-decoration: underline; text-underline-offset: 3px; }
.row.current .row-title { color: var(--pink-text); }
.row-sub { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 2px; }
.row-artist { min-width: 0; color: var(--text-2); font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { color: var(--text-3); font-size: 0.75rem; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; white-space: nowrap; }
.row-actions { display: flex; align-items: center; gap: 2px; }
.drag-handle { cursor: grab; color: var(--text-3); }
.drag-handle:active { cursor: grabbing; }
.row.dragging { opacity: 0.45; background: var(--row-hover); outline: 1px dashed var(--cyan); }

/* Pixel equalizer (stepped, blocky) */
.eq { align-items: flex-end; justify-content: center; gap: 2px; width: 20px; height: 16px; }
.eq i {
  display: block; width: 4px; height: 100%;
  background: repeating-linear-gradient(to top, currentColor 0 3px, transparent 3px 4px);
  background-position: bottom;
  animation: eq 0.9s steps(4, end) infinite alternate;
}
.eq i:nth-child(1) { animation-duration: 0.7s; animation-delay: -0.3s; }
.eq i:nth-child(2) { animation-duration: 0.5s; animation-delay: -0.1s; }
.eq i:nth-child(3) { animation-duration: 0.8s; animation-delay: -0.5s; }
.eq i:nth-child(4) { animation-duration: 0.6s; animation-delay: -0.2s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }

.empty-row { padding: 28px 16px; text-align: center; color: var(--text-2); }
.empty-row b { display: block; font: 800 0.85rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: 4px; }

/* Skeleton rows */
.row.skeleton { pointer-events: none; }
.sk { border-radius: 2px; background: var(--line-soft); animation: blink 1.1s steps(2, end) infinite; }
.sk.cover-sk { width: 48px; height: 48px; }
.sk.line { height: 10px; width: 60%; }
.sk.line.short { width: 35%; margin-top: 8px; }
@keyframes blink { 50% { opacity: 0.45; } }

/* ---------- playlists: cartridge tiles ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pl-card { position: relative; display: flex; flex-direction: column; padding: 10px 10px 12px; }
.pl-card:hover { border-color: var(--line-strong); }
.pl-card.current { border-color: var(--pink); box-shadow: var(--glow-pink); }
.mosaic {
  position: relative; display: grid; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--r-sm); background: var(--field); border: 1px solid var(--line-soft);
}
.mosaic.m4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic .cover.ph { font-size: 2.2rem; }
.mosaic-empty {
  display: grid; place-items: center; color: var(--cyan-text);
  background:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--cyan) 10%, transparent) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--cyan) 10%, transparent) 0 1px, transparent 1px 12px);
}
.mosaic-empty .ico { width: 40%; height: 40%; stroke-width: 1.5; }
.tile-play {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  color: var(--ink-on-accent); background: var(--primary-bg); border: 1px solid var(--primary-bg); border-radius: var(--r-sm);
  box-shadow: 3px 3px 0 var(--primary-shadow);
  opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s steps(2);
}
.tile-play svg { width: 22px; height: 22px; fill: currentColor; }
.tile-play .i-pause { display: none; }
.pl-card.playing .tile-play .i-pause { display: block; }
.pl-card.playing .tile-play .i-play { display: none; }
.pl-card:hover .tile-play, .tile-play:focus-visible, .pl-card.current .tile-play { opacity: 1; transform: none; }
.tile-play:active { transform: translate(3px, 3px) !important; box-shadow: 0 0 0 var(--primary-shadow); }
@media (hover: none) { .tile-play { opacity: 1; transform: none; } }
.pl-label { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.pl-title {
  display: block; margin-top: 4px; font-weight: 750; font-size: 1rem; line-height: 1.3; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 2px;
}
.pl-title::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* whole tile clickable */
.pl-title:hover { color: var(--cyan-text); }
.pl-desc { margin-top: 4px; color: var(--text-2); font-size: 0.85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* ---------- detail pages (track / playlist) ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 4px 6px 4px 2px;
  font: 700 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; color: var(--text-2);
  border-radius: var(--r-sm);
}
.back-link:hover { color: var(--cyan-text); }
.back-link .ico { width: 16px; height: 16px; }

/* Hero card (track page, playlist page, now-playing view).
   Tinted from the artwork: JS sets --tint-h / --tint-s on the card. */
.hero-card {
  --tint-h: 330; --tint-s: 80%;
  --tint: hsl(var(--tint-h) var(--tint-s) 30%);
  --tint-glow: hsl(var(--tint-h) var(--tint-s) 58%);
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 26vw, 300px); gap: 26px; align-items: stretch;
  padding: 22px; margin-bottom: 22px; overflow: hidden;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--tint) 55%, var(--panel-solid)) 0%, color-mix(in srgb, var(--tint) 18%, var(--panel-solid)) 55%, var(--panel-solid) 100%);
  border-color: color-mix(in srgb, var(--tint-glow) 45%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tint-glow) 12%, transparent), 0 0 40px -12px color-mix(in srgb, var(--tint-glow) 45%, transparent), var(--drop);
  transition: background-color 0.4s;
}
:root[data-theme="light"] .hero-card {
  --tint: hsl(var(--tint-h) var(--tint-s) 82%);
  --tint-glow: hsl(var(--tint-h) var(--tint-s) 45%);
}
.hero-card::after { /* scanlines inside the card */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; border-radius: inherit;
  background: repeating-linear-gradient(to bottom, var(--scan) 0 1px, transparent 1px 3px);
}
.hero-card > * { position: relative; z-index: 1; }
/* Live spectrum: confined to a clipped zone (waveform area / title area), never the whole card. */
.viz-zone { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; }
.hero-viz { display: block; width: 100%; height: 100%; opacity: 0.16; }
.hc-top .viz-zone { -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.hero-skel { min-height: 280px; display: block; animation: blink 1.1s steps(2, end) infinite; }

.hc-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hc-top { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.hc-top > :not(.viz-zone) { position: relative; z-index: 1; }
.hc-play {
  display: grid; place-items: center; width: 64px; height: 64px; padding: 0; cursor: pointer; flex: none;
  color: var(--ink-on-accent); background: var(--primary-bg); border: 2px solid var(--primary-bg); border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--primary-shadow);
  transition: transform 0.06s, box-shadow 0.06s, filter 0.12s;
}
.hc-play svg { width: 30px; height: 30px; fill: currentColor; }
.hc-play .i-pause { display: none; }
.hc-play.on .i-pause { display: block; }
.hc-play.on .i-play { display: none; }
.hc-play:hover { filter: brightness(1.08); }
.hc-play:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--primary-shadow); }
.hc-play.on { box-shadow: 4px 4px 0 var(--primary-shadow), 0 0 22px rgba(34, 211, 238, 0.5); }
.hc-play:focus-visible { outline: none; box-shadow: 4px 4px 0 var(--primary-shadow), var(--glow-cyan); }
.hc-titles { min-width: 0; display: grid; gap: 6px; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cyan-text); }
.hc-eq { display: none; color: var(--pink-text); }
.hero-card.playing .hc-eq { display: inline-flex; }
.hero-card.playing .hc-eq .eq { display: flex; }
.hc-title { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem); font-weight: 850; line-height: 1.08; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.hc-title a { text-decoration: none; }
.hc-title a:hover { color: var(--cyan-text); }
.hc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--text-2); font-size: 0.9rem; }
.hc-meta > * + *:not(.badge):not(.tag):not(.fmt)::before { content: '·'; margin-right: 10px; color: var(--text-3); }
.hc-artist { font-weight: 650; color: var(--text); }
.fmt { font: 700 0.64rem var(--mono); letter-spacing: 0.12em; padding: 3px 5px; border-radius: 2px; color: var(--text); background: color-mix(in srgb, var(--text) 12%, transparent); border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); }
.hc-lock { display: grid; place-items: center; width: 32px; height: 32px; color: var(--pink-text); border: 1px solid currentColor; border-radius: var(--r-sm); }
.hc-lock .ico { width: 16px; height: 16px; }
.hc-desc { margin: 0; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Waveform + a right-hand gutter for the stacked times (elapsed over total, straddling the baseline). */
.hc-wave {
  --wave-h: 120px;
  position: relative; margin-top: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 8px; align-items: start;
}
.hc-wave .viz-zone { right: 60px; }
.hc-wave > .wave { position: relative; z-index: 1; height: var(--wave-h); }
.wave-times {
  position: relative; z-index: 1; pointer-events: none;
  margin-top: calc(var(--wave-h) / 1.35 - 21px);
  display: grid; justify-items: start; gap: 4px; font: 700 0.72rem/1 var(--mono); font-variant-numeric: tabular-nums;
}
.wave-times span { padding: 2px 0; }
.wave-times .t-cur { color: var(--text); }
.wave-times .t-dur { color: var(--text-3); }

.hc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hc-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; cursor: pointer;
  color: var(--text); background: color-mix(in srgb, var(--panel-solid) 60%, transparent);
  border: 1px solid var(--btn-border); border-radius: var(--r);
  box-shadow: 2px 2px 0 var(--btn-shadow);
  transition: transform 0.06s, box-shadow 0.06s, color 0.12s, border-color 0.12s;
}
.hc-btn .ico { width: 18px; height: 18px; }
.hc-btn:hover { color: var(--cyan-text); border-color: var(--cyan); }
.hc-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--btn-shadow); }
.hc-btn:focus-visible { outline: none; box-shadow: 2px 2px 0 var(--btn-shadow), var(--glow-cyan); }
.hc-size { margin-left: auto; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

.hc-art { position: relative; align-self: center; aspect-ratio: 1; width: 100%; border-radius: var(--r); overflow: visible; }
.hc-art > .cover, .hc-art > .mosaic {
  width: 100%; height: 100%; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 0 0 1px var(--tint-glow), 0 0 28px -4px color-mix(in srgb, var(--tint-glow) 65%, transparent);
}
.hc-art .cover.ph { font-size: 4.5rem; }
.hc-art.hud::before { inset: -7px; --l: 16px; --hud: var(--tint-glow); }

.desc-block { padding: 18px 20px; margin-bottom: 22px; }
.hero-desc { margin: 0; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 75ch; }
.pl-art { position: relative; }

.btn.roll .d20 { transition: none; }
.btn.roll.rolling .d20 { animation: roll 0.6s steps(8, end); }
@keyframes roll { from { transform: rotate(0); } to { transform: rotate(720deg); } }

.section-label { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 800 0.8rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-2); }
.section-label::after { content: ''; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }


/* Not found */
.notice { max-width: 460px; margin: 8vh auto 0; padding: 32px 28px; text-align: center; }
.notice h1 { font: 800 1.3rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.notice p { color: var(--text-2); margin: 8px 0 22px; }
.notice-badge { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; color: var(--pink-text); border: 2px solid currentColor; border-radius: var(--r-sm); }
.notice-badge .ico { width: 26px; height: 26px; }

/* ---------- player ---------- */
.player {
  position: fixed; z-index: 20;
  left: var(--gutter); right: var(--gutter); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center; gap: 18px;
  min-height: var(--player-h); padding: 10px 16px 10px 10px;
  animation: rise 0.25s steps(5, end);
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.p-now { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-now > :not(.p-viz) { position: relative; z-index: 1; }
.p-cover { flex: none; width: 60px; height: 60px; padding: 0; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--field); cursor: zoom-in; }
.p-cover:hover { border-color: var(--cyan); }
.p-meta { min-width: 0; flex: 1; }
.p-label { display: flex; align-items: center; gap: 6px; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cyan-text); }
.live-dot { width: 6px; height: 6px; background: var(--text-3); }
body.is-playing .live-dot { background: var(--pink); animation: blink 1s steps(2, end) infinite; }
:root:not([data-theme="light"]) body.is-playing .live-dot { box-shadow: 0 0 6px var(--pink); }
.marquee { overflow: hidden; white-space: nowrap; margin-top: 2px; }
.p-title { display: inline-block; font-weight: 700; text-decoration: none; border-radius: 2px; }
.p-title:hover { color: var(--cyan-text); }
.marquee:not(.scroll) .p-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.marquee.scroll .p-title { animation: marquee var(--marquee-t, 8s) linear infinite alternate; }
@keyframes marquee { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(calc(-1 * var(--marquee-d, 0px))); } }
.p-artist { color: var(--text-2); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-center { display: grid; gap: 4px; min-width: 0; }
.p-controls { display: flex; justify-content: center; align-items: center; gap: 14px; }
.p-seek { display: flex; align-items: center; gap: 10px; }
.time { font-size: 0.72rem; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 3.6em; text-align: center; letter-spacing: 0.04em; }
.p-side { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.p-side .range { width: 96px; flex: none; }
.p-viz { position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; height: 70%; opacity: 0.22; pointer-events: none; z-index: 0; }

/* Toggles (shuffle / repeat / cast) */
.on-toggle { color: var(--cyan-text) !important; }
.on-toggle::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; background: currentColor; }
.rep-one { display: none; position: absolute; top: 5px; right: 5px; font: 800 0.55rem/1 var(--mono); }
[data-mode="one"] .rep-one { display: block; }

/* Volume icon reflects level */
[data-level] .i-vol-high, [data-level] .i-vol-low, [data-level] .i-mute { display: none; }
[data-level="high"] .i-vol-high, [data-level="low"] .i-vol-low, [data-level="mute"] .i-mute { display: block; }
.wave-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }

/* Waveform style toggle */
#p-wavestyle .i-line, #p-wavestyle[data-style="line"] .i-bars { display: none; }
#p-wavestyle[data-style="line"] .i-line { display: block; }

/* ---------- waveform component ---------- */
.wave { position: relative; flex: 1; min-width: 0; cursor: pointer; touch-action: none; border-radius: 2px; user-select: none; -webkit-user-select: none; }
.wave canvas { display: block; width: 100%; height: 100%; }
.wave-sm { height: 40px; }
.wave-lg { height: 120px; }
#p-wave { height: 40px; }
.wave:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.wave-tip, .wave-head {
  position: absolute; top: -4px; transform: translate(-50%, -100%); z-index: 3; pointer-events: none;
  padding: 3px 6px; border-radius: 2px; white-space: nowrap;
  font: 700 0.68rem/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.wave-tip { color: var(--ink-on-accent); background: var(--cyan); }
.wave-head { top: 0; transform: translate(-50%, -60%); color: #fff; background: var(--pink); }
:root:not([data-theme="light"]) .wave-head { box-shadow: 0 0 10px rgba(255, 45, 111, 0.6); }
.wave-tip:not([hidden]) ~ .wave-head { visibility: hidden; }

/* ---------- range inputs ---------- */
.range {
  --p: 0%; --fill: var(--cyan);
  flex: 1; min-width: 0; height: 22px; margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.range.muted { --fill: var(--text-3); }
.range:focus-visible { outline: none; }
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 0;
  background: linear-gradient(to right, var(--fill) 0 var(--p), var(--track) var(--p) 100%);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 16px; margin-top: -5px; border-radius: 1px; border: 2px solid var(--ink-on-accent);
  background: var(--pink); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.range:hover::-webkit-slider-thumb { background: var(--orange); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: var(--glow-cyan); }
.range::-moz-range-track { height: 6px; border-radius: 0; background: var(--track); border: 0; }
.range::-moz-range-progress { height: 6px; border-radius: 0; background: var(--fill); }
.range::-moz-range-thumb {
  width: 8px; height: 12px; border-radius: 1px; border: 2px solid var(--ink-on-accent);
  background: var(--pink); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.range:hover::-moz-range-thumb { background: var(--orange); }
.range:focus-visible::-moz-range-thumb { box-shadow: var(--glow-cyan); }

/* ---------- popover menu ---------- */
.menu {
  position: fixed; z-index: 45; min-width: 220px; max-width: min(320px, calc(100vw - 24px));
  max-height: min(420px, calc(100dvh - 24px)); overflow: auto; padding: 6px;
}
.menu-head { padding: 6px 10px 4px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r-sm);
  background: transparent; text-align: left; cursor: pointer; font-size: 0.9rem;
}
.menu-item .ico { width: 16px; height: 16px; color: var(--text-3); }
.menu-item span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item:hover, .menu-item:focus-visible { background: var(--row-hover); color: var(--cyan-text); outline: none; }
.menu-item:hover .ico, .menu-item:focus-visible .ico { color: currentColor; }
.menu-item.danger { color: var(--danger-text); }
.menu-item.danger:hover, .menu-item.danger:focus-visible { background: var(--danger); color: #fff; }
.menu-item:disabled { opacity: 0.5; cursor: default; }
.menu-sep { height: 1px; margin: 6px 4px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.menu-note { padding: 8px 10px; color: var(--text-3); font-size: 0.85rem; }

/* ---------- dialogs ---------- */
dialog {
  width: min(520px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 22px; color: var(--text);
}
dialog[open] { animation: dlg-in 0.18s steps(4, end); }
dialog::backdrop { background: rgba(8, 3, 16, 0.6); }
:root[data-theme="light"] dialog::backdrop { background: rgba(42, 20, 70, 0.35); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
dialog form { display: grid; gap: 14px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.dlg-head h2 { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem; }
[data-track-fields] { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
dialog label { display: grid; gap: 6px; min-width: 0; }
dialog label > span:first-child, dialog label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); }
dialog label { font-family: var(--mono); }
dialog input[type=text], dialog input[type=password], dialog input[type=datetime-local], dialog textarea {
  width: 100%; padding: 9px 11px; border-radius: var(--r-sm);
  font: 400 0.95rem var(--sans); text-transform: none; letter-spacing: normal; color: var(--text);
  background: var(--field); border: 1px solid var(--field-border); outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
dialog input[type=datetime-local] { font-family: var(--mono); font-size: 0.85rem; }
dialog input:focus, dialog textarea:focus { border-color: var(--cyan); box-shadow: var(--glow-cyan); outline: none; }
dialog input:disabled { opacity: 0.5; }
dialog textarea { resize: vertical; min-height: 72px; }
dialog input[type=file] {
  max-width: 100%; font: 400 0.82rem var(--sans); text-transform: none; letter-spacing: normal; color: var(--text-2);
  padding: 6px; border-radius: var(--r-sm); border: 1px dashed var(--field-border); background: var(--field);
}
dialog input[type=file]::file-selector-button {
  margin-right: 10px; padding: 6px 10px; border-radius: 2px; cursor: pointer;
  font: 700 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text);
  background: var(--btn-bg); border: 1px solid var(--btn-border);
}
.hint { color: var(--text-3); font: 400 0.8rem var(--sans); text-transform: none; letter-spacing: normal; margin: 0; }
dialog label .hint { font-size: 0.72rem; }
.error { color: var(--danger-text); margin: 0; font-size: 0.88rem; font-weight: 600; overflow-wrap: anywhere; }
.error:empty { display: none; }
progress {
  width: 100%; height: 10px; border: 1px solid var(--line); border-radius: 0; overflow: hidden;
  -webkit-appearance: none; appearance: none; background: var(--field); color: var(--cyan);
}
progress::-webkit-progress-bar { background: var(--field); }
progress::-webkit-progress-value { background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 10px); }
progress::-moz-progress-bar { background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 10px); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }

/* Public / Private selector */
.vis-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.vis-seg legend { padding: 0; margin-bottom: 6px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); }
.vis-seg label { position: relative; display: block; cursor: pointer; text-transform: none; letter-spacing: normal; }
.vis-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vis-opt {
  display: flex; align-items: flex-start; gap: 10px; height: 100%; padding: 10px 12px;
  border: 1px solid var(--field-border); border-radius: var(--r-sm); background: var(--field); color: var(--text-2);
  transition: border-color 0.12s, background-color 0.12s, color 0.12s;
}
.vis-opt .ico { margin-top: 2px; }
.vis-opt b { display: block; font: 800 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); }
.vis-opt small { display: block; font: 400 0.8rem var(--sans); color: var(--text-3); margin-top: 2px; }
.vis-seg label:hover .vis-opt { border-color: var(--cyan); }
.vis-seg input:checked + .vis-opt { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, transparent); color: var(--cyan-text); box-shadow: 3px 3px 0 var(--btn-shadow); }
.vis-seg input[value="private"]:checked + .vis-opt { border-color: var(--pink); color: var(--pink-text); background: color-mix(in srgb, var(--pink) 9%, transparent); box-shadow: 3px 3px 0 color-mix(in srgb, var(--pink) 50%, transparent); }
.vis-seg input:focus-visible + .vis-opt { outline: 2px solid var(--ring); outline-offset: 2px; }

.schedule { display: grid; gap: 6px; padding: 10px 12px; border-left: 3px solid var(--orange); background: color-mix(in srgb, var(--orange) 7%, transparent); }

/* Custom URL */
.slug-box { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--field-border); border-radius: var(--r-sm); background: var(--field); }
.slug-box:focus-within { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.slug-prefix {
  display: flex; align-items: center; flex: none; padding: 0 0 0 10px; max-width: 60%; overflow: hidden; white-space: nowrap;
  font: 400 0.8rem var(--mono); text-transform: none; letter-spacing: 0; color: var(--text-3);
}
dialog .slug-box input[type=text] { border: 0; box-shadow: none; background: transparent; padding-left: 2px; font-family: var(--mono); font-size: 0.88rem; min-width: 0; }
dialog .slug-box input[type=text]:focus { box-shadow: none; }
.slug-status { margin: 0; min-height: 1.2em; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--text-3); }
.slug-status.ok { color: var(--cyan-text); }
.slug-status.bad { color: var(--danger-text); }

.more { border-top: 1px dashed var(--line); padding-top: 10px; }
.more summary { cursor: pointer; width: max-content; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-2); border-radius: 2px; }
.more summary:hover { color: var(--cyan-text); }
.more[open] summary { margin-bottom: 10px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 2 * var(--gutter)); padding: 10px 16px; text-align: center;
  font: 700 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text);
  border-color: var(--line-strong);
  transition: opacity 0.12s, transform 0.12s steps(3, end);
}
.toast::before { content: '> '; color: var(--cyan-text); }
.toast:empty { visibility: hidden; }
body.has-player .toast { bottom: calc(var(--player-h) + 30px + env(safe-area-inset-bottom, 0px)); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- artwork picker (tracks + playlists) ---------- */
.media-row { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: start; }
.media-side { display: grid; gap: 10px; min-width: 0; }
.art-field { display: grid; gap: 6px; }
.art-label { font: 700 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); }
dialog label.art-drop, .art-drop {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; overflow: hidden; cursor: pointer;
  border: 2px dashed var(--field-border); border-radius: var(--r-sm); background: var(--field);
  text-transform: none; letter-spacing: normal;
  transition: border-color 0.12s, background-color 0.12s;
}
.art-drop:hover, .art-drop.over { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 8%, var(--field)); }
.art-drop.over { box-shadow: var(--glow-cyan); }
.art-drop:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }
.has-art .art-drop { border-style: solid; border-color: var(--line); }
.art-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-empty { display: grid; justify-items: center; gap: 6px; padding: 8px; text-align: center; color: var(--text-3); }
.art-empty .ico { width: 28px; height: 28px; color: var(--cyan-text); }
.art-cta { font: 700 0.72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.art-empty small { font: 400 0.62rem var(--mono); letter-spacing: 0.1em; }
.has-art .art-drop::after { /* "replace" hint on hover */
  content: 'Replace'; position: absolute; left: 0; right: 0; bottom: 0; padding: 4px; text-align: center;
  font: 700 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: #fff; background: rgba(13, 7, 24, 0.75);
  opacity: 0; transition: opacity 0.12s;
}
.has-art .art-drop:hover::after, .has-art .art-drop:focus-within::after { opacity: 1; }
.art-actions { min-height: 22px; }
.art-btn {
  padding: 2px 0; border: 0; background: none; cursor: pointer; color: var(--danger-text);
  font: 700 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- now-playing view ---------- */
.np-dialog { width: min(1040px, calc(100vw - 2 * var(--gutter))); padding: 14px 16px 16px; }
.np-dialog::backdrop { background: rgba(8, 3, 16, 0.72); }
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.np-transport { display: flex; gap: 4px; }
.np-transport .icon-btn svg:not(.ico) { width: 18px; height: 18px; }
.np-dialog .hero-card { margin-bottom: 0; }

/* ---------- queue drawer ---------- */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); padding: 0;
  border-radius: 0; border-width: 0 0 0 1px; display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: drawer-in 0.18s steps(4, end); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px dashed var(--line); }
.drawer-head h2 { flex: 1; font: 800 0.95rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--pink-text); }
.drawer-head .btn { height: 30px; padding: 0 10px; }
.queue-list { list-style: none; margin: 0; padding: 8px; overflow: auto; flex: 1; }
.q-item { display: flex; align-items: center; gap: 4px; border-radius: var(--r-sm); }
.q-item:hover { background: var(--row-hover); }
.q-item.current { background: var(--row-current); box-shadow: inset 3px 0 0 var(--pink); }
.q-item.past .q-jump { opacity: 0.6; }
.q-jump {
  flex: 1; min-width: 0; display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 6px 8px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: var(--r-sm);
}
.q-num, .q-dur { font: 700 0.72rem var(--mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
.q-item.current .q-num { color: var(--pink-text); }
.q-cover { width: 40px; height: 40px; border-radius: 2px; overflow: hidden; border: 1px solid var(--line-soft); }
.q-meta { display: grid; min-width: 0; }
.q-title, .q-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-title { font-weight: 650; }
.q-item.current .q-title { color: var(--pink-text); }
.q-artist { font-size: 0.84rem; color: var(--text-2); }

/* ===== DOCK =====
   Slim full-width bottom bar (removable: FEATURES.dock in app.js + #dock markup + this section). */
body.has-dock { --player-h: 56px; }
body.has-dock .wrap { padding-bottom: calc(56px + 32px + env(safe-area-inset-bottom, 0px)); }
body.has-dock .toast { bottom: calc(56px + 18px + env(safe-area-inset-bottom, 0px)); }
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--panel-strong);
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 0 rgba(34, 211, 238, 0.08), 0 -12px 30px -18px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  animation: rise 0.2s steps(4, end);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .dock { background: var(--panel-solid); } }
.dock-inner {
  display: flex; align-items: center; gap: 14px; height: 56px;
  max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter);
}
.dock-transport, .dock-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.d-btn {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; flex: none;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text); cursor: pointer;
  transition: color 0.12s, background-color 0.12s;
}
.d-btn svg { width: 18px; height: 18px; fill: currentColor; }
.d-btn svg.ico { fill: none; }
.d-btn:hover { color: var(--cyan-text); background: var(--row-hover); }
.d-btn:disabled { opacity: 0.35; cursor: default; color: var(--text); background: transparent; }
.d-btn .i-pause { display: none; }
.d-btn.on .i-pause { display: block; }
.d-btn.on .i-play { display: none; }
.d-play {
  width: 38px; height: 38px; margin: 0 2px; color: var(--ink-on-accent); background: var(--primary-bg);
  border: 1px solid var(--primary-bg); box-shadow: 2px 2px 0 var(--primary-shadow);
}
.d-play:hover { color: var(--ink-on-accent); background: var(--primary-bg); filter: brightness(1.08); }
.d-play:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--primary-shadow); }
.d-play.on { box-shadow: 2px 2px 0 var(--primary-shadow), 0 0 14px rgba(34, 211, 238, 0.5); }

.dock-progress-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.d-time { flex: none; min-width: 3.4em; font: 700 0.72rem var(--mono); font-variant-numeric: tabular-nums; color: var(--text-2); text-align: center; }
.d-progress { position: relative; flex: 1; min-width: 0; height: 22px; cursor: pointer; touch-action: none; border-radius: 2px; }
.d-progress:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.d-rail {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%);
  background: var(--track); transition: height 0.12s steps(2);
}
.d-buf { position: absolute; left: 0; top: 0; bottom: 0; background: var(--wave-buf); }
.d-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--cyan); }
:root:not([data-theme="light"]) .d-fill { box-shadow: 0 0 8px rgba(34, 211, 238, 0.7); }
.d-progress:hover .d-rail, .d-progress.scrubbing .d-rail, .d-progress:focus-visible .d-rail { height: 4px; }
.d-dot {
  position: absolute; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%);
  background: var(--pink); border: 2px solid var(--ink-on-accent); pointer-events: none;
}
:root:not([data-theme="light"]) .d-dot { box-shadow: 0 0 10px var(--pink), 0 0 2px var(--pink); }
.d-progress:hover .d-dot, .d-progress.scrubbing .d-dot { width: 12px; height: 12px; }
.d-tip {
  position: absolute; bottom: 100%; transform: translate(-50%, -4px); pointer-events: none; white-space: nowrap;
  padding: 3px 6px; border-radius: 2px; font: 700 0.68rem/1 var(--mono); font-variant-numeric: tabular-nums;
  color: var(--ink-on-accent); background: var(--cyan);
}

.d-vol-wrap { position: relative; }
.d-vol-pop {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  width: 150px; padding: 10px 12px; opacity: 0; pointer-events: none;
  transition: opacity 0.12s, transform 0.12s steps(2);
}
.d-vol-pop .range { width: 100%; display: block; }
.d-vol-wrap:hover .d-vol-pop, .d-vol-wrap:focus-within .d-vol-pop { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.d-vol-wrap::after { content: ''; position: absolute; left: -10px; right: -10px; bottom: 100%; height: 14px; } /* hover bridge */

.dock-now {
  display: flex; align-items: center; gap: 10px; min-width: 0; width: clamp(160px, 20vw, 260px); flex: none;
  padding: 4px 6px 4px 4px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: var(--r-sm);
}
.dock-now:hover { background: var(--row-hover); }
.d-cover {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 2px; overflow: visible;
}
.d-cover > * { width: 100%; height: 100%; border-radius: 2px; }
.d-cover .cover.ph { font-size: 0.9rem; }
.d-cover::before { /* tiny HUD brackets */
  content: ''; position: absolute; inset: -3px; pointer-events: none;
  background:
    linear-gradient(var(--hud), var(--hud)) top left / 6px 1px, linear-gradient(var(--hud), var(--hud)) top left / 1px 6px,
    linear-gradient(var(--hud), var(--hud)) bottom right / 6px 1px, linear-gradient(var(--hud), var(--hud)) bottom right / 1px 6px;
  background-repeat: no-repeat;
}
.d-meta { display: grid; min-width: 0; line-height: 1.25; }
.d-artist, .d-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-artist { font-size: 0.76rem; color: var(--text-3); }
.d-title { font-size: 0.88rem; font-weight: 700; }
body.is-playing .d-title { color: var(--pink-text); }

@media (max-width: 899px) {
  .dock-now { width: clamp(120px, 24vw, 200px); }
  .d-cast { display: none !important; }
}
@media (max-width: 719px) {
  body.has-dock { --player-h: 64px; }
  body.has-dock .wrap { padding-bottom: calc(64px + 28px + env(safe-area-inset-bottom, 0px)); }
  body.has-dock .toast { bottom: calc(64px + 16px + env(safe-area-inset-bottom, 0px)); }
  .dock-inner { height: 62px; gap: 6px; padding: 0 8px 0 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "now transport queue"; }
  .dock .d-wide, .d-time, #d-prev { display: none !important; }
  .dock-now { grid-area: now; width: auto; }
  .dock-transport { grid-area: transport; }
  #d-queue { grid-area: queue; }
  .dock-tools { display: none; }
  /* progress becomes a hairline along the top edge */
  .dock-progress-row { position: absolute; left: 0; right: 0; top: -9px; height: 18px; padding: 0; }
  .d-progress { height: 18px; }
}
/* ===== /DOCK ===== */

/* Theme switch crossfade */
.theming, .theming *, .theming *::before, .theming *::after {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}

/* ---------- narrow screens ---------- */
@media (max-width: 719px) {
  .topbar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "search seg";
    gap: 8px 10px; padding: 8px; top: 8px; margin-top: 8px;
  }
  .brand { grid-area: brand; font-size: 0.85rem; }
  .actions { grid-area: actions; }
  .search-wrap { grid-area: search; max-width: none; margin: 0; }
  .seg { grid-area: seg; justify-self: end; }
  .btn { height: 34px; padding: 0 12px; }
  .btn.compact { width: 34px; padding: 0; }
  .btn.compact .lbl { display: none; }
  .wrap { padding-top: 18px; }
  .lib-head { gap: 6px 10px; }
  .tab { padding: 6px 8px 10px; }
  .tab::after { left: 8px; right: 8px; }
  .status { order: 3; flex-basis: 100%; }

  .badge .b-full { display: none; }
  .badge .b-short { display: inline; }
  .hc-meta { gap: 4px 12px; }
  .hc-meta > *::before { content: none !important; } /* no orphan separators when the line wraps */
  .row { grid-template-columns: 32px 44px minmax(0, 1fr) auto; gap: 10px; padding: 6px 4px; }
  .row-play { width: 32px; }
  .row-cover { width: 44px; height: 44px; }
  .row-meta { display: none; }
  .row .hide-narrow { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pl-card { padding: 8px 8px 10px; }

  .hero-card { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px 14px; }
  .hc-art { order: -1; width: min(100%, 280px); justify-self: center; }
  .hc-top { gap: 12px; }
  .hc-play { width: 54px; height: 54px; }
  .hc-play svg { width: 26px; height: 26px; }
  .hc-size { display: none; }
  .hero-viz { height: 45%; }
  .hc-wave { --wave-h: 96px; grid-template-columns: minmax(0, 1fr) 46px; gap: 6px; }
  .hc-wave .viz-zone { right: 52px; }
  .media-row { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .np-dialog { padding: 10px; width: calc(100vw - 16px); }

  .player {
    grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px;
    padding: 8px 10px 6px 8px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .p-center { display: contents; }
  .p-controls { gap: 2px; }
  .p-controls .icon-btn:not(.big) { width: 38px; height: 38px; }
  .p-cover { width: 48px; height: 48px; }
  .p-seek { grid-column: 1 / -1; grid-row: 2; gap: 8px; padding: 0 2px; }
  .time { min-width: 3em; }
  .p-side { display: none; }
  .p-controls .toggle { display: none; }

  dialog { padding: 16px; }
  .field-row, .vis-seg { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359px) {
  .seg-btn, .seg-knob { width: 28px; }
  .seg-knob { transform: translateX(calc(var(--i) * 28px)); }
  .grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  :root { transition: none; }
  .floor { animation: none !important; }
  .marquee.scroll .p-title { animation: none !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .eq i { animation: none !important; }
  .eq i:nth-child(1) { height: 50%; }
  .eq i:nth-child(2) { height: 100%; }
  .eq i:nth-child(3) { height: 75%; }
  .eq i:nth-child(4) { height: 25%; }
  .btn.roll.rolling .d20 { animation: none !important; }
  .live-dot, .sk { animation: none !important; }
}
