/* Layout: a record-crate browser. Narrow top bar, one content column (max 1120px),
   tier rows read like labelled shelf dividers with sleeves filed behind them. */
:root {
  --bg: #eceef2;
  --surface: #f8f9fb;
  --raise: #ffffff;
  --ink: #16181d;
  --muted: #5d6270;
  --faint: #c9cdd6;
  --line: #d8dbe2;
  --accent: #2f4fd0;
  --accent-ink: #ffffff;
  --tier-s: #e0525a;
  --tier-a: #ee9446;
  --tier-b: #e2bd45;
  --tier-c: #5fae6c;
  --tier-ink: #16181d;
  --shadow: 0 1px 2px rgba(20, 24, 40, .12), 0 4px 14px rgba(20, 24, 40, .08);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --cover: 92px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111318; --surface: #191c23; --raise: #20242c; --ink: #eceef3; --muted: #9298a8;
    --faint: #3a3f4b; --line: #2a2e38; --accent: #7d95ff; --accent-ink: #0d1020;
    --tier-s: #e8646b; --tier-a: #f0a05a; --tier-b: #e7c65a; --tier-c: #6fbd7b; --tier-ink: #121418;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111318; --surface: #191c23; --raise: #20242c; --ink: #eceef3; --muted: #9298a8;
  --faint: #3a3f4b; --line: #2a2e38; --accent: #7d95ff; --accent-ink: #0d1020;
  --tier-s: #e8646b; --tier-a: #f0a05a; --tier-b: #e7c65a; --tier-c: #6fbd7b; --tier-ink: #121418;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.brand {
  font-family: var(--display); font-weight: 850; font-stretch: 112%; font-size: 17px;
  letter-spacing: -.01em; text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.brand i { width: 22px; height: 22px; border-radius: 50%; background: url(logo.svg) center / contain no-repeat; display: inline-block; }
.crumbs { display: flex; gap: 6px; align-items: center; min-width: 0; color: var(--muted); font-size: 13px; }
.crumbs a { text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: .5; }
.sync { margin-left: auto; font: 12px var(--mono); color: var(--muted); white-space: nowrap; }

main { max-width: 1120px; margin: 0 auto; padding: 28px 16px 80px; display: grid; gap: 40px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; line-height: 1.05; }
h1 { font-size: clamp(30px, 5.5vw, 54px); font-weight: 850; font-stretch: 105%; letter-spacing: -.02em; }
h2 { font-size: 20px; font-weight: 750; font-stretch: 110%; letter-spacing: -.005em; }
.eyebrow { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.muted { color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
section { display: grid; gap: 14px; min-width: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* progress */
.prog { height: 6px; border-radius: 3px; background: var(--faint); overflow: hidden; }
.prog > b { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s ease; }
.prog.done > b { background: var(--tier-c); }

/* home */
.hero { display: grid; gap: 14px; }
.hero p { margin: 0; max-width: 60ch; color: var(--muted); }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px 16px;
}
.stat { display: grid; gap: 8px; justify-items: center; padding: 0 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font: 850 clamp(36px, 7vw, 68px)/1 var(--display); font-stretch: 100%; letter-spacing: -.02em; }
.stat small { font-size: .38em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat span { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 520px) { .stats { padding: 22px 8px; } .stat { padding: 0 6px; } .stat span { font-size: 10px; letter-spacing: .05em; } }
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px;
  display: grid; gap: 12px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.gcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gcard h3 { font-size: 19px; font-weight: 800; font-stretch: 100%; }
.gcard .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stack { display: flex; height: 64px; }
.stack img { width: 64px; height: 64px; border-radius: 3px; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,.25); background: var(--faint); }
.stack img + img { margin-left: -30px; }
.gmeta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.search { width: 100%; max-width: 420px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--raise); font: inherit; color: var(--ink); }
.results { display: grid; gap: 4px; }

/* tier list */
.tiers { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.trow { display: grid; grid-template-columns: 64px 1fr; min-height: calc(var(--cover) + 16px); }
.trow + .trow { border-top: 1px solid var(--line); }
.tlabel {
  display: grid; place-items: center; color: var(--tier-ink);
  font: 900 32px/1 var(--display); font-stretch: 100%;
}
.t-S { background: var(--tier-s); } .t-A { background: var(--tier-a); } .t-B { background: var(--tier-b); } .t-C { background: var(--tier-c); }
.tcells { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; align-items: flex-start; min-width: 0; }
.tempty { align-self: center; color: var(--faint); font: 12px var(--mono); padding-left: 6px; }
.sleeve { position: relative; width: var(--cover); flex: none; text-decoration: none; display: block; }
.sleeve img { width: var(--cover); height: var(--cover); object-fit: cover; border-radius: 3px; display: block; background: var(--faint); box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform .15s ease; }
.sleeve:hover img { transform: translateY(-3px) rotate(-1deg); }
.sleeve .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 5px; font-size: 10.5px; line-height: 1.2; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.82)); border-radius: 0 0 3px 3px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.sleeve:hover .cap, .sleeve:focus-visible .cap { opacity: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--raise); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 9px 3px 3px; font-size: 13px; text-decoration: none; max-width: 100%;
}
.chip img { width: 26px; height: 26px; border-radius: 2px; object-fit: cover; flex: none; }
.chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.notimg { padding-left: 9px; }
.chip:hover { border-color: var(--muted); }

