/* Player: a remote-control skin for Spotify. Dark glass over the song's own colours. */
:root {
  --c1: #ff6a3d; --c2: #8b5cf6; --c3: #1e1b4b; --acc: #ff8a65;
  --bg: #07070a; --panel: #0c0c12; --fg: #f5f5f7;
  --dim: color-mix(in srgb, var(--fg) 64%, transparent); --faint: color-mix(in srgb, var(--fg) 38%, transparent);
  --glass: color-mix(in srgb, var(--panel) 52%, transparent); --glass-hi: color-mix(in srgb, color-mix(in srgb, var(--panel), #fff 6%) 76%, transparent);
  --line: rgba(255,255,255,.08); --line-hi: rgba(255,255,255,.14);
  --hover: rgba(255,255,255,.07);
  --r: 20px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.3,1.4,.5,1);
  --lyr: clamp(20px, 1.9vw, 30px);
  --side: 256px; --panelw: 336px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--fg); overflow: hidden;
  font: 14px/1.45 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; user-select: none;
}
body.booting * { transition: none !important; }
body.lyr-s { --lyr: clamp(17px, 1.5vw, 24px); }
body.lyr-l { --lyr: clamp(24px, 2.4vw, 38px); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 10px; }
input { font: inherit; color: var(--fg); }
svg { width: 20px; height: 20px; flex: none; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.solid { fill: currentColor; }
.disp { font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; }
kbd { font: 11px "Segoe UI", sans-serif; color: var(--faint); border: 1px solid var(--line-hi); border-radius: 6px; padding: 1px 6px; background: rgba(255,255,255,.04); }
img { display: block; }
.link { color: inherit; text-align: left; }
.link:hover { text-decoration: underline; color: var(--fg); }
.num-t { font-variant-numeric: tabular-nums; }

/* ---------- ambient light behind the whole window ----------
   Blobs never animate; only their container drifts, so the big blur is drawn once per song. */
.ambient { position: fixed; inset: -25%; z-index: 0; pointer-events: none; opacity: .6; transition: opacity .8s; }
.amb-in { position: absolute; inset: 0; filter: blur(110px) saturate(1.3); animation: drift 30s ease-in-out infinite alternate; will-change: transform; }
.amb-in i { position: absolute; border-radius: 50%; transition: background 1.4s ease; }
.amb-in i:nth-child(1) { width: 55%; height: 60%; left: 5%; top: 5%; background: var(--c1); }
.amb-in i:nth-child(2) { width: 50%; height: 55%; right: 5%; top: 25%; background: var(--c2); }
.amb-in i:nth-child(3) { width: 60%; height: 50%; left: 25%; bottom: 0; background: var(--c3); }
@keyframes drift { to { transform: translate(5%, -4%) rotate(8deg) scale(1.08); } }
.vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(0,0,0,.6)); }
body.no-glow .ambient { opacity: .14; }

/* ---------- layout ---------- */
.app {
  position: relative; z-index: 1; height: 100%;
  display: grid; gap: 8px; padding: 8px;
  grid-template-columns: var(--side) minmax(0,1fr) var(--panelw);
  grid-template-rows: minmax(0,1fr) 92px;
  grid-template-areas: "side main panel" "bar bar bar";
  transition: grid-template-columns .45s var(--ease);
}
.app.no-panel { grid-template-columns: var(--side) minmax(0,1fr) 0px; }
.app.no-panel .panel { opacity: 0; pointer-events: none; padding: 0; border-width: 0; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(30px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }

/* ---------- small shared bits ---------- */
.round { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--line); transition: background .15s, transform .15s, color .3s; backdrop-filter: blur(16px); flex: none; }
.round:hover:not(:disabled) { background: rgba(255,255,255,.16); }
.round:active:not(:disabled) { transform: scale(.92); }
.round svg { width: 18px; height: 18px; }
.round.sm { width: 32px; height: 32px; } .round.sm svg { width: 16px; height: 16px; }
.ib { color: var(--dim); display: grid; place-items: center; position: relative; transition: color .15s, transform .15s; width: 32px; height: 32px; border-radius: 50%; flex: none; }
.ib:hover { color: var(--fg); }
.ib:active { transform: scale(.9); }
.ib.on { color: var(--fg); }
.ib.on::after { content: ""; position: absolute; bottom: -3px; width: 4px; height: 4px; border-radius: 50%; background: var(--acc); transition: background 1s; }
.ib.tiny { width: 24px; height: 24px; } .ib.tiny svg { width: 14px; height: 14px; } .ib.tiny.on::after { display: none; }
.ib .tag { position: absolute; left: 50%; top: -13px; transform: translateX(-50%); font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; color: var(--acc); }
.ib .one { position: absolute; top: 0; right: -2px; font-size: 9px; font-weight: 800; color: var(--acc); }
.big { width: 46px; height: 46px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; transition: transform .2s var(--spring), box-shadow 1s; box-shadow: 0 0 28px color-mix(in srgb, var(--acc) 50%, transparent); flex: none; }
.big:hover { transform: scale(1.07); }
.big:active { transform: scale(.92); }
.big svg { width: 22px; height: 22px; }
.big svg.swap { animation: swap .28s var(--spring); }
@keyframes swap { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.liked { color: var(--acc); }
.pop-heart { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.32); } }
.burst { position: fixed; z-index: 90; pointer-events: none; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: burst .6s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.eqbars { display: flex; gap: 4px; align-items: flex-end; height: 26px; }
.eqbars i { width: 4px; border-radius: 2px; background: linear-gradient(var(--c1), var(--c2)); animation: eq 1s ease-in-out infinite alternate; }
.eqbars i:nth-child(2) { animation-delay: -.3s; } .eqbars i:nth-child(3) { animation-delay: -.6s; } .eqbars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.eqbars.small { height: 14px; gap: 2px; } .eqbars.small i { width: 3px; background: currentColor; }
body.paused .eqbars i { animation-play-state: paused; height: 30%; }
.meter { width: 44px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; display: block; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--c2), var(--acc)); border-radius: 4px; transition: width .8s var(--ease); }
.mdot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; background: var(--m, #888); box-shadow: 0 0 8px var(--m, transparent); }
.sk { background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.05) 75%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.cv { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: rgba(255,255,255,.06); }
.label { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.empty { color: var(--faint); padding: 26px 12px; text-align: center; }

/* ---------- sidebar ---------- */
.side { grid-area: side; display: flex; flex-direction: column; padding: 18px 12px 10px; gap: 2px; min-height: 0; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 14px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand b { width: 26px; height: 26px; border-radius: 8px; background: #000; flex: none; position: relative; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.brand b { display: grid; place-items: center; color: #fff; }
.brand b svg { width: 100%; height: 100%; }
.nav { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; color: var(--dim); transition: color .15s, background .15s; white-space: nowrap; text-align: left; width: 100%; }
.nav:hover { color: var(--fg); background: var(--hover); }
.nav.on { color: var(--fg); background: rgba(255,255,255,.09); }
.nav kbd { margin-left: auto; }
.nav-eq { margin-left: auto; color: var(--acc); display: none; }
body.has-track:not(.paused) .nav-eq { display: flex; }
.lib-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 6px 6px 10px; }
.lib-filter { padding: 0 4px 6px; }
.lib-filter input { width: 100%; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid var(--line); outline: none; font-size: 13px; }
.lib-filter input:focus { border-color: var(--line-hi); }
.lists { overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; flex: 1; min-height: 0; margin: 0 -4px; padding: 0 4px; }
.lists::-webkit-scrollbar { width: 0; }
.pl { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; text-align: left; transition: background .15s; min-width: 0; width: 100%; }
.pl:hover { background: var(--hover); }
.pl.on { background: rgba(255,255,255,.1); }
.pl .t { width: 42px; height: 42px; border-radius: 9px; flex: none; position: relative; overflow: hidden; }
.pl .tx { min-width: 0; }
.pl .n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl .s { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl.cur .n { color: var(--acc); }
.pl.last-pin { margin-bottom: 6px; position: relative; }
.pl.last-pin::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -4px; height: 1px; background: var(--line); }
.pl .s svg { vertical-align: -1px; color: var(--acc); }
.pl .eq { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: none; place-items: center; color: var(--fg); }
.pl.cur .eq { display: grid; }
.side-foot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; display: grid; gap: 2px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: var(--faint); font-size: 12.5px; white-space: nowrap; min-width: 0; }
.me .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--fg); background: linear-gradient(135deg, var(--c2), var(--c1)); flex: none; }
.me-n { overflow: hidden; text-overflow: ellipsis; }

