/* ============================================================
 * PotatoMusic — liquid-glass design system
 * Dark (default) + light themes via html[data-theme].
 * Accents: #fa4d8e (pink) + #8e6bff (violet) — keep in sync
 * with BRAND in js/config.js.
 * ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --accent: #fa4d8e;
  --accent2: #8e6bff;
  --grad: linear-gradient(135deg, #fa4d8e 0%, #8e6bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(250, 77, 142, .22), rgba(142, 107, 255, .22));

  --bg: #0b0b10;
  --bg-soft: #131319;
  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .095);
  --glass-strong: rgba(17, 17, 25, .74);
  --border: rgba(255, 255, 255, .13);
  --border-soft: rgba(255, 255, 255, .07);
  --text: #f6f6f9;
  --text-dim: rgba(246, 246, 249, .64);
  --text-faint: rgba(246, 246, 249, .42);
  --shadow: 0 14px 44px rgba(0, 0, 0, .5);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, .35);
  --blur: blur(28px) saturate(1.5);
  --radius: 20px;
  --radius-sm: 13px;
  --radius-xs: 9px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --sidebar-w: 250px;
  --nowbar-h: 76px;
  --bottomnav-h: 0px;
  /* Resting horizontal centering of the floating mini player.
     Both the visible and hidden states read this one value so the
     centered position can never drift between edits. */
  --nowbar-cx: -50%;
}

html[data-theme="light"] {
  --bg: #f3f3f8;
  --bg-soft: #ffffff;
  --glass: rgba(255, 255, 255, .6);
  --glass-2: rgba(255, 255, 255, .82);
  --glass-strong: rgba(255, 255, 255, .84);
  --border: rgba(25, 25, 50, .12);
  --border-soft: rgba(25, 25, 50, .06);
  --text: #17171f;
  --text-dim: rgba(23, 23, 31, .66);
  --text-faint: rgba(23, 23, 31, .44);
  --shadow: 0 14px 44px rgba(80, 60, 120, .14);
  --shadow-sm: 0 6px 20px rgba(80, 60, 120, .1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(250, 77, 142, .35); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* slim glassy scrollbars */
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(140, 140, 160, .32);
  border-radius: 8px;
  border: 2.5px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(160, 160, 180, .5); background-clip: content-box; border: 2.5px solid transparent; }

/* ---------- 3. Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.b1 { width: 560px; height: 560px; left: -160px; top: -140px; background: radial-gradient(circle, rgba(250, 77, 142, .4), transparent 65%); }
.b2 { width: 640px; height: 640px; right: -200px; top: 22%; background: radial-gradient(circle, rgba(142, 107, 255, .38), transparent 65%); }
.b3 { width: 520px; height: 520px; left: 30%; bottom: -220px; background: radial-gradient(circle, rgba(250, 77, 142, .22), transparent 65%); }
html[data-theme="light"] .blob { opacity: .32; filter: blur(130px); }

/* ---------- 4. App layout ---------- */
.layout { display: flex; min-height: 100vh; min-height: 100dvh; }

.sidebar {
  position: fixed;
  top: 16px; left: 16px; bottom: 16px;
  width: var(--sidebar-w);
  display: flex; flex-direction: column;
  padding: 20px 14px 14px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  z-index: 60;
}

.view {
  flex: 1;
  margin-left: calc(var(--sidebar-w) + 32px);
  padding: 28px clamp(16px, 4vw, 44px) 230px;
  width: 100%;
  max-width: 1280px;
}
/* Branding footer at the end of every view */
.view::after {
  content: "Made with \2764\FE0F by Siddharth Peeyush";
  display: block;
  text-align: center;
  padding: 30px 12px 6px;
  color: var(--text-faint);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
/* Branding line pinned under the sidebar nav */
.brand-footer {
  padding: 10px 8px 2px;
  text-align: center;
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ---------- 5. Brand ---------- */
.brand {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 11px;
  padding: 12px; margin: 0 0 12px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: url('/img/brand-banner.webp') 100% 35% / cover no-repeat, #171224;
  text-decoration: none;
}
/* legibility scrim: dark over the text side, open over the mascot side */
.brand::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(9,6,18,.86) 0%, rgba(9,6,18,.62) 45%, rgba(9,6,18,0) 78%);
}
.brand > * { position: relative; z-index: 1; }
.brand-mark { filter: drop-shadow(0 4px 12px rgba(250, 77, 142, .45)); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.brand-tag { font-size: 11px; color: var(--text-faint); font-weight: 500; }
.build-badge { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #0b2b1a; background: linear-gradient(135deg, #4ade80, #22d3ee); border-radius: 999px; padding: 2px 8px; width: fit-content; }

/* ---------- 6. Nav ---------- */
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 15px; font-weight: 600;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}
.nav-link svg { width: 21px; height: 21px; flex: none; opacity: .85; }
.nav-link:hover { background: var(--glass-2); color: var(--text); }
.nav-link:active { transform: scale(.98); }
.nav-link.active {
  color: var(--text);
  background: var(--grad-soft);
  border-color: var(--border-soft);
}
.nav-link.active svg { color: var(--accent); opacity: 1; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; }
.side-ad { min-height: 0; margin-bottom: 8px; }
.side-ad:empty { display: none; }
.auth-link .avatar-mini {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; overflow: hidden;
}
.auth-link .avatar-mini img { width: 100%; height: 100%; object-fit: cover; }
.auth-link span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 7. Buttons / inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700;
  border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 22px rgba(250, 77, 142, .4);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(250, 77, 142, .55); filter: brightness(1.06); }
.btn-ghost {
  background: var(--glass-2); color: var(--text);
  border-color: var(--border);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
html[data-theme="light"] .btn-ghost:hover { background: rgba(255, 255, 255, .95); }
.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  color: var(--text-dim);
  transition: background .16s ease, color .16s ease, transform .12s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--glass-2); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.active { color: var(--accent); }
.icon-btn.active svg { filter: drop-shadow(0 0 6px rgba(250, 77, 142, .6)); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 600; color: var(--text-dim);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: all .16s ease; max-width: 100%;
}
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip svg { width: 14px; height: 14px; flex: none; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-dim); }
.input, .select, textarea.input {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 15px; font-size: 15px; width: 100%;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder { color: var(--text-faint); }
.input:focus, .select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(250, 77, 142, .22);
}
.select option { background: var(--bg-soft); color: var(--text); }

/* segmented control */
.seg {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 999px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.seg-btn {
  padding: 8px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--text-dim);
  transition: all .18s ease;
}
.seg-btn.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(250, 77, 142, .35); }

