/* static/css/style.css */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #05060a;
  --fg: #e9e9f0;
  --muted: rgba(233,233,240,.5);
  --accent1: #6a5cff;
  --accent2: #ff4d8d;
  --accent3: #22e6c8;
  --line: rgba(255,255,255,.08);
  --flash-energy: 0;
  --carousel-w: 440px;
  --carousel-card-h: 148px;
  --topbar-h: 62px;
  --bottombar-h: 130px;
  --footer-h: 28px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

#bgImageLayer { position: fixed; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
#bgImageLayer.active { opacity: 1; }

/* ★ 背景视频层 */
#bgVideoLayer {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}
#bgVideoLayer.active { opacity: 1; }
#bgVideoLayer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#bgImageMask { position: fixed; inset: 0; background: radial-gradient(circle at center, rgba(0,0,0,.30) 0%, rgba(0,0,0,.82) 100%); z-index: 1; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
#bgImageMask.active { opacity: 1; }
#bgParticleCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
#bgCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; filter: blur(60px); opacity: .35; transition: opacity .8s ease; pointer-events: none; }
#mvVideo { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; filter: brightness(.65) saturate(1.2); display: none; }
#mvVideo.active { opacity: .7; display: block; }
#particleCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

/* ============ 顶部栏 ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 26px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(8, 8, 14, 0.78) 0%, rgba(8, 8, 14, 0.55) 70%, rgba(8, 8, 14, 0) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  padding-top: calc(14px + env(safe-area-inset-top));
}
.topbar > * { pointer-events: auto; }
body.pure-mode .topbar { opacity: 0; transform: translateY(-100%); pointer-events: none; }
body.pure-mode .topbar > * { pointer-events: none; }

.logo { display: flex; align-items: center; gap: 8px; letter-spacing: 2px; }
.logo-icon { color: var(--accent2); font-size: 16px; animation: spin 6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-text { font-weight: 600; font-size: 14px; background: linear-gradient(90deg, #fff, #b3b3ff, #fff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.status { font-size: 11px; color: var(--muted); letter-spacing: 1px; padding: 6px 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 20px; backdrop-filter: blur(8px); }
.status::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent3); margin-right: 6px; box-shadow: 0 0 8px var(--accent3); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.icon-btn { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--fg); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .25s cubic-bezier(.34,1.56,.64,1); backdrop-filter: blur(10px); }
.icon-btn:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(106,92,255,.3); }
.icon-btn.active { color: var(--accent3); border-color: rgba(34,230,200,.35); background: rgba(34,230,200,.12); }

.pulse-btn { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--fg); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .25s cubic-bezier(.34,1.56,.64,1); backdrop-filter: blur(10px); position: relative; overflow: visible; }
.pulse-btn:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(34,230,200,.3); }
.pulse-btn.active { color: var(--accent3); border-color: rgba(34,230,200,.5); background: rgba(34,230,200,.15); box-shadow: 0 0 20px rgba(34,230,200,.45); }
.pulse-btn.active::before { content: ''; position: absolute; inset: -4px; border-radius: 14px; border: 1px solid rgba(34,230,200,.6); animation: pulseRing 1.4s ease-out infinite; pointer-events: none; }
@keyframes pulseRing { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.pulse-btn.active::after { content: ''; position: absolute; inset: 0; border-radius: 10px; background: radial-gradient(circle, rgba(34,230,200,.5) 0%, transparent 70%); opacity: .6; animation: pulseGlow 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes pulseGlow { 0%,100% { opacity: .3; transform: scale(.9); } 50% { opacity: .8; transform: scale(1.1); } }
.pulse-btn.impact { color: #ff8a3d; border-color: rgba(255,138,61,.55); background: rgba(255,138,61,.16); box-shadow: 0 0 24px rgba(255,138,61,.55); }
.pulse-btn.impact::before { border-color: rgba(255,138,61,.7); }
.pulse-btn.impact::after { background: radial-gradient(circle, rgba(255,138,61,.6) 0%, transparent 70%); animation: impactGlow 0.7s ease-in-out infinite; }
@keyframes impactGlow { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.25); } }

/* ============ 纯净模式 ============ */
body.pure-mode .bottom-bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-top-color: transparent; }
body.pure-mode .bottom-bar .title,
body.pure-mode .bottom-bar .artist,
body.pure-mode .bottom-bar .t,
body.pure-mode .bottom-bar .v { text-shadow: 0 1px 4px rgba(0,0,0,.95), 0 0 12px rgba(0,0,0,.6); }
body.pure-mode .bottom-bar .ctrl { background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.10); }
body.pure-mode .bottom-bar .ctrl.main { background: linear-gradient(135deg, var(--accent1), var(--accent2)); border: none; }
body.pure-mode .bottom-bar .progress { background: rgba(0,0,0,.4); }
body.pure-mode .bottom-bar .progress-buffer { background: rgba(255,255,255,.3); }
body.pure-mode .bottom-bar .volume { background: rgba(0,0,0,.4); }

.pure-exit { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 24px; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); color: #fff; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 130; backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(0,0,0,.5); transition: all .25s; animation: pureExitFadeIn .5s ease; }
body.pure-mode .pure-exit { display: flex; }
@keyframes pureExitFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.pure-exit:hover { background: rgba(0,0,0,.7); transform: scale(1.08); }
.pure-exit:active { transform: scale(.95); }

