:root {
  --bg: #050507;
  --panel: rgba(12, 12, 16, 0.72);
  --panel-solid: #0d0d12;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eeeef2;
  --dim: #8a8a99;
  --faint: #55555f;
  --accent: #d4ff3a;
  --accent-ink: #0b0d02;
  --hot: #ff3d7f;
  --radius: 12px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --panel-w: 400px;
  --deck-h: 128px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.4 var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { opacity: 0.35; cursor: default; }
input, select { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
[hidden] { display: none !important; }

#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }

#ui { position: fixed; inset: 0; pointer-events: none; transition: opacity .5s ease; }
#ui > * { pointer-events: auto; }
body.idle #ui, body.hide-ui #ui { opacity: 0; }
body.idle, body.hide-ui { cursor: none; }
body.hide-ui #ui > * { pointer-events: none; }

/* ── Top bar ── */
.topbar { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 24px; padding: 0 16px; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .14em; font-size: 13px; }
.brand svg { color: var(--accent); width: 26px; height: 26px; }
.top-stats { display: flex; align-items: center; gap: 20px; font-size: 11px; color: var(--dim); letter-spacing: .08em; }
.top-stats b { color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: 0; margin-right: 4px; }
.beat-dots { display: flex; gap: 5px; }
.beat-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .08s; }
.beat-dots i.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.beat-dots i.on:first-child { background: var(--hot); box-shadow: 0 0 10px var(--hot); }
.top-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: background .15s, border-color .15s; }
.icon-btn:hover:not(:disabled) { background: rgba(255,255,255,.09); border-color: var(--line-2); }
.icon-btn.big { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); border: 0; }
.icon-btn.big svg { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.icon-btn.big:hover:not(:disabled) { background: #e4ff7a; }
.i-pause { display: none; }
body.playing .i-play { display: none; }
body.playing .i-pause { display: block; }

/* ── Side panel ── */
.panel { position: absolute; top: 64px; left: 12px; bottom: calc(var(--deck-h) + 20px); width: var(--panel-w); display: flex; flex-direction: column; background: var(--panel); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; }
body.panel-closed .panel { transform: translateX(calc(-100% - 24px)); opacity: 0; pointer-events: none; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.tab { flex: 1; padding: 8px 10px; border-radius: 8px; color: var(--dim); font-weight: 600; font-size: 13px; }
.tab.active { color: var(--text); background: rgba(255,255,255,.07); }
.count { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 99px; background: var(--line-2); margin-left: 4px; color: var(--text); }
.tab-body { display: none; flex: 1; min-height: 0; flex-direction: column; }
.tab-body.active { display: flex; }

.search { display: flex; align-items: center; gap: 8px; margin: 12px 12px 8px; padding: 0 12px; height: 42px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--accent); }
.search svg { color: var(--dim); flex: none; width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 14px; }
.chips { display: flex; gap: 6px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; padding: 5px 10px; font-size: 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--dim); }
.chips button:hover { color: var(--text); border-color: var(--line-2); }

.results, .setlist { flex: 1; overflow-y: auto; padding: 4px 6px 12px; margin: 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.empty { padding: 28px 20px; text-align: center; color: var(--text); }
.empty p { margin: 0 0 6px; }
.empty .dim { font-size: 13px; }
.loading, .err { padding: 20px; text-align: center; color: var(--dim); font-size: 13px; }
.err { color: #ff8fa8; }

.track { display: grid; grid-template-columns: 22px 44px 1fr auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.track:hover { background: rgba(255,255,255,.05); }
.track.sel { background: rgba(212,255,58,.08); }
.check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.track.sel .check { background: var(--accent); border-color: var(--accent); }
.track.sel .check::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.thumb { width: 44px; height: 44px; border-radius: 7px; background: #1a1a22 center/cover; position: relative; flex: none; }
.t-text { min-width: 0; }
.t-title { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub .tag { font-family: var(--mono); font-size: 10px; padding: 0 5px; border-radius: 4px; background: rgba(255,61,127,.15); color: var(--hot); margin-right: 4px; }
.t-actions { display: flex; gap: 2px; opacity: .55; }
.track:hover .t-actions { opacity: 1; }
.t-actions button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.t-actions button:hover { background: rgba(255,255,255,.1); }
.t-actions svg { width: 17px; height: 17px; }
.t-actions .in-set { color: var(--accent); }
.more { display: block; margin: 8px auto; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line); color: var(--dim); font-size: 12px; }

.selection-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(0,0,0,.35); }
.selection-bar span { font-size: 13px; font-weight: 600; margin-right: auto; }
.primary { padding: 9px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary:hover:not(:disabled) { background: #e4ff7a; }
.primary svg { fill: currentColor; stroke: none; width: 16px; height: 16px; }
.primary.wide { width: 100%; height: 44px; font-size: 14px; }
.ghost { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; }
.ghost:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }

.set-controls { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.row { display: flex; gap: 8px; align-items: center; }
.row.toggles { justify-content: space-between; flex-wrap: wrap; row-gap: 8px; }
.select { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 5px 10px; border-radius: 10px; border: 1px solid var(--line); }
.select span { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.select select { background: none; border: 0; outline: 0; font-size: 13px; padding: 0; appearance: none; cursor: pointer; }
.select select option { background: var(--panel-solid); }
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--dim); cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle span { width: 28px; height: 16px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.toggle span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(12px); background: var(--accent-ink); }
.file-btn { font-size: 12px; padding: 6px 10px; }

.setlist { list-style: none; counter-reset: n; }
.set-item { position: relative; }
.set-item .track { grid-template-columns: 20px 44px 1fr auto; }
.set-item .num { font-family: var(--mono); font-size: 11px; color: var(--faint); text-align: right; }
.set-item.playing .track { background: rgba(212,255,58,.1); box-shadow: inset 2px 0 0 var(--accent); }
.set-item.playing .num { color: var(--accent); }
.set-item.played { opacity: .45; }
.set-item.dragging { opacity: .3; }
.set-item.drop-before::before { content: ''; position: absolute; left: 8px; right: 8px; top: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.meta { display: flex; gap: 6px; align-items: center; margin-top: 3px; font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.key { padding: 0 5px; border-radius: 4px; color: #000; font-weight: 700; }
.energy { width: 34px; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.energy i { display: block; height: 100%; background: linear-gradient(90deg, #4cc9f0, var(--accent), var(--hot)); }
.status { color: var(--dim); }
.status.bad { color: #ff8fa8; }
.spinner { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.transition-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; line-height: 1.5; margin: 0 0 0 38px; padding: 3px 0 3px 12px; border-left: 1px dashed var(--line-2); font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.transition-chip b { color: var(--dim); font-weight: 500; }
.transition-chip .warn { color: #ffb44d; }

/* ── Deck bar ── */
.deckbar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: var(--deck-h); display: grid; grid-template-columns: minmax(200px, 1fr) minmax(320px, 2fr) auto; gap: 20px; align-items: center; padding: 12px 16px; background: var(--panel); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border: 1px solid var(--line); border-radius: 16px; }
.now { display: flex; gap: 12px; align-items: center; min-width: 0; }
.art { width: 64px; height: 64px; border-radius: 10px; background: #1a1a22 center/cover; flex: none; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.now-text { min-width: 0; }
.now-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-sub { font-size: 11px; color: var(--dim); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transport { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.buttons { display: flex; align-items: center; gap: 10px; }
.mixinfo { margin-left: 8px; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mixinfo b { color: var(--accent); font-weight: 700; }
.wavebar { position: relative; height: 50px; }
.wavebar canvas { width: 100%; height: 40px; display: block; cursor: pointer; }
.times { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); margin-top: -2px; }

.vj { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.vj { position: relative; }
.scene-picker { display: flex; gap: 4px; align-items: center; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.scene-name { height: 30px; min-width: 190px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.scene-name:hover { border-color: var(--line-2); }
.scene-name span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-name svg { width: 14px; height: 14px; color: var(--dim); }
.mood-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; display: inline-block; }
.mood-dot.chill { background: #4cc9f0; box-shadow: 0 0 8px #4cc9f0; }
.mood-dot.drive { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.mood-dot.peak { background: var(--hot); box-shadow: 0 0 8px var(--hot); }
.scene-grid { position: absolute; right: 0; bottom: calc(100% + 18px); display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 14px; padding: 14px; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); z-index: 5; }
.sg-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 8px 4px; }
.sg-col { display: flex; flex-direction: column; gap: 2px; }
.sg-col button { display: flex; gap: 10px; align-items: center; text-align: left; padding: 7px 8px; border-radius: 8px; font-size: 13px; color: var(--text); }
.sg-col button:hover { background: rgba(255,255,255,.06); }
.sg-col button.active { background: rgba(212,255,58,.12); color: var(--accent); }
.sg-col button .mono { width: 12px; font-size: 10px; color: var(--faint); }
.scenes { display: flex; gap: 4px; }
.scenes button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--dim); }
.scenes button:hover { color: var(--text); border-color: var(--line-2); }
.scenes button.active { background: var(--text); color: #000; border-color: var(--text); }
.vj-row { display: flex; gap: 6px; align-items: center; }
.pill { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--dim); }
.pill:hover { color: var(--text); border-color: var(--line-2); }
.pill.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.slider { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.slider input { width: 70px; accent-color: var(--accent); }

/* ── Lower third (visible over the visuals, even fullscreen) ── */
.lower-third { position: fixed; left: 40px; bottom: 48px; max-width: min(70vw, 760px); pointer-events: none; opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); text-shadow: 0 2px 24px rgba(0,0,0,.8); }
.lower-third.show { opacity: 1; transform: none; }
body:not(.idle):not(.hide-ui) .lower-third { bottom: calc(var(--deck-h) + 40px); left: calc(var(--panel-w) + 48px); }
body.panel-closed:not(.idle):not(.hide-ui) .lower-third { left: 40px; }
.lt-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.lt-title { font-size: clamp(28px, 4.2vw, 64px); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; margin: 6px 0; }
.lt-meta { font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,.75); }

.toast { position: fixed; top: 70px; left: 50%; transform: translate(-50%, -10px); padding: 10px 16px; border-radius: 10px; background: var(--panel-solid); border: 1px solid var(--line-2); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 10; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(255,61,127,.5); }
.dropzone { position: fixed; inset: 0; display: none; place-items: center; background: rgba(5,5,7,.8); border: 2px dashed var(--accent); font-size: 18px; font-weight: 700; z-index: 20; }
body.dragover .dropzone { display: grid; }

@media (max-width: 1100px) {
  .deckbar { grid-template-columns: 1fr; height: auto; gap: 10px; }
  :root { --deck-h: 220px; }
  .vj { align-items: stretch; }
  .vj-row { flex-wrap: wrap; }
}
@media (max-width: 1100px) {
  .scene-grid { left: 0; right: 0; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .scene-grid { grid-template-columns: 1fr; max-height: 60vh; overflow-y: auto; }
  .scene-name { min-width: 0; flex: 1; }
  :root { --panel-w: calc(100vw - 24px); --deck-h: 236px; }
  .top-stats { display: none; }
  .deckbar { padding: 12px; }
  .scenes { flex-wrap: wrap; }
  .lower-third { left: 16px !important; }
}

.plan-info { font-size: 11px; color: var(--dim); text-align: center; }
.rebuild { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(212,255,58,.08); border: 1px solid rgba(212,255,58,.3); font-size: 12.5px; }
body.buffering .wavebar canvas { opacity: .6; }

/* ── Mix editor ── */
.editor { position: absolute; left: 12px; right: 12px; bottom: calc(var(--deck-h) + 20px); max-height: 52vh; display: flex; flex-direction: column; background: rgba(10,10,14,.92); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid var(--line-2); border-radius: 16px; z-index: 4; overflow: hidden; }
.editor-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.editor-head b { font-size: 13px; white-space: nowrap; }
.editor-head .dim { flex: 1; font-size: 11.5px; line-height: 1.35; }
.editor-scroll { overflow-y: auto; overflow-x: hidden; }
.editor canvas { display: block; width: 100%; touch-action: none; user-select: none; }
body.editing .panel { opacity: .25; pointer-events: none; }

/* Artist page in search */
.artist-link { padding: 0; font-size: inherit; color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 2px; }
.artist-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.artist-head { display: flex; align-items: center; gap: 10px; padding: 6px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.artist-head .avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--line-2) center/cover; }
.artist-head .a-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.artist-head .a-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist-head .a-text span { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.seg button { padding: 5px 9px; font-size: 11px; color: var(--dim); }
.seg button.on { background: rgba(255,255,255,.09); color: var(--text); }

/* Saved sets */
.saved { display: flex; flex-direction: column; gap: 8px; }
.name-input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font: inherit; font-size: 13px; outline: 0; }
.name-input:focus { border-color: var(--accent); }
.saved-list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.saved-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 10px; border-radius: 10px; border: 1px solid var(--line); }
.saved-item.current { border-color: var(--accent); }
.saved-item .s-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.saved-item .s-text b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-item .s-text span { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-item .ghost { padding: 5px 10px; font-size: 12px; }
.saved-empty { font-size: 12px; color: var(--dim); padding: 6px 2px; }

.ghost.danger:hover, .ghost.danger[data-confirm] { border-color: var(--hot); color: var(--hot); }

/* Transition chip in the set list: clickable */
.transition-chip { cursor: pointer; transition: border-color .15s, background .15s; }
.transition-chip:hover { border-color: var(--accent); background: rgba(212,255,58,.06); }
.transition-chip.custom { border-color: rgba(255,61,127,.5); }
.transition-chip .tc-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #0b0b10; font-weight: 700; font-size: 10px; }
.transition-chip.custom .tc-icon { background: var(--hot); }
.transition-chip .dim { color: var(--dim); }

/* Transition panel */
.tpanel { position: fixed; z-index: 30; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto;
  background: var(--panel-solid, #121218); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 8px; }
.tpanel[hidden] { display: none; }
.tp-head { display: flex; align-items: center; gap: 8px; }
.tp-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.tp-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.tp-title i { font-style: normal; color: var(--accent); }
.tp-sub { font-size: 10.5px; color: var(--dim); line-height: 1.5; }
.tp-sub .warn { color: var(--hot); font-weight: 600; }
.tp-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.tp-presets button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px; border-radius: 10px; border: 1px solid var(--line); font-size: 11.5px; }
.tp-presets button b { font-size: 15px; line-height: 1.1; }
.tp-presets button small { font-size: 9.5px; color: var(--dim); }
.tp-presets button:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.tp-presets button.on { border-color: var(--accent); background: rgba(212,255,58,.1); color: var(--accent); }
.tp-desc { margin: 0; font-size: 12px; color: var(--dim); line-height: 1.45; }
.tp-curves { width: 100%; height: 150px; border-radius: 10px; background: rgba(0,0,0,.35); }
.tp-legend { display: flex; gap: 12px; font-size: 10px; color: var(--dim); font-family: var(--mono); margin-top: -2px; }
.tp-legend span::before { content: ''; display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.tp-legend .lf::before { background: #d4ff3a; } .tp-legend .ll::before { background: #ff9f1c; } .tp-legend .lm::before { background: #b388ff; }
.tp-legend .lh::before { background: #4cc9f0; } .tp-legend .lx::before { background: #ff3d7f; }
.tp-row { display: flex; flex-direction: column; gap: 4px; }
.tp-row label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.tp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tp-chips button { padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }
.tp-chips button:hover:not(:disabled) { color: var(--text); border-color: var(--line-2); }
.tp-chips button.on, .tp-chips button.on:hover:not(:disabled) { color: #0b0b10; background: var(--accent); border-color: var(--accent); }
.tp-note { margin: 0; font-size: 11px; color: #ffb020; }
.tp-foot { display: flex; gap: 8px; justify-content: space-between; margin-top: 2px; }

/* Local music tab */
.loc-bar { display: flex; align-items: center; gap: 8px; margin: 12px 12px 8px; }
.loc-path { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.loc-path b { color: var(--text); font-weight: 600; }
.loc-mode { padding: 6px 10px; font-size: 12px; flex: none; }
.loc-mode.on { border-color: var(--accent); color: var(--accent); }
.loc-filter { margin-top: 0; height: 38px; }
.folder { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 13px; }
.folder:hover { background: rgba(255,255,255,.05); }
.folder svg { width: 18px; height: 18px; color: var(--accent); flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.folder span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder .open-all { opacity: 0; padding: 3px 8px; font-size: 11px; }
.folder:hover .open-all { opacity: 1; }
.loc-head { display: flex; align-items: center; gap: 8px; padding: 2px 10px 6px; font-size: 11px; color: var(--dim); }
.loc-head .more { margin: 0 0 0 auto; padding: 5px 10px; }
.thumb.disk::after { content: '♪'; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); font-size: 18px; }
.thumb.disk.has-art::after { content: none; }
.t-sub .fmt { font-family: var(--mono); font-size: 10px; padding: 0 4px; border-radius: 4px; background: rgba(255,255,255,.08); margin-right: 4px; }
.chips button.on { color: var(--accent); border-color: var(--accent); }
[data-body="local"].browser-mode #locUp, [data-body="local"].browser-mode #locScan { display: none; }
[data-body="local"] .empty .primary { margin-top: 10px; padding: 9px 16px; }
