@font-face { font-family: Manrope; src: url(/fonts/manrope.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
:root {
  --bg: #0b0a0d; --s1: #151319; --s2: #1e1b24; --s3: #2a2632; --line: #ffffff14;
  --t1: #f6f3f7; --t2: #aaa4b1; --t3: #76707e;
  --a1: #ff4d2e; --a2: #ffb02e; --grad: linear-gradient(120deg, var(--a1), var(--a2));
  --ok: #4ade80; --bad: #ff6b6b;
  --r: 14px; --gut: clamp(14px, 3.5vw, 32px);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --tabs: 58px; --mini: 62px; --bar: 88px; --side: 248px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; background: var(--bg); overflow: hidden; }
/* Pins the app to the real screen in iOS standalone, where 100% height can stop short of the edges. */
body { position: fixed; inset: 0; width: 100%; }
body { color: var(--t1); font: 500 15px/1.45 Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
#root { height: 100%; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(26px, 5vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: clamp(18px, 2.6vw, 23px); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 15px; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { display: block; }
svg { display: block; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--t2); } .small { font-size: 13px; } .dim { color: var(--t3); }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.between { justify-content: space-between; }

/* shell */
.shell { height: 100%; display: grid; grid-template: "main" minmax(0, 1fr) "player" auto "tabs" auto / minmax(0, 1fr); }
.side { display: none; }
.main { grid-area: main; overflow: hidden auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; min-width: 0; background: var(--bg); }
.view { padding: calc(var(--sat) + 16px) calc(var(--gut) + var(--sar)) 32px calc(var(--gut) + var(--sal)); display: flex; flex-direction: column; gap: 28px; min-width: 0; max-width: 1500px; margin: 0 auto; }
.tabs { grid-area: tabs; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #0b0a0df2; border-top: 1px solid var(--line); padding: 0 var(--sar) var(--sab) var(--sal); }
.tabs a { height: var(--tabs); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--t3); min-width: 0; }
.tabs a.on { color: var(--t1); }
.tabs { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tabs a { position: relative; z-index: 1; -webkit-user-drag: none; transition: color .2s; }
.tabs.held a.on:not(.hover) { color: var(--t3); }
.tabs a.hover { color: var(--t1); }
.tabs a svg { transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.tabs a.on:not(.tabs.held a) svg, .tabs a.hover svg { transform: translateY(-1px) scale(1.08); }
.tab-pill { position: absolute; left: 0; top: 0; border-radius: 26px; background: #ffffff1f; box-shadow: inset 0 1px 0 #ffffff33; transition: transform .32s cubic-bezier(.25, .9, .3, 1), width .2s; will-change: transform; pointer-events: none; }
.tabs.held .tab-pill { transition: transform .14s ease-out; background: #ffffff33; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; min-width: 0; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }

/* player bar: mini on phones, full bar on desktop */
.player { grid-area: player; position: relative; display: none; background: var(--s2); padding: 8px calc(10px + var(--sar)) 8px calc(10px + var(--sal)); align-items: center; gap: 10px; min-width: 0; border-top: 1px solid var(--line); }
.player.show { display: flex; }
.player .info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; height: 46px; }
.player .cover { width: 46px; height: 46px; border-radius: 12px; }
.player .center, .player .right { display: none; }
.player .thin { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--line); }
.player .thin i { display: block; height: 100%; background: var(--grad); width: 0; }
.ib { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--t1); }
.ib:hover { background: #ffffff12; }
.ib.on { color: var(--a2); }
.ib.liked { color: var(--a1); }
.ib.liked svg { fill: currentColor; }
.ib.sm { width: 36px; height: 36px; }
.playbtn { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--t1); color: #0b0a0d; display: grid; place-items: center; }
.playbtn.big { width: 68px; height: 68px; background: var(--grad); color: #1a0a06; }
.cover { background: var(--s3); object-fit: cover; flex: none; overflow: hidden; }
.fallback { display: grid; place-items: center; overflow: hidden; }
.fallback svg { display: block; width: 100%; height: 100%; }

/* seek */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; touch-action: none; --p: 0%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--a2) var(--p), #ffffff2e var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: #ffffff2e; }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--a2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.time { font-size: 12px; color: var(--t2); font-variant-numeric: tabular-nums; }

/* hero and shelves */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: clamp(18px, 4vw, 36px); border-radius: 20px; background: radial-gradient(120% 140% at 0 0, #ff4d2e55, transparent 60%), radial-gradient(120% 160% at 100% 100%, #ffb02e33, transparent 55%), var(--s1); border: 1px solid var(--line); overflow: hidden; }
.hero .cover { width: clamp(84px, 22vw, 190px); height: clamp(84px, 22vw, 190px); border-radius: 14px; box-shadow: 0 18px 40px #0009; }
.tag { display: inline-flex; align-self: flex-start; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #ffffff1c; }
.tag.hot { background: var(--grad); color: #1a0a06; }
.tag.ok { background: #4ade8026; color: var(--ok); }
.tag.bad { background: #ff6b6b26; color: var(--bad); }
.pill-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut); }
.pill-row::-webkit-scrollbar, .shelf::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 8px 14px; min-height: 36px; border-radius: 99px; background: var(--s2); font-weight: 700; font-size: 13px; white-space: nowrap; }
.pill.on { background: var(--t1); color: #0b0a0d; }
.section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.shelf { padding-block: 14px; margin-block: -14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(136px, 172px); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); }
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-snap-align: start; text-align: left; position: relative; padding: 0; }
.card .cover { width: 100%; aspect-ratio: 1; height: auto; border-radius: 12px; font-size: 40px; }
.card.round .cover { border-radius: 50%; }
.card .t { font-weight: 700; }
.card .s { font-size: 13px; color: var(--t2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 44%), 1fr)); gap: 16px; }

/* track rows */
.list { display: flex; flex-direction: column; min-width: 0; }
.tr { display: flex; align-items: center; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; min-width: 0; min-height: 60px; }
.tr:hover { background: #ffffff0a; }
.tr.cur .t { color: var(--a2); }
.tr .hit { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.tr .cover { width: 46px; height: 46px; border-radius: 7px; font-size: 18px; }
.tr .t { font-weight: 700; }
.tr .s { font-size: 13px; color: var(--t2); }
.alb, .dur, .thead { display: none; }
.tr .n, .thead .n { width: 22px; flex: none; text-align: center; color: var(--t3); font-size: 13px; font-variant-numeric: tabular-nums; }
.tr .n .eq { display: none; height: 14px; align-items: flex-end; justify-content: center; gap: 2px; }
.tr.cur .n span { display: none; }
.tr.cur .n .eq { display: flex; }
.eq b { display: block; width: 3px; height: 18%; border-radius: 2px; background: var(--a2); }

/* page header */
.head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-width: 0; }
.head .cover { width: min(190px, 52vw); height: min(190px, 52vw); border-radius: 14px; font-size: 64px; box-shadow: 0 18px 44px #0008; align-self: center; }
.head .meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; width: 100%; }

/* forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 99px; background: var(--s3); font-weight: 700; text-align: center; max-width: 100%; }
.btn.pri { background: var(--grad); color: #1a0a06; font-weight: 800; }
.btn.light { background: var(--t1); color: #0b0a0d; }
.btn.danger { background: #ff6b6b22; color: var(--bad); }
.btn.sm { min-height: 36px; padding: 6px 13px; font-size: 13px; }
.btn.full { width: 100%; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--t2); min-width: 0; }
input:not([type=range],[type=checkbox],[type=file]), select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--s1); font-size: 16px; font-weight: 500; color: var(--t1); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--a2); outline-offset: 0; }
input[type=file] { width: 100%; font-size: 14px; color: var(--t2); min-width: 0; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 8px 14px; border: 0; border-radius: 99px; background: var(--s3); color: var(--t1); font: inherit; font-weight: 700; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(14px, 3vw, 22px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

/* auth */
.auth { height: 100%; overflow: auto; display: grid; place-items: center; padding: calc(var(--sat) + 24px) 18px calc(var(--sab) + 24px); background: radial-gradient(90% 60% at 20% 0, #ff4d2e40, transparent), radial-gradient(80% 50% at 100% 100%, #ffb02e26, transparent), var(--bg); }
.auth form { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }

/* now playing */
.now { position: fixed; inset: 0; z-index: 30; display: none; background: linear-gradient(180deg, #2c1c24, var(--bg) 75%); overflow: hidden auto; padding: calc(var(--sat) + 8px) calc(20px + var(--sar)) calc(var(--sab) + 16px) calc(20px + var(--sal)); }
.now.show { display: flex; flex-direction: column; }
.now-in { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; min-height: 0; justify-content: space-between; }
.now .art-wrap { width: min(100%, 52dvh); aspect-ratio: 1; height: auto; border-radius: 16px; align-self: center; font-size: 96px; box-shadow: 0 24px 60px #000a; }
.now .ctl { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.now .pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.quality { display: inline-flex; align-self: flex-start; padding: 3px 9px; border-radius: 6px; border: 1px solid #ffb02e66; color: var(--a2); font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.queue { flex: 1; min-height: 0; max-height: 46dvh; overflow: hidden auto; overscroll-behavior: contain; }
.queue .tr.cur { background: #ffffff14; }
.lyrics { white-space: pre-wrap; line-height: 1.7; color: var(--t2); overflow-wrap: anywhere; }

/* dialog, toast, ad */
.scrim { position: fixed; inset: 0; z-index: 50; background: #000b; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.sheet { width: min(480px, 100%); max-height: 86dvh; overflow: auto; background: var(--s1); border-radius: 18px 18px 0 0; padding: 18px calc(18px + var(--sar)) calc(18px + var(--sab)) calc(18px + var(--sal)); display: flex; flex-direction: column; gap: 12px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--sab) + 140px); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 99px; background: var(--t1); color: #0b0a0d; font-weight: 700; font-size: 14px; text-align: center; }
.ad { position: fixed; inset: 0; z-index: 60; background: radial-gradient(90% 60% at 50% 0, #ff4d2e50, transparent), #0b0a0d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; overflow: auto; text-align: center; padding: calc(var(--sat) + 20px) calc(24px + var(--sar)) calc(var(--sab) + 20px) calc(24px + var(--sal)); }
.ad > * { max-width: 440px; }
.ad .art { width: min(240px, 56vw, 34dvh); height: min(240px, 56vw, 34dvh); border-radius: 16px; object-fit: cover; }
.ad .count { position: absolute; top: calc(var(--sat) + 14px); right: calc(var(--sar) + 16px); padding: 5px 12px; border-radius: 99px; background: #ffffff1c; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r); background: linear-gradient(120deg, #ff4d2e2e, #ffb02e1f); border: 1px solid #ffb02e33; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); min-width: 0; }
.plan.best { border-color: #ffb02e88; background: linear-gradient(180deg, #ff4d2e1f, var(--s1) 60%); }
.plan .price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 8px; color: var(--t2); font-size: 14px; }
.plan li::before { content: '✓'; color: var(--a2); font-weight: 800; }

/* admin */
.anav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut); }
.anav::-webkit-scrollbar { display: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 45%), 1fr)); gap: 12px; }
.kpi { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kpi b { font-size: clamp(20px, 3.4vw, 28px); font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi span { font-size: 12px; font-weight: 700; color: var(--t2); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 130px; min-width: 0; }
.bars i { flex: 1; min-width: 0; border-radius: 3px 3px 0 0; background: var(--grad); min-height: 2px; }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.item:last-child { border-bottom: 0; }
.item .cover { width: 46px; height: 46px; border-radius: 7px; font-size: 18px; }
.item .body { flex: 1 1 180px; min-width: 0; }
.item .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toggle { flex: none; width: 58px; height: 34px; border-radius: 99px; background: var(--s3); position: relative; transition: background .15s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle.on { background: var(--grad); }
.toggle.on::after { transform: translateX(24px); }
.bigswitch { padding: clamp(16px, 3vw, 24px); border-radius: 18px; background: var(--s1); border: 1px solid #ffb02e44; }
.progress { height: 8px; border-radius: 8px; background: var(--s3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--t2); }

/* phones up to foldable inner screens keep tabs; layout only grows here */
@media (min-width: 560px) {
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head { flex-direction: row; align-items: flex-end; }
  .head .cover { width: 190px; height: 190px; align-self: flex-end; }
  .tr .dur, .thead .dur { display: block; width: 44px; flex: none; text-align: right; color: var(--t2); font-size: 13px; font-variant-numeric: tabular-nums; }
  .tr .alb, .thead .alb { display: block; flex: 0 1 28%; min-width: 0; color: var(--t2); font-size: 13px; }
  .thead { display: flex; align-items: center; gap: 12px; padding: 0 8px 8px; margin: 0 -8px 4px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--t3); }
  .thead .pad { width: 84px; flex: none; }
  .scrim { align-items: center; padding: 20px; }
  .sheet { border-radius: 18px; padding: 22px; }
  .shelf { grid-auto-columns: minmax(150px, 180px); }
}
@media (min-width: 820px) {
  .shell { grid-template: "side main" minmax(0, 1fr) "player player" auto / var(--side) minmax(0, 1fr); }
  .tabs { display: none; }
  .side { grid-area: side; display: flex; flex-direction: column; gap: 22px; padding: calc(var(--sat) + 20px) 14px 16px calc(14px + var(--sal)); background: #000; overflow: auto; min-height: 0; }
  .side nav { display: flex; flex-direction: column; gap: 2px; }
  .side nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border-radius: 10px; font-weight: 700; color: var(--t2); min-width: 0; }
  .side nav a:hover { color: var(--t1); }
  .side nav a.on { background: var(--s2); color: var(--t1); }
  .side .lists { flex: 1; overflow: auto; border-top: 1px solid var(--line); padding-top: 12px; min-height: 60px; }
  .player { display: none; min-height: var(--bar); padding: 10px calc(18px + var(--sar)) calc(10px + var(--sab)) calc(18px + var(--sal)); gap: 16px; }
  .player.show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); }
  .player .thin, .player > .ib, .player > .playbtn { display: none; }
  .player .cover { width: 56px; height: 56px; }
  .player .info { height: 56px; }
  .player .center { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
  .player .right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
  .player .right input { width: min(110px, 100%); }
  .now .now-in { max-width: 980px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .now .top { grid-column: 1 / -1; }
  .now .art-wrap { width: min(100%, 68dvh); }
  .toast { bottom: calc(var(--bar) + 24px); }
  .view { padding-top: calc(var(--sat) + 24px); }
}
/* phones and folded screens on their side: art beside controls */
@media (max-height: 520px) and (orientation: landscape) {
  .now .now-in { max-width: none; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; }
  .now .top { grid-column: 1 / -1; }
  .now .art-wrap { width: 58dvh; }
  :root { --tabs: 48px; }
  .tabs a { flex-direction: row; gap: 6px; }
}
@media (max-height: 760px) and (max-width: 819px) and (orientation: portrait) {
  .now .art-wrap { width: min(100%, 38dvh); }
  .now-in { gap: 8px; }
  .now .pane { gap: 6px; }
  .playbtn.big { width: 58px; height: 58px; }
}
.now { isolation: isolate; }
.nebula { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.now::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(#0b0a0d33, #0b0a0d1a 35%, #0b0a0dcc 80%); }
/* Cover as glass: the nebula stays visible through it. */
.now .art-wrap { position: relative; flex: none; aspect-ratio: 1; align-self: center; border-radius: 22px; overflow: hidden; isolation: isolate; border: 1px solid #ffffff4d; background: linear-gradient(135deg, #ffffff24, #ffffff05 50%, #ffffff14); -webkit-backdrop-filter: blur(3px) saturate(170%); backdrop-filter: blur(3px) saturate(170%); box-shadow: inset 0 1px 0 #ffffff80, inset 0 -1px 0 #ffffff26, 0 24px 60px #00000059; }
.now .art-wrap .art { display: grid; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; align-self: auto; opacity: .58; }
.now .art-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(145deg, #ffffff40 0, #ffffff0d 28%, transparent 52%, #ffffff12 100%); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .now .art-wrap { -webkit-backdrop-filter: none; backdrop-filter: none; } .now .art-wrap .art { opacity: 1; } }
.logo-mark { display: block; flex: none; width: 30px; height: 30px; }
.logo-mark svg { display: block; width: 100%; height: 100%; }
.home-mark { width: 34px; height: 34px; margin-right: -2px; }
@media (min-width: 820px) { .home-mark { display: none; } }
.new-tag { position: absolute; z-index: 2; top: 8px; left: 8px; transform: translateZ(0); pointer-events: none; }
.card.spotlight { z-index: 3; }
.card.spotlight .cover { animation: spot 5.2s cubic-bezier(.2, .7, .2, 1) both; }
.card.spotlight .new-tag { animation: tagIn .7s cubic-bezier(.2, .9, .3, 1.2) .5s both; }
@keyframes spot { 0% { transform: scale(1); box-shadow: 0 0 0 0 #ffb02e00; } 18% { transform: scale(1.07); box-shadow: 0 0 0 3px #ffb02e, 0 0 44px 10px #ff4d2e99; } 72% { transform: scale(1.07); box-shadow: 0 0 0 3px #ffb02e, 0 0 44px 10px #ff4d2e80; } 100% { transform: scale(1); box-shadow: 0 0 0 0 #ffb02e00; } }
@keyframes tagIn { from { opacity: 0; transform: translateY(8px) scale(.8); } to { opacity: 1; transform: none; } }
/* Queue sheet: everything is driven by --q, set per frame while dragging. */
.now { overflow: hidden; overflow: clip; user-select: none; -webkit-user-select: none; }
.now-in { overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: none; }
.now-in::-webkit-scrollbar { display: none; }
.now { --q: 0; --d: 0; transform: translate3d(0, calc(var(--d) * 100%), 0) scale(calc(1 - var(--d) * .12)); border-radius: calc(var(--d) * 48px); transform-origin: 50% 100%; }
.now.d-anim { transition: transform .3s cubic-bezier(.3, .7, .3, 1), border-radius .3s; }
.now-in { opacity: calc(1 - var(--q) * .6); transform: scale(calc(1 - var(--q) * .05)); transform-origin: 50% 20%; }
.q-sheet { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(640px, 100%); height: min(82dvh, 760px); display: none; flex-direction: column; border-radius: 24px 24px 0 0; background: #17141cf2; border: 1px solid #ffffff24; border-bottom: 0; box-shadow: 0 -18px 50px #0000008c; transform: translate3d(0, calc((1 - var(--q)) * 100%), 0); will-change: transform; padding-bottom: var(--sab); }
.now.q-shown .q-sheet { display: flex; }
.now.q-anim .q-sheet, .now.q-anim .now-in { transition: transform .4s cubic-bezier(.22, .9, .3, 1), opacity .4s; }
.q-grab { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0 12px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.q-grab i { width: 40px; height: 5px; border-radius: 5px; background: #ffffff4d; }
.q-sheet .queue { flex: 1; max-height: none; padding: 0 12px 12px; }
/* The browser must not claim the gesture as a scroll while the page is busy drawing, or the swipe is cancelled on slower phones. */
@media (min-height: 560px) { .now { touch-action: none; } .q-sheet .queue { touch-action: pan-y; } }
.q-hint { color: var(--t3); transform: rotate(180deg); animation: hintUp 2.2s ease-in-out infinite; }
@keyframes hintUp { 0%, 100% { transform: rotate(180deg) translateY(0); } 50% { transform: rotate(180deg) translateY(4px); } }
html.ios .q-sheet { background: linear-gradient(135deg, #2a2632d9, #15131bd9); -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%); box-shadow: inset 0 1px 0 #ffffff59, 0 -18px 50px #0000008c; }
html.ios .player .cover { border-radius: 16px; } /* follows the capsule: its 24 px corner minus the 8 px gap */
.auth-apps { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.auth-apps .row { width: 100%; }
.ib.flip svg { transform: rotate(180deg); }
.ib.off { visibility: hidden; }
.offline-list .tr .btn { flex: none; }
.offline-list .hit:disabled { opacity: .55; }
.preview { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #ffffff0a; min-width: 0; }
.preview audio { width: 100%; height: 40px; }
.preview .verdict { font-size: 13px; overflow-wrap: anywhere; }
.preview .verdict.same { color: var(--bad); font-weight: 700; }
.preview .verdict.similar { color: var(--a2); }
.preview .verdict.ok { color: var(--ok); }
/* motion */
.view.quiet > * { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nowUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.view > * { animation: rise .32s cubic-bezier(.2, .7, .2, 1) both; }
.view > *:nth-child(2) { animation-delay: .04s; } .view > *:nth-child(3) { animation-delay: .08s; } .view > *:nth-child(4) { animation-delay: .12s; }
.now.show { animation: nowUp .3s cubic-bezier(.2, .8, .2, 1); }
.sheet { animation: sheetUp .24s cubic-bezier(.2, .8, .2, 1); }
.scrim, .ad { animation: fade .2s ease; }
.card .cover { transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .card:hover .cover { transform: scale(1.03); } }
.card { transition: transform .12s; isolation: isolate; }
.card:active { transform: scale(.97); }
.btn:active, .pill:active, .ib:active, .playbtn:active { transform: scale(.95); }
.btn, .pill, .ib, .playbtn { transition: transform .12s, background .15s; }
.now .art-wrap { transition: transform .35s cubic-bezier(.2, .7, .2, 1); transform: scale(.94); }
html.playing .now .art-wrap { transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* iOS only: Liquid Glass look. Blur stays on floating surfaces; panels inside scrollers skip it to keep scrolling smooth.
   shortcut: Safari has no refraction in backdrop-filter, real lensing needs a native SwiftUI app. */
html.ios {
  --g-fill: linear-gradient(135deg, #ffffff2b, #ffffff0d 45%, #ffffff1a);
  --g-blur: blur(26px) saturate(190%);
  --g-bar: linear-gradient(135deg, #ffffff24, #ffffff08 45%, #ffffff14), #17141cb8; /* tint keeps labels readable over any cover */
  --g-edge: inset 0 1px 0 #ffffff66, inset 0 -1px 0 #ffffff1a, inset 1px 0 0 #ffffff14, inset -1px 0 0 #ffffff14;
  --g-lift: 0 10px 34px #00000073;
}
html.ios, html.ios body { height: var(--app-h, 100dvh); }
html.ios { --tab-b: max(calc(var(--sab) - 14px), 8px); background: radial-gradient(70% 45% at 12% 0, #ff4d2e4d, transparent), radial-gradient(70% 45% at 100% 38%, #7a3cff40, transparent), radial-gradient(80% 45% at 20% 100%, #ffb02e2e, transparent), var(--bg); }
html.ios body { background: transparent; }
/* Keeps the clock and notch readable while content scrolls beneath them. */
html.ios .shell::before { content: ''; position: fixed; z-index: 15; inset: 0 0 auto; height: calc(var(--sat) + 8px); background: linear-gradient(#0b0a0de6, #0b0a0d00); pointer-events: none; }
html.ios .main { background: transparent; }
html.ios .tabs, html.ios .player, html.ios .sheet, html.ios .toast, html.ios .ad .count, html.ios .now .ib, html.ios .side {
  background: var(--g-fill); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  border: 1px solid #ffffff2e; box-shadow: var(--g-edge), var(--g-lift);
}
html.ios .toast { color: var(--t1); }
html.ios .tabs, html.ios .player, html.ios .toast { background: var(--g-bar); }
html.ios .tabs a { color: var(--t2); }
html.ios .panel, html.ios .hero, html.ios .upsell, html.ios .plan, html.ios .kpi, html.ios .bigswitch, html.ios .pill {
  background: var(--g-fill); border: 1px solid #ffffff24; box-shadow: var(--g-edge);
}
html.ios .pill.on { background: #ffffffe6; color: #0b0a0d; }
html.ios .plan.best { background: linear-gradient(160deg, #ff4d2e3d, #ffffff0d 60%); border-color: #ffb02e80; }
html.ios .btn:not(.pri, .light, .danger) { background: var(--g-fill); box-shadow: var(--g-edge); }
html.ios .btn.pri, html.ios .playbtn.big { box-shadow: inset 0 1px 0 #ffffff80, 0 6px 20px #ff4d2e4d; }
html.ios input:not([type=range], [type=checkbox], [type=file]), html.ios select, html.ios textarea { background: #ffffff12; border-color: #ffffff29; }
html.ios .sheet { background: linear-gradient(135deg, #2a2632d9, #15131bd9); }
html.ios .scrim { background: #00000080; }
html.ios .now { background: #0b0a0d; isolation: isolate; }
html.ios .now::before { content: ''; position: fixed; inset: -12%; z-index: -3; background: var(--art, none) center / cover, linear-gradient(160deg, #5a2a2f, #1c1530); filter: blur(60px) saturate(170%) brightness(.55); }
html.ios .now .ib { border-radius: 50%; box-shadow: var(--g-edge); }
@media (max-width: 819px) {
  html.ios .shell { grid-template: "main" minmax(0, 1fr) / minmax(0, 1fr); }
  html.ios .view { padding-bottom: calc(var(--sab) + 170px); }
  html.ios .tabs { position: fixed; z-index: 20; left: calc(12px + var(--sal)); right: calc(12px + var(--sar)); bottom: var(--tab-b); padding: 4px; border-radius: 30px; }
  html.ios .tabs a { height: 54px; border-radius: 26px; }
  html.ios .player { position: fixed; z-index: 20; left: calc(12px + var(--sal)); right: calc(12px + var(--sar)); bottom: calc(var(--tab-b) + 70px); padding: 7px 8px 7px 8px; border-radius: 24px; overflow: hidden; }
  html.ios .player .thin { top: auto; bottom: 0; }
  html.ios .sheet { margin: 0 8px max(var(--sab), 8px); border-radius: 28px; width: min(480px, calc(100% - 16px)); padding-bottom: 18px; }
  html.ios .toast { bottom: calc(var(--sab) + 156px); }
}
@media (max-width: 819px) and (max-height: 520px) and (orientation: landscape) {
  html.ios .tabs a { height: 42px; }
  html.ios .player { bottom: calc(var(--tab-b) + 58px); }
  html.ios .view { padding-bottom: calc(var(--sab) + 150px); }
}
@media (min-width: 820px) {
  html.ios .side { border-width: 0 1px 0 0; box-shadow: var(--g-edge); }
  html.ios .player { margin: 0 12px max(var(--sab), 10px); border-radius: 24px; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  html.ios .tabs, html.ios .player, html.ios .sheet, html.ios .toast, html.ios .ad .count, html.ios .now .ib, html.ios .side { background: var(--s2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.ios .panel, html.ios .hero, html.ios .upsell, html.ios .plan, html.ios .kpi, html.ios .bigswitch { background: var(--s1); }
}

/* Home: a sound landscape instead of decoration. Colour comes from the music and the covers; the interface stays quiet. */
.stage { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; margin: calc((var(--sat) + 16px) * -1) calc((var(--gut) + var(--sar)) * -1) -4px calc((var(--gut) + var(--sal)) * -1); padding: calc(var(--sat) + 14px) calc(var(--gut) + var(--sar)) 8px calc(var(--gut) + var(--sal)); min-height: min(64dvh, 560px); }
/* Sticky, not fixed: it stays clipped to the content area, never slides under the sidebar, and holds its place through the whole scroll. */
.view > .stage-gl { position: sticky; top: 0; display: block; flex: none; animation: none; align-self: stretch; height: 100dvh; margin: calc((var(--sat) + 16px) * -1) calc((var(--gut) + var(--sar)) * -1) calc(-100dvh - 28px + var(--sat) + 16px) calc((var(--gut) + var(--sal)) * -1); width: auto; pointer-events: none; background: radial-gradient(90% 40% at 50% 42%, #ff4d2e1f, transparent 72%); -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 30%); mask-image: linear-gradient(180deg, transparent 4%, #000 30%); }
.view > .stage-gl ~ * { position: relative; }
.stage-lead h1, .stage-lead p, .stage-go .quality { text-shadow: 0 1px 18px #0b0a0dd9; }
.stage-lead h1.open { cursor: pointer; }
.stage-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.greet { font-size: 15px; font-weight: 700; color: var(--t2); letter-spacing: -.01em; min-width: 0; }
.stage-lead { display: flex; flex-direction: column; gap: 8px; max-width: 720px; min-width: 0; }
.stage-lead h1 { font-size: clamp(38px, 11vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.clip2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: .08em; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--a2); }
.stage-go { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; }
.stage-go .quality { margin: 0; font-size: 12px; font-weight: 600; color: var(--t2); font-variant-numeric: tabular-nums; }
.section > h2 { font-size: 19px; letter-spacing: -.02em; }
.pill { background: transparent; box-shadow: inset 0 0 0 1px #ffffff26; color: var(--t2); }
.pill.on { background: var(--t1); box-shadow: none; }
.card .cover { border-radius: 8px; box-shadow: inset 0 0 0 1px #ffffff12; }
.card .t { font-size: 14px; letter-spacing: -.01em; }
.tr .cover { border-radius: 5px; }
.card .new-tag { top: 7px; left: 7px; padding: 2px 7px; border-radius: 5px; background: #0b0a0dbf; color: var(--t1); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.tr .n { font-size: 15px; font-weight: 600; color: var(--t3); }
.tr .ib { opacity: .62; }
.tab-pill { background: #ffffff14; box-shadow: none; }
@media (min-width: 820px) { .stage { min-height: 460px; } }
.shelf { padding-inline-start: calc(var(--gut) + var(--sal)); padding-inline-end: calc(var(--gut) + var(--sar)); scroll-padding-inline: calc(var(--gut) + var(--sal)); }
.stage-go .btn { transition: background .25s, color .25s, box-shadow .25s; }
.stage-go .btn.on { background: #ffffff1c; color: var(--t1); box-shadow: inset 0 0 0 1px #ffffff2e; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lib { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.lib-row { display: flex; align-items: center; gap: 12px; padding: 8px; min-height: 60px; border-radius: 12px; min-width: 0; }
.lib-row:active { background: #ffffff0f; }
@media (hover: hover) { .lib-row:hover { background: #ffffff0a; } }
.lib-row .t { font-weight: 700; }
.lib-row .s { font-size: 13px; color: var(--t2); }
.lib-row > svg { flex: none; color: var(--t3); }
.lib-row .cover, .lib-ic { flex: none; width: 46px; height: 46px; border-radius: 8px; }
.lib-ic { display: grid; place-items: center; background: var(--s2); color: var(--t1); }
.lib-ic.liked { color: var(--a1); }
@media (min-width: 820px) { .view:has(> .stage-gl) { padding-top: calc(var(--sat) + 16px); } }
/* Any phone on its side, however wide: height is the scarce thing. Navigation moves to a thin rail and the player stays one line, so content keeps the screen. */
@media (max-height: 520px) and (orientation: landscape) {
  .shell, html.ios .shell { grid-template: "side main" minmax(0, 1fr) "side player" auto / calc(72px + var(--sal)) minmax(0, 1fr); }
  .tabs, html.ios .tabs { display: none; }
  .side, html.ios .side { grid-area: side; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: calc(var(--sat) + 8px) 8px calc(var(--sab) + 8px) calc(8px + var(--sal)); background: #000; overflow: auto; min-height: 0; border-width: 0 1px 0 0; }
  html.ios .side { background: var(--g-bar); }
  .side .logo { flex: none; }
  .side .logo .clip, .side .lists { display: none; }
  .side nav { display: flex; flex-direction: column; gap: 4px; }
  .side nav a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; color: var(--t2); }
  .side nav a.on { background: #ffffff1c; color: var(--t1); }
  .side nav a span { display: none; }
  .player, html.ios .player { position: relative; left: auto; right: auto; bottom: auto; min-height: 0; margin: 0; padding: 6px calc(12px + var(--sar)) calc(6px + var(--sab)) 12px; border-radius: 0; border-width: 1px 0 0; }
  html.ios .player { margin: 0 calc(10px + var(--sar)) max(var(--sab), 8px) 10px; padding: 6px 10px; border-radius: 22px; border-width: 1px; overflow: hidden; }
  .player.show { display: flex; }
  .player .center, .player .right { display: none; }
  .player .thin { display: block; }
  .player > .ib, .player > .playbtn { display: grid; }
  .player .cover { width: 38px; height: 38px; border-radius: 9px; }
  .player .info { height: 38px; }
  .view, html.ios .view { padding-top: calc(var(--sat) + 16px); padding-bottom: 16px; gap: 20px; }
  .stage { min-height: 0; gap: 0; padding-top: calc(var(--sat) + 12px); }
  .stage-top { display: none; }
  .stage-lead { gap: 4px; }
  .stage-lead h1 { font-size: clamp(26px, 9dvh, 38px); -webkit-line-clamp: 1; }
  .stage-go { margin-top: 6px; }
  .toast, html.ios .toast { bottom: 76px; }
}
/* Icons get replaced while the player syncs; WebKit cancels a tap whose pressed element disappears, so the tap must always land on the button itself. */
button svg, .btn svg { pointer-events: none; }