/* ============ 移动端缩放提示 ============ */
.mobile-zoom-hint {
  position: fixed;
  bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom) + 10px);
  left: 50%; transform: translateX(-50%);
  padding: 6px 14px; background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; font-size: 11px; color: rgba(255,255,255,.7);
  letter-spacing: 1px; z-index: 55; pointer-events: none;
  opacity: 0; transition: opacity .4s ease; white-space: nowrap;
}
.mobile-zoom-hint.show { opacity: 1; }
body.pure-mode .mobile-zoom-hint { display: none; }

/* ============ 主舞台 ============ */
.main-stage { position: relative; z-index: 10; width: 100vw; height: 100vh; display: flex; overflow: hidden; padding-top: calc(var(--topbar-h) + env(safe-area-inset-top)); padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom)); transition: padding .35s ease; }
body.pure-mode .main-stage { padding-top: calc(20px + env(safe-area-inset-top)); }

.scene { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; perspective: 1400px; display: flex; align-items: center; justify-content: center; cursor: default; transition: flex-basis .45s cubic-bezier(.4,0,.2,1), padding .45s cubic-bezier(.4,0,.2,1), transform .45s cubic-bezier(.4,0,.2,1); will-change: flex-basis, transform; }
.scene.rotating { cursor: grabbing; }
body.carousel-open .scene { flex: 0 0 calc(100% - var(--carousel-w)); padding-right: 12px; }

.stage-3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .06s linear; display: flex; align-items: center; justify-content: center; will-change: transform; }

.lyric-panel { position: relative; width: min(760px, 88vw); height: min(480px, 62vh); min-height: 300px; display: flex; flex-direction: column; border-radius: 24px; border: 1px solid rgba(255,255,255,.12); padding: 18px 26px 16px; overflow: hidden; transition: box-shadow .5s, transform .3s, width .45s cubic-bezier(.4,0,.2,1), height .45s cubic-bezier(.4,0,.2,1); box-shadow: 0 16px 52px rgba(0,0,0,.55), 0 32px 64px rgba(0,0,0,.45); background: rgba(8,8,14,.55); transform: rotateY(-3deg); touch-action: none; }
body.carousel-open .lyric-panel { width: min(680px, 100%); transform: rotateY(0deg) scale(.96); }
.lyric-panel.has-mv { background: rgba(0,0,0,.55); }

.lyric-bg { position: absolute; inset: 0; z-index: 0; border-radius: 24px; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity .8s ease, background-image .5s ease; pointer-events: none; }
.lyric-bg.active { opacity: 1; }
.lyric-mask { position: absolute; inset: 0; z-index: 1; border-radius: 24px; background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.35) 0%, rgba(0,0,0,.80) 100%); pointer-events: none; }

.lyric-header { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.72); letter-spacing: 2px; flex-shrink: 0; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.lyric-header .mv-tag { background: linear-gradient(135deg, var(--accent1), var(--accent2)); padding: 2px 10px; border-radius: 20px; font-size: 10px; color: #fff; font-weight: 600; letter-spacing: 1px; display: none; }
.lyric-header .mv-tag.show { display: inline-block; }

.lyric-scroll { position: relative; z-index: 3; flex: 1; overflow-y: auto; scroll-behavior: smooth; padding: 160px 8px; mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%); -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.lyric-scroll::-webkit-scrollbar { width: 4px; }
.lyric-scroll::-webkit-scrollbar-thumb { background: rgba(106,92,255,.5); border-radius: 4px; }

/* ============ 歌词颜色 ============ */
.lyric-line {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.68);
  transition: all .45s cubic-bezier(.34,1.56,.64,1);
  text-align: center;
  letter-spacing: .8px;
  font-weight: 500;
  margin: 6px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 16px rgba(0, 0, 0, 0.6);
}
.lyric-line.active {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  text-shadow:
    0 0 24px rgba(106, 92, 255, 0.95),
    0 0 60px rgba(255, 77, 141, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 4px 20px rgba(0, 0, 0, 0.7);
  background: none;
  -webkit-text-fill-color: #fff;
  transform: scale(1.05);
  letter-spacing: 2px;
  animation: lyricGlow 2s ease-in-out infinite alternate;
}
@keyframes lyricGlow {
  from {
    text-shadow:
      0 0 20px rgba(106, 92, 255, 0.8),
      0 0 50px rgba(255, 77, 141, 0.4),
      0 2px 8px rgba(0, 0, 0, 0.9);
  }
  to {
    text-shadow:
      0 0 32px rgba(106, 92, 255, 1),
      0 0 80px rgba(255, 77, 141, 0.7),
      0 0 40px rgba(34, 230, 200, 0.5),
      0 2px 8px rgba(0, 0, 0, 0.9);
  }
}
.lyric-line.near {
  color: rgba(255, 255, 255, 0.88);
  font-size: 26px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}
.lyric-empty { text-align: center; color: rgba(233,233,240,.62); font-size: 14px; padding: 40px 10px; line-height: 2; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.lyric-empty code { background: rgba(255,255,255,.10); padding: 2px 8px; border-radius: 5px; font-family: monospace; color: var(--accent3); }

/* ============ 轮播侧栏 ============ */
.carousel-side { position: relative; flex: 0 0 0; width: 0; height: 100%; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(12,12,20,.55) 0%, rgba(12,12,20,.75) 100%); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-left: 1px solid rgba(255,255,255,.08); border-radius: 24px 0 0 24px; opacity: 0; transform: translateX(14px); transition: flex-basis .45s cubic-bezier(.4,0,.2,1), width .45s cubic-bezier(.4,0,.2,1), opacity .3s ease, transform .45s cubic-bezier(.4,0,.2,1); pointer-events: none; will-change: flex-basis, width, transform, opacity; }
body.carousel-open .carousel-side { flex: 0 0 var(--carousel-w); width: var(--carousel-w); opacity: 1; transform: translateX(0); pointer-events: auto; }

.carousel-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.carousel-side-title { font-size: 13px; letter-spacing: 2px; color: var(--fg); font-weight: 600; }
.carousel-side-close { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .25s; }
.carousel-side-close:hover { background: rgba(255,77,141,.35); border-color: rgba(255,77,141,.6); transform: rotate(90deg); }

.carousel-side-stage { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; padding: 0; margin: 0; overflow: hidden; perspective: 1200px; cursor: grab; }
.carousel-side-stage:active { cursor: grabbing; }
.carousel-track { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }

.carousel-card { position: absolute; top: 0; left: 50%; width: calc(var(--carousel-w) - 60px); height: var(--carousel-card-h); margin-left: calc((var(--carousel-w) - 60px) / -2); border-radius: 16px; background: #0a0a12 center/cover no-repeat; box-shadow: 0 14px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.07), 0 0 60px rgba(106,92,255,.22); overflow: hidden; cursor: pointer; will-change: transform, opacity, filter; backface-visibility: hidden; display: flex; align-items: center; transition: box-shadow .35s ease; }
.carousel-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.1) 100%); z-index: 1; pointer-events: none; }
.carousel-card.active { box-shadow: 0 18px 55px rgba(0,0,0,.85), 0 0 0 2px rgba(255,255,255,.5), 0 0 100px rgba(255,77,141,.5), 0 0 150px rgba(106,92,255,.4); }
.carousel-card-cover { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.carousel-card-info { position: relative; z-index: 2; padding: 0 16px; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 2px 8px rgba(0,0,0,.9); min-width: 0; flex: 1; }
.carousel-card-title { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .3px; }
.carousel-card-artist { font-size: 10px; color: rgba(255,255,255,.72); letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carousel-card-play { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) scale(.8); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.35); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all .3s cubic-bezier(.34,1.56,.64,1); z-index: 3; pointer-events: none; }
.carousel-card:hover .carousel-card-play { opacity: 1; transform: translateY(-50%) scale(1); background: linear-gradient(135deg, var(--accent1), var(--accent2)); border-color: transparent; box-shadow: 0 0 30px rgba(255,77,141,.7); }
.carousel-card.active .carousel-card-play { opacity: .9; transform: translateY(-50%) scale(.9); background: linear-gradient(135deg, var(--accent1), var(--accent2)); border-color: transparent; box-shadow: 0 0 24px rgba(255,77,141,.6); }
.carousel-empty { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--muted); font-size: 13px; letter-spacing: 2px; }

