/* Look taken from the Gemini mockup: dark stage photo, matte rail, huge bold titles,
   compact rows, and a now-playing card tinted by the album cover. */
@property --a1 { syntax: '<color>'; inherits: true; initial-value: #e8723a; }
@property --a2 { syntax: '<color>'; inherits: true; initial-value: #8b3a62; }
:root {
  --a1: #e8723a; --a2: #8b3a62; --glow: color-mix(in srgb, var(--a1) 40%, transparent);
  --ink: #fff; --ink2: rgba(255,255,255,.7); --ink3: rgba(255,255,255,.5); --line: rgba(255,255,255,.08);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  transition: --a1 .8s ease, --a2 .8s ease;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #0b090a; color: var(--ink); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------ stage background */
#stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; opacity: 0; transform: scale(1.06); filter: brightness(.85) contrast(1.05); transition: opacity 1.2s ease, transform 8s ease; }
.bg.on { opacity: 1; transform: scale(1.02); }
.bg.blur { filter: blur(40px) brightness(.6) saturate(1.3); transform: scale(1.2); }
.bg-fallback { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 48% 32%, color-mix(in srgb, var(--a1) 35%, #1a1013) 0%, #1c1215 48%, #0b090d 100%); }
.vig { position: absolute; inset: 0; }
.vig-x { background: linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.3) 50%, rgba(0,0,0,.66)); }
.vig-y { background: linear-gradient(0deg, rgba(0,0,0,.82), transparent 55%, rgba(0,0,0,.5)); }
.wash { position: absolute; inset: 0; opacity: .3; background: radial-gradient(circle at 75% 45%, var(--a1), transparent 65%); }

/* ------------------------------------------------ shell */
#app { position: relative; z-index: 1; height: 100%; }
.shell { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: 88px minmax(0,1fr) minmax(340px, 35%); gap: 22px; padding: 22px; max-width: 1600px; margin: 0 auto; }
.rail { background: linear-gradient(180deg, rgba(13,12,15,.92), rgba(9,8,11,.96)); border: 1px solid rgba(255,255,255,.06); border-right-color: rgba(255,255,255,.08); box-shadow: 0 20px 50px rgba(0,0,0,.65); border-radius: 26px; padding: 22px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; overflow-y: auto; }
.nav { position: relative; width: 100%; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink3); transition: color .2s; }
.nav:hover, .nav.on { color: var(--ink); }
.nav .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; transition: background .2s; }
.nav:hover .ic { background: rgba(255,255,255,.08); }
.nav.on .ic { background: rgba(255,255,255,.1); }
.nav .ic svg { width: 20px; height: 20px; }
.nav span { font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.nav::before { content: ''; position: absolute; left: -8px; top: 50%; translate: 0 -50%; width: 3.5px; height: 0; border-radius: 0 99px 99px 0; background: linear-gradient(180deg, var(--a1), var(--a2)); box-shadow: 0 0 12px var(--glow); opacity: 0; transition: height .3s, opacity .3s; }
.nav.on::before { height: 28px; opacity: 1; }
.nav.accent .ic { color: var(--a1); }
.rail .grow { flex: 1; }
.me { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: linear-gradient(135deg, var(--a1), var(--a2)); }

/* ------------------------------------------------ main column */
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 18px 10px 6px; }
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ctx { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--ink2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; width: min(320px, 46%); padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.search svg { width: 16px; height: 16px; color: var(--ink3); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 13px; }
.search input::placeholder { color: var(--ink3); }
.hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero h1 { margin: 0; font-size: clamp(38px, 5.2vw, 66px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; text-shadow: 0 4px 24px rgba(0,0,0,.45); max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero .sub { width: 100%; color: var(--ink2); font-size: 14px; font-weight: 500; margin-top: -4px; }
.hero .sub a:hover { text-decoration: underline; }
.round { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.8); backdrop-filter: blur(12px); transition: background .2s, color .2s, transform .15s; }
.round:hover { background: rgba(255,255,255,.16); color: #fff; }
.round:active { transform: scale(.95); }
.round svg { width: 20px; height: 20px; }
.round.sm { width: 36px; height: 36px; } .round.sm svg { width: 17px; height: 17px; }
.round.fav-on, .fav-on { color: var(--a1) !important; background: color-mix(in srgb, var(--a1) 18%, rgba(255,255,255,.08)) !important; border-color: color-mix(in srgb, var(--a1) 50%, transparent) !important; }
.pill { height: 40px; padding: 0 18px; border-radius: 99px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); transition: background .2s, transform .15s; white-space: nowrap; }
.pill:hover { background: rgba(255,255,255,.16); }
.pill:active { transform: scale(.97); }
.pill svg { width: 16px; height: 16px; }
.pill.go { background: linear-gradient(135deg, var(--a1), var(--a2)); border-color: transparent; box-shadow: 0 8px 22px var(--glow); }
.view { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 6px; margin-right: -6px; scroll-behavior: smooth; }
.foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; font-size: 12px; }
.foot .meta { font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.65); }
.foot .hint { color: rgba(255,255,255,.45); }

/* ------------------------------------------------ rows (songs) */
.rows { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 16px; background: rgba(14,13,16,.45); border: 1px solid transparent; border-bottom-color: rgba(255,255,255,.07); transition: background .18s, border-color .18s, transform .18s cubic-bezier(.22,1,.36,1); cursor: pointer; min-width: 0; }
.row:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); transform: translateX(3px); }
.row.cur { background: linear-gradient(90deg, color-mix(in srgb, var(--a1) 24%, #141216), rgba(20,18,22,.85)); border-color: color-mix(in srgb, var(--a1) 50%, transparent); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.row .pb { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.row.cur .pb { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; }
.row .pb svg { width: 13px; height: 13px; }
.row .num { width: 28px; text-align: center; flex: none; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.row .th { width: 38px; height: 38px; border-radius: 9px; flex: none; overflow: hidden; border: 1px solid rgba(255,255,255,.15); background: #222 center/cover; }
.row .tx { flex: 1; min-width: 0; }
.row .t1 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.2; }
.row .t1 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.row .t2 { font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.6); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .dur { font-size: 11.5px; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; margin-right: 2px; }
.ib { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: rgba(255,255,255,.55); border: 1px solid transparent; transition: background .15s, color .15s; }
.ib:hover { background: rgba(255,255,255,.1); color: #fff; }
.ib svg { width: 15px; height: 15px; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; flex: none; }
.eq i { width: 2.5px; border-radius: 2px; background: var(--a1); animation: eq .85s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
.eq.paused i { animation-play-state: paused; height: 5px !important; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 13px; } }
.disc { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink3); margin: 10px 0 2px 6px; }

/* ------------------------------------------------ cards + shelves */
.shelf { margin-bottom: 26px; }
.shelf h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.shelf h2 small { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink3); }
.shelf h2 a { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink2); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.card { min-width: 0; text-align: left; scroll-snap-align: start; }
.card .art { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #1d1a1f center/cover; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 26px rgba(0,0,0,.45); transition: transform .25s cubic-bezier(.22,1,.36,1); }
.card:hover .art { transform: translateY(-3px); }
.card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .play { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 6px 18px rgba(0,0,0,.5); opacity: 0; translate: 0 6px; transition: opacity .2s, translate .2s; }
.card .play svg { width: 16px; height: 16px; margin-left: 2px; }
.card:hover .play, .card:focus-visible .play { opacity: 1; translate: 0 0; }
.card .c1 { margin-top: 9px; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .c2 { margin-top: 2px; font-size: 11.5px; color: rgba(255,255,255,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.artist .art { border-radius: 50%; }
.card.artist { text-align: center; }
.initials { width: 100%; height: 100%; display: grid; place-items: center; font-size: 30px; font-weight: 900; letter-spacing: -.02em; }

/* For you */
.foryou { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pick { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px; border-radius: 16px; background: rgba(14,13,16,.5); border: 1px solid rgba(255,255,255,.07); transition: background .2s; min-width: 0; }
.pick:hover { background: rgba(255,255,255,.08); }
.pick .face { width: 52px; height: 52px; border-radius: 50%; flex: none; overflow: hidden; background: #222 center/cover; border: 1px solid rgba(255,255,255,.15); }
.pick .face img { width: 100%; height: 100%; object-fit: cover; }
.pick b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; color: var(--ink2); margin-top: 2px; line-height: 1.35; }
.mixbox { display: flex; gap: 8px; align-items: center; max-width: 620px; margin-bottom: 12px; padding: 6px 6px 6px 16px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.mixbox svg.spark { width: 18px; height: 18px; color: var(--a1); flex: none; }
.mixbox input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 14px; }
.mixbox input::placeholder { color: var(--ink3); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { height: 32px; padding: 0 14px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: var(--ink2); }
.chip:hover { color: #fff; background: rgba(255,255,255,.12); }
.chip.on { color: #fff; background: color-mix(in srgb, var(--a1) 30%, rgba(255,255,255,.06)); border-color: color-mix(in srgb, var(--a1) 55%, transparent); }
.note { padding: 22px; border-radius: 18px; background: rgba(14,13,16,.5); border: 1px solid rgba(255,255,255,.07); color: var(--ink2); font-size: 14px; line-height: 1.5; max-width: 620px; }
.skel { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: rot .8s linear infinite; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }

/* artist page */
.artist-head { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.artist-head .face { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid rgba(255,255,255,.18); box-shadow: 0 16px 40px rgba(0,0,0,.6); background: #222; }
.artist-head .face img { width: 100%; height: 100%; object-fit: cover; }
.bio { font-size: 13px; line-height: 1.55; color: var(--ink2); max-width: 620px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bio.open { -webkit-line-clamp: unset; }

/* radio */
.station .ricon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: var(--a1); }
.station .ricon svg { width: 20px; height: 20px; }
.tag { padding: 2px 8px; border-radius: 99px; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); flex: none; }
.tag.live { background: color-mix(in srgb, var(--a1) 35%, transparent); }
.form { display: grid; gap: 10px; max-width: 560px; padding: 18px; border-radius: 20px; background: rgba(14,13,16,.6); border: 1px solid rgba(255,255,255,.08); margin-top: 18px; }
.form h3 { margin: 0 0 2px; font-size: 14px; }
.form p { margin: 0; font-size: 12.5px; color: var(--ink2); line-height: 1.45; }
.field { height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); outline: 0; font-size: 14px; width: 100%; }
.field:focus { border-color: color-mix(in srgb, var(--a1) 60%, transparent); }
.check { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink2); }
.check input { width: 18px; height: 18px; accent-color: var(--a1); }

/* ------------------------------------------------ now playing card */
.player { border-radius: 28px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; overflow: hidden;
  background: linear-gradient(170deg, color-mix(in srgb, var(--a1) 12%, #131115), color-mix(in srgb, var(--a2) 14%, #0c0b0e));
  border: 1px solid rgba(255,255,255,.09); box-shadow: -12px 24px 60px rgba(0,0,0,.75); }
.player .cover { width: 100%; max-width: 300px; aspect-ratio: 1; margin: 0 auto; border-radius: 22px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 20px 45px rgba(0,0,0,.55); background: #1a171c; flex: none; }
.player .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player .cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.3), transparent 50%, rgba(255,255,255,.08)); pointer-events: none; }
.player .cover .radio-art { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, var(--a1), var(--a2) 60%, #120f14); }
.player .cover .radio-art svg { width: 38%; height: 38%; opacity: .9; }
.np { text-align: center; margin-top: 18px; min-width: 0; }
.np .tl { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; }
.np h2 { margin: 0; font-size: clamp(30px, 3.4vw, 50px); font-weight: 900; letter-spacing: -.02em; line-height: 1.02; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.np .ar { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np .ar a:hover { color: #fff; text-decoration: underline; }
.scrub { margin-top: 18px; }
input[type=range].bar { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 99px; outline: 0; cursor: pointer; margin: 0;
  background: linear-gradient(90deg, var(--a1) 0%, var(--a2) var(--p, 0%), rgba(255,255,255,.16) var(--p, 0%)); }
input[type=range].bar::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2.5px solid var(--a1); box-shadow: 0 0 10px var(--glow); transition: transform .15s; }
input[type=range].bar::-webkit-slider-thumb:hover { transform: scale(1.25); }
input[type=range].bar::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2.5px solid var(--a1); }
input[type=range].bar:disabled { cursor: default; opacity: .6; }
.times { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.ctrls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
.ctl { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.75); transition: background .15s, color .15s; position: relative; }
.ctl:hover { background: rgba(255,255,255,.1); color: #fff; }
.ctl svg { width: 20px; height: 20px; }
.ctl.white { color: #fff; }
.ctl.on { color: var(--a1); }
.ctl .one { position: absolute; top: 6px; right: 5px; font-size: 8px; font-weight: 900; }
.big { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 10px 28px var(--glow), inset 0 1px 1px rgba(255,255,255,.35); transition: transform .18s, box-shadow .25s; flex: none; }
.big:hover { transform: scale(1.06); box-shadow: 0 14px 34px var(--glow), inset 0 1px 1px rgba(255,255,255,.45); }
.big:active { transform: scale(.97); }
.big svg { width: 24px; height: 24px; }
.extras { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.vol { display: flex; align-items: center; gap: 8px; width: 140px; color: var(--ink3); }
.vol svg { width: 16px; height: 16px; flex: none; }
.info { text-align: center; padding-top: 14px; margin-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.info h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.info p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,.6); }
.info a:hover { color: #fff; text-decoration: underline; }
.empty-np { flex: 1; display: grid; place-items: center; text-align: center; color: var(--ink2); font-size: 14px; line-height: 1.5; padding: 20px; }
.empty-np b { display: block; font-size: 22px; color: #fff; margin-bottom: 6px; font-weight: 900; }

/* queue + menus (sheets) */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); backdrop-filter: blur(2px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.menu { position: fixed; z-index: 41; min-width: 210px; padding: 6px; border-radius: 16px; background: rgba(22,20,25,.97); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: pop .15s; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; text-align: left; }
.menu button:hover { background: rgba(255,255,255,.08); }
.menu button svg { width: 16px; height: 16px; color: var(--ink2); }
.menu hr { border: 0; border-top: 1px solid rgba(255,255,255,.08); margin: 4px 6px; }
.menu .mh { padding: 8px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.sheet { position: fixed; z-index: 41; right: 22px; top: 22px; bottom: 22px; width: min(420px, calc(100% - 44px)); border-radius: 26px; display: flex; flex-direction: column; background: rgba(16,14,18,.97); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 70px rgba(0,0,0,.7); animation: slide .25s cubic-bezier(.22,1,.36,1); overflow: hidden; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.sheet header { display: flex; align-items: center; gap: 10px; padding: 18px 18px 10px; }
.sheet header h3 { flex: 1; margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sheet .body { flex: 1; overflow-y: auto; padding: 4px 14px 18px; }
.sheet .row { background: transparent; }
.sheet .row:hover { transform: none; }

#toast { position: fixed; z-index: 60; top: calc(16px + var(--safe-t)); left: 50%; translate: -50% -10px; opacity: 0; pointer-events: none; padding: 9px 16px; border-radius: 99px; background: rgba(0,0,0,.82); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.15); font-size: 12.5px; font-weight: 500; transition: opacity .25s, translate .25s; max-width: calc(100% - 32px); text-align: center; }
#toast.on { opacity: 1; translate: -50% 0; }

/* ------------------------------------------------ sign in */
.signin { height: 100%; display: grid; place-items: center; padding: 24px; }
.signin form { width: min(400px, 100%); display: grid; gap: 12px; padding: 32px 28px; border-radius: 28px; background: linear-gradient(170deg, rgba(232,114,58,.12), rgba(139,58,98,.14)), rgba(14,12,15,.85); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(0,0,0,.7); backdrop-filter: blur(18px); }
.signin .logo { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 6px; }
.signin h1 { margin: 0; font-size: 44px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.signin p { margin: 0 0 8px; color: var(--ink2); font-size: 14px; line-height: 1.5; }
.signin .err { color: #ffb4a0; font-size: 13px; min-height: 18px; margin: 0; }
.signin .pill { height: 48px; justify-content: center; font-size: 15px; margin-top: 4px; }

/* ------------------------------------------------ phone */
.mini, .tabs, .np-close { display: none; }
@media (max-width: 1100px) { .shell { grid-template-columns: 80px minmax(0,1fr) minmax(300px, 38%); gap: 16px; padding: 16px; } .player { padding: 20px; } }
@media (max-width: 860px) {
  .shell { display: block; padding: 0; }
  .rail { display: none; }
  .main { height: 100%; padding: calc(14px + var(--safe-t)) 16px calc(142px + var(--safe-b)); }
  .top { flex-wrap: wrap; }
  .search { width: 100%; order: 3; margin-top: 10px; height: 40px; }
  .hero h1 { font-size: clamp(34px, 11vw, 52px); }
  .hero { margin-bottom: 14px; gap: 10px; }
  .foot { display: none; }
  .view { margin-right: 0; padding-right: 0; }
  .strip { grid-auto-columns: 132px; gap: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .card .play { opacity: 1; translate: 0 0; width: 34px; height: 34px; }
  .row:hover { transform: none; }
  .row .dur { display: none; }
  .shelf h2 { flex-wrap: wrap; row-gap: 4px; }
  .shelf h2 small { order: 3; width: 100%; }
  .foryou { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .pick { scroll-snap-align: start; }
  .mixbox input { font-size: 15px; }
  .artist-head { gap: 16px; } .artist-head .face { width: 96px; height: 96px; }
  .tabs { display: flex; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + var(--safe-b)); justify-content: space-around; background: linear-gradient(180deg, rgba(13,12,15,.94), rgba(9,8,11,.98)); border-top: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); }
  .tabs .nav { padding: 4px 2px; gap: 2px; width: auto; flex: 1; }
  .tabs .nav .ic { width: 34px; height: 30px; }
  .tabs .nav::before { left: 50%; top: -6px; translate: -50% 0; width: 0; height: 3px !important; border-radius: 0 0 99px 99px; }
  .tabs .nav.on::before { width: 26px; }
  .tabs .nav span { font-size: 10.5px; }
  .mini { display: flex; position: fixed; z-index: 21; left: 10px; right: 10px; bottom: calc(64px + var(--safe-b)); height: 62px; padding: 8px 8px 8px 8px; gap: 10px; align-items: center; border-radius: 18px; overflow: hidden;
    background: linear-gradient(100deg, color-mix(in srgb, var(--a1) 32%, #151216), color-mix(in srgb, var(--a2) 30%, #100d12)); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 30px rgba(0,0,0,.55); }
  .mini .th { width: 46px; height: 46px; border-radius: 11px; overflow: hidden; flex: none; background: #222; }
  .mini .th img { width: 100%; height: 100%; object-fit: cover; }
  .mini .tx { flex: 1; min-width: 0; }
  .mini b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mini small { display: block; font-size: 12px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mini .prog { position: absolute; left: 0; bottom: 0; height: 2.5px; background: #fff; opacity: .85; }
  .mini .big { width: 42px; height: 42px; box-shadow: none; } .mini .big svg { width: 18px; height: 18px; }
  .player { position: fixed; z-index: 30; inset: 0; border-radius: 0; padding: calc(16px + var(--safe-t)) 24px calc(24px + var(--safe-b)); transform: translateY(102%); transition: transform .35s cubic-bezier(.22,1,.36,1); justify-content: flex-start; gap: 6px;
    background: linear-gradient(170deg, color-mix(in srgb, color-mix(in srgb, var(--a1) 30%, #131115) 72%, transparent), color-mix(in srgb, color-mix(in srgb, var(--a2) 30%, #0c0b0e) 82%, transparent) 60%, rgba(11,10,13,.96)); backdrop-filter: blur(6px); }
  .player.open { transform: none; }
  .np-close { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .np-close span { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); }
  .player .cover { max-width: min(86vw, 46vh); }
  .np { margin-top: 26px; }
  .np h2 { font-size: clamp(28px, 9vw, 42px); }
  .ctrls { gap: 14px; margin-top: 16px; }
  .big { width: 70px; height: 70px; }
  .vol { display: none; }
  .info { margin-top: auto; }
  .sheet { inset: auto 0 0 0; top: 12%; width: 100%; border-radius: 26px 26px 0 0; animation: up .3s cubic-bezier(.22,1,.36,1); padding-bottom: var(--safe-b); }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  .menu { left: 8px !important; right: 8px; bottom: calc(8px + var(--safe-b)); top: auto !important; border-radius: 22px; padding: 8px; }
  .menu button { padding: 13px 14px; font-size: 15px; }
}
@media (max-width: 860px) and (max-height: 700px) { .player .cover { max-width: 38vh; } .np { margin-top: 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
