:root {
  --bg: #000;
  --panel: #121212;
  --elev: #1f1f1f;
  --elev-2: #282828;
  --text: #fff;
  --muted: #b3b3b3;
  --dim: #7a7a7a;
  --accent: #1ed760;
  --accent-2: #3be477;
  --danger: #f15e6c;
  --side-w: clamp(250px, 22vw, 340px);
  --player-h: 76px;
  --tab-h: 58px;
  --mini-h: 58px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --page: 40, 40, 40;
  --c: 60, 60, 60;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: Figtree, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  opacity: 0;
  transition: opacity .25s;
}
body.ready { opacity: 1; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- icons ---------- */
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: block; }

/* ---------- layout ---------- */
.app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template: "side main" minmax(0, 1fr) "player player" var(--player-h) / var(--side-w) minmax(0, 1fr);
  gap: 8px;
  padding: 8px 8px 0;
}
.panel { background: var(--panel); border-radius: 10px; }
.sidebar { grid-area: side; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.main { grid-area: main; position: relative; overflow-y: auto; overflow-x: hidden; min-height: 0; isolation: isolate; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.main::-webkit-scrollbar { width: 12px; }
.main::-webkit-scrollbar-thumb { background: transparent; border: 3px solid transparent; background-clip: padding-box; border-radius: 10px; }
.main:hover::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,.28); }
.tabbar { display: none; }
.spacer { flex: 1; }