/* toggle switch */
.switch { position: relative; display: inline-block; width: 46px; height: 27px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl {
  position: absolute; inset: 0; border-radius: 999px; cursor: pointer;
  background: rgba(140, 140, 160, .4); border: 1px solid var(--border);
  transition: background .2s ease;
}
.switch .sl::before {
  content: ""; position: absolute; width: 21px; height: 21px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%; transition: transform .2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.switch input:checked + .sl { background: var(--grad); border-color: transparent; }
.switch input:checked + .sl::before { transform: translateX(19px); }
.switch input:disabled + .sl { opacity: .45; cursor: not-allowed; }

/* range sliders */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 5px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, var(--accent) var(--fill, 80%), rgba(150, 150, 170, .35) var(--fill, 80%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .4);
  transition: transform .12s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff;
}

/* ---------- 8. View / sections ---------- */
.vhead { margin: 6px 0 22px; }
.vtitle { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.vsub { color: var(--text-dim); font-size: 15px; margin-top: 6px; }

.shelf { margin: 30px 0; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.shelf-title { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
/* v23: shelf subtitles ("New releases — latest drops, refreshed daily"). */
.shelf-sub { margin: 2px 2px 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.shelf-more { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.shelf-more:hover { text-decoration: underline; }
.shelf-row {
  display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
}
.shelf-row .card { flex: 0 0 178px; width: 178px; max-width: 178px; scroll-snap-align: start; }
.grid-cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 26px; border: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  display: flex; align-items: stretch; gap: 0;
  min-height: 250px; margin-bottom: 8px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(600px 300px at 18% 20%, rgba(250, 77, 142, .34), transparent 60%),
    radial-gradient(520px 320px at 85% 80%, rgba(142, 107, 255, .36), transparent 60%);
}
html[data-theme="light"] .hero-bg { opacity: .55; }
.hero-info { position: relative; z-index: 1; padding: 34px 30px; flex: 1.4; display: flex; flex-direction: column; justify-content: center; }
.hero-kicker {
  display: inline-block; align-self: flex-start;
  font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #ffd3e4; background: rgba(250, 77, 142, .28);
  border: 1px solid rgba(250, 77, 142, .45);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.hero-title { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.hero-sub { color: var(--text-dim); margin-top: 9px; font-size: 15px; }
.hero-sub b { color: var(--accent); font-weight: 700; }
.hero-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.hero-artwrap { position: relative; z-index: 1; flex: 1; min-width: 220px; padding: 22px; display: flex; align-items: center; justify-content: center; }
.hero-art {
  width: 100%; max-width: 330px; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 18px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------- 10. Cards ---------- */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border); }
.card-art { position: relative; width: 100%; height: 0; padding-top: 100%; border-radius: 13px; overflow: hidden; background: var(--grad-soft); }
.card-art img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.card:hover .card-art img { transform: scale(1.05); }
.card-play {
  position: absolute; right: 10px; bottom: 10px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(250, 77, 142, .5);
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.card:hover .card-play, .card:focus-within .card-play { opacity: 1; transform: none; }
.card-play svg { width: 19px; height: 19px; margin-left: 2px; }
/* duration badge overlaid bottom-right of the square artwork */
.card-dur {
  position: absolute; right: 8px; bottom: 8px;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: #fff; background: rgba(8, 8, 14, .72);
  padding: 3px 8px; border-radius: 8px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .2s ease;
  pointer-events: none;
}
.card:hover .card-dur, .card:focus-within .card-dur { opacity: 0; } /* play button takes the corner on hover */
.card-title { font-size: 14.5px; font-weight: 700; margin: 11px 26px 3px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; max-width: 100%; }
.card-title-btn:hover { text-decoration: underline; }
.card-sub { font-size: 13px; color: var(--accent); font-weight: 600; margin-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-menu {
  position: absolute; top: 20px; right: 14px; width: 32px; height: 32px;
  background: rgba(10, 10, 18, .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  opacity: 0; transition: opacity .2s ease, background .16s ease;
}
.card:hover .card-menu, .card:focus-within .card-menu { opacity: 1; }
.card-menu svg { width: 17px; height: 17px; }
html[data-theme="light"] .card-menu { background: rgba(255, 255, 255, .65); }

/* artwork placeholder */
.art-ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  color: var(--text-faint);
}
.art-ph svg { width: 42%; height: 42%; }

/* ---------- 11. Track rows ---------- */
.tlist { display: flex; flex-direction: column; gap: 6px; }
.trow {
  display: flex; align-items: center; gap: 13px;
  padding: 8px 12px 8px 8px;
  border-radius: 15px; border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.trow:hover { background: var(--glass); border-color: var(--border-soft); }
.trow.active { background: var(--grad-soft); border-color: rgba(250, 77, 142, .3); }
.trow-idx { width: 26px; text-align: center; color: var(--text-faint); font-size: 13.5px; font-weight: 600; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.trow.active .trow-idx { color: var(--accent); }
/* playing row: rank number swaps to a pause glyph */
.idx-glyph { display: none; align-items: center; justify-content: center; }
.idx-glyph svg { width: 13px; height: 13px; }
.trow.playing .idx-num { display: none; }
.trow.playing .idx-glyph { display: inline-flex; color: var(--accent); animation: eq-pulse 1.6s ease-in-out infinite; }
@keyframes eq-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.trow-art { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex: none; background: var(--grad-soft); position: relative; }
.trow-art img { width: 100%; height: 100%; object-fit: cover; }
.trow-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trow-title { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; padding: 0; text-align: left; color: inherit; }
button.trow-title:hover { color: var(--accent); }
.trow.active .trow-title { color: var(--accent); }
.trow-artist { font-size: 13px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent2); background: rgba(142, 107, 255, .14);
  border: 1px solid rgba(142, 107, 255, .3);
  padding: 3px 9px; border-radius: 999px; flex: none;
}
.trow-dur { font-size: 13px; color: var(--text-faint); font-variant-numeric: tabular-nums; flex: none; }
.trow-play { opacity: 0; }
.trow:hover .trow-play, .trow.active .trow-play { opacity: 1; }
.trow-play svg { width: 16px; height: 16px; }

/* search result rows: ranked 1..N, duration + heart right-aligned */
.srow .trow-dur { margin-left: 2px; }
.srow-like { color: var(--text-dim); flex: none; }
.srow-like svg { width: 18px; height: 18px; }
.srow-like:hover { color: var(--accent); }
.srow-like.liked { color: var(--accent); }
.search-results { margin-top: 18px; }

/* ---------- 12. Tabs / badges ---------- */
.tabs { display: flex; gap: 6px; margin: 20px 0 18px; flex-wrap: wrap; }
.tab {
  padding: 9px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--text-dim);
  border: 1px solid transparent;
  transition: all .16s ease;
}
.tab:hover { color: var(--text); background: var(--glass); }
.tab.active { color: #fff; background: var(--grad); box-shadow: 0 4px 14px rgba(250, 77, 142, .35); }

/* ---------- 8b. Search filters (2026-10-01) ---------- */
.search-tabs { margin: 18px 0 6px; }
.sec-head { margin: 20px 0 12px; }
.sec-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.artists-strip {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 4px 2px 12px; scroll-snap-type: x proximity;
}
.artist-chip {
  flex: 0 0 auto; width: 92px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; scroll-snap-align: start;
}
.artist-chip-art {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--grad-soft); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; font-weight: 800;
}
.artist-chip-art img { width: 100%; height: 100%; object-fit: cover; }
.artist-chip-name {
  font-size: 12.5px; font-weight: 700; text-align: center; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.3;
}
.artist-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.artist-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 10px 12px; border-radius: 14px; text-align: left;
  transition: background .14s ease;
}
.artist-row:hover { background: var(--glass-2); }
.artist-art {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--grad-soft); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 800;
}
.artist-art img { width: 100%; height: 100%; object-fit: cover; }
.artist-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.artist-name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist-sub { font-size: 13px; color: var(--text-dim); }
.artist-go { font-size: 26px; color: var(--text-dim); line-height: 1; flex: none; }
.artist-back { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; flex-wrap: wrap; }

/* Playlist card grid (used by Library + search Playlists tab) */
.cards-grid {
  display: grid; gap: 18px; margin-top: 8px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

/* Add-to-playlist rows: the trailing action icon must stay small
 * (2026-10-01 fix: the bare ICONS.plus svg had no size rule and blew up). */
.mrow > svg { width: 18px; height: 18px; flex: none; color: var(--text-dim); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(142, 107, 255, .15); color: var(--accent2);
  border: 1px solid rgba(142, 107, 255, .35);
}

/* ---------- 13. Banners / notices / ads ---------- */
.notice {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: 16px; margin-bottom: 18px;
  font-size: 14px; font-weight: 500;
  background: var(--glass); border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.notice svg { width: 20px; height: 20px; flex: none; }
.notice-info { border-color: rgba(142, 107, 255, .4); background: rgba(142, 107, 255, .1); }
.notice-info svg { color: var(--accent2); }
.notice-warn { border-color: rgba(250, 77, 142, .4); background: rgba(250, 77, 142, .08); }
.notice-warn svg { color: var(--accent); }
.notice .grow { flex: 1; }
.demo-notice, .adblock-banner { position: relative; z-index: 70; }
.adslot { margin: 22px 0; border-radius: 16px; overflow: hidden; }
.adslot:empty { display: none; }

/* ---------- 14. Empty states / skeletons ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--text-dim); }
.empty-ic {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 24px;
  background: var(--grad-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.empty-ic svg { width: 34px; height: 34px; }
.empty-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.empty-sub { font-size: 14px; max-width: 420px; margin: 0 auto 18px; line-height: 1.55; }

.skel { position: relative; overflow: hidden; background: var(--glass); border-radius: var(--radius-sm); }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .09) 50%, transparent 70%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skel-row { height: 64px; border-radius: 15px; margin-bottom: 8px; }
.skel-cards { display: flex; gap: 16px; }
.skel-card { flex: 0 0 178px; height: 236px; border-radius: var(--radius); }
.skel-hero { height: 250px; border-radius: 26px; margin-bottom: 8px; }

/* ---------- 15. Now-playing bar ---------- */
.nowbar-wrap {
  position: fixed; left: 50%; transform: translateX(var(--nowbar-cx));
  bottom: calc(14px + var(--bottomnav-h));
  width: min(600px, calc(100% - 28px));
  z-index: 80;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
/* while the full player is open, get the mini player out of the way */
body:has(.fp-root.open) #nowbar-wrap {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(var(--nowbar-cx)) translateY(18px);
}
/* progress hairline under the title/artist, Apple-Music style */
.np-timeline {
  margin-top: 6px;
  height: 12px;
  display: flex; align-items: center;
}
.np-progress {
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  position: relative; flex: 1; height: 18px; cursor: pointer;
  display: flex; align-items: center;
  border-radius: 999px;
}
.np-progress::before {
  content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 999px;
  background: rgba(150, 150, 170, .28);
}
.np-fill {
  position: absolute; left: 0; height: 3px; width: 0%; border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(250, 77, 142, .55);
}
.np-knob { display: none; }

.nowbar {
  position: relative;
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  overflow: visible;
  height: var(--nowbar-h);
  padding: 10px 14px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.np-mid { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.np-art {
  width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex: none;
  background: var(--grad-soft); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; color: var(--text-faint);
  cursor: pointer;
}
.np-art svg { width: 24px; height: 24px; }
.np-art img { width: 100%; height: 100%; object-fit: cover; }
.np-art.playing img { animation: none; }
.np-meta { min-width: 0; flex: 1; }
.np-title {
  display: block; width: 100%; text-align: left;
  font-size: 14.5px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.np-title:hover { color: var(--accent); }
.np-artist { font-size: 12.5px; color: var(--text-dim); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* (YouTube tile styles were removed here on 2026-10-01 per the owner's order;
   playback is audio-only now.) */

.np-controls {
  display: flex; align-items: center; justify-content: center;
  flex-direction: row; flex-wrap: nowrap;
  gap: 4px; flex: none;
  position: static; transform: none; overflow: visible;
}
/* Belt-and-braces: transport buttons must always stay inside the control row. */
.np-controls > button {
  position: static; transform: none; margin: 0; float: none;
}
.np-controls { gap: 2px; }
.np-controls .icon-btn { width: 38px; height: 38px; color: #fff; }
.np-controls .icon-btn svg { width: 20px; height: 20px; }
.np-play {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: none; border: 0; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .14s ease;
  margin: 0 2px; padding: 0;
}
.np-play:hover { transform: scale(1.06); }
.np-play:active { transform: scale(.94); }
.np-play svg { width: 27px; height: 27px; }
#np-shuffle.on, #np-repeat.on { color: var(--accent); }
#np-repeat { position: relative; }
#np-repeat .rep-one {
  position: absolute; right: 4px; bottom: 4px;
  font-size: 8.5px; font-weight: 900; color: var(--accent);
  background: var(--bg); border-radius: 50%; width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
}

.np-right { display: flex; align-items: center; gap: 2px; flex: none; justify-content: flex-end; min-width: 0; }
.np-right .icon-btn { width: 38px; height: 38px; color: var(--text-dim); }
.np-right .icon-btn svg { width: 20px; height: 20px; }
#np-mute.muted { color: var(--accent); }

/* floating volume slider popup (opens from the mini-bar speaker button) */
.vol-pop {
  position: absolute; right: 10px; bottom: calc(100% + 12px);
  display: flex; align-items: center; gap: 12px;
  width: 250px; padding: 14px 16px;
  background: rgba(18, 18, 26, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  z-index: 6;
}
.vol-pop[hidden] { display: none; }
.vol-pop-slider {
  flex: 1; min-width: 0;
  background: linear-gradient(to right, #fff var(--fill, 80%), rgba(255, 255, 255, .25) var(--fill, 80%));
}
.vol-pop .icon-btn { color: #fff; flex: none; }
.vol-pop .icon-btn.muted { color: var(--accent); }


/* ---------- 15c. Editorial feature cards (New releases) ---------- */
.fcard-row { gap: 14px; }
.fcard {
  flex: 0 0 min(80vw, 400px);
  min-width: 0; /* flex items default to min-width:auto — without this a long nowrap title stretches the whole card */
  cursor: pointer; outline-offset: 4px;
}
.fcard-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-faint);
}
.fcard-title {
  font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: #fff;
  margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fcard-sub {
  font-size: 14px; font-weight: 600; color: var(--text-dim); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fcard-art {
  position: relative; margin-top: 12px;
  border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--grad-soft);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 0 1px var(--border);
}
.fcard-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.fcard-art .art-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
}
.fcard-art .art-ph svg { width: 44px; height: 44px; }
.fcard-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(3, 3, 8, .62) 0%, rgba(3, 3, 8, 0) 46%);
}
.fcard-cap {
  position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 13px;
  color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 16. Queue drawer ---------- */
.queue-drawer {
  position: fixed; z-index: 90;
  right: 16px; bottom: calc(var(--nowbar-h) + 58px + var(--bottomnav-h));
  width: min(380px, calc(100vw - 32px));
  max-height: min(480px, calc(100dvh - 220px));
  display: flex; flex-direction: column;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.queue-drawer.open { opacity: 1; transform: none; pointer-events: auto; }
.qd-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 10px; }
.qd-head h2 { font-size: 17px; font-weight: 800; }
.qd-head-btns { display: flex; align-items: center; gap: 6px; }
.qd-list { overflow-y: auto; padding: 4px 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.qrow { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; cursor: pointer; }
.qrow:hover { background: var(--glass-2); }
.qrow.active { background: var(--grad-soft); }
/* Divider that introduces the Spotify-style autoplay (similar songs) section */
.qdiv {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 4px 6px; color: var(--text-faint);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.qdiv::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.qrow.qauto .qrow-art { outline: 1px dashed var(--border); outline-offset: -1px; }
.qrow-art { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; flex: none; background: var(--grad-soft); }
.qrow-art img { width: 100%; height: 100%; object-fit: cover; }
.qrow-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.qrow-title { display: block; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow.active .qrow-title { color: var(--accent); }
.qrow-artist { display: block; font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-btns { display: flex; align-items: center; gap: 0; opacity: 0; transition: opacity .15s ease; }
.qrow:hover .q-btns { opacity: 1; }
.q-btns .icon-btn { width: 30px; height: 30px; }
.q-btns .icon-btn svg { width: 15px; height: 15px; }

/* ---------- 17. Popover menu ---------- */
.menu-root:empty { display: none; }
.menu {
  position: fixed; z-index: 120; min-width: 218px; max-width: 280px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 7px;
  animation: pop .16s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.menu-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--text); text-align: left;
  transition: background .14s ease;
}
.menu-item:hover { background: var(--glass-2); }
.menu-item svg { width: 17px; height: 17px; color: var(--text-dim); flex: none; }
.menu-item.danger { color: #ff7d9c; }
.menu-item.danger svg { color: #ff7d9c; }
.menu-sep { height: 1px; background: var(--border-soft); margin: 6px 8px; }
.menu-head { padding: 8px 12px 6px; }
.menu-head .t { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-head .s { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 18. Modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-root[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 10, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal {
  position: relative; width: min(430px, 100%); max-height: 82dvh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow);
  animation: pop .2s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.modal-head h3 { font-size: 17px; font-weight: 800; }
.modal-body { padding: 4px 14px 18px; overflow-y: auto; }
.mrow {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border-radius: 13px; text-align: left;
  transition: background .14s ease;
}
.mrow:hover { background: var(--glass-2); }
.mrow-ic {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: var(--grad-soft); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.mrow-ic svg { width: 19px; height: 19px; }
.mrow-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mrow-title { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow-sub { display: block; font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-new { display: flex; gap: 8px; margin-top: 12px; }
.modal-new .input { flex: 1; }

/* ---------- 19. Toasts ---------- */
.toasts {
  position: fixed; z-index: 200; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nowbar-h) + 62px + var(--bottomnav-h));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; width: min(480px, calc(100vw - 40px));
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 11px 20px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  max-width: 100%;
}
.toast.show { opacity: 1; transform: none; }
.toast svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.toast-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 20. Search ---------- */
.search-hero { max-width: 640px; margin: 8px 0 6px; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-faint); pointer-events: none; }
.search-box .input { padding-left: 48px; padding-right: 44px; border-radius: 18px; font-size: 16px; }
.search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.search-attr { margin-top: 8px; font-size: 12px; color: var(--text-faint); }
.search-attr b { color: var(--text-dim); font-weight: 700; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.hist-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 4px; }
.hist-head h3 { font-size: 15px; font-weight: 800; }
.link-btn { font-size: 13px; font-weight: 700; color: var(--accent); }
.link-btn:hover { text-decoration: underline; }

/* ---------- 21. Track page ---------- */
.track-hero {
  display: flex; gap: 30px; align-items: flex-end; flex-wrap: wrap;
  padding: 26px; border-radius: 26px;
  background: var(--glass); border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  margin-bottom: 6px;
}
.track-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 12% 10%, rgba(250, 77, 142, .2), transparent 60%),
    radial-gradient(500px 260px at 90% 90%, rgba(142, 107, 255, .22), transparent 60%);
  pointer-events: none;
}
.th-art {
  width: clamp(180px, 26vw, 250px); aspect-ratio: 1; border-radius: 20px; overflow: hidden; flex: none;
  border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; z-index: 1;
  background: var(--grad-soft);
}
.th-art img { width: 100%; height: 100%; object-fit: cover; }
.th-info { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.th-badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.th-title { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.th-artist { font-size: 17px; color: var(--accent); font-weight: 700; margin-top: 8px; }
.th-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.lyrics {
  white-space: pre-wrap; line-height: 1.85; font-size: 15.5px; color: var(--text);
  background: var(--glass); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 26px 28px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  max-width: 720px;
}
.video-wrap { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.info-list { max-width: 640px; background: var(--glass); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; font-size: 14.5px; border-bottom: 1px solid var(--border-soft); }
.info-row:last-child { border-bottom: 0; }
.info-row .k { color: var(--text-dim); font-weight: 600; }
.info-row .v { font-weight: 700; text-align: right; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 22. Playlist page ---------- */
.pl-head {
  display: flex; gap: 26px; align-items: flex-end; flex-wrap: wrap;
  padding: 26px; border-radius: 26px; margin-bottom: 22px;
  background: var(--glass); border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.pl-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(480px 240px at 88% 12%, rgba(142, 107, 255, .24), transparent 60%);
  pointer-events: none;
}
.pl-cover {
  width: clamp(150px, 22vw, 210px); aspect-ratio: 1; border-radius: 18px; flex: none;
  background: var(--grad); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow); position: relative; z-index: 1; overflow: hidden;
}
.pl-cover svg { width: 44%; height: 44%; }
.pl-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-info { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.pl-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.pl-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.pl-meta { color: var(--text-dim); font-size: 14px; margin-top: 8px; }
.pl-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pl-rename { display: flex; gap: 8px; margin-top: 14px; max-width: 420px; }

/* ---------- 23. Library ---------- */
.lib-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.pl-card { text-align: left; }
.pl-card .card-art { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); background: var(--grad); }
.pl-card .card-art svg { width: 40%; height: 40%; }
.pl-card .card-art img { position: absolute; inset: 0; }

/* ---------- 24. Settings ---------- */
.set-wrap { max-width: 680px; }
.set-group {
  background: var(--glass); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 6px 20px; margin-bottom: 20px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.set-group > h3 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); padding: 14px 0 6px; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--border-soft); }
.set-row:first-of-type { border-top: 0; }
.set-label { flex: 1; min-width: 0; }
.set-label .t { font-size: 15px; font-weight: 700; }
.set-label .d { font-size: 13px; color: var(--text-dim); margin-top: 3px; line-height: 1.5; }
.set-row.disabled { opacity: .55; }
/* provider health status dots (Settings → Music providers) */
.pstat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pstat i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pstat-ok { color: #34d399; }
.pstat-ok i { box-shadow: 0 0 8px #34d399; }
.pstat-bad { color: #f87171; }
.pstat-bad i { box-shadow: 0 0 8px #f87171; }
.pstat-warn { color: #fbbf24; }
.pstat-warn i { box-shadow: 0 0 8px #fbbf24; }
.pstat-off { color: var(--text-faint); }
.about-box { font-size: 14px; color: var(--text-dim); line-height: 1.7; padding: 6px 0 14px; }
.about-box b { color: var(--text); }

/* ---------- 25. Login ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 30px 0; }
.auth-card {
  width: min(430px, 100%);
  background: var(--glass); border: 1px solid var(--border); border-radius: 26px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow); padding: 32px 30px;
}
.auth-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.auth-card .sub { color: var(--text-dim); font-size: 14px; margin: 8px 0 22px; line-height: 1.55; }
.auth-err {
  display: none; background: rgba(250, 77, 142, .1); border: 1px solid rgba(250, 77, 142, .45);
  color: #ff8fb1; font-size: 13.5px; font-weight: 600;
  padding: 11px 15px; border-radius: 12px; margin-bottom: 16px; line-height: 1.5;
}
.auth-err.show { display: block; }
.btn-google {
  width: 100%; background: #fff; color: #1a1a22;
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  padding: 12px; border-radius: 999px; font-size: 15px; font-weight: 700;
  transition: transform .14s ease, box-shadow .2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.btn-google:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, .3); }
.btn-google:active { transform: scale(.98); }
.btn-google svg { width: 19px; height: 19px; }
.auth-div { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-faint); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; }
.auth-div::before, .auth-div::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.account-box { text-align: center; }
.account-box .field { text-align: left; }
.account-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 6px auto 16px;
  background: var(--grad); color: #fff; font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 8px 24px rgba(250, 77, 142, .4);
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-name { font-size: 19px; font-weight: 800; }
.account-email { color: var(--text-dim); font-size: 14px; margin: 5px 0 22px; }
.field-note { font-size: 12.5px; color: var(--text-faint); margin: -10px 0 0; line-height: 1.5; }

/* ---------- 26. Responsive ---------- */
@media (max-width: 900px) {
  .hero-artwrap { display: none; }
  .np-timeline { left: 24px; right: 24px; }
}
/* Touch devices have no hover — keep queue buttons visible there */
@media (hover: none) {
  .q-btns { opacity: 1; }
}
/* Never let any stray wide element force the page wider than the phone screen
   (that is what makes mobile Safari zoom out into a tiny "desktop" view). */
html, body { overflow-x: clip; }

@media (max-width: 767px) {
  /* Prevent iOS auto-zoom on input focus (needs 16px+) */
  .input, .select, textarea.input { font-size: 16px; }
  /* Remove iOS gray tap flash and double-tap-zoom delay on buttons */
  button, .nav-link, .card, .trow, .mood-card, .srow {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  :root { --bottomnav-h: calc(68px + env(safe-area-inset-bottom, 0px)); }
  /* v21: the old fixed 68px ignored the home-indicator safe area, so the
     real bottom nav ran ~20px taller and the mini player overlapped it. */
  /* v6 perf: the 28px backdrop-blur used across ~26 glass surfaces is the
     main scroll-lag culprit on phone GPUs — drop it to a cheap 10px here. */
  :root { --blur: blur(10px); }
  .blob { filter: blur(60px); opacity: .35; }
  .b1 { width: 400px; height: 400px; }
  .b2 { width: 440px; height: 440px; }
  .b3 { width: 380px; height: 380px; }
  .sidebar {
    top: auto; left: 0; right: 0; bottom: 0; width: auto;
    flex-direction: row; align-items: center;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
  }
  .brand, .side-ad { display: none; }
  .brand-footer { display: none; } /* branding lives at the end of each view on phones */
  .nav { flex-direction: row; flex: 1; justify-content: space-around; gap: 0; }
  .nav-link { flex-direction: column; gap: 3px; padding: 7px 4px; font-size: 10px; font-weight: 700; border-radius: 12px; min-width: 0; flex: 1 1 0; text-align: center; }
  .nav-link span { white-space: nowrap; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nav-link svg { width: 21px; height: 21px; }
  .side-foot { flex-direction: row; margin: 0; align-items: center; }
  .side-foot .nav-link { min-width: 0; flex: 1 1 0; }
  .side-pin { display: none; } /* v42: PINNED is a desktop sidebar feature; the phone bar is icon-only */
  .th-info, .pl-info { min-width: 0; }
  .view { margin-left: 0; padding: 18px 14px 260px; }
  .nowbar-wrap { bottom: calc(10px + var(--bottomnav-h)); width: calc(100% - 20px); }
  .np-timeline { margin-top: 4px; height: 10px; }
  .np-progress { height: 14px; }
  .nowbar { height: 66px; padding: 8px 10px; border-radius: 20px; gap: 6px; }
  .np-art { width: 46px; height: 46px; border-radius: 12px; }
  .np-right #np-more, .np-right #np-mute { display: none; }
  .np-controls .icon-btn { width: 34px; height: 34px; }
  .np-play { width: 44px; height: 44px; }
  .queue-drawer { right: 10px; left: 10px; width: auto; bottom: calc(66px + 52px + var(--bottomnav-h)); }
  .track-hero, .pl-head { padding: 18px; gap: 18px; }
  .hero-info { padding: 24px 20px; }
  .shelf-row .card { flex-basis: 152px; width: 152px; max-width: 152px; }
  .skel-card { flex-basis: 152px; }
  .toasts { bottom: calc(66px + 56px + var(--bottomnav-h)); }
  .trow-badge { display: none; }
  .trow-dur { display: none; }
  .srow .trow-dur { display: block; } /* search rows keep duration + heart */
  .srow .trow-play { display: none; } /* row tap already plays */
  .modal-root { padding: 12px; align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; width: 100%; }
  /* v42: full player stacks vertically on phones (stage, then Up Next/Lyrics panel) */
  .fp-top { padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 2px; }
  .fp-cardwrap { width: min(68vw, 300px); }
  .fp-title { font-size: 21px; }
  .fp-head-title { max-width: 52vw; }
  .fp-panel { max-height: none; }
  .fp-un-scroll { max-height: 360px; }
  .fp-lyrics { max-height: 360px; }
  .un-grip { display: inline-flex; touch-action: none; } /* v42: touch drag handle */
}
@media (max-width: 480px) {
  .np-controls #np-shuffle, .np-controls #np-repeat { display: none; }
  /* v14: the video tile is gone (v13), so there is room for prev/next on
     phones again — they stay visible in the bar; shuffle/repeat live in
     the full player sheet. */

  .np-art { width: 40px; height: 40px; border-radius: 11px; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .hero-actions .btn { padding: 10px 18px; font-size: 13.5px; }
  /* v14: stack the hero vertically on phones — info first, artwork below. */
  .hero { flex-direction: column; min-height: 0; }
  .hero-artwrap { min-width: 0; padding: 0 20px 22px; }
  .hero-art { max-width: none; aspect-ratio: 16 / 9; }
}

/* ---------- 27. Mood cards (YouTube shelves) ---------- */
.mood-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
}
.mood-card {
  flex: 0 0 148px; scroll-snap-align: start;
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--m1, #fa4d8e), var(--m2, #8e6bff));
  color: #fff; text-align: left;
  min-height: 108px; padding: 14px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mood-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.22));
  pointer-events: none;
}
.mood-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mood-card:active { transform: translateY(0); }
.mood-name {
  position: relative; z-index: 1;
  font-size: 15px; font-weight: 800; letter-spacing: -.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.mood-play {
  position: relative; z-index: 1;
  width: 34px; height: 34px; flex: none;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mood-play svg { width: 15px; height: 15px; margin-left: 2px; }
@media (max-width: 768px) {
  .mood-card { flex-basis: 128px; min-height: 98px; }
}

/* ---------- 28. Motion / misc ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
.view > * { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 29. Full player — Apple-Music-style immersive player ---------- */
/* Fullscreen dialog: blurred artwork backdrop, left stage (art, meta,
   progress, transport, device row) and a right panel with Up Next and
   Lyrics tabs. Stacks vertically on phones. */
.fp-root {
  position: fixed; inset: 0; z-index: 75;
  visibility: hidden; pointer-events: none;
}
.fp-root.open { visibility: visible; pointer-events: auto; }
.fp-sheet {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: #0b0b10;
  overflow: hidden;
  opacity: 0; transform: translateY(26px);
  transition: opacity .3s ease, transform .3s ease;
}
.fp-root.open .fp-sheet { opacity: 1; transform: none; }
.fp-bg {
  position: absolute; inset: 0; overflow: hidden;
  background: #14141c;
}
.fp-bg-art {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: blur(80px) saturate(1.6) brightness(.72);
  transform: scale(1.4);
}
.fp-bg-art:not([src]) { display: none; }
.fp-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(4, 4, 10, .55) 0%, rgba(4, 4, 10, .15) 30%, rgba(4, 4, 10, .45) 70%, rgba(4, 4, 10, .88) 100%);
}

/* header: chevron-down | NOW PLAYING + title | more */
.fp-top {
  position: relative; z-index: 2; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px 6px;
}
.fp-topbtn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10, 10, 18, .38); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.fp-topbtn svg { width: 22px; height: 22px; }
.fp-head-center {
  display: flex; flex-direction: column; align-items: center; min-width: 0;
}
.fp-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.fp-head-title {
  font-size: 15px; font-weight: 700; color: #fff; margin-top: 2px;
  max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* body: stage + panel side by side on desktop */
.fp-body {
  position: relative; z-index: 2; flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(340px, 470px) minmax(400px, 560px);
  gap: clamp(28px, 4vw, 64px);
  justify-content: center; align-content: start;
  padding: 10px 32px 32px;
  overflow-y: auto; overscroll-behavior: contain;
}
.fp-body.panel-hidden { grid-template-columns: minmax(340px, 520px); }
.fp-body.panel-hidden .fp-panel { display: none; }
.fp-stage { width: 100%; max-width: 470px; margin: 0 auto; }
.fp-cardwrap { width: min(100%, 380px); margin: 6px auto 0; }
.fp-art {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  border-radius: 14px; background: var(--grad-soft);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .14);
}
.fp-art:not([src]) { visibility: hidden; }

/* meta row: title/artist + share + like */
.fp-mid { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.fp-meta { flex: 1; min-width: 0; }
.fp-title {
  font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fp-artist {
  font-size: 15px; color: rgba(255, 255, 255, .68); font-weight: 600; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fp-auto-tag { color: rgba(255, 255, 255, .45); font-weight: 600; }
.fp-round {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.fp-round svg { width: 22px; height: 22px; }
.fp-round-sm {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.fp-round-sm svg { width: 18px; height: 18px; }
.fp-like.liked { color: var(--accent); border-color: rgba(250, 77, 142, .5); }
.fp-like.liked svg { fill: var(--accent); }

/* progress */
.fp-timeline { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.fp-cur, .fp-total {
  font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .72);
  font-variant-numeric: tabular-nums; min-width: 40px;
}
.fp-total { text-align: right; }
.fp-bar { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fp-bar.scrubbing { cursor: grabbing; }
.fp-bar.scrubbing .fp-knob { transform: translate(-50%, -50%) scale(1.45); }
.fp-bar.scrubbing .fp-fill { box-shadow: 0 0 14px rgba(255, 255, 255, .8); }
.fp-bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%); height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, .28);
}
.fp-fill {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 4px; width: 0%; border-radius: 4px; background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, .5);
}
.fp-knob {
  position: absolute; top: 50%; left: 0%; width: 13px; height: 13px;
  border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
/* audio-format badge under the progress bar (MP3/AAC — read from the stream URL) */
.fp-qbadge { display: flex; justify-content: center; margin-top: 8px; }
.fp-qbadge[hidden] { display: none; }
.fp-qbadge span {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px;
  padding: 2px 8px;
}

/* transport */
.fp-controls {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(24px, 7vw, 40px); margin: 22px 0 4px;
}
.fp-controls .icon-btn {
  width: 56px; height: 56px; color: #fff; background: none; border: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.fp-controls .icon-btn svg { width: 32px; height: 32px; }
.fp-controls .fp-side { width: 44px; height: 44px; color: rgba(255, 255, 255, .55); }
.fp-controls .fp-side svg { width: 23px; height: 23px; }
.fp-controls .fp-side.on { color: var(--accent); }
.fp-play {
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: none; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.fp-play:hover { transform: scale(1.06); }
.fp-play:active { transform: scale(.96); }
.fp-play svg { width: 54px; height: 54px; }

/* device + volume row */
.fp-devicerow {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; color: rgba(255, 255, 255, .75);
}
.fp-device {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-size: 14px; font-weight: 700; color: #f2c14e;
}
.fp-device svg { width: 20px; height: 20px; }
.fp-vol {
  flex: 1; min-width: 0;
  background: linear-gradient(to right, #fff var(--fill, 100%), rgba(255, 255, 255, .28) var(--fill, 100%));
}
.fp-devicons { display: flex; align-items: center; gap: 2px; flex: none; }
.fp-devicons .icon-btn {
  width: 42px; height: 42px; color: rgba(255, 255, 255, .82);
  background: none; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.fp-devicons .icon-btn svg { width: 22px; height: 22px; }
.fp-devicons .icon-btn.armed { color: var(--accent); }
.fp-devicons .icon-btn.active-tab { color: var(--accent); }
.fp-tracklink {
  display: block; margin: 14px auto 0;
  background: none; border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, .78);
  padding: 10px 14px; border-radius: 10px; white-space: nowrap;
}
.fp-tracklink:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* right panel: frosted card holding the Up Next / Lyrics tabs */
.fp-panel {
  width: 100%; max-width: 560px; margin: 0 auto;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; min-height: 0;
  max-height: calc(100vh - 230px);
  overflow: hidden;
}
.fp-tabs { display: flex; gap: 6px; padding: 12px 14px 0; flex: none; }
.fp-tab {
  flex: 1; border: 0; background: transparent; color: rgba(255, 255, 255, .6);
  font-size: 14px; font-weight: 700; padding: 10px; border-radius: 12px; cursor: pointer;
}
.fp-tab.is-active { background: rgba(255, 255, 255, .12); color: #fff; }
.fp-tabpage { display: flex; flex-direction: column; min-height: 0; padding: 6px 14px 14px; }
.fp-tabpage[hidden] { display: none; }

/* --- Up Next tab --- */
.fp-un-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 8px 6px 4px; flex: none; }
.fp-un-titles h2 { font-size: 20px; font-weight: 800; color: #fff; margin: 0; }
.fp-un-titles p { font-size: 13px; color: rgba(255, 255, 255, .6); margin: 3px 0 0; font-weight: 600; }
.fp-un-x {
  width: 34px; height: 34px; color: rgba(255, 255, 255, .7);
  background: none; border: 0; cursor: pointer; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.fp-un-x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.fp-un-x svg { width: 18px; height: 18px; }
.fp-pills { display: flex; gap: 8px; padding: 8px 6px 4px; flex-wrap: wrap; flex: none; }
.fp-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .85);
  font-size: 13.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.fp-pill svg { width: 16px; height: 16px; }
.fp-pill:hover { background: rgba(255, 255, 255, .14); }
.fp-pill.on { background: rgba(250, 77, 142, .22); border-color: rgba(250, 77, 142, .55); color: #ffd9e8; }
.fp-un-scroll { overflow-y: auto; min-height: 0; padding: 2px 2px 8px; scrollbar-width: thin; }
.un-sec {
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5); padding: 14px 10px 6px;
}
.un-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px; cursor: pointer;
}
.un-row:hover { background: rgba(255, 255, 255, .07); }
.un-row.dragging { opacity: .4; }
.un-row.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.un-row.is-current { background: rgba(250, 77, 142, .16); border: 1px solid rgba(250, 77, 142, .35); cursor: default; }
.un-row.is-hist { opacity: .62; }
.un-grip { flex: none; color: rgba(255, 255, 255, .35); cursor: grab; display: inline-flex; padding: 6px 2px; }
.un-grip svg { width: 16px; height: 16px; }
.un-art { flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; }
.un-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.un-art svg { width: 22px; height: 22px; color: rgba(255, 255, 255, .5); }
.un-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.un-title { font-size: 14.5px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.un-row.is-current .un-title { color: #ffc7dd; }
.un-sub { font-size: 13px; color: rgba(255, 255, 255, .55); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.un-x {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: none; border: 0; color: rgba(255, 255, 255, .5); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.un-x:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.un-x svg { width: 15px; height: 15px; }
.un-empty { padding: 26px 12px; text-align: center; color: rgba(255, 255, 255, .55); font-size: 13.5px; font-weight: 600; }

/* --- Lyrics tab --- */
.fp-ly-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 4px; flex: none; }
.fp-sync {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: 4px 6px;
}
.fp-sync > span { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); padding: 0 8px; }
.fp-syncbtn {
  width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .1); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.fp-syncbtn:hover { background: rgba(255, 255, 255, .2); }
.fp-lyrics { overflow-y: auto; min-height: 0; padding: 10px 8px 30px; scrollbar-width: thin; }
.lyr-line {
  font-size: clamp(19px, 2vw, 26px); font-weight: 800; letter-spacing: -.01em; line-height: 1.5;
  color: rgba(255, 255, 255, .3); filter: blur(1px);
  margin: 0; padding: 7px 4px; border-radius: 8px;
  transition: color .3s ease, filter .3s ease;
}
.lyr-line.synced { cursor: pointer; }
.lyr-line.synced:hover { color: rgba(255, 255, 255, .6); }
.lyr-line.past { color: rgba(255, 255, 255, .42); filter: none; }
.lyr-line.active { color: #fff; filter: none; }
.lyr-empty { text-align: center; padding: 60px 20px; color: rgba(255, 255, 255, .6); }
.lyr-empty .t { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.lyr-empty .s { font-size: 13.5px; font-weight: 500; }

/* short viewports: tighten the stage */
@media (max-height: 700px) {
  .fp-devicerow { margin-top: 12px; }
  .fp-controls { margin-top: 14px; }
  .fp-title { font-size: 22px; }
  .fp-cardwrap { width: min(52vw, 230px); }
  .fp-panel { max-height: calc(100vh - 190px); }
}

/* v42: full player stacks vertically on phones (stage, then Up Next/Lyrics
   panel). Placed AFTER the desktop grid rules so it wins the cascade. */
@media (max-width: 767px) {
  .fp-body { display: flex; flex-direction: column; gap: 18px; padding: 6px 18px calc(env(safe-area-inset-bottom, 0px) + 24px); }
  .fp-body.panel-hidden { display: flex; }
  .fp-stage { width: 100%; max-width: 420px; flex: none; }
  .fp-panel { width: 100%; flex: none; }
}


/* ---------- 31. v42 — Octave-style recommendations ---------- */
/* "Top Picks for You" big cards */
.pick-row { gap: 16px; }
.pick-card {
  flex: 0 0 auto; width: 230px; cursor: pointer; border-radius: 16px;
}
.pick-art {
  position: relative; width: 230px; height: 230px; border-radius: 16px; overflow: hidden;
  background: var(--grad-soft); box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
}
.pick-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-play {
  position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s;
}
.pick-play svg { width: 22px; height: 22px; margin-left: 2px; }
.pick-card:hover .pick-play { opacity: 1; transform: none; }
.pick-kicker { font-size: 12px; font-weight: 800; color: var(--accent); margin-top: 12px; letter-spacing: .02em; }
.pick-title { font-size: 16px; font-weight: 800; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* "Made For You" mix cards */
.mix-row { gap: 16px; }
.mix-card {
  position: relative; flex: 0 0 auto; width: 300px; min-height: 300px; border-radius: 20px; cursor: pointer;
  background: linear-gradient(135deg, var(--m1), var(--m2));
  padding: 22px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .42); overflow: hidden; color: #fff;
}
.mix-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 55%);
}
.mix-arts { position: absolute; top: 22px; left: 22px; display: flex; }
.mix-art {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: none;
  border: 3px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .3);
}
.mix-art + .mix-art { margin-left: -22px; }
.mix-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mix-kicker { position: relative; z-index: 1; font-size: 12px; font-weight: 800; opacity: .92; }
.mix-title { position: relative; z-index: 1; font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.mix-sub { position: relative; z-index: 1; font-size: 13px; font-weight: 600; opacity: .85; margin-top: 4px; }
.mix-meta { position: relative; z-index: 1; font-size: 12.5px; font-weight: 600; opacity: .75; margin-top: 6px; }
.mix-play {
  position: absolute; z-index: 1; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mix-play svg { width: 22px; height: 22px; margin-left: 2px; }
.mix-card:hover .mix-play { background: var(--accent); border-color: var(--accent); }

/* circular artist images */
.acircle-row { gap: 20px; }
.acircle { flex: 0 0 auto; width: 120px; text-align: center; text-decoration: none; color: inherit; }
.acircle-art {
  display: block; width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
  background: var(--grad-soft); box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
  border: 1px solid rgba(255, 255, 255, .1);
}
.acircle-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acircle-name { display: block; font-size: 13.5px; font-weight: 700; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acircle:hover .acircle-art { box-shadow: 0 10px 30px rgba(250, 77, 142, .35); }

/* personalization footer note */
.listen-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-size: 13px; font-weight: 600; margin: 26px 0 6px; text-align: center;
}
.listen-note svg { width: 15px; height: 15px; color: var(--accent); }

/* search: pill tabs + top result card */
.search-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.search-tabs .tab {
  border: 1px solid var(--border); background: rgba(255, 255, 255, .05);
  border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 700;
  color: var(--muted); cursor: pointer;
}
.search-tabs .tab.active { background: #fff; border-color: #fff; color: #111; }
.top-result {
  display: flex; align-items: center; gap: 16px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border);
  border-radius: 18px; padding: 18px; margin: 6px 0 4px; max-width: 640px;
}
.top-result:hover { background: rgba(255, 255, 255, .08); }
.top-result-art { flex: none; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--grad-soft); }
.top-result-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-result-meta { flex: 1; min-width: 0; }
.top-result-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-result-sub { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.top-result-play {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(250, 77, 142, .4);
}
.top-result-play svg { width: 22px; height: 22px; margin-left: 2px; }

/* playlist detail: Octave-style header */
.pl-head.v42 { display: flex; gap: 28px; align-items: flex-end; margin: 8px 0 6px; flex-wrap: wrap; }
.pl-collage {
  flex: none; width: 230px; height: 230px; border-radius: 14px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  background: var(--grad-soft); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.pl-collage-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-collage-fallback { grid-column: 1 / -1; grid-row: 1 / -1; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.pl-collage-fallback svg { width: 54px; height: 54px; }
.pl-head.v42 .pl-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pl-head.v42 .pl-title { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; line-height: 1.05; }
.pl-head.v42 .pl-sub { font-size: 14px; font-weight: 600; color: var(--muted); }
.pl-head.v42 .pl-meta { font-size: 14px; font-weight: 700; margin-top: 8px; }
.pl-head.v42 .pl-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pl-pill { border-radius: 999px !important; padding: 12px 26px !important; font-size: 15px !important; }
.pl-icbtn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .05); color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pl-icbtn svg { width: 20px; height: 20px; }
.pl-icbtn:hover { background: rgba(255, 255, 255, .12); }
.jump-wrap { display: flex; justify-content: center; margin: 14px 0 4px; }
.jump-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid rgba(250, 77, 142, .5); background: rgba(250, 77, 142, .12);
  color: #ff8fb8; font-size: 13.5px; font-weight: 800;
  padding: 10px 20px; border-radius: 999px;
}
.jump-btn:hover { background: rgba(250, 77, 142, .22); }
.jump-btn .jump-ic svg { width: 16px; height: 16px; }

/* sidebar PINNED */
.side-pin { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.side-pin-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 0 12px 8px;
}
.pin-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px 12px; border-radius: 12px; border: 0; background: none; cursor: pointer;
  text-decoration: none; color: inherit; text-align: left;
}
.pin-row:hover { background: rgba(255, 255, 255, .06); }
.pin-art {
  flex: none; width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.pin-art svg { width: 22px; height: 22px; }
.pin-meta { min-width: 0; display: flex; flex-direction: column; }
.pin-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-sub { font-size: 12px; color: var(--muted); font-weight: 600; }

@media (max-width: 767px) {
  /* v42 mobile home refinement: compact, tighter cards */
  .pick-row { gap: 12px; }
  .pick-card { width: 148px; }
  .pick-art { width: 148px; height: 148px; border-radius: 12px; }
  .pick-play { width: 40px; height: 40px; right: 8px; bottom: 8px; opacity: 1; transform: none; }
  .pick-play svg { width: 18px; height: 18px; }
  .pick-kicker { font-size: 11px; margin-top: 8px; }
  .pick-title { font-size: 14.5px; }
  .pick-sub { font-size: 12.5px; }
  .mix-row { gap: 12px; }
  .mix-card { width: 208px; min-height: 208px; padding: 16px; border-radius: 16px; }
  .mix-arts { top: 16px; left: 16px; }
  .mix-art { width: 62px; height: 62px; border-width: 2px; }
  .mix-art + .mix-art { margin-left: -16px; }
  .mix-kicker { font-size: 11px; }
  .mix-title { font-size: 19px; }
  .mix-sub { font-size: 12px; }
  .mix-meta { font-size: 11.5px; }
  .mix-play { width: 44px; height: 44px; right: 14px; bottom: 14px; }
  .mix-play svg { width: 18px; height: 18px; }
  .acircle-row { gap: 14px; }
  .acircle { width: 76px; }
  .acircle-art { width: 76px; height: 76px; }
  .acircle-name { font-size: 12px; margin-top: 8px; }
  .mood-card { flex-basis: 112px; min-height: 86px; padding: 12px; }
  .mood-name { font-size: 13.5px; }
  .mood-play { width: 30px; height: 30px; }
  .shelf-row .card { flex: 0 0 148px; width: 148px; max-width: 148px; }
  .card { padding: 10px; }
  .shelf { margin-top: 20px; }
  .shelf-title { font-size: 19px; }
  .pl-collage { width: 160px; height: 160px; }
  .top-result-art { width: 72px; height: 72px; }
  .top-result-title { font-size: 18px; }
}

/* ---------- 30. force-mobile (desktop-viewport spoof guard) ---------- */
/* Phones whose browser fakes a desktop viewport (iOS Safari "Request Desktop
   Website", Android Chrome "Desktop site") get html.force-mobile from the
   <head> guard plus a root zoom that cancels the fake 980px viewport.
   These rules mirror the phone media queries above, which never match the
   spoofed viewport. Generated by build-force-mobile.js — do not hand-edit. */
/* --- mirrored from @media (max-width: 767px) --- */
/* Prevent iOS auto-zoom on input focus (needs 16px+) */
html.force-mobile .input, html.force-mobile .select, html.force-mobile textarea.input { font-size: 16px; }
/* Remove iOS gray tap flash and double-tap-zoom delay on buttons */
html.force-mobile button, html.force-mobile .nav-link, html.force-mobile .card, html.force-mobile .trow, html.force-mobile .mood-card, html.force-mobile .srow {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
html.force-mobile { --bottomnav-h: calc(68px + env(safe-area-inset-bottom, 0px)); }
/* v21: the old fixed 68px ignored the home-indicator safe area, so the
     real bottom nav ran ~20px taller and the mini player overlapped it. */
  /* v6 perf: the 28px backdrop-blur used across ~26 glass surfaces is the
     main scroll-lag culprit on phone GPUs — drop it to a cheap 10px here. */
html.force-mobile { --blur: blur(10px); }
html.force-mobile .blob { filter: blur(60px); opacity: .35; }
html.force-mobile .b1 { width: 400px; height: 400px; }
html.force-mobile .b2 { width: 440px; height: 440px; }
html.force-mobile .b3 { width: 380px; height: 380px; }
html.force-mobile .sidebar {
    top: auto; left: 0; right: 0; bottom: 0; width: auto;
    flex-direction: row; align-items: center;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
  }
html.force-mobile .brand, html.force-mobile .side-ad { display: none; }
html.force-mobile .brand-footer { display: none; }
/* branding lives at the end of each view on phones */
html.force-mobile .nav { flex-direction: row; flex: 1; justify-content: space-around; gap: 0; }
html.force-mobile .nav-link { flex-direction: column; gap: 3px; padding: 7px 4px; font-size: 10px; font-weight: 700; border-radius: 12px; min-width: 0; flex: 1 1 0; text-align: center; }
html.force-mobile .nav-link span { white-space: nowrap; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html.force-mobile .nav-link svg { width: 21px; height: 21px; }
html.force-mobile .side-foot { flex-direction: row; margin: 0; align-items: center; }
html.force-mobile .side-foot .nav-link { min-width: 0; flex: 1 1 0; }
html.force-mobile .side-pin { display: none; }
/* v42: PINNED is a desktop sidebar feature; the phone bar is icon-only */
html.force-mobile .th-info, html.force-mobile .pl-info { min-width: 0; }
html.force-mobile .view { margin-left: 0; padding: 18px 14px 260px; }
html.force-mobile .nowbar-wrap { bottom: calc(10px + var(--bottomnav-h)); width: calc(100% - 20px); }
html.force-mobile .np-timeline { margin-top: 4px; height: 10px; }
html.force-mobile .np-progress { height: 14px; }
html.force-mobile .nowbar { height: 66px; padding: 8px 10px; border-radius: 20px; gap: 6px; }
html.force-mobile .np-art { width: 46px; height: 46px; border-radius: 12px; }
html.force-mobile .np-right #np-more, html.force-mobile .np-right #np-mute { display: none; }
html.force-mobile .np-controls .icon-btn { width: 34px; height: 34px; }
html.force-mobile .np-play { width: 44px; height: 44px; }
html.force-mobile .queue-drawer { right: 10px; left: 10px; width: auto; bottom: calc(66px + 52px + var(--bottomnav-h)); }
html.force-mobile .track-hero, html.force-mobile .pl-head { padding: 18px; gap: 18px; }
html.force-mobile .hero-info { padding: 24px 20px; }
html.force-mobile .shelf-row .card { flex-basis: 152px; width: 152px; max-width: 152px; }
html.force-mobile .skel-card { flex-basis: 152px; }
html.force-mobile .toasts { bottom: calc(66px + 56px + var(--bottomnav-h)); }
html.force-mobile .trow-badge { display: none; }
html.force-mobile .trow-dur { display: none; }
html.force-mobile .srow .trow-dur { display: block; }
/* search rows keep duration + heart */
html.force-mobile .srow .trow-play { display: none; }
/* row tap already plays */
html.force-mobile .modal-root { padding: 12px; align-items: flex-end; }
html.force-mobile .modal { border-radius: 20px 20px 0 0; width: 100%; }
/* v42: full player stacks vertically on phones (stage, then Up Next/Lyrics panel) */
html.force-mobile .fp-top { padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 2px; }
html.force-mobile .fp-cardwrap { width: min(68vw, 300px); }
html.force-mobile .fp-title { font-size: 21px; }
html.force-mobile .fp-head-title { max-width: 52vw; }
html.force-mobile .fp-panel { max-height: none; }
html.force-mobile .fp-un-scroll { max-height: 360px; }
html.force-mobile .fp-lyrics { max-height: 360px; }
html.force-mobile .un-grip { display: inline-flex; touch-action: none; }
/* --- mirrored from @media (max-width: 480px) --- */
html.force-mobile .np-controls #np-shuffle, html.force-mobile .np-controls #np-repeat { display: none; }
/* v14: the video tile is gone (v13), so there is room for prev/next on
     phones again — they stay visible in the bar; shuffle/repeat live in
     the full player sheet. */
html.force-mobile .np-art { width: 40px; height: 40px; border-radius: 11px; }
html.force-mobile .grid-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
html.force-mobile .hero-actions .btn { padding: 10px 18px; font-size: 13.5px; }
/* v14: stack the hero vertically on phones — info first, artwork below. */
html.force-mobile .hero { flex-direction: column; min-height: 0; }
html.force-mobile .hero-artwrap { min-width: 0; padding: 0 20px 22px; }
html.force-mobile .hero-art { max-width: none; aspect-ratio: 16 / 9; }
/* --- mirrored from @media (max-width: 768px) --- */
html.force-mobile .mood-card { flex-basis: 128px; min-height: 98px; }
/* --- mirrored from @media (max-width: 767px) --- */
html.force-mobile .fp-body { display: flex; flex-direction: column; gap: 18px; padding: 6px 18px calc(env(safe-area-inset-bottom, 0px) + 24px); }
html.force-mobile .fp-body.panel-hidden { display: flex; }
html.force-mobile .fp-stage { width: 100%; max-width: 420px; flex: none; }
html.force-mobile .fp-panel { width: 100%; flex: none; }
/* --- mirrored from @media (max-width: 767px) --- */
/* v42 mobile home refinement: compact, tighter cards */
html.force-mobile .pick-row { gap: 12px; }
html.force-mobile .pick-card { width: 148px; }
html.force-mobile .pick-art { width: 148px; height: 148px; border-radius: 12px; }
html.force-mobile .pick-play { width: 40px; height: 40px; right: 8px; bottom: 8px; opacity: 1; transform: none; }
html.force-mobile .pick-play svg { width: 18px; height: 18px; }
html.force-mobile .pick-kicker { font-size: 11px; margin-top: 8px; }
html.force-mobile .pick-title { font-size: 14.5px; }
html.force-mobile .pick-sub { font-size: 12.5px; }
html.force-mobile .mix-row { gap: 12px; }
html.force-mobile .mix-card { width: 208px; min-height: 208px; padding: 16px; border-radius: 16px; }
html.force-mobile .mix-arts { top: 16px; left: 16px; }
html.force-mobile .mix-art { width: 62px; height: 62px; border-width: 2px; }
html.force-mobile .mix-art + .mix-art { margin-left: -16px; }
html.force-mobile .mix-kicker { font-size: 11px; }
html.force-mobile .mix-title { font-size: 19px; }
html.force-mobile .mix-sub { font-size: 12px; }
html.force-mobile .mix-meta { font-size: 11.5px; }
html.force-mobile .mix-play { width: 44px; height: 44px; right: 14px; bottom: 14px; }
html.force-mobile .mix-play svg { width: 18px; height: 18px; }
html.force-mobile .acircle-row { gap: 14px; }
html.force-mobile .acircle { width: 76px; }
html.force-mobile .acircle-art { width: 76px; height: 76px; }
html.force-mobile .acircle-name { font-size: 12px; margin-top: 8px; }
html.force-mobile .mood-card { flex-basis: 112px; min-height: 86px; padding: 12px; }
html.force-mobile .mood-name { font-size: 13.5px; }
html.force-mobile .mood-play { width: 30px; height: 30px; }
html.force-mobile .shelf-row .card { flex: 0 0 148px; width: 148px; max-width: 148px; }
html.force-mobile .card { padding: 10px; }
html.force-mobile .shelf { margin-top: 20px; }
html.force-mobile .shelf-title { font-size: 19px; }
html.force-mobile .pl-collage { width: 160px; height: 160px; }
html.force-mobile .top-result-art { width: 72px; height: 72px; }
html.force-mobile .top-result-title { font-size: 18px; }
