@font-face { font-family: 'SF Pro Display'; font-weight: 400; font-style: normal; font-display: swap; src: local('SF Pro Display'), local('SFProDisplay-Regular'), url('/fonts/sf-pro-display_regular.woff2') format('woff2'); }
@font-face { font-family: 'SF Pro Display'; font-weight: 500; font-style: normal; font-display: swap; src: local('SF Pro Display Medium'), local('SFProDisplay-Medium'), url('/fonts/sf-pro-display_medium.woff2') format('woff2'); }
@font-face { font-family: 'SF Pro Display'; font-weight: 600; font-style: normal; font-display: swap; src: local('SF Pro Display Semibold'), local('SFProDisplay-Semibold'), url('/fonts/sf-pro-display_semibold.woff2') format('woff2'); }
@font-face { font-family: 'SF Pro Display'; font-weight: 700 900; font-style: normal; font-display: swap; src: local('SF Pro Display Bold'), local('SFProDisplay-Bold'), url('/fonts/sf-pro-display_bold.woff2') format('woff2'); }

:root {
  --bg: #000;
  --surface: #0e0e11;
  --surface-high: #1c1c21;
  --text: #fff;
  --dim: #8e8e93;
  --faint: #5c5c62;
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .14);
  --stroke: rgba(255, 255, 255, .11);
  --accent: #9a9aa6;
  --on-accent: #000;
  --like: #ff4d6d;
  --green: #1db954;
  --tabs-h: 58px;
  --mini-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --pad: 20px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; -webkit-user-select: text; user-select: text; }
