/* ============================================================
   玻璃唱片 · Glass Vinyl
   拟态玻璃 UI — 深色底 + 多层半透明 + 内阴影高光
   ============================================================ */

:root {
  --bg-deep:      #07080f;
  --glass-bg:     rgba(255, 255, 255, 0.055);
  --glass-bg-hi:  rgba(255, 255, 255, 0.085);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hi: rgba(255, 255, 255, 0.22);
  --text:         #eef1f8;
  --text-dim:     rgba(238, 241, 248, 0.58);
  --text-faint:   rgba(238, 241, 248, 0.34);
  --accent:       #8b7cf6;
  --accent-2:     #38bdf8;
  --accent-3:     #f472b6;
  --radius-lg:    28px;
  --radius-md:    18px;
  --radius-sm:    12px;
  --shadow-deep:  0 24px 60px -12px rgba(0, 0, 0, 0.65);
  --blur:         28px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum";
}

/* ---------- 动态背景色团 ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(60, 40, 120, 0.55), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(20, 80, 130, 0.45), transparent 60%),
    linear-gradient(180deg, #090b14 0%, #05060c 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  transition: background 1.6s ease;
  will-change: transform;
}

.blob-1 {
  width: 46vw; height: 46vw;
  left: -8vw; top: -12vw;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  animation: drift1 26s ease-in-out infinite;
}
.blob-2 {
  width: 40vw; height: 40vw;
  right: -6vw; top: 6vh;
  background: radial-gradient(circle, var(--accent-2), transparent 68%);
  animation: drift2 32s ease-in-out infinite;
  opacity: 0.42;
}
.blob-3 {
  width: 44vw; height: 44vw;
  left: 32vw; bottom: -16vw;
  background: radial-gradient(circle, var(--accent-3), transparent 68%);
  animation: drift3 38s ease-in-out infinite;
  opacity: 0.34;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(6vw, 8vh) scale(1.14); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-8vw, 10vh) scale(1.1); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(10vw, -8vh) scale(1.16); }
}

/* 细腻噪点，消除渐变色带 */
.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 2%); }
  40%  { transform: translate(2%, -1%); }
  60%  { transform: translate(-1%, -2%); }
  80%  { transform: translate(1%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- 玻璃基础件 ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    var(--shadow-deep);
}

/* ---------- 布局骨架 ---------- */
.app {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  max-width: 1560px;
  margin: 0 auto;
}

/* ---------- 顶栏 ---------- */
.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand-disc {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex: 0 0 auto;
  background:
    repeating-radial-gradient(circle at 50% 50%, #1b1b2c 0 1px, #12121f 1px 3px),
    conic-gradient(var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  position: relative;
  box-shadow: 0 0 18px rgba(139, 124, 246, 0.5), inset 0 0 8px rgba(0,0,0,0.6);
  animation: spin 9s linear infinite;
  animation-play-state: paused;
}
.brand-disc.playing { animation-play-state: running; }
.brand-hole {
  position: absolute; inset: 0; margin: auto;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-deep);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}
@keyframes spin { to { transform: rotate(360deg); } }

.brand-text { min-width: 0; }
.brand-text h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-text span {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* 搜索框 */
.search-wrap {
  flex: 1 1 auto;
  max-width: 460px;
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.search-wrap:focus-within {
  border-color: rgba(139, 124, 246, 0.6);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 0 4px rgba(139, 124, 246, 0.12);
}
.search-wrap .ico { width: 17px; height: 17px; color: var(--text-faint); flex: 0 0 auto; }
.search-wrap input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  min-width: 0;
}
.search-wrap input::placeholder { color: var(--text-faint); }
.search-wrap input::-webkit-search-cancel-button { display: none; }
.hint {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-faint);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: inherit;
}

/* 音源切换 */
.source-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}
.src-btn {
  border: 0;
  background: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.src-btn:hover { color: var(--text); }
.src-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.src-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  flex: 0 0 auto;
}
.src-dot.off { background: #f87171; box-shadow: 0 0 8px #f87171; }

/* ---------- 主区域 ---------- */
.layout {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.15fr);
  gap: 14px;
  min-height: 0;
}

/* ---------- 左：曲库面板 ---------- */
.panel {
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 22px 12px;
  flex: 0 0 auto;
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.count { font-size: 12px; color: var(--text-faint); }

.head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.refresh-btn {
  width: 28px !important;
  height: 28px !important;
  opacity: 0.55;
  transition: opacity 0.25s, transform 0.4s var(--ease), color 0.25s, background 0.25s;
}
.refresh-btn svg { width: 15px !important; height: 15px !important; }
.panel-head:hover .refresh-btn { opacity: 1; }
.refresh-btn.spinning svg { animation: spin 0.9s linear infinite; }

.song-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 10px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.16) transparent;
  outline: none;
}
.song-list::-webkit-scrollbar { width: 8px; }
.song-list::-webkit-scrollbar-track { background: transparent; }
.song-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.song-list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); background-clip: content-box; }

