:root {
  --bg: #ffffff;
  --bg-2: #f3f3f3;
  --bg-3: #ebebeb;
  --line: #ececec;
  --text: #191919;
  --text-2: #7e7e7e;
  --text-3: #a8a8a8;
  --dot: #d6d6d6;
  --r: 18px;
  --r-sm: 10px;
  --shadow: 0 0 1px rgba(0,0,0,.25), 0 8px 30px rgba(0,0,0,.10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --cols: 28px 48px minmax(180px, 1.6fr) minmax(120px, 1fr) 64px repeat(7, 46px) 84px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); letter-spacing: -0.03em; -webkit-font-smoothing: antialiased; }
body { padding-bottom: 120px; }
body:has(.login) { padding-bottom: 0; } /* the sign-in page has no player bar to leave room for */
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 18px; height: 18px; flex: none; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30; height: 68px; display: flex; align-items: center; gap: 20px;
  padding: 0 28px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 19px; width: auto; }
.brand span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); padding-top: 3px; }
.search { flex: 1; max-width: 460px; margin: 0 auto; position: relative; }
.search input {
  width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2);
  padding: 0 16px 0 40px; outline: none; transition: background .15s, border-color .15s;
}
.search input:focus { background: #fff; border-color: #cfcfcb; }
.search svg { position: absolute; left: 14px; top: 11px; color: var(--text-3); }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.btn {
  height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 550; white-space: nowrap; transition: background .15s, transform .1s, opacity .15s; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn.dark { background: var(--text); color: #fff; }
.btn.dark:hover { background: #2b2b2b; }
.btn.light { background: var(--bg-2); }
.btn.light:hover { background: var(--bg-3); }
.btn.ghost:hover { background: var(--bg-2); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 999px; display: inline-grid; place-items: center; color: var(--text-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--bg-2); color: var(--text); }
.icon-btn.on { color: var(--text); }

.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: 44px; min-width: 210px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 40;
}
.menu.open .menu-pop { display: block; }
.menu-pop button, .menu-pop .mi { width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; display: flex; gap: 10px; align-items: center; }
.menu-pop button:hover { background: var(--bg-2); }
.menu-pop .mi { color: var(--text-2); font-size: 12px; }

/* ---------- page ---------- */
main { max-width: 1380px; margin: 0 auto; padding: 28px 28px 40px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 8px 0 28px; }
h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.025em; font-weight: 650; margin: 0; }
.sub { color: var(--text-2); margin-top: 10px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; margin-bottom: 18px; }
.back:hover { color: var(--text); }
.section-title { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; margin: 40px 0 14px; }

/* artist strip */
.artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 30px; }
.artist-card {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--r);
  background: var(--bg-2); transition: background .15s, transform .15s; text-align: left;
}
.artist-card:hover { background: var(--bg-3); }
.artist-card b { display: block; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; } /* long names wrap instead of "Obed Pa…" */
.artist-card small { color: var(--text-2); font-size: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 999px; flex: none; background-size: cover; background-position: center; overflow: hidden; display: grid; place-items: center; font-weight: 600; color: rgba(0,0,0,.55); }
.avatar.xl { width: 112px; height: 112px; font-size: 32px; }