.carousel-side-controls { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 0 8px; flex-shrink: 0; }
.carousel-ctrl { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .25s cubic-bezier(.34,1.56,.64,1); backdrop-filter: blur(10px); }
.carousel-ctrl:hover { background: rgba(255,255,255,.16); transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 24px rgba(106,92,255,.45); }
.carousel-ctrl:active { transform: scale(.92); }
.carousel-ctrl.main { width: 52px; height: 52px; background: linear-gradient(135deg, var(--accent1), var(--accent2)); border: none; box-shadow: 0 10px 28px rgba(106,92,255,.55), 0 0 50px rgba(255,77,141,.35); }
.carousel-ctrl.main:hover { transform: scale(1.08); }
.carousel-side-hint { text-align: center; color: var(--muted); font-size: 10px; letter-spacing: 2px; padding: 0 0 14px; flex-shrink: 0; }

/* ============ 底部控制条 ============ */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--bottombar-h); display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 20px; padding: 16px 32px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(5,6,10,.95) 60%, rgba(5,6,10,.65) 100%); backdrop-filter: blur(18px); border-top: 1px solid rgba(255,255,255,.08); z-index: 50; }
.now-playing { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.meta { min-width: 0; }
.title { font-size: 18px; font-weight: 700; letter-spacing: .5px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(90deg, #fff, #b3b3ff, #fff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite; }
.artist { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center-controls { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.progress-wrap { display: flex; align-items: center; gap: 12px; width: 100%; }
.t { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 36px; text-align: center; }
.progress { flex: 1; height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; position: relative; cursor: pointer; transition: height .2s; }
.progress:hover { height: 7px; }
.progress-buffer { position: absolute; left: 0; top: 0; height: 100%; background: rgba(255,255,255,.15); border-radius: 4px; width: 0%; transition: width .3s; }
.progress-fill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, var(--accent1), var(--accent2)); border-radius: 4px; width: 0%; box-shadow: 0 0 10px rgba(255,77,141,.6); }
.progress-dot { position: absolute; top: 50%; left: 0; width: 11px; height: 11px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%) scale(0); transition: transform .2s; box-shadow: 0 0 12px rgba(255,255,255,.8); pointer-events: none; }
.progress:hover .progress-dot { transform: translate(-50%, -50%) scale(1); }
.controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ctrl { background: transparent; border: none; color: var(--fg); cursor: pointer; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: all .25s cubic-bezier(.34,1.56,.64,1); position: relative; }
.ctrl::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.08); transform: scale(0); transition: transform .25s; }
.ctrl:hover::before { transform: scale(1); }
.ctrl:hover { color: #fff; }
.ctrl:active { transform: scale(.92); }
.ctrl.active { color: var(--accent2); }
.ctrl.active::before { background: rgba(255,77,141,.15); }
.ctrl.main { width: 54px; height: 54px; background: linear-gradient(135deg, var(--accent1), var(--accent2)); color: #fff; box-shadow: 0 8px 22px rgba(106,92,255,.5), 0 0 40px rgba(255,77,141,.3); }
.ctrl.main::before { display: none; }
.ctrl.main:hover { transform: scale(1.06); }
.right-controls { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; min-width: 0; }
.spectrum { display: flex; align-items: flex-end; justify-content: flex-end; gap: 2px; height: 24px; width: 100%; max-width: 220px; overflow: hidden; }
.spectrum i { display: block; width: 3px; border-radius: 2px; background: linear-gradient(to top, var(--accent1), var(--accent2)); height: 3px; transition: height .08s linear; box-shadow: 0 0 6px rgba(255,77,141,.5); flex-shrink: 0; }
.volume-wrap { display: flex; align-items: center; gap: 8px; color: var(--muted); width: min(220px, 100%); }
.volume { flex: 1; height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; position: relative; cursor: pointer; transition: height .2s; }
.volume:hover { height: 7px; }
.volume-fill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, var(--accent3), var(--accent1)); border-radius: 4px; width: 70%; }
.volume-dot { position: absolute; top: 50%; left: 70%; width: 9px; height: 9px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%) scale(0); transition: transform .2s; pointer-events: none; box-shadow: 0 0 8px #fff; }
.volume:hover .volume-dot { transform: translate(-50%, -50%) scale(1); }
.v { font-size: 11px; min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }

