/* ============================================================
   AURA — Liquid Sound System
   ============================================================ */
:root {
  --bg: #07070b;
  --bg-soft: #0c0c13;
  --text: rgba(255, 255, 255, 0.96);
  --text-soft: rgba(255, 255, 255, 0.7);
  --muted: rgba(255, 255, 255, 0.46);
  --faint: rgba(255, 255, 255, 0.22);
  --hairline: rgba(255, 255, 255, 0.1);
  --accent: #a78bfa;
  --accent-2: #5eead4;
  --accent-3: #fda4af;
  --accent-rgb: 167, 139, 250;
  --accent-2-rgb: 94, 234, 212;
  --bar-alpha: 0.38;
  --radius: 28px;
  --glass-blur: 30px;
  --panel-alpha: 0.26;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.5), 0 4px 18px rgba(0, 0, 0, 0.22);
  --glass-border: rgba(255, 255, 255, 0.13);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--bg); }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(120% 80% at 50% -10%, #16131f 0%, transparent 42%),
    #07070b;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid rgba(var(--accent-rgb), 0.85); outline-offset: 3px; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(var(--accent-rgb), 0.4); color: #fff; }
.icon { width: 22px; height: 22px; display: block; flex: none; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); }

/* ============================================================
   Ambient universe
   ============================================================ */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-photo {
  position: absolute; inset: -18%;
  background-position: center; background-size: cover;
  filter: blur(100px) saturate(160%) brightness(0.7);
  opacity: 0.6; transform: scale(1.16);
  transition: background-image 1.4s var(--ease-soft), opacity 1.2s ease;
}
.ambient-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 10%, rgba(255,255,255,0.055), transparent 62%),
    linear-gradient(180deg, rgba(7,7,11,.2), rgba(7,7,11,.76) 56%, #07070b 96%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32; mix-blend-mode: screen; transition: background 1.2s ease; }
.blob-a {
  width: 46vw; height: 46vw; left: -12vw; top: -14vw;
  background: radial-gradient(circle at 36% 40%, rgba(var(--accent-rgb), 0.85), transparent 66%);
  animation: blobDriftA 28s ease-in-out infinite alternate;
}
.blob-b {
  width: 40vw; height: 40vw; right: -10vw; top: 2vh;
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent-2-rgb), 0.72), transparent 66%);
  animation: blobDriftB 34s ease-in-out infinite alternate;
}
.blob-c {
  width: 38vw; height: 38vw; left: 32vw; bottom: -22vw;
  background: radial-gradient(circle at 50% 50%, rgba(255, 143, 177, .5), transparent 68%);
  animation: blobDriftC 30s ease-in-out infinite alternate;
}
@keyframes blobDriftA { 0% { transform: translate3d(0,0,0) scale(1); } 55% { transform: translate3d(9vw,7vh,0) scale(1.12); } 100% { transform: translate3d(3vw,15vh,0) scale(0.95); } }
@keyframes blobDriftB { 0% { transform: translate3d(0,0,0) scale(1); } 60% { transform: translate3d(-8vw,9vh,0) scale(1.16); } 100% { transform: translate3d(-3vw,20vh,0) scale(0.98); } }
@keyframes blobDriftC { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-10vw,-6vh,0) scale(1.08); } 100% { transform: translate3d(6vw,-14vh,0) scale(1.2); } }

.ambient-grid {
  position: absolute; left: -20%; right: -20%; bottom: -34vh; height: 72vh;
  background-image:
    linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 62px 62px;
  transform: perspective(520px) rotateX(66deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, transparent 86%);
  opacity: .32;
}
.ambient-grain { position: absolute; inset: 0; background-image: var(--noise); opacity: .045; mix-blend-mode: overlay; }
.ambient-scan {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.03) 48%, transparent 62%);
  animation: scanSlide 12s linear infinite;
  opacity: .7;
}
@keyframes scanSlide { 0% { transform: translateX(-40%); } 100% { transform: translateX(40%); } }

/* ============================================================
   Shell
   ============================================================ */
.app {
  position: relative; z-index: 1;
  height: 100dvh; min-height: 620px;
  display: flex; flex-direction: column;
  padding-bottom: 124px;
}
.glass-panel, .glass-control, .glass-menu {
  background:
    linear-gradient(135deg, rgba(255,255,255,calc(0.06 + var(--panel-alpha) * .06)), rgba(255,255,255,.018) 42%, rgba(255,255,255,.038) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.22);
}
.glass-panel { position: relative; }
.glass-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.11), transparent 38%),
    radial-gradient(90% 70% at 100% 100%, rgba(var(--accent-rgb), .06), transparent 44%);
  mix-blend-mode: overlay;
  opacity: .8;
}
.glass-panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: var(--noise); opacity: .035; mix-blend-mode: overlay;
}
.panel-refraction-off .glass-panel::before,
.panel-refraction-off .glass-panel::after { opacity: 0; }
.panel-refraction-off .playbar::before { opacity: .2; }