/* todo */
.todo { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.trow2 {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(90px, 200px) 54px; gap: 14px; align-items: center;
  padding: 6px; border-radius: 6px; text-decoration: none;
}
.trow2:hover { background: var(--raise); }
.trow2 img { width: 52px; height: 52px; border-radius: 3px; object-fit: cover; display: block; background: var(--faint); }
.trow2 .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow2 .a { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow2 .pct { text-align: right; font: 13px var(--mono); color: var(--muted); }
.trow2 .pc { display: grid; gap: 4px; font: 11px var(--mono); color: var(--muted); }
.allclear { padding: 18px; text-align: center; color: var(--muted); }

/* album */
.ahero { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: end; }
.ahero > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); max-width: 100%; }
.ainfo { display: grid; gap: 12px; min-width: 0; }
.artist-link { font: 700 20px var(--display); font-stretch: 105%; text-decoration: none; border-bottom: 2px solid var(--accent); justify-self: start; }
.artist-link:hover { color: var(--accent); }
.meta { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.picker { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tbtn {
  width: 46px; height: 46px; border-radius: 8px; border: 2px solid var(--line); background: var(--raise); cursor: pointer;
  font: 900 20px/1 var(--display); color: var(--muted); transition: transform .1s;
}
.tbtn:hover { border-color: var(--muted); color: var(--ink); }
.tbtn:active { transform: scale(.94); }
.tbtn[aria-pressed="true"] { color: var(--tier-ink); border-color: transparent; }
.tbtn[aria-pressed="true"].t-S, .tbtn.t-S[aria-pressed="true"] { background: var(--tier-s); }
.tbtn:not([aria-pressed="true"]) { background: var(--raise); }
.nudge { font-size: 13px; color: var(--accent); font-weight: 600; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tracks { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.track { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; }
.track + .track { border-top: 1px solid var(--line); border-radius: 0; }
.track .n { font: 12px var(--mono); color: var(--muted); text-align: right; }
.track .nm { min-width: 0; overflow-wrap: anywhere; }
.track .d { font: 12px var(--mono); color: var(--muted); }
.mini { display: flex; gap: 4px; }
.mini .tbtn { width: 30px; height: 30px; border-radius: 6px; font-size: 14px; border-width: 1.5px; }
.sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); display: grid; gap: 14px; }
.tiers.songs { --cover: 0px; }
.tiers.songs .trow { min-height: 46px; grid-template-columns: 46px 1fr; }
.tiers.songs .tlabel { font-size: 22px; }

/* artist */
.banner { position: relative; border-radius: 12px; overflow: hidden; min-height: 260px; display: grid; align-items: end; background: var(--faint); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8,10,16,.85)); }
.banner .bt { position: relative; z-index: 1; padding: 22px; color: #fff; display: grid; gap: 8px; }
.banner .bt .eyebrow { color: rgba(255,255,255,.75); }
.banner h1 { color: #fff; font-size: clamp(34px, 7vw, 72px); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: rgba(255,255,255,.9); }
.facts .flag { font-size: 18px; margin-right: 7px; vertical-align: -2px; }
.bio { max-width: 68ch; gap: 8px; margin-top: -16px; }
.bio p { margin: 0; font-size: 16px; line-height: 1.65; }
.bio a { font-size: 13px; color: var(--accent); text-decoration: none; justify-self: start; }
.bio a:hover { text-decoration: underline; }

.who { margin-left: 4px; max-width: 160px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--raise); color: var(--ink); font: 500 13px var(--body); }
.tbtn[aria-disabled="true"] { cursor: default; }
.tbtn[aria-disabled="true"]:hover { border-color: var(--line); color: var(--muted); }
.ava { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; font-family: var(--display); }
.setup { display: grid; gap: 14px; max-width: 520px; }
.setup p { margin: 0; }
.setup-form { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.setup-form label[for], .setup-form .lbl { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.setup-form .search { max-width: none; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw input { position: absolute; opacity: 0; }
.sw span { display: block; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; box-shadow: 0 0 0 1px var(--line); }
.sw input:checked + span { border-color: var(--surface); box-shadow: 0 0 0 2px var(--ink); }
.sw input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.go { margin-top: 8px; padding: 12px 18px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; cursor: pointer; justify-self: start; }
.go:disabled { opacity: .6; cursor: default; }
.people { display: flex; gap: 10px; flex-wrap: wrap; }
.person { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; }
.person:hover { border-color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 9px 14px; border-radius: 8px; font-size: 13px; box-shadow: var(--shadow); z-index: 20; max-width: calc(100% - 32px); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

@media (max-width: 760px) {
  :root { --cover: 66px; }
  .ahero { grid-template-columns: 1fr; }
  .ahero > img { max-width: 240px; }
  .cols { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .trow { grid-template-columns: 44px 1fr; }
  .tlabel { font-size: 24px; }
  .trow2 { grid-template-columns: 44px minmax(0, 1fr) 46px; gap: 10px; }
  .trow2 img { width: 44px; height: 44px; }
  .trow2 .pc { grid-column: 2 / 4; grid-row: 2; }
  .crumbs a { max-width: 14ch; }
  .sync { display: none; }
  .who { margin-left: auto; max-width: 130px; }
  .crumbs { order: 3; flex-basis: 100%; }
  .crumbs:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- standalone-site additions ---------- */
[hidden] { display: none !important; }
img { max-width: 100%; }
html { padding: 0 0 env(safe-area-inset-bottom, 0px); }
/* Never let anything push the page sideways (iOS lets you drag a page that's even 1px too wide). */
html, body { overflow-x: clip; max-width: 100%; }
body { overscroll-behavior-x: none; }
main { grid-template-columns: minmax(0, 1fr); }
main > * { min-width: 0; }
/* The header reaches up under the clock/battery, so nothing scrolls visibly behind them. */
.bar { top: 0 !important; padding-top: env(safe-area-inset-top, 0px); background: color-mix(in srgb, var(--bg) 94%, transparent); }
code { font-family: var(--mono); font-size: .92em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; }
.link:hover { text-decoration: underline; }
.err { margin: 0; min-height: 1.2em; color: var(--tier-s); font-size: 13px; }
.alt { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.offer { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px dashed var(--accent); border-radius: 14px; padding: 18px 20px; }
.offer p { margin: 4px 0 0; font-size: 13px; }

:root { --spotify: #1db954; }
.spbtn { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); color: var(--ink); font: 600 12.5px var(--body); cursor: pointer; white-space: nowrap; }
.spbtn::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 7px; vertical-align: 1px; }
.spbtn.on::before { background: var(--spotify); }
.spbtn:hover { border-color: var(--muted); }

.playall { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border: 0; border-radius: 999px;
  background: var(--spotify); color: #0b130e; font: 700 14px var(--body); cursor: pointer; transition: transform .1s; }
.playall svg { width: 20px; height: 20px; }
.playall:hover { transform: scale(1.03); }
.pn { border: 0; background: none; cursor: pointer; padding: 0; height: 28px; display: grid; place-items: center end; position: relative; }
.pn svg { width: 16px; height: 16px; display: none; color: var(--ink); }
.track:hover .pn span, .track.playing .pn span { display: none; }
.track:hover .pn svg, .track.playing .pn svg { display: block; }
.track.playing { background: color-mix(in srgb, var(--spotify) 12%, transparent); }
.track.playing .nm { color: color-mix(in srgb, var(--spotify) 70%, var(--ink)); font-weight: 600; }

body.has-player main { padding-bottom: 150px; }
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--raise); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0,0,0,.12); padding-bottom: env(safe-area-inset-bottom, 0px); }
.pl-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.pl-now { display: flex; gap: 12px; align-items: center; text-decoration: none; min-width: 0; }
.pl-now img { width: 52px; height: 52px; border-radius: 3px; object-fit: cover; flex: none; }
.pl-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-a { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ctl { display: grid; gap: 6px; justify-items: center; }
.pl-btns { display: flex; gap: 14px; align-items: center; }
.pl-b { width: 34px; height: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.pl-b svg { width: 20px; height: 20px; }
.pl-b:hover { color: var(--ink); }
.pl-main { width: 40px; height: 40px; background: var(--ink); color: var(--bg); }
.pl-main:hover { color: var(--bg); transform: scale(1.05); }
.pl-seek { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 11px; color: var(--muted); }
.pl-track { height: 14px; display: flex; align-items: center; cursor: pointer; }
.pl-track { background: linear-gradient(var(--faint), var(--faint)) center / 100% 4px no-repeat; border-radius: 2px; }
.pl-track b { display: block; height: 4px; background: var(--spotify); border-radius: 2px; }
.pl-rank { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
@media (max-width: 760px) {
  .pl-in { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .pl-ctl { grid-column: 2; grid-row: 1; }
  .pl-seek { display: none; }
  .pl-rank { grid-column: 1 / -1; justify-content: flex-start; }
  .pl-now img { width: 44px; height: 44px; }
  .spbtn { font-size: 11.5px; padding: 5px 10px; }
}

/* ---------- social ---------- */
.sync { margin-left: auto; }
.nav { display: flex; align-items: center; gap: 12px; }
.navlink { font-weight: 600; font-size: 13.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.navlink:hover { color: var(--accent); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--tier-s); color: #fff; font: 700 11px var(--body); }
.melink { display: inline-flex; border-radius: 50%; }
img.ava { border-radius: 50%; object-fit: cover; flex: none; background: var(--faint); }
.viewbar { background: color-mix(in srgb, var(--accent) 14%, var(--bg)); border-bottom: 1px solid var(--line); }
.viewbar-in { max-width: 1120px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; flex-wrap: wrap; }
.viewbar-in a { margin-left: auto; color: var(--accent); font-weight: 600; text-decoration: none; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font: 600 13px var(--body); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn.ghost { background: var(--raise); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.danger { background: var(--tier-s); color: #fff; }

.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); color: var(--ink); font: 600 14.5px var(--body); cursor: pointer; }
.gbtn svg { width: 20px; height: 20px; }
.gbtn:hover { border-color: var(--muted); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.setup-fields { display: grid; gap: 10px; }
.setup-fields label, .setup-form > label { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
textarea.search { resize: vertical; font: inherit; line-height: 1.5; }
.at { display: flex; align-items: center; gap: 0; }
.at span { padding: 10px 2px 10px 12px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--surface); color: var(--muted); }
.at input { border-radius: 0 8px 8px 0; }
.photo-pick { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.photo-btns { display: grid; gap: 8px; justify-items: start; }
.vis { display: grid; gap: 8px; }
.visopt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--raise); }
.visopt input { margin-top: 3px; accent-color: var(--accent); }
.visopt span { display: grid; gap: 2px; }
.visopt small { color: var(--muted); font-size: 12.5px; }
.visopt:has(input:checked) { border-color: var(--accent); }

.pcard { display: flex; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; flex-wrap: wrap; }
.pinfo { display: grid; gap: 8px; min-width: 0; flex: 1; }
.pinfo p { margin: 0; max-width: 60ch; }
.vbadge { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.pact { display: flex; gap: 8px; flex-wrap: wrap; }
.locked { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 36px 20px; text-align: center; color: var(--muted); }
.locked p { margin: 0; }

.plist, .feed, .takes { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; flex-wrap: wrap; }
.prow:hover { background: var(--raise); }
.pwho { display: flex; gap: 12px; align-items: center; text-decoration: none; min-width: 0; flex: 1; }
.prow .t, .take .t { font-weight: 600; }
.prow .a, .fitem .a, .take .a { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fitem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; }
.fitem a { text-decoration: none; }
.fitem a:hover b { color: var(--accent); }
.fitem img:not(.ava) { width: 46px; height: 46px; border-radius: 3px; object-fit: cover; display: block; }
.fitem + .fitem, .take + .take { border-top: 1px solid var(--line); }
.take { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; }
.take a { display: inline-flex; }
.tbadge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: var(--tier-ink); font: 900 14px/1 var(--display); vertical-align: middle; }
.tbadge.t-S { background: var(--tier-s); } .tbadge.t-A { background: var(--tier-a); } .tbadge.t-B { background: var(--tier-b); } .tbadge.t-C { background: var(--tier-c); }
.sticky { align-content: start; gap: 28px; }
@media (max-width: 760px) {
  .nav { margin-left: auto; gap: 10px; }
  .pcard { padding: 18px; }
}

/* ---------- top-bar search ---------- */
.gsearch { position: relative; flex: 1; max-width: 460px; min-width: 0; }
.gsearch svg { position: absolute; left: 11px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.gsearch input { width: 100%; padding: 9px 12px 9px 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); color: var(--ink); font: 14px var(--body); }
.gsearch input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.gresults { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; max-height: min(70vh, 560px); overflow-y: auto;
  background: var(--raise); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.ghead { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 10px 8px 6px; }
.gitem { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; text-decoration: none; }
.gitem:hover, .gitem:focus-visible { background: var(--surface); }
.gitem > img:not(.ava) { width: 36px; height: 36px; border-radius: 3px; object-fit: cover; flex: none; }
.gitem > div { min-width: 0; }
.gitem .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gitem .a { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gempty { padding: 14px 10px; color: var(--muted); font-size: 13px; }
.melink { position: relative; }
.badge.dot { position: absolute; top: -4px; right: -6px; border: 2px solid var(--bg); }
.crumbbar { max-width: 1120px; margin: 0 auto; padding: 14px 16px 0; }
.crumbbar .crumbs:empty { display: none; }
.crumbbar .crumbs { display: flex; }
.crumbs > span:first-child { display: none; }
.pcard .ava { box-shadow: var(--shadow); }
.pinfo h1 { font-size: clamp(28px, 5vw, 46px); }
@media (max-width: 760px) {
  .gsearch { order: 3; flex-basis: 100%; max-width: none; }
}
.actlink { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
.actlink svg { width: 22px; height: 22px; }
.actlink:hover, .actlink.on { color: var(--ink); background: var(--raise); }
.spot { margin-top: 6px; }
.spot-head { display: flex; gap: 12px; align-items: center; }
.spot-logo { width: 22px; height: 22px; border-radius: 50%; flex: none; display: inline-block;
  background: var(--spotify) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9.2c4-1.2 8.6-.9 12 1M6.6 12.4c3.4-1 7.2-.7 10 .9M7.3 15.4c2.8-.8 5.6-.5 7.8.7' stroke='%23000' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.spot-btn { background: var(--spotify); color: #0b130e; }
.splink { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; text-decoration: none; justify-self: start; }
.splink .spot-logo { width: 18px; height: 18px; }
.splink:hover { text-decoration: underline; }
.splink.off { color: var(--muted); font-weight: 500; }
.splink.off .spot-logo { filter: grayscale(1); opacity: .6; }

/* ---------- favourite song ---------- */
:root { --gold: #d9a520; --gold-soft: color-mix(in srgb, #d9a520 22%, transparent); }
.favbtn { width: 30px; height: 30px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--raise); color: var(--faint); cursor: pointer; display: grid; place-items: center; padding: 0; transition: transform .1s, color .1s; }
.favbtn svg { width: 17px; height: 17px; }
.favbtn:hover { color: var(--gold); border-color: var(--gold); }
.favbtn:active { transform: scale(.92); }
.favbtn.on { color: #fff; background: var(--gold); border-color: transparent; }
.favbtn[aria-disabled="true"] { cursor: default; }
.favbtn[aria-disabled="true"]:not(.on):hover { color: var(--faint); border-color: var(--line); }
.mini .favbtn { margin-right: 4px; }
.track.isfav .nm { font-weight: 700; }
.track.isfav .nm::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--gold); vertical-align: 2px; }
.chip.gold { background: var(--gold-soft); border-color: var(--gold); font-weight: 600; }
.chip.gold svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.chip.notimg.gold { padding-left: 7px; }

/* ---------- volume ---------- */
.pl-right { display: flex; gap: 16px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.pl-vol { display: flex; align-items: center; gap: 6px; }
.pl-mute { width: 30px; height: 30px; }
.pl-vol input[type=range] { -webkit-appearance: none; appearance: none; width: 100px; height: 4px; border-radius: 2px; cursor: pointer;
  background: linear-gradient(var(--ink), var(--ink)) 0 / var(--v, 70%) 100% no-repeat, var(--faint); }
.pl-vol input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 0; }
.pl-vol input[type=range]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 0; }
.pl-vol input[type=range]:hover { background: linear-gradient(var(--spotify), var(--spotify)) 0 / var(--v, 70%) 100% no-repeat, var(--faint); }
@media (max-width: 760px) {
  .pl-right { grid-column: 1 / -1; justify-content: space-between; }
  .pl-vol input[type=range] { width: 80px; }
}

/* ---------- profile: favourites shelf, tabs, collapsing rows ---------- */
.h2star { width: 18px; height: 18px; color: var(--gold); vertical-align: -2px; margin-right: 6px; }
.inline-star { width: 14px; height: 14px; color: var(--gold); vertical-align: -2px; }
.shelf { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.fav-card { flex: none; width: 132px; display: grid; gap: 4px; text-decoration: none; scroll-snap-align: start; }
.fav-art { position: relative; display: block; }
.fav-art img { width: 132px; height: 132px; object-fit: cover; border-radius: 4px; display: block; box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.fav-art .tbadge { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; font-size: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.fav-song { font-weight: 700; font-size: 13.5px; line-height: 1.25; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fav-from { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-card:hover .fav-song { color: var(--gold); }
.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.ptab { border: 0; background: none; padding: 10px 14px; font: 700 15px var(--display); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ptab span { font: 500 12px var(--mono); margin-left: 4px; }
.ptab:hover { color: var(--ink); }
.ptab.on { color: var(--ink); border-bottom-color: var(--accent); }
.morebtn { align-self: center; border: 1px dashed var(--line); background: none; color: var(--muted); border-radius: 6px; padding: 6px 10px; font: 600 12.5px var(--body); cursor: pointer; }
.morebtn:hover { color: var(--ink); border-color: var(--muted); }
@media (max-width: 760px) { .fav-card { width: 112px; } .fav-art img { width: 112px; height: 112px; } }
.pcard { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.pstats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 4px; }
.pstats .stat b { font-size: clamp(28px, 5vw, 48px); }
@media (max-width: 560px) { .pcard { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- genres & recommendations ---------- */
.gpick { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip input { position: absolute; opacity: 0; }
.gchip span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); font-size: 13px; font-weight: 600; cursor: pointer; }
.gchip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.gchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rec-card { flex: none; width: 150px; display: grid; gap: 3px; text-decoration: none; scroll-snap-align: start; }
.rec-card img { width: 150px; height: 150px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); margin-bottom: 4px; }
.rec-card:hover .fav-song { color: var(--accent); }
.rec-note { font-size: 11.5px; color: var(--accent); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3 { font: 750 16px var(--display); font-stretch: 105%; margin: 0; text-decoration: none; }
a.h3:hover { color: var(--accent); }
.songrecs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-by { font-size: 11px; color: var(--muted); margin-left: 2px; }
.gtags { display: flex; flex-wrap: wrap; gap: 8px; }
.gtag { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font-size: 13px; font-weight: 600; text-decoration: none; }
.pgenres { display: grid; gap: 22px; margin-top: 6px; }
.pgenre { display: grid; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.shelf.small { gap: 8px; padding-bottom: 4px; }
.mini-sleeve { position: relative; flex: none; display: block; }
.mini-sleeve img { width: 76px; height: 76px; object-fit: cover; border-radius: 3px; display: block; }
.mini-sleeve .tbadge { position: absolute; right: 3px; bottom: 3px; width: 20px; height: 20px; font-size: 11px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
@media (max-width: 760px) { .rec-card { width: 128px; } .rec-card img { width: 128px; height: 128px; } }
.brand small { font: 500 12px var(--body); font-stretch: 100%; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.brand small:empty { display: none; }
.brand i { transition: transform .6s ease; }
.brand:hover i { transform: rotate(180deg); }
@media (max-width: 760px) { .brand small { display: none; } }
.apphint { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-size: 13px; line-height: 1.45; }

/* ---------- bottom tab bar (phones and the iPhone app) ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar:not([hidden]) {
    display: flex; position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); z-index: 25;
    transform: translateX(-50%); gap: 2px; padding: 6px; border-radius: 999px;
    background: color-mix(in srgb, var(--raise) 72%, transparent);
    backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), bottom .28s cubic-bezier(.2,.8,.2,1);
  }
  .tab { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; width: 76px; height: 56px; border-radius: 999px;
    color: var(--muted); text-decoration: none; font: 600 10.5px var(--body); -webkit-tap-highlight-color: transparent;
    transition: width .28s cubic-bezier(.2,.8,.2,1), height .28s cubic-bezier(.2,.8,.2,1), background .2s; }
  .tab svg { width: 24px; height: 24px; }
  .tab .tav { display: grid; place-items: center; height: 26px; }
  .tab .tav .ava { width: 26px !important; height: 26px !important; font-size: 12px !important; }
  .tab.on { color: var(--ink); background: color-mix(in srgb, var(--ink) 13%, transparent); }
  .tab.on .tav .ava { box-shadow: 0 0 0 2px var(--ink); }
  .tab > span:last-of-type { transition: opacity .2s; }
  .tab .badge.dot { top: 6px; right: 16px; }
  .tabbar.mini { transform: translateX(-50%) scale(.84); bottom: calc(env(safe-area-inset-bottom, 0px) + 2px); }
  .tabbar.mini .tab { height: 46px; width: 62px; }
  .tabbar.mini .tab > span:not(.tav) { opacity: 0; position: absolute; }
  .tabbar.mini .tab .badge.dot { top: 2px; right: 10px; }
  /* the top bar just carries the logo on phones */
  .bar .gsearch, .bar .nav { display: none !important; }
  main { padding-bottom: 130px; }
  body.has-player main { padding-bottom: 220px; }
  .player { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); left: 10px; right: 10px; border-radius: 14px; border: 1px solid var(--line); }
  .toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }
}

/* ---------- search page ---------- */
.searchpage { display: grid; gap: 14px; }
.bigsearch { position: relative; }
.bigsearch svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.bigsearch input { width: 100%; padding: 14px 14px 14px 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); color: var(--ink); font: 16px var(--body); }
.bigsearch input:focus { outline: none; border-color: var(--accent); }
#sresults { display: grid; gap: 28px; }
.browse { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.btile { position: relative; overflow: hidden; height: 96px; border-radius: 10px; padding: 12px; text-decoration: none; color: #fff;
  background: hsl(var(--h) 45% 32%); font: 800 16px/1.15 var(--display); }
.btile span { position: relative; z-index: 1; display: block; max-width: 70%; }
.btile img { position: absolute; right: -14px; bottom: -6px; width: 72px; height: 72px; object-fit: cover; border-radius: 4px; transform: rotate(22deg); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.art-card { flex: none; width: 112px; display: grid; gap: 8px; justify-items: center; text-align: center; text-decoration: none; font-weight: 600; font-size: 13px; }
.art-card img, .art-ph { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--faint); display: block; }
@media (max-width: 760px) { .browse { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* No visible scroll bars, on the page or in sideways shelves (scrolling still works). */
html, .shelf, .gresults { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .shelf::-webkit-scrollbar, .gresults::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---------- feel like an app, not a webpage ---------- */
html { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a, button, .tab, .sleeve, .chip, .gcard, img { -webkit-touch-callout: none; }
button, .tab, .tbtn, .favbtn, .ptab, .gcard, .sleeve { -webkit-user-select: none; user-select: none; }
.statusfill { display: none; }
@media (max-width: 760px) {
  /* no sticky top bar on phones: the logo sits at the top of Home and scrolls away */
  .bar { position: static; padding-top: env(safe-area-inset-top, 0px); }
  body:not(.on-home) .bar { display: none; }
  body:not(.on-home) main { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); }
  .crumbbar { display: none; }
  /* a blurred strip behind the clock/battery so content never clashes with it */
  .statusfill { display: block; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); z-index: 30;
    background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  /* iOS zooms into inputs under 16px; keep them at 16 */
  input, textarea, select { font-size: 16px !important; }
}

/* Tab bar v2: centred without transforms, and the shrink is a single scale animation (no width changes),
   so it moves in one smooth motion instead of sliding sideways first. */
@media (max-width: 760px) {
  .tabbar:not([hidden]) {
    left: 0; right: 0; margin: 0 auto; width: max-content;
    transform: none; transform-origin: 50% 100%;
    transition: transform .32s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
  }
  .tab { transition: background .2s; }
  .tab svg, .tab .tav { transition: transform .32s cubic-bezier(.2,.8,.2,1); }
  .tab > span:not(.tav) { transition: opacity .2s; }
  .tabbar.mini { transform: translateY(8px) scale(.8); bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); }
  .tabbar.mini .tab { width: 76px; height: 56px; }
  .tabbar.mini .tab > span:not(.tav) { opacity: 0; position: static; }
  .tabbar.mini .tab svg, .tabbar.mini .tab .tav { transform: translateY(7px) scale(1.1); }
  .tabbar.mini .tab .badge.dot { top: 6px; right: 16px; }
}

/* ---------- tracklist v2 (Spotify-style): equal rows, title + grey subline, whole row plays ---------- */
.tracks { background: none; border: 0; padding: 0; display: grid; gap: 2px; }
.track { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; height: 62px; padding: 0 8px 0 4px; border-radius: 8px; }
.track + .track { border-top: 0; border-radius: 8px; }
.track.canplay { cursor: pointer; }
.track.canplay:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.track.canplay:active { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.track .n { display: grid; place-items: center; font: 14px var(--mono); color: var(--muted); }
.track .eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.track .eq i { width: 3px; background: var(--spotify); border-radius: 1px; animation: eq 0.9s ease-in-out infinite; }
.track .eq i:nth-child(2) { animation-delay: -0.3s; } .track .eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.track.playing .num { display: none; } .track.playing .eq { display: flex; }
.track.playing { background: none; }
.track .tt { display: grid; gap: 3px; min-width: 0; }
.track .nm { font-size: 15.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.track.playing .nm { color: var(--spotify); font-weight: 600; }
.track .sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.favtag { color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.favtag svg { width: 11px; height: 11px; }
.track.isfav .nm::after { display: none; }
.track .d { display: none; }
/* one compact rounded group for ★ S A B C */
.seg { display: flex; gap: 0; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.seg .tbtn, .seg .favbtn { width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; font-size: 13.5px; color: var(--muted); }
.seg .tbtn:hover, .seg .favbtn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.seg .tbtn[aria-pressed="true"] { color: var(--tier-ink); }
.seg .favbtn { margin-right: 2px; }
.seg .favbtn svg { width: 15px; height: 15px; }
.seg .favbtn.on { color: #fff; background: var(--gold); }
@media (max-width: 760px) {
  .cols > section:first-child .sec-head { margin-bottom: -4px; }
  .seg .tbtn, .seg .favbtn { width: 28px; height: 30px; }
  .track { gap: 8px; grid-template-columns: 22px minmax(0, 1fr) auto; padding: 0 2px; }
}

/* ---------- player bar v2: compact, no dead space ---------- */
@media (max-width: 760px) {
  .player .pl-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 8px 10px; padding: 8px 10px; }
  .pl-now img { width: 42px; height: 42px; }
  .pl-ctl { grid-column: 2; grid-row: 1; }
  .pl-btns { gap: 6px; }
  .pl-b { width: 32px; height: 32px; }
  .pl-main { width: 36px; height: 36px; }
  .pl-right { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 10px; }
  .pl-rank { gap: 8px; }
  .pl-rank .eyebrow { font-size: 10px; }
  .player .seg .tbtn, .player .seg .favbtn { width: 30px; height: 28px; }
  body.has-player main { padding-bottom: 210px; }
}

/* ---------- now playing: island-style card pinned to the top on phones ---------- */
.pl-eq { display: none; }
@media (max-width: 760px) {
  .player {
    top: calc(env(safe-area-inset-top, 0px) + 6px); bottom: auto; left: 8px; right: 8px; z-index: 40;
    border-radius: 30px; border: 1px solid #ffffff14; background: #000; color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.45); padding: 0;
  }
  .player .pl-in {
    display: grid; padding: 12px 16px 12px; gap: 8px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "now now" "seek seek" "btns right";
  }
  .player .pl-now { grid-area: now; gap: 12px; color: #fff; }
  .player .pl-now img { width: 46px; height: 46px; border-radius: 10px; }
  .player .pl-t { font-size: 15.5px; color: #fff; }
  .player .pl-a { font-size: 12.5px; color: #ffffff99; }
  .player .pl-eq { display: flex; gap: 2px; align-items: center; height: 18px; margin-left: auto; padding-left: 8px; }
  .player .pl-eq i { width: 3px; border-radius: 2px; background: var(--spotify); animation: eq .9s ease-in-out infinite; }
  .player .pl-eq i:nth-child(2) { animation-delay: -.3s; } .player .pl-eq i:nth-child(3) { animation-delay: -.6s; } .player .pl-eq i:nth-child(4) { animation-delay: -.15s; }
  .player .pl-eq.paused i { animation: none; height: 4px; }
  .player .pl-ctl { display: contents; }
  .player .pl-seek { grid-area: seek; display: grid !important; grid-template-columns: 38px 1fr 42px; gap: 10px; color: #ffffff99; font-size: 11.5px; }
  .player .pl-seek .num:last-child { text-align: right; }
  .player .pl-track { height: 16px; background: linear-gradient(#ffffff33, #ffffff33) center / 100% 5px no-repeat; }
  .player .pl-track b { height: 5px; background: #ffffffd9; }
  .player .pl-btns { grid-area: btns; gap: 18px; justify-content: flex-start; padding-left: 2px; }
  .player .pl-b { color: #fff; width: 34px; height: 34px; }
  .player .pl-b svg { width: 24px; height: 24px; }
  .player .pl-main { background: transparent; color: #fff; width: 38px; height: 38px; }
  .player .pl-main svg { width: 30px; height: 30px; }
  .player .pl-right { grid-area: right; grid-column: auto; grid-row: auto; justify-content: flex-end; }
  .player .pl-rank .eyebrow { display: none; }
  .player .seg { background: #ffffff14; }
  .player .seg .tbtn, .player .seg .favbtn { color: #ffffffa6; width: 29px; height: 30px; }
  .player .seg .tbtn[aria-pressed="true"] { color: var(--tier-ink); }
  .player .seg .favbtn.on { color: #fff; }
  /* make room at the top of every page while it's showing */
  body.has-player main { padding-bottom: 130px; padding-top: calc(env(safe-area-inset-top, 0px) + 172px) !important; }
  body.has-player.on-home .bar { padding-top: calc(env(safe-area-inset-top, 0px) + 166px); }
  body.has-player.on-home main { padding-top: 28px !important; }
  .toast { z-index: 45; }
}

/* ---------- player gestures: tuck away / full screen ---------- */
.pl-grab, .pl-pill { display: none; }
@media (max-width: 760px) {
  .player { transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .25s, top .3s, border-radius .3s; touch-action: pan-x; }
  .player .pl-in { grid-template-areas: "now now" "seek seek" "btns right" "grab grab"; padding-bottom: 6px; }
  .player .pl-grab { display: block; grid-area: grab; justify-self: center; width: 36px; height: 4px; border-radius: 2px; background: #ffffff40; }
  /* only reserve space at the top while the card is showing */
  body.has-player:not(.player-card) main { padding-top: calc(env(safe-area-inset-top, 0px) + 12px) !important; }
  body.has-player.on-home:not(.player-card) main { padding-top: 28px !important; }
  body.has-player.on-home:not(.player-card) .bar { padding-top: env(safe-area-inset-top, 0px); }
  body.has-player.player-card main { padding-top: calc(env(safe-area-inset-top, 0px) + 182px) !important; }
  body.has-player.player-card.on-home main { padding-top: 28px !important; }
  body.has-player.player-card.on-home .bar { padding-top: calc(env(safe-area-inset-top, 0px) + 176px); }

  /* tucked away: slides up out of view, a small pill stays behind */
  .player.tucked { transform: translateY(calc(-100% - 40px)); opacity: 0; pointer-events: none; }
  .pl-pill:not([hidden]) {
    display: flex; align-items: center; gap: 8px; position: fixed; z-index: 41; left: 50%; transform: translateX(-50%);
    top: calc(env(safe-area-inset-top, 0px) + 6px); max-width: 60%; height: 30px; padding: 0 14px 0 10px; border-radius: 999px;
    background: #000; color: #fff; border: 1px solid #ffffff1f; font: 600 12.5px var(--body); box-shadow: 0 6px 18px rgba(0,0,0,.4);
  }
  .pl-pill span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pl-pill .pl-eq { display: flex; gap: 2px; align-items: center; height: 14px; }
  .pl-pill .pl-eq i { width: 2.5px; border-radius: 2px; background: var(--spotify); animation: eq .9s ease-in-out infinite; }
  .pl-pill .pl-eq i:nth-child(2) { animation-delay: -.3s; } .pl-pill .pl-eq i:nth-child(3) { animation-delay: -.6s; } .pl-pill .pl-eq i:nth-child(4) { animation-delay: -.15s; }
  .pl-pill .pl-eq.paused i { animation: none; height: 4px; }

  /* full screen Now Playing */
  .player.full { top: 0; left: 0; right: 0; bottom: 0; border-radius: 0; border: 0; overflow-y: auto; z-index: 50;
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); touch-action: pan-y; }
  .player.full .pl-in { grid-template-columns: 1fr; grid-template-areas: "grab" "now" "seek" "btns" "right"; gap: 26px; padding: 14px 24px 40px; }
  .player.full .pl-grab { width: 44px; height: 5px; margin-bottom: 6px; }
  .player.full .pl-now { display: grid; gap: 22px; }
  .player.full .pl-now img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
  .player.full .pl-t { font: 800 24px/1.15 var(--display); }
  .player.full .pl-a { font-size: 15px; white-space: normal; }
  .player.full .pl-eq { display: none; }
  .player.full .pl-seek { grid-template-columns: 1fr 1fr; grid-template-areas: "bar bar" "pos rem"; row-gap: 6px; font-size: 12.5px; }
  .player.full .pl-seek .pl-track { grid-area: bar; height: 22px; }
  .player.full .pl-seek #plPos { grid-area: pos; } .player.full .pl-seek #plRem { grid-area: rem; }
  .player.full .pl-btns { justify-content: center; gap: 46px; padding: 0; }
  .player.full .pl-b svg { width: 34px; height: 34px; }
  .player.full .pl-main { width: 64px; height: 64px; background: #fff; color: #000; border-radius: 50%; }
  .player.full .pl-main svg { width: 34px; height: 34px; }
  .player.full .pl-right { justify-content: center; }
  .player.full .seg { padding: 5px; border-radius: 14px; }
  .player.full .seg .tbtn, .player.full .seg .favbtn { width: 50px; height: 46px; font-size: 18px; border-radius: 10px; }
  .player.full .seg .favbtn svg { width: 20px; height: 20px; }
  body.player-full { overflow: hidden; }
  body.player-full .tabbar { display: none !important; }
}

/* ---------- search: genre "crates" (a record sliding out of its sleeve) ---------- */
.crates { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.crate { position: relative; display: block; height: 112px; overflow: hidden; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 32% 26%), hsl(var(--h) 38% 13%));
  border: 1px solid hsl(var(--h) 30% 32% / .6); }
.crate::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 0% 0%, #ffffff14, transparent 60%); pointer-events: none; }
.crate-txt { position: absolute; left: 14px; bottom: 12px; right: 112px; display: grid; gap: 3px; z-index: 3; }
.crate-name { font: 800 16px/1.12 var(--display); font-stretch: 100%; text-wrap: balance; }
.crate-count { font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #ffffffa6; }
.crate-art { position: absolute; right: 12px; top: 50%; width: 80px; height: 80px; transform: translateY(-50%); }
.crate .sleeve { position: absolute; inset: 0; width: 80px; height: 80px; object-fit: cover; border-radius: 3px; z-index: 2;
  box-shadow: -4px 4px 14px rgba(0,0,0,.5); }
.crate .disc { position: absolute; top: 3px; right: 22px; width: 74px; height: 74px; border-radius: 50%; z-index: 1; display: grid; place-items: center;
  background: radial-gradient(circle, transparent 0 13px, #0b0b0d 13.5px), repeating-radial-gradient(circle, #151517 0 1.5px, #0b0b0d 1.5px 3px);
  box-shadow: 0 0 0 1px #ffffff12, -3px 3px 10px rgba(0,0,0,.5);
  transition: right .45s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.crate .disc img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #0b0b0d; }
.crate .disc::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #0b0b0d; }
.crate:hover .disc, .crate:focus-visible .disc, .crate:active .disc { right: 40px; transform: rotate(200deg); }
@media (max-width: 760px) {
  .crates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crate { height: 128px; }
  .crate-txt { right: 12px; bottom: auto; top: 12px; }
  .crate-art { top: auto; bottom: 10px; transform: none; width: 64px; height: 64px; }
  .crate .sleeve { width: 64px; height: 64px; }
  .crate .disc { width: 60px; height: 60px; right: 18px; top: 2px; }
  .crate:hover .disc, .crate:active .disc { right: 32px; }
}
/* crates: pull the record further out of the sleeve so the label shows, plus a little vinyl sheen */
.crate .disc { right: 44px;
  background: conic-gradient(from 30deg, #ffffff00 0 40deg, #ffffff1c 60deg, #ffffff00 80deg 220deg, #ffffff14 240deg, #ffffff00 260deg),
    radial-gradient(circle, transparent 0 13px, #0b0b0d 13.5px), repeating-radial-gradient(circle, #19191c 0 1.5px, #0b0b0d 1.5px 3px); }
.crate:hover .disc, .crate:focus-visible .disc, .crate:active .disc { right: 58px; }
@media (max-width: 760px) {
  .crate .disc { right: 38px; }
  .crate .disc img { width: 22px; height: 22px; }
  .crate:hover .disc, .crate:active .disc { right: 50px; }
  .crate-art { right: 10px; }
}

/* ======================= iPhone app only ======================= */
.pvis { display: none; }
/* Profile card: picture + name side by side, then bio, Spotify, actions, centered stats */
.in-app .pcard { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px 14px; padding: 18px 16px; align-items: center; }
.in-app .pcard > .ava { width: 76px !important; height: 76px !important; font-size: 34px !important; grid-column: 1; grid-row: 1; }
.in-app .pinfo { display: contents; }
.in-app .phead { grid-column: 2; grid-row: 1; display: grid; gap: 3px; min-width: 0; }
.in-app .phead h1 { font-size: 24px; line-height: 1.1; letter-spacing: -.01em; }
.in-app .pmeta { font-size: 14px; }
.in-app .pvis-inline { display: none; }
.in-app .pvis { display: block; }
.in-app .pvis .vbadge { display: inline-block; font-size: 10.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.in-app .pbio { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 1.45; }
.in-app .pcard .splink { grid-column: 1 / -1; font-size: 14px; }
.in-app .pcard .pact { grid-column: 1 / -1; }
.in-app .pstats { grid-column: 1 / -1; margin-top: 2px; padding-top: 14px; width: 100%; justify-self: stretch; }
.in-app .pstats .stat { padding: 0 4px; }
.in-app .pstats .stat b { font-size: 30px; }
.in-app .pstats .stat span { font-size: 10px; letter-spacing: .06em; }
/* Album header: everything centered */
.in-app .ahero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
.in-app .ahero > img { max-width: 240px; }
.in-app .ainfo { justify-items: center; gap: 10px; width: 100%; }
.in-app .ainfo h1 { font-size: 30px; }
.in-app .artist-link { justify-self: center; }
.in-app .meta { justify-content: center; }
.in-app .playall { justify-self: center; }
.in-app .ainfo > div[style*="max-width:380px"] { width: 100%; max-width: 320px !important; justify-items: center; }
.in-app .picker { justify-content: center; }
.in-app .picker .eyebrow { width: 100%; text-align: center; margin: 0 0 2px !important; }
.in-app .ainfo > div[style*="max-width:380px"] { justify-items: stretch !important; text-align: center; }
.in-app .ainfo .prog { width: 100%; }
.pl-dev { display: none; }
@media (max-width: 760px) {
  .player .pl-now { flex-wrap: wrap; }
  .player .pl-dev { display: block; flex-basis: 100%; margin-top: -4px; font-size: 11.5px; font-weight: 600; color: var(--spotify); }
}

/* pressed feel: buttons dip as you touch them */
.tbtn, .favbtn, .pl-b, .playall, .btn, .tab, .crate, .gcard, .track.canplay { transition: transform .08s ease, background .15s; }
.tbtn:active, .favbtn:active, .pl-b:active, .playall:active, .btn:active { transform: scale(.88); }
.tab:active { transform: scale(.94); }
.crate:active, .gcard:active { transform: scale(.98); }
.track.canplay:active { transform: scale(.99); }

/* ---------- now playing card v2: no cover, compact ---------- */
@media (max-width: 760px) {
  .player:not(.full) .pl-now { flex-wrap: nowrap; gap: 10px; }
  .player:not(.full) .pl-now img { display: none; }
  .player:not(.full) .pl-now > div { flex: 1; min-width: 0; }
  .player:not(.full) .pl-dev { flex-basis: auto; margin: 0; }
  .player:not(.full) .pl-in { padding: 10px 14px 4px; gap: 6px 10px; }
  .player:not(.full) .pl-t { font-size: 15px; line-height: 1.25; }
  .player:not(.full) .pl-a { font-size: 12px; }
  .player:not(.full) .pl-seek { font-size: 10.5px; grid-template-columns: 34px 1fr 38px; gap: 8px; }
  .player:not(.full) .pl-track { height: 10px; background-size: 100% 3px; }
  .player:not(.full) .pl-track b { height: 3px; }
  .player:not(.full) .pl-btns { gap: 10px; }
  .player:not(.full) .pl-b { width: 32px; height: 32px; }
  .player:not(.full) .pl-b svg { width: 21px; height: 21px; }
  .player:not(.full) .pl-main { width: 34px; height: 34px; }
  .player:not(.full) .pl-main svg { width: 26px; height: 26px; }
  .player:not(.full) .seg .tbtn, .player:not(.full) .seg .favbtn { height: 28px; }
  .player:not(.full) .pl-grab { width: 30px; height: 3px; }
  /* less room reserved at the top now that the card is shorter */
  body.has-player.player-card main { padding-top: calc(env(safe-area-inset-top, 0px) + 150px) !important; }
  body.has-player.player-card.on-home .bar { padding-top: calc(env(safe-area-inset-top, 0px) + 144px); }
}
/* "Playing on …" sits under the song in the text block */
.player .pl-now > div .pl-dev { display: block; }

/* ---------- synced lyrics ---------- */
.pl-lyr.on { color: var(--spotify) !important; }
.lyrics { position: fixed; inset: 0; z-index: 60; background: #0b0b0e; color: #fff; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.ly-bg { position: absolute; inset: -40px; background: #1a1c24 center / cover no-repeat; filter: blur(48px) saturate(1.4) brightness(.45); transform: scale(1.1); }
.ly-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px 10px; max-width: 760px; width: 100%; margin: 0 auto; }
.ly-now { min-width: 0; }
.ly-now .t { font: 700 16px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ly-now .a { font-size: 13px; color: #ffffffa6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ly-close { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #ffffff1f; color: #fff; display: grid; place-items: center; cursor: pointer; }
.ly-close svg { width: 20px; height: 20px; }
.ly-scroll { position: relative; z-index: 1; overflow-y: auto; scrollbar-width: none; padding: 30vh 24px 45vh; max-width: 760px; width: 100%; margin: 0 auto;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); }
.ly-scroll::-webkit-scrollbar { display: none; }
.ly-lines { display: grid; gap: 18px; }
.ly-line { margin: 0; font: 800 clamp(24px, 4.2vw, 34px)/1.2 var(--display); font-stretch: 100%; letter-spacing: -.01em;
  color: #ffffff4d; cursor: pointer; transition: color .35s ease, transform .35s ease; transform-origin: left center; }
.ly-line.past { color: #ffffff33; }
.ly-line.on { color: #fff; transform: scale(1.02); }
.ly-line:hover { color: #ffffffb3; }
.ly-plain { font: 600 20px/1.6 var(--body); color: #ffffffd9; white-space: normal; }
.ly-msg { font: 700 20px var(--body); color: #ffffffb3; text-align: center; margin: 0; }
.ly-credit { margin: 36px 0 0; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #ffffff59; }
body.lyrics-open { overflow: hidden; }
body.lyrics-open .tabbar { display: none !important; }
/* the player card stays visible on top of the lyrics on phones so you can still control playback */
@media (max-width: 760px) { body.lyrics-open .player { z-index: 61; } body.lyrics-open .ly-scroll { padding-top: 34vh; } body.lyrics-open .ly-top { padding-top: calc(env(safe-area-inset-top, 0px) + 140px); } }
@media (min-width: 761px) { body.lyrics-open .player { z-index: 61; } }
@media (prefers-reduced-motion: reduce) { .ly-line { transition: none; } }

/* ---------- Home ---------- */
.hello h1 { font-size: clamp(26px, 5vw, 38px); }
.jb-card, .fr-card { flex: none; width: 150px; display: grid; gap: 3px; text-decoration: none; scroll-snap-align: start; }
.jb-card img { width: 150px; height: 150px; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); margin-bottom: 4px; }
.jb-card:hover .fav-song, .fr-card:hover .fav-song { color: var(--accent); }
.jb-prog { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font: 11px var(--mono); color: var(--muted); margin-top: 3px; }
.jb-prog .prog { height: 4px; }
.fr-art { position: relative; display: block; margin-bottom: 4px; }
.fr-art img:not(.ava) { width: 150px; height: 150px; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); display: block; }
.fr-art .ava { position: absolute; left: 6px; bottom: 6px; box-shadow: 0 0 0 2px var(--bg); }
.fr-art .tbadge { position: absolute; right: 6px; bottom: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
@media (max-width: 760px) {
  .jb-card, .fr-card { width: 132px; }
  .jb-card img, .fr-art img:not(.ava) { width: 132px; height: 132px; }
}

/* ---------- header: logo left, search centered, icons right (computer) ---------- */
@media (min-width: 761px) {
  .bar-in { display: grid; grid-template-columns: 1fr minmax(0, 480px) 1fr; }
  .bar .brand { justify-self: start; }
  .bar .gsearch { justify-self: stretch; max-width: none; }
  .bar .nav { justify-self: end; }
  .bar .sync { display: none; }
}

/* ---------- toast with an action ---------- */
.toast:not([hidden]) { display: flex; align-items: center; gap: 12px; }
.toast-act { border: 0; background: none; color: var(--accent); font: 700 13px var(--body); cursor: pointer; padding: 4px 0; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast-act { color: #2f4fd0; } }

/* ---------- playlists ---------- */
.plc { display: block; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface); }
.plc.mosaic { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.plc.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plc.empty { display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line); }
.plc.empty svg { width: 40%; height: 40%; }
.plc.empty.big { width: 150px; height: 150px; font: 300 46px var(--body); }
.pl-card { flex: none; width: 150px; display: grid; gap: 3px; text-decoration: none; scroll-snap-align: start; }
.pl-card > .plc { margin-bottom: 4px; box-shadow: var(--shadow); }
.pl-card.pl-new > .plc { box-shadow: none; }
.pl-card .fav-song .tbadge { width: 18px; height: 18px; font-size: 10px; vertical-align: 1px; }
.pl-card:hover .fav-song { color: var(--accent); }
.plhero > .plc { width: 100% !important; max-width: 260px; height: auto !important; aspect-ratio: 1; box-shadow: var(--shadow); }
.plrename { display: flex; gap: 8px; }
.track .n .tn { width: 30px; height: 30px; border-radius: 3px; object-fit: cover; display: block; }
.track.playing .n .tn { display: none; }
.rmbtn { padding: 6px 12px; font-size: 12.5px; }
@media (max-width: 760px) {
  .pl-card { width: 132px; }
  .plc.empty.big { width: 132px; height: 132px; }
  .pl-card > .plc:not(.big) { width: 132px !important; height: 132px !important; }
  .track:has(.tn) { grid-template-columns: 32px minmax(0, 1fr) auto; }
}
.in-app .plhero > .plc { max-width: 220px; }

/* add-to-playlist sheet */
.sheet:not([hidden]) { position: fixed; inset: 0; z-index: 70; display: grid; align-items: end; justify-items: center; }
.sh-back { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.sh-panel { position: relative; width: min(520px, 100%); max-height: 75vh; overflow-y: auto; background: var(--surface); border-radius: 18px 18px 0 0;
  border: 1px solid var(--line); padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 18px); display: grid; gap: 12px; }
@media (min-width: 761px) { .sheet:not([hidden]) { align-items: center; } .sh-panel { border-radius: 18px; } }
.sh-grab { width: 38px; height: 4px; border-radius: 2px; background: var(--faint); justify-self: center; }
.sh-head { display: flex; gap: 12px; align-items: center; }
.sh-head img { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.sh-head .t { font-weight: 700; } .sh-head .a { font-size: 13px; color: var(--muted); }
.sh-new { display: flex; gap: 8px; }
.sh-new .search { flex: 1; max-width: none; }
.sh-list { display: grid; gap: 2px; }
.sh-row { display: flex; gap: 12px; align-items: center; text-align: left; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
.sh-row:hover, .sh-row:active { background: var(--raise); }
.sh-row > span { display: grid; gap: 2px; min-width: 0; }
.sh-row .t { font-weight: 600; } .sh-row .a { font-size: 12.5px; color: var(--muted); }
body.sheet-open { overflow: hidden; }

/* playlist default cover: a little pile of records, first song's album on top */
.plc.stack { position: relative; display: block; background: transparent; overflow: visible; }
.plc.stack img { position: absolute; width: 78%; height: 78%; object-fit: cover; border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06); }
.plc.stack .s1 { left: 0; bottom: 0; transform: rotate(-3deg); z-index: 4; }
.plc.stack .s2 { left: 8%; bottom: 7%; transform: rotate(4deg); z-index: 3; }
.plc.stack .s3 { left: 15%; bottom: 14%; transform: rotate(-6deg); z-index: 2; }
.plc.stack .s4 { left: 22%; bottom: 22%; transform: rotate(7deg); z-index: 1; }
.plc.stack.n1 .s1 { width: 88%; height: 88%; left: 6%; bottom: 6%; transform: none; }
.plc.stack.n2 .s1 { left: 4%; bottom: 2%; } .plc.stack.n2 .s2 { left: 18%; bottom: 18%; }
.pl-card > .plc.stack, .plhero > .plc.stack { box-shadow: none; }
/* keep the tilted pile fully inside its square */
.plc.stack img { width: 72%; height: 72%; }
.plc.stack .s1 { left: 4%; bottom: 4%; }
.plc.stack .s2 { left: 10%; bottom: 10%; }
.plc.stack .s3 { left: 16%; bottom: 16%; }
.plc.stack .s4 { left: 22%; bottom: 22%; }
.plc.stack.n2 .s1 { left: 6%; bottom: 6%; } .plc.stack.n2 .s2 { left: 20%; bottom: 20%; }
.plc.stack.n1 .s1 { width: 86%; height: 86%; left: 7%; bottom: 7%; }
/* tight-knit pile (three records) */
.plc.stack img { width: 80%; height: 80%; }
.plc.stack .s1 { left: 5%; bottom: 5%; transform: rotate(-2deg); }
.plc.stack .s2 { left: 10%; bottom: 10%; transform: rotate(3deg); }
.plc.stack .s3 { left: 15%; bottom: 15%; transform: rotate(-4.5deg); }
.plc.stack.n2 .s1 { left: 6%; bottom: 6%; } .plc.stack.n2 .s2 { left: 14%; bottom: 14%; }
.shelf { padding-left: 6px; margin-left: -6px; }
/* pile: closer together side to side, back record nudged up and left */
.plc.stack .s1 { left: 6%; bottom: 5%; }
.plc.stack .s2 { left: 9%; bottom: 10%; }
.plc.stack .s3 { left: 11%; bottom: 16%; }
.plc.stack.n2 .s1 { left: 7%; bottom: 6%; } .plc.stack.n2 .s2 { left: 11%; bottom: 14%; }
.plc.stack .s2 { left: 12%; } .plc.stack.n2 .s2 { left: 14%; }
.plc.stack .s2 { left: 15%; } .plc.stack .s3 { left: 7%; } .plc.stack.n2 .s2 { left: 17%; }

/* ---------- sideways rows: soft fade + arrows ---------- */
.shelf { padding-left: 10px; margin-left: -10px; scroll-padding-left: 10px; }
.shelf-wrap { position: relative; }
.shelf-wrap .shelf {
  --fl: 0px; --fr: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.shelf-wrap.can-left .shelf { --fl: 56px; }
.shelf-wrap.can-right .shelf { --fr: 90px; }
.sh-arrow { position: absolute; top: 56px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--raise) 92%, transparent); color: var(--ink);
  box-shadow: 0 4px 14px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .1s; }
.sh-arrow svg { width: 22px; height: 22px; }
.sh-arrow.l { left: -8px; } .sh-arrow.r { right: -8px; }
.shelf-wrap.can-left .sh-arrow.l, .shelf-wrap.can-right .sh-arrow.r { opacity: 1; pointer-events: auto; }
.sh-arrow:hover { background: var(--raise); }
.sh-arrow:active { transform: scale(.9); }
@media (max-width: 760px) { .sh-arrow { top: 46px; width: 34px; height: 34px; } .sh-arrow.l { left: -4px; } .sh-arrow.r { right: -4px; } }
.shelf-wrap { min-width: 0; width: 100%; }
/* soft fade on the left edge too, even at the start of a row */
.shelf-wrap .shelf { --fl: 28px; }
.shelf-wrap.can-left .shelf { --fl: 64px; }
.shelf-wrap:not(.can-right) .shelf { --fr: 28px; }
.shelf-wrap.can-right .shelf { --fr: 90px; }
/* the left fade lives in the page margin, so the first album is never faded */
.shelf { padding-left: 30px; margin-left: -30px; scroll-padding-left: 30px; padding-right: 30px; margin-right: -30px; }
.shelf-wrap .shelf { --fl: 30px; }
.shelf-wrap.can-left .shelf { --fl: 80px; }
.shelf-wrap:not(.can-right) .shelf { --fr: 30px; }
.shelf-wrap.can-right .shelf { --fr: 110px; }
.sh-arrow.l { left: -14px; } .sh-arrow.r { right: -14px; }
@media (max-width: 760px) {
  .shelf { padding-left: 16px; margin-left: -16px; scroll-padding-left: 16px; padding-right: 16px; margin-right: -16px; }
  .shelf-wrap .shelf { --fl: 16px; }
  .shelf-wrap.can-left .shelf { --fl: 56px; }
  .shelf-wrap:not(.can-right) .shelf { --fr: 16px; }
  .shelf-wrap.can-right .shelf { --fr: 70px; }
  .sh-arrow.l { left: -6px; } .sh-arrow.r { right: -6px; }
}
.ahero { align-items: start; } .ahero > img, .ahero > .plc { margin-top: 4px; }
.addbtn { width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0; margin-right: 2px; }
.addbtn svg { width: 17px; height: 17px; }
.addbtn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.addbtn:active { transform: scale(.88); }
@media (max-width: 760px) { .seg .addbtn { width: 26px; height: 30px; margin-right: 0; } }

/* ---------- welcome tour ---------- */
.tour:not([hidden]) { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, #000 70%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tour-card { position: relative; width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 22px 20px; display: grid; gap: 12px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: tourIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes tourIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.tour-card h2 { font-size: 24px; }
.tour-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.tour-skip { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: var(--muted); font: 600 13px var(--body); cursor: pointer; }
.tour-art { height: 170px; display: grid; place-items: center; }
.tour-dots { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); transition: width .2s; }
.tour-dots span.on { width: 20px; border-radius: 4px; background: var(--accent); }
.tour-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.tour-nav .go { margin: 0; }
/* slide art */
.tour-disc { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; animation: spin 6s linear infinite;
  background: radial-gradient(circle, transparent 0 22px, #0b0b0d 22.5px), repeating-radial-gradient(circle, #1c1c20 0 2px, #0b0b0d 2px 4px);
  box-shadow: 0 0 0 1px #ffffff14, 0 14px 40px rgba(0,0,0,.5); }
.tour-disc span { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #111318 0 5px, #7d95ff 5.5px); }
@keyframes spin { to { transform: rotate(360deg); } }
.tour-demo { display: grid; gap: 12px; justify-items: center; }
.tour-song { font: 700 18px var(--body); }
.tour-demo .seg .tbtn, .tour-demo .seg .favbtn { width: 42px; height: 40px; font-size: 17px; }
.tour-hint { font: 500 12px var(--mono) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--accent) !important; }
.tour-tiers { display: grid; gap: 6px; width: 220px; }
.tour-row { display: flex; gap: 6px; align-items: center; }
.tour-row .tbadge { width: 30px; height: 30px; font-size: 15px; }
.tour-row i { width: 34px; height: 30px; border-radius: 4px; background: var(--faint); }
.tour-player { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 22px; background: #000; color: #fff; text-align: left; }
.tour-player small { display: block; color: #ffffff99; font-size: 12px; }
.tour-eq { display: flex; gap: 3px; align-items: center; height: 24px; }
.tour-eq i { width: 4px; border-radius: 2px; background: var(--spotify); animation: eq .9s ease-in-out infinite; }
.tour-eq i:nth-child(2) { animation-delay: -.3s; } .tour-eq i:nth-child(3) { animation-delay: -.6s; } .tour-eq i:nth-child(4) { animation-delay: -.15s; }
.tour-friends { display: flex; } .tour-friends .ava { box-shadow: 0 0 0 3px var(--surface); } .tour-friends .ava + .ava { margin-left: -12px; }
body.tour-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .tour-disc { animation: none; } }

/* ---------- getting started ---------- */
.start { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; gap: 12px; }
.start-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.start-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise);
  text-decoration: none; color: var(--ink); font: 600 14px var(--body); text-align: left; cursor: pointer; }
.start-item.ok { opacity: .55; cursor: default; }
.start-item.ok span:nth-child(2) { text-decoration: line-through; }
.start-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--faint); display: grid; place-items: center; font-size: 12px; flex: none; }
.start-check.ok { background: var(--tier-c); border-color: transparent; color: var(--tier-ink); }
.start-go { margin-left: auto; color: var(--muted); }

/* ---------- open catalogue ---------- */
.disco { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.disc-card { display: grid; gap: 3px; text-decoration: none; min-width: 0; }
.disc-art { position: relative; display: block; margin-bottom: 4px; }
.disc-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; background: var(--surface); box-shadow: var(--shadow); }
.disc-art .tbadge { position: absolute; right: 6px; bottom: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.disc-card .fav-song { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-card:hover .fav-song { color: var(--accent); }
.banner.noimg { min-height: 160px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, var(--surface)), var(--surface)); }
.banner.noimg::after { display: none; }
.banner.noimg .bt { color: var(--ink); } .banner.noimg h1 { color: var(--ink); } .banner.noimg .eyebrow, .banner.noimg .facts { color: var(--muted); }
.gall { border-top: 1px solid var(--line); margin-top: 4px; }
.gall-ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); font-weight: 700; flex: none; }
@media (max-width: 760px) { .disco { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.songres .prow { cursor: pointer; flex-wrap: nowrap; }
.songres .prow .pwho { min-width: 0; }
@keyframes flash { 0%, 100% { background: transparent; } 20%, 60% { background: color-mix(in srgb, var(--accent) 22%, transparent); } }
.track.flash { animation: flash 2.4s ease; }

/* ---------- listening parties ---------- */
.abtns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.partybtn { padding: 10px 16px; font-size: 14px; }
.live-pill { position: absolute; top: 6px; left: 6px; padding: 3px 7px; border-radius: 999px; background: var(--tier-s); color: #fff; font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tier-s); margin-right: 7px; vertical-align: 1px; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .35; } }
.party-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.party-card { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.party-card:hover { border-color: var(--muted); }
.party-art { position: relative; flex: none; }
.party-art img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; display: block; }
.party-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.party-txt .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.party-txt .a { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.party-host { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }

.party { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.party > #partyMain { display: grid; gap: 28px; min-width: 0; }
.phero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; }
.phero-art { position: relative; width: 220px; aspect-ratio: 1; }
.psleeve { position: relative; z-index: 1; width: 82%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); }
.pdisc { position: absolute; right: 0; top: 9%; width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, #0b0b0d 0 2px, #17181d 2px 4px); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.pdisc img { width: 38%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.pdisc.spin { animation: spin 3.2s linear infinite; }
.phero-info { display: grid; gap: 8px; min-width: 0; }
.phero-info h1 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.02; }
.pnow { display: grid; gap: 4px; margin-top: 6px; max-width: 420px; }
.pnow b { font-size: 18px; }
.pnow .muted { font-size: 13px; }
.ptrack { height: 4px; border-radius: 2px; background: var(--faint); overflow: hidden; margin-top: 6px; }
.ptrack b { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s linear; }
.ptimes { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--muted); }
.pbtns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.pctl { display: flex; align-items: center; gap: 6px; margin-right: 6px; }
.prate { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.prate-t { font-weight: 700; }
.proom { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.proom-p { display: grid; justify-items: center; gap: 5px; width: 58px; }
.proom-n { font-size: 12px; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbadge.none { background: var(--raise); color: var(--muted); }
.ptracks { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.ptr { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 40px; padding: 4px 8px; border-radius: 8px; }
.ptr .n { font: 13px var(--mono); color: var(--muted); text-align: center; }
.ptr .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptr.past .nm { color: var(--muted); }
.ptr.now { background: var(--raise); }
.ptr.now .nm { font-weight: 700; color: var(--spotify, var(--accent)); }
.ptr .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.ptr .eq i { width: 3px; background: var(--spotify, var(--accent)); border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.ptr .eq i:nth-child(2) { animation-delay: -.3s; } .ptr .eq i:nth-child(3) { animation-delay: -.6s; }
.pt-rings { display: flex; }
.pt-ava { border-radius: 50%; box-shadow: 0 0 0 2px var(--ring); margin-left: 4px; display: inline-flex; }

.pchat { position: sticky; top: 80px; display: grid; gap: 10px; }
.preacts { display: flex; gap: 6px; flex-wrap: wrap; }
.preact { font-size: 22px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .12s; }
.preact:active { transform: scale(.88); }
.pmsgs { display: grid; align-content: start; gap: 8px; height: min(52vh, 460px); overflow-y: auto; scrollbar-width: none; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.pchat-empty { color: var(--muted); text-align: center; padding: 30px 10px; font-size: 14px; }
.pchat-song { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); text-align: center; padding: 8px 0 2px; }
.pmsg { display: flex; gap: 8px; align-items: flex-start; }
.pm-body { display: grid; gap: 2px; padding: 7px 11px; border-radius: 14px; background: var(--raise); max-width: 85%; }
.pmsg.me .pm-body { background: color-mix(in srgb, var(--accent) 22%, var(--raise)); }
.pm-name { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pm-text { font-size: 14px; overflow-wrap: anywhere; }
.pm-react { font-size: 24px; line-height: 22px; }
.pform { display: flex; gap: 8px; }
.pform input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 16px var(--body); }
#partyFx { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.pfloat { position: absolute; bottom: 90px; font-size: 38px; animation: pfloat 2.6s ease-out forwards; }
@keyframes pfloat { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translate(0, -30px) scale(1.1); } 100% { transform: translate(var(--drift), -60vh) scale(1); opacity: 0; } }

@media (max-width: 860px) {
  .party { grid-template-columns: minmax(0, 1fr); }
  .pchat { position: static; }
}
@media (max-width: 600px) {
  .phero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 18px; }
  .phero-art { width: min(230px, 64vw); }
  .phero-info { justify-items: center; }
  .pnow { width: 100%; }
  .pbtns { justify-content: center; }
  .prate { justify-content: center; text-align: center; }
  .proom { justify-content: center; }
  .pmsgs { height: 44vh; }
}

/* ---------- player: play/pause centred over the seek bar, extras either side ---------- */
@media (min-width: 761px) {
  .pl-ctl { justify-items: stretch; }
  .pl-btns { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); gap: 14px; }
  .pl-x { display: flex; gap: 10px; align-items: center; }
  .pl-x.l { justify-content: flex-end; }
  .pl-x.r { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .pl-x { display: contents; }
  .pl-x > * { order: 1; }
  .player:not(.full) .pl-party, .player:not(.full) .pl-queue { display: none; }
}
.pl-party.on { color: var(--accent) !important; }

/* ⋮ song menu button (after the tiers) */
.addbtn.more { margin: 0 0 0 2px; }
@media (max-width: 760px) { .seg .addbtn.more { width: 24px; margin: 0; } }

/* song menu & queue sheet */
.sh-label { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 14px 4px 6px; }
.sh-title { margin: 4px 4px 4px; font-size: 22px; }
.sh-act { width: 100%; margin-top: 10px; }
.sh-ico { width: 44px; height: 44px; border-radius: 8px; display: grid !important; place-items: center; background: var(--raise); flex: none; }
.sh-ico svg { width: 22px; height: 22px; color: var(--ink); }
.q-row { cursor: default; }
.q-row img { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; flex: none; }
.q-row > span:not(.q-dur) { flex: 1; }
.q-row .t, .q-row .a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-dur { font-size: 12px; color: var(--muted); }

/* ⋮ dropdown */
.dmenu { position: absolute; z-index: 70; width: 232px; padding: 6px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0,0,0,.4); display: grid; gap: 2px; animation: dmIn .12s ease-out; }
@keyframes dmIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.dm-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 14px var(--body); text-align: left; cursor: pointer; }
.dm-item:hover, .dm-item:focus-visible { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.dm-item > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.dm-item > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-item .plc { width: 26px; height: 26px; border-radius: 4px; flex: none; }
.dm-chev { margin-left: auto; }
.dm-back { font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.dm-new { display: flex; gap: 6px; padding: 2px 4px 6px; }
.dm-new input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 16px var(--body); }
.dm-new button { width: 34px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; }
.dm-new button svg { width: 18px; height: 18px; }
.dm-scroll { max-height: 240px; overflow-y: auto; scrollbar-width: none; display: grid; gap: 2px; }
.addbtn.more.open { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.dmenu, .dmenu * { box-sizing: border-box; }
.dm-new input { width: 100%; }
.dm-new button { flex: none; height: 32px; }
.pfeed { display: flex; align-items: center; gap: 10px; padding: 6px 4px; animation: dmIn .2s ease-out; }
.pf-txt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.pf-txt b { font-weight: 700; }
.pf-txt svg { width: 14px; height: 14px; color: #e7c65a; vertical-align: -2px; }
.pfeed .tbadge { width: 24px; height: 24px; font-size: 13px; flex: none; }
.pf-ago { font-size: 11.5px; color: var(--muted); flex: none; white-space: nowrap; }
.inv-row { cursor: default; }
.inv-row > span:not(.ava) { flex: 1; }
.inv-row > .ava { flex: none !important; }
.inv-done { font-size: 13px; color: var(--muted); font-weight: 600; }
.pbtns .btn svg { width: 16px; height: 16px; }