/* ---------- main area ---------- */
.main { grid-area: main; position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg), #fff 2%); isolation: isolate; }
.backdrop { position: absolute; inset: 0; overflow: hidden; z-index: -1; border-radius: inherit; }
.media { position: absolute; inset: -14%; opacity: 0; transition: opacity 1.2s ease; background-size: cover; background-position: center; filter: saturate(1.15) brightness(.82); will-change: transform; }
.media.show { opacity: 1; }
body.bg-video .media { animation: kenburns 26s ease-in-out infinite alternate; }
body.bg-still .media { animation: none; }
body.bg-color .media { display: none; }
body.bg-color .backdrop { background: radial-gradient(80% 90% at 30% 30%, color-mix(in srgb, var(--c1) 35%, transparent), transparent), radial-gradient(70% 80% at 80% 70%, color-mix(in srgb, var(--c2) 30%, transparent), transparent); }
@keyframes kenburns { 0% { transform: scale(1.04) rotate(0deg) translate(0,0); } 50% { transform: scale(1.2) rotate(3deg) translate(-3%, 2%); } 100% { transform: scale(1.12) rotate(-2deg) translate(3%, -2%); } }
.shade { position: absolute; inset: 0; transition: background .6s; background:
  linear-gradient(90deg, color-mix(in srgb, var(--bg) 80%, transparent) 0%, color-mix(in srgb, var(--bg) 52%, transparent) 42%, color-mix(in srgb, var(--bg) 24%, transparent) 100%),
  linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, transparent 25%, transparent 70%, color-mix(in srgb, var(--bg) 55%, transparent) 100%); }
.main:not([data-view="now"]) .media { animation: none; filter: blur(60px) saturate(1.3) brightness(.7); transform: scale(1.1); }
.main:not([data-view="now"]) .shade { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 50%, transparent), color-mix(in srgb, var(--bg) 84%, transparent) 34%, color-mix(in srgb, var(--bg) 94%, transparent)); }
body.paused .media { animation-play-state: paused; }