.main-bg {
  position: absolute; left: 0; right: 0; top: 0; height: 440px; z-index: -1;
  background-color: rgb(var(--page));
  transition: background-color .6s ease;
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
  mask-image: linear-gradient(#000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
}
.view { position: relative; padding: 0 24px 40px; min-height: calc(100% - 64px); }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  height: 64px; display: flex; align-items: center; gap: 8px; padding: 0 24px;
}
.topbar-bg {
  position: absolute; inset: 0; z-index: -1; opacity: var(--alpha, 0);
  background: color-mix(in srgb, rgb(var(--page)) 55%, #121212);
  transition: background-color .6s ease;
  border-radius: 10px 10px 0 0;
}
.topbar-title { font-size: 22px; font-weight: 800; opacity: 0; transform: translateY(6px); transition: .25s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 8px; min-width: 0; }
.topbar.show-title .topbar-title { opacity: 1; transform: none; }
.round-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.round-btn .i { width: 20px; height: 20px; }

/* ---------- buttons ---------- */
.icon-btn {
  width: 32px; height: 32px; border: 0; background: none; color: var(--muted);
  display: inline-grid; place-items: center; cursor: pointer; border-radius: 50%; position: relative; flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn:hover { color: #fff; }
.icon-btn:active { transform: scale(.92); }
.icon-btn.big { width: 44px; height: 44px; }
.icon-btn.big .i { width: 28px; height: 28px; }
.icon-btn.toggle.on, .like-btn.on, .row-like.on { color: var(--accent); }
.icon-btn.toggle.on::after { content: ""; position: absolute; bottom: -2px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.icon-btn.big.toggle.on::after { bottom: 0; }

.play-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: #000;
  display: grid; place-items: center; cursor: pointer; transition: transform .15s;
}
.play-btn .i { width: 18px; height: 18px; }
.play-btn:hover { transform: scale(1.06); }
.play-btn:active { transform: scale(.95); }

.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 0; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform .15s, background .15s; white-space: nowrap;
}
.pill-btn .i { width: 18px; height: 18px; }
.pill-btn:hover { transform: scale(1.04); background: rgba(255,255,255,.14); }
.pill-btn.light { background: #fff; color: #000; }
.pill-btn.primary { background: var(--accent); color: #000; }
.pill-btn.danger { background: var(--danger); color: #000; }
.pill-btn.ghost { background: none; color: var(--muted); }
.pill-btn.ghost:hover { color: #fff; }
.pill-btn.outline { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.pill-btn.outline:hover { box-shadow: inset 0 0 0 1px #fff; }

.fab, .big-play {
  border-radius: 50%; border: 0; background: var(--accent); color: #000; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.35); transition: transform .2s var(--ease), opacity .2s, background .15s;
}
.fab { width: 48px; height: 48px; }
.fab .i { width: 22px; height: 22px; }
.fab.sm { width: 34px; height: 34px; }
.fab.sm .i { width: 16px; height: 16px; }
.big-play { width: 56px; height: 56px; }
.big-play .i { width: 26px; height: 26px; }
.fab:hover, .big-play:hover { transform: scale(1.05); background: var(--accent-2); }
.fab:active, .big-play:active { transform: scale(.96); }

.link { cursor: pointer; }
.link:hover { text-decoration: underline; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 14px; font-weight: 700; }
.strong { font-weight: 700; color: #fff; }

/* ---------- art ---------- */
.art {
  --seed: 80, 80, 80;
  position: relative; aspect-ratio: 1; width: 100%; border-radius: 6px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, rgb(var(--seed)), color-mix(in srgb, rgb(var(--seed)) 35%, #000));
  display: grid; place-items: center; color: rgba(255,255,255,.55);
}
.art > .i { width: 38%; height: 38%; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fade .35s ease; }
.art.has-img > .i { opacity: 0; }
.art.round { border-radius: 50%; }
.art.sm { width: 48px; height: 48px; border-radius: 4px; }
.art.sm.round { border-radius: 50%; }
.liked-art { background: linear-gradient(135deg, #450af5, #c4efd9); color: #fff; }
.liked-art > .i { width: 42%; height: 42%; }
.songs-art { background: linear-gradient(135deg, #0b5d45, #1ed760); color: #fff; }
.pl-art { background: #333; color: #b3b3b3; }
.empty-art { background: #282828; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; }
.mosaic > .art { border-radius: 0; }
@keyframes fade { from { opacity: 0; } }

/* ---------- sidebar ---------- */
.side-nav { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -.03em; padding: 6px 12px 12px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: url("icons/icon.svg") center/cover; flex-shrink: 0; }
.side-link { display: flex; align-items: center; gap: 18px; padding: 10px 12px; font-weight: 700; font-size: 15px; color: var(--muted); border-radius: 6px; transition: color .15s; }
.side-link:hover, .side-link.active { color: #fff; }
.side-lib { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.side-lib-head { display: flex; align-items: center; padding: 8px 12px 0; }
.side-lib-head .side-link { flex: 1; }
.side-lib-list { flex: 1; overflow-y: auto; padding: 4px 8px 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.side-lib-list .chips { padding: 6px 4px 10px; }
.side-lib-foot { padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.06); }
.side-lib-foot .pill-btn { width: 100%; justify-content: center; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
.chip:hover { background: rgba(255,255,255,.14); }
.chip.on { background: #fff; color: #000; padding-left: 8px; }
.chip .i { width: 16px; height: 16px; }

.lib-list { display: flex; flex-direction: column; }
.lib-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; cursor: pointer; transition: background .15s; min-width: 0; }
.lib-item:hover { background: rgba(255,255,255,.07); }
.lib-item.active { background: rgba(255,255,255,.12); }
.lib-item .art.sm { width: 48px; height: 48px; }
.lib-text { min-width: 0; }
.lib-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-item.active .lib-title { color: var(--accent); }
.lib-sub { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin { color: var(--accent); display: inline-flex; }
.pin .i { width: 13px; height: 13px; }
.lib-empty { margin: 8px 4px; padding: 16px; border-radius: 8px; background: rgba(255,255,255,.06); }
.lib-empty p { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.lib-empty .pill-btn { margin: 0 4px 6px 0; }

/* ---------- player bar ---------- */
.player {
  grid-area: player; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.6fr) minmax(180px, 1fr);
  align-items: center; gap: 16px; padding: 0 8px; position: relative;
}
.p-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.p-art { border: 0; padding: 0; background: none; cursor: pointer; flex-shrink: 0; border-radius: 6px; }
.p-art .art { width: 56px; height: 56px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.p-meta { min-width: 0; }
.p-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-artist { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-center { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 720px; justify-self: center; }
.p-controls { display: flex; align-items: center; gap: 18px; }
.p-progress { display: flex; align-items: center; gap: 8px; width: 100%; }
.time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 40px; }
.p-progress .time:first-child { text-align: right; }
.p-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.p-right .volume { width: 100px; }
.p-mini-progress { display: none; }
.player.idle .p-controls, .player.idle .p-progress, .player.idle .like-btn { opacity: .4; pointer-events: none; }
.marquee { text-overflow: clip !important; animation: marquee 12s linear infinite; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 90%, transparent); }
@keyframes marquee { 0%, 20% { text-indent: 0; } 80%, 100% { text-indent: var(--shift); } }

/* ---------- range sliders ---------- */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; background: transparent; cursor: pointer; margin: 0; --pct: 0%; --fill: #fff; touch-action: none; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--fill) var(--pct), rgba(255,255,255,.28) var(--pct)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.5); opacity: 0; transition: opacity .15s; }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.28); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--fill); }
.range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
.range:hover, .range:active { --fill: var(--accent); }
.range:hover::-webkit-slider-thumb, .range:active::-webkit-slider-thumb { opacity: 1; }
.range:hover::-moz-range-thumb { opacity: 1; }

/* ---------- home ---------- */
.greeting { font-size: 32px; font-weight: 800; margin: 8px 0 20px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; margin-bottom: 16px; }
.tile {
  display: flex; align-items: center; gap: 12px; height: 64px; background: rgba(255,255,255,.08); border-radius: 6px;
  overflow: hidden; cursor: pointer; transition: background .2s; position: relative; font-weight: 700; font-size: 15px; padding-right: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tile:hover { background: rgba(255,255,255,.16); }
.tile > .art { width: 64px; height: 64px; border-radius: 0; box-shadow: 4px 0 12px rgba(0,0,0,.3); }
.tile > span { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.tile .fab { opacity: 0; transform: scale(.9); flex-shrink: 0; }
.tile:hover .fab, .tile .fab.active { opacity: 1; transform: none; }

.shelf { margin-top: 28px; }
.shelf > header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 8px; gap: 16px; }
.shelf h2 { font-size: 24px; font-weight: 800; }
.shelf-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 15vw, 200px); gap: 4px;
  overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scroll-snap-type: x mandatory; scroll-padding: 12px; scrollbar-width: none;
}
.shelf-row::-webkit-scrollbar { display: none; }
.card { padding: 12px; border-radius: 8px; cursor: pointer; transition: background .2s; scroll-snap-align: start; min-width: 0; }
.card:hover { background: rgba(255,255,255,.07); }
.card-art { position: relative; margin-bottom: 10px; }
.card-art > .art { box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.card .fab { position: absolute; right: 8px; bottom: 8px; opacity: 0; transform: translateY(8px); }
.card:hover .fab, .card .fab.active { opacity: 1; transform: none; }
.card-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.card.round .card-title, .card.round .card-sub { text-align: left; }
.footer-note, .storage { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 48px 0 8px; }
.footer-note .i, .storage .i { width: 16px; height: 16px; color: var(--accent); }

/* ---------- welcome (empty library) ---------- */
.welcome { position: relative; padding: 40px 0 24px; max-width: 900px; isolation: isolate; }
.welcome-glow {
  position: absolute; z-index: -1; inset: -120px -60px auto -60px; height: 560px; pointer-events: none; filter: blur(30px);
  background: radial-gradient(circle at 20% 35%, rgba(30,215,96,.35), transparent 45%), radial-gradient(circle at 75% 25%, rgba(125,90,255,.35), transparent 45%), radial-gradient(circle at 55% 70%, rgba(0,190,220,.2), transparent 45%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(30px, 20px, 0) scale(1.08) rotate(4deg); } }
.welcome-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(30,215,96,.14); color: var(--accent); font-weight: 700; font-size: 13px; }
.welcome-badge .i { width: 18px; height: 18px; }
.welcome h1 { font-size: clamp(42px, 7vw, 84px); line-height: .98; font-weight: 900; letter-spacing: -.045em; margin: 20px 0 18px; }
.grad { background: linear-gradient(90deg, #1ed760, #4de1d2 45%, #a58bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome p { color: #cfcfcf; font-size: 18px; line-height: 1.5; max-width: 580px; margin: 0; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; align-items: center; }
.cta { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 30px; border-radius: 999px; border: 0; background: var(--accent); color: #000; font-weight: 800; font-size: 17px; cursor: pointer; transition: transform .15s, background .15s; box-shadow: 0 10px 30px rgba(30,215,96,.3); }
.cta:hover { transform: scale(1.04); background: var(--accent-2); }
.cta .i { width: 20px; height: 20px; }
.welcome-actions .pill-btn { height: 54px; padding: 0 24px; font-size: 16px; }
.welcome-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.welcome-tips > div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.welcome-tips .i { color: var(--accent); margin-bottom: 6px; }
.welcome-tips b { font-size: 16px; }
.welcome-tips span { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- hero + actions ---------- */
.hero { display: flex; align-items: flex-end; gap: 24px; padding: 12px 0 24px; min-height: 250px; }
.hero-art { width: clamp(160px, 18vw, 232px); flex-shrink: 0; }
.hero-art .art { box-shadow: 0 8px 40px rgba(0,0,0,.55); }
.hero-text { min-width: 0; }
.hero-type { font-size: 14px; font-weight: 600; }
.hero-title { font-size: clamp(40px, 6.5vw, 96px); font-weight: 900; letter-spacing: -.045em; line-height: 1.02; margin: 6px 0 14px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: .06em; }
.hero-title.lg { font-size: clamp(34px, 4.8vw, 72px); }
.hero-title.xl { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.03em; }
.hero-meta { font-size: 14px; color: #e0e0e0; }
.actions { display: flex; align-items: center; gap: 22px; padding: 20px 0 24px; }
.page-title { font-size: 32px; font-weight: 800; margin: 8px 0 8px; }
.section-title { font-size: 22px; font-weight: 800; margin: 28px 0 12px; }
.section-title .link { color: inherit; }

/* ---------- track list ---------- */
.tracklist { --cols: 36px minmax(0, 1fr) 36px 56px 36px; }
.tracklist.with-art { --cols: 36px 40px minmax(0, 1fr) 36px 56px 36px; }
.tracklist.with-album { --cols: 36px minmax(0, 4fr) minmax(0, 3fr) 36px 56px 36px; }
.tracklist.with-art.with-album { --cols: 36px 40px minmax(0, 4fr) minmax(0, 3fr) 36px 56px 36px; }
.tl-head, .row { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 12px; padding: 0 12px; }
.tl-head { height: 36px; font-size: 13px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 8px; }
.tl-head > span:first-child { text-align: center; }
.tl-head .r { display: flex; justify-content: flex-end; padding-right: 6px; }
.tl-head .i { width: 16px; height: 16px; }
.tl-head > span:nth-child(3) { grid-column: auto; }
.row { height: 58px; border-radius: 6px; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background .12s; }
.row:hover { background: rgba(255,255,255,.08); }
.row:active { background: rgba(255,255,255,.12); }
.row .art.sm { width: 40px; height: 40px; }
.row-num { display: flex; justify-content: center; align-items: center; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.row-num .rp { display: none; width: 14px; height: 14px; color: #fff; }
.row:hover .row-num .n, .row:hover .row-num .eq { display: none; }
.row:hover .row-num .rp { display: block; }
.row.playing .row-num .n { display: none; }
.row.playing .row-num .eq { display: flex; }
.row.playing:hover .row-num .eq { display: none; }
.eq { display: none; gap: 2px; height: 14px; align-items: flex-end; }
.eq i { width: 3px; height: 35%; background: var(--accent); border-radius: 1px; }
body.is-playing .eq i { animation: eq .85s ease-in-out infinite alternate; }
body.is-playing .eq i:nth-child(2) { animation-duration: .65s; animation-delay: -.3s; }
body.is-playing .eq i:nth-child(3) { animation-duration: 1.05s; animation-delay: -.6s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.row-main { min-width: 0; }
.row-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.playing .row-title { color: var(--accent); }
.row-sub { font-size: 14px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.row-sub .link { overflow: hidden; text-overflow: ellipsis; }
.liked-dot { display: none; color: var(--accent); margin-right: 6px; }
.liked-dot .i { width: 13px; height: 13px; }
.row-album { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-dur { font-size: 14px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; padding-right: 6px; }
.row-like, .row-more { opacity: 0; }
.row-like .i { width: 18px; height: 18px; }
.row-like.on, .row:hover .row-like, .row:hover .row-more, .row-like:focus-visible, .row-more:focus-visible { opacity: 1; }

/* ---------- search ---------- */
.search-head { padding-top: 4px; }
.mobile-title { display: none; }
.search-box {
  display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 8px 0 16px; max-width: 480px;
  background: #242424; border-radius: 999px; color: var(--muted); transition: box-shadow .15s, background .15s; cursor: text;
}
.search-box:hover { background: #2a2a2a; box-shadow: inset 0 0 0 1px #3a3a3a; }
.search-box:focus-within { box-shadow: inset 0 0 0 2px #fff; }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 16px; outline: none; }
.search-box input::placeholder { color: #8a8a8a; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box:has(input:placeholder-shown) .clear { visibility: hidden; }
.browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.browse {
  position: relative; aspect-ratio: 1.15; border-radius: 10px; overflow: hidden; cursor: pointer; padding: 16px;
  background: rgb(var(--c)); transition: transform .2s var(--ease);
}
.browse:hover { transform: scale(1.02); }
.browse > span { position: relative; z-index: 1; font-size: 22px; font-weight: 800; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.browse > .art { position: absolute; width: 46%; right: -6%; bottom: -4%; transform: rotate(25deg); box-shadow: 0 4px 16px rgba(0,0,0,.35); border-radius: 6px; }
.browse > .art.round { border-radius: 50%; }
.results-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
.top-card { position: relative; background: rgba(255,255,255,.06); border-radius: 10px; padding: 20px; cursor: pointer; transition: background .2s; min-height: 220px; }
.top-card:hover { background: rgba(255,255,255,.11); }
.top-card > .art { width: 96px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.top-title { font-size: 32px; font-weight: 800; margin: 20px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.03em; }
.top-sub { color: var(--muted); font-size: 14px; font-weight: 600; }
.top-card .fab { position: absolute; right: 20px; bottom: 20px; opacity: 0; transform: translateY(8px); }
.top-card:hover .fab, .top-card .fab.active { opacity: 1; transform: none; }

/* ---------- library page ---------- */
.lib-head { display: flex; align-items: center; gap: 8px; margin: 8px 0 16px; }
.lib-head h1 { font-size: 32px; font-weight: 800; }
.lib-head .icon-btn .i { width: 24px; height: 24px; }
.lib-list.big { margin-top: 16px; }
.lib-list.big .art.sm { width: 64px; height: 64px; }
.lib-list.big .lib-title { font-size: 16px; }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 56px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty > .i { width: 56px; height: 56px; color: var(--muted); stroke-width: 1.5; }
.empty h2 { font-size: 24px; font-weight: 800; }
.empty p { color: var(--muted); margin: 0 0 8px; max-width: 420px; }

/* ---------- now playing ---------- */
.np { position: fixed; inset: 0; z-index: 50; visibility: hidden; pointer-events: none; transition: visibility 0s .4s; }
.np.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.np-bg {
  position: absolute; inset: 0; opacity: 0; transition: opacity .35s; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, rgb(var(--c)) 70%, #000), #080808);
}
.np.open .np-bg { opacity: 1; }
/* One layer per song, crossfaded. Colors come from the cover (--p1..--p4). */
.np-bg-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; background: rgb(var(--p1)); }
.np-bg-layer.in { opacity: 1; }
.np-bg-art {
  position: absolute; left: -20%; top: -20%; width: 140%; height: 140%; object-fit: cover;
  filter: blur(80px) saturate(1.6); opacity: .6; animation: bg-pan 46s ease-in-out infinite alternate;
}
.blob { position: absolute; width: 75vmax; height: 75vmax; border-radius: 50%; will-change: transform; }
.b1 { background: radial-gradient(closest-side, rgb(var(--p1)), transparent); top: -30vmax; left: -25vmax; opacity: .85; animation: float-1 21s ease-in-out infinite alternate; }
.b2 { background: radial-gradient(closest-side, rgb(var(--p2)), transparent); top: -15vmax; right: -35vmax; opacity: .8; animation: float-2 27s ease-in-out infinite alternate; }
.b3 { background: radial-gradient(closest-side, rgb(var(--p3)), transparent); bottom: -35vmax; left: -15vmax; opacity: .75; animation: float-3 33s ease-in-out infinite alternate; }
.b4 { background: radial-gradient(closest-side, rgb(var(--p4)), transparent); bottom: -25vmax; right: -30vmax; opacity: .55; animation: float-4 25s ease-in-out infinite alternate; }
@keyframes bg-pan { to { transform: translate3d(6%, 4%, 0) scale(1.12) rotate(6deg); } }
@keyframes float-1 { to { transform: translate3d(22vmax, 16vmax, 0) scale(1.2); } }
@keyframes float-2 { to { transform: translate3d(-24vmax, 20vmax, 0) scale(.9); } }
@keyframes float-3 { to { transform: translate3d(20vmax, -18vmax, 0) scale(1.15); } }
@keyframes float-4 { to { transform: translate3d(-18vmax, -22vmax, 0) scale(1.25); } }
body:not(.is-playing) .np-bg-layer > * { animation-play-state: paused; }
/* Keeps white text readable on any cover. */
.np-bg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.45) 62%, rgba(0,0,0,.82) 100%); }
.np.light-art .np-bg-shade { background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.3) 30%, rgba(0,0,0,.6) 62%, rgba(0,0,0,.88) 100%); }
.np-bg-grain {
  position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 900px) {
  .np-bg-shade { background: radial-gradient(ellipse 70% 90% at 32% 50%, rgba(0,0,0,.05), rgba(0,0,0,.55)), linear-gradient(90deg, rgba(0,0,0,.1), rgba(0,0,0,.35)); }
  .np.light-art .np-bg-shade { background: radial-gradient(ellipse 70% 90% at 32% 50%, rgba(0,0,0,.25), rgba(0,0,0,.7)), linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.5)); }
}
.np-inner {
  position: relative; height: 100%; display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 10px) 24px calc(var(--safe-b) + 18px);
  transform: translateY(100%); transition: transform .42s var(--ease); will-change: transform;
}
.np.open .np-inner { transform: none; }
.np-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.np-head .icon-btn { width: 44px; height: 44px; color: #fff; }
.np-head .icon-btn .i { width: 26px; height: 26px; }
.np-from { text-align: center; min-width: 0; cursor: pointer; }
.np-from small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.np-from strong { display: block; font-size: 14px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding-top: 20px; }
.np-art-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; transition: transform .25s var(--ease); }
.np-art-wrap .art {
  width: min(100%, calc(100dvh - 400px - var(--safe-t) - var(--safe-b))); min-width: 180px; border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); transition: transform .5s var(--ease);
}
body:not(.is-playing) .np-art-wrap .art { transform: scale(.9); }
.np-panel { flex: none; display: flex; flex-direction: column; gap: 16px; }
.np-info { display: flex; align-items: center; gap: 16px; }
.np-text { flex: 1; min-width: 0; }
.np-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: 16px; color: rgba(255,255,255,.72); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.like-btn.big { width: 44px; height: 44px; color: #fff; }
.like-btn.big.on { color: var(--accent); }
.like-btn.big .i { width: 28px; height: 28px; }
.np-progress .range { height: 20px; }
.np-progress .range::-webkit-slider-thumb { opacity: 1; }
.np-progress .range::-moz-range-thumb { opacity: 1; }
.np-times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; margin-top: 2px; }
.np-controls { display: flex; align-items: center; justify-content: space-between; }
.np-controls .icon-btn { color: #fff; width: 44px; height: 44px; }
.np-controls .icon-btn .i { width: 26px; height: 26px; }
.np-controls .icon-btn.toggle.on { color: var(--accent); }
.np-controls .icon-btn.xl .i { width: 36px; height: 36px; }
.play-btn.xl { width: 68px; height: 68px; }
.play-btn.xl .i { width: 30px; height: 30px; }
.np-foot { display: flex; align-items: center; justify-content: space-between; }
.np-foot .icon-btn { color: #fff; }
.np-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7); }
.np-badge .i { width: 16px; height: 16px; color: var(--accent); }

/* ---------- menus + dialogs ---------- */
#layer .backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0); transition: background .25s; }
#layer.in .backdrop { background: rgba(0,0,0,.55); }
#layer .backdrop:has(+ .pop) { background: transparent; }
.menu { position: fixed; z-index: 100; background: var(--elev-2); border-radius: 8px; padding: 4px; min-width: 230px; max-width: 320px; max-height: 70vh; overflow-y: auto; box-shadow: 0 16px 32px rgba(0,0,0,.45), 0 4px 8px rgba(0,0,0,.3); }
.menu.pop { animation: pop .14s var(--ease); transform-origin: top left; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.menu-items hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 4px 0; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; background: none; color: #eaeaea; font-size: 14px; font-weight: 500; text-align: left; border-radius: 4px; cursor: pointer; }
.menu-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.menu-item > .i { width: 18px; height: 18px; color: var(--muted); }
.menu-item.on > .i:first-child { color: var(--accent); }
.menu-item .more { margin-left: auto; }
.menu-item > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item.danger, .menu-item.danger > .i { color: var(--danger); }
.menu.sheet {
  left: 0; right: 0; bottom: 0; max-width: none; max-height: 82vh; border-radius: 18px 18px 0 0; background: #212121;
  padding: 8px 8px calc(var(--safe-b) + 6px); transform: translateY(100%); transition: transform .32s var(--ease);
}
#layer.in .menu.sheet { transform: none; }
.menu.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); margin: 2px auto 8px; }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 4px 12px 14px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 6px; }
.menu-head > div { min-width: 0; }
.menu-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.sheet .menu-item { padding: 14px 12px; font-size: 16px; gap: 16px; }
.sheet .menu-item > .i { width: 24px; height: 24px; }
.menu-close { display: block; width: 100%; margin-top: 4px; padding: 14px; background: none; border: 0; font-weight: 700; font-size: 16px; color: var(--muted); cursor: pointer; }

.dialog {
  position: fixed; z-index: 100; left: 50%; top: 50%; width: min(420px, calc(100vw - 32px));
  transform: translate(-50%, -50%) scale(.96); opacity: 0; transition: .2s var(--ease);
  background: var(--elev-2); border-radius: 14px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
#layer.in .dialog { opacity: 1; transform: translate(-50%, -50%); }
.dialog h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.dialog p { color: var(--muted); margin: 0; line-height: 1.45; }
.dialog input { width: 100%; background: #3a3a3a; border: 1px solid transparent; border-radius: 6px; padding: 12px 14px; color: #fff; font: inherit; font-size: 16px; outline: none; }
.dialog input:focus { border-color: #8a8a8a; background: #333; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.dialog-actions .pill-btn { height: 44px; padding: 0 24px; font-size: 15px; }

/* ---------- toast + drop ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--player-h) + 24px); z-index: 120; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: #fff; color: #000; font-size: 14px; font-weight: 600; padding: 12px 18px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: .25s var(--ease); max-width: calc(100vw - 32px); min-width: 180px; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-bar { height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(0,0,0,.12); overflow: hidden; }
.toast-bar i { display: block; height: 100%; background: #0f9d4a; transform-origin: left; transition: transform .2s; }
.drop-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; text-align: center; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: rgba(10, 40, 22, .75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 4px var(--accent);
}
.drop-overlay.show { opacity: 1; }
.drop-overlay .i { width: 64px; height: 64px; color: var(--accent); margin: 0 auto 16px; }
.drop-overlay h2 { font-size: 32px; font-weight: 800; }
.drop-overlay p { color: var(--muted); }

/* ---------- desktop now playing (big screen) ---------- */
@media (min-width: 900px) {
  .np-inner { padding: 20px 32px 32px; }
  .np-body { flex-direction: row; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 96px); padding: 0 0 20px; }
  .np-art-wrap { flex: none; }
  .np-art-wrap .art { width: min(42vw, calc(100vh - 160px)); }
  .np-panel { width: min(440px, 38vw); gap: 22px; }
  .np-title { font-size: 36px; }
  .np-artist { font-size: 18px; }
  .hide-desktop { display: none !important; }
}

/* ---------- tablet tweaks ---------- */
@media (max-width: 1180px) and (min-width: 900px) {
  .tracklist.with-album { --cols: 36px minmax(0, 1fr) 36px 56px 36px; }
  .tracklist.with-art.with-album { --cols: 36px 40px minmax(0, 1fr) 36px 56px 36px; }
  .tracklist.with-album .row-album, .tracklist.with-album .tl-head > span:nth-last-child(4) { display: none; }
  .player { grid-template-columns: minmax(160px, 1fr) minmax(260px, 1.4fr) auto; }
  .p-right .volume { width: 70px; }
}

/* ================================================================ phone */
@media (max-width: 899px) {
  .app { display: block; position: relative; padding: 0; height: 100vh; height: 100dvh; }
  .sidebar, .desktop-only, .hide-sm { display: none !important; }
  .main {
    position: absolute; inset: 0; border-radius: 0; background: #121212;
    padding-bottom: calc(var(--tab-h) + var(--mini-h) + var(--safe-b) + 24px);
    -webkit-overflow-scrolling: touch;
  }
  .main-bg { height: 380px; }
  .topbar { height: calc(52px + var(--safe-t)); padding: var(--safe-t) 12px 0; }
  .topbar-bg { border-radius: 0; }
  .topbar .pill-btn { height: 34px; padding: 0 10px; }
  .topbar-title { font-size: 17px; text-align: center; flex: 1; margin: 0; }
  .topbar-title + .spacer { display: none; }
  .round-btn { background: rgba(0,0,0,.35); width: 34px; height: 34px; }
  .app[data-route="home"] [data-action="back"], .app[data-route="search"] [data-action="back"], .app[data-route="library"] [data-action="back"] { visibility: hidden; }
  .app:not([data-route="home"]):not([data-route="library"]) .topbar .pill-btn { visibility: hidden; }
  .view { padding: 0 16px 24px; }

  /* mini player */
  .player {
    position: absolute; z-index: 20; left: 8px; right: 8px; bottom: calc(var(--tab-h) + var(--safe-b) + 2px);
    height: var(--mini-h); display: flex; align-items: center; gap: 0; padding: 0 6px 0 8px; border-radius: 8px;
    background: color-mix(in srgb, rgb(var(--c)) 55%, #181818); transition: background-color .6s; box-shadow: 0 8px 24px rgba(0,0,0,.4); cursor: pointer;
  }
  .player.idle { display: none; }
  .p-left { flex: 1; gap: 10px; }
  .p-meta { flex: 1; }
  .p-art .art { width: 42px; height: 42px; border-radius: 4px; }
  .p-title { font-size: 14px; font-weight: 700; }
  .p-artist { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 1px; }
  .p-left .like-btn { width: 40px; height: 40px; color: #fff; }
  .p-left .like-btn.on { color: var(--accent); }
  .p-left .like-btn .i { width: 22px; height: 22px; }
  .p-center { width: auto; flex: none; }
  .p-controls { gap: 0; }
  .p-controls > :not(.play-btn), .p-progress, .p-right { display: none; }
  .p-controls .play-btn { width: 42px; height: 42px; background: none; color: #fff; }
  .p-controls .play-btn .i { width: 26px; height: 26px; }
  .p-mini-progress { display: block; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
  .p-mini-progress > div { height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }

  /* tab bar */
  .tabbar {
    display: flex; position: absolute; z-index: 15; left: 0; right: 0; bottom: 0;
    height: calc(var(--tab-h) + var(--safe-b) + 24px); padding: 24px 0 var(--safe-b);
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,.92) 55%, rgba(0,0,0,0) 100%);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar a .i { width: 26px; height: 26px; }
  .tabbar a.active { color: #fff; }
  .tabbar a:active .i { transform: scale(.9); }

  .toast { bottom: calc(var(--tab-h) + var(--mini-h) + var(--safe-b) + 18px); }

  /* home */
  .greeting { font-size: 24px; margin: 4px 0 14px; }
  .quick { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { height: 56px; font-size: 13px; gap: 8px; padding-right: 8px; }
  .tile > .art { width: 56px; height: 56px; }
  .tile .fab { display: none; }
  .shelf h2 { font-size: 21px; }
  .shelf-row { grid-auto-columns: 148px; gap: 12px; margin: 0 -16px; padding: 0 16px; scroll-padding: 16px; }
  .card { padding: 0; }
  .card:hover { background: none; }
  .card .fab { display: none; }
  .card-title { font-size: 14px; }
  .card-sub { font-size: 13px; }
  .card.round .card-title, .card.round .card-sub { text-align: center; }

  .welcome { padding-top: 16px; }
  .welcome p { font-size: 16px; }
  .welcome-actions { flex-direction: column; align-items: stretch; margin: 28px 0; }
  .welcome-actions .cta, .welcome-actions .pill-btn { justify-content: center; }
  .welcome-tips { grid-template-columns: 1fr; }

  /* hero */
  .hero { flex-direction: column; align-items: center; min-height: 0; padding: 4px 0 8px; gap: 20px; }
  .hero-art { width: min(64vw, 260px); }
  .hero-text { align-self: stretch; }
  .hero-type { display: none; }
  .hero-title, .hero-title.lg, .hero-title.xl { font-size: 26px; letter-spacing: -.02em; margin: 0 0 8px; -webkit-line-clamp: 2; }
  .hero-meta { font-size: 13px; color: var(--muted); }
  .hero-meta .strong { font-size: 14px; }
  .hero.round .hero-art { width: min(52vw, 220px); }
  .hero.round .hero-title { text-align: center; font-size: 32px; }
  .hero.round .hero-meta { text-align: center; }
  .actions { gap: 12px; padding: 8px 0 12px; }
  .actions .big-play { order: 9; margin-left: auto; width: 52px; height: 52px; }

  /* tracks */
  .tl-head { display: none; }
  .tracklist, .tracklist.with-album { --cols: minmax(0, 1fr) 40px; }
  .tracklist.with-art, .tracklist.with-art.with-album { --cols: 48px minmax(0, 1fr) 40px; }
  .row { padding: 0; height: 60px; gap: 12px; border-radius: 4px; }
  .row:hover { background: none; }
  .row:active { background: rgba(255,255,255,.06); }
  .row .art.sm { width: 48px; height: 48px; }
  .row-num, .row-album, .row-like, .row-dur { display: none !important; }
  .row-more { opacity: 1 !important; width: 40px; height: 40px; }
  .liked-dot { display: inline-flex; }
  .row-title { font-size: 16px; }
  .row-sub { font-size: 13.5px; }

  /* search */
  .mobile-title { display: block; font-size: 24px; font-weight: 800; margin: 4px 0 14px; }
  .search-head { position: sticky; top: calc(52px + var(--safe-t)); z-index: 5; background: #121212; margin: 0 -16px; padding: 0 16px 12px; }
  .app[data-route="search"] .topbar { display: none; }
  .app[data-route="search"] .search-head { top: 0; padding-top: calc(var(--safe-t) + 12px); }
  .search-box { max-width: none; background: #fff; color: #121212; height: 46px; border-radius: 6px; }
  .search-box input { color: #121212; }
  .search-box input::placeholder { color: #555; }
  .search-box .clear { color: #121212; }
  .search-box:focus-within { box-shadow: none; }
  .browse-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .browse { aspect-ratio: auto; height: 100px; padding: 12px; }
  .browse > span { font-size: 16px; }
  .browse > .art { width: 64px; right: -10px; bottom: -6px; }
  .results-top { grid-template-columns: 1fr; gap: 0; }
  .top-card { min-height: 0; display: grid; grid-template-columns: 80px 1fr; align-items: center; column-gap: 16px; padding: 12px; }
  .top-card > .art { width: 80px; grid-row: span 2; }
  .top-title { font-size: 20px; margin: 0; align-self: end; }
  .top-sub { align-self: start; }
  .top-card .fab { display: none; }

  /* library */
  .lib-head h1 { font-size: 26px; }
  .lib-list.big .lib-item { padding: 8px 0; }
  .lib-list.big .lib-item:hover { background: none; }
  .lib-item.active { background: none; }
  .lib-item.active .lib-title { color: #fff; }

  /* dialogs */
  .dialog { top: 40%; }
}

@media (hover: none) {
  .row-like, .row-more { opacity: 1; }
  .range::-webkit-slider-thumb { opacity: 1; }
  .card-art .fab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
