/* Muriel Web Player: plays playlists shared from Muriel. Dark only, like the app's now-playing screen. */
:root {
  --bg: #09090b;
  --card: rgba(255, 255, 255, 0.045);
  --card-solid: #17171b;
  --raise: rgba(255, 255, 255, 0.08);
  --hover: rgba(255, 255, 255, 0.065);
  --press: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f5f5f7;
  --dim: rgba(235, 235, 245, 0.62);
  --faint: rgba(235, 235, 245, 0.38);
  --pink: #ff5fa8;
  --pink-soft: #ff7ec8;
  --peach: #ffa36c;
  --grad: linear-gradient(135deg, #ff7ec8 0%, #ff5fa8 48%, #ffa36c 100%);
  --grad-ink: #14040c;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --r: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bar-h: 88px;
  --side: 32px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--pink-soft); outline-offset: 2px; }
.ico { width: 20px; height: 20px; flex: none; }
body.is-booting .topbar { opacity: 0; }

/* ---------- blurred artwork behind everything ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bd-layer { position: absolute; inset: -20%; background: center / cover no-repeat; filter: blur(80px) saturate(1.6); opacity: 0; transform: scale(1.05); transition: opacity 1.4s ease; will-change: opacity; }
.bd-layer.on { opacity: 0.42; }
.bd-glow { position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 18% -5%, rgba(255, 95, 168, 0.20), transparent 70%),
    radial-gradient(50% 40% at 95% 0%, rgba(255, 163, 108, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(9, 9, 11, 0.15) 0%, rgba(9, 9, 11, 0.7) 45%, rgba(9, 9, 11, 0.94) 100%); }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1340px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) var(--side) 10px; transition: opacity .3s; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 12px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-sub { font-size: 14px; color: var(--dim); font-weight: 500; padding-left: 10px; border-left: 1px solid var(--line); }
.top-get { font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 7px 14px; border-radius: 99px; background: var(--raise); transition: background .2s, transform .15s var(--ease); }
.top-get:hover { background: rgba(255, 255, 255, 0.13); }
.top-get:active { transform: scale(0.96); }
body.on-landing .top-get { display: none; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 99px; font-weight: 600; font-size: 15px; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; user-select: none; -webkit-user-select: none; transition: transform .18s var(--ease), background-color .2s, box-shadow .25s, filter .2s, opacity .2s; }
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: scale(0.96); }
.btn.primary { background: var(--grad); color: var(--grad-ink); font-weight: 700; box-shadow: 0 10px 30px -12px rgba(255, 95, 168, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn.primary:hover { filter: brightness(1.06) saturate(1.05); box-shadow: 0 14px 36px -12px rgba(255, 95, 168, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn.tonal { background: var(--raise); color: var(--ink); }
.btn.tonal:hover { background: rgba(255, 255, 255, 0.13); }
.btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.btn.ghost:hover { background: var(--hover); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn.done .ico { color: #6ee7a8; }

/* ---------- landing ---------- */
.landing { min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px 16px 64px; }
.land-card { width: 100%; max-width: 460px; padding: 36px 32px 28px; border-radius: 28px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(30px) saturate(1.3); backdrop-filter: blur(30px) saturate(1.3); text-align: center; animation: rise .5s var(--ease) both; }
.land-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 19px; box-shadow: 0 18px 40px -14px rgba(255, 95, 168, 0.55); }
.land-title { font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
.land-lead { text-wrap: balance; margin: 10px auto 24px; color: var(--dim); font-size: 16px; max-width: 330px; }
.land-error { display: flex; gap: 12px; align-items: flex-start; text-align: left; margin: -6px 0 18px; padding: 13px 14px; border-radius: 16px; background: rgba(255, 95, 168, 0.1); border: 1px solid rgba(255, 95, 168, 0.25); }
.land-error .ico { color: var(--pink-soft); margin-top: 1px; }
.land-error b { display: block; font-size: 14.5px; }
.land-error span { display: block; font-size: 13.5px; color: var(--dim); }
.paste { position: relative; display: flex; gap: 8px; padding: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); transition: border-color .2s, background .2s, box-shadow .2s; }
.paste:focus-within { border-color: rgba(255, 126, 200, 0.55); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 4px rgba(255, 95, 168, 0.12); }
.paste-ico { display: grid; place-items: center; padding-left: 10px; color: var(--faint); }
.paste-ico .ico { width: 18px; height: 18px; }
.paste input { flex: 1 1 0; width: 100%; min-width: 0; height: 42px; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; }
.paste input::placeholder { color: var(--faint); }
.paste .btn { height: 42px; padding: 0 20px; }
.paste-hint { min-height: 20px; margin: 8px 0 6px; font-size: 13px; color: var(--pink-soft); }
.land-foot { text-wrap: balance; margin-top: 18px; font-size: 13px; color: var(--faint); }
.land-foot b { color: var(--dim); font-weight: 600; }