img { display: block; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#view {
  position: fixed; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 20px);
}
body.has-mini #view { padding-bottom: calc(var(--tabs-h) + var(--mini-h) + var(--safe-b) + 28px); }
.page { padding-top: calc(var(--safe-t) + 12px); }
.page.flat { padding-top: 0; }
/* screen transitions: push slides in from the right, back from the left, tabs rise and fade */
.page.anim-push { animation: pagePush .42s cubic-bezier(.2, .9, .25, 1) both; }
.page.anim-pop { animation: pagePop .38s cubic-bezier(.2, .9, .25, 1) both; }
.page.anim-tab { animation: pageTab .34s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes pagePush { from { opacity: 0; transform: translateX(42px); } }
@keyframes pagePop { from { opacity: 0; transform: translateX(-30px); } }
@keyframes pageTab { from { opacity: 0; transform: translateY(10px) scale(.992); } }

/* content cascades in on a fresh screen */
.page.fresh .shelf > *, .page.fresh .row, .page.fresh .pl-row, .page.fresh .lib-tile, .page.fresh .tile,
.page.fresh .section, .page.fresh .group, .page.fresh .group-title, .page.fresh .user-row, .page.fresh .circle {
  animation: rise .55s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.page.fresh .shelf > *:nth-child(2), .page.fresh .row:nth-of-type(2), .page.fresh .lib-tile:nth-child(2), .page.fresh .tile:nth-child(2) { animation-delay: .04s; }
.page.fresh .shelf > *:nth-child(3), .page.fresh .row:nth-of-type(3), .page.fresh .lib-tile:nth-child(3), .page.fresh .tile:nth-child(3) { animation-delay: .08s; }
.page.fresh .shelf > *:nth-child(4), .page.fresh .row:nth-of-type(4), .page.fresh .lib-tile:nth-child(4), .page.fresh .tile:nth-child(4) { animation-delay: .12s; }
.page.fresh .shelf > *:nth-child(5), .page.fresh .row:nth-of-type(5), .page.fresh .tile:nth-child(5) { animation-delay: .16s; }
.page.fresh .shelf > *:nth-child(6), .page.fresh .row:nth-of-type(6), .page.fresh .tile:nth-child(6) { animation-delay: .2s; }
.page.fresh .row:nth-of-type(7) { animation-delay: .24s; } .page.fresh .row:nth-of-type(8) { animation-delay: .28s; }
.page.fresh .row:nth-of-type(n+9) { animation-delay: .32s; }
.page.fresh .hero > * { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
.page.fresh .hero > *:nth-child(2) { animation-delay: .05s; } .page.fresh .hero > *:nth-child(3) { animation-delay: .1s; }
.page.fresh .hero > *:nth-child(4) { animation-delay: .15s; } .page.fresh .hero > *:nth-child(n+5) { animation-delay: .2s; }
.page.fresh .ah h1 { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .08s both; }
.page.fresh .ah .meta, .page.fresh .ah .btns { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .16s both; }
.page.fresh .lh .info .cv, .page.fresh .prof .big-av { animation: popIn .6s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.82); } }
.ah > img { will-change: transform; transform-origin: center top; }
@media (prefers-reduced-motion: reduce) { .page, .page * { animation: none !important; } }

/* ---------- icons ---------- */
.ico, .icon-btn, .play-big { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ico svg, .icon-btn svg, .play-big svg { width: 100%; height: 100%; }
.icon-btn { width: 44px; height: 44px; padding: 11px; border-radius: 50%; }
.icon-btn:active { background: var(--glass); }
.icon-btn.big { width: 54px; height: 54px; padding: 12px; }
.icon-btn.dim { color: var(--dim); }
.icon-btn.on { color: var(--accent); }
.icon-btn.liked { color: var(--like); }
.icon-btn.toggle { color: var(--faint); padding: 12px; }
.icon-btn.toggle.on { color: var(--text); }
.icon-btn.off { opacity: .35; }

/* ---------- tabs ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; padding: 6px 8px calc(var(--safe-b) + 4px);
  background: rgba(8, 8, 10, .88);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid var(--stroke);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--faint); padding: 4px 0; transition: color .2s; }
.tab .ico { width: 24px; height: 24px; transition: transform .2s; }
.tab.active { color: var(--text); }
.tab:active .ico { transform: scale(.88); }

/* ---------- mini player ---------- */
.mini {
  position: fixed; z-index: 19; left: 8px; right: 8px;
  bottom: calc(var(--tabs-h) + var(--safe-b) + 8px);
  background: rgba(24, 24, 32, .95);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
  transition: transform .45s cubic-bezier(.2, .9, .25, 1.1), opacity .25s;
  touch-action: pan-y;
}
.mini.hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.mini-row { display: flex; align-items: center; gap: 2px; padding: 8px 6px 6px 10px; }
.mini-cover { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--surface-high); flex: none; margin-right: 10px; }
.mini-text { flex: 1; min-width: 0; }
.mini-title { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-artist { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .icon-btn { width: 44px; height: 44px; padding: 11px; }
.mini-progress { margin: 0 14px 7px; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.mini-progress div { height: 100%; width: 0; background: var(--accent); border-radius: 2px; }

/* ---------- headers ---------- */
.head { display: flex; align-items: center; padding: 0 8px 0 var(--pad); min-height: 48px; }
.head h1 { flex: 1; margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.5px; }
.head .icon-btn { color: var(--dim); }
.subhead { padding: 0 var(--pad); color: var(--dim); font-size: 14px; margin-top: 2px; }
.backbar { display: flex; align-items: center; padding: 0 4px; margin-top: -6px; }
.backbar h2 { flex: 1; margin: 0; font-size: 26px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backbar .icon-btn { color: var(--text); }
.section { display: flex; align-items: flex-end; gap: 10px; padding: 26px var(--pad) 12px; }
.section .st { flex: 1; min-width: 0; }
.section h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section .ss { font-size: 13px; color: var(--dim); margin-top: 3px; }
.section .sa { font-size: 15px; color: var(--accent); font-weight: 600; padding: 4px 0; }

/* ---------- wave hero ---------- */
.hero { position: relative; padding: 18px var(--pad) 6px; }
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: -160px; height: 480px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 30% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: .7;
}
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: var(--dim); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.8); } }
.hero-title { font-size: 44px; font-weight: 700; letter-spacing: -1.2px; margin: 6px 0 4px; line-height: 1.05; }
.hero-sub { font-size: 14px; color: var(--dim); line-height: 1.35; }
.hero-actions { display: flex; gap: 12px; margin: 18px 0 14px; }
.pill {
  height: 52px; padding: 0 26px 0 22px; border-radius: 26px; background: #fff; color: #000;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 600;
  transition: transform .15s;
}
.pill:active { transform: scale(.96); }
.pill .ico { width: 17px; height: 17px; }
.pill.ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.pill.sm { height: 42px; padding: 0 18px; font-size: 14.5px; border-radius: 21px; gap: 8px; }
.pill.sm .ico { width: 14px; height: 14px; }
.pill.xs { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 19px; gap: 6px; }
.pill.xs .ico { width: 12px; height: 12px; }
.pill.accent { background: var(--accent); color: var(--on-accent); }
.pill[disabled] { opacity: .45; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--stroke); padding: 15px; display: inline-flex; flex: none; }
.round:active { background: var(--glass); }
.round.spin svg { animation: spin .9s linear infinite; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--pad) 2px; scrollbar-width: none; }
.hero .chips { margin: 0 calc(-1 * var(--pad)); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 15px; border-radius: 18px; font-size: 13.5px; font-weight: 600;
  color: var(--dim); border: 1px solid rgba(255, 255, 255, .14); background: var(--glass);
  display: inline-flex; align-items: center; transition: background .2s, color .2s, border-color .2s;
}
.chip.on { color: #fff; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); }
.chip.solid { color: #000; background: #fff; border-color: #fff; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.spinner { width: 17px; height: 17px; border: 2px solid rgba(0, 0, 0, .25); border-top-color: #000; border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.light { border-color: rgba(255, 255, 255, .2); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- lyrics column ---------- */
.lyrics-caption { font-size: 11px; font-weight: 700; letter-spacing: .6px; color: var(--faint); margin: 22px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyrics {
  position: relative; overflow-y: auto; overflow-x: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  scrollbar-width: none;
}
.lyrics::-webkit-scrollbar { display: none; }
.hero-lyrics { height: 264px; margin-top: 16px; }
.lyrics-col { transition: transform .45s cubic-bezier(.2, .9, .25, 1); will-change: transform; }
.ly {
  font-size: 23px; line-height: 29px; font-weight: 700; margin: 0 0 12px; color: #fff;
  opacity: .32; transform: scale(.95); transform-origin: left center;
  transition: opacity .3s ease, transform .3s ease, color .2s;
  cursor: pointer; user-select: none;
  border-radius: 8px;
}
.ly:hover { opacity: .7; }
.ly.d0 { opacity: 1; transform: scale(1.03); color: #fff; text-shadow: 0 0 16px rgba(255, 255, 255, .25); cursor: pointer; }
.ly.d1 { opacity: .55; }
.ly.d2 { opacity: .38; }
.ly.d3 { opacity: .24; }
.ly.d4 { opacity: .14; }
.ly.past { opacity: .3; filter: brightness(.85); }
.ly.plain-ly { opacity: .92; transform: none; cursor: default; }
.ly.ly-header { font-size: 15px; line-height: 20px; color: #ffd54f; opacity: .85; margin-top: 18px; margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- now row under the hero ---------- */
.now-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.now-row img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--surface-high); flex: none; }
.now-label { font-size: 10px; font-weight: 700; letter-spacing: .8px; color: var(--faint); }
.now-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-artist, .now-next { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-next { font-size: 12px; color: var(--faint); margin-top: 3px; }

/* ---------- shelves & cards ---------- */
.shelf { display: flex; gap: 14px; overflow-x: auto; padding: 0 var(--pad); scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); }
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }
.card { flex: none; width: 148px; text-align: left; transition: transform .15s; }
.card:active { transform: scale(.96); }
.card.sm { width: 124px; }
.cv { position: relative; width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-high); }
.cv img { width: 100%; height: 100%; object-fit: cover; }
.cv .badge-now { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .6); padding: 7px; }
.card-title { font-size: 13.5px; font-weight: 600; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-artist { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.card-meta { font-size: 11px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.circle { flex: none; width: 88px; text-align: center; }
.circle .cv { border-radius: 50%; }
.circle .nm { font-size: 12.5px; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.circle .fn { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.circle.lg { width: 112px; }
.initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--dim); }

/* ---------- track rows ---------- */
.row { display: flex; align-items: center; gap: 13px; padding: 7px 4px 7px var(--pad); width: 100%; text-align: left; }
.row:active { background: var(--glass); }
.row-cover { position: relative; flex: none; width: 50px; height: 50px; border-radius: 10px; overflow: hidden; background: var(--surface-high); }
.row-cover img { width: 100%; height: 100%; object-fit: cover; }
.row-cover .playing { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; }
.row-cover .playing .ico { width: 20px; height: 20px; color: var(--accent); }
.row:not(.current) .playing { display: none; }
body.is-playing .row.current .playing .ico { animation: pulse 1.2s ease-in-out infinite; }
.row-text { flex: 1; min-width: 0; }
.row-title { font-size: 15.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.current .row-title { color: var(--accent); font-weight: 700; }
.row-sub { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row-dur { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; flex: none; }
.row .icon-btn { color: var(--faint); }
.row .icon-btn.liked { color: var(--like); }
.row-x { width: 40px; height: 40px; padding: 12px; color: var(--faint); }

/* skeleton */
.sk { background: linear-gradient(90deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .05) 100%); background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; border-radius: 12px; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-row { display: flex; gap: 13px; align-items: center; padding: 8px var(--pad); }
.sk-row .a { width: 50px; height: 50px; border-radius: 10px; }
.sk-row .b { height: 12px; border-radius: 6px; }

.hint { text-align: center; color: var(--dim); font-size: 14px; padding: 36px 32px; line-height: 1.45; }
.loading { display: flex; justify-content: center; padding: 26px 0; }

/* ---------- home footer ---------- */
.invite {
  margin: 30px 16px 0; padding: 22px; border-radius: 26px; border: 1px solid var(--stroke);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), rgba(255, 255, 255, .02), transparent);
}
.invite h4 { margin: 0; font-size: 24px; font-weight: 700; }
.invite p { color: var(--dim); font-size: 14px; margin: 6px 0 16px; line-height: 1.4; }
.invite .btns { display: flex; gap: 10px; }
.wordmark {
  text-align: center; font-size: 88px; font-weight: 700; letter-spacing: -3px; margin-top: 14px; line-height: 1;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .18), transparent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.version { text-align: center; font-size: 11px; color: var(--faint); margin: 6px 0 4px; }

/* ---------- discover ---------- */
.big-card {
  position: relative; flex: none; width: 168px; height: 228px; border-radius: 22px; overflow: hidden;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .08); text-align: left;
}
.big-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.big-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, .92)); }
.big-card .new { position: absolute; left: 12px; top: 12px; z-index: 1; background: #fff; color: #000; font-size: 10px; font-weight: 700; letter-spacing: .6px; padding: 3px 8px; border-radius: 9px; }
.big-card .txt { position: absolute; left: 14px; right: 56px; bottom: 14px; z-index: 1; }
.big-card .nm { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big-card .sb { font-size: 11px; color: #c7c7cc; line-height: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.big-card .pl { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #000; padding: 12px; display: flex; }
.rel-hero { position: relative; margin: 0 16px; height: 208px; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.rel-hero .bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(40px); }
.rel-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .55)); }
.rel-hero .in { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 16px; }
.rel-hero .cvr { width: 124px; height: 124px; border-radius: 16px; object-fit: cover; flex: none; background: var(--surface-high); }
.rel-hero .lbl { font-size: 10px; font-weight: 700; letter-spacing: .8px; color: #a1a1a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-hero .tt { font-size: 22px; font-weight: 700; line-height: 26px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-hero .ar { font-size: 13px; color: #d1d1d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-hero .bt { display: flex; gap: 8px; margin-top: 12px; }
.circle-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); padding: 11px; display: inline-flex; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.tile {
  position: relative; height: 112px; border-radius: 22px; overflow: hidden; text-align: left; border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .15s;
}
.tile:active { transform: scale(.97); }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255, 255, 255, .07), transparent 40%, rgba(0, 0, 0, .35)); }
.tile .ti { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; color: rgba(255, 255, 255, .35); }
.tile .tx { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.tile .tt { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .ts { font-size: 11.5px; color: var(--dim); }
.tiles.small { gap: 10px; }
.tiles.small .tile { height: 66px; border-radius: 16px; }
.tiles.small .tt { font-size: 16px; }

/* ---------- search ---------- */
.search-box {
  display: flex; align-items: center; gap: 10px; height: 52px; margin: 0 16px; padding: 0 4px 0 14px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--stroke);
}
.search-box .ico { width: 20px; height: 20px; color: var(--dim); }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font-size: 17px; }
.search-box input::placeholder { color: var(--faint); }
.search-box input::-webkit-search-cancel-button { display: none; }
.cat-chip { flex: none; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--stroke); font-size: 14px; font-weight: 600; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 8px var(--pad); width: 100%; text-align: left; }
.av { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--glass); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badges { display: inline-flex; gap: 5px; align-items: center; vertical-align: middle; }
.badges img { width: 18px; height: 18px; }