.top { display: flex; align-items: center; gap: 12px; padding: 14px 18px 0; position: relative; z-index: 2; }
.hist { display: flex; gap: 6px; }
.search { flex: 1; max-width: 480px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--faint); border: 1px solid var(--line); transition: .2s; backdrop-filter: blur(20px); text-align: left; min-width: 0; }
.search:hover { background: rgba(255,255,255,.12); color: var(--dim); }
.search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: 13px; backdrop-filter: blur(20px); transition: background .2s; white-space: nowrap; margin-left: auto; }
.pill:hover { background: rgba(255,255,255,.14); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; flex: none; }
.pill.off .dot { background: #f87171; box-shadow: 0 0 10px #f87171; }

.banner { margin: 12px 18px 0; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(28,22,10,.6); border: 1px solid rgba(251,191,36,.28); backdrop-filter: blur(20px); color: #fde68a; font-size: 13px; animation: drop .4s var(--ease); position: relative; z-index: 2; }
.banner.bad { background: rgba(40,12,14,.6); border-color: rgba(248,113,113,.3); color: #fecaca; }
.banner svg { width: 18px; height: 18px; }
.banner .msg { flex: 1; } .banner .msg b { color: var(--fg); font-weight: 600; }
.banner button { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--fg); font-size: 12.5px; white-space: nowrap; }
.banner button:hover { background: rgba(255,255,255,.18); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

.view { flex: 1; min-height: 0; }
.main:not([data-view="now"]) #vNow, .main:not([data-view="home"]) #vHome, .main:not([data-view="col"]) #vCol { display: none; }
.view.enter { animation: enter .42s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
.scroller { overflow-y: auto; padding: 4px clamp(20px, 3vw, 44px) 32px; scrollbar-gutter: stable; }
.scroller::-webkit-scrollbar { width: 10px; } .scroller::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- now playing ---------- */
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 48px); padding: clamp(16px, 2.5vh, 30px) clamp(20px, 3vw, 44px) clamp(18px, 3vh, 32px); }
.hero { display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.4vh, 24px); min-width: 0; min-height: 0; }
.art-wrap { perspective: 900px; width: min(100%, 44vh, 440px); flex: none; }
.art {
  width: 100%; aspect-ratio: 1; border-radius: 22px; position: relative; overflow: hidden;
  box-shadow: 0 30px 80px -12px color-mix(in srgb, var(--c1) 45%, transparent), 0 12px 30px rgba(0,0,0,.5);
  transition: box-shadow 1.2s, transform .5s var(--ease); transform-style: preserve-3d;
}
.art img { width: 100%; height: 100%; object-fit: cover; }
.art .glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.22), transparent 55%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.art-wrap.tilting .art { transition: box-shadow 1.2s, transform .12s linear; }
.art-wrap.tilting .glare { opacity: 1; }
body.paused .art:not(.ph) { transform: scale(.95); }
.art.ph { display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px dashed var(--line-hi); box-shadow: none; color: var(--faint); }
.art.ph svg { width: 56px; height: 56px; }
.meta { min-width: 0; }
.from { font-size: 12px; color: var(--dim); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.from .link { color: var(--fg); font-weight: 600; }
.title { font-weight: 700; font-size: clamp(28px, 3.8vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin-top: 4px; text-wrap: balance; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.artist { font-size: clamp(14px, 1.2vw, 18px); color: var(--dim); margin-top: 6px; }
.artist .link:hover { color: var(--fg); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: 12px; color: var(--dim); backdrop-filter: blur(16px); }
.chip b { color: var(--fg); font-weight: 600; }
body.no-chips .chip.vibe, .chip.vibe.none { display: none; }
.row .sep { flex: 1; min-width: 4px; }
.empty-now { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 24px; }
.empty-now .art { width: min(220px, 30vh); }
.empty-now .title { font-size: clamp(26px, 3vw, 40px); }
.stage.empty > :not(.empty-now) { visibility: hidden; }

/* up-next peek near the end of a song */
.peek { position: absolute; right: clamp(20px, 3vw, 44px); bottom: clamp(18px, 3vh, 32px); display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 16px; text-align: left; max-width: 330px; animation: drop .45s var(--ease); background: var(--glass-hi); z-index: 3; }
.peek:hover { background: rgba(30,30,40,.8); }
.peek img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; }
.peek .k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.peek .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek .s { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek > span:last-child { min-width: 0; }

/* lyrics card: glass over the artwork */
.lyrics { position: relative; min-height: 0; display: flex; flex-direction: column; border-radius: 22px; background: rgba(10,10,15,.34); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(26px) saturate(1.4); box-shadow: 0 20px 60px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; }
.lyr-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 0 22px; min-height: 46px; }
.lyr-head .k { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.badge { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); padding: 2px 7px; border-radius: 6px; }
.badge.plain { color: var(--dim); background: rgba(255,255,255,.08); }
.lyr-head > .round { margin-left: auto; }
.nudge { display: flex; align-items: center; gap: 2px; margin-left: auto; opacity: 0; transition: opacity .2s; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.nudge + .round { margin-left: 4px; }
.lyrics:hover .nudge, .nudge.set { opacity: 1; }
.nudge-v { min-width: 34px; text-align: center; }
.lyrics:not([data-state="synced"]) .nudge { display: none; }
.lyrics:not([data-state="synced"]) .lyr-head > .round { margin-left: auto; }
.lyr-view { position: relative; flex: 1; min-height: 0; overflow: hidden; mask-image: linear-gradient(transparent, #000 16%, #000 76%, transparent); }
.lyr-inner { display: flex; flex-direction: column; gap: .62em; padding: 0 28px; font-size: var(--lyr); transition: transform .8s var(--ease); will-change: transform; }
.lyr-inner.manual { transition: transform .12s linear; }
body.al-center .lyr-inner { align-items: center; text-align: center; }
body.al-center .line { transform-origin: center; }
.line { font-weight: 700; line-height: 1.22; letter-spacing: -.02em; color: color-mix(in srgb, var(--fg) 30%, transparent); transition: color .5s, transform .5s var(--ease), opacity .5s; transform-origin: left center; cursor: pointer; text-wrap: pretty; }
.line:hover { color: color-mix(in srgb, var(--fg) 62%, transparent); }
.line.past { color: color-mix(in srgb, var(--fg) 46%, transparent); }
.line.now { color: var(--fg); transform: scale(1.045); filter: drop-shadow(0 0 26px color-mix(in srgb, var(--acc) 50%, transparent)); }
body.sweep .line.now span { color: transparent; background: linear-gradient(90deg, var(--fg) calc(var(--f, 0) * 100%), color-mix(in srgb, var(--fg) 62%, transparent) calc(var(--f, 0) * 100% + 6%)); -webkit-background-clip: text; background-clip: text; }
.line.gap { color: color-mix(in srgb, var(--fg) 30%, transparent); letter-spacing: .3em; }
.lyr-plain { padding: 6px 28px 40px; font-size: calc(var(--lyr) * .8); font-weight: 600; line-height: 1.5; color: color-mix(in srgb, var(--fg) 78%, transparent); white-space: pre-line; overflow-y: auto; height: 100%; user-select: text; }
.lyr-plain::-webkit-scrollbar { width: 0; }
.lyrics[data-state="plain"] .lyr-view { mask-image: linear-gradient(transparent, #000 6%, #000 88%, transparent); }
.lyr-x { position: absolute; inset: 0; }
.lyr-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--dim); font-size: 15px; text-align: center; padding: 24px; }
.lyr-msg small { color: var(--faint); font-size: 12.5px; max-width: 300px; }
.lyr-sk { display: grid; gap: 18px; padding: 30px 28px; }
.lyr-sk .sk { height: calc(var(--lyr) * .9); }

/* ---------- queue panel ---------- */
.panel { grid-area: panel; display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 18px 10px 10px; overflow: hidden; transition: opacity .3s; }
.p-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.p-head h3 { font-size: 16px; font-weight: 650; white-space: nowrap; }
.mode { font-size: 12px; color: var(--dim); padding: 6px 10px 4px; line-height: 1.45; }
.mode b { color: var(--fg); font-weight: 600; }
.flow { padding: 4px 8px 2px; }
.flow svg { width: 100%; height: 46px; display: block; overflow: visible; }
.flow .lbl { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); padding: 2px 2px 0; letter-spacing: .03em; }
.flow circle { transition: r .15s; cursor: pointer; }
.flow circle:hover { r: 5; }
.queue { overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; min-height: 0; flex: 1; position: relative; }
.queue::-webkit-scrollbar { width: 0; }
.sub { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 6px; display: flex; justify-content: space-between; align-items: center; }
.sub button { font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--dim); }
.sub button:hover { color: var(--fg); }
.q { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-align: left; transition: background .15s, opacity .3s, transform .25s var(--ease); position: relative; width: 100%; touch-action: none; }
.q:hover { background: var(--hover); }
.q.cur { background: rgba(255,255,255,.08); }
.q .t { width: 44px; height: 44px; border-radius: 9px; flex: none; position: relative; overflow: hidden; }
.q .t .eq { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.4); color: var(--fg); }
.q .tx { min-width: 0; flex: 1; }
.q .n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q.cur .n { color: var(--acc); }
.q .s { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.q .s .mdot { width: 6px; height: 6px; box-shadow: none; }
.q .m { font-size: 11px; color: var(--faint); display: flex; align-items: center; gap: 4px; flex: none; font-variant-numeric: tabular-nums; }
.q .m.smart { color: #fcd34d; }
.q .m svg { width: 12px; height: 12px; }
.q .x { position: absolute; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: none; place-items: center; background: rgba(20,20,26,.92); color: var(--dim); }
.q .x:hover { color: var(--fg); background: #2a2a33; }
.q .x svg { width: 14px; height: 14px; }
.q:hover .x { display: grid; }
.q.gone { opacity: 0; transform: translateX(30px); }
.q.dragging { z-index: 5; background: rgba(40,40,52,.95); box-shadow: 0 14px 30px rgba(0,0,0,.45); transition: background .15s, box-shadow .15s; cursor: grabbing; }
.queue.sorting .q:not(.dragging) { transition: transform .2s var(--ease); }
.queue.sorting .q:hover { background: none; }
.queue.sorting .q .x { display: none; }
.far { margin: 6px 4px 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-hi); color: var(--dim); font-size: 12.5px; display: flex; align-items: center; gap: 10px; text-align: left; width: calc(100% - 8px); }
.far:hover { background: var(--hover); color: var(--fg); }
.far b { color: var(--fg); font-weight: 600; }

/* ---------- player bar ---------- */
.bar { grid-area: bar; display: grid; grid-template-columns: minmax(0,1fr) minmax(320px, 680px) minmax(0,1fr); align-items: center; padding: 0 18px; gap: 20px; }
.np { display: flex; align-items: center; gap: 12px; min-width: 0; }
.np .t { width: 56px; height: 56px; border-radius: 10px; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.35); overflow: hidden; transition: transform .2s var(--ease); }
.np .t:hover { transform: scale(1.05); }
.np .t img { width: 100%; height: 100%; object-fit: cover; }
.np .tx { min-width: 0; display: grid; }
.np .n { font-weight: 600; white-space: nowrap; overflow: hidden; }
.marquee span { display: inline-block; }
.marquee.long:hover span { animation: marquee var(--mq-t, 6s) linear .4s infinite alternate; }
.marquee.long { mask-image: linear-gradient(90deg, #000 85%, transparent); }
@keyframes marquee { 0%, 15% { transform: none; } 85%, 100% { transform: translateX(var(--mq, 0)); } }
.np .s { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-self: start; max-width: 100%; }
.np .round { background: none; border: 0; width: 34px; height: 34px; }
body:not(.has-track) .np { visibility: hidden; }
.center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ctrls { display: flex; align-items: center; gap: 20px; }
.prog { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.prog span.pos, .prog span.dur { width: 36px; text-align: center; flex: none; }
.track { flex: 1; height: 16px; position: relative; cursor: pointer; display: flex; align-items: center; touch-action: none; }
.track::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); transition: height .15s; }
.track i { position: absolute; left: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--c2), var(--acc)); transition: height .15s; }
.track i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; opacity: 0; transform: scale(.5); transition: .15s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.track:hover::before, .track:hover i, .track.drag::before, .track.drag i, .track:focus-visible::before, .track:focus-visible i { height: 6px; }
.track:hover i::after, .track.drag i::after, .track:focus-visible i::after { opacity: 1; transform: none; }
.track:focus-visible { outline: none; }
.tip { position: absolute; bottom: 20px; transform: translateX(-50%); padding: 5px 10px; border-radius: 9px; background: rgba(24,24,32,.95); border: 1px solid var(--line); color: var(--fg); font-size: 11.5px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; max-width: 320px; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.tip em { font-style: normal; color: var(--dim); }
.track:hover .tip, .track.drag .tip { opacity: 1; }
.right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.vol-wrap { display: flex; align-items: center; gap: 4px; flex: none; }
.vol { flex: 0 0 104px; }
.right .div { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }

/* ---------- home ---------- */
.greet { font-weight: 800; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -.04em; padding: 24px 0 4px; }
.greet-sub { color: var(--dim); margin-bottom: 22px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.qt { display: flex; align-items: center; gap: 14px; height: 64px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--line); overflow: hidden; text-align: left; transition: background .2s; position: relative; padding-right: 54px; }
.qt:hover { background: rgba(255,255,255,.13); }
.qt img, .qt .ph { width: 64px; height: 64px; object-fit: cover; flex: none; }
.qt .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hplay { position: absolute; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.hplay svg { width: 18px; height: 18px; }
.qt:hover .hplay, .card:hover .hplay, .mix:hover .hplay { opacity: 1; transform: none; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.sec h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.sec span { color: var(--faint); font-size: 12.5px; }
.mixes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mix { position: relative; height: 150px; border-radius: 20px; padding: 16px 18px; text-align: left; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); isolation: isolate; transition: transform .25s var(--ease); }
.mix:hover { transform: translateY(-3px); }
.mix::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 20% 15%, var(--a), transparent 62%), radial-gradient(circle at 90% 90%, var(--b), transparent 60%), #111; opacity: .9; }
.mix .n { font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.mix .s { font-size: 12px; color: color-mix(in srgb, var(--fg) 75%, transparent); }
.mix .hplay { top: 14px; right: 14px; }
.mix .mbar { position: absolute; top: 18px; left: 18px; display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.mix .mbar i { width: 4px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 75%, transparent); }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); gap: 16px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 calc(100% - 60px), transparent); }
.card { text-align: left; padding: 10px; border-radius: 16px; transition: background .2s; position: relative; min-width: 0; }
.card:hover { background: var(--hover); }
.card .cvw { aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 12px 28px rgba(0,0,0,.35); margin-bottom: 10px; }
.card.round-cv .cvw { border-radius: 50%; }
.card .hplay { bottom: 8px; right: 8px; }
.card .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .s { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(200px, 1.4fr); gap: 12px; }
.stat { border-radius: 18px; padding: 16px 18px; background: rgba(255,255,255,.06); border: 1px solid var(--line); min-width: 0; }
.stat .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.stat .v { font-size: 26px; font-weight: 750; letter-spacing: -.03em; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 10px; }
.stat .v .mdot { width: 12px; height: 12px; }
.stat .d { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.days { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-top: 10px; }
.days div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; font-size: 10px; color: var(--faint); }
.days i { width: 100%; max-width: 22px; border-radius: 5px; background: linear-gradient(var(--acc), var(--c2)); min-height: 3px; }
.days div.today { color: var(--fg); }

/* ---------- collection page (playlist, artist, mix, liked) ---------- */
.pl-head { display: flex; align-items: flex-end; gap: clamp(18px, 2.5vw, 32px); padding: 18px 0 20px; }
.pl-cover { width: clamp(140px, 17vw, 232px); aspect-ratio: 1; border-radius: 18px; flex: none; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.pl-cover.round-cv { border-radius: 50%; }
.pl-kind { font-size: 12px; color: var(--dim); }
.pl-name { font-weight: 800; font-size: clamp(34px, 5vw, 86px); line-height: 1; letter-spacing: -.045em; margin: 6px 0 10px; overflow-wrap: anywhere; }
.pl-desc { color: var(--dim); font-size: 13.5px; margin-bottom: 6px; max-width: 640px; }
.pl-meta { color: var(--dim); font-size: 13px; }
.pl-meta b { color: var(--fg); font-weight: 600; }
.pl-acts { display: flex; align-items: center; gap: 12px; padding: 0 0 14px; flex-wrap: wrap; }
.play-xl { width: 56px; height: 56px; }
.play-xl svg { width: 24px; height: 24px; }
.pl-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.find { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--faint); width: 200px; }
.find:focus-within { border-color: var(--line-hi); color: var(--dim); }
.find svg { width: 15px; height: 15px; }
.find input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 13px; }
.seg { display: flex; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid var(--line); flex: none; }
.seg button { padding: 6px 12px; border-radius: 9px; font-size: 12.5px; color: var(--dim); transition: .2s; white-space: nowrap; }
.seg button:hover { color: var(--fg); }
.seg button.on { background: rgba(255,255,255,.16); color: var(--fg); }
.strip { display: flex; align-items: flex-end; gap: 2px; height: 46px; margin: 0 0 14px; padding: 0 2px; }
.strip i { flex: 1; min-width: 2px; border-radius: 3px 3px 1px 1px; background: linear-gradient(var(--sc, var(--acc)), color-mix(in srgb, var(--sc, var(--acc)) 30%, transparent)); opacity: .55; cursor: pointer; transition: opacity .15s, transform .15s; transform-origin: bottom; }
.strip i:hover { opacity: 1; transform: scaleY(1.06); }
.strip i.on { opacity: 1; box-shadow: 0 0 12px var(--sc); }
.strip-l { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); margin: -8px 2px 12px; letter-spacing: .03em; }
.trk-head, .trk { display: grid; grid-template-columns: 34px minmax(0, 1.7fr) 130px 70px 36px 52px; gap: 16px; align-items: center; padding: 0 14px; }
.trk-head { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); height: 34px; border-bottom: 1px solid var(--line); margin-bottom: 6px; position: sticky; top: -4px; z-index: 2; background: rgba(10,10,14,.92); backdrop-filter: blur(20px); }
.trk { height: 58px; border-radius: 12px; width: 100%; text-align: left; transition: background .15s; content-visibility: auto; contain-intrinsic-size: auto 58px; }
.trk:hover { background: var(--hover); }
.trk.sel { background: rgba(255,255,255,.11); }
.trk .num { color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; display: grid; place-items: center; }
.trk .num .pb { display: none; color: var(--fg); }
.trk .num .pb svg { width: 16px; height: 16px; }
.trk:hover .num > span:first-child { display: none; } .trk:hover .num .pb { display: grid; }
.trk .song { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trk .t { width: 40px; height: 40px; border-radius: 7px; flex: none; overflow: hidden; }
.trk .n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk .s { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk.on .n { color: var(--acc); }
.trk .mood { font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.trk .mood .mdot { width: 7px; height: 7px; box-shadow: none; }
.trk .meter { width: 56px; }
.trk .lk { color: var(--faint); opacity: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: opacity .15s, color .15s; }
.trk .lk svg { width: 16px; height: 16px; }
.trk:hover .lk { opacity: 1; } .trk .lk:hover { color: var(--fg); }
.trk .lk.liked { opacity: 1; color: var(--acc); }
.trk .dur { color: var(--faint); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.sk-row { height: 58px; display: grid; grid-template-columns: 34px 40px 1fr; gap: 16px; align-items: center; padding: 0 14px; }
.sk-row .sk { height: 12px; } .sk-row .sk.cvs { height: 40px; }

/* ---------- full-screen lyrics ---------- */
.full { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-rows: auto minmax(0,1fr) auto; background: var(--bg); opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s; isolation: isolate; }
.full.open { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.full .media { inset: -10%; filter: blur(26px) saturate(1.3) brightness(.6); }
.full .shade { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 20%, transparent) 30%, color-mix(in srgb, var(--bg) 25%, transparent) 70%, color-mix(in srgb, var(--bg) 75%, transparent)); }
.full-top { display: flex; align-items: center; gap: 14px; padding: 28px clamp(24px, 5vw, 80px) 0; }
.full-top .t { width: 64px; height: 64px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); flex: none; object-fit: cover; }
.full-top .n { font-weight: 700; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.full-top .s { color: var(--dim); }
.full-top .acts { margin-left: auto; display: flex; gap: 8px; }
.full .lyr-view { mask-image: linear-gradient(transparent, #000 22%, #000 72%, transparent); }
.full .lyr-inner { font-size: calc(var(--lyr) * 2.1); padding: 0 clamp(24px, 8vw, 160px); max-width: 1500px; gap: .5em; }
body.al-center .full .lyr-inner { margin: 0 auto; }
.full .line { letter-spacing: -.03em; }
.full .lyr-msg { font-size: 20px; }
.full .lyr-plain { font-size: calc(var(--lyr) * 1.3); padding: 10px clamp(24px, 8vw, 160px) 60px; max-width: 1500px; }
.full-ctrl { justify-self: center; margin: 0 0 32px; display: flex; align-items: center; gap: 18px; padding: 10px 22px 10px 14px; border-radius: 999px; width: min(720px, calc(100vw - 48px)); background: rgba(14,14,20,.42); }
.full-ctrl .prog { flex: 1; }
.full-ctrl .ctrls { gap: 10px; }
.full.idle { cursor: none; }
.full.idle .full-ctrl, .full.idle .full-top .acts { opacity: 0; transform: translateY(10px); pointer-events: none; }
.full-ctrl, .full-top .acts { transition: opacity .5s, transform .5s var(--ease); }

/* ---------- mini player ---------- */
.mini { position: fixed; inset: 0; z-index: 38; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; background: var(--bg); text-align: center; opacity: 0; visibility: hidden; transform: scale(.98); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s; isolation: isolate; }
.mini.open { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.mini .media { filter: blur(40px) saturate(1.4) brightness(.55); }
.mini .shade { background: radial-gradient(circle at 50% 40%, transparent, color-mix(in srgb, var(--bg) 60%, transparent)); }
.mini .t { width: min(62vw, 42vh, 360px); aspect-ratio: 1; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.5); transition: transform .5s var(--ease); object-fit: cover; }
body.paused .mini .t { transform: scale(.95); }
.mtx { min-width: 0; max-width: 90vw; }
.mini .n { font-weight: 700; font-size: clamp(18px, 3vw, 26px); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .s { color: var(--dim); }
.mline { font-weight: 700; font-size: 15px; color: color-mix(in srgb, var(--fg) 85%, transparent); min-height: 1.4em; max-width: min(90vw, 420px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.mini .prog { width: min(80vw, 380px); }
.hline { display: none; }
.mini .ctrls { gap: 14px; }
.mini-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.mini-acts { display: flex; gap: 6px; }
/* very small windows: art left, text right */
@media (max-height: 360px), (max-width: 300px) {
  .mini { grid-template-columns: auto minmax(0, 1fr); place-content: center stretch; text-align: left; gap: 6px 14px; padding: 14px 16px; }
  .mini .t { width: min(34vw, 62vh); grid-row: 1 / 5; }
  .mini-top { position: static; grid-column: 2; order: -1; justify-self: stretch; }
  .mini .prog, .mini .ctrls, .mtx, .mline { grid-column: 2; width: 100%; }
  .mini .ctrls { gap: 4px; justify-content: space-between; }
  .mini .big { width: 38px; height: 38px; }
  .mline { display: none; }
}
body.pip .mini { position: fixed; }
body.pip .mini #popBtn { display: none; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(4,4,6,.5); backdrop-filter: blur(6px); display: grid; place-items: start center; padding-top: 11vh; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.scrim.open { opacity: 1; visibility: visible; transition: opacity .25s; }
.dialog { width: min(640px, calc(100vw - 32px)); border-radius: 22px; background: var(--glass-hi); border: 1px solid var(--line-hi); backdrop-filter: blur(40px) saturate(1.3); box-shadow: 0 40px 100px rgba(0,0,0,.5); transform: translateY(-8px) scale(.98); transition: transform .3s var(--ease); overflow: hidden; }
.scrim.open .dialog { transform: none; }
.palette .inp { display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; color: var(--dim); }
.palette input { flex: 1; font-size: 17px; background: none; border: 0; outline: none; }
.palette input::placeholder { color: var(--faint); }
.filters { display: flex; gap: 6px; padding: 0 18px 12px; border-bottom: 1px solid var(--line); }
.filters button { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; color: var(--dim); background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: .15s; }
.filters button:hover { color: var(--fg); }
.filters button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.results { max-height: min(54vh, 460px); overflow-y: auto; padding: 4px 8px 10px; }
.results::-webkit-scrollbar { width: 0; }
.res { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; width: 100%; text-align: left; }
.res .t { width: 42px; height: 42px; border-radius: 8px; flex: none; overflow: hidden; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--dim); }
.res .t.round-cv { border-radius: 50%; }
.res .tx { min-width: 0; flex: 1; }
.res .n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .n mark { background: none; color: var(--acc); }
.res .s { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .go { color: var(--faint); font-size: 11px; opacity: 0; white-space: nowrap; }
.res.sel { background: rgba(255,255,255,.09); }
.res.sel .go { opacity: 1; }
.res.top { padding: 12px; } .res.top .t { width: 64px; height: 64px; border-radius: 12px; } .res.top .t.round-cv { border-radius: 50%; } .res.top .n { font-size: 18px; font-weight: 700; }
.pal-foot { display: flex; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); flex-wrap: wrap; }
.pal-foot kbd { margin: 0 2px; }

.settings { width: min(620px, calc(100vw - 32px)); }
.set-head { display: flex; align-items: center; gap: 14px; padding: 16px 16px 12px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.set-head h2 { font-size: 18px; font-weight: 650; }
.tabs { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.tabs button { padding: 6px 11px; border-radius: 10px; font-size: 13px; color: var(--dim); transition: .15s; }
.tabs button:hover { color: var(--fg); background: var(--hover); }
.tabs button.on { color: var(--fg); background: rgba(255,255,255,.12); }
.set-body { padding: 8px 24px 22px; height: min(470px, 64vh); overflow-y: auto; }
.set-body::-webkit-scrollbar { width: 0; }
.tab { animation: enter .3s var(--ease); }
.opt { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.opt:last-child { border-bottom: 0; }
.opt .tx { flex: 1; min-width: 0; }
.opt .n { font-weight: 500; }
.opt .s { font-size: 12px; color: var(--faint); margin-top: 2px; }
.tog { width: 44px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.14); position: relative; flex: none; transition: background .25s; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.tog.on { background: color-mix(in srgb, var(--acc) 75%, #000); }
.tog.on::after { transform: translateX(18px); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 13px; color: var(--dim); padding: 14px 0; align-items: center; }
.keys kbd { color: var(--fg); justify-self: start; padding: 2px 8px; }
.acct { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.acct .av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; background: linear-gradient(135deg, var(--c2), var(--c1)); flex: none; }
.acct .tx { flex: 1; min-width: 0; }
.acct .n { font-weight: 600; font-size: 15px; }
.acct .s { color: var(--faint); font-size: 12.5px; }
.btn { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 13px; white-space: nowrap; transition: background .15s; }
.btn:hover { background: rgba(255,255,255,.18); }
.btn.danger { color: #fca5a5; }
.demo-states { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.demo-states .s { font-size: 12px; color: var(--faint); margin: 2px 0 10px; }
.demo-states .wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.credits { color: var(--faint); font-size: 12px; padding: 16px 0 0; }

.popover { position: fixed; z-index: 45; width: 290px; padding: 8px; border-radius: 18px; background: var(--glass-hi); border: 1px solid var(--line-hi); backdrop-filter: blur(40px); box-shadow: 0 24px 60px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .2s; }
.popover.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.popover h4 { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 8px 10px 6px; }
.pop-foot { font-size: 11.5px; color: var(--faint); padding: 8px 10px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.dev { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; width: 100%; text-align: left; }
.dev:hover { background: var(--hover); }
.dev .ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; flex: none; color: var(--dim); }
.dev .n { font-weight: 500; }
.dev .s { font-size: 12px; color: var(--faint); }
.dev.on .ic { background: color-mix(in srgb, var(--acc) 22%, transparent); color: var(--acc); }
.dev.on .s { color: #4ade80; }
.dev .eqbars { margin-left: auto; color: #4ade80; }
.sleep-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 12px; border-radius: 11px; text-align: left; color: var(--dim); }
.sleep-opt:hover { background: var(--hover); color: var(--fg); }
.ib .tag.time { top: -12px; color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: 0; }

.menu { position: fixed; z-index: 70; min-width: 240px; padding: 6px; border-radius: 16px; background: var(--glass-hi); border: 1px solid var(--line-hi); backdrop-filter: blur(40px) saturate(1.3); box-shadow: 0 24px 60px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: scale(.97); transform-origin: top left; transition: opacity .15s, transform .2s var(--ease), visibility 0s .15s; }
.menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .2s var(--ease); }
.menu .mh { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; min-width: 0; }
.menu .mh img { width: 34px; height: 34px; border-radius: 7px; flex: none; object-fit: cover; }
.menu .mh .n { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.menu .mh .s { font-size: 11.5px; color: var(--faint); }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; font-size: 13px; color: var(--dim); }
.menu button:hover, .menu button.sel { background: rgba(255,255,255,.08); color: var(--fg); }
.menu button svg { width: 17px; height: 17px; }
.menu button kbd { margin-left: auto; }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 4px 6px; }

.toast { position: fixed; left: 50%; bottom: 118px; z-index: 80; transform: translate(-50%, 10px); display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(28,28,36,.94); border: 1px solid var(--line-hi); backdrop-filter: blur(20px); font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.4); opacity: 0; transition: opacity .25s, transform .3s var(--ease); pointer-events: none; white-space: nowrap; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast #toastMsg { overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.toast button { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 600; font-size: 12.5px; color: var(--acc); }
.toast button:hover { background: rgba(255,255,255,.2); }
.toast button:empty { display: none; }

/* ---------- first run ---------- */
.setup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: radial-gradient(70% 70% at 30% 20%, color-mix(in srgb, var(--c1) 30%, transparent), transparent), radial-gradient(60% 60% at 80% 80%, color-mix(in srgb, var(--c2) 26%, transparent), transparent), color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(24px); overflow-y: auto; }
.setup-card { width: min(560px, 100%); padding: 34px 36px 26px; border-radius: 28px; background: rgba(16,16,22,.7); animation: enter .6s var(--ease); }
.big-brand { padding: 0 0 22px; font-size: 18px; }
.setup h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.lead { color: var(--dim); margin: 12px 0 22px; font-size: 14.5px; line-height: 1.55; }
.steps { list-style: none; display: grid; gap: 14px; margin-bottom: 22px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--dim); font-size: 13.5px; }
.steps li > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--fg); background: rgba(255,255,255,.1); flex: none; }
.steps a { color: var(--fg); }
.steps b { color: var(--fg); font-weight: 600; }
.code { font: 12.5px ui-monospace, Consolas, monospace; color: var(--fg); background: rgba(255,255,255,.08); padding: 3px 8px; border-radius: 6px; margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; }
.code:hover { background: rgba(255,255,255,.14); }
.code svg { width: 13px; height: 13px; }
.setup-row { display: flex; gap: 10px; }
.setup-row input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--line-hi); outline: none; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.setup-row input:focus { border-color: var(--acc); }
.setup-row input.bad { border-color: #f87171; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.primary { padding: 12px 22px; border-radius: 14px; background: var(--fg); color: var(--bg); font-weight: 650; transition: transform .15s; }
.primary:hover { transform: translateY(-1px); }
.setup-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 12.5px; color: var(--faint); gap: 12px; flex-wrap: wrap; }
.setup-foot .link { color: var(--acc); font-weight: 600; }

/* ---------- reduce motion, background windows ---------- */
body.calm .media, body.calm .amb-in, body.calm .eqbars i { animation: none !important; }
body.calm .lyr-inner { transition-duration: .25s; }
body.away .media, body.away .amb-in { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .media, .amb-in { animation: none !important; } }

/* ---------- window sizes ---------- */
@media (min-width: 1700px) {
  :root { --side: 290px; --panelw: 384px; }
  .art-wrap { width: min(100%, 48vh, 520px); }
}
@media (max-width: 1240px) {
  :root { --side: 76px; --panelw: 0px; }
  .side { padding: 18px 10px 10px; }
  .brand span, .nav span, .nav kbd, .lib-head, .lib-filter, .pl .tx, .me-n { display: none !important; }
  .nav, .pl { justify-content: center; padding-left: 0; padding-right: 0; }
  .me { justify-content: center; padding: 6px 0; }
  .brand { justify-content: center; padding: 0 0 14px; }
  .lists { padding-top: 10px; }
  .panel { opacity: 0; pointer-events: none; }
  .vol { display: none; }
  .bar { gap: 12px; grid-template-columns: minmax(0,1fr) minmax(260px,520px) auto; }
  .app.drawer .panel { opacity: 1; pointer-events: auto; position: fixed; top: 16px; right: 16px; bottom: 108px; width: 336px; z-index: 30; padding: 18px 10px 10px; border-width: 1px; background: var(--glass-hi); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: slidein .35s var(--ease); }
  .week { grid-template-columns: repeat(3, minmax(0, 1fr)); } .week .stat:last-child { grid-column: 1 / -1; }
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
@media (max-width: 1100px) {
  .trk-head, .trk { grid-template-columns: 34px minmax(0,1fr) 110px 36px 52px; }
  .trk .en, .trk-head .en { display: none; }
  .find { width: 150px; }
}
@media (max-width: 900px) {
  .pl-head { flex-direction: column; align-items: flex-start; }
  .stage { grid-template-columns: minmax(0,1fr); justify-items: center; }
  .hero { align-items: center; text-align: center; }
  .row { justify-content: center; } .row .sep { display: none; }
  .lyrics, .peek { display: none; }
  .hline { display: block; margin-top: 12px; font-weight: 700; font-size: 17px; color: color-mix(in srgb, var(--fg) 88%, transparent); min-height: 1.4em; max-width: 90%; margin-inline: auto; text-wrap: balance; }
  .bar { grid-template-columns: minmax(0,1fr) minmax(240px, 2fr) auto; }
  .vol-wrap, .right .div, #sleepBtn, #devBtn { display: none; }
  .search span { display: none; } .search { flex: 0; } .search kbd { display: none; }
  .trk-head, .trk { grid-template-columns: 34px minmax(0,1fr) 36px 52px; }
  .trk .mood, .trk-head .mood { display: none; }
  .pl-tools { margin-left: 0; width: 100%; }
  .week { grid-template-columns: 1fr 1fr; }
}
@media (max-height: 700px) {
  .art-wrap { width: min(100%, 36vh, 440px); }
  .chip { height: 30px; }
  .app { grid-template-rows: minmax(0,1fr) 84px; }
}

/* ---------- colour settings ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 4px; }
.preset { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.preset:hover { color: var(--fg); background: rgba(255,255,255,.1); }
.preset i { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.swatch { width: 40px; height: 30px; padding: 0; border: 1px solid var(--line-hi); border-radius: 10px; background: none; cursor: pointer; flex: none; }
.swatch::-webkit-color-swatch-wrapper { padding: 3px; }
.swatch::-webkit-color-swatch { border: 0; border-radius: 7px; }
.opt.off { opacity: .4; pointer-events: none; }
.preset .del { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; margin-left: 2px; color: var(--faint); }
.preset .del:hover { background: rgba(255,255,255,.14); color: var(--fg); }
.theme-name { width: 150px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid var(--line); outline: none; font-size: 13px; }
.theme-name:focus { border-color: var(--line-hi); }
.mix-acts { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.mix-acts .hplay { position: static; }
.mix-add { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; backdrop-filter: blur(10px); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), background .15s; }
.mix-add:hover { background: rgba(0,0,0,.55); }
.mix-add svg { width: 18px; height: 18px; }
.mix-add.on { opacity: 1; transform: none; background: rgba(255,255,255,.2); }
.mix:hover .mix-add { opacity: 1; transform: none; }
.mix-new { position: absolute; top: 18px; left: 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.35); color: #fff; }
.mix-new ~ .n { margin-top: 0; }
.mix:has(.mix-new) .mbar { display: none; }
.mix.sk { height: 150px; border: 0; }

/* ---------- drag to resize the side panels ---------- */
.side, .panel { position: relative; }
.resizer { position: absolute; top: 14px; bottom: 14px; width: 10px; cursor: col-resize; z-index: 5; touch-action: none; }
#sideResizer { right: -9px; }
#panelResizer { left: -9px; }
.resizer::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; border-radius: 2px; background: var(--acc); opacity: 0; transition: opacity .15s; }
.resizer:hover::after, .app.resizing .resizer::after { opacity: .7; }
.app.resizing { transition: none; user-select: none; cursor: col-resize; }
.panel { overflow: visible; }
.panel > .queue, .panel > .flow { overflow-x: hidden; }
@media (max-width: 1240px) { .resizer { display: none; } }

/* ---------- settings: sections on the left, content on the right ---------- */
.settings { width: min(900px, calc(100vw - 32px)); height: min(640px, calc(100vh - 80px)); display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.scrim:has(.settings) { place-items: center; padding-top: 0; }
.set-nav { border-right: 1px solid var(--line); padding: 22px 12px 14px; display: flex; flex-direction: column; gap: 12px; min-height: 0; background: rgba(255,255,255,.02); }
.set-nav h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; padding: 0 10px; }
.set-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--faint); }
.set-search:focus-within { border-color: var(--line-hi); }
.set-search svg { width: 15px; height: 15px; }
.set-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 13px; }
.settings .tabs { flex-direction: column; flex-wrap: nowrap; gap: 1px; overflow-y: auto; min-height: 0; flex: 1; }
.settings .tabs::-webkit-scrollbar { width: 0; }
.settings .tabs button { display: flex; align-items: center; gap: 11px; padding: 8px 10px; text-align: left; border-radius: 10px; font-size: 13.5px; }
.settings .tabs button svg { width: 16px; height: 16px; opacity: .8; }
.settings .tabs button.on { background: rgba(255,255,255,.1); }
.set-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.set-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 8px 28px; }
.set-top h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.settings .set-body { flex: 1; height: auto; padding: 0 28px 24px; }
.settings .tab { animation: enter .25s var(--ease); }
.opt.col { align-items: flex-start; }
details.more { border-top: 1px solid rgba(255,255,255,.05); }
details.more summary { cursor: pointer; list-style: none; padding: 13px 0; font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
details.more[open] summary::before { transform: rotate(45deg); }
details.more summary:hover { color: var(--fg); }
.note { color: var(--faint); font-size: 13px; padding: 16px 0; }
a.btn { color: var(--fg); text-decoration: none; }
@media (max-width: 720px) {
  .settings { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - 32px); }
  .set-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 12px 10px; }
  .settings .tabs { flex-direction: row; overflow-x: auto; flex: none; }
  .settings .tabs button { white-space: nowrap; }
}

/* ---------- design pass: calmer, sleeker ---------- */
/* Small labels in sentence case, not tracked capitals. */
.label, .sub, .lyr-head .k, .stat .k, .trk-head, .popover h4, .peek .k, .flow .lbl { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--dim); }
.badge { text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 600; }
.ib .tag { text-transform: none; letter-spacing: 0; font-size: 10.5px; font-weight: 650; }
/* Nothing too small to read. */
.pl .s, .q .s, .trk .s, .res .s, .card .s, .np .s, .chip, .opt .s, .dev .s, .mix .s, .stat .d, .trk .mood, .trk .dur, .q .m, .prog { font-size: 12.5px; }
/* Quieter depth: hairlines and short shadows instead of big soft ones. */
.dialog { box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.popover, .menu { box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.art { box-shadow: 0 20px 50px -18px color-mix(in srgb, var(--c1) 40%, transparent), 0 8px 24px rgba(0,0,0,.45); }
.card .cvw { box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.glass { box-shadow: none; }
.title { letter-spacing: -.03em; }
.big { box-shadow: none; }
.big:hover { box-shadow: 0 0 0 6px color-mix(in srgb, var(--fg) 12%, transparent); }
.nav.on { background: color-mix(in srgb, var(--fg) 9%, transparent); }
.nav.on svg { color: var(--acc); }
.nav.mob, .mobq { display: none; }
/* Touch screens get 44px targets. */
@media (pointer: coarse) {
  .ib { width: 44px; height: 44px; }
  .round { width: 44px; height: 44px; }
  .track { height: 28px; }
  .q, .trk { min-height: 56px; }
}

/* ---------- phone: one column, tabs along the bottom ---------- */
@media (max-width: 600px) {
  html, body { height: 100%; }
  .app {
    padding: 0; gap: 0;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto auto;
    grid-template-areas: "main" "bar" "side";
  }
  .main { border-radius: 0; border: 0; }
  .panel { position: fixed; display: none; }
  .app.drawer .panel { display: flex; }
  .top { padding: calc(10px + env(safe-area-inset-top)) 14px 0; }
  .hist { display: none; }
  .search { flex: 1; max-width: none; }
  .search span { display: block; }
  /* bottom tabs */
  .side { flex-direction: row; justify-content: space-around; align-items: center; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); border-radius: 0; border-width: 1px 0 0; gap: 0; background: color-mix(in srgb, var(--panel) 92%, transparent); }
  .side .brand, .side .lib-head, .side .lib-filter, .side .lists, .side-foot .me, .resizer { display: none !important; }
  .side-foot { border: 0; margin: 0; padding: 0; display: contents; }
  .nav, .nav.mob { display: flex; flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 11px; width: auto; flex: 1; justify-content: center; align-items: center; background: none !important; }
  .nav span { display: block !important; }
  .nav kbd, .nav-eq { display: none !important; }
  .nav svg { width: 22px; height: 22px; }
  /* library opens as a full sheet over the page */
  .app.libopen .side .lists { display: grid !important; position: fixed; inset: 0 0 calc(64px + env(safe-area-inset-bottom)) 0; z-index: 35; background: var(--bg); padding: calc(20px + env(safe-area-inset-top)) 12px 12px; align-content: start; overflow-y: auto; }
  .app.libopen .side .lists .pl { justify-content: flex-start; padding: 8px; }
  .app.libopen .side .lists .pl .tx { display: block !important; }
  /* player bar: song + play/next, thin progress on top */
  .bar { border-radius: 0; border-width: 1px 0 0; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 14px 8px; gap: 10px; position: relative; }
  .center { display: contents; }
  .ctrls { gap: 4px; }
  .ctrls .shuf, .ctrls .rep, .ctrls .prevB { display: none; }
  .big { width: 42px; height: 42px; }
  .prog { position: absolute; left: 0; right: 0; top: -9px; gap: 0; }
  .prog .pos, .prog .dur { display: none; }
  .bar .prog .track::before, .bar .prog .track i { height: 3px; }
  .right { display: none; }
  .np .t { width: 46px; height: 46px; }
  /* now playing: big cover, words under it */
  .stage { padding: 18px 18px 12px; gap: 14px; align-content: start; }
  .art-wrap { width: min(100%, 52vh); }
  .title { font-size: 30px; }
  .peek { display: none; }
  .mobq { display: grid; }
  .scroller { padding: 4px 16px 24px; }
  .greet { font-size: 30px; padding-top: 14px; }
  .mixes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mix { height: 130px; padding: 12px 14px; }
  .mix .n { font-size: 18px; }
  .mix .s { display: none; }
  .week { grid-template-columns: 1fr 1fr; }
  .pl-head { padding-top: 10px; }
  .pl-cover { width: 150px; }
  .pl-name { font-size: 34px; }
  .pl-acts .seg { display: none; }
  .find { width: 100%; }
  .trk-head { display: none; }
  .trk, .trk-head { grid-template-columns: minmax(0, 1fr) 36px 44px; padding: 0 6px; gap: 10px; }
  .trk .num { display: none; }
  .toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
  .app.drawer .panel { inset: 0 0 auto 0; top: 0; bottom: calc(130px + env(safe-area-inset-bottom)); width: auto; right: 0; border-radius: 0; }
  .full-top { padding-top: calc(18px + env(safe-area-inset-top)); }
  .full-ctrl { margin-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) { .sec span { display: none; } .sec h2 { font-size: 19px; } }

/* ---------- vibe and order pickers ---------- */
.pick { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 13px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 13px; color: var(--dim); white-space: nowrap; transition: background .15s, color .15s; }
.pick:hover { background: rgba(255,255,255,.12); color: var(--fg); }
.pick.set { color: var(--fg); background: color-mix(in srgb, var(--acc) 14%, transparent); border-color: color-mix(in srgb, var(--acc) 35%, transparent); }
.pick .mdot { width: 9px; height: 9px; box-shadow: none; }
.pick svg:last-child { opacity: .6; margin-left: -2px; }
.menu.vmenu { min-width: 250px; max-height: min(460px, 70vh); overflow-y: auto; }
.menu .vm { display: flex; align-items: center; gap: 12px; }
.menu .vm .mdot { width: 10px; height: 10px; box-shadow: none; flex: none; margin: 0 3px; }
.menu .vm .vm-tx { flex: 1; min-width: 0; display: grid; }
.menu .vm small { font-size: 12px; color: var(--faint); }
.menu .vm em { font-style: normal; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.menu .vm svg:last-child { color: var(--acc); }
.menu .vm.sel { color: var(--fg); }
.menu .vm:disabled { opacity: .35; cursor: default; }
.menu .vm:disabled:hover { background: none; }
.vm-head { font-size: 12px; color: var(--faint); padding: 10px 12px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
@media (max-width: 600px) { .pl-acts .pick { display: flex; } }
.menu.vmenu { background: color-mix(in srgb, var(--panel), #fff 5%); backdrop-filter: none; }
