:root {
  --bg: #0B0A1F; --bg2: #0E0D26; --panel: #131230; --panel2: #1B1A42; --panel3: #262556;
  --line: #232250; --line2: #34336B; --text: #FFFFFF; --text2: #CFCDEE; --text3: #9592BF; --text4: #6C6996;
  --cyan: #22D3EE; --blue: #3B82F6; --violet: #8B5CF6; --magenta: #D946EF; --pink: #EC4899; --orange: #F97316;
  --green: #22C55E; --amber: #F59E0B; --red: #EF4444;
  --run: linear-gradient(90deg, #22D3EE, #3B82F6, #8B5CF6, #D946EF, #EC4899, #F97316);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.35 "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, sans-serif; overscroll-behavior: none; }
body { padding-bottom: env(safe-area-inset-bottom); }
button, select, input, textarea { font: inherit; color: inherit; }
.top { display: flex; align-items: center; gap: 10px; padding: 10px 14px 6px; padding-top: calc(10px + env(safe-area-inset-top)); }
.logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #3B82F6, #8B5CF6, #EC4899, #F97316); position: relative; flex: none; }
.logo::after { content: ""; position: absolute; inset: 8px 6px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px); opacity: .9; border-radius: 2px; mask: linear-gradient(0deg, transparent 10%, #000 30% 70%, transparent 90%); }
.appname { font-weight: 700; font-size: 16px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs button { background: none; border: 0; color: var(--text3); font-weight: 600; padding: 8px 10px; border-bottom: 3px solid transparent; }
.tabs button.on { color: #fff; border-image: linear-gradient(90deg, #3B82F6, #8B5CF6) 1; }
.page { display: none; padding: 0 12px 24px; gap: 12px; flex-direction: column; }
.page.on { display: flex; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.header { display: flex; gap: 12px; align-items: center; }
.cover { width: 64px; height: 64px; border-radius: 12px; flex: none; background: linear-gradient(135deg, #1e1b4b, #4c1d95); }
.hcol { flex: 1; min-width: 0; }
.hrow { display: flex; align-items: center; gap: 6px; }
.title { font-family: "Segoe UI Variable Display", "Segoe UI", Roboto, system-ui; font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.badge { padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; }
.badge.fmt { background: #7C3AED; } .badge.rate { background: #2563EB; } .badge.depth { background: #EA580C; } .badge.ch { background: var(--panel3); }
.wavecard { padding: 10px; }
#wave { width: 100%; height: 190px; display: block; border-radius: 10px; touch-action: none; }
.transport { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.time { font-family: "Cascadia Mono", Consolas, monospace; font-size: 13px; min-width: 92px; }
.buttons { display: flex; align-items: center; gap: 6px; }
.buttons.small { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
button.icon { width: 42px; height: 42px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line2); color: #fff; font-size: 16px; }
button.play { width: 56px; height: 56px; border-radius: 50%; border: 0; color: #fff; font-size: 22px; background: linear-gradient(135deg, #EC4899, #F97316); box-shadow: 0 0 18px rgba(236, 72, 153, .45); }
button.ghost, select.ghost, select, input[type=number], input[type=search] { background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 7px 10px; color: var(--text); }
button.ghost.on { background: rgba(59, 130, 246, .25); border-color: var(--blue); }
button.mark { width: 36px; height: 36px; border-radius: 9px; background: transparent; font-weight: 700; }
button.mark.a { border: 1.5px solid var(--cyan); color: var(--cyan); } button.mark.a.on { background: var(--cyan); color: #fff; }
button.mark.b { border: 1.5px solid var(--orange); color: var(--orange); } button.mark.b.on { background: var(--orange); color: #fff; }
button.primary, label.primary { color: #fff; cursor: pointer; background: linear-gradient(90deg, #3B82F6, #8B5CF6, #EC4899); border: 0; border-radius: 12px; padding: 10px 16px; color: #fff; font-weight: 700; display: inline-block; }
.filebtn input { display: none; }
.seekbar { width: 100%; margin: 8px 0 0; accent-color: var(--blue); }
.pills { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.pills button { white-space: nowrap; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 7px 12px; color: var(--text2); font-weight: 600; }
.pills button.on { color: #fff; background: rgba(37, 99, 235, .55); border-color: var(--blue); }
.tab { display: none; } .tab.on { display: block; }
.cap { color: var(--text3); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.bigrow { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.bpm { font-size: 30px; font-weight: 800; background: linear-gradient(90deg, #F97316, #EC4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.key { font-size: 24px; font-weight: 800; color: var(--cyan); }
.mini { display: flex; gap: 6px; margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; margin-top: 12px; }
.stat .cap { margin-bottom: 1px; } .stat .v { font-weight: 700; }
.faint { color: var(--text4); font-size: 12px; margin-top: 6px; }
.muted { color: var(--text3); }
.status { color: var(--text3); font-size: 13px; }
.row { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.row label { color: var(--text3); min-width: 78px; }
.row input[type=range] { flex: 1; accent-color: var(--blue); }
.val { font-weight: 700; min-width: 56px; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
#notes { width: 100%; min-height: 160px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 10px; color: var(--text); resize: vertical; }
#loud { width: 100%; height: 150px; display: block; }
.sections { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.sec { display: grid; grid-template-columns: 12px 72px 90px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; padding: 4px 6px; border-radius: 7px; }
.sec.now { background: var(--panel2); }
.sec .dot { width: 10px; height: 10px; border-radius: 3px; } .sec .bar { height: 7px; border-radius: 4px; background: var(--run); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.list li .n { flex: 1; min-width: 0; } .list li .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.list li.now .name { color: #93C5FD; } .list li .sub { color: var(--text3); font-size: 12px; }
.list li .thumb { width: 40px; height: 40px; border-radius: 9px; flex: none; background: linear-gradient(135deg, #1e1b4b, #7c3aed); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 16px; max-width: 90vw; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 9; }
.toast.on { opacity: 1; }
.sheet { position: fixed; inset: auto 0 0 0; background: var(--panel); border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .2s; z-index: 10; }
.sheet.on { transform: none; }
.sheet button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 12px 6px; border-bottom: 1px solid var(--line); color: #fff; font-size: 15px; }
.sheet button.danger { color: #FCA5A5; }

.recbox { display: none; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.recbox.on { display: block; }
.recdot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; flex: none; }
@keyframes blink { 50% { opacity: .25; } }
.meter { flex: 1; height: 10px; background: var(--panel3); border-radius: 5px; overflow: hidden; }
.meter .fill { height: 100%; width: 0; background: linear-gradient(90deg, #22C55E, #F59E0B 75%, #EF4444); transition: width .05s; }
button.rec { border-color: #7f1d1d; color: #FCA5A5; }

button.install { background: linear-gradient(90deg, #3B82F6, #EC4899); border: 0; border-radius: 10px; padding: 7px 12px; color: #fff; font-weight: 700; white-space: nowrap; }
.installhint { position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); background: var(--panel2); border: 1px solid var(--violet); border-radius: 14px; padding: 12px 14px; z-index: 11; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.installhint div { color: var(--text2); margin: 6px 0 10px; font-size: 14px; }

.startbar { display: flex; gap: 10px; }
.startbar .big { flex: 1; text-align: center; padding: 14px 16px; font-size: 16px; border-radius: 14px; }

.tabs { display: flex; white-space: nowrap; }
.top { flex-wrap: nowrap; }
button.install { padding: 6px 10px; font-size: 13px; flex: none; }
@media (max-width: 420px) { .appname { display: none; } .top .install { margin-right: auto; } }

.recbar { display: none; background: #2a0f1d; border: 1px solid #7f1d1d; border-radius: 16px; padding: 10px 12px; gap: 8px 12px; align-items: center; flex-wrap: wrap; }
.recbar.on { display: flex; }
.recbar.paused { background: var(--panel); border-color: var(--line2); }
.recbar.paused .recdot { animation: none; background: var(--amber); }
.recstate { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.recstate .time { font-size: 18px; min-width: 0; }
.recbar .meter { flex: 1; min-width: 120px; }
.recpeak { font-size: 12px; color: var(--text3); min-width: 64px; }
.recbtns { display: flex; gap: 8px; margin-left: auto; }
.big2 { padding: 10px 14px; font-weight: 700; }
.recbar .faint { width: 100%; margin: 0; }
.dialog { position: fixed; inset: 0; background: rgba(5, 4, 15, .65); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.dialog[hidden] { display: none; }
.dlgbox { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dlgbox b { font-size: 17px; }
.dlgbox input { width: 100%; background: var(--bg2); border: 1px solid var(--violet); border-radius: 10px; padding: 11px 12px; color: var(--text); font-size: 16px; }
.row.end { justify-content: flex-end; margin: 4px 0 0; }

/* while recording, the play controls go away: only the recording bar's buttons */
.wavecard.recording .transport, .wavecard.recording .seekbar { display: none; }
#recList li.now { background: rgba(239, 68, 68, .12); border-radius: 10px; }
#recList li .thumb.rec { background: radial-gradient(circle at 50% 50%, #EF4444 0 26%, #3f0d1c 28% 100%); }
#recList li.fresh .name::after { content: "  NEW"; color: #FCA5A5; font-size: 11px; font-weight: 800; }

.lyrhead { margin-top: 0; } .spacer { flex: 1; }
.lyrics { max-height: 52vh; overflow-y: auto; padding: 4px 2px 12px; font-size: 17px; line-height: 1.55; white-space: pre-wrap;
  user-select: text; -webkit-user-select: text; scroll-behavior: smooth; }
.lyrics .l { padding: 2px 6px; border-radius: 8px; color: var(--text2); transition: color .2s, background .2s; }
.lyrics .l.now { color: #fff; background: rgba(139, 92, 246, .25); font-weight: 700; }
.lyrics .l.gap { height: .7em; }
.lyrics .empty { color: var(--text3); font-size: 14px; }
#lyrText { width: 100%; min-height: 260px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 10px; color: var(--text); font-size: 15px; line-height: 1.5; }

.player { display: flex; flex-direction: column; gap: 12px; padding: 0 12px; margin-bottom: 12px; }
.recbig { flex: 1; font-size: 18px; padding: 16px; background: linear-gradient(90deg, #EF4444, #EC4899); }
#tab-songs .row input[type=search] { flex: 1; min-width: 120px; }

#eqCurve { width: 100%; height: 190px; display: block; border-radius: 10px; touch-action: none; background: #0E0D26; margin: 6px 0; }
.eqbands { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
.eqbands button { flex: none; border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 700; background: var(--bg2); border: 1.5px solid var(--line2); color: var(--text2); }
.eqbands button.sel { color: #fff; border-color: currentColor; background: rgba(139, 92, 246, .2); }
.eqbands button.off { opacity: .45; }
.eqedit { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; margin-bottom: 6px; }
.eqon { margin: 0; }

button.icon.share { font-size: 19px; font-weight: 700; background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(236,72,153,.35)); }
.sheet .sheettitle { color: var(--text3); font-size: 13px; padding: 4px 6px 8px; }

.fixrow { margin-top: 4px; } .fixrow button { font-size: 13px; padding: 6px 10px; }
button.tap.hit { background: rgba(249, 115, 22, .35); border-color: var(--orange); }
.marks { list-style: none; margin: 0 0 8px; padding: 0; }
.marks li { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.marks .mt { font-family: "Cascadia Mono", Consolas, monospace; color: var(--amber); min-width: 52px; cursor: pointer; }
.marks input { flex: 1; background: transparent; border: 0; border-bottom: 1px dashed var(--line2); color: var(--text); padding: 4px 2px; font-size: 14px; }
.marks button { background: none; border: 0; color: var(--text3); font-size: 16px; }
#mono.on { background: rgba(245, 158, 11, .3); border-color: var(--amber); color: #fff; }
#shuffle.on { background: rgba(59, 130, 246, .25); border-color: var(--blue); }
.cover.art { background-size: cover !important; background-position: center !important; }
.grouprow .thumb { display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 16px; }

.listhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
button.small { font-size: 13px; padding: 5px 12px; }
.list li .check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line2); flex: none; display: flex; align-items: center; justify-content: center; color: transparent; font-weight: 800; font-size: 14px; }
.list li.sel { background: rgba(59, 130, 246, .14); }
.list li.sel .check { background: var(--blue); border-color: var(--blue); color: #fff; }
.list.selecting li { user-select: none; -webkit-user-select: none; }
.selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line2); box-shadow: 0 -8px 24px rgba(0,0,0,.4); }
.selbar #selCount { flex: 1; font-weight: 700; white-space: nowrap; }
.selbar button.danger { background: #B91C1C; border: 0; color: #fff; border-radius: 10px; padding: 9px 14px; font-weight: 700; }
.selbar button.danger:disabled { opacity: .4; }
body.selecting { padding-bottom: 80px; }
.selbar[hidden] { display: none; }

/* ================================================================ type + finish
   One typeface everywhere (Plus Jakarta Sans, bundled, works offline), a calm
   scale, tabular figures for times, menus that always fit the screen. */
@font-face { font-family: "Jakarta"; src: url("vendor/fonts/pjs-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; src: url("vendor/fonts/pjs-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
html, body { font-family: "Jakarta", system-ui, sans-serif; font-size: 15px; line-height: 1.4; letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
button, select, input, textarea { font-family: inherit; letter-spacing: inherit; }
.title { font-family: inherit; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.appname { font-weight: 800; letter-spacing: -.01em; }
.tabs button { font-size: 15px; font-weight: 700; letter-spacing: -.01em; padding: 8px 12px; }
.tabs button.on { color: #fff; }
.time, .marks .mt, .recstate .time { font-family: inherit; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0; }
.cap { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text3); }
.badge { font-size: 11.5px; font-weight: 700; letter-spacing: .01em; padding: 3px 9px; border-radius: 999px; }
.bpm, .key { letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .v { font-weight: 700; font-variant-numeric: tabular-nums; }
button.ghost, select.ghost, select, input[type=search], input[type=number] { border-radius: 12px; font-weight: 600; font-size: 14px; }
button.primary, label.primary { font-weight: 700; letter-spacing: -.005em; border-radius: 14px; }
.pills button { font-size: 14.5px; font-weight: 700; letter-spacing: -.005em; border-radius: 12px; }
.card { border-radius: 18px; }

/* song rows: one clean line of name, one quiet line of facts, never wider than the screen */
.list li { padding: 11px 4px; gap: 12px; }
.list li .name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.list li .sub { font-size: 12.5px; font-weight: 500; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.list li .thumb { width: 44px; height: 44px; border-radius: 11px; }
.list li .more { width: 36px; height: 36px; font-size: 15px; background: transparent; border-color: transparent; color: var(--text3); flex: none; }
.faint { font-size: 12.5px; font-weight: 500; }

/* menus: inside the screen, scroll when long, text wraps */
.sheet { left: 0; right: 0; max-width: 100vw; max-height: 82vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 12px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.55); }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line2); margin: 2px auto 8px; }
.sheet button { white-space: normal; overflow-wrap: anywhere; font-size: 15.5px; font-weight: 600; letter-spacing: -.005em;
  padding: 14px 10px; border-radius: 12px; border-bottom: 0; line-height: 1.3; }
.sheet button:active { background: var(--panel2); }
.sheet button + button { border-top: 1px solid var(--line); }
.sheet button.danger { color: #FCA5A5; }
.sheet button:last-child { color: var(--text3); text-align: center; margin-top: 4px; }
.sheet .sheettitle { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); font-weight: 600; font-size: 14px; }
.dlgbox b { font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.lyrics { font-size: 17px; font-weight: 500; }
.lyrics .l.now { font-weight: 800; }

/* transport: the eight small controls as one tidy 4 x 2 grid */
.transport { justify-content: space-between; }
.buttons.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; margin: 4px 0 0; }
.tgrid > * { width: 100%; height: 40px; min-width: 0; padding: 0 6px; border-radius: 12px; font-size: 14px; font-weight: 700; text-align: center; text-align-last: center; }
.tgrid button.mark { height: 40px; }
.tgrid > button.mark { width: 100%; }
.sheet button { border-radius: 0; }
.sheet button:active { border-radius: 12px; }
#dlgYes.danger { background: #DC2626; }
.dlgbox .faint { font-size: 14px; color: var(--text2); line-height: 1.45; }

/* ================================================================ 2.0 layout
   Library first. A small player at the bottom; Now Playing full screen with
   Listen (artwork, controls, lyrics) and Studio (waveform + production tools).
   Few boxes, no borders where spacing does the job. */
[hidden] { display: none !important; }
body { background: radial-gradient(120% 60% at 50% -10%, #231c5c 0%, rgba(11,10,31,0) 60%), var(--bg); background-attachment: fixed; min-height: 100vh; }
body.hasmini { padding-bottom: 92px; }
body.npopen { overflow: hidden; }
.spacer { flex: 1; }

/* header */
.top { position: sticky; top: 0; z-index: 5; gap: 12px; padding: 12px 16px 10px; padding-top: calc(12px + env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(11,10,31,.96) 70%, rgba(11,10,31,0)); }
.logo { width: 32px; height: 32px; border-radius: 10px; }
.tabs { gap: 4px; }
.tabs button { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--text4); padding: 4px 6px; border: 0; }
.tabs button.on { color: #fff; border: 0; }
.addbtn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 500; line-height: 1;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6, #EC4899); color: #fff; cursor: pointer; flex: none; box-shadow: 0 4px 16px rgba(139,92,246,.4); }
.addbtn input, .herobtn input { display: none; }
button.install { background: var(--panel2); border-radius: 999px; padding: 7px 12px; font-size: 13px; }
@media (max-width: 420px) { .top .install { margin-right: 0; } }

/* pages */
.page { padding: 0 16px 28px; gap: 0; }
.searchbar input { width: 100%; height: 44px; border-radius: 14px; border: 0; background-color: rgba(255,255,255,.07); padding: 0 14px 0 40px; font-size: 15px; font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239592BF' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M12.5 12.5 17 17'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 13px center; }
.searchbar input::placeholder { color: var(--text4); }
.shelf h2, .libhead h2 { font-size: 20px; font-weight: 800; letter-spacing: -.025em; margin: 24px 0 12px; }
.libhead { display: flex; align-items: baseline; justify-content: space-between; }
.textbtn { background: none; border: 0; color: #A5B4FC; font-weight: 700; font-size: 14px; padding: 6px 2px; }
.hero { margin-top: 18px; padding: 22px 18px; border-radius: 22px; background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(139,92,246,.35) 50%, rgba(236,72,153,.35)); }
.herotitle { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.herotext { color: var(--text2); margin: 8px 0 16px; font-size: 14.5px; }
label.primary.herobtn { background: #fff; color: #1B1A42; }

/* shelves of tiles */
.tiles { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x proximity; }
.tiles::-webkit-scrollbar { display: none; }
.tile { flex: none; width: 136px; background: none; border: 0; padding: 0; text-align: left; color: var(--text); scroll-snap-align: start; }
.tile .art { width: 136px; height: 136px; border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.tiles.small .tile { width: 104px; } .tiles.small .tile .art { width: 104px; height: 104px; border-radius: 14px; }
.tile .art span { font-size: 34px; font-weight: 800; color: rgba(255,255,255,.92); }
.tile .art.fav { background: linear-gradient(135deg, #EC4899, #8B5CF6); }
.tile .art.add { background: transparent; border: 2px dashed var(--line2); box-shadow: none; } .tile .art.add span { color: var(--text3); font-weight: 400; }
.tile .tname { font-weight: 700; font-size: 14px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.tile .tsub { color: var(--text3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* library list */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 6px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; white-space: nowrap; border: 0; background: rgba(255,255,255,.07); color: var(--text2); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13.5px; }
.chips button.on { background: #fff; color: #15133A; }
#listTabs { display: contents; }
.library .faint { margin: 6px 0 4px; }
.list li { border-bottom: 0; padding: 8px 6px; margin: 0 -6px; border-radius: 12px; }
.list li:active { background: rgba(255,255,255,.05); }
.list li .thumb { width: 50px; height: 50px; border-radius: 10px; background-size: cover; background-position: center; }
.list li.now { background: rgba(139,92,246,.14); } .list li.now .name { color: #C4B5FD; }
.footlinks { text-align: center; margin-top: 18px; }

/* recordings: the record button first */
.recstart { display: flex; flex-direction: column; align-items: center; padding: 26px 0 6px; }
.recround { width: 116px; height: 116px; border-radius: 50%; border: 4px solid rgba(239,68,68,.35); background: transparent; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(239,68,68,.35); padding: 0; }
.recround span { width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F87171, #DC2626 70%); display: block; transition: transform .15s; }
.recround:active span { transform: scale(.92); }
.reccap { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-top: 14px; }
.recstart .faint { margin-top: 2px; }
#recList li .thumb.rec { width: 44px; height: 44px; border-radius: 50%; }

/* mini player */
.mini { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 6; height: 64px; margin: 0; gap: 12px;
  display: flex; align-items: center; padding: 0 8px; border-radius: 18px; overflow: hidden;
  background: rgba(36, 33, 84, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 36px rgba(0,0,0,.5); cursor: pointer; }
.miniprog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.08); }
.miniprog div { height: 100%; width: 0; background: linear-gradient(90deg, #3B82F6, #EC4899); }
.minicover { width: 48px; height: 48px; border-radius: 10px; flex: none; background-size: cover !important; background-position: center !important; }
.minitext { flex: 1; min-width: 0; }
.minititle { font-weight: 800; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.minisub { color: var(--text3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miniplay { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #15133A; font-size: 17px; flex: none; }
body.selecting .mini { display: none; }

/* Now Playing */
.np { position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column;
  background: radial-gradient(120% 70% at 50% 0%, #2c2470 0%, #120f33 55%, #0B0A1F 100%); animation: npup .22s ease-out; }
@keyframes npup { from { transform: translateY(40px); } }
.nptop { display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); }
.npclose, .npicon { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 19px; flex: none; }
.npclose { font-size: 24px; line-height: 1; }
.npicon.heart { background: transparent; font-size: 22px; }
.seg { flex: 1; display: flex; justify-content: center; }
.seg button { border: 0; background: rgba(255,255,255,.07); color: var(--text3); font-weight: 700; font-size: 14px; padding: 8px 18px; }
.seg button:first-child { border-radius: 999px 0 0 999px; } .seg button:last-child { border-radius: 0 999px 999px 0; }
.seg button.on { background: #fff; color: #15133A; }
.npreclabel { display: none; flex: 1; text-align: center; font-weight: 800; color: #FCA5A5; letter-spacing: .04em; }
.npscroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); }
.nphead { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.nphead .cover { width: min(76vw, 340px); height: min(76vw, 340px); border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.55); margin: 10px 0 22px; background-size: cover !important; background-position: center !important; }
.nphead .hcol { width: 100%; }
.nphead .hrow { justify-content: center; position: relative; padding: 0 44px; }
.nphead .hrow .heart { position: absolute; right: 0; top: -6px; }
.nphead .title { font-size: 24px; font-weight: 800; letter-spacing: -.03em; flex: none; max-width: 100%; }
.npartist { color: var(--text2); font-weight: 600; font-size: 15.5px; margin-top: 2px; min-height: 4px; }
.nphead .badges { justify-content: center; margin-top: 10px; }
.badge { padding: 3px 9px; font-size: 11px; opacity: .92; }
.transport { display: block; margin: 18px 0 0; }
.seekbar { width: 100%; margin: 0; height: 22px; -webkit-appearance: none; appearance: none; background: transparent; }
.seekbar::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); }
.seekbar::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; margin-top: -5.5px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.times { display: flex; justify-content: space-between; color: var(--text3); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.controls { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 4px; }
.ctl { width: 48px; height: 48px; border: 0; background: none; color: var(--text3); font-size: 20px; border-radius: 50%; padding: 0; }
.ctl.big { font-size: 26px; color: #fff; }
.ctl.on { color: #A5B4FC; text-shadow: 0 0 12px rgba(165,180,252,.6); }
.controls .play { width: 74px; height: 74px; font-size: 28px; background: #fff; color: #15133A; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.lyrblock { margin-top: 22px; background: rgba(255,255,255,.05); border-radius: 20px; padding: 14px 16px; }
.lyrhead { display: flex; align-items: center; gap: 10px; }
.lyrhead h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.lyrhead .faint { margin: 0; }
.lyrics { max-height: none; font-size: 19px; line-height: 1.55; font-weight: 600; padding: 8px 0 4px; }
.lyrics .l { color: rgba(255,255,255,.55); padding: 2px 0; }
.lyrics .l.now { color: #fff; background: none; font-weight: 800; }

/* Listen vs Studio */
.np:not(.studio) .studio-only { display: none; }
.np.studio .listen-only { display: none; }
.np.studio .nphead { flex-direction: row; text-align: left; gap: 12px; align-items: center; }
.np.studio .nphead .cover { width: 56px; height: 56px; border-radius: 12px; margin: 0; box-shadow: none; }
.np.studio .nphead .hrow { justify-content: flex-start; padding: 0 40px 0 0; }
.np.studio .nphead .title { font-size: 18px; }
.np.studio .nphead .badges { justify-content: flex-start; margin-top: 4px; }
.np.studio .npartist { font-size: 13.5px; }
.np.studio .transport { margin-top: 6px; }
.np.studio .controls .play { width: 60px; height: 60px; font-size: 22px; }
.wavecard { padding: 0; margin-top: 14px; background: none; border: 0; }
#wave { height: 170px; border-radius: 14px; }
.tgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.tgrid > * { width: 100%; height: 38px; min-width: 0; padding: 0 2px; border-radius: 10px; font-size: 13px; font-weight: 700; text-align: center; text-align-last: center; }
.tgrid > button.mark { width: 100%; height: 38px; }
.toolsbox { margin-top: 18px; }
.toolsbox .chips { margin: 0 -20px 10px; padding: 0 20px; }
.toolsbox .tab { background: rgba(255,255,255,.05); border-radius: 18px; padding: 14px; }
.toolsbox .tab:not(.on) { display: none; }
.mini2 { display: flex; gap: 6px; margin-left: auto; }



.toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
.selbar { z-index: 7; }

/* ================================================================ the recorder (Recordings page) */
.gear { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.07); color: var(--text2); display: flex; align-items: center; justify-content: center; padding: 0; flex: none; }
body.onrecs .addbtn { display: none; }
.recchips { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.07); color: var(--text); font-weight: 650; font-size: 14px; min-width: 0; }
.chip svg { color: #C4B5FD; flex: none; }
.chip #recInputName { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .caret { color: var(--text3); font-size: 16px; margin-top: -6px; }
#recInputBtn { flex: 1; max-width: 62%; }
.chip.quiet { margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.12); color: var(--text2); font-size: 13px; white-space: nowrap; }
.chip:disabled { opacity: .55; }
.reccard { margin-top: 14px; padding: 16px 16px 14px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.recstatus { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--text3); display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 18px; }
.reccard.live .recstatus { color: #FB7185; font-size: 15px; letter-spacing: .06em; }
.reccard.paused .recstatus { color: var(--amber); font-size: 15px; letter-spacing: .06em; }
.recstatus .recdot { width: 11px; height: 11px; }
.rectimer { text-align: center; font-size: 44px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0 10px; line-height: 1.1; }
.reccard.live .rectimer, .reccard.paused .rectimer { font-size: 52px; }
#recWave { width: 100%; height: 150px; display: block; }
.levelrow { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 8px; }
.levelrow .cap { font-size: 11px; }
.recpeak { color: var(--text2); font-size: 13px; font-variant-numeric: tabular-nums; min-width: 0; }
.recpeak b { color: #fff; font-weight: 800; }
.recpeak .clip { color: #fff; background: #DC2626; border-radius: 6px; padding: 1px 6px; font-weight: 800; font-size: 11px; margin-left: 4px; }
#recMeter { width: 100%; height: 22px; display: block; }
.faint.center { text-align: center; margin-top: 10px; }
.recidle { display: flex; flex-direction: column; align-items: center; padding: 22px 0 4px; }
.micbtn { width: 96px; height: 96px; border-radius: 50%; border: 0; padding: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #FB7185, #E11D48 70%); box-shadow: 0 0 0 10px rgba(225,29,72,.16), 0 12px 34px rgba(225,29,72,.45); transition: transform .12s; }
.micbtn:active { transform: scale(.94); }
.reccap { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-top: 18px; }
.recidle .faint { margin-top: 2px; }
.recctl { display: flex; justify-content: space-around; align-items: flex-start; padding: 22px 6px 6px; }
.recctl .rc { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text2); width: 92px; }
.roundbtn { width: 68px; height: 68px; border-radius: 50%; border: 2px solid rgba(255,255,255,.28); background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; margin-top: 8px; }
.stopbtn { width: 84px; height: 84px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #FB7185, #E11D48 70%); box-shadow: 0 0 0 8px rgba(225,29,72,.16), 0 10px 30px rgba(225,29,72,.45); display: flex; align-items: center; justify-content: center; padding: 0; }
.stopbtn span { width: 28px; height: 28px; border-radius: 6px; background: #fff; }
.recpanel { margin-top: 16px; padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.05); }
.recpanel h3 { margin: 0 0 10px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.recpanel .libhead h3 { margin: 0; }
.recpanel .libhead { align-items: center; margin-bottom: 8px; }
.chipbtn { border: 1px solid rgba(165,180,252,.5); background: transparent; color: #C4B5FD; font-weight: 700; font-size: 13.5px; border-radius: 999px; padding: 6px 14px; }
.recmarks { list-style: none; margin: 0; padding: 0; }
.recmarks li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; }
.recmarks li + li { border-top: 1px solid rgba(255,255,255,.06); }
.recmarks .mt { color: var(--text2); font-weight: 650; font-variant-numeric: tabular-nums; font-size: 14px; }
.recmarks input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-size: 15px; font-weight: 600; padding: 4px 0; }
.recmarks button { background: none; border: 0; color: var(--text4); font-size: 15px; padding: 4px 6px; }
.recmarks li.muted { font-size: 13.5px; }
.namefield { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 14px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: var(--text3); }
.namefield input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-size: 16px; font-weight: 600; outline: none; }
.textbtn.danger { color: #FCA5A5; margin-top: 10px; }
#recLibrary .libhead h2 { margin-top: 26px; }
#recList li .thumb.rec { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #6D28D9, #A21CAF); display: flex; align-items: center; justify-content: center; }
.rowplay { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(196,181,253,.6); background: transparent; color: #fff; font-size: 14px; flex: none; padding: 0 0 0 2px; }
body.recording .mini { display: none; }
.tiles { scroll-padding-left: 16px; }
.tabs button { font-size: 21px; padding: 4px 5px; }
@media (max-width: 420px) { #installBtn { display: none; } }
.ctl#shuffle, .ctl#shuffle.on, .ctl#repeat { background: none; border: 0; }
.npclose, .npicon { display: flex; align-items: center; justify-content: center; padding: 0; }

/* ================================================================ markers & notes */
.seekwrap { position: relative; padding-top: 12px; }
.seekmarks { position: absolute; left: 8px; right: 8px; top: 0; height: 14px; }
.seekmarks button { position: absolute; top: 0; width: 22px; height: 22px; margin-left: -11px; border: 0; padding: 0; background: transparent; }
.seekmarks button::after { content: ""; position: absolute; left: 10px; top: 1px; width: 2px; height: 12px; background: var(--c); border-radius: 1px; }
.seekmarks button::before { content: ""; position: absolute; left: 12px; top: 1px; border-left: 8px solid var(--c); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
.mkbar { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.mktoggle { flex: 1; display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); padding: 8px 0; font-weight: 800; font-size: 16px; letter-spacing: -.015em; text-align: left; }
.mktoggle b { background: rgba(255,255,255,.1); color: var(--text2); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 800; }
.mktoggle .chev { color: var(--text3); font-size: 15px; }
.mkadd { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(90deg, #8B5CF6, #EC4899); box-shadow: 0 6px 18px rgba(236,72,153,.35); }
.mkadd:active { transform: scale(.96); }
.mkpanel { margin-top: 6px; background: rgba(255,255,255,.05); border-radius: 18px; padding: 4px 12px 8px; }
.mklist, .recmarks { list-style: none; margin: 0; padding: 0; }
.mklist li, .recmarks li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.mklist li + li, .recmarks li + li { border-top: 1px solid rgba(255,255,255,.06); }
.mkt { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 0; background: rgba(255,255,255,.06); color: var(--c); border-radius: 999px; padding: 6px 10px; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.mkt span { color: #fff; }
.mkn { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: var(--text); font-size: 14.5px; font-weight: 550; padding: 6px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkn .mkc { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-right: 8px; }
.mkn .faint { font-size: 14px; margin: 0; }
.mkx { flex: none; background: none; border: 0; color: var(--text4); font-size: 14px; padding: 6px 4px; }
.mklist .mkempty { display: block; color: var(--text3); font-size: 13.5px; line-height: 1.45; padding: 10px 2px; }
.mkfoot { display: flex; justify-content: space-between; padding-top: 4px; }
.mkfoot .textbtn:disabled { opacity: .35; }
.mkdot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
/* the editor: a strip at the bottom, no backdrop, nothing stops */
.mkedit { position: fixed; left: 0; right: 0; bottom: 0; z-index: 14; background: #1E1B4B; border-radius: 20px 20px 0 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 40px rgba(0,0,0,.55); animation: npup .18s ease-out; }
.mkehead { display: flex; align-items: center; gap: 10px; }
.mketime { border: 0; background: none; color: #fff; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; padding: 2px 0; }
.mkecats { display: flex; gap: 6px; margin: 10px 0; overflow-x: auto; scrollbar-width: none; }
.mkecats button { flex: none; border: 1.5px solid var(--c); background: transparent; color: var(--c); border-radius: 999px; padding: 6px 13px; font-weight: 800; font-size: 13px; }
.mkecats button.on { background: var(--c); color: #12102E; }
#mkeText { width: 100%; background: rgba(0,0,0,.28); border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); border-radius: 12px; padding: 10px 12px; color: #fff; font-size: 16px; font-weight: 500; resize: none; line-height: 1.4; }
#mkeText:focus { outline: none; box-shadow: inset 0 0 0 1.5px #A78BFA; }
.mkemove { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mkemove .faint { margin: 0 2px 0 0; }
.mkemove button[data-d] { border: 0; background: rgba(255,255,255,.08); color: var(--text2); border-radius: 9px; padding: 6px 9px; font-weight: 700; font-size: 12.5px; }
.mkemove .textbtn.danger { margin: 0; }
/* tapping a flag */
.mkpop { position: fixed; left: 16px; right: 16px; z-index: 13; background: #262163; border-radius: 16px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(0,0,0,.55); }
.mkprow { display: flex; align-items: center; gap: 8px; }
.mkprow b { font-size: 16px; font-variant-numeric: tabular-nums; }
.mkpcat { color: var(--text3); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.mkptext { margin: 6px 0 10px; font-size: 15px; line-height: 1.4; color: #fff; overflow-wrap: anywhere; }
.mkptext .faint { font-size: 14px; }
.mkpbtns { display: flex; gap: 8px; }
.mkpbtns button { border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 13.5px; background: rgba(255,255,255,.1); color: #fff; }
.mkpbtns button:first-child { background: #fff; color: #15133A; }
/* the snack bar */
.snack { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 15; display: flex; align-items: center; gap: 12px;
  background: #F5F3FF; color: #15133A; border-radius: 14px; padding: 10px 10px 10px 16px; font-weight: 700; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.5); animation: npup .16s ease-out; }
.snack span { flex: 1; min-width: 0; }
.snack button { border: 0; background: #7C3AED; color: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 800; font-size: 13.5px; flex: none; }
.tgrid select { -webkit-appearance: none; appearance: none; background-image: none; padding: 0 4px; }

/* scrolling: only the page scrolls. (overflow-x: hidden on html AND body made the body its own
   scroll box; with overscroll-behavior: none a finger swipe never reached the page.) */
html, body { overflow-x: visible; overscroll-behavior: auto; }
body { overflow-x: clip; }
html { overscroll-behavior-y: none; }
/* header: the page names give way, the gear and + always fit (also with large phone fonts) */
.top .spacer { display: none; }
.top .tabs { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top .tabs::-webkit-scrollbar { display: none; }
.tabs button { font-size: 20px; flex: none; }
.top { gap: 10px; }
@media (max-width: 400px) { .top .logo { display: none; } }
/* a playlist / Favourites / artist / album on its own */
body.drill #recentShelf, body.drill #listShelf, body.drill #views, body.drill .searchbar { display: none; }
body.drill #tab-songs .libhead h2 { margin-top: 10px; }
#libTitle { display: flex; align-items: center; gap: 4px; min-width: 0; }
#libName { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.libback { border: 0; background: rgba(255,255,255,.08); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 26px; line-height: 1; padding: 0 0 4px; margin-right: 6px; flex: none; }
#recInfo.warn { color: #fff; background: rgba(220,38,38,.85); border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 13.5px; line-height: 1.35; }
/* selection bar: two rows, the two removals spelled out */
.selbar { flex-direction: column; align-items: stretch; gap: 8px; }
.selrow { display: flex; align-items: center; gap: 8px; }
.selrow #selCount { flex: 1; font-weight: 700; white-space: nowrap; }
.selrow.two button { flex: 1; height: 46px; border-radius: 12px; font-weight: 800; font-size: 14.5px; }
.selrow.two .danger { background: #B91C1C; border: 0; color: #fff; }
.selrow button:disabled { opacity: .4; }
body.selecting { padding-bottom: 140px; }
/* the header is solid: content never shows through it */
.top { background: rgba(11,10,31,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
/* lists: a track number instead of a placeholder square, tighter rows */
.list li { padding: 9px 6px; gap: 12px; }
.list li .num { width: 30px; flex: none; text-align: right; color: var(--text4); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.list li.now .num { color: #C4B5FD; font-size: 16px; }
.list li .name { font-size: 15px; }
.list li .sub { font-size: 12.5px; margin-top: 0; }
.list li.grouprow { padding: 12px 6px; }
/* lists start at the page margin: no indent before the numbers */
.list li { margin: 0; padding: 9px 0; gap: 10px; border-radius: 0; }
.list li .num { width: var(--numw, 2ch); text-align: left; font-size: 13.5px; }
.list li.now { background: none; }
.list li.now .num { font-size: 14px; }
.list li .more { width: 30px; margin-right: -6px; }
/* the dim backdrop behind a menu: tapping it closes the menu */
.shade { display: none; position: fixed; inset: 0; z-index: 9; background: rgba(5, 4, 15, .55); }
#sheet.on ~ .shade { display: block; }
/* menus: no tall empty strip under Cancel */
.sheet { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
.sheet button:last-child { padding: 12px 10px; margin-top: 2px; }

/* the mini player as drawn: equaliser, title + format · length, thin icons, pink line */
.mini { height: 62px; gap: 12px; padding: 0 10px 4px 16px; border-radius: 16px; background: rgba(28, 20, 66, .96); }
.minieq { display: flex; align-items: center; gap: 2px; width: 20px; height: 22px; flex: none; }
.minieq span { flex: 1; height: 30%; border-radius: 1.5px; background: linear-gradient(180deg, #F472B6, #A855F7); }
.minieq span:nth-child(2) { height: 70%; } .minieq span:nth-child(3) { height: 100%; } .minieq span:nth-child(4) { height: 55%; } .minieq span:nth-child(5) { height: 35%; }
.mini.playing .minieq span { animation: eqbar .9s ease-in-out infinite alternate; }
.mini.playing .minieq span:nth-child(2) { animation-delay: -.3s; } .mini.playing .minieq span:nth-child(3) { animation-delay: -.6s; }
.mini.playing .minieq span:nth-child(4) { animation-delay: -.15s; } .mini.playing .minieq span:nth-child(5) { animation-delay: -.45s; }
@keyframes eqbar { 0% { height: 20%; } 100% { height: 100%; } }
.minititle { font-size: 14px; font-weight: 700; }
.minisub { font-size: 12px; margin-top: 1px; }
.minibtn { width: 38px; height: 38px; border: 0; background: none; padding: 0; display: flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; }
.minibtn:active { background: rgba(255,255,255,.08); }
.miniprog { left: 14px; right: 14px; bottom: 7px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.miniprog div { background: #EC4899; border-radius: 2px; }
/* docked, not floating: the bar sits on the bottom edge, the page ends above it */
.mini { left: 0; right: 0; bottom: 0; border-radius: 16px 16px 0 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: calc(4px + env(safe-area-inset-bottom));
  background: #1C1442; box-shadow: 0 -6px 20px rgba(0,0,0,.45); backdrop-filter: none; -webkit-backdrop-filter: none; }
.miniprog { bottom: calc(7px + env(safe-area-inset-bottom)); }
body.hasmini { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
body.hasmini .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
body.hasmini .snack { bottom: calc(76px + env(safe-area-inset-bottom)); }
/* the waveform on the home screen */
.homewave { margin: 4px 0 14px; }
.homewave #wave { height: 132px; border-radius: 14px; }
.waveslot { min-height: 10px; }
/* home: a big waveform with Tempo and Key right under it; no tile shelves */
#recentShelf, #listShelf { display: none !important; }
.homewave #wave { height: 190px; }
.homemix { margin: -4px 0 6px; padding: 10px 12px 4px; border-radius: 16px; background: rgba(255,255,255,.04); }
.homemix .row { margin: 4px 0 8px; gap: 10px; }
.homemix .row label { min-width: 48px; font-weight: 700; color: var(--text2); }
.homemix #keyResult { color: var(--cyan); font-weight: 700; }
.homemix #rowChange { margin: 0 0 6px; }
.homemix #rowChange .status { font-size: 12.5px; }
.homemix .ghost { min-width: 40px; height: 36px; padding: 0 12px; font-size: 18px; }
.homemix #resetChange { font-size: 13px; height: 30px; }
#listTabs button[data-pl="new"] { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); }

/* the play row under the home waveform */
.htrans { display: flex; align-items: center; gap: 6px; margin: -6px 0 12px; }
.htrans .htime { flex: 1; color: var(--text3); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.htrans .htime b { color: #fff; font-weight: 700; }
.hbtn { width: 44px; height: 44px; border: 0; background: none; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.hbtn:active { background: rgba(255,255,255,.08); }
.hbtn.hplay { width: 56px; height: 56px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.controls #npStop { font-size: 18px; color: #fff; }
.mini.loading .minisub { color: #C4B5FD; animation: blink 1.2s infinite; }

/* BPM beside the tempo %: tap it to type a tempo */
#rowTempo { flex-wrap: nowrap; }
#rowTempo input[type=range] { min-width: 0; }
#rowTempo #speedval { min-width: 44px; text-align: right; }
.bpmchip { border: 0; background: rgba(249,115,22,.16); color: #FDBA74; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 6px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }
/* a reset at the end of each row; the shared Reset row only in Studio */
.rst { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--text4); display: flex; align-items: center; justify-content: center; padding: 0; flex: none; margin-left: auto; }
.rst.on { color: #fff; background: rgba(255,255,255,.1); }
#rowKey { flex-wrap: nowrap; }
#rowKey #keyResult { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.homemix #rowChange #resetChange { display: none; }
.homemix #rowChange { margin: 0; min-height: 0; }
.homemix #rowChange:has(#changeStatus:empty) { display: none; }
.homemix .ghost { min-width: 36px; height: 34px; padding: 0 10px; }
#keyResult.moved { color: #F0ABFC; }
/* play buttons: saturated bright orange */
.hbtn.hplay, .controls .play { background: #FF6A00; background: radial-gradient(circle at 35% 30%, #FF9A3C, #FF6A00 65%); color: #fff; box-shadow: 0 8px 22px rgba(255,106,0,.45); }
.controls .play { color: #fff; }
.rowplay { border-color: #FF7A1A; color: #FF7A1A; }
.hbtn.hplay, .controls .play { background: #FF6A00; box-shadow: 0 8px 24px rgba(255,106,0,.55); }
.homemix #speedval { display: none; }
.homemix .row label { min-width: 40px; }

/* Cut */
.hbtn.hcut { width: 40px; }
.cutbar { margin: -4px 0 12px; padding: 12px; border-radius: 16px; background: rgba(255,106,0,.08); box-shadow: inset 0 0 0 1px rgba(255,122,26,.35); }
.cutrow { display: flex; gap: 8px; align-items: center; }
.cutrow + .cutrow { margin-top: 8px; }
.cutmark { flex: 1; height: 40px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.18); background: transparent; color: #fff; font-weight: 800; font-size: 14px; }
.cutmark.on { border-color: #FF7A1A; color: #FFB27A; background: rgba(255,122,26,.12); }
.cutinfo { margin: 8px 2px 0; color: var(--text2); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cutbtn { flex: 1; height: 42px; border-radius: 12px; border: 0; background: rgba(255,255,255,.08); color: #fff; font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.cutbtn.keep { background: #FF6A00; }
.cutbtn.on { background: rgba(255,122,26,.3); }
.cutbtn:disabled { opacity: .4; }
.cutfoot { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cutfoot .status { font-size: 12.5px; color: var(--text3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hometools { margin: 0 -16px 4px; padding: 0 16px; }
.hometools button { background: rgba(255,255,255,.06); color: var(--text2); font-size: 13px; padding: 7px 13px; }
/* the heart in each row: outline, or saturated red when it is a favourite */
.list li .fav { width: 30px; height: 30px; border: 0; background: none; padding: 0; flex: none; display: flex; align-items: center; justify-content: center; margin: 0 -4px 0 -4px; }
.list li .fav svg { fill: none; stroke: var(--text4); stroke-width: 1.8; }
.list li .fav.on svg { fill: #FF1744; stroke: #FF1744; filter: drop-shadow(0 0 6px rgba(255,23,68,.5)); }
.list li .fav:active svg { transform: scale(.85); }
.sheet .sheettitle { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
/* the format, colour-coded */
.ft { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; margin-right: 7px; vertical-align: 1px; color: #0B0A1F; }
.ft-wav { background: #38BDF8; }
.ft-mp3 { background: #F472B6; }
.ft-flac { background: #A78BFA; }
.ft-m4a { background: #FBBF24; }
.ft-ogg { background: #34D399; }
.ft-aif { background: #2DD4BF; }
.ft-other { background: #94A3B8; }
/* numbers never clipped: equal-width digits, a little spare room, nothing overlapping them */
.list li .num { width: auto; min-width: calc(var(--numw, 2ch) + 3px); overflow: visible; white-space: nowrap; font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }
.list li .fav { margin: 0 -2px 0 0; }
/* number and heart side by side with a small gap; the titles still start in one column */
.list li .nf { display: flex; align-items: center; gap: 3px; flex: none; width: calc(var(--numw, 2ch) + 30px); }
.list li .nf .num { min-width: 0; width: auto; }
.list li .nf .fav { width: 24px; margin: 0; }
/* compact: number, heart and title close together */
.list li { gap: 6px; }
.list li .nf { width: auto; gap: 2px; }
.list li .nf .num { min-width: 0; }
.list li .nf .fav { width: 20px; height: 26px; }
.list li .nf .fav svg { width: 18px; height: 18px; }
/* hearts are red */
.redheart { color: #FF1744; }
.npicon.heart { color: #FF1744; }

/* glossy, saturated orange balls: play, back, forward */
.gloss { position: relative; overflow: hidden; border: 0 !important; border-radius: 50% !important; color: #fff;
  background: radial-gradient(120% 95% at 50% 0%, #FFC277 0%, #FF8A12 36%, #FF5F00 72%, #E84800 100%) !important;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.75), inset 0 -3px 7px rgba(140,30,0,.45), 0 5px 16px rgba(255,90,0,.6) !important; }
.gloss::before { content: ""; position: absolute; left: 14%; right: 14%; top: 4%; height: 44%; border-radius: 50% 50% 46% 46%;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.08)); pointer-events: none; }
.gloss svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(120,30,0,.45)); }
.gloss:active { filter: brightness(1.08); transform: scale(.95); }
/* sizes */
.hbtn.gloss { width: 42px; height: 42px; }
.hbtn.hplay.gloss { width: 58px; height: 58px; }
.minibtn.gloss { width: 34px; height: 34px; margin-left: 4px; }
.minibtn.gloss.mplay { width: 40px; height: 40px; }
.controls .ctl.gloss { width: 50px; height: 50px; }
.controls .play.gloss { width: 76px; height: 76px; }
.np.studio .controls .play.gloss { width: 62px; height: 62px; }
.htrans .hcut { margin: 0 4px 0 -8px; }
/* the song's name at the top of the home screen */
.hometitle { margin: 2px 0 8px; }
.hometitle .htname { font-size: 19px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hometitle .htsub { color: var(--text3); font-size: 12.5px; font-weight: 500; margin-top: 2px; }
/* the song's own tempo and key: bright teal; a changed value: bright yellow */
.bpmchip { color: #19F0DC; background: rgba(25,240,220,.14); }
.bpmchip.moved { color: #FFE600; background: rgba(255,230,0,.16); }
#keyResult { color: #19F0DC; font-weight: 800; }
#keyResult.moved { color: #FFE600; }
.homemix #keyResult { color: #19F0DC; }
.homemix #keyResult.moved { color: #FFE600; }
/* lyrics on the home screen: about ten lines, following the song */
.homelyrics { margin: 0 0 12px; }
.homelyrics .lyrblock { margin-top: 0; }
.homelyrics .lyrics { max-height: 300px; overflow-y: auto; font-size: 17px; scroll-behavior: smooth; }
.hometitle .hbpm { color: #19F0DC; font-weight: 800; }
.hometitle .hbpm.moved { color: #FFE600; }
/* the song's name at the top: lighter weight, its own color */
.hometitle .htname { font-weight: 600; color: #C4B5FD; letter-spacing: -.01em; font-size: 18.5px; }
/* play / pause at the top: a wide glossy pill */
.hbtn.hplay.gloss { width: 116px; height: 56px; border-radius: 999px !important; }
.hbtn.hplay.gloss::before { left: 8%; right: 8%; border-radius: 999px; }
.htrans { gap: 8px; }
/* ±10 s on the waveform itself */
.wavebox { position: relative; }
.wskip { position: absolute; top: 50%; transform: translateY(-40%); width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(11,10,31,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; opacity: .9; z-index: 2; }
.wskip:active { transform: translateY(-40%) scale(.92); background: rgba(255,106,0,.55); }
.wskip.back { left: 6px; } .wskip.fwd { right: 6px; }
.tgrid { grid-template-columns: repeat(4, 1fr); }

/* lyrics: words turn orange as they are sung */
.lyrics .w { transition: color .12s; }
.lyrics .l.now .w.sung { color: #FF7A1A; text-shadow: 0 0 10px rgba(255,122,26,.45); }
.lyrics .l.next { color: #fff; background: rgba(255,122,26,.12); border-radius: 8px; }
/* the box height is draggable */
.homelyrics .lyrics, .lyrblock .lyrics { max-height: var(--lyrh, 300px); overflow-y: auto; }
.lyrhandle { height: 22px; display: flex; align-items: center; justify-content: center; cursor: ns-resize; touch-action: none; margin-top: 2px; }
.lyrhandle span { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); }
.lyrhandle:active span { background: #FF7A1A; }
/* Sync: tap along to time the lines */
.syncbar { margin: 8px 0 4px; padding: 10px; border-radius: 14px; background: rgba(255,122,26,.08); box-shadow: inset 0 0 0 1px rgba(255,122,26,.35); }
.syncbar .faint { margin: 0 0 8px; color: var(--text2); }
.syncrow { display: flex; gap: 8px; align-items: center; }
.syncrow .cutbtn { flex: 2; }
.syncrow .ghost { flex: 1; height: 42px; }
/* heart and ⋯ beside the song's name */
.hometitle { display: flex; align-items: center; gap: 6px; }
.hometitle .htcol { flex: 1; min-width: 0; }
.htbtn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.07); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; padding: 0; flex: none; }
.htbtn.fav svg { width: 20px; height: 20px; fill: none; stroke: #FF1744; stroke-width: 1.9; }
.htbtn.fav.on svg { fill: #FF1744; filter: drop-shadow(0 0 6px rgba(255,23,68,.5)); }
/* Tools row: fits large phone fonts */
.tgrid > * { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#speedBtn.on { border-color: #FFE600; color: #FFE600; }
/* repeat: a loop of two arrows (not the ↺ reset); colored when on */
.ctl#repeat { color: var(--text3); display: flex; align-items: center; justify-content: center; }
.ctl#repeat.on { color: #FF8A1E; text-shadow: none; filter: drop-shadow(0 0 6px rgba(255,138,30,.5)); }

/* home play row: cut, shuffle, back, PLAY, forward, repeat; the time on the waveform */
.htrans { justify-content: space-between; gap: 4px; }
.hbtn.hplay.gloss { width: 96px; }
.hbtn.hmode { width: 36px; height: 36px; color: var(--text3); }
.hbtn.hmode.on { color: #FF8A1E; filter: drop-shadow(0 0 6px rgba(255,138,30,.5)); }
.ctl#shuffle { display: flex; align-items: center; justify-content: center; color: var(--text3); }
.ctl#shuffle.on { color: #FF8A1E; filter: drop-shadow(0 0 6px rgba(255,138,30,.5)); }
.homewave { position: relative; }
.homewave .htime { position: absolute; top: 6px; right: 8px; z-index: 3; font-size: 12px; color: var(--text3); background: rgba(11,10,31,.6); padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; pointer-events: none; }
.homewave .htime b { color: #fff; font-weight: 700; }

#eqDraw.on { background: rgba(255,138,30,.25); border-color: #FF8A1E; color: #FFB27A; }
/* no + in the header: adding a file is in Settings */
.top .addbtn { display: none !important; }
/* the song's name at the top: saturated glossy purple */
.hometitle .htname { color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, #F3E8FF 0%, #D8B4FE 22%, #B65CFF 48%, #9D2BFF 72%, #7A12E8 100%);
  filter: drop-shadow(0 0 8px rgba(157,43,255,.45)); padding-bottom: 2px; }
/* no lyrics: one slim line (Lyrics · No lyrics found · Edit) */
.lyrblock.nolyr { padding: 8px 14px; }
.lyrblock.nolyr .lyrics, .lyrblock.nolyr .lyrhandle, .lyrblock.nolyr #lyrCopy, .lyrblock.nolyr #lyrSync { display: none !important; }
.lyrblock.nolyr .lyrhead h3 { font-size: 15px; }
.lyrblock.nolyr #lyrSource { font-size: 13px; }
/* what the moving band does, in words */
.eqhint { min-height: 38px; margin: 4px 0 2px; padding: 8px 12px; border-radius: 12px; background: rgba(255,138,30,.08); color: #FFD3A8; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
/* the AVB Player logo at the top-left of the player, on every screen size */
.top img.logo { display: block !important; width: auto; height: 40px; border-radius: 0; flex: none; background: none; box-shadow: none; filter: drop-shadow(0 2px 8px rgba(255,180,40,.25)); }
/* narrow phones: the banner, Music, Recordings and the gear fit on one row */
@media (max-width: 400px) { .top { gap: 8px; } .top img.logo { height: 35px; } .top .tabs button { font-size: 19px; padding: 4px; } }
#dlgText { white-space: pre-line; }
.lyrblock.nolyr #lyrSource { text-decoration: underline dotted; cursor: pointer; }
/* the song that is playing: glossy saturated purple in the list, like the title at the top */
.list li.now { background: linear-gradient(90deg, rgba(157,43,255,.16), rgba(157,43,255,0) 85%); }
.list li.now .name { color: transparent; -webkit-background-clip: text; background-clip: text; font-weight: 800;
  background-image: linear-gradient(180deg, #F3E8FF 0%, #D8B4FE 22%, #B65CFF 48%, #9D2BFF 72%, #7A12E8 100%);
  filter: drop-shadow(0 0 6px rgba(157,43,255,.55)); }
.list li.now .num { color: #C084FC; text-shadow: 0 0 8px rgba(157,43,255,.7); }
/* the playing row keeps its number (same size as the others, so it never gets cut) */
.list li.now .num { font-size: 13.5px; overflow: visible; }
/* lines already sung stay lit in soft orange; the line being sung glows */
.lyrics .l.past { color: rgba(255,154,74,.78); }
.lyrics .l.now { background: linear-gradient(90deg, rgba(255,122,26,.18), rgba(255,122,26,.04)); box-shadow: inset 3px 0 0 #FF7A1A; border-radius: 8px; padding-left: 8px; }

/* lyrics fold away to their header line */
.lyrfold { width: 30px; height: 30px; margin: 0 -4px 0 -6px; border: 0; border-radius: 50%; background: none; color: var(--text2); display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.lyrfold svg { transition: transform .2s; }
.lyrblock.folded .lyrfold svg { transform: rotate(-90deg); }
#lyrTitle { cursor: pointer; }
.lyrblock.folded .lyrics, .lyrblock.folded .lyrhandle, .lyrblock.folded #lyrSyncBar, .lyrblock.folded #lyrSync, .lyrblock.folded #lyrCopy, .lyrblock.folded #lyrEdit, .lyrblock.folded #lyrText, .lyrblock.folded #lyrEditBtns { display: none !important; }
.lyrblock.nolyr .lyrfold { display: none; }

/* the bottom player's progress line can be dragged: a taller touch strip over it, a thumb while dragging */
.miniseek { position: absolute; left: 4px; right: 4px; bottom: env(safe-area-inset-bottom); height: 18px; z-index: 3; touch-action: none; cursor: pointer; }
.mini.seeking .miniprog { height: 6px; bottom: calc(5px + env(safe-area-inset-bottom)); overflow: visible; background: rgba(255,255,255,.22); }
.mini.seeking .miniprog div { position: relative; }
.mini.seeking .miniprog div::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(236,72,153,.8); }

/* full-screen player: heart and the ⋯ menu (every operation) to the right of the name */
.nphead .hrow { padding: 0 86px; }
.nphead .hrow .heart { right: 44px; }
.nphead .hrow .npmore { position: absolute; right: 0; top: -4px; }
.np.studio .nphead .hrow { padding: 0 86px 0 0; }
.nphead .hrow { padding: 0 80px; }
.nphead .hrow #title { white-space: normal; text-overflow: clip; text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; line-height: 1.15; }

/* a newer version is ready: one slim bar under the header */
.updbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 6px 12px 0; padding: 8px 8px 8px 14px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(157,43,255,.28), rgba(59,130,246,.22)); box-shadow: inset 0 0 0 1px rgba(192,132,252,.45); font-size: 14px; font-weight: 600; }
.updbar span { flex: 1; min-width: 0; }
.updbar #updBtn { border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 800; color: #fff; background: linear-gradient(180deg, #FFA24D, #FF6A00); box-shadow: 0 2px 10px rgba(255,106,0,.45); }
.updbar .updx { border: 0; background: none; color: var(--text3); font-size: 16px; width: 30px; height: 30px; }

/* Sort and Select side by side at the right of the Library heading */
.libbtns { display: flex; gap: 14px; align-items: center; }

/* while searching, the song panel on the Music page steps aside for the matches */
body.searching #homeTitle, body.searching #homeWave, body.searching #homeTransport, body.searching #cutBar,
body.searching #homeMix, body.searching #homeTools, body.searching #homeLyrics, body.searching #recentShelf { display: none !important; }

/* a song without lyrics: no full-width Lyrics bar on the home screen, a Lyrics chip in the tool row (it opens the box) */
body:not(.nolyrics) #lyrChip { display: none; }
body.nolyrics:not(.lyrforce) #homeLyrics { display: none !important; }
body.nolyrics.lyrforce #lyrChip { background: rgba(255,255,255,.16); color: #fff; }
/* header + search: one block pinned to the top (the search shows on the Music page only) */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(11,10,31,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar .top { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar .topsearch { padding: 0 16px 8px; }
body.onrecs .topsearch { display: none; }

/* "Updated to AVB Player x ✓": the bar turns green for a few seconds */
.updbar.done { background: linear-gradient(90deg, rgba(34,197,94,.30), rgba(25,240,220,.18)); box-shadow: inset 0 0 0 1px rgba(34,197,94,.55); }

/* the middle of the tempo slider is the original tempo: a teal circle there, tap it to go back */
.tempotrack { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.tempotrack input[type=range] { flex: 1; width: 100%; min-width: 0; margin: 0; }
.tempomid { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; padding: 0; border-radius: 50%;
  border: 2.5px solid #19F0DC; background: rgba(11,10,31,.85); box-shadow: 0 0 8px rgba(25,240,220,.55); cursor: pointer; z-index: 1; }
.tempomid::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; }     /* a bigger tap area than it looks */

/* Pitch: the − and + buttons side by side */
.pmpair { display: inline-flex; gap: 6px; flex: none; }
.updbar { position: relative; top: auto; }            /* scrolls with the page: only the header block is pinned */

/* Tempo: the word sits small on top of the slider, so the slider gets the row's width (the row stays as tall) */
.tempocol { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 0; }
#rowTempo .tempocol label { min-width: 0; font-size: 11.5px; line-height: 1; letter-spacing: .02em; margin: 0 0 1px 2px; color: var(--text3); font-weight: 700; }
#rowTempo .tempocol .tempotrack { flex: none; height: 18px; }

/* Tempo - / + like Pitch */
#rowTempo .pmpair { margin-right: 2px; }
#rowTempo .tempocol[hidden] { display: none !important; }
/* the waveform on the home screen, about a fifth shorter */
.homewave #wave { height: 152px; }

/* names in the list: regular weight (the playing one a little stronger, in its purple) */
.list li .name { font-weight: 500; }
.list li.now .name { font-weight: 650; }
/* a long song name runs: to its end, a pause, back, a pause */
.mqhost { overflow: hidden; white-space: nowrap; text-overflow: clip !important; }
.mqhost .mq { display: inline-block; white-space: nowrap; }
.mqhost.run .mq { animation: mqrun var(--mqt, 8s) ease-in-out infinite alternate; }
@keyframes mqrun { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(var(--mq)); } }
/* the top title's purple gradient travels with its letters */
.hometitle .htname.mqhost { background-image: none; filter: none; color: inherit; }
.hometitle .htname.mqhost .mq { color: transparent; -webkit-background-clip: text; background-clip: text; padding-bottom: 2px;
  background-image: linear-gradient(180deg, #F3E8FF 0%, #D8B4FE 22%, #B65CFF 48%, #9D2BFF 72%, #7A12E8 100%);
  filter: drop-shadow(0 0 8px rgba(157,43,255,.45)); }

/* no "Library" line (only the way back inside an artist / album); Sort and Select sit on the count line */
body:not(.drill) #libHead { display: none; }
.countrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 2px; }
.countrow #storage { margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.countrow .libbtns { flex: none; }
/* orange buttons: shorter, flatter, rectangles with soft corners (no more glossy balls) */
.gloss { border-radius: 11px !important;
  background: linear-gradient(180deg, #FF9A3A 0%, #FF7A10 48%, #F26200 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(150,40,0,.35), 0 2px 7px rgba(255,90,0,.32) !important; }
.gloss::before { left: 0; right: 0; top: 0; height: 48%; border-radius: 11px 11px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0)); }
.gloss:active { transform: scale(.97); }
/* sizes: the Music page */
.hbtn.gloss { width: 46px; height: 34px; }
.hbtn.hplay.gloss { width: 96px; height: 40px; border-radius: 12px !important; }
.hbtn.hplay.gloss::before { left: 0; right: 0; border-radius: 12px 12px 0 0; }
/* the bottom player */
.minibtn.gloss { width: 38px; height: 28px; border-radius: 9px !important; }
.minibtn.gloss.mplay { width: 48px; height: 30px; }
.minibtn.gloss::before { border-radius: 9px 9px 0 0; }
/* the full-screen player */
.controls .ctl.gloss { width: 56px; height: 38px; }
.controls .play.gloss { width: 96px; height: 48px; border-radius: 13px !important; }
.np.studio .controls .play.gloss { width: 80px; height: 42px; }
/* orange buttons: bright, saturated orange */
.gloss { background: linear-gradient(180deg, #FF9500 0%, #FF7A00 52%, #FF6200 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,236,200,.55), inset 0 -1px 0 rgba(190,60,0,.35), 0 2px 9px rgba(255,110,0,.5) !important; }
/* boxes with several lines (Why did the music stop?) keep their line breaks */
#dlgText { white-space: pre-line; }
/* Music / Recordings in the banner's gold: the open page bright like the lettering, the other muted */
.top .tabs button { color: rgba(213,160,73,.45); }
.top .tabs button.on { color: #E8C373; background: linear-gradient(180deg, #FCF5D6 0%, #F3DB9C 35%, #D5A049 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* the buttons in the banner's gold (were orange), with dark icons so they read on the light gold */
.gloss { background: linear-gradient(180deg, #FBE29A 0%, #EEC25A 40%, #DCA23A 76%, #B8822A 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,250,228,.7), inset 0 -1px 0 rgba(120,80,20,.4), 0 2px 9px rgba(232,195,115,.35) !important; }
.gloss::before { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)); }
.gloss svg { fill: #3B2507; filter: drop-shadow(0 1px 0 rgba(255,244,210,.45)); }
.ctl#repeat.on, .ctl#shuffle.on, .hbtn.hmode.on { color: #E8C373; filter: drop-shadow(0 0 6px rgba(232,195,115,.5)); }
#eqDraw.on { background: rgba(232,195,115,.22); border-color: #E8C373; color: #F3DB9C; }

/* ===== the gold-and-violet look (from the user's mockup, 2026-10-21) ===== */
:root { --gold: #E8C373; --gold-hi: #FBE29A; --violet: #A78BFA; --line: rgba(139,128,255,.2); --card: rgba(255,255,255,.035); }
/* page names: the open one gold with a gold bar under it, the other a quiet lavender */
.top .tabs button { position: relative; color: #77749F; padding-bottom: 8px !important; }
.top .tabs button.on::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #F3DB9C, #D5A049); box-shadow: 0 0 8px rgba(232,195,115,.45); }
/* search: a framed field */
.searchbar input { background-color: rgba(255,255,255,.05); border: 1px solid rgba(139,128,255,.28); }
/* the waveform in a card */
.homewave { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px; }
/* transport: back / forward dark with gold arrows, play gold; shuffle gold, repeat violet (brighter when on) */
#hPrev.gloss, #hNext.gloss, #prev.gloss, #next.gloss { background: #17153A !important; border: 1px solid rgba(232,195,115,.3) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.35) !important; }
#hPrev.gloss::before, #hNext.gloss::before, #prev.gloss::before, #next.gloss::before { display: none; }
#hPrev.gloss svg, #hNext.gloss svg, #prev.gloss svg, #next.gloss svg { fill: var(--gold); filter: drop-shadow(0 0 4px rgba(232,195,115,.35)); }
#hShuffle, #shuffle { color: var(--gold) !important; opacity: .55; }
#hRepeat, #repeat { color: var(--violet) !important; opacity: .6; }
#hShuffle.on, #shuffle.on { opacity: 1; filter: drop-shadow(0 0 6px rgba(232,195,115,.6)); }
#hRepeat.on, #repeat.on { opacity: 1; filter: drop-shadow(0 0 6px rgba(167,139,250,.65)); }
#hCut svg { stroke: #C4B5FD; }
/* tempo and pitch: framed buttons and chips, a line between the rows */
.homemix { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px 12px 2px; }
.homemix #rowTempo { padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.homemix .ghost, #rowTempo .ghost, #rowKey .ghost { border-radius: 11px; background: rgba(255,255,255,.03); border: 1px solid rgba(139,128,255,.32); }
.bpmchip { border: 1px solid rgba(25,240,220,.35); border-radius: 12px; }
.homemix #semis { border: 1px solid rgba(139,128,255,.32); border-radius: 11px; padding: 5px 9px; }
/* the key chip filled as the BPM chip is - teal, yellow once moved (the user: one had a fill, the other not) */
.homemix #keyResult:not(:empty) { border: 1px solid rgba(25,240,220,.35); border-radius: 12px; padding: 5px 9px; background: rgba(25,240,220,.14); }
.homemix #keyResult.moved:not(:empty) { background: rgba(255,230,0,.16); }
.homemix .rst { border-radius: 10px; border: 1px solid rgba(139,128,255,.28); background: rgba(255,255,255,.03); color: #A5B4FC; }
/* chips: framed; the open list gold */
.chips button { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.chips button.on { background: linear-gradient(180deg, #FBE29A 0%, #EEC25A 45%, #D5A049 100%); color: #2A1A04; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,250,228,.7), 0 2px 8px rgba(232,195,115,.3); }
.hometools button { background: rgba(255,255,255,.04); }
#homeTools button { color: #D9D6F5; }
/* the Pitch row has to fit a 360 px phone: tighter gaps, the semitones plain, the key in a slim chip */
.homemix .row { gap: 6px; }
.homemix .ghost, #rowTempo .ghost, #rowKey .ghost { min-width: 32px; padding: 0 8px; }
.homemix .row > label { white-space: nowrap; }
.homemix #semis { border: 0; padding: 0 2px; white-space: nowrap; }
.homemix #keyResult:not(:empty) { padding: 4px 7px; white-space: nowrap; }
.homewave { padding: 0; }
@media (max-width: 380px) { .homemix .rst { width: 28px; height: 28px; } .homemix .ghost, #rowTempo .ghost, #rowKey .ghost { min-width: 30px; padding: 0 6px; } .homemix #keyResult:not(:empty) { padding: 4px 5px; } }
/* shuffle, repeat (all / one) and cut: all gold, dimmed when off, glowing when on */
#hRepeat, #repeat { color: var(--gold) !important; }
#hRepeat.on, #repeat.on { filter: drop-shadow(0 0 6px rgba(232,195,115,.6)); }
#hCut svg { stroke: var(--gold); }
/* icons on the tool chips, My songs / All music, Recent, Sort and Select (not on Tempo and Pitch) */
#homeTools button::before, #viewPhone::before, #viewQueue::before, #views [data-view="recent"]::before, #sortMusic::before, #selMusic::before {
  content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -2.5px; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
#homeTools button::before { background: #C4B5FD; }
#homeTools [data-tool="intel"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E"); }
#homeTools [data-tool="eq"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4v16M12 4v16M18 4v16'/%3E%3Cpath d='M4 14h4M10 8h4M16 16h4'/%3E%3C/svg%3E"); }
#homeTools [data-tool="loud"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18v-6M10 18V7M14 18V9M18 18v-4'/%3E%3C/svg%3E"); }
#homeTools [data-tool="notes"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L18.5 9.5a2.1 2.1 0 0 0-4-4L4 16v4z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E"); }
#homeTools [data-tool="save"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
#homeTools [data-tool="lyrics"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 11h16M4 16h10'/%3E%3C/svg%3E"); }
#viewPhone, #viewQueue { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='17' cy='16' r='3'/%3E%3C/svg%3E"); }
#views [data-view="recent"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
#sortMusic { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9M4 12h6M4 17h3M17 5v14M14 16l3 3 3-3'/%3E%3C/svg%3E"); }
#selMusic { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E"); }

/* full-screen player, Listen: no big empty cover square - the header is one row (small tile, title, details)
   as in Tools, and the waveform (with ±10 s) takes the space; A/B, Mono and speed stay in Tools */
.np .nphead { flex-direction: row; text-align: left; gap: 12px; align-items: center; }
.np .nphead .cover { width: 56px; height: 56px; border-radius: 12px; margin: 0; box-shadow: none; }
.np .nphead .hrow { justify-content: flex-start; padding: 0 86px 0 0; }
.np .nphead .hrow #title { text-align: left; font-size: 20px; }
.np .nphead .badges { justify-content: flex-start; margin-top: 4px; }
.np:not(.studio) .wavecard { display: block; margin-top: 12px; }
.np:not(.studio) .wavecard .tgrid { display: none; }

/* running names go one way only, right to left like a ticker: a pause, then the name runs out and its copy runs in */
.mqhost .mqb { display: none; padding-left: 48px; }
.mqhost.run .mqb { display: inline; }
.mqhost.run .mq { animation: mqrun1 var(--mqt, 8s) linear infinite; }
@keyframes mqrun1 { 0%, 15% { transform: translateX(0); } 100% { transform: translateX(var(--mq)); } }
/* tempo and pitch in gold (user's mockup): BPM and key are gold chips, -/+ and reset framed in quiet grey;
   a changed tempo or key shows brighter (lighter gold, stronger fill) */
.bpmchip, .homemix #keyResult:not(:empty) { color: var(--gold) !important; background: rgba(232,195,115,.13) !important; border: 1px solid rgba(232,195,115,.55) !important; border-radius: 12px; }
.bpmchip.moved, .homemix #keyResult.moved:not(:empty) { color: #FFF1C2 !important; background: rgba(232,195,115,.3) !important; border-color: var(--gold) !important; box-shadow: 0 0 8px rgba(232,195,115,.35); }
.homemix .ghost, #rowTempo .ghost, #rowKey .ghost, .homemix .rst { border-color: rgba(255,255,255,.16) !important; background: rgba(255,255,255,.03); color: #E6E4F5; }
/* bottom player in gold (user's mockup): the sound bars and the progress line; the Update button gold too */
.minieq span { background: linear-gradient(180deg, #FBE29A, #D5A049); }
.miniprog div { background: linear-gradient(90deg, #F3DB9C, #E0AE48); }
.mini.seeking .miniprog div::after { box-shadow: 0 0 10px rgba(232,195,115,.85); }
.updbar #updBtn { color: #2A1A04; background: linear-gradient(180deg, #FBE29A 0%, #EEC25A 45%, #D5A049 100%);
  box-shadow: inset 0 1px 0 rgba(255,250,228,.7), 0 2px 10px rgba(232,195,115,.4); }
/* tempo / pitch block: shorter, every control the same 30 px height on one center line, and the two
   names one width so -/+ and the chips line up in columns */
.homemix { padding: 4px 12px; }
.homemix .row { margin: 0 !important; min-height: 0; align-items: center; }
.homemix #rowTempo { padding: 4px 0 5px; }
.homemix #rowKey { padding: 5px 0 4px; }
.homemix .row > label { flex: none; width: 47px; min-width: 47px !important; font-size: 15px; line-height: 30px; }
.homemix .ghost, #rowTempo .ghost, #rowKey .ghost { height: 30px !important; line-height: 28px; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; }
.homemix .bpmchip, .homemix #keyResult:not(:empty) { height: 30px; box-sizing: border-box; display: inline-flex; align-items: center; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1; }
.homemix #semis { line-height: 30px; }
.homemix .rst { width: 30px !important; height: 30px !important; }
/* tempo / pitch in columns (user): "Pitch ±0 st" together, then -/+, the BPM or key chip (one width), reset -
   all left-aligned so each column lines up between the two rows */
.homemix .row > label { order: 0; }
.homemix #semis { order: 1; flex: none; width: 46px; min-width: 0 !important; max-width: 46px; padding: 0; text-align: left; box-sizing: border-box; }
.homemix .pmpair { order: 2; }
.homemix .bpmchip, .homemix #keyResult { order: 3; flex: none; width: 86px; justify-content: center; padding-left: 4px !important; padding-right: 4px !important; overflow: hidden; }
.homemix .rst { order: 4; margin-left: 0 !important; }
.homemix #rowTempo > label { width: 99px; min-width: 99px !important; }
.homemix #rowTempo .pmpair { margin-right: 0; }
/* the BPM in the line under the song's name: gold like the tempo chip, brighter when the tempo is changed */
.hometitle .hbpm { color: var(--gold) !important; }
.hometitle .hbpm.moved { color: #FFF1C2 !important; text-shadow: 0 0 8px rgba(232,195,115,.55); }
/* blocks less rounded (user); the gold back / play / forward buttons (.gloss) keep their corners */
.searchbar input { border-radius: 9px !important; }
.homewave, .homewave #wave, .wavecard, .wavebox, #wave { border-radius: 9px !important; }
.homemix { border-radius: 10px !important; }
.homemix .ghost, #rowTempo .ghost, #rowKey .ghost, .homemix .rst { border-radius: 7px !important; }
.bpmchip, .homemix #keyResult:not(:empty) { border-radius: 7px !important; }
.chips button:not(.gloss) { border-radius: 8px !important; }
.updbar { border-radius: 10px; }
.updbar #updBtn { border-radius: 8px; }
/* one consistent dark navy everywhere (user): no violet glow at the top, the pinned header the same blue as the
   page, the bottom player and the full-screen player navy too; slightly deeper blue toward the bottom */
:root { --bg: #0B0B20; --navy-lo: #11123A; }
body { background: linear-gradient(180deg, #0B0B20 0%, #0D0D27 50%, #11123A 100%) fixed !important; }
.topbar, .top { background: rgba(11,11,32,.97) !important; }
.topbar .top { background: none !important; }
.mini { background: rgba(19,20,52,.97) !important; box-shadow: 0 -1px 0 rgba(139,128,255,.14), 0 -8px 24px rgba(0,0,0,.35); }
.np { background: linear-gradient(180deg, #0B0B20 0%, #0D0D27 50%, #11123A 100%) !important; }
/* a changed tempo or key: the chip turns solid gold with dark text, a changed pitch's semitones gold */
.bpmchip.moved, .homemix #keyResult.moved:not(:empty) { color: #2A1A04 !important; background: linear-gradient(180deg, #FBE29A 0%, #EEC25A 50%, #D5A049 100%) !important;
  border-color: #F3DB9C !important; box-shadow: 0 0 10px rgba(232,195,115,.45); font-weight: 800; }
.homemix #semis.moved { color: var(--gold); }
/* the waveform box on the Music page 20% shorter (152 -> 122 px), the wave itself keeps its size (drawWave boost) */
.homewave #wave { height: 122px !important; }
/* a tool opened from its button on the Music page shows alone: no tab row of the other tools */
.np.onetool #tools { display: none; }