.topbar {
  flex: 0 0 78px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  gap: 22px;
  position: relative; z-index: 20;
}
.brand-block { display: flex; align-items: center; gap: 12px; min-width: 226px; }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), .34)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { font-size: 19px; font-weight: 680; letter-spacing: .33em; line-height: 1; }
.brand-sub { margin-top: 6px; font-size: 8px; letter-spacing: .28em; color: var(--muted); font-weight: 560; }
.top-center { display: flex; align-items: center; gap: 8px; justify-content: center; flex: 1; }
.source-status {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
  font-size: 9px; letter-spacing: .18em; color: var(--muted); font-weight: 600;
}
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 10px #6ee7b7; animation: statusPulse 2.8s ease-in-out infinite; }
@keyframes statusPulse { 0%,100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
.top-divider { width: 1px; height: 16px; background: var(--hairline); margin: 0 6px; }
.top-link {
  height: 32px; padding: 0 14px; border-radius: 99px;
  font-size: 12px; color: var(--muted); font-weight: 560;
  transition: color .3s ease, background .3s ease;
}
.top-link:hover { color: var(--text-soft); background: rgba(255,255,255,.04); }
.top-link.is-active { color: var(--text); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 226px; }
.glass-control {
  border-radius: 99px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 26px rgba(0,0,0,.22);
}
.lang-btn { width: 60px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; font-weight: 650; letter-spacing: .1em; color: var(--text-soft); }
.lang-btn .icon { width: 15px; height: 15px; opacity: .7; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  transition: color .24s ease, background .24s ease, transform .24s var(--ease-spring);
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.075); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.93); }
.icon-btn.subtle { width: 34px; height: 34px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.icon-btn.small { width: 28px; height: 28px; }
.icon-btn.small .icon { width: 17px; height: 17px; }
.avatar {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .45), rgba(var(--accent-2-rgb), .24));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 24px rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.18);
}
.avatar-ring { position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .4); animation: avatarSpin 9s linear infinite; }
.avatar-ring::after { content: ""; position: absolute; top: -2px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
@keyframes avatarSpin { to { transform: rotate(360deg); } }
.avatar-core { font-size: 13px; font-weight: 700; letter-spacing: .05em; }

.shell {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(390px, 0.88fr);
  gap: 18px;
  padding: 0 22px;
}

/* ============================================================
   Stage
   ============================================================ */
.stage {
  position: relative; min-height: 0;
  border-radius: clamp(28px, 2.2vw, 40px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(80% 70% at 50% 30%, rgba(var(--accent-rgb), .15), transparent 65%),
    linear-gradient(150deg, rgba(255,255,255,.065), rgba(10,10,17,.44) 48%, rgba(255,255,255,.025));
}
.stage::before { z-index: 1; }
.viz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.stage-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(90% 80% at 50% 36%, transparent 40%, rgba(3,3,7,.32) 78%, rgba(3,3,7,.6) 100%),
    linear-gradient(180deg, rgba(5,5,9,.18), transparent 26%, transparent 64%, rgba(5,5,9,.42));
}
.stage-top {
  position: absolute; top: 20px; left: 22px; right: 20px; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.live-chip {
  display: flex; align-items: center; gap: 9px;
  height: 32px; padding: 0 12px 0 11px;
  border-radius: 99px;
  background: rgba(8,8,13,.28);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px) saturate(150%);
  font-size: 9px; font-weight: 650; letter-spacing: .18em; color: rgba(255,255,255,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.eq-bars { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq-bars i { width: 2px; border-radius: 3px; background: var(--accent-2); animation: eqBounce 1.2s ease-in-out infinite; box-shadow: 0 0 6px rgba(var(--accent-2-rgb), .7); }
.eq-bars i:nth-child(1) { height: 5px; animation-delay: -.3s; }
.eq-bars i:nth-child(2) { height: 10px; animation-delay: -.7s; }
.eq-bars i:nth-child(3) { height: 7px; animation-delay: -.15s; }
.eq-bars i:nth-child(4) { height: 4px; animation-delay: -.55s; }
@keyframes eqBounce { 0%,100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.stage-top-actions { display: flex; align-items: center; gap: 10px; }
.stage-mode-label { font-size: 8px; letter-spacing: .22em; color: rgba(255,255,255,.38); font-weight: 600; }
.stage-art {
  position: absolute; left: 50%; top: 43%; z-index: 3;
  width: clamp(188px, 24vw, 360px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transition: transform .7s var(--ease-out);
  perspective: 900px;
}
.art-glow {
  position: absolute; inset: -34%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .38), rgba(var(--accent-2-rgb), .1) 42%, transparent 68%);
  filter: blur(30px);
  animation: artGlow 6s ease-in-out infinite alternate;
  opacity: .9;
}
@keyframes artGlow { 0% { transform: scale(.94); opacity: .65; } 100% { transform: scale(1.04); opacity: .95; } }
.orbit { position: absolute; border-radius: 50%; pointer-events: none; border: 1px solid rgba(255,255,255,.1); }
.orbit-one { inset: -9%; border-top-color: rgba(var(--accent-2-rgb), .64); border-left-color: rgba(var(--accent-2-rgb), .12); animation: orbitSpin 16s linear infinite; }
.orbit-two { inset: -19%; border-bottom-color: rgba(var(--accent-rgb), .55); border-right-color: rgba(var(--accent-rgb), .08); animation: orbitSpin 26s linear infinite reverse; }
.orbit-three { inset: -31%; border-style: dashed; border-color: rgba(255,255,255,.075); animation: orbitSpin 46s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.stage-cover {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: clamp(20px, 1.7vw, 30px);
  box-shadow: 0 42px 80px rgba(0,0,0,.58), 0 10px 30px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .6s var(--ease-out), box-shadow .6s ease;
  transform-style: preserve-3d;
}
.stage-cover:hover { transform: translateY(-4px) rotateX(1deg); box-shadow: 0 52px 100px rgba(0,0,0,.64), 0 14px 34px rgba(0,0,0,.36), 0 0 0 1px rgba(255,255,255,.3); }
.stage-cover:active { transform: scale(.985); }
.stage-artwork { width: 100%; height: 100%; border-radius: inherit; }
.cover-sheen {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.22), transparent 26%, transparent 64%, rgba(255,255,255,.09));
  mix-blend-mode: screen; opacity: .8;
}
.cover-edge { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 -30px 50px rgba(0,0,0,.16); }
.stage-floating-tag {
  position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 99px;
  background: rgba(8,8,13,.66); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
  font-size: 8px; font-weight: 700; letter-spacing: .15em; white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
}
.tag-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }

.stage-bottom {
  position: absolute; left: 28px; right: 24px; bottom: 24px; z-index: 4;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.stage-meta { min-width: 0; max-width: 68%; }
.stage-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 8.5px; letter-spacing: .19em; color: rgba(255,255,255,.46); font-weight: 620;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eyebrow-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.3); flex: none; }
.stage-title {
  margin: 10px 0 5px;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: .98; font-weight: 660; letter-spacing: -.045em;
  text-shadow: 0 6px 40px rgba(0,0,0,.4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stage-artist { margin: 0; font-size: 13px; font-weight: 480; color: rgba(255,255,255,.62); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-lyric {
  margin: 12px 0 0; min-height: 18px;
  font-size: 12px; line-height: 1.5; color: rgba(var(--accent-2-rgb), .82);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 480px;
  opacity: 0; transform: translateY(5px); transition: opacity .5s ease, transform .5s ease;
  text-shadow: 0 0 22px rgba(var(--accent-2-rgb), .28);
}
.stage-lyric.has-line { opacity: 1; transform: none; }
.stage-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.round-action {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,.74);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.2);
  transition: transform .25s var(--ease-spring), background .25s ease, color .25s ease;
}
.round-action:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); color: #fff; }
.round-action:active { transform: scale(.93); }
.round-action .icon { width: 19px; height: 19px; }
.round-primary {
  width: 54px; height: 54px;
  color: #0a0a10;
  background: linear-gradient(145deg, #fff, rgba(255,255,255,.82));
  border-color: rgba(255,255,255,.6);
  box-shadow: 0 12px 36px rgba(0,0,0,.42), 0 0 34px rgba(var(--accent-rgb), .22), inset 0 -2px 4px rgba(0,0,0,.18);
}
.round-primary:hover { transform: translateY(-2px) scale(1.03); background: #fff; }
.round-primary .icon { width: 22px; height: 22px; }
.round-primary.is-playing .icon-play { display: none; }
.round-primary .icon-pause { display: none; }
.round-primary.is-playing .icon-pause { display: block; }

.stage-styles {
  position: absolute; right: 18px; top: 50%; z-index: 6;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 3px;
  padding: 5px; border-radius: 18px;
  background: rgba(8,8,13,.3);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.24);
  opacity: .84; transition: opacity .3s ease;
}
.stage-styles:hover { opacity: 1; }
.style-btn {
  width: 45px; height: 45px; border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: rgba(255,255,255,.45);
  transition: color .25s ease, background .25s ease, transform .25s var(--ease-spring);
}
.style-btn .icon { width: 18px; height: 18px; }
.style-btn span { font-size: 7px; letter-spacing: .04em; font-weight: 600; }
.style-btn:hover { color: rgba(255,255,255,.8); background: rgba(255,255,255,.055); }
.style-btn.is-active { color: #0b0b11; background: linear-gradient(145deg, #fff, rgba(255,255,255,.8)); box-shadow: 0 5px 16px rgba(0,0,0,.28); }
.stage-corner-note {
  position: absolute; right: 25px; bottom: 92px; z-index: 4;
  display: flex; align-items: center; gap: 6px;
  font-size: 8px; letter-spacing: .08em; color: rgba(255,255,255,.28);
  pointer-events: none;
}
.stage-corner-note .icon { width: 12px; height: 12px; opacity: .7; }
.stage.is-playing .art-glow { animation-duration: 2.8s; }
.stage.is-playing .orbit-one { animation-duration: 9s; }
.stage.is-playing .orbit-two { animation-duration: 15s; }
.stage.is-playing .stage-art { transform: translate(-50%, -50%) scale(1.015); }
.stage.is-loading .stage-artwork { opacity: .55; }
.stage.is-loading .stage-cover { animation: coverBreathe 1.8s ease-in-out infinite; }
@keyframes coverBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(.985); } }

/* Artwork primitive */
.artwork {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(140deg, var(--art-1, #7c3aed), var(--art-2, #0ea5e9) 52%, var(--art-3, #f472b6));
  transform: translateZ(0);
}
.artwork img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; opacity: 0; transition: opacity .55s ease; }
.artwork.is-loaded img { opacity: 1; }
.art-fallback {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(90% 80% at 18% 20%, color-mix(in srgb, var(--art-1) 86%, white) 0%, transparent 52%),
    radial-gradient(80% 90% at 82% 76%, var(--art-2) 0%, transparent 58%),
    linear-gradient(145deg, var(--art-3), var(--art-1) 58%, #08080d);
  display: flex; align-items: center; justify-content: center;
}
.art-fallback::before {
  content: ""; position: absolute; inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 0 50px rgba(255,255,255,.07);
  transform: rotate(-18deg) scaleX(.72);
}
.art-fallback::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--noise); opacity: .1; mix-blend-mode: overlay;
}
.art-initial {
  position: relative; z-index: 1;
  font-size: clamp(42px, 14cqw, 150px); font-weight: 640; letter-spacing: -.08em;
  color: rgba(255,255,255,.86);
  text-shadow: 0 8px 50px rgba(0,0,0,.3);
  mix-blend-mode: soft-light;
  text-transform: uppercase;
}
.artwork.no-cover .art-fallback { opacity: 1; }
.artwork::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: var(--noise); opacity: .055; mix-blend-mode: overlay;
}
.artwork .art-vinyl {
  position: absolute; right: -12%; top: 18%; width: 52%; aspect-ratio: 1; border-radius: 50%; z-index: 0;
  background: repeating-radial-gradient(circle at center, rgba(0,0,0,.42) 0 1px, rgba(255,255,255,.05) 2px 3px);
  opacity: .12;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Library / search
   ============================================================ */
.library {
  min-height: 0;
  display: flex; flex-direction: column;
  border-radius: clamp(26px, 2vw, 36px);
  overflow: hidden;
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(var(--accent-2-rgb), .045), transparent 54%),
    linear-gradient(155deg, rgba(255,255,255,.062), rgba(10,10,17,.34));
}
.library::before { z-index: 1; }
.library-head { position: relative; z-index: 4; display: flex; gap: 10px; padding: 18px 18px 10px; }
.search-shell {
  position: relative; flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.search-shell:focus-within {
  border-color: rgba(var(--accent-rgb), .55);
  background: rgba(255,255,255,.085);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .08), inset 0 1px 0 rgba(255,255,255,.12);
}
.search-icon { width: 19px; height: 19px; color: rgba(255,255,255,.44); }
.search-shell input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 13.5px; font-weight: 480; letter-spacing: .01em;
}
.search-shell input::placeholder { color: rgba(255,255,255,.32); }
.search-shortcut {
  flex: none; height: 21px; padding: 0 7px; border-radius: 6px;
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
  font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,.34);
}
.search-shell:focus-within .search-shortcut { opacity: 0; }
.search-clear { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.07); flex: none; }
.search-clear .icon { width: 12px; height: 12px; }
.search-clear:hover { color: #fff; background: rgba(255,255,255,.12); }
.search-go {
  width: 48px; height: 48px; flex: none; border-radius: 16px;
  display: grid; place-items: center;
  color: #0a0a10;
  background: linear-gradient(145deg, #fff, rgba(255,255,255,.82));
  box-shadow: 0 8px 22px rgba(0,0,0,.25), 0 0 22px rgba(var(--accent-rgb), .14), inset 0 -2px 3px rgba(0,0,0,.15);
  transition: transform .25s var(--ease-spring), box-shadow .25s ease;
}
.search-go .icon { width: 19px; height: 19px; }
.search-go:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(0,0,0,.32), 0 0 30px rgba(var(--accent-rgb), .24); }
.search-go:active { transform: scale(.94); }
.provider-filter {
  position: relative; z-index: 4;
  display: flex; align-items: center; gap: 7px;
  padding: 4px 18px 12px;
  overflow-x: auto; scrollbar-width: none;
}
.provider-filter::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none; height: 30px; padding: 0 11px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.44); font-size: 10.5px; font-weight: 560;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.055);
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.filter-chip:hover { color: var(--text-soft); background: rgba(255,255,255,.07); }
.filter-chip.is-active { color: #fff; background: rgba(var(--accent-rgb), .14); border-color: rgba(var(--accent-rgb), .34); }
.filter-chip small { color: rgba(255,255,255,.28); font-size: 8px; font-family: var(--mono); }
.filter-chip.is-active small { color: rgba(255,255,255,.6); }
.provider-mini { width: 14px; height: 14px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 6px; font-weight: 800; letter-spacing: -.02em; color: #fff; flex: none; }
.provider-mini .icon { width: 10px; height: 10px; }
.provider-mini[data-p="netease"] { background: linear-gradient(145deg, #ff5a5f, #c81e2b); }
.provider-mini[data-p="tencent"] { background: linear-gradient(145deg, #46d697, #079b63); }
.provider-mini[data-p="kugou"] { background: linear-gradient(145deg, #52a8ff, #1665d8); }
.provider-mini[data-p="qishui"] { background: linear-gradient(145deg, #ffd84d, #ff7a00); color: #201600; }
.provider-mini[data-p="apple"] { background: linear-gradient(145deg, #fa5c7b, #8b5cf6); }
.provider-mini[data-p="all"] { background: rgba(255,255,255,.12); }

.library-scroll { position: relative; z-index: 2; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 18px 26px; scroll-behavior: smooth; }
.library-foot {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 18px 13px;
  border-top: 1px solid rgba(255,255,255,.045);
  font-size: 8px; letter-spacing: .04em; color: rgba(255,255,255,.25);
}
.foot-dot { width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,.24); }

.home-intro { padding: 8px 0 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.intro-kicker { display: flex; align-items: center; gap: 7px; font-size: 8px; font-weight: 650; letter-spacing: .22em; color: rgba(var(--accent-2-rgb), .66); }
.intro-kicker::before { content: ""; width: 16px; height: 1px; background: rgba(var(--accent-2-rgb), .55); }
.home-intro h2 { margin: 8px 0 0; font-size: clamp(22px, 2.1vw, 31px); font-weight: 630; letter-spacing: -.04em; line-height: 1.05; }
.home-intro .intro-date { font-size: 9px; color: var(--muted); letter-spacing: .1em; white-space: nowrap; padding-bottom: 4px; }

/* Hero featured card */
.feature-card {
  position: relative; overflow: hidden;
  min-height: 168px; border-radius: 22px;
  padding: 20px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  border: 1px solid rgba(255,255,255,.13);
  background:
    radial-gradient(100% 140% at 10% 10%, rgba(var(--accent-rgb), .52), transparent 58%),
    radial-gradient(90% 120% at 92% 100%, rgba(var(--accent-2-rgb), .36), transparent 56%),
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.02));
  box-shadow: 0 22px 46px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.16);
  cursor: pointer;
  isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.2); }
.feature-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--noise); opacity: .06; mix-blend-mode: overlay;
}
.feature-card::after {
  content: ""; position: absolute; right: -10%; top: -50%; width: 72%; height: 180%;
  background: radial-gradient(ellipse, rgba(255,255,255,.22), transparent 64%);
  transform: rotate(18deg); filter: blur(20px); opacity: .55;
}
.feature-copy { position: relative; z-index: 2; min-width: 0; }
.feature-label { display: flex; align-items: center; gap: 6px; font-size: 8px; letter-spacing: .18em; font-weight: 700; color: rgba(255,255,255,.62); text-transform: uppercase; }
.feature-label .icon { width: 12px; height: 12px; }
.feature-title { margin: 8px 0 4px; font-size: clamp(24px, 2.5vw, 34px); line-height: 1; font-weight: 680; letter-spacing: -.045em; text-shadow: 0 4px 22px rgba(0,0,0,.24); }
.feature-artist { margin: 0; font-size: 11px; color: rgba(255,255,255,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 270px; }
.feature-play {
  position: relative; z-index: 3; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  color: #0b0b11;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 30px rgba(0,0,0,.32), inset 0 -2px 4px rgba(0,0,0,.16);
  transition: transform .3s var(--ease-spring), background .2s ease;
}
.feature-play:hover { transform: scale(1.07); background: #fff; }
.feature-play .icon { width: 20px; height: 20px; margin-left: 2px; }
.feature-art-thumb {
  position: absolute; right: 77px; bottom: 20px; width: 68px; height: 68px; border-radius: 16px;
  transform: rotate(7deg) translateY(4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.18);
  opacity: .95; transition: transform .5s var(--ease-out);
  z-index: 1;
}
.feature-card:hover .feature-art-thumb { transform: rotate(3deg) translateY(-2px) scale(1.03); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 24px 0 11px; }
.section-head h3 { margin: 0; font-size: 13px; letter-spacing: -.01em; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.section-head h3 .count { font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,.3); font-weight: 400; }
.section-head .section-action { font-size: 9px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; transition: color .2s ease; }
.section-head .section-action .icon { width: 12px; height: 12px; }
.section-head .section-action:hover { color: #fff; }

/* For you cards */
.for-you-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.fy-card {
  position: relative; padding: 7px 7px 9px; border-radius: 14px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.055);
  text-align: left; min-width: 0;
  transition: transform .3s var(--ease-out), background .3s ease, border-color .3s ease;
}
.fy-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.11); }
.fy-art { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.fy-art .artwork { width: 100%; height: 100%; }
.fy-art .fy-play {
  position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: #0b0b11; background: rgba(255,255,255,.92);
  opacity: 0; transform: translateY(4px) scale(.9); transition: opacity .25s ease, transform .3s var(--ease-spring);
  box-shadow: 0 5px 14px rgba(0,0,0,.3);
}
.fy-art .fy-play .icon { width: 12px; height: 12px; margin-left: 1px; }
.fy-card:hover .fy-play { opacity: 1; transform: none; }
.fy-title { margin: 8px 2px 1px; font-size: 10.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-artist { margin: 0 2px; font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-card .provider-mini { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; border-radius: 5px; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.fy-card .provider-mini .icon { width: 10px; height: 10px; }

/* Trending rows */
.track-list { display: flex; flex-direction: column; gap: 1px; }
.track-row {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center;
  gap: 11px; min-height: 56px; padding: 6px 8px 6px 6px; border-radius: 12px;
  cursor: pointer; text-align: left;
  transition: background .22s ease, transform .22s ease;
}
.track-row:hover { background: rgba(255,255,255,.065); }
.track-row.is-current { background: rgba(var(--accent-rgb), .09); }
.track-row.is-current::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; border-radius: 2px;
  background: var(--accent-2); box-shadow: 0 0 10px rgba(var(--accent-2-rgb), .8);
}
.row-art { position: relative; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; }
.row-art .artwork { width: 100%; height: 100%; }
.row-art .row-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.42); color: #fff;
  opacity: 0; transition: opacity .2s ease;
  backdrop-filter: blur(2px);
}
.row-art .row-play .icon { width: 16px; height: 16px; margin-left: 1px; }
.track-row:hover .row-play { opacity: 1; }
.row-main { min-width: 0; }
.row-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.row-title { font-size: 12px; font-weight: 550; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title .explicit { width: 12px; height: 12px; border-radius: 2px; display: inline-grid; place-items: center; background: rgba(255,255,255,.16); font-size: 7px; font-weight: 700; color: rgba(255,255,255,.7); }
.row-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; min-width: 0; font-size: 9.5px; color: var(--muted); }
.row-sub .dot { width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,.24); flex: none; }
.row-sub .album { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .7; }
.row-side { display: flex; align-items: center; gap: 4px; color: rgba(255,255,255,.34); }
.row-side .quality-mark { font-family: var(--mono); font-size: 7px; letter-spacing: .04em; padding: 3px 4px; border-radius: 4px; border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.row-side .row-action { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.4); opacity: 0; transition: opacity .2s ease, color .2s ease, background .2s ease; }
.row-side .row-action .icon { width: 15px; height: 15px; }
.track-row:hover .row-action { opacity: 1; }
.row-side .row-action:hover { color: #fff; background: rgba(255,255,255,.09); }
.row-index { font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,.24); width: 16px; text-align: right; }
.row-duration { font-family: var(--mono); font-size: 8.5px; color: rgba(255,255,255,.26); width: 32px; text-align: right; }

/* Mix cards */
.mix-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.mix-card {
  position: relative; overflow: hidden; text-align: left;
  min-height: 88px; padding: 14px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(140deg, var(--m1), var(--m2) 56%, var(--m3));
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.mix-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.2); }
.mix-card::before {
  content: ""; position: absolute; right: -20%; bottom: -60%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24); box-shadow: 0 0 0 18px rgba(255,255,255,.045), 0 0 0 40px rgba(255,255,255,.03);
  opacity: .8;
}
.mix-card::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .08; mix-blend-mode: overlay; }
.mix-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.17); backdrop-filter: blur(8px); margin-bottom: 11px; }
.mix-icon .icon { width: 13px; height: 13px; }
.mix-title { position: relative; z-index: 1; margin: 0; font-size: 11px; font-weight: 620; letter-spacing: -.01em; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.mix-sub { position: relative; z-index: 1; margin: 3px 0 0; font-size: 8px; color: rgba(255,255,255,.64); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mix-arrow { position: absolute; right: 11px; top: 11px; width: 20px; height: 20px; display: grid; place-items: center; opacity: .55; }
.mix-arrow .icon { width: 13px; height: 13px; }

.hot-searches { display: flex; flex-wrap: wrap; gap: 6px; }
.hot-chip {
  height: 27px; padding: 0 10px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.055);
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.hot-chip:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.hot-chip .icon { width: 11px; height: 11px; opacity: .5; }
.hot-chip:nth-child(1) .rank, .hot-chip:nth-child(2) .rank, .hot-chip:nth-child(3) .rank { color: var(--accent-2); }
.hot-chip .rank { font-family: var(--mono); font-size: 8px; opacity: .6; }

/* Search results */
.search-head { padding: 6px 0 12px; }
.search-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.search-title h2 { margin: 0; font-size: 19px; font-weight: 630; letter-spacing: -.03em; }
.search-title h2 em { font-style: normal; color: var(--accent-2); }
.search-meta { margin: 5px 0 0; font-size: 9px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.search-loading-note { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--muted); padding: 4px 0 8px; }
.pulse-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); animation: statusPulse 1.2s ease-in-out infinite; }
.result-group { padding-bottom: 4px; }
.result-group + .result-group { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.05); padding-top: 14px; }
.group-title { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.group-title small { color: rgba(255,255,255,.25); font-family: var(--mono); font-size: 8px; font-weight: 400; }
.group-title .line { flex: 1; height: 1px; background: rgba(255,255,255,.055); }
.partial-note { display: flex; gap: 7px; align-items: flex-start; margin: 0 0 10px; padding: 9px 10px; border-radius: 9px; background: rgba(255,190,80,.07); border: 1px solid rgba(255,190,80,.14); font-size: 9px; line-height: 1.5; color: rgba(255,220,160,.7); }
.empty-state { padding: 52px 20px 60px; text-align: center; }
.empty-orb { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(var(--accent-rgb), .38), rgba(255,255,255,.035) 68%); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 0 50px rgba(var(--accent-rgb), .15); }
.empty-orb .icon { width: 25px; height: 25px; color: rgba(255,255,255,.55); }
.empty-state h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.empty-state p { margin: 0 auto; max-width: 290px; font-size: 10px; line-height: 1.7; color: var(--muted); }
.empty-tips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; }