/* ============ 备案号页脚 ============ */
.site-footer { position: fixed; left: 0; right: 0; bottom: calc(var(--bottombar-h)); z-index: 55; height: var(--footer-h); display: flex; align-items: center; justify-content: center; pointer-events: auto; background: transparent; transition: opacity .35s ease; }
.site-footer-inner { display: flex; align-items: center; gap: 12px; padding: 4px 14px; border-radius: 12px; background: rgba(0,0,0,.28); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.06); font-size: 11px; letter-spacing: .5px; color: rgba(233,233,240,.55); white-space: nowrap; }
.site-footer-text { color: rgba(233,233,240,.45); }
.site-footer-link { color: rgba(233,233,240,.62); text-decoration: none; transition: color .2s ease; border-bottom: 1px dashed rgba(233,233,240,.28); padding-bottom: 1px; }
.site-footer-link:hover { color: var(--accent3); border-bottom-color: rgba(34,230,200,.5); }
body.pure-mode .site-footer { opacity: 0; pointer-events: none; }

/* ============ 操作手册弹层 ============ */
.manual-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(5,6,10,.72); backdrop-filter: blur(14px) saturate(140%); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.manual-overlay.open { opacity: 1; pointer-events: auto; }
.manual-panel { width: min(640px, 100%); max-height: min(80vh, 720px); display: flex; flex-direction: column; background: rgba(14,14,22,.92); border: 1px solid rgba(255,255,255,.10); border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.75); overflow: hidden; transform: translateY(12px) scale(.98); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.manual-overlay.open .manual-panel { transform: translateY(0) scale(1); }
.manual-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.manual-title { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; color: var(--fg); }
.manual-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .25s; }
.manual-close:hover { background: rgba(255,77,141,.35); border-color: rgba(255,77,141,.6); transform: rotate(90deg); }
.manual-body { flex: 1; overflow-y: auto; padding: 16px 20px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.manual-body::-webkit-scrollbar { width: 6px; }
.manual-body::-webkit-scrollbar-thumb { background: rgba(106,92,255,.4); border-radius: 3px; }
.manual-section { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); border-radius: 12px; padding: 12px 14px; }
.manual-section h4 { font-size: 12.5px; font-weight: 700; color: var(--accent3); letter-spacing: 1px; margin-bottom: 8px; }
.manual-section ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.manual-section li { font-size: 12px; line-height: 1.7; color: rgba(233,233,240,.72); padding-left: 12px; position: relative; }
.manual-section li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 6px var(--accent2); }
.manual-section b { color: var(--fg); font-weight: 600; background: rgba(106,92,255,.18); padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(106,92,255,.28); font-size: 11px; }
.manual-section code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 4px; font-family: monospace; color: var(--accent3); font-size: 11px; }
.manual-section.mobile-only-section { display: none; }
.manual-foot { padding: 10px 20px 14px; border-top: 1px solid rgba(255,255,255,.06); text-align: center; flex-shrink: 0; }
.manual-tip { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.manual-tip b { color: var(--accent3); background: rgba(34,230,200,.12); padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(34,230,200,.28); font-size: 11px; }

/* ============ 播放列表抽屉 ============ */
.drawer { position: fixed; top: 0; right: -420px; width: 400px; height: 100%; background: rgba(12,12,20,.92); backdrop-filter: blur(24px); border-left: 1px solid var(--line); z-index: 200; display: flex; flex-direction: column; transition: right .5s cubic-bezier(.34,1.56,.64,1); box-shadow: -20px 0 60px rgba(0,0,0,.6); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.drawer.open { right: 0; }
.drawer-head { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 14px; letter-spacing: 2px; font-weight: 500; }
.drawer-toolbar { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.carousel-toggle-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; background: linear-gradient(135deg, rgba(106,92,255,.18), rgba(255,77,141,.18)); border: 1px solid rgba(106,92,255,.4); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: all .25s; font-family: inherit; }
.carousel-toggle-btn:hover { background: linear-gradient(135deg, rgba(106,92,255,.32), rgba(255,77,141,.32)); transform: translateY(-1px); }
.carousel-toggle-btn.active { background: linear-gradient(135deg, var(--accent1), var(--accent2)); border-color: transparent; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px; }
.drawer-body::-webkit-scrollbar { width: 5px; }
.drawer-body::-webkit-scrollbar-thumb { background: rgba(106,92,255,.4); border-radius: 3px; }

.pl-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: all .25s; margin-bottom: 3px; position: relative; }
.pl-item:hover { background: rgba(255,255,255,.06); }
.pl-item.active { background: rgba(106,92,255,.15); }
.pl-item.active::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 3px; background: linear-gradient(var(--accent1), var(--accent2)); border-radius: 3px; }
.pl-cover { width: 40px; height: 40px; border-radius: 8px; background: #222 center/cover no-repeat; flex-shrink: 0; }
.pl-info { flex: 1; min-width: 0; }
.pl-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.pl-artist { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-badge { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.pl-badge span { width: 3px; background: var(--accent2); border-radius: 2px; animation: playingBar .8s ease-in-out infinite; box-shadow: 0 0 5px var(--accent2); }
.pl-badge span:nth-child(1) { animation-delay: 0s; height: 7px; }
.pl-badge span:nth-child(2) { animation-delay: .2s; height: 12px; }
.pl-badge span:nth-child(3) { animation-delay: .4s; height: 9px; }
@keyframes playingBar { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.pl-del { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(255,77,141,.12); color: var(--accent2); font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all .2s; margin-left: 4px; font-family: inherit; }
.pl-item:hover .pl-del { opacity: 1; }
.pl-del:hover { background: rgba(255,77,141,.3); transform: scale(1.1); }
.pl-source { font-size: 9px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--muted); margin-left: 4px; flex-shrink: 0; }
.pl-source.netease { color: #ff5c5c; background: rgba(255,92,92,.12); }
.pl-source.kugou { color: #4db8ff; background: rgba(77,184,255,.12); }
.pl-source.qq { color: #ffd24d; background: rgba(255,210,77,.12); }

.drawer-foot { padding: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.mini-btn { width: 100%; padding: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--fg); border-radius: 8px; cursor: pointer; font-size: 12px; letter-spacing: 1px; transition: all .25s; font-family: inherit; }
.mini-btn:hover { background: rgba(106,92,255,.2); border-color: var(--accent1); }

.drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; opacity: 0; pointer-events: none; transition: opacity .4s; backdrop-filter: blur(2px); }
.drawer-mask.show { opacity: 1; pointer-events: auto; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 12px; line-height: 1.8; }
.empty code { display: inline-block; background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 5px; font-family: monospace; color: var(--accent3); margin: 3px 0; }

/* ============ 在线音乐抽屉 ============ */
.online-drawer { position: fixed; top: 0; right: -480px; width: 460px; height: 100%; background: rgba(12,12,20,.95); backdrop-filter: blur(24px); border-left: 1px solid var(--line); z-index: 200; display: flex; flex-direction: column; transition: right .5s cubic-bezier(.34,1.56,.64,1); box-shadow: -20px 0 60px rgba(0,0,0,.6); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.online-drawer.open { right: 0; }
.online-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; opacity: 0; pointer-events: none; transition: opacity .4s; backdrop-filter: blur(2px); }
.online-mask.show { opacity: 1; pointer-events: auto; }
.platform-switcher { display: flex; gap: 8px; padding: 14px 20px 8px; border-bottom: 1px solid var(--line); }
.plat-btn { flex: 1; padding: 8px 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .25s; font-family: inherit; white-space: nowrap; }
.plat-btn.active { background: linear-gradient(135deg, var(--accent1), var(--accent2)); color: #fff; border-color: transparent; box-shadow: 0 3px 12px rgba(106,92,255,.3); }
.plat-btn[data-plat="qq"].active { background: linear-gradient(135deg, #ffb800, #ff6b00); box-shadow: 0 3px 12px rgba(255,140,0,.4); }
.plat-btn[data-plat="kugou"].active { background: linear-gradient(135deg, #4db8ff, #1e6fff); box-shadow: 0 3px 12px rgba(77,184,255,.4); }

.netease-login-area { padding: 14px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.netease-user-info { display: flex; align-items: center; gap: 12px; }
.netease-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent1); object-fit: cover; }
.netease-user-meta { flex: 1; }
.netease-nickname { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.netease-logout-btn { padding: 3px 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); border-radius: 5px; font-size: 11px; cursor: pointer; font-family: inherit; }
.netease-qr-area { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.netease-qr-box { width: 150px; height: 150px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.netease-qr-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 5px; }
.netease-qr-placeholder { color: var(--muted); font-size: 11px; text-align: center; padding: 0 16px; line-height: 1.6; }
.netease-qr-btn { padding: 8px 18px; background: linear-gradient(135deg, var(--accent1), var(--accent2)); border: none; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .25s; font-family: inherit; }
.netease-qr-btn:disabled { opacity: .5; cursor: not-allowed; }
.netease-qr-status { font-size: 11px; color: var(--muted); min-height: 14px; letter-spacing: .5px; }

.qq-login-area { padding: 0; }
.qq-qr-area { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }

/* ============ QQ 手机号登录表单 ============ */
.qq-phone-form { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 4px 0; }
.qq-phone-input-row { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.32); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; transition: border-color .2s; }
.qq-phone-input-row:focus-within { border-color: #ffb800; box-shadow: 0 0 0 2px rgba(255,184,0,.15); }
.qq-phone-prefix { font-size: 13px; color: var(--muted); font-weight: 600; padding-right: 6px; border-right: 1px solid var(--line); }
.qq-phone-input { flex: 1; background: transparent; border: none; outline: none; color: var(--fg); font-size: 13px; padding: 11px 0; font-family: inherit; letter-spacing: .5px; min-width: 0; }
.qq-phone-input::placeholder { color: rgba(233,233,240,.35); }
.qq-code-btn { flex-shrink: 0; padding: 6px 12px; background: rgba(255,184,0,.15); border: 1px solid rgba(255,184,0,.4); border-radius: 6px; color: #ffb800; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s; white-space: nowrap; }
.qq-code-btn:hover { background: rgba(255,184,0,.28); }
.qq-code-btn:disabled { opacity: .5; cursor: not-allowed; }
.qq-login-btn { width: 100%; padding: 10px; background: linear-gradient(135deg, #ffb800, #ff6b00); border-radius: 8px; font-size: 13px; }
.qq-login-btn:disabled { opacity: .5; cursor: not-allowed; }

.online-search-area { flex: 1; display: flex; flex-direction: column; padding: 14px 20px 18px; overflow: hidden; }
.online-search-box { display: flex; gap: 8px; margin-bottom: 14px; }
.online-search-box input { flex: 1; padding: 10px 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 8px; color: var(--fg); font-size: 13px; outline: none; font-family: inherit; }
.online-search-box input:focus { border-color: var(--accent1); }
.online-search-box button { padding: 10px 16px; background: linear-gradient(135deg, var(--accent1), var(--accent2)); border: none; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.online-results { flex: 1; overflow-y: auto; padding-right: 4px; }
.online-results::-webkit-scrollbar { width: 4px; }
.online-results::-webkit-scrollbar-thumb { background: rgba(106,92,255,.4); border-radius: 3px; }
.online-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; margin-bottom: 4px; background: rgba(255,255,255,.03); transition: all .2s; }
.online-item:hover { background: rgba(106,92,255,.12); }
.online-item-info { flex: 1; min-width: 0; }
.online-item-title { font-size: 13px; font-weight: 500; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-item-artist { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-item-duration { font-size: 10px; color: var(--muted); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.online-actions { display: flex; gap: 6px; flex-shrink: 0; }
.online-btn { padding: 5px 10px; border: none; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit; transition: all .2s; }
.online-btn.play { background: linear-gradient(135deg, var(--accent1), var(--accent2)); }
.online-btn.play:hover { transform: scale(1.05); }
.online-btn.add { background: rgba(34,230,200,.15); color: var(--accent3); border: 1px solid rgba(34,230,200,.35); }
.online-btn.add:hover { background: rgba(34,230,200,.3); transform: scale(1.05); }
.online-btn.added { background: rgba(255,255,255,.08); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.online-empty { text-align: center; color: var(--muted); padding: 30px 16px; font-size: 12px; line-height: 1.8; }

/* ============ 我的歌单 ============ */
.playlist-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; margin-bottom: 4px; background: rgba(255,255,255,.03); transition: all .2s; cursor: pointer; }
.playlist-card:hover { background: rgba(106,92,255,.12); }
.playlist-card-cover { width: 44px; height: 44px; border-radius: 8px; background: #222 center/cover no-repeat; flex-shrink: 0; }
.playlist-card-info { flex: 1; min-width: 0; }
.playlist-card-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-card-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-card-arrow { color: var(--muted); font-size: 16px; flex-shrink: 0; }
.playlist-back-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 10px; background: rgba(106,92,255,.12); border-radius: 8px; font-size: 12px; }
.playlist-back-bar button { background: transparent; border: 1px solid var(--line); color: var(--fg); padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 11px; font-family: inherit; }
.playlist-back-bar button:hover { background: rgba(255,255,255,.08); }
.playlist-back-bar button:disabled { opacity: .5; cursor: not-allowed; }
.playlist-back-bar .playlist-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--accent3); font-weight: 600; }

/* ============ 在线 Tab ============ */
.online-tabs { display: flex; gap: 0; padding: 0 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.online-tab { flex: 1; padding: 10px 0; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; }
.online-tab:hover { color: var(--fg); }
.online-tab.active { color: var(--accent3); border-bottom-color: var(--accent3); }
.online-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ============================================================
   移动端
   ============================================================ */
@media (max-width: 820px), (pointer: coarse) {
  #bgParticleCanvas, #bgCanvas, #particleCanvas { display: none !important; }
  #bgVideoLayer { display: none !important; }   /* ★ 手机端不显示视频背景 */
  #carouselBtn { display: none !important; }    /* ★ 手机端隐藏轮播按钮 */
  .pc-only { display: none !important; }

  :root {
    --topbar-h: 56px;
    --bottombar-h: 168px;
    --carousel-w: 88vw;
    --carousel-card-h: 112px;
  }

  .topbar { padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); gap: 6px; }
  .logo-text { font-size: 12px; }
  .status { display: none; }
  .topbar-right { gap: 6px; }
  .icon-btn { width: 36px; height: 36px; border-radius: 10px; }
  .icon-btn svg { width: 17px; height: 17px; }

  .main-stage { padding-top: calc(var(--topbar-h) + env(safe-area-inset-top) + 4px); padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom) + 6px); display: block; overflow: hidden; }
  body.pure-mode .main-stage { padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

  .scene { width: 100%; height: 100%; padding: 0 10px; perspective: none; transition: transform .35s ease, opacity .35s ease; touch-action: none; }
  body.carousel-open .scene { flex: none; padding-right: 0; transform: scale(.92); opacity: .35; pointer-events: none; }
  body.carousel-open .lyric-panel { transform: none; }

  .stage-3d { transform: none; transition: none; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transform-style: flat; will-change: transform; }

  .lyric-panel { width: 100%; max-width: 100%; height: 100%; min-height: 0; padding: 12px 14px 10px; border-radius: 18px; transform: none !important; transform-origin: center center; will-change: transform; }
  body.carousel-open .lyric-panel { transform: none !important; }

  .lyric-line {
    font-size: 17px;
    padding: 8px 10px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.7);
  }
  .lyric-line.active {
    font-size: 23px;
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow:
      0 0 20px rgba(106, 92, 255, 0.95),
      0 0 44px rgba(255, 77, 141, 0.65),
      0 2px 8px rgba(0, 0, 0, 0.95);
  }
  .lyric-line.near {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.92);
  }
  .lyric-scroll { padding: 120px 4px; }
  .lyric-empty { font-size: 12px; padding: 30px 10px; color: rgba(233,233,240,.7); }

  .carousel-side { display: none !important; }

  .bottom-bar { height: var(--bottombar-h); grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; gap: 6px; padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .now-playing { text-align: center; }
  .title { font-size: 15px; margin-bottom: 1px; }
  .artist { font-size: 10px; letter-spacing: 1.5px; }
  .center-controls { gap: 8px; }
  .progress-wrap { gap: 10px; width: 100%; }
  .t { font-size: 11px; min-width: 40px; }
  .progress { height: 6px; border-radius: 6px; }
  .progress:hover { height: 6px; }
  .progress-fill { border-radius: 6px; }
  .progress-buffer { border-radius: 6px; }
  .progress-dot { transform: translate(-50%, -50%) scale(1); width: 12px; height: 12px; }
  .controls { gap: 14px; }
  .ctrl { width: 40px; height: 40px; }
  .ctrl.main { width: 52px; height: 52px; }
  .ctrl svg { width: 22px; height: 22px; }
  .ctrl.main svg { width: 28px; height: 28px; }
  .right-controls { align-items: center; flex-direction: column; justify-content: center; gap: 4px; }
  .spectrum { max-width: 100%; height: 16px; justify-content: center; }
  .spectrum i { width: 2px; }
  .volume-wrap { width: 100%; max-width: 260px; justify-content: center; }
  .volume-wrap svg { width: 14px; height: 14px; }
  .volume { height: 5px; }
  .volume:hover { height: 5px; }
  .volume-fill { border-radius: 5px; }
  .volume-dot { transform: translate(-50%, -50%) scale(1); width: 11px; height: 11px; }
  .v { min-width: 26px; font-size: 10px; }

  .site-footer { display: none !important; }

  .manual-overlay { padding: 12px; }
  .manual-panel { max-height: 88vh; border-radius: 16px; }
  .manual-body { grid-template-columns: 1fr; gap: 10px; padding: 12px 14px 16px; }
  .manual-section { padding: 10px 12px; }
  .manual-section li { font-size: 12px; }
  .manual-section.mobile-only-section { display: block; }

  .drawer, .online-drawer { width: 100%; right: -100%; border-left: none; }
  .drawer.open, .online-drawer.open { right: 0; }
  .drawer-head { padding: 14px 16px; }
  .drawer-head h3 { font-size: 13px; }
  .drawer-body { padding: 8px 10px; }
  .online-search-area { padding: 12px 14px 16px; }
  .platform-switcher { padding: 12px 16px 8px; }
  .netease-login-area { padding: 12px 16px; }
  .qq-qr-area { padding: 12px 16px; }
  .online-tabs { padding: 0 16px; }
  .pl-item { padding: 10px 8px; }
  .pl-cover { width: 38px; height: 38px; }
  .pl-title { font-size: 13px; }
  .online-item { padding: 10px 8px; }
  .online-item-title { font-size: 13px; }
  .online-btn { padding: 6px 10px; }
  .carousel-card { filter: none !important; }
}

@media (max-width: 400px) {
  :root { --topbar-h: 52px; --bottombar-h: 162px; }
  .lyric-line { font-size: 15px; }
  .lyric-line.active { font-size: 20px; }
  .lyric-line.near { font-size: 17px; }
  .title { font-size: 14px; }
  .ctrl { width: 36px; height: 36px; }
  .ctrl.main { width: 46px; height: 46px; }
  .carousel-card-title { font-size: 12px; }
}

@media (max-height: 500px) and (pointer: coarse) {
  :root { --topbar-h: 46px; --bottombar-h: 100px; }
  .bottom-bar { grid-template-columns: 1fr 2fr 1fr; grid-template-rows: none; gap: 12px; padding: 8px 14px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .now-playing { text-align: left; }
  .right-controls { flex-direction: column; }
  .lyric-line { font-size: 14px; }
  .lyric-line.active { font-size: 18px; }
  .lyric-line.near { font-size: 15px; }
  .title { font-size: 13px; }
  .artist { font-size: 9px; }
}

/* ============ QQ 安全验证弹层 ============ */
.qq-verify-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: qqVerifyFadeIn .25s ease;
}
@keyframes qqVerifyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.qq-verify-panel {
  width: min(380px, 100%);
  background: rgba(20, 20, 28, 0.98);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(255, 184, 0, 0.15);
  overflow: hidden;
  transform: translateY(8px) scale(.98);
  animation: qqVerifyPanelIn .3s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
@keyframes qqVerifyPanelIn {
  to { transform: translateY(0) scale(1); }
}

.qq-verify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.12), rgba(255, 107, 0, 0.12));
}
.qq-verify-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffb800;
  letter-spacing: 1px;
}
.qq-verify-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  font-family: inherit;
}
.qq-verify-close:hover {
  background: rgba(255, 77, 141, 0.35);
  border-color: rgba(255, 77, 141, 0.6);
  transform: rotate(90deg);
}

.qq-verify-body {
  padding: 20px 18px 14px;
  text-align: center;
}
.qq-verify-tip {
  font-size: 13px;
  color: rgba(233, 233, 240, 0.85);
  line-height: 1.7;
  margin-bottom: 16px;
}
.qq-verify-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #ffb800, #ff6b00);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s cubic-bezier(.34, 1.56, .64, 1);
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.35);
}
.qq-verify-open-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(255, 140, 0, 0.5);
}
.qq-verify-open-btn:active {
  transform: scale(.97);
}
.qq-verify-hint {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(233, 233, 240, 0.5);
  line-height: 1.6;
}

.qq-verify-foot {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.qq-verify-retry-btn {
  width: 100%;
  padding: 10px;
  background: rgba(34, 230, 200, 0.12);
  border: 1px solid rgba(34, 230, 200, 0.4);
  border-radius: 8px;
  color: var(--accent3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
}
.qq-verify-retry-btn:hover {
  background: rgba(34, 230, 200, 0.22);
  border-color: rgba(34, 230, 200, 0.7);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .qq-verify-panel {
    width: min(340px, 92vw);
  }
  .qq-verify-tip {
    font-size: 12px;
  }
  .qq-verify-open-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ============================================================
   ★ 流体背景画布
   ============================================================ */
#fluidCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
  mix-blend-mode: screen;
}
#fluidCanvas.active {
  opacity: 0.55;
}

body.fluid-mode #bgParticleCanvas,
body.fluid-mode #bgCanvas {
  opacity: 0 !important;
  transition: opacity .6s ease;
}

/* ============================================================
   ★ 律动选择器（下拉菜单）
   ============================================================ */
.pulse-selector {
  position: relative;
  display: inline-flex;
}

.pulse-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  background: rgba(14, 14, 22, 0.96);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(106, 92, 255, 0.08);
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1);
  z-index: 200;
}
.pulse-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.pulse-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(233, 233, 240, 0.78);
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: left;
  transition: all .2s ease;
}
.pulse-menu-item:hover {
  background: rgba(106, 92, 255, 0.18);
  color: #fff;
  transform: translateX(2px);
}
.pulse-menu-item.active {
  background: linear-gradient(135deg, rgba(106, 92, 255, 0.35), rgba(255, 77, 141, 0.28));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.pulse-menu-item.active::after {
  content: '✓';
  margin-left: auto;
  color: var(--accent3);
  font-weight: 700;
  font-size: 12px;
}
.pmi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  flex-shrink: 0;
}
.pulse-menu-item.active .pmi-icon {
  background: rgba(34, 230, 200, 0.22);
  color: var(--accent3);
}
.pmi-label { flex: 1; }

@media (max-width: 820px), (pointer: coarse) {
  .pulse-selector { display: none !important; }
}

/* ============================================================
   ★ 粒子设置弹层
   ============================================================ */
.particle-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(5,6,10,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.particle-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.particle-panel {
  width: min(480px, 100%);
  max-height: min(80vh, 680px);
  display: flex;
  flex-direction: column;
  background: rgba(14,14,22,.94);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.75), 0 0 0 1px rgba(106,92,255,.08);
  overflow: hidden;
  transform: translateY(12px) scale(.98);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.particle-overlay.open .particle-panel {
  transform: translateY(0) scale(1);
}

.particle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.particle-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--fg);
}
.particle-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
}
.particle-close:hover {
  background: rgba(255,77,141,.35);
  border-color: rgba(255,77,141,.6);
  transform: rotate(90deg);
}