/* ---------- playlist view ---------- */
.view { max-width: 1340px; margin: 0 auto; padding: 18px var(--side) calc(var(--bar-h) + 40px); display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 420px); grid-template-areas: "hero np" "list np"; column-gap: 40px; align-items: start; }
.hero { grid-area: hero; display: flex; align-items: flex-end; gap: 28px; padding: 6px 0 26px; animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.cover { position: relative; flex: none; width: 232px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #2a1a24, #1a1420); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06); display: grid; }
.cover.grid4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tile { position: relative; overflow: hidden; background: #1c1c20; }
.tile img, .crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); opacity: 0; transition: opacity .5s ease; }
.tile img.ok, .crop img.ok { opacity: 1; }
.cover-blank { display: grid; place-items: center; background: var(--grad); color: rgba(20, 4, 12, 0.7); }
.cover-blank .ico { width: 34%; height: 34%; }

.hero-text { min-width: 0; padding-bottom: 2px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.pl-name { margin: 6px 0 6px; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pl-meta { color: var(--dim); font-size: 15px; font-variant-numeric: tabular-nums; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-actions .btn { min-width: 120px; }
.add-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--ink); animation: rise .3s var(--ease) both; }
.add-note .ico { width: 16px; height: 16px; color: #6ee7a8; }
.add-note a { color: var(--pink-soft); font-weight: 600; text-underline-offset: 3px; }
.add-note input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--ink); font: inherit; font-size: 12.5px; }

/* ---------- song list ---------- */
.list { grid-area: list; min-width: 0; animation: rise .55s .05s var(--ease) both; }
.songs { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0 -10px; }
.song { position: relative; width: 100%; display: grid; grid-template-columns: 28px 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 12px 8px 10px; border-radius: 14px; text-align: left; text-decoration: none; transition: background-color .15s, transform .15s var(--ease); }
.song:hover { background: var(--hover); }
.song:active { background: var(--press); transform: scale(0.995); }
.idx { position: relative; height: 20px; text-align: center; color: var(--faint); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.song:hover .idx .n { opacity: 0; }
.idx .hov { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; color: var(--ink); }
.idx .hov .ico { width: 16px; height: 16px; }
.song:hover .idx .hov { opacity: 1; }
.thumb { position: relative; width: 46px; height: 46px; border-radius: 9px; overflow: hidden; background: #1f1f24; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05); }
.thumb img, .bar-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.thumb img.ok, .bar-art img.ok { opacity: 1; }
.thumb.sc { display: grid; place-items: center; background: linear-gradient(135deg, #ff8a3d, #ff5500); color: rgba(255, 255, 255, 0.92); }
.thumb.web { display: grid; place-items: center; background: #26262c; color: var(--dim); }
.thumb.sc .ico, .thumb.web .ico { width: 22px; height: 22px; }
.txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.t { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; color: var(--dim); }
.a .an { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); color: var(--dim); }
.badge.sc { background: rgba(255, 85, 0, 0.16); color: #ff9a5c; }
.dur { font-size: 13.5px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dur .ico { width: 16px; height: 16px; vertical-align: -3px; margin-left: 4px; }

/* the playing row */
.song.cur { background: rgba(255, 95, 168, 0.09); }
.song.cur:hover { background: rgba(255, 95, 168, 0.13); }
.song.cur .t { color: var(--pink-soft); font-weight: 600; }
.song.cur .idx .n, .song.cur:hover .idx .n, .song.cur .idx .hov { opacity: 0; }
.eq { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; gap: 2px; padding: 3px 0 4px; }
.song.cur .idx .eq { display: flex; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--pink-soft); transform-origin: bottom; animation: eq 0.9s ease-in-out infinite alternate; animation-play-state: paused; transform: scaleY(0.35); }
.eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.4s; transform: scaleY(0.75); }
.eq i:nth-child(3) { animation-duration: 1.05s; animation-delay: -0.2s; transform: scaleY(0.5); }
body.is-playing .eq i { animation-play-state: running; }
@keyframes eq { 0% { transform: scaleY(0.2); } 100% { transform: scaleY(1); } }
.thumb .eq { background: rgba(0, 0, 0, 0.45); padding: 12px 13px; gap: 3px; }
.song.cur .thumb .eq { display: none; }

/* unavailable */
.song.bad { cursor: default; }
.song.bad .thumb, .song.bad .txt { opacity: 0.42; }
.song.bad .dur { color: var(--faint); font-size: 12.5px; }
.song.bad:not(.yt-only):hover { background: none; }
.song.bad .idx .hov { display: none; }
.song.bad:hover .idx .n { opacity: 1; }
.song.yt-only { cursor: pointer; }
.song.yt-only .dur { color: var(--dim); }
.song.yt-only:hover .dur { color: var(--ink); }
.song.ext .dur { color: var(--dim); font-size: 12.5px; }
.song.ext:hover .dur { color: var(--ink); }

.fine { margin: 26px 2px 0; font-size: 12px; color: var(--faint); }

/* ---------- now playing card (the YouTube player lives here and always stays visible) ---------- */
.np { grid-area: np; position: sticky; top: 18px; display: flex; flex-direction: column; padding: 12px; border-radius: var(--r); background: rgba(22, 22, 26, 0.55); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4); animation: rise .5s .08s var(--ease) both; }
.np-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; border-radius: 14px; overflow: hidden; background: #000; isolation: isolate; }
.np-yt, .np-sc, .np-ph { position: absolute; inset: 0; }
.np-yt iframe, .np-sc iframe { display: block; width: 100%; height: 100%; border: 0; }
.np-stage .off { visibility: hidden; }
.np-ph { z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; background: #101013; overflow: hidden; }
.np-ph-art { position: absolute; inset: -10%; background: center / cover no-repeat; filter: blur(24px) brightness(0.5) saturate(1.3); transform: scale(1.1); }
.np-ph-text { position: relative; max-width: 300px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.np-ph .btn { position: relative; }
.np-ph.loading .np-ph-text::before { content: ''; display: block; width: 26px; height: 26px; margin: 0 auto 12px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.2); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.np-hint { margin: 10px 4px 0; padding: 9px 12px; border-radius: 12px; background: rgba(255, 95, 168, 0.12); color: var(--ink); font-size: 13.5px; text-align: center; animation: rise .3s var(--ease) both; }
.np-info { padding: 14px 6px 4px; min-width: 0; }
.np-kicker { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
body.is-playing .np-kicker { color: var(--pink-soft); }
.np-title { margin-top: 5px; font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-artist { margin-top: 2px; font-size: 15px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-src { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--faint); text-decoration: none; border-radius: 6px; transition: color .15s; }
.np-src .ico { width: 15px; height: 15px; }
.np-src:hover { color: var(--ink); }
.np-next { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.np-next-h { padding: 0 6px 6px; font-size: 13px; font-weight: 600; color: var(--dim); }
.np-next-list { list-style: none; display: flex; flex-direction: column; }
.np-next-list .song { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 6px; border-radius: 12px; }
.np-next-list .thumb { width: 40px; height: 40px; border-radius: 8px; }
.np-next-list .t { font-size: 14px; }
.np-next-list .a { font-size: 12.5px; }
.np-next-list .dur { font-size: 12.5px; }

/* ---------- player bar ---------- */
.bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 1316px; margin: 0 auto; height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px) minmax(0, 1fr); align-items: center; gap: 20px; padding: 0 18px 0 12px; border-radius: 20px; background: rgba(28, 28, 33, 0.93); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7); -webkit-backdrop-filter: blur(28px) saturate(1.7); backdrop-filter: blur(28px) saturate(1.7); animation: barIn .5s .1s var(--ease) both; }
@keyframes barIn { from { opacity: 0; transform: translateY(16px); } }
.bar-np { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bar-art { position: relative; flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #26262c; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.bar-art.sc { display: grid; place-items: center; background: linear-gradient(135deg, #ff8a3d, #ff5500); color: #fff; }
.bar-art .ico { width: 24px; height: 24px; }
.bar-text { min-width: 0; display: flex; flex-direction: column; }
.bar-title { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-artist { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-center { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.ctrls { display: flex; align-items: center; gap: 14px; }
.ic { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: rgba(255, 255, 255, 0.86); transition: color .15s, background-color .15s, transform .15s var(--ease), opacity .2s; }
.ic svg { width: 20px; height: 20px; }
.ic:hover { color: #fff; background: var(--hover); }
.ic:active { transform: scale(0.9); }
.ic:disabled { opacity: 0.35; pointer-events: none; }
.ic.toggle { color: var(--dim); }
.ic.toggle svg { width: 18px; height: 18px; }
.ic.toggle.on { color: var(--pink-soft); }
.ic.toggle.on::after { content: ''; position: absolute; bottom: 1px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
#b-repeat:not(.one) .repeat-one-mark { display: none; }
.ic.play { width: 42px; height: 42px; background: #fff; color: #0b0b0e; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6); }
.ic.play:hover { background: #fff; transform: scale(1.06); }
.ic.play:active { transform: scale(0.94); }
.ic.play svg { width: 20px; height: 20px; }
.ic.play .i-play { margin-left: 2px; }
.ic.play .i-pause, body.is-playing .ic.play .i-play { display: none; }
body.is-playing .ic.play .i-pause { display: block; }
.spin { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--pink-soft); border-right-color: var(--pink-soft); opacity: 0; transition: opacity .2s; animation: spin 0.9s linear infinite; pointer-events: none; }
body.is-buffering .spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.scrub { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 10px; }
.time { font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.scrub .time:first-child { text-align: right; }
.bar-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.bar-right .ic svg { width: 20px; height: 20px; }
.ic .i-mute, .ic.muted .i-vol { display: none; }
.ic.muted .i-mute { display: block; }
.ic.low .w2 { display: none; }
.vol { width: 110px; }
.no-vol .bar-right { visibility: hidden; }

/* sliders: a thin track with a fill and a thumb that shows on hover */
.range { --p: 0%; --fill: #fff; --track: rgba(255, 255, 255, 0.16); -webkit-appearance: none; appearance: none; height: 18px; margin: 0; background: transparent; cursor: pointer; touch-action: none; }
.range.seek { --fill-bg: var(--grad); width: 100%; }
.range:focus { outline: none; }
.range:focus-visible { outline: 2px solid var(--pink-soft); outline-offset: 2px; border-radius: 6px; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--fill), var(--fill)) 0 0 / var(--p) 100% no-repeat, var(--track); }
.range.seek::-webkit-slider-runnable-track { background: linear-gradient(90deg, #ff7ec8, #ff5fa8 55%, #ffa36c) 0 0 / var(--p) 100% no-repeat, var(--track); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 13px; height: 13px; margin-top: -4.5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45); transform: scale(0); transition: transform .15s var(--ease); }
.range:hover::-webkit-slider-thumb, .range:active::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { transform: scale(1); }
.range::-moz-range-track { height: 4px; border-radius: 99px; background: var(--track); }
.range::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--fill); }
.range.seek::-moz-range-progress { background: linear-gradient(90deg, #ff7ec8, #ff5fa8 55%, #ffa36c); }
.range::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45); transform: scale(0); transition: transform .15s var(--ease); }
.range:hover::-moz-range-thumb, .range:active::-moz-range-thumb, .range:focus-visible::-moz-range-thumb { transform: scale(1); }
.range:disabled { cursor: default; opacity: 0.5; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--bar-h) + 26px + env(safe-area-inset-bottom)); max-width: min(92vw, 460px); transform: translateX(-50%); padding: 11px 18px; border-radius: 16px; background: rgba(44, 44, 50, 0.94); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 14px; text-align: center; animation: toastIn .3s var(--ease) both; }
.toast.out { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px) scale(0.98); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 6px); } }

/* ---------- tablets ---------- */
@media (max-width: 1023px) {
  :root { --side: 24px; }
  .view { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "np" "list"; }
  .np { position: relative; top: 0; margin-bottom: 22px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .np-stage, .np-hint { grid-column: 1; }
  .np-hint { grid-row: 2; }
  .np-info { grid-column: 2; grid-row: 1; padding: 4px 6px; }
  .np-next { display: none; }
  .bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.6fr); gap: 14px; }
  .vol { width: 80px; }
}

/* ---------- phones ---------- */
@media (max-width: 719px) {
  :root { --side: 16px; --bar-h: 112px; }
  .topbar { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 4px; }
  .brand img { width: 28px; height: 28px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 13px; padding-left: 9px; }
  .view { padding-top: 10px; }
  .hero { flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 2px 0 20px; }
  .cover { width: min(54vw, 212px); border-radius: 14px; }
  .hero-text { width: 100%; }
  .eyebrow { font-size: 11px; }
  .pl-name { font-size: 26px; letter-spacing: -0.025em; margin: 4px 0 4px; -webkit-line-clamp: 2; }
  .pl-meta { font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .hero-actions .btn { min-width: 0; height: 48px; border-radius: 14px; }
  .hero-actions .btn.primary, .hero-actions .btn.tonal { background-clip: padding-box; }
  #btn-add { grid-column: 1 / -1; height: 44px; }
  .add-note { justify-content: center; text-align: left; }

  .np { display: flex; align-items: stretch; padding: 10px; border-radius: 20px; margin-bottom: 18px; }
  .np-info { padding: 12px 4px 2px; }
  .np-title { font-size: 17px; }
  .np-artist { font-size: 14px; }

  .songs { margin: 0 -8px; }
  .song { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 7px 8px; border-radius: 12px; }
  .song .idx { display: none; }
  .thumb { width: 48px; height: 48px; border-radius: 8px; }
  .song.cur .thumb .eq { display: flex; }
  .t { font-size: 15px; }

  .bar { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); height: auto; grid-template-columns: 40px minmax(0, 1fr) 40px 46px 40px; grid-template-areas: "np np prev play next" "shuf scrub scrub scrub rep"; column-gap: 2px; row-gap: 2px; padding: 9px 8px 5px 9px; border-radius: 20px; }
  .bar-center, .ctrls { display: contents; }
  .bar-np { grid-area: np; gap: 10px; padding-right: 6px; }
  .bar-art { width: 44px; height: 44px; border-radius: 9px; }
  .bar-title { font-size: 14.5px; }
  .ic { justify-self: center; }
  #b-shuffle { grid-area: shuf; } #b-prev { grid-area: prev; } #b-play { grid-area: play; } #b-next { grid-area: next; } #b-repeat { grid-area: rep; }
  .ic.play { width: 44px; height: 44px; }
  .ic.play:hover { transform: none; }
  .scrub { grid-area: scrub; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 8px; }
  .scrub .time:first-child { text-align: right; }
  .range::-webkit-slider-thumb { transform: scale(0.8); }
  .range::-moz-range-thumb { transform: scale(0.8); }
  .bar-right { display: none; }

  .land-card { padding: 30px 20px 22px; border-radius: 24px; }
  .land-title { font-size: 26px; }
  .land-lead { font-size: 15px; }
  .paste .btn { padding: 0 16px; }
}

@media (hover: none) {
  .song:not(.cur):hover, .ic:not(.play):hover, .btn.ghost:hover { background: transparent; }
  .song.cur:hover { background: rgba(255, 95, 168, 0.09); }
  .song:hover .idx .n { opacity: 1; }
  .song:hover .idx .hov { opacity: 0; }
  .ic.play:hover { transform: none; }
  .btn.tonal:hover, .top-get:hover { background: var(--raise); }
  .btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
  .btn.primary:hover { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .eq i { animation: none !important; }
}