/* Recent */
.recent-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 0 8px; }
.recent-chip { height: 28px; padding: 0 9px 0 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px; font-size: 9.5px; color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.055); }
.recent-chip:hover { color: #fff; background: rgba(255,255,255,.08); }
.recent-chip .icon { width: 11px; height: 11px; opacity: .4; }
.recent-clear { font-size: 8.5px; color: rgba(255,255,255,.3); padding: 4px 5px; }
.recent-clear:hover { color: rgba(255,255,255,.65); }

/* Skeletons */
.skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.04); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.08) 48%, transparent 76%); animation: skeletonShine 1.7s ease-in-out infinite; }
@keyframes skeletonShine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.home-skeleton { padding-top: 8px; }
.skeleton-hero { height: 168px; border-radius: 22px; }
.skeleton-title { width: 84px; height: 12px; border-radius: 5px; margin: 24px 0 12px; }
.skeleton-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.skeleton-card { aspect-ratio: .82; border-radius: 14px; }
.load-more { display: flex; justify-content: center; padding: 18px 0 6px; }
.load-more button { height: 32px; padding: 0 16px; border-radius: 9px; font-size: 9.5px; color: var(--muted); border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.035); }
.load-more button:hover { color: #fff; background: rgba(255,255,255,.07); }


/* ============================================================
   Playbar — liquid glass
   ============================================================ */
.playbar {
  position: fixed; left: 18px; right: 18px; bottom: 16px; z-index: 40;
  height: 94px;
  border-radius: var(--radius);
  padding: 11px 14px;
  display: grid;
  grid-template-columns: minmax(215px, 1fr) minmax(360px, 1.35fr) minmax(215px, 1fr);
  align-items: center;
  gap: 14px;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255,255,255,calc(var(--bar-alpha) * .32)), rgba(10,10,16,calc(var(--bar-alpha) * .96)) 42%, rgba(20,18,30,calc(var(--bar-alpha) * .9))),
    rgba(12,12,18,var(--bar-alpha));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(190%);
  backdrop-filter: blur(var(--glass-blur)) saturate(190%);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    0 26px 70px rgba(0,0,0,.55),
    0 6px 18px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.19),
    inset 0 -1px 0 rgba(0,0,0,.3);
  transition: background .35s ease, border-radius .3s ease, height .35s var(--ease-out);
  isolation: isolate;
}
.playbar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 130% at 12% 0%, rgba(var(--accent-rgb), .16), transparent 60%),
    radial-gradient(50% 130% at 92% 100%, rgba(var(--accent-2-rgb), .1), transparent 64%),
    linear-gradient(110deg, rgba(255,255,255,.09), transparent 22%, transparent 72%, rgba(255,255,255,.06));
  mix-blend-mode: screen;
  opacity: .9;
}
.playbar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background-image: var(--noise); opacity: .045; mix-blend-mode: overlay;
}
.playbar-ambient {
  position: absolute; left: 0; top: 0; bottom: 0; width: 46%; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(80% 100% at 20% 50%, rgba(var(--accent-rgb), .12), transparent 70%);
  opacity: .9; filter: blur(20px);
}
.pb-track { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pb-art {
  position: relative; width: 60px; height: 60px; flex: none; border-radius: 15px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.12);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.pb-art:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.24); }