/* toolbar */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.tabs { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px; }
.tabs button { height: 32px; padding: 0 16px; border-radius: 999px; color: var(--text-2); font-weight: 550; }
.tabs button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.chip:hover { border-color: #cfcfcb; color: var(--text); }
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }
.spacer { flex: 1; }
.select { height: 32px; border-radius: 999px; border: 1px solid var(--line); padding: 0 30px 0 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23777' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: 13px; color: var(--text-2); }
.count { color: var(--text-3); font-size: 13px; }

/* ---------- track table ---------- */
.table { border-top: 1px solid var(--line); }
.thead, .row { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 0 10px; }
.thead { position: sticky; top: 68px; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); height: 40px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; }
.thead .col { text-align: center; cursor: pointer; border-radius: 6px; padding: 4px 0; }
.thead .col:hover { color: var(--text); }
.thead .col.on { color: var(--text); }
.row { min-height: 64px; padding: 8px 0; border-bottom: 1px solid var(--line); position: relative; }
.row:hover, .row.open { background: var(--bg-2); }
.row.playing .t-title { font-weight: 650; }
.cb { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #cdcdc9; display: grid; place-items: center; background: #fff; transition: all .12s; }
.cb svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.cb.on { background: var(--text); border-color: var(--text); }
.cb.on svg { opacity: 1; }
.cb.part { background: var(--text); border-color: var(--text); }
.cb.part::after { content: ""; width: 8px; height: 2px; background: #fff; border-radius: 2px; }
.cb.part svg { display: none; }
.row .cb { opacity: .0; }
.row:hover .cb, .row .cb.on, .has-sel .row .cb { opacity: 1; }

.art { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; position: relative; background: var(--bg-3); flex: none; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art .ov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.36); color: #fff; opacity: 0; transition: opacity .15s; }
.row:hover .art .ov, .row.playing .art .ov { opacity: 1; }
.t-title { font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub a:hover, .t-rel a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.t-rel { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-dur { color: var(--text-2); font-size: 13px; text-align: right; }
.t-no { color: var(--text-3); font-size: 12px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.ck { display: grid; place-items: center; }
.ck i { width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; background: var(--text); color: #fff; }
.ck i svg { width: 12px; height: 12px; }
.ck i.half { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.ck .no { width: 5px; height: 5px; border-radius: 9px; background: var(--dot); }
.acts { display: flex; justify-content: flex-end; padding-right: 6px; gap: 2px; }
.chev { transition: transform .2s; }
.row.open .chev { transform: rotate(180deg); }
.badges { display: none; }

.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.bars span { width: 3px; background: #fff; border-radius: 2px; animation: bar 1s ease-in-out infinite; }
.bars span:nth-child(2) { animation-delay: -.3s; } .bars span:nth-child(3) { animation-delay: -.6s; }
.paused .bars span { animation-play-state: paused; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* drawer */
.drawer { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 4px 18px 22px 96px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; animation: drop .18s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.drawer h4 { margin: 14px 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.flist { display: flex; flex-direction: column; gap: 2px; }
.fi { display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 9px; }
.fi:hover { background: #fff; }
.fi.cur { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.fi .nm { min-width: 0; }
.fi .nm b { font-weight: 560; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.fi .nm small { color: var(--text-2); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi .sz { color: var(--text-3); font-size: 12px; }
.fi .icon-btn { width: 30px; height: 30px; }
.stemset { border-radius: 12px; background: #fff; padding: 4px; margin-bottom: 8px; }
.stemset > header { display: flex; align-items: center; gap: 8px; padding: 6px 8px 4px; font-size: 13px; }
.stemset > header b { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stemset > header small { color: var(--text-3); }
.stemset .fi:hover { background: var(--bg-2); }
.stemset.closed .flist { display: none; }
.lyrics { background: #fff; border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; font-size: 13px; line-height: 1.6; max-height: 260px; overflow: auto; color: #333; }
.thumbrow { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbrow .art { width: 92px; height: 92px; border-radius: 10px; }
.drawer-foot { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }

/* ---------- release grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 28px 20px; }
.rcard { display: block; }
.rcard .cover { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; position: relative; background: var(--bg-3); box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: transform .25s, box-shadow .25s; }
.rcard:hover .cover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.rcard .cover img { width: 100%; height: 100%; object-fit: cover; }
.rcard .play { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 999px; background: #fff; color: var(--text); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.18); opacity: 0; transform: translateY(6px); transition: all .2s; }
.rcard:hover .play { opacity: 1; transform: none; }
.rcard b { display: block; margin-top: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard small { color: var(--text-2); font-size: 13px; }
.ph { width: 100%; height: 100%; display: grid; place-items: end start; padding: 12px; }
.ph span { font-size: 12px; font-weight: 600; color: rgba(0,0,0,.5); line-height: 1.2; max-width: 90%; }

/* hero for release/artist pages */
.hero { display: flex; gap: 32px; align-items: flex-end; margin: 6px 0 34px; }
.hero .cover { width: 232px; height: 232px; border-radius: 18px; overflow: hidden; flex: none; background: var(--bg-3); box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.hero h1 { font-size: 46px; }
.hero .by { font-size: 17px; margin-top: 8px; font-weight: 500; }
.hero .by a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero .actions { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.docs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- player ---------- */
.player {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; height: 80px; background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: minmax(200px, 300px) auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 0 18px 0 12px;
  transform: translateY(130%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.player.on { transform: none; }
.p-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-meta .art { width: 56px; height: 56px; border-radius: 10px; }
.p-meta .txt { min-width: 0; }
.p-meta b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-meta small { color: var(--text-2); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-ctrl { display: flex; align-items: center; gap: 4px; }
.p-play { width: 44px; height: 44px; border-radius: 999px; background: var(--text); color: #fff; display: grid; place-items: center; transition: transform .1s; }
.p-play:active { transform: scale(.94); }
.p-wave { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-wave .tm { color: var(--text-2); font-size: 12px; width: 40px; flex: none; }
.p-wave .tm.r { text-align: right; }
.wave { flex: 1; height: 44px; position: relative; cursor: pointer; min-width: 60px; }
.wave canvas { width: 100%; height: 100%; display: block; }
.wave .hover { position: absolute; top: -26px; transform: translateX(-50%); background: var(--text); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 6px; pointer-events: none; display: none; }
.wave:hover .hover { display: block; }
.p-side { display: flex; align-items: center; gap: 6px; }
.versions { display: flex; gap: 4px; }
.vpill { height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.vpill:hover { color: var(--text); border-color: #cfcfcb; }
.vpill.on { background: var(--text); color: #fff; border-color: var(--text); }
.vol { width: 84px; accent-color: var(--text); }

/* selection bar */
.selbar {
  position: fixed; left: 50%; bottom: 104px; z-index: 45; transform: translate(-50%, 160%); opacity: 0; transition: all .3s cubic-bezier(.2,.8,.2,1);
  background: var(--text); color: #fff; border-radius: 999px; padding: 6px 6px 6px 22px; display: flex; align-items: center; gap: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.selbar.on { transform: translate(-50%, 0); opacity: 1; }
.selbar.low { bottom: 20px; }
.selbar .btn { height: 36px; }
.selbar .btn.light { background: rgba(255,255,255,.14); color: #fff; }
.selbar .btn.light:hover { background: rgba(255,255,255,.22); }
.selbar .btn.white { background: #fff; color: var(--text); }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(20,20,20,.28); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 100%); background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.25); padding: 26px; max-height: calc(100vh - 40px); overflow: auto; animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.modal h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.01em; }
.modal .lead { color: var(--text-2); margin: 0 0 18px; }
.opts { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.opt { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt:hover { background: var(--bg-2); }
.opt .lbl { flex: 1; font-weight: 550; }
.opt .meta { color: var(--text-2); font-size: 13px; }
.total { display: flex; justify-content: space-between; margin: 16px 2px 6px; font-weight: 600; }
.note { font-size: 13px; color: var(--text-2); background: var(--bg-2); border-radius: 12px; padding: 12px 14px; margin-top: 14px; line-height: 1.5; }
.note.warn { background: #fff6e5; color: #6b4b00; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.input { height: 42px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; outline: none; background: #fff; width: 100%; }
.input:focus { border-color: #bdbdb8; box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.seg button.on { background: var(--text); border-color: var(--text); color: #fff; }
.linkbox { display: flex; gap: 8px; margin-top: 6px; }
.linkbox input { flex: 1; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* downloads tray + toasts */
.tray { position: fixed; left: 20px; bottom: 104px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: 320px; }
.dl { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 13px; }
.dl b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl .bar { height: 4px; border-radius: 4px; background: var(--bg-3); margin: 8px 0 6px; overflow: hidden; }
.dl .bar i { display: block; height: 100%; background: var(--text); width: 0; transition: width .4s; }
.dl small { color: var(--text-2); }
.toasts { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: pop .2s; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; background:
  radial-gradient(60% 50% at 15% 10%, #f3efe8 0%, transparent 60%), radial-gradient(50% 50% at 90% 95%, #ebeef3 0%, transparent 60%), #fbfbfa; }
.login-card { width: min(400px, 100%); text-align: center; }
.login-card img { height: 30px; margin: 0 auto 14px; }
.login-card p { color: var(--text-2); margin: 0 0 30px; }
.login-card form { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 10px 30px rgba(0,0,0,.07); border: 1px solid var(--line); }
.login-card input { flex: 1; border: 0; outline: none; padding: 0 16px; background: transparent; min-width: 0; }
.login-card .err { color: #b3261e; font-size: 13px; margin-top: 14px; min-height: 20px; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

footer.foot { max-width: 1380px; margin: 40px auto 0; padding: 24px 28px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.foot a:hover { color: var(--text); }
.empty { padding: 80px 0; text-align: center; color: var(--text-2); }
.skeleton { height: 64px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fff, var(--bg-2), #fff); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --cols: 28px 48px minmax(150px, 1.6fr) minmax(100px, 1fr) 50px repeat(7, 38px) 72px; }
}
@media (max-width: 860px) {
  :root { --cols: 0 48px minmax(0, 1fr) 46px 72px; }
  .top { padding: 0 16px; gap: 10px; }
  .brand span, .top-actions .btn span { display: none; }
  main { padding: 18px 16px 40px; }
  h1, .hero h1 { font-size: 32px; }
  .row > .t-rel, .row > .ck { display: none; }
  .badges { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
  .badges span { font-size: 10px; font-weight: 600; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; background: var(--bg-3); color: var(--text-2); }
  .drawer { grid-template-columns: minmax(0, 1fr); padding: 4px 12px 18px; gap: 6px; }
  .drawer-foot { flex-wrap: wrap; row-gap: 8px; }
  .drawer-foot .btn.sm { max-width: 100%; white-space: normal; text-wrap: balance; line-height: 1.3; height: auto; min-height: 34px; padding-top: 7px; padding-bottom: 7px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero .cover { width: 180px; height: 180px; }
  .selbar { bottom: 140px; width: calc(100% - 24px); justify-content: space-between; }
  .tray { left: 12px; right: 12px; width: auto; bottom: 140px; }
}


/* ======================================================================
   untitled-inspired finish: soft gray squircles, medium-weight type,
   no row dividers, dark frosted player pill, vinyl on release pages.
   ====================================================================== */
h1 { font-weight: 500; letter-spacing: -0.035em; font-size: 34px; }
.hero h1 { font-size: 34px; }
.sub { font-size: 14px; }
.t-title { font-weight: 500; }
.t-sub, .t-rel, .t-dur { font-size: 13px; }
.t-dur { font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--text-2); }
.btn { border-radius: 14px; font-weight: 500; height: 40px; }
.btn.sm { border-radius: 12px; height: 34px; }
.btn.light { background: var(--bg-2); }
.btn.light:hover { background: var(--bg-3); }
.icon-btn { width: 40px; height: 40px; border-radius: 16px; color: var(--text); }
.top .icon-btn, .top .btn.light { background: var(--bg-2); }
.top .icon-btn:hover, .top .btn.light:hover { background: var(--bg-3); }
.acts .icon-btn, .fi .icon-btn { color: var(--text-2); }
.acts .icon-btn:hover, .fi .icon-btn:hover { color: var(--text); background: rgba(26,26,26,.06); }
.search input { border: 0; border-radius: 14px; height: 40px; }
.search input:focus { background: var(--bg-3); }
.brand span { letter-spacing: .12em; }
.artist-card { border-radius: 16px; }
.avatar { border-radius: 999px; }
.tabs { border-radius: 14px; }
.tabs button { border-radius: 11px; }
.chip { border: 0; background: var(--bg-2); border-radius: 12px; color: var(--text); }
.chip:hover { background: var(--bg-3); }
.chip.on { background: var(--text); color: #fff; }
.select { border: 0; background-color: var(--bg-2); border-radius: 12px; color: var(--text); }

.table { border-top: 0; }
.thead { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.row { border-bottom: 0; border-radius: 14px; cursor: pointer; padding: 6px 0; min-height: 62px; }
.row:hover, .row.open { background: var(--bg-2); }
.row.open { border-radius: 14px 14px 0 0; }
.art { border-radius: 10px; }
.drawer { border-bottom: 0; border-radius: 0 0 16px 16px; margin-bottom: 8px; }
.drawer-foot { border-top-color: rgba(0,0,0,.06); }
.fi:hover, .stemset, .lyrics { background: #fff; }
.ck i { width: 18px; height: 18px; }
.ck i svg { width: 11px; height: 11px; }

.rcard .cover { border-radius: 18px; box-shadow: none; }
.rcard:hover .cover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.10); }
.rcard .play { width: 34px; height: 34px; border-radius: 11px; background: var(--text); color: #fff; opacity: 1; transform: none; right: 8px; bottom: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.rcard .play:hover { background: #000; transform: scale(1.06); }
.rcard .play svg { width: 15px; height: 15px; }
.rcard b { font-weight: 500; font-size: 14px; }

/* release hero with a record that slides out while it plays */
.cover-wrap { position: relative; width: 232px; height: 232px; flex: none; }
.cover-wrap .cover { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.vinyl { position: absolute; z-index: 1; top: 4%; left: 4%; width: 92%; height: 92%; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.vinyl .disc { width: 100%; height: 100%; border-radius: 50%; background:
  radial-gradient(circle, transparent 0 17%, rgba(255,255,255,.05) 17.5% 18%, transparent 18.5%),
  repeating-radial-gradient(circle, #151515 0 1.5px, #0b0b0b 1.5px 3px); box-shadow: 0 6px 24px rgba(0,0,0,.25); position: relative; }
.vinyl .label { position: absolute; inset: 33%; border-radius: 50%; background-size: cover; background-position: center; }
.vinyl .label::after { content: ""; position: absolute; inset: 44%; border-radius: 50%; background: #fff; }
.cover-wrap.spinning .vinyl { transform: translateX(44%); }
.cover-wrap.spinning .disc { animation: spin 3.2s linear infinite; }
.cover-wrap.spinning.paused .disc { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero { gap: 28px; }
.hero .cover-wrap.spinning + div { margin-left: 92px; transition: margin .9s cubic-bezier(.2,.8,.2,1); }
.hero .cover-wrap + div { transition: margin .9s cubic-bezier(.2,.8,.2,1); }

/* dark frosted player pill */
.player {
  left: 50%; right: auto; bottom: 18px; width: min(1040px, calc(100% - 24px)); height: 64px;
  transform: translate(-50%, 160%); background: rgba(2,2,2,.82); color: #fff; border: 0; border-radius: 999px;
  backdrop-filter: blur(27px); -webkit-backdrop-filter: blur(27px);
  box-shadow: 0 0 1px rgba(0,0,0,.4), 0 0 1.5px rgba(0,0,0,.3), 0 7px 22px rgba(0,0,0,.25);
  grid-template-columns: minmax(140px, 230px) minmax(0, 1fr) auto auto auto; gap: 14px; padding: 0 12px 0 10px;
}
.player.on { transform: translate(-50%, 0); }
.p-meta .art { width: 44px; height: 44px; border-radius: 999px; background: #222; }
.p-meta .art::after { content: ""; position: absolute; inset: 42%; border-radius: 50%; background: rgba(2,2,2,.82); }
.player.playing .p-meta .art img, .player.playing .p-meta .art .ph { animation: spin 6s linear infinite; }
.p-meta b { font-weight: 500; font-size: 14px; }
.p-meta small, .p-meta small .faint { color: rgba(255,255,255,.55); font-size: 12px; }
.p-time { font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: #fff; white-space: nowrap; }
.p-time .sep { color: rgba(255,255,255,.4); margin: 0 4px; }
.player .icon-btn { color: rgba(255,255,255,.75); width: 36px; height: 36px; border-radius: 12px; background: transparent; }
.player .icon-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.p-play { width: 40px; height: 40px; border-radius: 14px; background: #fff; color: #050505; }
.p-play svg { width: 16px; height: 16px; }
.wave { height: 36px; }
.wave .hover { background: #fff; color: #000; font-family: var(--mono); letter-spacing: 0; }
.vpill { border: 0; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); border-radius: 10px; height: 28px; }
.vpill:hover { color: #fff; background: rgba(255,255,255,.16); }
.vpill.on { background: #fff; color: #050505; }
.vol { accent-color: #fff; width: 76px; }
.selbar { bottom: 96px; border-radius: 18px; padding: 6px 6px 6px 20px; }
.selbar .btn { border-radius: 12px; }
.modal { border-radius: 24px; }
.opts, .note, .input { border-radius: 14px; }

@media (max-width: 860px) {
  .row { border-radius: 12px; }
  .cover-wrap { width: 180px; height: 180px; }
  .hero .cover-wrap.spinning + div { margin-left: 0; }
  .selbar { bottom: 120px; }
}

/* ---------- checkboxes: inset from the row's rounded edge, bigger tap area ---------- */
.thead, .row { padding-left: 10px; }
.cb { position: relative; flex: none; }
.cb::before { content: ""; position: absolute; inset: -11px; }   /* easier to hit; looks the same */
.drawer { padding-left: 106px; }
.m-dur { display: none; }

/* ---------- password boxes: eye button; field and button share one height and corner ---------- */
.pw { position: relative; display: block; flex: 1; min-width: 0; }
.pw input { width: 100%; padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); }
.pw-eye:hover { color: var(--text); background: rgba(22,22,22,.06); }
.pw-eye svg { width: 19px; height: 19px; }
.login-card form { gap: 8px; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.login-card .pw input { height: 46px; border-radius: 13px; background: rgba(22,22,22,.06); padding: 0 46px 0 14px; font-size: 15px; transition: background .2s, box-shadow .2s; }
.login-card .pw input:focus { background: rgba(22,22,22,.08); box-shadow: 0 0 0 3px rgba(22,22,22,.06); }
.login-card .btn { height: 46px; border-radius: 13px; padding: 0 20px; flex: none; }

@media (max-width: 860px) {
  /* phones: checkbox · art · title (time moves under it) · actions */
  :root { --cols: 22px 44px minmax(0, 1fr) 64px; }
  .thead, .row { gap: 0 8px; padding-left: 8px; }
  .thead { display: grid; height: 38px; }
  .thead > :nth-child(n+4) { display: none; }
  .row > .t-dur { display: none; }
  .row .art { width: 44px; height: 44px; }
  .row .cb, .thead .cb { width: 20px; height: 20px; opacity: 1; }
  .m-dur { display: inline; }
  .drawer { padding: 4px 12px 18px; }
}

/* loading spinner: shown from the click until sound starts */
.spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.p-play .spin { width: 15px; height: 15px; }
.sel-txt { white-space: nowrap; }
@media (max-width: 860px) { .sel-x { display: none; } .selbar { gap: 8px; padding-left: 16px; } }
@media (max-width: 860px) {
  /* phones: Share and Clear become round icon buttons so the bar fits beside the text */
  .selbar .sel-lbl { display: none; }
  .selbar .btn.light { width: 36px; padding: 0; justify-content: center; flex: none; }
  .selbar .btn.white { padding: 0 14px; }
}

/* ---------- toolbar: tabs · filters · count · sort on one row (filters scroll sideways if they don't fit) ---------- */
.toolbar { flex-wrap: nowrap; gap: 10px; }
.toolbar .tabs { flex: none; }
.toolbar .chips { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-padding: 0 12px; }
.toolbar .chips::-webkit-scrollbar { display: none; }
.toolbar .chip { flex: none; }
.toolbar .count { margin-left: auto; flex: none; white-space: nowrap; }
.toolbar .select { flex: none; }
@media (max-width: 860px) {
  .toolbar { flex-wrap: wrap; row-gap: 10px; }
  .toolbar .tabs button { padding: 0 14px; }
  .toolbar .chips { order: 10; flex: 1 1 100%; margin: 0 -16px; padding: 0 16px; }
}
/* phones: two tidy rows, never a lone sort menu.
   Row 1: tabs · count (right).  Row 2: sort menu · filter chips (scroll sideways to the screen edge). */
@media (max-width: 560px) {
  .toolbar { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; gap: 10px; align-items: center; }
  .toolbar .tabs { grid-column: 1 / 3; grid-row: 1; justify-self: start; }
  .toolbar .count { grid-column: 3; grid-row: 1; margin-left: 0; }
  .toolbar .select { grid-column: 1; grid-row: 2; }
  .toolbar .chips { grid-column: 2 / 4; grid-row: 2; margin: 0 -16px 0 0; padding: 0 16px 0 0; }
}
@media (max-width: 360px) {
  .toolbar .tabs button, .toolbar .tabs button:has(.wn-short) { padding: 0 10px; }
}

/* ======================================================================
   Player (v2): the original dark bar.
   Computers, ONE row: art · waveform · time · prev/play/next · Master · Instrumental · +N more · speaker · download.
   The speaker opens an upright volume slider above it (point at it or click it).
   Narrow windows (≤760px): the waveform becomes a thin seek line along the bottom.
   Phones (≤560px), two rows: art · title · prev/play/next, then Master · Inst · waveform · ··· (other versions, download).
   ====================================================================== */
.player {
  width: min(1040px, calc(100% - 24px)); height: 64px; gap: 14px; padding: 0 12px 0 10px;   /* original size and spacing */
  grid-template-columns: minmax(140px, 230px) minmax(60px, 1fr) auto auto auto;
  grid-template-areas: "meta wave time ctrl side";
}
.p-meta { grid-area: meta; } .p-wave { grid-area: wave; min-width: 0; } .p-time { grid-area: time; }
.p-ctrl { grid-area: ctrl; } .p-more { grid-area: more; }
.p-side { grid-area: side; display: flex; align-items: center; gap: 6px; }   /* versions · volume · download, spaced as originally */
.p-more, .p-prog { display: none; }
.wave { min-width: 0; }
.p-vers { display: flex; gap: 4px; align-items: center; }
.vpill { display: inline-flex; align-items: center; gap: 3px; padding: 0 11px; white-space: nowrap; }
.vpill svg { width: 13px; height: 13px; margin-right: -3px; }
.vl-short { display: none; }   /* short labels ("Inst", "+2") for narrow windows */
.player :focus-visible { outline: 1.5px solid rgba(255,255,255,.4); outline-offset: 2px; border-radius: 12px; }   /* keyboard focus: subtle */

/* menus that open upward from the player (versions, volume, phone menu) */
.pop-wrap { position: relative; }
.pop { position: absolute; bottom: calc(100% + 12px); right: 0; z-index: 70; display: none; color: #fff;
  background: rgba(24,24,24,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 14px 36px rgba(0,0,0,.35); padding: 6px; }
.pop::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; }   /* lets the mouse cross the gap */
.pop-wrap.open > .pop { display: block; animation: pop .14s ease-out; }
.menu-list { min-width: 200px; max-height: min(60vh, 420px); overflow-y: auto; }
.mi-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left; font-size: 13.5px; color: rgba(255,255,255,.82); white-space: nowrap; }
.mi-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.mi-item svg { width: 16px; height: 16px; flex: none; }
.mi-item .tick { opacity: 0; }
.mi-item.on { color: #fff; font-weight: 550; }
.mi-item.on .tick { opacity: 1; }
.mi-head { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); padding: 8px 10px 4px; }
.mi-sep { height: 1px; background: rgba(255,255,255,.1); margin: 6px 4px; }
/* volume: an upright slider pops up above the speaker icon (top = loud) */
.vol-pop { right: 50%; transform: translateX(50%); padding: 14px 8px 12px; border-radius: 14px; }
.vol-pop .vol { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 116px; display: block; margin: 0 auto; }
@media (hover: hover) and (pointer: fine) { .p-vol:hover > .pop { display: block; } }

/* medium windows: nothing wraps; the name column narrows */
@media (max-width: 1100px) {
  .player { gap: 10px; grid-template-columns: minmax(130px, 190px) minmax(60px, 1fr) auto auto auto; }
}
@media (max-width: 960px) {
  .p-time { display: none; }
}
@media (max-width: 860px) {
  .player { grid-template-columns: minmax(120px, 170px) minmax(60px, 1fr) auto auto auto; }
  .selbar { bottom: 92px; }
}
/* narrow windows and tablets: still ONE row, a little slimmer */
@media (max-width: 800px) {
  .player { height: 60px; bottom: 10px; border-radius: 20px; gap: 8px; padding: 0 8px 0 10px;
    grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) auto auto; grid-template-areas: "meta wave ctrl side"; }
  .p-time { display: none; }
  .p-meta .art { width: 40px; height: 40px; }
  .p-ctrl { gap: 2px; }
  .player .icon-btn { width: 36px; height: 36px; }
  .wave { height: 30px; }
  .selbar { bottom: 82px; }
  .selbar.low { bottom: 14px; }
  .tray { bottom: 82px; }
}
/* too narrow for a readable waveform: a thin line along the bottom shows (and seeks) the position */
@media (max-width: 760px) and (min-width: 561px) {
  .player { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "meta ctrl side"; }
  .p-wave { display: none; }
  .p-prog { display: block; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 3px; border-radius: 3px;
    background: rgba(255,255,255,.18); cursor: pointer; touch-action: none; }
  .p-prog::before { content: ""; position: absolute; left: -8px; right: -8px; top: -10px; bottom: -5px; }   /* bigger touch target */
  .p-prog i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
  .p-prog.drag { height: 5px; bottom: 4px; }
}
@media (max-width: 680px) {
  .vl-long { display: none; } .vl-short { display: inline; }
}
/* phones: two rows. Top: art · title · prev/play/next. Bottom: waveform · Master · Inst · ··· (other versions, download).
   No volume here: phones use their own volume buttons (iPhones don't let web pages change it). */
@media (max-width: 560px) {
  .player { height: auto; padding: 10px 10px 10px 12px; border-radius: 24px; gap: 8px;
    /* 76px + 8px gap + 32px = the 116px of prev/play/next above, so the title row loses no space to the ··· column */
    grid-template-columns: minmax(0, 1fr) auto 76px 32px;
    grid-template-areas: "meta meta ctrl ctrl" "wave side side more"; }
  .p-ctrl { justify-self: end; }
  .p-vol, .p-dl, .p-vmore { display: none; }
  .p-more { display: block; }
  .p-more.pop-wrap { position: static; }   /* its menu opens above the whole bar, not over the top row */
  .p-more > .pop { right: 8px; }
  .p-more > .icon-btn { width: 32px; height: 32px; }
  .vpill { padding: 0 10px; }
  .selbar { bottom: 124px; }
  .tray { bottom: 124px; }
}

/* ---------- artist page: streaming + social links (same look as the homepage) ---------- */
.links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; align-items: center; }
.links:empty { display: none; }
.links .sep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }
.icon-link { width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--bg-2); color: var(--text); transition: background .2s, transform .15s; }
.icon-link:hover { background: var(--bg-3); }
.icon-link:active { transform: scale(.94); }
.icon-link svg { width: 16px; height: 16px; }

/* ---------- artist page: releases in one scrolling row until "Show all" ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 14px; }
.section-head .section-title { margin: 0; }
.section-title .faint { margin-left: 6px; letter-spacing: 0; }
.sh-actions { display: flex; align-items: center; gap: 4px; }
.rel-arrow { width: 34px; height: 34px; border-radius: 11px; }
.rel-arrow.fwd svg { transform: scaleX(-1); }
.rel-row.collapsed { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 -28px; padding: 4px 28px 8px; scroll-padding: 0 28px; }
.rel-row.collapsed::-webkit-scrollbar { display: none; }
.rel-row.collapsed > .rcard { flex: 0 0 176px; min-width: 0; scroll-snap-align: start; }
.section-head:has(+ .rel-row:not(.collapsed)) .rel-arrow { display: none; }   /* arrows only while it's one row */
@media not all and (hover: hover) { .rel-arrow { display: none; } }
@media (max-width: 860px) {
  .rel-row.collapsed { margin: 0 -16px; padding: 4px 16px 8px; scroll-padding: 0 16px; gap: 14px; }
  .rel-row.collapsed > .rcard { flex-basis: 148px; }
  .links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .icon-link { flex: none; }
}

/* ---------- download window: folded file types; open one to untick single files ---------- */
.modal { width: min(560px, 100%); }
.dl-groups { max-height: min(52vh, 520px); overflow-y: auto; }
.dg { border-bottom: 1px solid var(--line); }
.dg:last-child { border-bottom: 0; }
.dg .opt.dg-head { border-bottom: 0; padding: 0 6px 0 14px; cursor: default; }
.dg .opt.dg-head:hover { background: none; }
.dg-head .cb { cursor: pointer; flex: none; }
.dg-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px 6px 11px 0; text-align: left; border-radius: 10px; }
.dg-toggle .lbl { flex: 1; font-weight: 550; }
.dg-toggle .meta { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.dg-toggle .chev { color: var(--text-3); transition: transform .2s; }
.dg.open .dg-toggle .chev { transform: rotate(180deg); }
.dg-head:hover .dg-toggle .lbl { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dot); }
.dg-files { background: var(--bg-2); }
.dg.open .dg-files { padding: 4px 0 6px; }
.dgf { display: flex; align-items: center; gap: 12px; padding: 7px 14px 7px 40px; cursor: pointer; }
.dgf:hover { background: var(--bg-3); }
.dgf .cb { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.dgf .cb svg { width: 11px; height: 11px; }
.dgf .nm { flex: 1; min-width: 0; }
.dgf .nm b { display: block; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgf .nm small { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgf .meta { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.dgf:focus-visible, .dg-head .cb:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
@media (max-width: 860px) {
  .dgf { padding-left: 14px; }
  .dg-toggle .meta { font-size: 12px; }
}
@media (max-width: 360px) {
  /* smallest phones: the file count and size go under the type's name, so nothing is cut off */
  .dg-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 1px; }
  .dg-toggle .lbl, .dg-toggle .meta { grid-column: 1; }
  .dg-toggle .chev { grid-column: 2; grid-row: 1 / 3; }
}

/* listen-only visitors: stems are visible but can't be played */
.icon-btn.locked { opacity: .35; cursor: not-allowed; }
.icon-btn.locked:hover { background: none; color: var(--text-2); }

/* ---------- access: email at sign-in, work-email links, invites (access-redesign session, 2026-11-24) ---------- */
.login-card .login-form { display: flex; flex-direction: column; gap: 8px; }
.login-card .login-form[hidden] { display: none; }
.login-card .login-row { display: flex; gap: 8px; }
.login-card .login-email { flex: none; width: 100%; height: 46px; border-radius: 13px; background: rgba(22,22,22,.06); padding: 0 14px; font-size: 15px; transition: background .2s, box-shadow .2s; }
.login-card .login-row .login-email { flex: 1; width: auto; }
.login-card .login-email:focus { background: rgba(22,22,22,.08); box-shadow: 0 0 0 3px rgba(22,22,22,.06); }
.login-card .login-ok { color: var(--text); }
.login-card .err a { text-decoration: underline; }
.login-alt { margin-top: 4px; }
.login-alt[hidden], .login-alt button[hidden] { display: none; }
.login-alt button { font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.login-alt button:hover { color: var(--text); }
.dl-out { font-size: 13px; min-height: 18px; color: var(--text-2); margin: -6px 0 8px; }
.dl-out.bad { color: #b3261e; }
.dl-out a, .modal .lead a, .modal .note a { text-decoration: underline; text-underline-offset: 3px; }
.share-send { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 2px 0 8px; cursor: pointer; }
.share-send input { width: 18px; height: 18px; accent-color: var(--text); }
.menu-pop a { width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; display: flex; gap: 10px; align-items: center; }
.menu-pop a:hover { background: var(--bg-2); }
#dl-mail .linkbox input, #dlp .linkbox input { font-family: var(--font); font-size: 14px; }

/* ---------- artist page header: a soft card tinted by the artist's photo; photo beside the name;
   Play / Download all / Share and the streaming + social links share one row ---------- */
.hero.artist-hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; align-items: center; gap: 26px;   /* clip, not hidden: the oversized blurred photo made the card scrollable, so clicking Play could slide its contents up */
  margin: 4px 0 30px; padding: 24px 28px; border-radius: 28px; background: var(--bg-2); }
.artist-hero::before { content: ""; position: absolute; inset: -60px; z-index: -2; background: var(--ah-img) center / cover;
  filter: blur(44px) saturate(1.7); opacity: .9; }   /* the artist's photo, blurred into a soft wash of its colours */
.artist-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(255,255,255,.5), rgba(255,255,255,.68)); }
.artist-hero .avatar.xl { width: 120px; height: 120px; box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.artist-hero .ah-info { flex: 1 1 0; min-width: 0; }
.artist-hero .kicker { margin-bottom: 6px; }
.artist-hero .kicker, .artist-hero .sub { color: rgba(0,0,0,.58); }
.artist-hero .sub { margin-top: 6px; }
.artist-hero .actions { align-items: center; margin-top: 16px; row-gap: 10px; }
.artist-hero .btn.light { background: rgba(255,255,255,.72); }
.artist-hero .btn.light:hover { background: #fff; }
.artist-hero .links { margin-top: 0; }
.artist-hero .icon-link { background: rgba(255,255,255,.62); }
.artist-hero .icon-link:hover { background: #fff; }
.artist-hero .links .sep, .act-sep { background: rgba(0,0,0,.12); }
.act-sep { width: 1px; height: 22px; margin: 0 4px; }
.act-sep:has(+ .links:empty) { display: none; }
@media (max-width: 860px) {
  .hero.artist-hero { flex-direction: row; align-items: center; gap: 20px; padding: 20px 22px; }
  .artist-hero .avatar.xl { width: 96px; height: 96px; }
}
/* narrow windows: the links get their own row under the buttons */
@media (max-width: 789px) {
  .artist-hero .act-sep { display: none; }
  .artist-hero .links { flex: 1 0 100%; flex-wrap: wrap; overflow: visible; }
}
/* phones: photo + name side by side; Play · Download all on one line; links below */
@media (max-width: 560px) {
  .hero.artist-hero { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 14px; padding: 18px; border-radius: 24px; }
  .artist-hero .avatar.xl { width: 72px; height: 72px; font-size: 22px; grid-column: 1; grid-row: 1 / span 3; }
  .artist-hero .ah-info { display: contents; }
  .artist-hero .kicker, .artist-hero h1, .artist-hero .sub { grid-column: 2; }
  .artist-hero .kicker { margin-bottom: 4px; align-self: end; }
  .artist-hero h1 { font-size: 26px; }
  .artist-hero .sub { margin-top: 4px; align-self: start; }
  .artist-hero .actions { grid-column: 1 / -1; }
  .artist-hero .actions .btn.dark, .artist-hero .actions .btn.light { flex: 1 1 0; justify-content: center; }
}

/* What's new (partner updates) — the What's new tab and each update's own page (#/new/<id>) */
.updates { display: flex; flex-direction: column; gap: 44px; }
.upd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.upd-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.upd-head h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.upd-head .sub { margin-top: 6px; }
.upd-head .sub a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.upd-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .cover.upd-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.upd-mosaic img, .upd-mosaic .ph { width: 100%; height: 100%; object-fit: cover; }
.tabs .wn-short { display: none; }
@media (max-width: 560px) {
  .tabs .wn-long { display: none; }
  .tabs .wn-short { display: inline; }
  .tabs button:has(.wn-short) { padding: 0 12px; }   /* lets tabs + count + sort share one row down to ~430px */
  .upd-head h2 { font-size: 21px; }
  .upd-head .actions { width: 100%; }
  .upd .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}