.song-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
  contain: layout style;
}
.song-item:hover { background: rgba(255, 255, 255, 0.06); }
.song-item:active { transform: scale(0.988); }

.song-item.active {
  background: linear-gradient(90deg, rgba(139, 124, 246, 0.22), rgba(56, 189, 248, 0.08));
  box-shadow: inset 0 0 0 1px rgba(139, 124, 246, 0.3);
}
.song-item.active .s-title { color: #fff; font-weight: 600; }

.s-idx {
  width: 22px;
  flex: 0 0 auto;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.song-item.active .s-idx { color: var(--accent); }

/* 播放中的跳动条 */
.eq { display: flex; align-items: flex-end; gap: 2px; height: 13px; justify-content: center; }
.eq span {
  width: 2.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: eqBounce 0.9s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq span:nth-child(2) { height: 90%; animation-delay: 0.18s; }
.eq span:nth-child(3) { height: 60%; animation-delay: 0.36s; }
@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1); }
}

.s-thumb {
  width: 42px; height: 42px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.s-body { flex: 1 1 auto; min-width: 0; }
.s-title {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.s-sub {
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.s-dur {
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

/* 空状态 */
.empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-faint);
  pointer-events: none;
}
.empty svg { width: 46px; height: 46px; opacity: 0.35; margin-bottom: 6px; }
.empty p { margin: 0; font-size: 14px; color: var(--text-dim); }
.empty small { font-size: 12px; }

/* ---------- 右：舞台 ---------- */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 0;
  padding: 4px 0;
  position: relative;
}

.stage-close {
  display: none;
  position: absolute;
  top: 8px; right: 8px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: var(--text-dim);
  cursor: pointer;
  z-index: 10;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.stage-close svg { width: 17px; height: 17px; }

.deck {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 0;
}

/* 频谱容器 */
.visualizer-wrap {
  position: absolute;
  inset: -10px -6px auto -6px;
  height: 150px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0.9;
  transition: opacity 0.4s;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 92%);
}
.visualizer-wrap.hidden { opacity: 0; }
#viz { width: 100%; height: 100%; display: block; }
.viz-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(139,124,246,0.16));
  filter: blur(20px);
}

/* 唱片 */
.disc-container {
  position: relative;
  width: min(58%, 268px);
  aspect-ratio: 1;
  z-index: 1;
}

.disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #0d0d15;
  box-shadow:
    0 34px 70px -18px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 0 70px rgba(0, 0, 0, 0.9);
  animation: spin 22s linear infinite;
  animation-play-state: paused;
  transition: box-shadow 0.5s var(--ease);
}
.disc.playing {
  animation-play-state: running;
  box-shadow:
    0 34px 80px -14px rgba(0, 0, 0, 0.8),
    0 0 46px -6px rgba(139, 124, 246, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 70px rgba(0, 0, 0, 0.88);
}

.disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.92;
}

/* 唱片纹路 + 高光 */
.disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(255,255,255,0.035) 0 1px,
      transparent 1px 4px),
    conic-gradient(from 30deg,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.00) 22%,
      rgba(255,255,255,0.09) 42%,
      rgba(255,255,255,0.00) 62%,
      rgba(255,255,255,0.10) 84%,
      rgba(255,255,255,0.00));
  mix-blend-mode: screen;
  pointer-events: none;
}

.disc-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.24) 0%, transparent 42%, transparent 60%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}

.disc-hole {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #17171f, #0a0a11 70%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14),
    inset 0 2px 6px rgba(0,0,0,0.8);
}
.disc-hole::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}