.particle-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.particle-body::-webkit-scrollbar { width: 6px; }
.particle-body::-webkit-scrollbar-thumb {
  background: rgba(106,92,255,.4);
  border-radius: 3px;
}

.particle-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 12px;
  padding: 12px 14px;
}
.particle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(233,233,240,.85);
  letter-spacing: .5px;
}
.particle-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent3);
  background: rgba(34,230,200,.12);
  border: 1px solid rgba(34,230,200,.28);
  padding: 1px 8px;
  border-radius: 6px;
  min-width: 48px;
  text-align: center;
}

.particle-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  outline: none;
  cursor: pointer;
}
.particle-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(106,92,255,.6);
  cursor: pointer;
  transition: transform .2s;
}
.particle-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.particle-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(106,92,255,.6);
  cursor: pointer;
}

.particle-hint {
  font-size: 10.5px;
  color: rgba(233,233,240,.45);
  letter-spacing: .5px;
}

.particle-foot {
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.particle-reset-btn {
  width: 100%;
  padding: 10px;
  background: rgba(106,92,255,.12);
  border: 1px solid rgba(106,92,255,.4);
  border-radius: 8px;
  color: var(--accent1);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
  letter-spacing: .5px;
}
.particle-reset-btn:hover {
  background: rgba(106,92,255,.22);
  border-color: rgba(106,92,255,.7);
  transform: translateY(-1px);
}

@media (max-width: 820px), (pointer: coarse) {
  .particle-overlay { padding: 12px; }
  .particle-panel { max-height: 88vh; border-radius: 16px; }
  .particle-body { padding: 14px 16px 16px; gap: 14px; }
  .particle-row { padding: 10px 12px; }
}

body.pure-mode #particleSettingBtn { display: none !important; }
/* ==================== 备案页脚 ==================== */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;                 /* 关键：盖在 3D 舞台之上 */
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
  pointer-events: auto;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-footer-divider {
  opacity: 0.4;
}

.site-footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-link:hover {
  color: #6eb8ff;
  text-decoration: underline;
}

/* 给底部播放条留出页脚高度，防止遮挡 */
.bottom-bar {
  bottom: 34px !important;
}

/* 手机端适配 */
@media (max-width: 768px) {
  .site-footer {
    height: 30px;
    font-size: 11px;
  }
  .site-footer-divider {
    display: none;
  }
  .bottom-bar {
    bottom: 30px !important;
  }
}