/* ---------- library ---------- */
.lib-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 16px 0; }
.lib-tile { height: 110px; border-radius: 20px; border: 1px solid var(--stroke); padding: 16px; display: flex; flex-direction: column; text-align: left; }
.lib-tile .ico { width: 24px; height: 24px; }
.lib-tile .tt { margin-top: auto; font-size: 17px; font-weight: 600; }
.lib-tile .ts { font-size: 12.5px; color: var(--dim); }
.pl-row { display: flex; align-items: center; gap: 14px; padding: 8px var(--pad); width: 100%; text-align: left; }
.pl-row:active { background: var(--glass); }
.pl-row .cv { width: 56px; height: 56px; border-radius: 10px; flex: none; }
.pl-row .tt { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-row .ts { font-size: 13px; color: var(--dim); }

/* list header (playlist, likes, history) */
.lh { background: linear-gradient(to bottom, var(--surface-high), var(--bg)); padding-bottom: 10px; }
.lh .tools { display: flex; align-items: center; padding: calc(var(--safe-t) + 4px) 4px 0; }
.lh .tools .sp { flex: 1; }
.lh .tools .icon-btn { color: var(--dim); }
.lh .tools .icon-btn:first-child { color: var(--text); }
.lh .info { display: flex; align-items: center; gap: 16px; padding: 4px var(--pad) 0; }
.lh .info .cv { width: 120px; height: 120px; border-radius: 18px; flex: none; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.lh .info h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lh .info .ts { color: var(--dim); font-size: 14px; margin-top: 4px; }
.lh .acts { display: flex; gap: 10px; padding: 16px var(--pad) 0; }

/* ---------- artist page ---------- */
.ah { position: relative; height: 430px; }
.ah > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ah::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 35%, rgba(0, 0, 0, .55) 62%, var(--bg)); }
.ah .glass-back { position: absolute; z-index: 2; left: 12px; top: calc(var(--safe-t) + 12px); width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .14); padding: 12px; display: flex; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ah .in { position: absolute; z-index: 1; left: var(--pad); right: var(--pad); bottom: 8px; }
.ah h1 { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: -1px; line-height: 46px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ah .meta { color: rgba(255, 255, 255, .7); font-size: 14px; margin-top: 4px; }
.ah .btns { display: flex; gap: 10px; margin-top: 18px; }
.latest { position: relative; margin: 8px var(--pad); height: 170px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); display: block; width: calc(100% - 2 * var(--pad)); text-align: left; }
.latest .bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(40px); opacity: .55; }
.latest::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.latest .in { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 16px; }
.latest .cvr { width: 138px; height: 138px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-high); }
.latest .lbl { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: rgba(255, 255, 255, .6); }
.latest .tt { font-size: 22px; font-weight: 700; line-height: 25px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest .ts { font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 4px; }

/* ---------- settings ---------- */
.group-title { font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--faint); padding: 20px 24px 8px; text-transform: uppercase; }
.group { margin: 0 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--stroke); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; min-height: 52px; }
.item + .item, .group > * + .item { border-top: 1px solid rgba(255, 255, 255, .05); }
.item:active { background: var(--glass); }
.item .tx { flex: 1; min-width: 0; }
.item .tt { font-size: 16px; }
.item .ts { font-size: 13px; color: var(--dim); margin-top: 2px; }
.item .ico { width: 18px; height: 18px; color: var(--dim); }
.item.danger .tt { color: #ff6b6b; }
.item-label { font-size: 16px; padding: 14px 16px 0; }
.switch { position: relative; width: 51px; height: 31px; border-radius: 16px; background: var(--surface-high); border: 1px solid var(--stroke); flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 25px; height: 25px; border-radius: 50%; background: #8e8e93; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), background .2s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); background: var(--on-accent); }
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: var(--glass-strong); outline: none; margin: 14px 0 6px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 0; }
.slider-box { padding: 12px 16px; }
.slider-box .hd { display: flex; font-size: 16px; }
.slider-box .hd span:first-child { flex: 1; }
.slider-box .hd span:last-child { color: var(--dim); font-variant-numeric: tabular-nums; }
.link { color: var(--accent); font-size: 14px; font-weight: 600; padding: 4px 0; }
.themes { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }
.theme { width: 72px; text-align: center; }
.theme .sw { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto; border: 2px solid var(--stroke); }
.theme.on .sw { border-color: #fff; }
.theme .nm { font-size: 11.5px; color: var(--dim); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme.on .nm { color: #fff; }
.eq { display: flex; justify-content: space-between; height: 250px; padding: 10px 6px; }
.eq-band { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); }
.eq-band .v { font-variant-numeric: tabular-nums; }
.eq-band .f { color: var(--faint); }
.eq-band input { -webkit-appearance: slider-vertical; appearance: slider-vertical; writing-mode: vertical-lr; direction: rtl; width: 28px; flex: 1; accent-color: var(--accent); }

/* ---------- profile ---------- */
.prof { padding: 14px var(--pad); }
.prof .big-av { position: relative; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 700; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--surface-high)); }
.prof .big-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prof .big-av .spinner { position: absolute; }
.prof .nm { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.prof .nm h2 { margin: 0; font-size: 26px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof .nm .badges img { width: 22px; height: 22px; }
.prof .un { color: var(--dim); font-size: 14px; margin-top: 3px; }
.prof .bio { color: var(--dim); font-size: 14px; margin-top: 4px; line-height: 1.4; }
.prof .btns { display: flex; gap: 10px; margin-top: 14px; }
.counts { display: flex; gap: 26px; padding: 8px var(--pad) 2px; }
.counts .v { font-size: 22px; font-weight: 700; }
.counts .l { font-size: 11.5px; color: var(--dim); }
.ptabs { display: flex; margin-top: 18px; border-bottom: 1px solid var(--stroke); }
.ptab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0 0; color: var(--dim); }
.ptab .ico { width: 20px; height: 20px; }
.ptab i { display: block; height: 2px; width: 0; background: #fff; border-radius: 1px; transition: width .2s; }
.ptab.on { color: #fff; }
.ptab.on i { width: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; padding: 16px var(--pad); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 14px; padding: 16px var(--pad); }
.grid3 .circle, .grid2 .card { width: auto; }

/* ---------- account ---------- */
.auth { padding: 0 24px; }
.auth h1 { font-size: 32px; font-weight: 700; margin: 18px 0 6px; }
.auth p { color: var(--dim); font-size: 14px; margin: 0 0 24px; line-height: 1.4; }
.field { display: block; width: 100%; height: 56px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #fff; padding: 0 16px; font-size: 16px; outline: none; margin-bottom: 12px; transition: border-color .2s; }
.field:focus { border-color: rgba(255, 255, 255, .5); }
.field::placeholder { color: var(--dim); }
textarea.field { height: 96px; padding: 14px 16px; resize: none; }
.err { color: #f87171; font-size: 13px; margin: 4px 0 8px; }
.info { color: var(--dim); font-size: 13px; margin: 4px 0 8px; }
.wide { width: 100%; }
.switch-link { display: block; width: 100%; text-align: center; color: var(--dim); font-size: 14px; padding: 12px; margin-top: 6px; }
.prefix { position: relative; }
.prefix span { position: absolute; left: 16px; top: 18px; color: var(--dim); font-size: 16px; }
.prefix .field { padding-left: 32px; }
.help { color: var(--faint); font-size: 12px; margin: -6px 4px 10px; }

/* ---------- full player ---------- */
.full {
  position: fixed; inset: 0; z-index: 40; background: #000; overflow: hidden;
  transform: translateY(100%); transition: transform .45s cubic-bezier(.2, .9, .25, 1);
  touch-action: none;
}
.full.open { transform: none; }
.full-backdrop { position: absolute; inset: 0; }
.full-backdrop img { position: absolute; inset: -15%; width: 130%; height: 130%; object-fit: cover; filter: blur(70px) saturate(140%); opacity: .55; transition: opacity .7s; }
.full-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 38%, transparent), rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .92)); }
.full-inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 8px) 24px calc(var(--safe-b) + 22px); }
.full-top { display: flex; align-items: center; }
.full-top .icon-btn { padding: 9px; }
.full-top-text { flex: 1; min-width: 0; text-align: center; }
.full-mode { font-size: 12px; font-weight: 600; letter-spacing: .6px; color: var(--dim); }
.full-source { font-size: 12px; color: var(--faint); min-height: 15px; }
.full-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 20px 0; }
.full-stage .cover { width: min(100%, 400px, 100%); max-height: 100%; aspect-ratio: 1; border-radius: 22px; object-fit: cover; background: var(--surface-high); box-shadow: 0 30px 70px rgba(0, 0, 0, .6); transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); animation: coverIn .38s ease both; }
.full.paused .full-stage .cover { transform: scale(.88); }
@keyframes coverIn { from { opacity: 0; transform: scale(.92); } }
.full-stage .lyrics { width: 100%; height: 100%; }
.full-stage .ly { font-size: 27px; line-height: 33px; margin-bottom: 18px; }
.full-stage .hint { padding: 0; }
.full-meta { display: flex; align-items: center; gap: 2px; }
.full-text { flex: 1; min-width: 0; }
.full-title { font-size: 23px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.full-artist { font-size: 17px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.seek { position: relative; height: 40px; margin-top: 8px; display: flex; align-items: center; touch-action: none; cursor: pointer; }
.seek-track { position: relative; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); transition: height .15s; }
.seek.drag .seek-track { height: 6px; }
.seek-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: #fff; }
.seek-knob { position: absolute; top: 50%; width: 0; height: 0; margin: 0; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); transition: width .15s, height .15s; }
.seek.drag .seek-knob { width: 14px; height: 14px; }
.seek-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: -6px; font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 0 2px; }
.play-big { width: 66px; height: 66px; border-radius: 50%; background: #fff; color: #000; padding: 20px; transition: transform .15s; }
.play-big:active { transform: scale(.9); }
.play-big .spinner { width: 24px; height: 24px; }

/* ---------- sheets & dialogs ---------- */
.sheet-wrap, .dialog-wrap { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.sheet-scrim, .dialog-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s; }
.sheet-wrap.open, .dialog-wrap.open { pointer-events: auto; }
.sheet-wrap.open .sheet-scrim, .dialog-wrap.open .dialog-scrim { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto;
  background: #141418; border-radius: 26px 26px 0 0; border-top: 1px solid var(--stroke);
  padding: 8px 0 calc(var(--safe-b) + 14px);
  transform: translateY(100%); transition: transform .4s cubic-bezier(.2, .9, .25, 1);
}
.sheet-wrap.open .sheet { transform: none; }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); margin: 4px auto 12px; }
.sheet h3 { margin: 0; font-size: 22px; font-weight: 700; padding: 0 20px 8px; }
.menu-item { display: block; width: 100%; text-align: left; padding: 15px 24px; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item:active { background: var(--glass); }
.menu-head { display: flex; align-items: center; gap: 14px; padding: 4px 20px 8px; }
.menu-head img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface-high); flex: none; }
.menu-head .tt { font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-head .ts { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dialog {
  position: absolute; left: 50%; top: 50%; width: min(92vw, 400px); max-height: 86vh; overflow-y: auto;
  background: #1a1a1f; border: 1px solid var(--stroke); border-radius: 26px; padding: 22px 20px 12px;
  transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .3s cubic-bezier(.2, .9, .3, 1.1), opacity .2s;
}
.dialog-wrap.open .dialog { transform: translate(-50%, -50%); opacity: 1; }
.dialog h3 { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.dialog .btns { display: flex; justify-content: flex-end; gap: 4px; margin-top: 6px; }
.dialog .tb { padding: 12px 14px; color: var(--accent); font-weight: 600; font-size: 15px; border-radius: 12px; }
.dialog .tb:active { background: var(--glass); }
.dialog .stack { display: flex; flex-direction: column; gap: 8px; }
.ucard { text-align: center; }
.ucard .av { width: 96px; height: 96px; margin: 0 auto; font-size: 34px; }
.ucard .nm { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; font-size: 21px; font-weight: 700; }
.ucard .un { color: var(--dim); font-size: 14px; margin-top: 2px; }
.ucard .bio { margin-top: 10px; font-size: 14px; line-height: 1.4; }
.ucard .since { color: var(--faint); font-size: 12.5px; margin-top: 8px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 20px); z-index: 80;
  transform: translateX(-50%) translateY(10px); opacity: 0; pointer-events: none;
  background: rgba(40, 40, 46, .96); padding: 11px 16px; border-radius: 14px; font-size: 13.5px;
  transition: opacity .25s, transform .25s; max-width: 86vw; text-align: center; border: 1px solid var(--stroke);
}
body.has-mini .toast { bottom: calc(var(--tabs-h) + var(--mini-h) + var(--safe-b) + 24px); }
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (min-width: 700px) and (max-width: 899px) {
  #view { max-width: 720px; left: 50%; transform: translateX(-50%); }
  .mini { left: 50%; right: auto; width: 700px; margin-left: -350px; }
  .full-inner { max-width: 560px; margin: 0 auto; }
}

/* ---------- motion details ---------- */
.tab.bump .ico { animation: tabBump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tabBump { 40% { transform: scale(.82) translateY(1px); } }
.icon-btn.pop svg { animation: heartPop .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes heartPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } }
.icon-btn.liked.pop { position: relative; }
.icon-btn.liked.pop::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid var(--like); animation: ring .55s ease-out forwards; }
@keyframes ring { from { opacity: .8; transform: scale(.5); } to { opacity: 0; transform: scale(1.5); } }
.morph svg { animation: morph .28s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes morph { from { transform: scale(.55) rotate(-12deg); opacity: .3; } }
.mini-row.swap .mini-cover, .mini-row.swap .mini-text { animation: swapIn .45s cubic-bezier(.2, .9, .3, 1.1); }
.mini-row.swap .mini-text { animation-delay: .04s; }
.full-text.swap { animation: swapUp .5s cubic-bezier(.2, .9, .3, 1.05); }
@keyframes swapIn { from { opacity: 0; transform: translateX(22px); } }
@keyframes swapUp { from { opacity: 0; transform: translateY(12px); } }
.pill.live { animation: livePulse 2.2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }
.hero-title { background: linear-gradient(100deg, #fff 30%, color-mix(in srgb, var(--accent) 70%, #fff) 50%, #fff 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: titleSheen 7s ease-in-out infinite; }
@keyframes titleSheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.chip, .lib-tile, .pl-row, .user-row, .circle, .big-card, .menu-item, .item { transition: transform .18s cubic-bezier(.2, .9, .3, 1.2), background-color .2s, color .2s, border-color .2s; }
.chip:active, .lib-tile:active, .circle:active, .big-card:active { transform: scale(.95); }
.cv img { transition: transform .5s cubic-bezier(.2, .9, .3, 1); }
.card:active .cv img, .big-card:active > img { transform: scale(1.06); }
.cascade { animation: rise .45s cubic-bezier(.16, 1, .3, 1) both; }
.full-stage .lyrics { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.full-backdrop img { animation: fadeIn .9s ease both; }
.sk { will-change: background-position; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- artwork fades in once it has loaded ---------- */
img[data-fb] { transition: opacity .35s ease, transform .5s cubic-bezier(.2, .9, .3, 1); }
img[data-fb]:not(.ld) { opacity: 0; }
img.broken { visibility: hidden; }

/* ---------- shared bits of the new player / cards ---------- */
.m-only { }
.side, .d-only, .sarrows, .row-idx, .cv-ring, .pl-note, .pl-play { display: none; }
.p-center, .p-normal { display: contents; }
.mini-cover-wrap { position: relative; flex: none; margin-right: 10px; }
.mini-cover-wrap .mini-cover { margin: 0; }
.cviz, .eqv { display: none; }
.icon-btn svg, .ico svg, .pbtn svg { display: block; }

/* equaliser bars (Windows app: 4 bars 3×18, gap 2.5, scaleY loop) */
.eqv i, .cviz i { display: block; width: 3px; height: 18px; border-radius: 1.5px; background: #fff; transform: scaleY(.5); transform-origin: center; }
.eqv i:nth-child(1), .cviz i:nth-child(1) { transform: scaleY(.35); } .eqv i:nth-child(2), .cviz i:nth-child(2) { transform: scaleY(.95); }
.eqv i:nth-child(3), .cviz i:nth-child(3) { transform: scaleY(.55); } .eqv i:nth-child(4), .cviz i:nth-child(4) { transform: scaleY(.75); }
body.is-playing .current .eqv i, .mini.playing .cviz i { animation: eqA .32s ease-in-out infinite alternate; }
body.is-playing .current .eqv i:nth-child(2), .mini.playing .cviz i:nth-child(2) { animation-name: eqB; animation-duration: .28s; animation-delay: .08s; }
body.is-playing .current .eqv i:nth-child(3), .mini.playing .cviz i:nth-child(3) { animation-name: eqC; animation-duration: .36s; animation-delay: .04s; }
body.is-playing .current .eqv i:nth-child(4), .mini.playing .cviz i:nth-child(4) { animation-name: eqD; animation-duration: .26s; animation-delay: .12s; }
@keyframes eqA { from { transform: scaleY(.35); } to { transform: scaleY(.95); } }
@keyframes eqB { from { transform: scaleY(.95); } to { transform: scaleY(.30); } }
@keyframes eqC { from { transform: scaleY(.55); } to { transform: scaleY(.90); } }
@keyframes eqD { from { transform: scaleY(.75); } to { transform: scaleY(.40); } }

/* ====================================================================== DESKTOP — mirrors the Windows app */
@media (min-width: 900px) {
  :root { --side-w: 250px; --pad: 32px; }
  body { overflow: hidden; }
  .tabs, .m-only { display: none !important; }
  .d-only { display: flex; }

  /* ---- sidebar (#080808, 250 px, МЕНЮ / ПЛЕЙЛИСТЫ, 7 px pills) */
  .side {
    display: flex; flex-direction: column; gap: 3px; position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); z-index: 21;
    padding: 18px 12px 12px; background: #080808; border-right: 1px solid rgba(255, 255, 255, .078);
  }
  body.has-mini .side { padding-bottom: 88px; }
  .side-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.3px; padding: 0 10px 18px; cursor: default; }
  .side-brand img { width: 28px; height: 28px; border-radius: 7px; transition: transform .2s cubic-bezier(.2, .9, .3, 1.3); }
  .side-brand:hover img { transform: rotate(8deg) scale(1.05); }
  .side-cap { color: #555; font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 0 0 6px 10px; margin-top: 2px; }
  .side-sep { height: 1px; background: rgba(255, 255, 255, .06); margin: 14px 10px 14px; }
  .side .tab {
    flex: none; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 7px;
    font-size: 15px; font-weight: 600; color: #888; border: 1px solid transparent; background: transparent;
    transition: background-color .12s, border-color .12s, color .12s, transform .07s ease-out;
  }
  .side .tab .ico { width: 19px; height: 19px; }
  .side .tab:hover:not(.active) { background: rgba(255, 255, 255, .078); border-color: rgba(255, 255, 255, .118); color: rgb(230, 230, 235); }
  .side .tab.active { background: rgba(255, 255, 255, .125); border-color: rgba(255, 255, 255, .19); color: #fff; font-weight: 700; }
  .side .tab:active, .side-item:active { transform: scale(.96); }
  .side .tab.bump .ico { animation: none; }
  .side-pl { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; display: flex; flex-direction: column; gap: 2px; }
  #sidePl { display: flex; flex-direction: column; gap: 2px; }
  .side-item {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 6px; text-align: left; flex: none;
    font-size: 14px; color: #888; border: 1px solid transparent; transition: background-color .12s, border-color .12s, color .12s, transform .07s ease-out;
  }
  .side-item > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-item:hover { background: rgba(255, 255, 255, .078); border-color: rgba(255, 255, 255, .118); color: rgb(230, 230, 235); }
  .side-item .ico { width: 17px; height: 17px; transition: transform .2s ease-out; }
  .side-item.liked .ico { color: #ef4444; }
  .side-item.liked:hover .ico { animation: heartPulse .44s ease-out; }
  @keyframes heartPulse { 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
  .side-item.hist .ico { color: #888; }
  .side-item.hist:hover .ico { transform: rotate(-45deg); }
  .side-item.newpl .ico { width: 16px; height: 16px; color: #666; }
  .side-item.newpl:hover .ico { transform: rotate(90deg); }
  .side-item.settings { font-size: 13px; margin-top: 6px; }
  .side-item.settings .ico { width: 16px; height: 16px; transition: transform .4s ease-out; }
  .side-item.settings:hover .ico { transform: rotate(60deg); }
  .side-item.pl { padding: 6px 12px 6px 8px; }
  .side-item .thumb { position: relative; flex: none; width: 30px; height: 30px; border-radius: 7px; overflow: hidden; background: rgba(255, 255, 255, .094); border: 1px solid rgba(255, 255, 255, .078); display: flex; align-items: center; justify-content: center; }
  .side-item .thumb .ico { width: 14px; height: 14px; color: rgb(120, 120, 128); }
  .side-item .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .side-acc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; margin-top: 6px; text-align: left; border: 1px solid rgba(255, 255, 255, .06); transition: background-color .12s, border-color .12s; }
  .side-acc:hover { background: rgba(255, 255, 255, .078); border-color: rgba(255, 255, 255, .118); }
  .side-acc .av { width: 32px; height: 32px; font-size: 13px; }
  .side-acc .tt { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-acc .ts { font-size: 11.5px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* ---- content */
  #view { left: var(--side-w); padding-bottom: 40px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
  body.has-mini #view { padding-bottom: 110px; }
  .page { max-width: 1320px; margin: 0 auto; padding-top: 26px; }
  .page.flat { padding-top: 0; }
  .head h1 { font-size: 36px; }
  .section h3 { font-size: 22px; }
  .backbar { margin-top: 0; }
  .icon-btn:hover, .round:hover { background: rgba(255, 255, 255, .094); }
  .icon-btn:active, .round:active { background: rgba(255, 255, 255, .157); }

  /* shelves + arrows */
  .sarrows { display: flex; gap: 6px; margin-left: 10px; }
  .sarrows button { width: 30px; height: 30px; border-radius: 50%; padding: 9px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); display: inline-flex; color: #ddd; transition: background-color .12s, transform .1s; }
  .sarrows button:hover { background: rgba(255, 255, 255, .12); }
  .sarrows button:active { transform: scale(.92); }
  .sarrows button:disabled { opacity: .3; cursor: default; }
  .shelf { gap: 16px; }

  /* ---- track card (150 px, 18 px corners, 1 px #14FFFFFF ring; hover: #10FFFFFF tint + equaliser badge) */
  .card { width: 150px; }
  .card.sm { width: 140px; }
  .card:active { transform: none; }
  .cv { border-radius: 18px; background: #16151c; }
  .card .cv img { transition: none; }
  .cv-ring { display: block; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .078); background: transparent; transition: background-color .12s, border-color .12s; pointer-events: none; }
  .card:hover .cv-ring { background: rgba(255, 255, 255, .063); }
  .card .eqv { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 14px; background: rgba(0, 0, 0, .57);
    display: flex; align-items: center; justify-content: center; gap: 2.5px; opacity: 0; transition: opacity .12s; pointer-events: none; }
  .card:hover .eqv { opacity: .85; }
  .card.current .eqv { opacity: 1; }
  .card-title { font-size: 13.5px; font-weight: 600; margin-top: 8px; }
  .card-artist { font-size: 12px; color: #888; }
  .card-meta { font-size: 11px; color: rgba(150, 150, 160, .63); font-weight: 400; }
  .card.current .card-title { color: var(--accent); }
  .card::after, .card .cv::after { content: none !important; }
  /* playlist card (160 px, note badge, white play badge; hover ring #3CFFFFFF + #0EFFFFFF) */
  .pl-card { width: 160px; }
  .pl-card .cv-ring { border-color: rgba(255, 255, 255, .078); }
  .pl-card:hover .cv-ring { border-color: rgba(255, 255, 255, .235); background: rgba(255, 255, 255, .055); }
  .pl-note { display: flex; position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 13px; background: rgba(0, 0, 0, .67); color: #fff; align-items: center; justify-content: center; padding: 6.5px; }
  .pl-play { display: flex; position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 18px; background: #fff; color: #000; align-items: center; justify-content: center; padding: 11.5px 11.5px 11.5px 13.5px; transition: transform .12s; }
  .pl-play:hover { transform: scale(1.08); }
  .pl-play:active { transform: scale(.94); }
  .pl-card .eqv { display: none; }
  .circle { width: 112px; } .circle.lg { width: 136px; }
  .circle .cv { transition: transform .2s ease-out; }
  .circle:hover .cv { transform: scale(1.04); }
  .circle:active { transform: scale(.97); }
  /* discover: photo cards zoom 1.06, tiles 1.03 (as DiscoverPage) */
  .big-card { width: 208px; height: 282px; }
  .big-card > img { transition: transform .25s ease-out; }
  .big-card:hover > img { transform: scale(1.06); }
  .big-card:active { transform: none; }
  .tile { transition: transform .2s ease-out; }
  .tile:hover { transform: scale(1.03); }

  /* ---- track rows (PlaylistPage): #19FFFFFF hover, index → ▶, equaliser for the current track */
  .row { padding: 6px 12px 6px 8px; border-radius: 8px; gap: 12px; }
  .row:hover { background: rgba(255, 255, 255, .098); }
  .row:active { background: rgba(255, 255, 255, .13); }
  .row-idx { display: flex; flex: none; width: 28px; height: 28px; align-items: center; justify-content: center; color: #888; font-size: 13.5px; font-variant-numeric: tabular-nums; }
  .row-idx b { font-weight: 400; }
  .row-idx .ico { display: none; width: 12px; height: 12px; color: #fff; }
  .row-idx .eqv { display: none; gap: 2px; align-items: center; height: 18px; }
  .row-idx .eqv i { width: 2.5px; height: 14px; background: var(--accent); }
  .row:hover .row-idx b, .row.current .row-idx b { display: none; }
  .row:hover .row-idx .ico { display: block; }
  .row.current:not(:hover) .row-idx .eqv { display: flex; }
  .row-cover { width: 44px; height: 44px; border-radius: 7px; }
  .row-cover .playing { display: none !important; }
  .row .icon-btn { width: 32px; height: 32px; padding: 9px; color: rgb(140, 140, 148); opacity: 0; transition: opacity .12s; }
  .row:hover .icon-btn, .row .icon-btn:focus-visible { opacity: 1; }
  .row .row-x { opacity: 0; } .row:hover .row-x { opacity: 1; }
  .pl-row:hover, .user-row:hover, .item:hover { background: rgba(255, 255, 255, .06); }
  .chip:hover:not(.on) { color: #fff; border-color: rgba(255, 255, 255, .3); }
  .pill { transition: transform .11s ease-out, background-color .12s; }
  .pill:hover { transform: scale(1.03); }
  .pill:active { transform: scale(.96); }
  .pill:not(.ghost):not(.accent):hover { background: #e5e5e5; }
  .lyrics .ly:not(.d0):hover { opacity: .45; cursor: pointer; }

  /* hero: controls left, lyrics column right (like the PC home) */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; padding-top: 30px; }
  .hero > * { grid-column: 1; }
  .hero > .lyrics-caption { grid-column: 2; grid-row: 1; margin-top: 0; }
  .hero > .hero-lyrics { grid-column: 2; grid-row: 1 / span 7; height: 360px; margin-top: 0; }
  .hero > .lyrics-caption + .hero-lyrics { grid-row: 2 / span 6; }
  .hero .ly { font-size: 28px; line-height: 34px; }
  .hero-title { font-size: 56px; letter-spacing: -1.5px; }
  .hero .chips { margin: 0; padding: 0; flex-wrap: wrap; }
  .hero .round:hover { transform: scale(1.06); }
  .hero .round { transition: transform .12s, background-color .12s; }

  /* grids and pages */
  .lib-tiles { grid-template-columns: repeat(4, 1fr); }
  .lib-tile { transition: transform .2s ease-out, border-color .12s; }
  .lib-tile:hover { transform: scale(1.03); border-color: rgba(255, 255, 255, .2); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tiles .tile { height: 140px; }
  .tiles.small { grid-template-columns: repeat(6, 1fr); }
  .tiles.small .tile { height: 72px; }
  .grid3 { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .grid2 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .search-box { max-width: 640px; }
  .group, .group-title { max-width: 760px; }
  .auth { max-width: 460px; }
  .rel-hero { height: 240px; max-width: 900px; }
  .rel-hero .cvr { width: 170px; height: 170px; }
  .latest, .invite { max-width: 760px; }
  .lh .info .cv { width: 220px; height: 220px; border-radius: 18px; }
  .lh .info h2 { font-size: 44px; letter-spacing: -1px; -webkit-line-clamp: 2; }
  .lh .info { gap: 26px; padding-top: 12px; }
  .lh .tools { padding-top: 8px; }
  .ah { height: 400px; }
  .ah h1 { font-size: 72px; line-height: 76px; letter-spacing: -2px; }
  .ah .glass-back { top: 16px; }

  /* sheets → centred popovers, dialogs and toast offset by the sidebar */
  .sheet { left: 50%; right: auto; width: 460px; margin-left: calc(-230px + var(--side-w) / 2); bottom: auto; top: 50%; border-radius: 16px; background: #16161b; border: 1px solid rgba(255, 255, 255, .165); max-height: 78vh; transform: translateY(-46%) scale(.97); opacity: 0; transition: transform .25s cubic-bezier(.2, .9, .3, 1.1), opacity .18s; }
  .sheet-wrap.open .sheet { transform: translateY(-50%); opacity: 1; }
  .sheet .grab { display: none; }
  .sheet h3 { padding-top: 12px; }
  .menu-item { padding: 11px 20px; font-size: 14.5px; }
  .menu-item:hover { background: rgba(255, 255, 255, .078); }
  .dialog { margin-left: calc(var(--side-w) / 2); }
  .toast { left: calc(50% + var(--side-w) / 2); bottom: 28px; }
  body.has-mini .toast { bottom: 100px; }

  /* ---- player capsule: 56 px, 28 px corners, #B2101015 glass, #28FFFFFF ring, 16 px from the sides, 14 px from the bottom */
  .mini {
    left: 16px; right: 16px; bottom: 14px; height: 56px; border-radius: 28px; z-index: 22;
    background: rgba(16, 16, 21, .70); border: 1px solid rgba(255, 255, 255, .157); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
    backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%);
  }
  .mini.hidden { transform: translateY(140px); opacity: 0; }
  .mini-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; height: 100%; padding: 0 16px 0 14px; gap: 0; }
  .pbtn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 17px; color: #ddd; padding: 10px; transition: background-color .1s, transform .08s; }
  .pbtn:hover { background: rgba(255, 255, 255, .094); }
  .pbtn:active { background: rgba(255, 255, 255, .157); transform: scale(.94); }
  .pbtn.sm { width: 32px; height: 32px; padding: 9.5px; color: #888; }
  .pbtn.toggle { color: #888; } .pbtn.toggle.rep { color: #666; }
  .pbtn.toggle.on { color: #fff; }
  .pbtn.play { width: 40px; height: 40px; border-radius: 20px; background: #fff; color: #000; padding: 11px; }
  .pbtn.play:hover { background: #e5e5e5; } .pbtn.play:active { background: #ccc; }
  .pbtn.like { color: #777; } .pbtn.like.liked { color: var(--like); }
  .p-left { display: flex; align-items: center; gap: 4px; padding: 3px 5px; }
  .p-right { display: flex; align-items: center; gap: 3px; padding: 3px 0 3px 5px; }
  .p-center { display: block; position: relative; height: 100%; margin: 0 12px; min-width: 0; }
  .p-normal { display: flex; align-items: center; justify-content: center; position: absolute; left: 0; right: 0; top: 0; bottom: 4px; transition: opacity .18s, transform .22s ease-out; }
  .mini-cover-wrap { width: 36px; height: 36px; border-radius: 7px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .145); margin-right: 11px; cursor: pointer; }
  .mini-cover-wrap .mini-cover { width: 100%; height: 100%; border-radius: 0; }
  .cviz { display: none; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); align-items: center; justify-content: center; gap: 2px; }
  .cviz i { height: 16px; }
  .mini.playing .cviz { display: flex; }
  .mini-text { min-width: 0; max-width: 360px; display: flex; flex-direction: column; gap: 2px; }
  .mini-title { font-size: 12.5px; font-weight: 600; cursor: pointer; }
  .mini-artist { font-size: 11px; color: #999; cursor: pointer; }
  .mini-artist:hover { color: #ddd; text-decoration: underline; text-underline-offset: 2px; }
  .p-hit { position: absolute; left: 4px; right: 4px; bottom: 2px; height: 24px; align-items: flex-end; }
  .p-thin { width: 100%; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .11); margin-bottom: 3px; overflow: hidden; transition: opacity .22s; }
  #pThin { height: 100%; width: 0; background: rgba(255, 255, 255, .85); }
  .p-scrub { position: absolute; left: 0; right: 0; top: 50%; margin-top: -14px; height: 28px; align-items: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .18s, transform .22s ease-out; }
  .p-center.scrub .p-normal { opacity: 0; transform: translateY(-10px); pointer-events: none; }
  .p-center.scrub .p-thin { opacity: 0; }
  .p-center.scrub .p-hit { pointer-events: none; }
  .p-center.scrub .p-scrub { opacity: 1; transform: none; pointer-events: auto; transition-duration: .22s; }
  #mCur, #mDur { flex: none; font-size: 11.5px; font-weight: 500; color: #a0a0a0; font-variant-numeric: tabular-nums; }
  #mCur { width: 36px; text-align: right; margin-right: 8px; }
  #mDur { width: 40px; text-align: left; margin-left: 8px; }
  .mseek { flex: 1; height: 28px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
  .mseek-track { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
  #mSeekFill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: #fff; border-radius: 2px; }
  #mSeekKnob { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transform: scale(.8); transition: transform .12s; }
  .mseek:hover #mSeekKnob { transform: scale(1); }
  .pbtn.lyr { position: relative; }
  .pbtn.lyr.on { color: #fff; }
  .lyr-dot { position: absolute; left: 50%; bottom: -3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 2px; background: #fff; display: none; }
  .pbtn.lyr.on .lyr-dot { display: block; }
  /* volume: 34 px speaker that grows into a 156 px glass capsule on hover (hides 350 ms after leaving) */
  .vol-host { position: relative; width: 34px; height: 34px; border-radius: 17px; flex: none; display: flex; align-items: center; justify-content: flex-end; border: 1px solid transparent;
    transition: width .24s ease-out .35s, background-color .2s .35s, border-color .2s .35s; }
  .vol-host:hover, .vol-host:focus-within { width: 156px; background: rgba(34, 34, 40, .9); border-color: rgba(255, 255, 255, .21); transition-delay: 0s; }
  .vol-slide { position: absolute; left: 12px; right: 36px; top: 0; bottom: 0; display: flex; align-items: center; opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .2s .35s, transform .24s .35s; }
  .vol-host:hover .vol-slide, .vol-host:focus-within .vol-slide { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
  .vol { width: 100%; accent-color: #fff; cursor: pointer; margin: 0; }
  .vol-btn { width: 34px !important; height: 34px !important; border-radius: 17px; }
  .vol-host:hover .vol-btn { color: #fff; background: transparent; }
  .mini-progress { display: none; }

  /* ---- full player: cover + controls left, lyrics right */
  .full-inner {
    display: grid; grid-template-columns: minmax(320px, 460px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
    column-gap: 72px; max-width: 1280px; margin: 0 auto; padding: 28px 56px 36px;
  }
  .full-inner > * { grid-column: 1; }
  .full-side { grid-column: 2; grid-row: 1 / -1; min-height: 0; display: flex; align-items: center; justify-content: center; }
  .full-side .lyrics { width: 100%; height: 100%; }
  .full-side .ly { font-size: 36px; line-height: 44px; margin-bottom: 24px; }
  .side-empty { color: var(--dim); text-align: center; font-size: 16px; }
  .side-empty .ico { width: 40px; height: 40px; margin: 0 auto 12px; opacity: .5; }
  #fullLyricsBtn { display: none; }
  .full-stage .cover { max-width: 460px; }
  .full .play-big:hover { transform: scale(1.05); }
  .full .icon-btn:hover { background: rgba(255, 255, 255, .094); }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .vol-host { display: none; }
  .p-right #dEq { display: none; }
  .full-inner { column-gap: 40px; padding: 24px 32px; }
  .hero-title { font-size: 48px; }
}