/* 唱臂 */
.tonearm {
  position: absolute;
  top: -14px;
  right: -4px;
  width: 90px;
  height: 130px;
  transform-origin: 72px 22px;
  transform: rotate(-26deg);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.tonearm.on { transform: rotate(2deg); }

.arm-base {
  position: absolute;
  top: 8px; right: 2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a4a5e, #1c1c26 70%);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.7),
    inset 0 1px 2px rgba(255,255,255,0.3);
}
.arm-bar {
  position: absolute;
  top: 20px; right: 15px;
  width: 4px;
  height: 86px;
  border-radius: 4px;
  background: linear-gradient(180deg, #cfcfe0, #6d6d84 60%, #3a3a4c);
  transform-origin: top center;
  transform: rotate(22deg);
  box-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.arm-head {
  position: absolute;
  top: 88px; right: 40px;
  width: 13px; height: 22px;
  border-radius: 3px;
  background: linear-gradient(160deg, #e6e6f2, #7c7c95);
  transform: rotate(22deg);
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

/* 歌曲信息 */
.meta {
  text-align: center;
  flex: 0 0 auto;
  padding: 0 20px;
  max-width: 100%;
}
.meta h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.meta p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 歌词区 */
.lyrics {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.lyrics-inner {
  height: 100%;
  overflow-y: auto;
  padding: 42% 24px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.lyrics-inner::-webkit-scrollbar { display: none; }

.lyric-line {
  margin: 0;
  padding: 7px 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-faint);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease), opacity 0.35s;
  min-height: 1.5em;
}
.lyric-line.active {
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  transform: scale(1.04);
  text-shadow: 0 0 22px rgba(139, 124, 246, 0.55);
}
.lyric-line.near { color: var(--text-dim); }

/* ---------- 底部播放条 ---------- */
.player {
  flex: 0 0 auto;
  border-radius: var(--radius-lg);
  padding: 12px 22px 16px;
}

/* 移动端的当前歌曲条，桌面隐藏 */
.now-bar { display: none; }

.progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.t {
  font-size: 11.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: center;
  flex: 0 0 auto;
}

.progress {
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: visible;
  transition: height 0.2s var(--ease);
}
.progress:hover .progress-track { height: 6px; }

.progress-buffer,
.progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 99px;
}
.progress-buffer { background: rgba(255, 255, 255, 0.14); width: 0; }
.progress-fill {
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(139, 124, 246, 0.65);
}
.progress-knob {
  position: absolute;
  right: -7px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 12px rgba(139,124,246,0.8);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.progress:hover .progress-knob,
.progress.dragging .progress-knob { opacity: 1; transform: scale(1); }

/* 控制区 */
.controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.ctrl-left { display: flex; gap: 6px; }
.ctrl-center { display: flex; align-items: center; gap: 16px; }
.ctrl-right { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }

.btn {
  border: 0;
  background: none;
  color: var(--text-dim);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.btn:active { transform: scale(0.92); }
.btn.ghost { width: 36px; height: 36px; }
.btn.ghost svg { width: 17px; height: 17px; }
.btn.on { color: var(--accent); background: rgba(139, 124, 246, 0.16); }
.btn.on::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.btn { position: relative; }

/* 主播放按钮 */
.play-btn {
  width: 58px; height: 58px;
  background: linear-gradient(145deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow:
    0 8px 24px -6px rgba(139, 124, 246, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 6px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
}
.play-btn svg { width: 24px; height: 24px; }
.play-btn:hover {
  background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
  box-shadow:
    0 12px 32px -6px rgba(139, 124, 246, 0.8),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -2px 6px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}
.play-btn:active { transform: scale(0.95) translateY(0); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139,124,246,0.5), inset 0 1px 0 rgba(255,255,255,0.35); }
  50%      { box-shadow: 0 0 0 12px rgba(139,124,246,0), inset 0 1px 0 rgba(255,255,255,0.35); }
}
.play-btn.playing { animation: pulse 2.6s ease-out infinite; }

/* 加载圈 */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* 音量 */
.volume {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.35s var(--ease), opacity 0.35s var(--ease);
}
.volume:hover,
.volume.open { width: 118px; opacity: 1; }
.vol-ico { width: 18px; height: 18px; color: var(--text-faint); flex: 0 0 auto; }
.vol-track {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  cursor: pointer;
  min-width: 62px;
}
.vol-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 75%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.75);
}
.vol-knob {
  position: absolute;
  right: -5px; top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 130px;
  transform: translate(-50%, 20px);
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(20, 20, 32, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--text);
  font-size: 13.5px;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 100;
  max-width: min(90vw, 460px);
  text-align: center;
  line-height: 1.45;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 骨架屏 ---------- */
.skeleton {
  height: 60px;
  margin: 6px 4px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1fr); }
  .disc-container { width: min(52%, 220px); }
}

@media (max-width: 860px) {
  .app { padding: 10px; gap: 10px; }

  /* 移动端当前歌曲条 */
  .now-bar {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    border: 0;
    background: none;
    padding: 4px 2px 10px;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  .now-bar img {
    width: 40px; height: 40px;
    border-radius: 9px;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.45);
  }
  .now-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .now-text strong {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .now-text span {
    font-size: 12px;
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .now-arrow { width: 18px; height: 18px; color: var(--text-faint); flex: 0 0 auto; }
  .show-stage .now-arrow { transform: rotate(180deg); }

  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
  }
  .brand-text span { display: none; }
  .search-wrap { order: 3; flex: 1 1 100%; max-width: none; margin-left: 0; }
  .source-switch { margin-left: auto; }
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    position: relative;
  }
  .stage { display: none; }
  .layout.show-stage .stage {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(7, 8, 15, 0.92);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 16px;
    overflow-y: auto;
  }
  .layout.show-stage .panel { visibility: hidden; }
  .stage-close { display: grid; }
  .lyrics { min-height: 220px; }
  .controls { grid-template-columns: auto 1fr auto; }
  .ctrl-left { display: none; }
  .volume { width: 0 !important; opacity: 0 !important; }
  .player { padding: 10px 14px 14px; }
  .hint { display: none; }
  .toast { bottom: 165px; }
}

@media (max-width: 420px) {
  .meta h2 { font-size: 18px; }
  .play-btn { width: 52px; height: 52px; }
  .ctrl-center { gap: 10px; }
  .disc-container { width: 62%; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* 不支持 backdrop-filter 的浏览器降级 */
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(18, 20, 32, 0.9); }
}