.pb-artwork { width: 100%; height: 100%; border-radius: inherit; }
.pb-art-ring {
  position: absolute; inset: -2px; border-radius: inherit; border: 1px solid rgba(var(--accent-2-rgb), .4); opacity: 0;
  transition: opacity .4s ease;
}
.playbar.is-playing .pb-art-ring { opacity: 1; animation: ringPulse 2.8s ease-in-out infinite; }
@keyframes ringPulse { 0%,100% { transform: scale(1); opacity: .4; } 50% { transform: scale(1.035); opacity: .85; } }
.pb-art-hover {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: rgba(0,0,0,.45); backdrop-filter: blur(2px); opacity: 0;
  transition: opacity .2s ease;
}
.pb-art-hover .icon { width: 18px; height: 18px; }
.pb-art:hover .pb-art-hover { opacity: 1; }
.pb-meta { min-width: 0; }
.pb-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pb-title { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vip-mark { flex: none; font-size: 6.5px; font-weight: 800; letter-spacing: .04em; color: #ffd38a; padding: 2px 4px; border-radius: 3px; background: linear-gradient(135deg, rgba(255,180,60,.23), rgba(255,120,40,.13)); border: 1px solid rgba(255,190,90,.22); }
.pb-sub { display: flex; align-items: center; gap: 7px; margin-top: 4px; min-width: 0; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-provider { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 8px; letter-spacing: .03em; color: rgba(255,255,255,.42); }
.pb-provider:empty { display: none; }
.pb-provider .provider-mini { width: 12px; height: 12px; border-radius: 4px; font-size: 5px; }
.pb-provider .provider-mini .icon { width: 8px; height: 8px; }
.like-btn .icon-heart-fill { display: none; }
.like-btn.is-liked { color: #ff8fa6; }
.like-btn.is-liked .icon-heart { display: none; }
.like-btn.is-liked .icon-heart-fill { display: block; }
.pb-track .like-btn { flex: none; width: 30px; height: 30px; margin-left: 2px; opacity: .6; }
.pb-track .like-btn:hover, .pb-track .like-btn.is-liked { opacity: 1; }
.pb-track .like-btn .icon { width: 16px; height: 16px; }

.pb-center { display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-width: 0; padding: 0 6px; }
.transport { display: flex; align-items: center; justify-content: center; gap: 9px; }
.transport .icon-btn { color: rgba(255,255,255,.6); }
.transport .icon-btn:hover { color: #fff; }
.transport-mini { width: 29px; height: 29px; opacity: .65; }
.transport-mini .icon { width: 16px; height: 16px; }
.transport-mini.is-active { color: var(--accent-2); opacity: 1; }
.transport-main { width: 31px; height: 31px; }
.transport-main .icon { width: 18px; height: 18px; }
.play-button {
  position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  color: #09090d;
  background: linear-gradient(145deg, #fff, rgba(255,255,255,.82));
  box-shadow: 0 8px 20px rgba(0,0,0,.32), inset 0 -2px 4px rgba(0,0,0,.18), 0 0 20px rgba(var(--accent-rgb), .1);
  transition: transform .25s var(--ease-spring), box-shadow .25s ease;
}
.play-button:hover { transform: scale(1.055); box-shadow: 0 12px 26px rgba(0,0,0,.4), inset 0 -2px 4px rgba(0,0,0,.16), 0 0 30px rgba(var(--accent-rgb), .24); }
.play-button:active { transform: scale(.94); }
.play-button .icon { width: 19px; height: 19px; grid-area: 1/1; }
.play-button .icon-play { margin-left: 2px; }
.play-button .icon-pause, .play-button .icon-spinner { display: none; }
.playbar.is-playing .play-button .icon-play, .now-playing.is-playing .np-play .icon-play { display: none; }
.playbar.is-playing .play-button .icon-pause, .now-playing.is-playing .np-play .icon-pause { display: block; }
.playbar.is-loading .play-button .icon-play,
.playbar.is-loading .play-button .icon-pause,
.now-playing.is-loading .np-play .icon-play,
.now-playing.is-loading .np-play .icon-pause { display: none; }
.playbar.is-loading .play-button .icon-spinner,
.now-playing.is-loading .np-play .icon-spinner { display: block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.play-ring { position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); opacity: 0; transition: opacity .3s ease; }
.playbar.is-playing .play-ring { opacity: 1; border-color: rgba(var(--accent-2-rgb), .28); animation: playRingPulse 2.6s ease-in-out infinite; }
@keyframes playRingPulse { 0%,100% { transform: scale(1); opacity: .3; } 50% { transform: scale(1.08); opacity: .7; } }

.timeline-wrap { display: flex; align-items: center; gap: 9px; min-width: 0; }
.time { font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,.32); width: 31px; flex: none; font-variant-numeric: tabular-nums; }
.time.current { text-align: right; }
.timeline { position: relative; flex: 1; height: 14px; display: flex; align-items: center; cursor: pointer; min-width: 0; }
.timeline-rail { position: relative; width: 100%; height: 3px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: visible; }
.timeline-buffer { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: inherit; background: rgba(255,255,255,.12); }
.timeline-played { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: inherit; background: linear-gradient(90deg, rgba(var(--accent-rgb), .86), var(--accent-2)); box-shadow: 0 0 10px rgba(var(--accent-2-rgb), .55); }
.timeline-thumb {
  position: absolute; right: -4px; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; transform: translateY(-50%) scale(.4); opacity: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 2px 8px rgba(0,0,0,.4);
  transition: transform .2s var(--ease-spring), opacity .2s ease;
}
.timeline:hover .timeline-thumb, .timeline.is-dragging .timeline-thumb { transform: translateY(-50%) scale(1); opacity: 1; }
.timeline-hover { position: absolute; top: -6px; left: 0; transform: translateX(-50%); padding: 3px 6px; border-radius: 4px; background: rgba(10,10,15,.82); border: 1px solid rgba(255,255,255,.1); font-family: var(--mono); font-size: 7px; color: rgba(255,255,255,.7); opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.timeline:hover .timeline-hover { opacity: 1; }

.pb-tools { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }
.pb-tools .icon-btn { width: 32px; height: 32px; color: rgba(255,255,255,.5); }
.pb-tools .icon-btn:hover { color: #fff; }
.pb-tools .icon-btn .icon { width: 17px; height: 17px; }
.mix-badge {
  display: inline-flex; opacity: 0; visibility: hidden; align-items: center; gap: 5px;
  height: 24px; padding: 0 8px; margin-right: 5px;
  border-radius: 6px;
  background: rgba(var(--accent-2-rgb), .08); border: 1px solid rgba(var(--accent-2-rgb), .2);
  font-size: 6.5px; font-weight: 750; letter-spacing: .12em; color: rgba(var(--accent-2-rgb), .9);
  white-space: nowrap;
  transition: opacity .25s ease, visibility .25s;
}
.mix-badge.is-visible { opacity: 1; visibility: visible; }
.mix-icon { display: flex; align-items: flex-end; gap: 1.5px; height: 8px; }
.mix-icon i { width: 1.5px; background: var(--accent-2); border-radius: 2px; animation: eqBounce .9s ease-in-out infinite; }
.mix-icon i:nth-child(1) { height: 4px; }
.mix-icon i:nth-child(2) { height: 8px; animation-delay: -.4s; }
.quality-wrap { position: relative; }
.quality-btn {
  height: 26px; padding: 0 7px; margin: 0 3px; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 7.5px; font-weight: 500; letter-spacing: .04em;
  color: rgba(255,255,255,.48);
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035);
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.quality-btn:hover { color: #fff; background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.14); }
.quality-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 6px var(--accent-2); }
.quality-btn .chevron { width: 9px; height: 9px; opacity: .45; }
.quality-menu {
  position: absolute; right: 0; bottom: calc(100% + 16px); z-index: 60;
  width: 230px; padding: 9px;
  border-radius: 17px;
  background: rgba(18,18,26,.78);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
  animation: menuIn .22s var(--ease-out);
  transform-origin: bottom right;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.glass-menu { background: rgba(17,17,24,.8); -webkit-backdrop-filter: blur(38px) saturate(175%); backdrop-filter: blur(38px) saturate(175%); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 26px 70px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.13); }
.menu-head { padding: 5px 8px 9px; font-size: 8px; letter-spacing: .18em; font-weight: 650; color: rgba(255,255,255,.36); text-transform: uppercase; }
.menu-option {
  width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px;
  padding: 8px; border-radius: 9px; text-align: left;
  transition: background .18s ease;
}
.menu-option:hover { background: rgba(255,255,255,.07); }
.menu-option > span { font-size: 10.5px; font-weight: 550; }
.menu-option small { grid-column: 1; font-size: 8px; color: rgba(255,255,255,.32); }
.menu-option .check { grid-column: 2; grid-row: 1/3; width: 14px; height: 14px; color: var(--accent-2); opacity: 0; }
.menu-option.is-active .check { opacity: 1; }
.menu-option.is-active > span { color: var(--accent-2); }
.menu-note { margin: 7px 8px 2px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.06); font-size: 8px; line-height: 1.5; color: rgba(255,255,255,.28); }

.volume-wrap { position: relative; display: flex; align-items: center; }
.volume-pop {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(4px);
  width: 34px; height: 112px; border-radius: 12px; padding: 12px 0;
  background: rgba(17,17,24,.82); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(24px); box-shadow: 0 18px 40px rgba(0,0,0,.48);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .25s var(--ease-out), visibility .2s;
}
.volume-wrap:hover .volume-pop, .volume-pop:focus-within { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.volume-pop input { writing-mode: vertical-lr; direction: rtl; width: 4px; height: 86px; accent-color: var(--accent-2); }
.icon-mute { display: none; }
.playbar.is-muted .icon-volume { display: none; }
.playbar.is-muted .icon-mute { display: block; }
.pb-expand { width: 34px !important; height: 34px !important; }

/* Queue popover */
.queue-popover {
  position: absolute; right: 14px; bottom: calc(100% + 16px); z-index: 60;
  width: min(380px, calc(100vw - 36px)); max-height: min(62vh, 520px);
  border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  animation: menuIn .25s var(--ease-out);
  transform-origin: bottom right;
}
.queue-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 15px 15px 8px; }
.queue-head .menu-head { padding: 0 0 4px; }
.queue-sub { font-size: 8.5px; color: rgba(255,255,255,.34); }
.queue-list { overflow-y: auto; padding: 4px 8px 12px; }
.queue-list .track-row { grid-template-columns: 38px minmax(0,1fr) auto; min-height: 48px; padding: 4px 6px; border-radius: 10px; }
.queue-list .row-art { width: 38px; height: 38px; border-radius: 8px; }
.queue-list .row-title { font-size: 10.5px; }
.queue-list .row-sub { font-size: 8.5px; margin-top: 2px; }
.queue-empty { padding: 30px 18px 38px; text-align: center; font-size: 9.5px; color: var(--muted); }
.queue-now-label { display: flex; align-items: center; gap: 5px; font-size: 7px; letter-spacing: .14em; color: var(--accent-2); font-weight: 700; }
.now-line { width: 12px; height: 1px; background: var(--accent-2); }


/* ============================================================
   Now Playing — Apple Music inspired
   ============================================================ */
.now-playing {
  position: fixed; inset: 0; z-index: 80;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 24px 34px 25px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(3%) scale(.985);
  transition: opacity .55s var(--ease-out), transform .7s var(--ease-out), visibility .55s;
  overflow: hidden;
  isolation: isolate;
}
.now-playing.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.np-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #060609; }
.np-cover-bg {
  position: absolute; inset: -18%;
  background-position: center; background-size: cover;
  filter: blur(85px) saturate(145%) brightness(.5);
  transform: scale(1.15);
  opacity: .95;
  transition: background-image 1s ease;
}
.np-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 25% 35%, rgba(var(--accent-rgb), .15), transparent 64%),
    linear-gradient(180deg, rgba(6,6,9,.22), rgba(6,6,9,.58) 58%, rgba(6,6,9,.9)),
    linear-gradient(90deg, rgba(6,6,9,.44), transparent 48%, rgba(6,6,9,.4));
}
.np-blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .3; mix-blend-mode: screen; }
.np-blob-a { width: 50vw; height: 50vw; left: -16vw; top: -18vw; background: radial-gradient(circle, rgba(var(--accent-rgb), .85), transparent 66%); animation: blobDriftA 22s ease-in-out infinite alternate; }
.np-blob-b { width: 42vw; height: 42vw; right: -12vw; bottom: -20vw; background: radial-gradient(circle, rgba(var(--accent-2-rgb), .65), transparent 66%); animation: blobDriftB 28s ease-in-out infinite alternate; }
.np-grain { position: absolute; inset: 0; background-image: var(--noise); opacity: .05; mix-blend-mode: overlay; }
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 2; }
.np-close { width: 38px; height: 38px; }
.np-head-copy { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.np-kicker { font-size: 8px; font-weight: 650; letter-spacing: .26em; color: rgba(255,255,255,.44); }
.np-source { font-size: 9px; color: rgba(255,255,255,.62); letter-spacing: .04em; display: flex; align-items: center; gap: 5px; }
.np-head-actions { display: flex; align-items: center; gap: 8px; }
.np-head-actions .icon-btn { width: 36px; height: 36px; }

.np-body { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: clamp(30px, 5vw, 90px); align-items: center; padding: 14px 5vw 0; min-height: 0; position: relative; z-index: 2; }
.np-left { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.np-art-wrap { position: relative; width: clamp(240px, 30vw, 420px); aspect-ratio: 1; flex: none; }
.np-halo { position: absolute; inset: -26%; background: radial-gradient(circle, rgba(var(--accent-rgb), .37), transparent 65%); filter: blur(30px); animation: artGlow 5s ease-in-out infinite alternate; }
.np-vinyl {
  position: absolute; top: 5%; right: -16%; width: 88%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 9%, rgba(255,255,255,.06) 9.5%, transparent 10.5%),
    repeating-radial-gradient(circle at center, #121216 0 1px, #1c1c23 2px 3px, #111115 4px 5px);
  box-shadow: 0 20px 50px rgba(0,0,0,.55), inset 0 0 80px rgba(0,0,0,.6);
  opacity: .9;
  transform: rotate(12deg);
  transition: transform .8s var(--ease-out);
}
.now-playing.is-playing .np-vinyl { animation: vinylSpin 12s linear infinite; }
.now-playing.is-playing .np-vinyl { transform: none; }
@keyframes vinylSpin { to { transform: rotate(360deg); } }
.vinyl-label {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .8), rgba(var(--accent-2-rgb), .3) 60%, transparent 62%);
  opacity: .5;
}
.np-artwork-shell {
  position: absolute; left: 0; top: 0; width: 82%; aspect-ratio: 1; border-radius: 18px;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 12px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.18);
  overflow: hidden;
  transition: transform .7s var(--ease-out), box-shadow .7s ease;
  z-index: 2;
}
.np-artwork-shell:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 50px 110px rgba(0,0,0,.66), 0 16px 36px rgba(0,0,0,.44), 0 0 0 1px rgba(255,255,255,.28); }
.np-artwork { width: 100%; height: 100%; border-radius: inherit; }
.np-art-shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.2), transparent 28%, transparent 68%, rgba(255,255,255,.08)); mix-blend-mode: screen; }
.np-art-reflection {
  position: absolute; left: 0; bottom: -26%; width: 82%; height: 22%; border-radius: 12px;
  background: inherit; opacity: .16; transform: scaleY(-1);
  filter: blur(14px); z-index: 1;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
}
.np-track-copy { margin-top: 26px; text-align: center; max-width: 94%; }
.np-title-row { display: flex; align-items: center; justify-content: center; gap: 9px; }
.np-title-row h2 { margin: 0; font-size: clamp(22px, 2.6vw, 36px); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-title-row .like-btn { width: 30px; height: 30px; flex: none; color: rgba(255,255,255,.55); }
.np-title-row .like-btn .icon { width: 17px; height: 17px; }
.np-track-copy p { margin: 7px 0 0; font-size: 12px; color: rgba(255,255,255,.56); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-tags { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.provider-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); font-size: 8px; color: rgba(255,255,255,.5); }
.provider-chip .provider-mini { width: 11px; height: 11px; border-radius: 3px; }
.np-quality { height: 22px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 5px; font-family: var(--mono); font-size: 7px; color: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.08); }
.np-preview { height: 22px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 5px; font-size: 7.5px; color: rgba(255,210,130,.8); background: rgba(255,190,90,.06); border: 1px solid rgba(255,190,90,.16); }
.np-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 22px; }
.np-controls .icon-btn { width: 38px; height: 38px; color: rgba(255,255,255,.56); }
.np-controls .icon-btn:hover { color: #fff; }
.np-skip .icon { width: 25px; height: 25px; }
.np-play { width: 58px; height: 58px; box-shadow: 0 14px 36px rgba(0,0,0,.44), inset 0 -2px 5px rgba(0,0,0,.18), 0 0 34px rgba(var(--accent-rgb), .15); }
.np-play .icon { width: 24px; height: 24px; }
.np-progress-wrap { width: min(100%, 440px); display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.np-time { font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,.36); width: 31px; flex: none; font-variant-numeric: tabular-nums; }
.np-volume { display: flex; align-items: center; gap: 8px; width: min(100%, 440px); margin-top: 13px; opacity: .72; }
.np-volume .icon { width: 14px; height: 14px; color: rgba(255,255,255,.4); }
.np-volume input { flex: 1; accent-color: rgba(255,255,255,.8); height: 3px; }
.np-volume button { font-family: var(--mono); font-size: 7px; color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.1); padding: 3px 6px; border-radius: 4px; }

.np-right { min-width: 0; height: min(66vh, 610px); display: flex; flex-direction: column; justify-content: center; }
.np-lyric-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 6px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.lyric-heading { display: flex; align-items: baseline; gap: 9px; }
.lyric-kicker { font-size: 8px; font-weight: 650; letter-spacing: .25em; color: rgba(255,255,255,.42); }
.lyric-source { font-size: 8px; color: rgba(255,255,255,.22); }
.lyric-actions { display: flex; align-items: center; gap: 8px; }
.lyric-toggle {
  height: 24px; padding: 0 9px; border-radius: 6px;
  font-size: 8px; color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.lyric-toggle:hover { color: #fff; }
.lyric-toggle[aria-pressed="true"] { color: var(--accent-2); border-color: rgba(var(--accent-2-rgb), .25); background: rgba(var(--accent-2-rgb), .05); }
.lyric-toggle:disabled { opacity: .3; cursor: default; }
.lyric-viewport {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  padding: 26% 10px 33%;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 13%, #000 87%, transparent 100%);
}
.lyric-list { position: relative; display: flex; flex-direction: column; gap: 17px; transition: transform .75s var(--ease-out); will-change: transform; }
.lyric-line {
  position: relative; padding: 2px 4px; border-radius: 8px;
  text-align: left; cursor: pointer;
  font-size: clamp(19px, 2vw, 30px); line-height: 1.28; font-weight: 640; letter-spacing: -.035em;
  color: rgba(255,255,255,.15);
  filter: blur(.35px);
  transform-origin: left center;
  transition: color .55s ease, opacity .55s ease, filter .55s ease, transform .6s var(--ease-out);
  opacity: .42;
}
.lyric-line:hover { color: rgba(255,255,255,.55); opacity: .7; filter: none; }
.lyric-line.is-active { color: #fff; opacity: 1; filter: none; transform: scale(1.018); text-shadow: 0 2px 34px rgba(var(--accent-rgb), .25); }
.lyric-line.is-active .lyric-text { background: linear-gradient(90deg, #fff 0%, #fff calc(var(--line-progress, 0) * 100%), rgba(255,255,255,.55) calc(var(--line-progress, 0) * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lyric-text { display: inline; }
.lyric-translation { display: block; margin-top: 5px; font-size: .46em; font-weight: 460; letter-spacing: 0; color: rgba(255,255,255,.3); filter: blur(.2px); }
.lyric-line.is-active .lyric-translation { color: rgba(var(--accent-2-rgb), .68); }
.lyric-time { display: none; }
.lyric-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.lyric-empty-orb { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(var(--accent-rgb), .3), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.09); }
.lyric-empty-orb .icon { width: 24px; height: 24px; color: rgba(255,255,255,.4); }
.lyric-empty p { margin: 0; max-width: 240px; font-size: 10px; line-height: 1.7; color: rgba(255,255,255,.3); }
.lyric-fade { position: absolute; left: 0; right: 0; height: 12%; pointer-events: none; z-index: 2; }
.lyric-fade-top { top: 0; background: linear-gradient(to bottom, rgba(6,6,9,.6), transparent); }
.lyric-fade-bottom { bottom: 0; background: linear-gradient(to top, rgba(6,6,9,.62), transparent); }
.np-lyric-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 6px 0; border-top: 1px solid rgba(255,255,255,.07); }
.np-hint { font-size: 8px; color: rgba(255,255,255,.26); }
.np-sync { display: inline-flex; align-items: center; gap: 5px; font-size: 7px; letter-spacing: .13em; color: rgba(255,255,255,.31); font-weight: 600; }
.sync-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 7px var(--accent-2); }
.now-playing.is-lyrics-off .np-right { opacity: .2; }

.np-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 4px; position: relative; z-index: 2; }
.np-crossfade { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; color: rgba(255,255,255,.36); border: 1px solid rgba(255,255,255,.07); border-radius: 99px; padding: 5px 9px; }
.np-crossfade.is-on { color: rgba(var(--accent-2-rgb), .8); border-color: rgba(var(--accent-2-rgb), .18); background: rgba(var(--accent-2-rgb), .04); }
.xfade-orb { width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.np-bottom-actions { display: flex; align-items: center; gap: 6px; }
.np-action { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 7px; font-size: 8px; color: rgba(255,255,255,.36); border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); transition: color .2s ease, background .2s ease; }
.np-action .icon { width: 13px; height: 13px; }
.np-action:hover { color: #fff; background: rgba(255,255,255,.06); }

.np-left { animation: npFloat .8s var(--ease-out) both; }
.np-right { animation: npFloat .8s .08s var(--ease-out) both; }
@keyframes npFloat { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.now-playing.is-closing .np-left, .now-playing.is-closing .np-right { animation: none; }


/* ============================================================
   Settings sheet
   ============================================================ */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3,3,6,.46);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0; transition: opacity .4s ease;
}
.sheet-backdrop.is-open { opacity: 1; }
.settings-sheet {
  position: fixed; top: 14px; right: 14px; bottom: 14px; z-index: 100;
  width: min(432px, calc(100vw - 28px));
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.15);
  background:
    radial-gradient(80% 40% at 100% 0%, rgba(var(--accent-rgb), .12), transparent 60%),
    linear-gradient(155deg, rgba(28,27,38,.86), rgba(12,12,18,.9));
  -webkit-backdrop-filter: blur(44px) saturate(165%);
  backdrop-filter: blur(44px) saturate(165%);
  box-shadow: -20px 40px 100px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.15);
  transform: translateX(calc(100% + 30px));
  transition: transform .55s var(--ease-out);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.settings-sheet.is-open { transform: none; }
.settings-sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: var(--noise); opacity: .035; pointer-events: none; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 24px 24px 17px; border-bottom: 1px solid rgba(255,255,255,.065); position: relative; z-index: 2; }
.sheet-kicker { font-size: 7.5px; font-weight: 650; letter-spacing: .22em; color: rgba(var(--accent-2-rgb), .65); }
.sheet-head h2 { margin: 7px 0 0; font-size: 26px; font-weight: 650; letter-spacing: -.04em; }
.settings-scroll { flex: 1; overflow-y: auto; padding: 4px 24px 26px; position: relative; z-index: 2; }
.settings-group { padding: 20px 0 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.settings-group:last-of-type { border-bottom: 0; }
.group-head { display: flex; gap: 12px; margin-bottom: 16px; }
.group-index { font-family: var(--mono); font-size: 8px; color: rgba(var(--accent-2-rgb), .65); padding-top: 3px; }
.group-head h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.group-head p { margin: 3px 0 0; font-size: 8.5px; color: rgba(255,255,255,.28); letter-spacing: .01em; }
.viz-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.viz-option {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 8px 4px 7px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.055); background: rgba(255,255,255,.025);
  font-size: 7.5px; color: rgba(255,255,255,.36);
  transition: color .22s ease, border-color .22s ease, background .22s ease;
}
.viz-option:hover { color: rgba(255,255,255,.7); background: rgba(255,255,255,.05); }
.viz-option.is-active { color: var(--accent-2); border-color: rgba(var(--accent-2-rgb), .26); background: rgba(var(--accent-2-rgb), .055); }
.viz-thumb { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 100%; height: 24px; overflow: hidden; }
.viz-thumb.thumb-lines { flex-direction: column; justify-content: center; gap: 3px; }
.viz-thumb.thumb-lines i { display: block; width: 80%; height: 1px; background: currentColor; border-radius: 3px; opacity: .7; }
.viz-thumb.thumb-lines i:nth-child(1) { transform: translateX(-7%) rotate(-5deg); width: 64%; }
.viz-thumb.thumb-lines i:nth-child(2) { width: 90%; }
.viz-thumb.thumb-lines i:nth-child(3) { transform: translateX(7%) rotate(5deg); width: 62%; }
.viz-thumb.thumb-grid { display: grid; grid-template-columns: repeat(3, 4px); grid-template-rows: repeat(3, 4px); gap: 1.5px; align-content: center; }
.viz-thumb.thumb-grid i { width: 4px; height: 4px; border-radius: 1px; background: currentColor; opacity: .55; }
.viz-thumb.thumb-grid i:nth-child(2n) { opacity: .95; }
.viz-thumb.thumb-bars i { width: 2.5px; border-radius: 2px; background: currentColor; opacity: .8; }
.viz-thumb.thumb-bars i:nth-child(1) { height: 8px; } .viz-thumb.thumb-bars i:nth-child(2) { height: 16px; } .viz-thumb.thumb-bars i:nth-child(3) { height: 22px; } .viz-thumb.thumb-bars i:nth-child(4) { height: 12px; } .viz-thumb.thumb-bars i:nth-child(5) { height: 6px; }
.viz-thumb.thumb-floor { align-items: center; perspective: 40px; }
.viz-thumb.thumb-floor i { width: 7px; height: 1px; background: currentColor; opacity: .5; transform: rotateX(46deg); }
.viz-thumb.thumb-floor i:nth-child(2n) { opacity: .9; width: 11px; }
.viz-thumb.thumb-cube i { width: 6px; height: 10px; border: 1px solid currentColor; transform: skewY(-15deg); opacity: .5; }
.viz-thumb.thumb-cube i:nth-child(2) { height: 17px; opacity: 1; }

.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; }
.setting-row + .setting-row { border-top: 1px solid rgba(255,255,255,.035); }
.setting-label { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.setting-label > span { font-size: 10.5px; font-weight: 520; }
.setting-label small { font-size: 8px; color: rgba(255,255,255,.27); }
.slider-row { align-items: center; }
.slider-control { display: flex; align-items: center; gap: 8px; width: 160px; flex: none; }
.slider-control input[type="range"] { flex: 1; -webkit-appearance: none; appearance: none; height: 3px; border-radius: 99px; background: linear-gradient(90deg, rgba(var(--accent-2-rgb), .7) var(--pct, 50%), rgba(255,255,255,.1) var(--pct, 50%)); outline: none; }
.slider-control input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(var(--accent-2-rgb), .16), 0 2px 7px rgba(0,0,0,.3); cursor: pointer; }
.slider-control input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(var(--accent-2-rgb), .16); cursor: pointer; }
.slider-control output { font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,.4); width: 31px; text-align: right; flex: none; }
.column-row { align-items: flex-start; flex-direction: column; gap: 10px; }
.segmented { display: flex; padding: 3px; border-radius: 9px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.055); gap: 2px; }
.segmented button { flex: 1; height: 26px; padding: 0 8px; border-radius: 6px; font-size: 8.5px; color: rgba(255,255,255,.38); transition: color .2s ease, background .2s ease; white-space: nowrap; }
.segmented button:hover { color: rgba(255,255,255,.7); }
.segmented button.is-active { color: #0b0b10; background: rgba(255,255,255,.88); font-weight: 600; }
.quality-segmented { width: 100%; }
.quality-segmented button { flex: 1; }
.language-segmented { width: 100%; }
.language-segmented button { height: 30px; font-size: 9.5px; }
.switch { position: relative; width: 38px; height: 21px; border-radius: 99px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.08); flex: none; transition: background .3s ease, border-color .3s ease; }
.switch span { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: transform .35s var(--ease-spring), background .3s ease; }
.switch.is-on { background: rgba(var(--accent-2-rgb), .55); border-color: rgba(var(--accent-2-rgb), .4); box-shadow: 0 0 16px rgba(var(--accent-2-rgb), .14); }
.switch.is-on span { transform: translateX(17px); background: #fff; }
.crossfade-slider { transition: opacity .3s ease; }
.crossfade-slider.is-disabled { opacity: .34; pointer-events: none; }
.about-group { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding-top: 22px; }
.about-mark { width: 38px; height: 38px; color: rgba(var(--accent-2-rgb), .72); }
.about-mark svg { width: 100%; height: 100%; }
.about-title { font-size: 12px; font-weight: 650; letter-spacing: .24em; }
.about-title span { color: rgba(255,255,255,.26); font-family: var(--mono); font-size: 7px; letter-spacing: .04em; margin-left: 4px; }
.about-group p { margin: 6px 0 0; font-size: 8.5px; line-height: 1.6; color: rgba(255,255,255,.3); }
.reset-btn { grid-column: 1 / -1; margin-top: 6px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); font-size: 8.5px; color: rgba(255,255,255,.42); transition: color .2s ease, background .2s ease; }
.reset-btn:hover { color: #fff; background: rgba(255,255,255,.065); }

/* ============================================================
   Toasts
   ============================================================ */
.toast-stack { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 150; display: flex; flex-direction: column; align-items: center; gap: 7px; pointer-events: none; width: min(420px, calc(100vw - 30px)); }
.toast {
  display: flex; align-items: center; gap: 9px;
  max-width: 100%; padding: 10px 14px 10px 11px; border-radius: 12px;
  background: rgba(20,20,28,.82);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 10px; line-height: 1.45; color: rgba(255,255,255,.8);
  animation: toastIn .4s var(--ease-out) both;
  pointer-events: none;
}
.toast.is-out { animation: toastOut .3s ease both; }
.toast-icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; background: rgba(var(--accent-2-rgb), .1); color: var(--accent-2); }
.toast-icon .icon { width: 13px; height: 13px; }
.toast.is-error .toast-icon { background: rgba(255,120,120,.1); color: #ff9b9b; }
.toast.is-warn .toast-icon { background: rgba(255,190,90,.1); color: #ffd18b; }
.toast-dismiss { pointer-events: auto; margin-left: 3px; color: rgba(255,255,255,.3); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; }
.toast-dismiss:hover { color: #fff; background: rgba(255,255,255,.08); }
.toast-dismiss .icon { width: 11px; height: 11px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1240px) {
  .shell { grid-template-columns: minmax(0, 1.2fr) minmax(360px, .9fr); gap: 14px; padding: 0 16px; }
  .playbar { left: 14px; right: 14px; grid-template-columns: minmax(195px, .9fr) minmax(330px, 1.3fr) minmax(190px, .9fr); gap: 8px; }
  .mix-badge { display: none; }
  .pb-tools .icon-btn:nth-of-type(4) { display: none; }
  .stage-art { width: clamp(180px, 23vw, 285px); }
  .stage-title { font-size: clamp(27px, 3.4vw, 45px); }
}
@media (max-width: 1080px) {
  .topbar { padding: 0 20px; }
  .brand-block, .top-actions { min-width: 180px; }
  .source-status { display: none; }
  .top-divider { display: none; }
  .pb-tools .volume-wrap { display: none; }
  .for-you-row { grid-template-columns: repeat(3, 1fr); }
  .stage-corner-note { display: none; }
}
@media (max-width: 920px) {
  body { overflow-y: auto; }
  body.settings-open { overflow: hidden; }
  .app { height: auto; min-height: 100dvh; padding-bottom: 106px; }
  .topbar { flex: 0 0 66px; padding: 0 16px; }
  .brand-block { min-width: 0; }
  .brand-sub { display: none; }
  .brand-word { font-size: 16px; }
  .brand-mark { width: 32px; height: 32px; }
  .top-center { justify-content: flex-end; }
  .top-link { display: none; }
  .lang-btn { height: 33px; }
  .shell {
    flex: none;
    display: flex; flex-direction: column;
    gap: 12px; padding: 0 12px;
  }
  .stage { height: 44vh; min-height: 330px; flex: none; border-radius: 26px; }
  .library { flex: none; height: auto; min-height: 66vh; border-radius: 26px; }
  .library-scroll { overflow: visible; }
  .stage-art { width: clamp(160px, 34vw, 245px); top: 42%; }
  .stage-bottom { left: 19px; right: 17px; bottom: 18px; }
  .stage-title { font-size: clamp(25px, 5.6vw, 36px); margin-top: 7px; }
  .stage-styles { flex-direction: row; top: auto; right: auto; left: 50%; bottom: 102px; transform: translateX(-50%); border-radius: 14px; }
  .style-btn { width: 42px; height: 40px; }
  .style-btn span { font-size: 6px; }
  .stage-artist { font-size: 11px; }
  .stage-lyric { display: none; }
  .playbar {
    left: 10px; right: 10px; bottom: 9px; height: 86px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    gap: 10px; padding: 9px 12px;
  }
  .pb-center { order: 2; flex-direction: row; align-items: center; padding: 0; gap: 0; }
  .pb-center .timeline-wrap { position: absolute; left: 12px; right: 12px; top: -1px; }
  .pb-center .time { display: none; }
  .transport { gap: 5px; }
  .transport-mini { display: none; }
  .play-button { width: 42px; height: 42px; }
  .pb-tools { display: none; }
  .pb-track { order: 1; min-width: 0; }
  .pb-art { width: 48px; height: 48px; border-radius: 12px; }
  .pb-track .like-btn { display: none; }
  .pb-title { font-size: 11.5px; }
  .pb-sub { font-size: 8.5px; }
  .now-playing { padding: 16px 18px 18px; overflow-y: auto; }
  .np-body { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 22px 0 10px; }
  .np-left { width: 100%; }
  .np-art-wrap { width: min(64vw, 310px); }
  .np-track-copy { margin-top: 17px; }
  .np-title-row h2 { font-size: 22px; }
  .np-right { width: 100%; height: 45vh; min-height: 310px; }
  .np-lyric-head { padding-top: 8px; }
  .lyric-viewport { padding-top: 22%; padding-bottom: 24%; }
  .lyric-line { font-size: clamp(19px, 5.4vw, 27px); }
  .np-controls { margin-top: 14px; gap: 15px; }
  .np-play { width: 52px; height: 52px; }
  .np-volume { display: none; }
  .np-bottom { margin-top: 8px; }
  .np-bottom-actions { display: none; }
  .now-playing::after { content: ""; display: block; height: 10px; }
  .settings-sheet { top: 8px; right: 8px; bottom: 8px; width: calc(100vw - 16px); border-radius: 24px; }
}
@media (max-width: 620px) {
  .top-actions .lang-btn span { display: none; }
  .top-actions .lang-btn { width: 34px; padding: 0; justify-content: center; }
  .avatar { display: none; }
  .top-center { display: none; }
  .stage { height: 40vh; min-height: 292px; }
  .stage-art { width: min(42vw, 190px); top: 37%; }
  .stage-styles { bottom: 94px; }
  .stage-bottom { gap: 10px; bottom: 15px; }
  .stage-meta { max-width: 62%; }
  .stage-title { font-size: 23px; }
  .stage-eyebrow { font-size: 7px; }
  .stage-actions { gap: 5px; }
  .round-action { width: 34px; height: 34px; }
  .round-action .icon { width: 16px; height: 16px; }
  .round-primary { width: 46px; height: 46px; }
  .stage-top { top: 14px; left: 15px; right: 14px; }
  .stage-mode-label { display: none; }
  .live-chip { height: 27px; font-size: 7.5px; }
  .stage-styles { padding: 4px; gap: 1px; }
  .style-btn { width: 37px; height: 36px; }
  .stage-styles .style-btn span { display: none; }
  .library-head { padding: 13px 13px 8px; gap: 7px; }
  .search-shell { height: 44px; border-radius: 13px; padding: 0 11px; }
  .search-go { width: 44px; height: 44px; border-radius: 13px; }
  .search-shortcut { display: none; }
  .provider-filter { padding: 3px 13px 10px; }
  .library-scroll { padding: 4px 13px 22px; }
  .library-foot { padding: 8px 13px 11px; font-size: 7px; }
  .feature-card { min-height: 148px; padding: 16px; border-radius: 18px; }
  .feature-title { font-size: 24px; }
  .feature-art-thumb { width: 54px; height: 54px; right: 65px; bottom: 16px; border-radius: 13px; }
  .feature-play { width: 42px; height: 42px; }
  .home-intro h2 { font-size: 23px; }
  .for-you-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .fy-card { padding: 5px 5px 8px; }
  .fy-title { font-size: 9px; }
  .fy-artist { font-size: 7.5px; }
  .mix-grid { gap: 6px; }
  .mix-card { min-height: 78px; padding: 11px; border-radius: 13px; }
  .mix-title { font-size: 10px; }
  .track-row { grid-template-columns: 40px minmax(0,1fr) auto; gap: 9px; min-height: 52px; }
  .row-art { width: 40px; height: 40px; border-radius: 9px; }
  .row-side .quality-mark { display: none; }
  .row-side .row-action { opacity: 1; }
  .row-duration { display: none; }
  .np-head-actions .icon-btn:nth-child(2) { display: none; }
  .np-body { padding: 12px 0 4px; }
  .np-art-wrap { width: min(70vw, 280px); }
  .np-right { height: 42vh; min-height: 270px; }
  .np-lyric-foot .np-hint { display: none; }
  .np-bottom { justify-content: center; }
  .np-progress-wrap { width: 100%; }
  .np-head { align-items: center; }
  .np-head-copy { align-items: flex-start; }
}
@media (max-height: 720px) and (min-width: 921px) {
  .app { padding-bottom: 112px; }
  .playbar { height: 86px; }
  .stage-art { width: clamp(160px, 19vw, 240px); top: 40%; }
  .stage-title { font-size: clamp(25px, 2.7vw, 38px); }
  .stage-lyric { display: none; }
  .np-right { height: 58vh; }
  .np-art-wrap { width: clamp(210px, 25vw, 330px); }
  .np-track-copy { margin-top: 16px; }
  .np-controls { margin-top: 14px; }
}
@media (max-width: 920px) and (orientation: landscape) {
  .stage { height: 76vh; }
  .library { min-height: 80vh; }
}

/* Lyric loading */
.lyric-loading { display: flex; flex-direction: column; gap: 18px; padding: 10px 4px; }
.lyric-loading span { display: block; height: 18px; border-radius: 5px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.11), rgba(255,255,255,.05)); background-size: 200% 100%; animation: skeletonShine 1.8s linear infinite; }
.lyric-loading span:nth-child(2) { margin-left: 7%; }
.lyric-loading span:nth-child(3) { margin-left: 16%; }
.lyric-loading span:nth-child(4) { margin-left: 4%; }
.lyric-loading span:nth-child(5) { margin-left: 12%; }
.hide-translation .lyric-translation { display: none; }

/* Motion preference */
.motion-off .ambient-scan,
.motion-off .ambient-grain,
.motion-off .blob,
.motion-off .orbit,
.motion-off .art-glow,
.motion-off .np-blob,
.motion-off .eq-bars i,
.motion-off .avatar-ring,
.motion-off .play-ring,
.motion-off .pb-art-ring,
.motion-off .mix-icon i { animation: none !important; }
.motion-off .viz-thumb i { opacity: .35 !important; }
.artwork { container-type: inline-size; }

/* Dynamic lyric fill + reflection sizing */
.lyric-line.is-active .lyric-text {
  background: linear-gradient(90deg, #fff 0%, #fff var(--line-fill, 0%), rgba(255,255,255,.52) var(--line-fill, 0%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.np-art-reflection { background-size: cover; background-position: center top; }
.stage:fullscreen { width: 100vw; height: 100vh; border-radius: 0; background: #09090d; }

/* Generative sleeve art */
.art-fallback {
  background:
    radial-gradient(90% 85% at 12% 8%, color-mix(in srgb, var(--art-1) 92%, white) 0%, transparent 48%),
    radial-gradient(80% 90% at 92% 20%, var(--art-2) 0%, transparent 48%),
    radial-gradient(110% 100% at 48% 116%, var(--art-3) 0%, transparent 62%),
    conic-gradient(from 210deg at 72% 36%, color-mix(in srgb, var(--art-2) 60%, transparent), transparent 35%, color-mix(in srgb, var(--art-1) 45%, transparent) 60%, transparent 80%),
    linear-gradient(145deg, color-mix(in srgb, var(--art-3) 72%, #09090e), var(--art-1) 55%, #07070b);
}
.art-fallback::before {
  content: ""; position: absolute; inset: -8%;
  border-radius: 44% 56% 62% 38% / 52% 44% 56% 48%;
  border: 1px solid rgba(255,255,255,.22);
  transform: rotate(-18deg) scale(.92);
  box-shadow: inset 0 0 80px rgba(255,255,255,.06);
  opacity: .8;
}
.art-fallback::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--noise); opacity: .09; mix-blend-mode: overlay;
}
.art-orbit {
  position: absolute; width: 68%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.36);
  transform: rotate(-24deg) scaleY(.52);
  box-shadow: 0 0 0 1.2cqw rgba(255,255,255,.055), 0 0 0 4.8cqw rgba(255,255,255,.028);
  opacity: .9;
}
.art-orb {
  position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%;
  left: 12%; bottom: 11%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.92), color-mix(in srgb, var(--art-2) 70%, white) 24%, var(--art-2) 52%, transparent 72%);
  filter: blur(1px); opacity: .52; mix-blend-mode: screen;
  box-shadow: 0 0 9cqw color-mix(in srgb, var(--art-2) 40%, transparent);
}
.art-initial {
  position: absolute; right: 6%; bottom: -7%;
  font-size: 40cqw; line-height: .8;
  color: rgba(255,255,255,.6);
  mix-blend-mode: soft-light;
  text-shadow: 0 4cqw 14cqw rgba(0,0,0,.22);
  z-index: 2;
}

/* Artwork sizing: absolute fill avoids percentage-height collapse in buttons */
.stage-artwork,
.pb-artwork,
.np-artwork,
.row-art > .artwork,
.fy-art > .artwork,
.feature-art-thumb > .artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pb-art, .row-art, .fy-art, .np-artwork-shell, .feature-art-thumb { position: relative; }

.toast-stack { top: 88px; }

/* Mobile stage: give the artwork and copy their own breathing room */
@media (max-width: 920px) {
  .stage { height: 45vh; min-height: 350px; }
  .stage-art { width: clamp(145px, 38vw, 200px); top: 32%; }
  .stage-styles { display: none; }
  .stage-bottom { align-items: flex-end; }
  .stage-title { font-size: clamp(23px, 5vw, 32px); -webkit-line-clamp: 1; max-width: 100%; }
  .stage-actions .round-action { width: 38px; height: 38px; }
  .stage-actions .round-primary { width: 48px; height: 48px; }
}
@media (max-width: 620px) {
  .stage { height: 42vh; min-height: 320px; }
  .stage-art { width: clamp(138px, 40vw, 180px); top: 31%; }
  .stage-meta { max-width: 57%; }
  .stage-title { font-size: 21px; margin-top: 7px; }
  .stage-artist { font-size: 10px; }
  .stage-eyebrow { font-size: 6.5px; gap: 5px; }
  .stage-floating-tag { display: none; }
  .stage-bottom { left: 17px; right: 14px; bottom: 14px; gap: 8px; }
  .stage-actions { gap: 4px; }
  .stage-actions .round-action { width: 32px; height: 32px; }
  .stage-actions .round-action .icon { width: 15px; height: 15px; }
  .stage-actions .round-primary { width: 44px; height: 44px; }
  .stage-actions .round-primary .icon { width: 19px; height: 19px; }
}

/* Safe areas */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 920px) {
    .app { padding-bottom: calc(106px + env(safe-area-inset-bottom)); }
    .playbar { bottom: calc(9px + env(safe-area-inset-bottom)); }
    .now-playing { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
    .settings-sheet { bottom: calc(8px + env(safe-area-inset-bottom)); }
  }
}

.np-art-reflection { display: none; }

@media (max-width: 620px) {
  .np-crossfade { display: none; }
}

/* ============================================================
   Radio mode + row icon alignment refinements
   ============================================================ */
.radio-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 4px 0 6px; padding: 17px 18px;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-2-rgb), .2);
  background:
    radial-gradient(100% 140% at 0% 0%, rgba(var(--accent-2-rgb), .16), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(var(--accent-rgb), .18), transparent 60%),
    rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 14px 34px rgba(0,0,0,.18);
  isolation: isolate;
}
.radio-banner::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .05; mix-blend-mode: overlay; pointer-events: none; }
.radio-banner-orbit {
  position: absolute; right: -32px; top: -64px; width: 190px; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(var(--accent-2-rgb), .2);
  box-shadow: 0 0 0 20px rgba(var(--accent-2-rgb), .035), 0 0 0 46px rgba(var(--accent-rgb), .025);
  pointer-events: none;
}
.radio-banner-copy { position: relative; z-index: 1; min-width: 0; }
.radio-live { display: flex; align-items: center; gap: 7px; font-size: 7.5px; font-weight: 700; letter-spacing: .18em; color: rgba(var(--accent-2-rgb), .9); }
.radio-pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 9px var(--accent-2); animation: statusPulse 1.8s ease-in-out infinite; }
.radio-banner-copy p { margin: 7px 0 0; max-width: 320px; font-size: 9.5px; line-height: 1.6; color: rgba(255,255,255,.48); }
.radio-banner-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; flex: none; }
.radio-btn, .radio-ghost {
  height: 29px; padding: 0 10px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 8.5px; font-weight: 550;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.radio-btn { color: #0a0a10; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.5); }
.radio-btn:hover { background: #fff; }
.radio-btn .icon { width: 12px; height: 12px; }
.radio-ghost { color: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); }
.radio-ghost:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Search rows: keep the action icons in a stable rail so nothing jumps. */
.row-side { min-width: 168px; justify-content: flex-end; gap: 1px; }
.row-side .row-action { opacity: .58; }
.track-row:hover .row-side .row-action,
.track-row.is-current .row-side .row-action { opacity: 1; }
.row-side .quality-mark { width: 42px; flex: none; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-duration { width: 34px; flex: none; font-variant-numeric: tabular-nums; }
@media (hover: none) { .row-side .row-action { opacity: 1; } }
@media (max-width: 620px) { .row-side { min-width: 0; } }

/* Playbar utility rail */
.tool-divider { width: 1px; height: 17px; margin: 0 4px; background: rgba(255,255,255,.14); flex: none; }
.pb-tools .icon-btn { width: 34px; height: 34px; }
.pb-tools .quality-btn { width: 68px; height: 28px; justify-content: center; }
.pb-tools .quality-btn .chevron { opacity: .58; }
@media (max-width: 1320px) { .mix-badge { display: none; } }
@media (max-width: 1080px) { .tool-divider { display: none; } }

/* Make the search submit affordance read as a search action. */
.search-go .icon { width: 18px; height: 18px; }

/* ============================================================
   Browse tabs, artists, public playlists, charts & library
   ============================================================ */
.mobile-library { display: none !important; }
.browse-tabs {
  position: relative; z-index: 4;
  display: flex; align-items: center; gap: 4px;
  padding: 0 18px 10px;
}
.browse-tab {
  position: relative; height: 30px; padding: 0 12px; border-radius: 9px;
  font-size: 10px; font-weight: 550; color: rgba(255,255,255,.38);
  transition: color .22s ease, background .22s ease;
}
.browse-tab:hover { color: rgba(255,255,255,.72); background: rgba(255,255,255,.04); }
.browse-tab.is-active { color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.browse-tab.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); transform: translateX(-50%);
}
.filter-separator { width: 1px; height: 15px; flex: none; margin: 0 3px; background: rgba(255,255,255,.1); }
.price-filter-chip { color: rgba(255,255,255,.34); }
.price-filter-chip.is-active { color: var(--accent-2); background: rgba(var(--accent-2-rgb), .08); border-color: rgba(var(--accent-2-rgb), .24); }
.page-filter { display: flex; gap: 5px; flex-wrap: wrap; margin: 9px 0 10px; }

.artist-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.artist-card {
  position: relative; min-width: 0; text-align: left; padding: 7px;
  border-radius: 15px; border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  transition: transform .3s var(--ease-out), background .25s ease, border-color .25s ease;
}
.artist-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.12); }
.artist-art { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.artist-art .artwork { width: 100%; height: 100%; border-radius: 50%; }
.artist-orbit { position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); pointer-events: none; }
.artist-card:hover .artist-orbit { border-color: rgba(var(--accent-2-rgb), .36); }
.artist-name { display: block; margin: 9px 3px 2px; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist-meta { display: block; margin: 0 3px; font-size: 8px; color: rgba(255,255,255,.33); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist-card-skeleton { width: 100%; aspect-ratio: 1; border-radius: 50%; }
.artist-card .skeleton-line { width: 64%; height: 9px; border-radius: 4px; margin-top: 8px; }

.playlist-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.playlist-card {
  position: relative; display: flex; gap: 10px; align-items: center;
  padding: 8px; border-radius: 14px; border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.03); text-align: left; min-width: 0;
  transition: background .22s ease, transform .3s var(--ease-out);
}
.playlist-card:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }
.playlist-art-wrap { position: relative; width: 58px; height: 58px; flex: none; border-radius: 10px; overflow: hidden; }
.playlist-art-wrap > .artwork { width: 100%; height: 100%; border-radius: inherit; }
.playlist-card-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.38); backdrop-filter: blur(2px); opacity: 0; transition: opacity .2s ease;
}
.playlist-card-play .icon { width: 16px; height: 16px; }
.playlist-card:hover .playlist-card-play { opacity: 1; }
.playlist-card-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.playlist-card-name { font-size: 10px; font-weight: 550; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.playlist-card-meta { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 8px; color: rgba(255,255,255,.32); white-space: nowrap; overflow: hidden; }
.playlist-card-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,.25); }
.playlist-card-meta .provider-mini { width: 11px; height: 11px; border-radius: 3px; }
.playlist-card-meta .provider-mini .icon { width: 7px; height: 7px; }
.playlist-fav {
  position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; color: rgba(255,255,255,.4); background: rgba(0,0,0,.26);
  opacity: 0; transition: opacity .2s ease, color .2s ease;
}
.playlist-fav .icon { width: 13px; height: 13px; }
.playlist-card:hover .playlist-fav, .playlist-fav.is-liked { opacity: 1; }
.playlist-fav.is-liked { color: #ff8fa6; }

/* Library */
.library-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 8px 0 14px; }
.library-hero-copy .intro-kicker { margin-bottom: 7px; }
.library-hero-copy h2 { margin: 0; font-size: clamp(25px, 2.4vw, 34px); font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.library-hero-copy p { margin: 8px 0 0; max-width: 300px; font-size: 9px; line-height: 1.55; color: rgba(255,255,255,.34); }
.library-create {
  flex: none; height: 31px; padding: 0 10px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 8.5px; color: #0b0b10; background: rgba(255,255,255,.9);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.library-create .icon { width: 12px; height: 12px; }
.library-create:hover { background: #fff; }
.library-stats { display: flex; gap: 7px; margin-bottom: 8px; }
.library-stats span {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
  padding: 9px 10px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.055); background: rgba(255,255,255,.025);
  font-size: 7.5px; color: rgba(255,255,255,.3);
}
.library-stats strong { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.84); letter-spacing: -.02em; }
.liked-hero {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(var(--accent-rgb), .32), transparent 55%),
    radial-gradient(100% 140% at 100% 100%, rgba(var(--accent-2-rgb), .18), transparent 60%),
    rgba(255,255,255,.035);
  transition: transform .3s var(--ease-out), border-color .3s ease;
}
.liked-hero:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.16); }
.liked-hero-art {
  width: 58px; height: 58px; flex: none; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
}
.liked-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.liked-hero-art .icon { width: 24px; height: 24px; color: rgba(255,255,255,.8); }
.liked-hero-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.liked-hero-copy strong { font-size: 12px; font-weight: 600; }
.liked-hero-copy span { font-size: 8.5px; color: rgba(255,255,255,.37); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liked-hero-play {
  width: 33px; height: 33px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #0a0a10; background: rgba(255,255,255,.9);
  box-shadow: 0 6px 15px rgba(0,0,0,.22);
}
.liked-hero-play .icon { width: 14px; height: 14px; margin-left: 1px; }
.library-empty-note {
  padding: 16px 12px; border-radius: 10px; border: 1px dashed rgba(255,255,255,.08);
  font-size: 8.5px; color: rgba(255,255,255,.27); text-align: center;
}
.local-playlist-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
.local-playlist-card { position: relative; text-align: left; padding: 6px; border-radius: 11px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.045); transition: background .2s ease, transform .3s var(--ease-out); }
.local-playlist-card:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }
.local-playlist-art { position: relative; width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.local-playlist-art > .artwork { width: 100%; height: 100%; }
.local-playlist-name { display: block; margin: 6px 2px 2px; font-size: 8.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.local-playlist-meta { display: block; margin: 0 2px; font-size: 7.5px; color: rgba(255,255,255,.3); }

/* Back / page heroes */
.page-back {
  display: inline-flex; align-items: center; gap: 3px;
  height: 28px; padding: 0 9px 0 4px; margin: 0 0 10px;
  border-radius: 7px; font-size: 8.5px; color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.025);
}
.page-back:hover { color: #fff; background: rgba(255,255,255,.065); }
.page-back .icon { width: 13px; height: 13px; }
.playlist-hero, .artist-hero { display: flex; align-items: flex-end; gap: 15px; padding: 6px 0 14px; }
.playlist-hero-art, .artist-hero-art { position: relative; width: 108px; aspect-ratio: 1; flex: none; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.12); }
.playlist-hero-art > .artwork, .artist-hero-art > .artwork { width: 100%; height: 100%; border-radius: inherit; }
.artist-hero-art { border-radius: 50%; }
.artist-hero-art > .artwork { border-radius: 50%; }
.artist-hero-art .artist-orbit { inset: -5px; }
.playlist-hero-copy, .artist-hero-copy { min-width: 0; flex: 1; padding-bottom: 2px; }
.playlist-hero-copy .intro-kicker, .artist-hero-copy .intro-kicker { margin-bottom: 5px; }
.playlist-hero-copy h2, .artist-hero-copy h2 { margin: 0; font-size: clamp(22px, 2.3vw, 31px); line-height: 1.04; letter-spacing: -.045em; font-weight: 660; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.playlist-hero-copy p, .artist-hero-copy p { margin: 6px 0 0; font-size: 8.5px; color: rgba(255,255,255,.36); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-hero-actions, .artist-hero-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.play-all, .save-button, .playlist-delete {
  height: 29px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 8.5px; font-weight: 550; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.play-all { color: #0a0a10; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.5); }
.play-all:hover { background: #fff; }
.play-all:disabled { opacity: .35; cursor: default; }
.play-all .icon { width: 12px; height: 12px; }
.save-button { color: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); }
.save-button:hover { color: #fff; background: rgba(255,255,255,.08); }
.save-button.is-liked { color: #ff93a9; border-color: rgba(255,120,150,.2); background: rgba(255,120,150,.06); }
.save-button .icon { width: 12px; height: 12px; }
.playlist-delete { color: rgba(255,140,140,.55); border: 1px solid rgba(255,120,120,.1); background: rgba(255,100,100,.03); }
.playlist-delete:hover { color: #ff9e9e; background: rgba(255,100,100,.08); }
.playlist-delete .icon { width: 12px; height: 12px; }
.artist-bio {
  margin: 0 0 8px; padding: 10px 11px; border-radius: 10px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.045);
  font-size: 8.5px; line-height: 1.65; color: rgba(255,255,255,.36);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.empty-state.compact { padding: 28px 16px; }
.empty-state.compact p { max-width: 300px; }

/* Charts */
.chart-mini-tabs, .chart-tabs { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding-bottom: 9px; }
.chart-mini-tabs::-webkit-scrollbar, .chart-tabs::-webkit-scrollbar { display: none; }
.chart-mini-tabs button, .chart-tabs button {
  flex: none; height: 27px; padding: 0 10px; border-radius: 7px;
  font-size: 8.5px; color: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.055); background: rgba(255,255,255,.025);
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.chart-mini-tabs button:hover, .chart-tabs button:hover { color: #fff; background: rgba(255,255,255,.07); }
.chart-mini-tabs button.is-active, .chart-tabs button.is-active { color: var(--accent-2); border-color: rgba(var(--accent-2-rgb), .22); background: rgba(var(--accent-2-rgb), .06); }
.chart-mini-list { display: flex; flex-direction: column; gap: 1px; margin-bottom: 3px; }
.chart-skeleton-tabs .skeleton { width: 62px; height: 27px; border-radius: 7px; }
.chart-row { grid-template-columns: 26px 42px minmax(0,1fr) auto !important; gap: 9px; min-height: 54px; }
.chart-rank { font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,.24); text-align: right; font-variant-numeric: tabular-nums; }
.chart-rank.is-top { color: var(--accent-2); font-size: 10px; font-weight: 600; }
.chart-row .row-art { width: 42px; height: 42px; border-radius: 9px; }
.chart-row .row-side { min-width: 72px; }
.chart-row .row-side .row-action { opacity: .65; }
.chart-hero { padding: 4px 0 6px; }
.chart-hero h2 { margin: 4px 0 12px; font-size: clamp(25px, 2.4vw, 34px); letter-spacing: -.045em; }
.chart-hero .intro-kicker { margin-bottom: 4px; }
.chart-tabs { padding-bottom: 4px; }
.free-mark { flex: none; font-size: 6px; font-weight: 800; letter-spacing: .03em; color: #6ee7b7; padding: 2px 4px; border-radius: 3px; background: rgba(110,231,183,.08); border: 1px solid rgba(110,231,183,.18); }
.access-badge { position: absolute; right: 7px; top: 7px; z-index: 3; height: 15px; padding: 0 4px; border-radius: 4px; display: inline-flex; align-items: center; font-family: var(--mono); font-size: 5.5px; font-weight: 700; letter-spacing: .05em; backdrop-filter: blur(8px); }
.access-badge.free { color: #8bf0c5; background: rgba(6,40,30,.55); border: 1px solid rgba(110,231,183,.24); }
.access-badge.vip { color: #ffd38a; background: rgba(50,30,5,.55); border: 1px solid rgba(255,190,90,.24); }

/* Song rail */
.song-rail { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 1px 1px 9px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.song-rail .fy-card { flex: none; width: 118px; scroll-snap-align: start; }

/* Track menu */
.track-menu {
  position: fixed; z-index: 170; width: 218px; padding: 7px;
  border-radius: 15px; transform-origin: top right;
  animation: menuIn .2s var(--ease-out);
}
.track-menu-head { padding: 7px 8px 9px; margin-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.06); }
.track-menu-head span { display: block; font-size: 7px; letter-spacing: .16em; color: rgba(255,255,255,.28); text-transform: uppercase; margin-bottom: 3px; }
.track-menu-head strong { display: block; font-size: 9.5px; font-weight: 550; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-menu > button {
  width: 100%; display: flex; align-items: center; gap: 8px;
  height: 33px; padding: 0 8px; border-radius: 8px;
  text-align: left; font-size: 9.5px; color: rgba(255,255,255,.66);
  transition: background .18s ease, color .18s ease;
}
.track-menu > button:hover { background: rgba(255,255,255,.07); color: #fff; }
.track-menu > button .icon { width: 15px; height: 15px; opacity: .7; }
.track-menu > button.is-liked { color: #ff93a9; }
.track-menu > button.is-liked .icon { opacity: 1; }

/* Modals */
.modal-layer {
  position: fixed; inset: 0; z-index: 180;
  display: grid; place-items: center;
  background: rgba(4,4,8,.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s ease;
}
.modal-layer.is-open { opacity: 1; }
.modal-card {
  width: min(390px, calc(100vw - 32px)); max-height: min(76vh, 620px);
  padding: 20px; border-radius: 23px;
  display: flex; flex-direction: column; gap: 12px;
  transform: translateY(8px) scale(.98); transition: transform .3s var(--ease-out);
  overflow: hidden;
}
.modal-layer.is-open .modal-card { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.modal-kicker { font-size: 7px; font-weight: 650; letter-spacing: .2em; color: rgba(var(--accent-2-rgb), .65); }
.modal-head h3 { margin: 5px 0 0; font-size: 20px; font-weight: 640; letter-spacing: -.035em; }
.modal-input {
  width: 100%; height: 42px; border-radius: 10px; padding: 0 12px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.055);
  outline: none; font-size: 12px;
}
.modal-input:focus { border-color: rgba(var(--accent-rgb), .5); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .07); }
.modal-actions { display: flex; justify-content: flex-end; gap: 7px; }
.modal-cancel, .modal-primary {
  height: 32px; padding: 0 13px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 9px; font-weight: 550;
}
.modal-cancel { color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.modal-cancel:hover { color: #fff; background: rgba(255,255,255,.07); }
.modal-primary { color: #0a0a10; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.5); }
.modal-primary:hover { background: #fff; }
.modal-primary:disabled { opacity: .4; }
.modal-primary .icon { width: 13px; height: 13px; }
.modal-wide { width: 100%; margin-top: 2px; }
.playlist-choices { overflow-y: auto; max-height: 45vh; display: flex; flex-direction: column; gap: 2px; }
.playlist-choice {
  display: flex; align-items: center; gap: 9px; text-align: left;
  padding: 7px; border-radius: 10px; transition: background .18s ease;
}
.playlist-choice:hover { background: rgba(255,255,255,.06); }
.playlist-choice:disabled { opacity: .45; }
.choice-art { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex: none; }
.choice-art .artwork { width: 100%; height: 100%; }
.playlist-choice > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.playlist-choice strong { font-size: 9.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-choice small { font-size: 7.5px; color: rgba(255,255,255,.3); }
.choice-state { font-size: 7.5px; color: var(--accent-2); flex: none; }

/* Responsive */
@media (max-width: 1080px) {
  .playlist-grid { grid-template-columns: 1fr; }
  .local-playlist-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 920px) {
  .mobile-library { display: inline-flex !important; }
  .browse-tabs { padding: 0 13px 9px; }
  .artist-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .playlist-hero-art, .artist-hero-art { width: 92px; }
  .chart-row { grid-template-columns: 22px 40px minmax(0,1fr) auto !important; gap: 7px; }
}
@media (max-width: 620px) {
  .artist-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
  .artist-name { font-size: 10px; }
  .playlist-grid { grid-template-columns: 1fr; }
  .local-playlist-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .library-hero { align-items: flex-start; }
  .library-hero-copy h2 { font-size: 25px; }
  .library-create { height: 28px; font-size: 7.5px; }
  .library-stats span { padding: 8px; }
  .playlist-hero-art, .artist-hero-art { width: 82px; }
  .playlist-hero-copy h2, .artist-hero-copy h2 { font-size: 21px; }
  .playlist-hero-actions, .artist-hero-actions { margin-top: 8px; }
  .play-all, .save-button, .playlist-delete { height: 27px; font-size: 7.5px; }
  .song-rail .fy-card { width: 104px; }
  .track-menu { width: 200px; }
  .modal-card { width: calc(100vw - 24px); padding: 16px; }
  .browse-tab { padding: 0 9px; font-size: 9px; }
}
@media (max-width: 380px) {
  .playlist-hero-art, .artist-hero-art { width: 72px; }
}

/* Performance guards */
.track-row { content-visibility: auto; contain-intrinsic-size: 56px; }
@media (hover: none) {
  .playlist-fav { opacity: 1; }
  .playlist-card-play { opacity: .75; }
}

.price-filter-row { position: relative; z-index: 4; display: flex; align-items: center; gap: 5px; padding: 0 18px 10px; flex-wrap: wrap; }
.price-filter-row .price-label { font-size: 7px; letter-spacing: .14em; color: rgba(255,255,255,.26); margin-right: 3px; text-transform: uppercase; }
.price-filter-row .filter-chip { height: 27px; }
.price-filter-row .filter-chip.is-active { color: var(--accent-2); background: rgba(var(--accent-2-rgb), .08); border-color: rgba(var(--accent-2-rgb), .24); }
@media (max-width: 620px) { .price-filter-row { padding: 0 13px 8px; } }

body.modal-open { overflow: hidden; }

/* View motion */
@keyframes auraRise {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
.library-hero, .artist-hero, .playlist-hero, .chart-hero, .search-head { animation: auraRise .42s var(--ease-out) both; }
.artist-card, .playlist-card, .local-playlist-card, .liked-hero { animation: auraRise .38s var(--ease-out) both; }
.artist-card:nth-child(2n), .playlist-card:nth-child(2n) { animation-delay: .035s; }
.artist-card:nth-child(3n), .playlist-card:nth-child(2n+3) { animation-delay: .06s; }
@media (prefers-reduced-motion: reduce) {
  .library-hero, .artist-hero, .playlist-hero, .chart-hero, .search-head,
  .artist-card, .playlist-card, .local-playlist-card, .liked-hero { animation: none; }
}

.icon-btn.is-active { color: var(--accent-2); background: rgba(var(--accent-2-rgb), .08); border-color: rgba(var(--accent-2-rgb), .24); }
.brand-block:focus-visible { outline: 2px solid rgba(var(--accent-2-rgb), .5); outline-offset: 5px; border-radius: 10px; }

/* ============================================================
   Lyric calibration, local data & creator credits
   ============================================================ */
.lyric-offset {
  height: 24px; display: inline-flex; align-items: center; gap: 1px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025);
  overflow: hidden;
}
.lyric-offset button {
  width: 19px; height: 22px; display: grid; place-items: center;
  font-size: 12px; line-height: 1; color: rgba(255,255,255,.42);
}
.lyric-offset button:hover { color: #fff; background: rgba(255,255,255,.07); }
.lyric-offset span {
  min-width: 30px; text-align: center; font-family: var(--mono); font-size: 7px;
  color: rgba(255,255,255,.38); font-variant-numeric: tabular-nums;
}
.lyric-viewport.is-unsynced .lyric-line { cursor: default; }
.lyric-viewport.is-unsynced .lyric-line.is-active { color: rgba(255,255,255,.62); transform: none; text-shadow: none; }
.lyric-viewport.is-unsynced .lyric-line.is-active .lyric-text { background: none; color: rgba(255,255,255,.62); -webkit-text-fill-color: currentColor; }
.lyric-viewport.is-unsynced .lyric-line .lyric-translation { color: rgba(255,255,255,.3); }

.local-data-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(135deg, rgba(var(--accent-2-rgb), .045), rgba(255,255,255,.018));
}
.local-data-copy { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.local-data-dot { width: 7px; height: 7px; flex: none; margin-top: 4px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 9px rgba(110,231,183,.65); }
.local-data-copy strong { display: block; font-size: 9.5px; font-weight: 550; }
.local-data-copy small { display: block; margin-top: 4px; font-size: 7.5px; line-height: 1.5; color: rgba(255,255,255,.3); }
.local-clear {
  flex: none; height: 29px; padding: 0 9px; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 8px; color: rgba(255,145,145,.7);
  border: 1px solid rgba(255,120,120,.13); background: rgba(255,100,100,.035);
}
.local-clear:hover { color: #ffaaaa; background: rgba(255,100,100,.09); }
.local-clear .icon { width: 12px; height: 12px; }
.about-credit { margin-top: 8px; font-family: var(--mono); font-size: 7px; letter-spacing: .03em; color: rgba(255,255,255,.28); }
.contact-list { display: flex; flex-direction: column; gap: 4px; margin-top: 9px; }
.contact-list a, .contact-list button {
  display: flex; align-items: center; gap: 7px; text-align: left;
  min-height: 22px; padding: 0 6px; margin-left: -6px; border-radius: 5px;
  font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,.46);
  transition: color .18s ease, background .18s ease;
}
.contact-list a:hover, .contact-list button:hover { color: var(--accent-2); background: rgba(255,255,255,.04); }
.contact-list span { min-width: 28px; font-family: var(--sans); font-size: 7px; color: rgba(255,255,255,.24); }
.contact-list button { cursor: pointer; }
.contact-list button::after { content: "COPY"; margin-left: auto; font-size: 6px; letter-spacing: .08em; color: rgba(255,255,255,.18); }
.library-footer {
  margin: 20px 0 8px; padding: 12px 0 4px;
  border-top: 1px solid rgba(255,255,255,.055);
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--mono); font-size: 7px; line-height: 1.6; color: rgba(255,255,255,.23);
}
.library-footer strong { font-family: var(--sans); font-size: 8px; font-weight: 550; letter-spacing: .12em; color: rgba(255,255,255,.34); }
.library-footer a { color: rgba(255,255,255,.32); text-decoration: none; }
.library-footer a:hover { color: var(--accent-2); }

/* Dusk signature on the two large sleeves */
#stageArtwork::after, #npArtwork::after {
  content: "Dusk";
  position: absolute; right: 10px; bottom: 8px; z-index: 4;
  font-family: "Snell Roundhand", "Segoe Script", cursive;
  font-size: 12px; font-weight: 500; letter-spacing: .02em;
  color: rgba(255,255,255,.82); text-shadow: 0 1px 8px rgba(0,0,0,.55);
  padding: 2px 6px; border-radius: 4px;
  background: rgba(5,5,10,.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none;
}
#npArtwork::after { font-size: 18px; right: 14px; bottom: 12px; color: rgba(255,255,255,.9); }

@media (max-width: 620px) {
  .lyric-actions { gap: 5px; }
  .lyric-offset span { min-width: 26px; }
  .lyric-offset button { width: 17px; }
  .lyric-toggle { padding: 0 7px; }
  .local-data-card { align-items: flex-start; flex-direction: column; }
  .local-clear { width: 100%; justify-content: center; }
  .contact-list { font-size: 7.5px; }
}

.brand-by { margin-top: 2px; font-family: var(--mono); font-size: 5.5px; letter-spacing: .2em; color: rgba(var(--accent-2-rgb), .42); }
@media (max-width: 620px) { .brand-by { display: none; } }
