/* =====================================================
   云音 NEXT · Design System v2
   无分割线 / 无边框 · 深空灰 + 柔和红 · 悬浮层级
   ===================================================== */
:root {
  /* 配色 */
  --bg: #0a0a0d;
  --bg-soft: #101014;
  --surface-1: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --surface-3: rgba(255, 255, 255, .11);
  --text: #f4f4f7;
  --text-2: #9d9da8;
  --text-3: #595964;
  --red: #fa5252;
  --red-2: #ff8787;
  --red-deep: #f03e3e;
  --red-dim: rgba(250, 82, 82, .13);
  --grad-red: linear-gradient(135deg, #ff8787 0%, #f03e3e 100%);

  /* 尺寸 */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --player-h: 96px;
  --sidebar-w: 240px;

  /* 阴影（替代边框的层级语言） */
  --sh-1: 0 2px 10px rgba(0, 0, 0, .25);
  --sh-2: 0 10px 34px rgba(0, 0, 0, .42);
  --sh-3: 0 22px 70px rgba(0, 0, 0, .55);
  --sh-red: 0 8px 26px rgba(240, 62, 62, .38);

  --ease-spring: cubic-bezier(.22, 1.4, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }
button { font-family: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
input { font-family: inherit; }
img { display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(250, 82, 82, .35); }

/* ========== 背景氛围 ========== */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(130px); opacity: .42; will-change: transform; }
.blob-1 { width: 44vw; height: 44vw; background: #2a1533; top: -16vw; right: -10vw; animation: drift1 28s ease-in-out infinite alternate; }
.blob-2 { width: 32vw; height: 32vw; background: #33161c; bottom: -14vw; left: 26vw; animation: drift2 34s ease-in-out infinite alternate; }
.blob-3 { width: 24vw; height: 24vw; background: #101d33; top: 34vh; left: -11vw; animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-9vw, 10vh) scale(1.18); } }
@keyframes drift2 { to { transform: translate(8vw, -8vh) scale(.85); } }
@keyframes drift3 { to { transform: translate(10vw, 9vh) scale(1.22); } }

/* ========== 侧边栏 ========== */
.sidebar {
  position: fixed; z-index: 30; top: 0; left: 0; bottom: var(--player-h);
  width: var(--sidebar-w); padding: 26px 16px;
  display: flex; flex-direction: column; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 11px; cursor: pointer; padding: 0 10px; transition: transform .3s var(--ease-spring); }
.logo:hover { transform: scale(1.03); }
.logo svg { filter: drop-shadow(0 6px 18px rgba(240, 62, 62, .55)); }
.logo span { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.logo em { font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--red-2); background: var(--red-dim); border-radius: 6px; padding: 2.5px 6px; margin-left: 7px; vertical-align: 3px; letter-spacing: 1px; }
.nav-group { display: flex; flex-direction: column; gap: 5px; }
.nav-title { font-size: 11px; font-weight: 600; color: var(--text-3); padding: 0 14px 7px; letter-spacing: 2.5px; }
.nav-item {
  display: flex; align-items: center; gap: 13px; padding: 11.5px 14px;
  border-radius: 14px; color: var(--text-2); font-size: 14.5px; font-weight: 500;
  transition: all .3s var(--ease-out);
}
.nav-item svg { width: 19px; height: 19px; fill: currentColor; transition: transform .3s var(--ease-spring); }
.nav-item:hover { color: var(--text); background: var(--surface-1); }
.nav-item:hover svg { transform: scale(1.14) rotate(-5deg); }
.nav-item.active {
  color: #fff; background: var(--grad-red);
  box-shadow: var(--sh-red);
  font-weight: 600;
}
.hist-item { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 12px; cursor: pointer; transition: background .25s; }
.hist-item:hover { background: var(--surface-1); }
.hist-item img { width: 36px; height: 36px; border-radius: 9px; }
.hist-item p { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-item span { font-size: 11px; color: var(--text-3); }
.sidebar-foot { margin-top: auto; font-size: 10.5px; color: var(--text-3); padding: 0 12px; letter-spacing: .3px; opacity: .8; }

/* ========== 主区域 ========== */
.main { position: fixed; inset: 0 0 var(--player-h) var(--sidebar-w); display: flex; flex-direction: column; z-index: 10; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 20px 36px 10px; position: relative; z-index: 20; }
.nav-btns { display: flex; gap: 9px; }
.icon-btn {
  width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-1); color: var(--text-2);
  transition: all .25s var(--ease-out); flex: none;
}
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.icon-btn:hover { color: #fff; background: var(--surface-3); transform: scale(1.08); }
.icon-btn:active { transform: scale(.93); }
.icon-btn.on { color: var(--red); }

/* 搜索 */
.search-box {
  position: relative; display: flex; align-items: center; gap: 11px;
  background: var(--surface-1);
  border-radius: 999px; padding: 10px 19px; width: min(400px, 44vw);
  transition: all .35s var(--ease-out);
}
.search-box:focus-within {
  background: var(--surface-2); width: min(480px, 52vw);
  box-shadow: 0 0 0 3px rgba(250, 82, 82, .16), var(--sh-2);
}
.search-box svg { width: 16px; height: 16px; fill: var(--text-3); flex: none; transition: fill .3s; }
.search-box:focus-within svg { fill: var(--red); }
.search-box input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-size: 14px; }
.search-box input::placeholder { color: var(--text-3); }
.search-panel {
  position: absolute; top: calc(100% + 12px); left: 0; right: 0; max-height: 62vh; overflow-y: auto;
  background: rgba(22, 22, 27, .88); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border-radius: 20px; box-shadow: var(--sh-3);
  padding: 12px; display: none; animation: pop .3s var(--ease-spring);
}
.search-panel.show { display: block; }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
.sp-title { font-size: 11.5px; font-weight: 600; color: var(--text-3); padding: 8px 10px 7px; letter-spacing: 1px; }
.sp-hot { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 6px 8px; }
.sp-tag { font-size: 12.5px; padding: 6px 13px; border-radius: 999px; background: var(--surface-1); color: var(--text-2); cursor: pointer; transition: all .22s var(--ease-out); }
.sp-tag:hover { background: var(--red-dim); color: var(--red-2); transform: translateY(-2px); }
.sp-tag.top { color: var(--red-2); font-weight: 600; }
.sp-song { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.sp-song:hover { background: var(--surface-1); }
.sp-song .sp-idx { width: 20px; text-align: center; font-size: 12px; color: var(--text-3); font-style: italic; }
.sp-song p { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-song span { font-size: 12px; color: var(--text-3); }

/* 视图 */
.view { flex: 1; overflow-y: auto; padding: 10px 36px 44px; scroll-behavior: smooth; }
.page { animation: pageIn .55s var(--ease-out); }
@keyframes pageIn { from { opacity: 0; transform: translateY(20px); } }
.sec-title { font-size: 21px; font-weight: 800; margin: 34px 0 18px; display: flex; align-items: center; gap: 12px; letter-spacing: .3px; }
.sec-title small { font-size: 12px; color: var(--text-3); font-weight: 400; }
.sec-title::before { content: ""; width: 5px; height: 19px; border-radius: 99px; background: var(--grad-red); box-shadow: 0 2px 10px rgba(240, 62, 62, .5); }

/* Banner 轮播 */
.banner-wrap { position: relative; height: 236px; margin-top: 10px; }
.banner-track { position: absolute; inset: 0; }
.banner-slide {
  position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  opacity: 0; transform: scale(.94) translateY(6px); transition: all .75s var(--ease-out); pointer-events: none;
}
.banner-slide.on { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; box-shadow: var(--sh-3); }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,0,0,.42), transparent 55%); }
.banner-slide .b-title { position: absolute; left: 28px; bottom: 22px; z-index: 2; font-size: 21px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 16px rgba(0,0,0,.65); max-width: 60%; }
.banner-slide .b-tag {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; padding: 5.5px 13px; font-size: 11.5px; font-weight: 600; letter-spacing: .5px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; color: rgba(255,255,255,.92);
}
.banner-dots { position: absolute; bottom: 20px; right: 26px; z-index: 3; display: flex; gap: 6px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.3); cursor: pointer; transition: all .4s var(--ease-out); }
.banner-dots i.on { width: 22px; background: #fff; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%) scale(.85); z-index: 3; opacity: 0; transition: all .3s var(--ease-out); background: rgba(0,0,0,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; }
.banner-wrap:hover .banner-arrow { opacity: 1; transform: translateY(-50%) scale(1); }
.banner-arrow.prev { left: 16px; } .banner-arrow.next { right: 16px; }

/* 卡片网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 20px; }
.card { cursor: pointer; animation: cardIn .6s var(--ease-out) backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.95); } }
.card-cover { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; box-shadow: var(--sh-1); transition: box-shadow .4s; }
.card:hover .card-cover { box-shadow: var(--sh-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.card:hover .card-cover img { transform: scale(1.08); }
.card-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 58%, rgba(0,0,0,.5)); opacity: 0; transition: opacity .4s; }
.card:hover .card-cover::after { opacity: 1; }
.card-play {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 42px; height: 42px;
  border-radius: 50%; background: var(--grad-red); display: grid; place-items: center;
  opacity: 0; transform: translateY(14px) scale(.75); transition: all .4s var(--ease-spring);
  box-shadow: var(--sh-red);
}
.card:hover .card-play { opacity: 1; transform: translateY(0) scale(1); }
.card-play:hover { transform: scale(1.12) !important; }
.card-play svg { width: 17px; height: 17px; fill: #fff; margin-left: 2px; }
.card-count { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; gap: 4px; }
.card-count svg { width: 10px; height: 10px; fill: #fff; }
.card-name { margin-top: 12px; font-size: 13.5px; font-weight: 500; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s; }
.card:hover .card-name { color: var(--red-2); }
.card-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* 排行榜 */
.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.top-card {
  display: flex; gap: 17px; padding: 17px; border-radius: var(--r-md);
  background: var(--surface-1); cursor: pointer;
  transition: all .4s var(--ease-out); animation: cardIn .6s var(--ease-out) backwards;
}
.top-card:hover { background: var(--surface-2); transform: translateY(-4px); box-shadow: var(--sh-2); }
.top-card img.tc-cover { width: 94px; height: 94px; border-radius: 13px; flex: none; box-shadow: var(--sh-1); }
.tc-list { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.tc-name { font-weight: 700; font-size: 15px; letter-spacing: .3px; margin-bottom: 1px; }
.tc-song { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-song b { color: var(--red); font-weight: 700; margin-right: 7px; font-style: italic; }
.tc-song span { color: var(--text-3); }

/* 歌曲列表 */
.song-table { width: 100%; }
.song-row { display: grid; grid-template-columns: 46px 1.6fr 1.2fr 1fr 64px; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 14px; cursor: pointer; transition: background .25s, transform .25s; animation: rowIn .45s var(--ease-out) backwards; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-16px); } }
.song-row:hover { background: var(--surface-1); }
.song-row:hover .sr-idx { color: var(--red); }
.song-row.playing { background: var(--red-dim); }
.song-row.playing .sr-name { color: var(--red-2); font-weight: 600; }
.sr-idx { color: var(--text-3); font-size: 13px; text-align: center; font-style: italic; transition: color .25s; }
.sr-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.sr-main img { width: 44px; height: 44px; border-radius: 10px; flex: none; box-shadow: var(--sh-1); }
.sr-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-artist, .sr-album { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.sr-artist:hover, .sr-album:hover { color: var(--text); }
.sr-dur { font-size: 12.5px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.sr-eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.sr-eq i { width: 3px; background: var(--red); border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.sr-eq i:nth-child(1) { height: 60%; } .sr-eq i:nth-child(2) { height: 100%; animation-delay: .2s; } .sr-eq i:nth-child(3) { height: 40%; animation-delay: .35s; }
@keyframes eq { 50% { transform: scaleY(.35); } }
.eq-paused i { animation-play-state: paused; }

/* 歌单详情 */
.pl-hero { display: flex; gap: 30px; padding: 30px; border-radius: 26px; background: var(--surface-1); position: relative; overflow: hidden; animation: pageIn .55s var(--ease-out); box-shadow: var(--sh-1); }
.pl-hero .pl-blur { position: absolute; inset: -50px; background-size: cover; filter: blur(70px) brightness(.45) saturate(1.4); z-index: 0; }
.pl-hero > * { position: relative; z-index: 1; }
.pl-hero img.pl-cover { width: 196px; height: 196px; border-radius: 20px; box-shadow: var(--sh-3); flex: none; }
.pl-info { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.pl-title { font-size: 25px; font-weight: 800; line-height: 1.35; letter-spacing: .3px; }
.pl-creator { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.pl-creator img { width: 28px; height: 28px; border-radius: 50%; box-shadow: var(--sh-1); }
.pl-desc { font-size: 12.5px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.75; }
.pl-actions { display: flex; gap: 13px; margin-top: auto; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; border-radius: 999px;
  background: var(--grad-red); color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: .5px;
  box-shadow: var(--sh-red); transition: all .3s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 34px rgba(240, 62, 62, .5); }
.btn-primary:active { transform: scale(.97); }
.btn-primary svg { width: 15px; height: 15px; fill: #fff; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; transition: all .3s; }
.btn-ghost:hover { background: var(--surface-3); transform: translateY(-2px); }
.pl-stats { display: flex; gap: 20px; font-size: 12px; color: var(--text-3); }

/* 骨架屏 */
.skeleton { position: relative; overflow: hidden; background: var(--surface-1); border-radius: var(--r-md); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%); animation: shimmer 1.5s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sk-card { aspect-ratio: 1; }

/* 空状态 */
.empty { text-align: center; padding: 90px 0; color: var(--text-3); animation: pageIn .5s; }
.empty svg { width: 60px; height: 60px; fill: currentColor; opacity: .35; margin-bottom: 18px; }

/* ========== 悬浮播放条 ========== */
.player-bar {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 14px; height: 68px;
  display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 20px;
  padding: 0 18px; border-radius: var(--r-lg);
  background: rgba(20, 20, 25, .72); backdrop-filter: blur(36px) saturate(1.5); -webkit-backdrop-filter: blur(36px) saturate(1.5);
  box-shadow: var(--sh-3), inset 0 1px 0 rgba(255,255,255,.06);
}
.pb-song { display: flex; align-items: center; gap: 13px; min-width: 0; }
.pb-cover-wrap { position: relative; width: 48px; height: 48px; flex: none; border-radius: 12px; overflow: hidden; box-shadow: var(--sh-1); }
.pb-cover { width: 100%; height: 100%; object-fit: cover; background: var(--bg-soft); }
.pb-cover:not([src]), .pb-cover[src=""] { opacity: 0; }
.pb-expand { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.pb-cover-wrap:hover .pb-expand { opacity: 1; }
.pb-expand svg { width: 20px; height: 20px; fill: #fff; }
.pb-meta { min-width: 0; }
.pb-name { font-size: 13.5px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-artist { font-size: 11.5px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-like { background: transparent; }
.pb-like:hover { background: var(--surface-2); }
.pb-like.liked { color: var(--red); }
.pb-like.liked svg { animation: heartbeat .5s var(--ease-spring); }
@keyframes heartbeat { 30% { transform: scale(1.35); } 60% { transform: scale(.92); } }

.pb-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pb-controls { display: flex; align-items: center; gap: 16px; }
.pb-controls .icon-btn { background: transparent; }
.pb-controls .icon-btn:hover { background: var(--surface-2); }
.play-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #0a0a0d;
  display: grid; place-items: center; transition: all .25s var(--ease-spring); flex: none;
  box-shadow: 0 4px 18px rgba(255,255,255,.22);
}
.play-btn svg { width: 19px; height: 19px; fill: currentColor; }
.play-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(255,255,255,.3); }
.play-btn:active { transform: scale(.92); }
.play-btn.big { width: 60px; height: 60px; }
.play-btn.big svg { width: 26px; height: 26px; }
.play-btn.loading { pointer-events: none; }
.play-btn.loading::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pb-progress { display: flex; align-items: center; gap: 11px; width: 100%; max-width: 540px; }
.time { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; width: 34px; letter-spacing: .5px; }
.time:last-child { text-align: right; }
.progress-track { position: relative; flex: 1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.1); cursor: pointer; transition: height .2s; }
.progress-track:hover { height: 7px; }
.progress-load { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: rgba(255,255,255,.18); }
.progress-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: var(--grad-red); box-shadow: 0 0 10px rgba(240,62,62,.4); }
.progress-dot { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%) scale(0); transition: transform .2s; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.progress-track:hover .progress-dot { transform: translate(-50%, -50%) scale(1); }
.pb-right { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.pb-right .icon-btn { background: transparent; }
.pb-right .icon-btn:hover { background: var(--surface-2); }
.vol-track { width: 80px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.1); cursor: pointer; position: relative; transition: height .2s; }
.vol-track:hover { height: 6px; }
.vol-fill { position: absolute; inset: 0 auto 0 0; width: 80%; border-radius: 99px; background: rgba(255,255,255,.85); }

/* ========== 全屏播放器 ========== */
.now-playing {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  transform: translateY(103%); transition: transform .7s var(--ease-out); overflow: hidden;
}
.now-playing.open { transform: translateY(0); }
.np-bg { position: absolute; inset: -70px; background-size: cover; background-position: center; filter: blur(80px) brightness(.38) saturate(1.5); transform: scale(1.12); transition: background-image 1s; }
.np-mask { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 18%, transparent, rgba(0,0,0,.6)); }
.np-collapse { position: absolute; top: 28px; left: 32px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: all .3s; }
.np-collapse:hover { background: rgba(255,255,255,.2); transform: scale(1.08); }
.np-collapse svg { width: 20px; height: 20px; fill: #fff; }
.np-body { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; padding: 0 7vw; }
.np-left { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.turntable { position: relative; width: min(330px, 30vw); aspect-ratio: 1; }
.disc {
  width: 100%; height: 100%; border-radius: 50%; position: relative;
  background: repeating-radial-gradient(circle, #0a0a0d 0 2px, #141418 2px 4px);
  box-shadow: 0 0 0 9px #17171d, 0 0 0 10px rgba(255,255,255,.05), 0 34px 90px rgba(0,0,0,.75);
  display: grid; place-items: center;
  animation: spin 22s linear infinite; animation-play-state: paused;
}
.disc.spinning { animation-play-state: running; }
.disc-cover { width: 65%; height: 65%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px rgba(0,0,0,.55); }
.disc-hole { position: absolute; width: 11%; height: 11%; border-radius: 50%; background: #0d0d11; box-shadow: inset 0 0 0 3px rgba(255,255,255,.08); }
.tonearm {
  position: absolute; top: -9%; right: -7%; width: 36%; height: 7px; border-radius: 99px;
  background: linear-gradient(90deg, #777, #ddd); transform-origin: 93% 50%;
  transform: rotate(-33deg); transition: transform .9s var(--ease-out); z-index: 3;
  box-shadow: 0 4px 14px rgba(0,0,0,.55);
}
.tonearm::after { content: ""; position: absolute; left: -5%; top: -4.5px; width: 16px; height: 16px; border-radius: 5px; background: #ddd; }
.turntable.playing .tonearm { transform: rotate(-4deg); }
.np-controls { display: flex; align-items: center; gap: 28px; }
.np-controls .icon-btn { width: 47px; height: 47px; background: rgba(255,255,255,.08); color: #fff; }
.np-controls .icon-btn:hover { background: rgba(255,255,255,.18); }
.np-progress { display: flex; align-items: center; gap: 13px; width: min(400px, 34vw); }
.np-progress .time { color: rgba(255,255,255,.5); }
.np-progress .progress-track { background: rgba(255,255,255,.14); }
.np-right { display: flex; flex-direction: column; height: 72vh; min-width: 0; }
.np-name { font-size: 31px; font-weight: 800; letter-spacing: .5px; margin-bottom: 9px; text-shadow: 0 2px 24px rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: 15px; color: rgba(255,255,255,.55); margin-bottom: 28px; letter-spacing: .3px; }
.lyric-box { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.lyric-inner { transition: transform .65s var(--ease-out); padding: 26vh 0; }
.lrc-line { font-size: 16.5px; color: rgba(255,255,255,.38); padding: 9.5px 0; line-height: 1.75; cursor: pointer; transition: all .4s var(--ease-out); transform-origin: left; letter-spacing: .3px; }
.lrc-line:hover { color: rgba(255,255,255,.75); }
.lrc-line.on { color: #fff; font-size: 21px; font-weight: 700; transform: scale(1.02); text-shadow: 0 0 30px rgba(250,82,82,.5); }
.lrc-line.passed { color: rgba(255,255,255,.25); }
.lrc-empty { color: rgba(255,255,255,.4); font-size: 14px; }

/* ========== 播放队列抽屉 ========== */
.queue-drawer {
  position: fixed; z-index: 70; top: 14px; right: 14px; bottom: var(--player-h); width: 340px;
  background: rgba(20, 20, 25, .82); backdrop-filter: blur(36px) saturate(1.5); -webkit-backdrop-filter: blur(36px) saturate(1.5);
  border-radius: var(--r-lg);
  transform: translateX(calc(100% + 30px)); transition: transform .55s var(--ease-out);
  display: flex; flex-direction: column;
}
.queue-drawer.open { transform: translateX(0); box-shadow: var(--sh-3); }
.qd-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px; }
.qd-head h3 { font-size: 15.5px; font-weight: 700; letter-spacing: .3px; }
.qd-head span { color: var(--text-3); font-size: 12px; font-weight: 400; margin-left: 4px; }
.qd-list { flex: 1; overflow-y: auto; padding: 0 10px 14px; }
.qd-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; cursor: pointer; transition: background .22s; }
.qd-item:hover { background: var(--surface-1); }
.qd-item.playing { background: var(--red-dim); }
.qd-item.playing .qd-name { color: var(--red-2); font-weight: 600; }
.qd-item img { width: 38px; height: 38px; border-radius: 9px; }
.qd-info { flex: 1; min-width: 0; }
.qd-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qd-artist { font-size: 11.5px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qd-del { opacity: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); transition: all .2s; flex: none; }
.qd-item:hover .qd-del { opacity: 1; }
.qd-del:hover { background: var(--surface-2); color: #fff; }
.qd-del svg { width: 13px; height: 13px; fill: currentColor; }

/* Toast */
.toast {
  position: fixed; z-index: 200; top: 78px; left: 50%; transform: translate(-50%, -24px);
  background: rgba(24, 24, 30, .9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 12px 26px; border-radius: 999px; font-size: 13.5px; font-weight: 500; letter-spacing: .3px;
  opacity: 0; pointer-events: none; transition: all .45s var(--ease-spring); box-shadow: var(--sh-3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 响应式 */
@media (max-width: 1080px) {
  .np-body { grid-template-columns: 1fr; gap: 20px; overflow-y: auto; padding: 84px 6vw 30px; align-items: start; }
  .np-right { height: 60vh; }
  .turntable { width: min(270px, 56vw); }
}
@media (max-width: 860px) {
  :root { --sidebar-w: 74px; }
  .sidebar { padding: 20px 9px; align-items: center; }
  .logo span, .nav-title, #history-group, .sidebar-foot { display: none !important; }
  .nav-item { justify-content: center; padding: 13px; font-size: 0; gap: 0; border-radius: 15px; }
  .nav-item svg { width: 21px; height: 21px; }
  .main { left: var(--sidebar-w); }
  .player-bar { grid-template-columns: 1fr auto; }
  .pb-right { display: none; }
  .song-row { grid-template-columns: 36px 1.6fr 1fr 54px; }
  .sr-album { display: none; }
  .view { padding: 8px 20px 34px; }
  .topbar { padding: 16px 20px 8px; }
  .queue-drawer { width: calc(100vw - 28px); }
}

/* =====================================================
   v3 · 语义化变量（深色默认） + 浅色主题 + 新组件
   ===================================================== */
:root {
  --bar-bg: rgba(20, 20, 25, .72);
  --panel-bg: rgba(22, 22, 27, .88);
  --drawer-bg: rgba(20, 20, 25, .82);
  --toast-bg: rgba(24, 24, 30, .9);
  --modal-bg: rgba(26, 26, 32, .96);
  --mask-bg: rgba(0, 0, 0, .55);
  --track: rgba(255, 255, 255, .1);
  --load: rgba(255, 255, 255, .18);
  --vol: rgba(255, 255, 255, .85);
  --playbtn-bg: #fff;
  --playbtn-fg: #0a0a0d;
  --shadow-c: 0, 0, 0;
  --qr-bg: #fff;
}

/* 浅色主题 */
html.light {
  --bg: #f3f3f6;
  --bg-soft: #ffffff;
  --surface-1: rgba(20, 22, 34, .05);
  --surface-2: rgba(20, 22, 34, .085);
  --surface-3: rgba(20, 22, 34, .14);
  --text: #1c1c22;
  --text-2: #5d5d69;
  --text-3: #9c9ca7;
  --red-dim: rgba(250, 82, 82, .1);
  --bar-bg: rgba(255, 255, 255, .8);
  --panel-bg: rgba(255, 255, 255, .94);
  --drawer-bg: rgba(255, 255, 255, .88);
  --toast-bg: rgba(255, 255, 255, .95);
  --modal-bg: rgba(255, 255, 255, .97);
  --mask-bg: rgba(200, 200, 210, .45);
  --track: rgba(20, 22, 34, .1);
  --load: rgba(20, 22, 34, .16);
  --vol: rgba(20, 22, 34, .65);
  --playbtn-bg: #1c1c22;
  --playbtn-fg: #fff;
  --sh-1: 0 2px 12px rgba(30, 30, 50, .08);
  --sh-2: 0 10px 34px rgba(30, 30, 50, .14);
  --sh-3: 0 22px 60px rgba(30, 30, 50, .2);
}
html.light .blob { opacity: .16; }
html.light .player-bar, html.light .queue-drawer, html.light .search-panel, html.light .toast {
  box-shadow: var(--sh-3), inset 0 1px 0 rgba(255,255,255,.5);
}
html.light .nav-item.active { box-shadow: 0 8px 22px rgba(240, 62, 62, .3); }

/* 全局颜色过渡（切换主题时平滑） */
body, .sidebar, .main, .view, .nav-item, .card-name, .song-row, .top-card, .search-box,
.icon-btn, .pb-name, .pb-artist, .sr-name, .sr-artist, .sr-album, .sec-title, .time,
.hist-item, .qd-item, .sp-tag, .sp-song, .pl-hero, .toast {
  transition-property: background-color, color, box-shadow, transform, opacity, width;
  transition-duration: .35s;
}

/* 用语义变量重写硬编码颜色 */
.player-bar { background: var(--bar-bg); }
.search-panel { background: var(--panel-bg); }
.queue-drawer { background: var(--drawer-bg); }
.toast { background: var(--toast-bg); color: var(--text); }
.progress-track { background: var(--track); }
.progress-load { background: var(--load); }
.vol-track { background: var(--track); }
.vol-fill { background: var(--vol); }
.play-btn { background: var(--playbtn-bg); color: var(--playbtn-fg); box-shadow: var(--sh-2); }
.play-btn:hover { box-shadow: var(--sh-3); }

/* ========== 顶栏右侧 ========== */
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-area { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 14px 5px 6px;
  border-radius: 999px; background: var(--surface-1); transition: all .3s var(--ease-out);
}
.user-chip:hover { background: var(--surface-2); transform: translateY(-1px); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden; flex: none;
}
.user-avatar svg { width: 17px; height: 17px; fill: var(--text-3); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 13px; font-weight: 500; color: var(--text-2); max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip.logged .user-name { color: var(--text); }
.user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px;
  background: var(--panel-bg); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border-radius: 16px; box-shadow: var(--sh-3); padding: 6px; display: none;
  animation: pop .28s var(--ease-spring); z-index: 50;
}
.user-menu.show { display: block; }
.user-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  border-radius: 11px; font-size: 13px; color: var(--text-2); transition: all .2s; text-align: left;
}
.user-menu-item:hover { background: var(--red-dim); color: var(--red); }
.user-menu-item svg { width: 16px; height: 16px; fill: currentColor; }

/* ========== 侧边栏滚动区 ========== */
.side-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; margin: 0 -6px; padding: 0 6px; }
.side-scroll::-webkit-scrollbar { width: 4px; }
.upl-item { display: flex; align-items: center; gap: 11px; padding: 7px 12px; border-radius: 12px; cursor: pointer; transition: background .25s; }
.upl-item:hover { background: var(--surface-1); }
.upl-item img { width: 36px; height: 36px; border-radius: 9px; flex: none; box-shadow: var(--sh-1); }
.upl-item p { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upl-item span { font-size: 10.5px; color: var(--text-3); }

/* ========== 登录弹窗 ========== */
.modal-mask {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: var(--mask-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal {
  position: relative; width: 340px; padding: 34px 30px 30px; border-radius: 24px;
  background: var(--modal-bg); box-shadow: var(--sh-3); text-align: center;
  transform: translateY(20px) scale(.95); transition: transform .4s var(--ease-spring);
}
.modal-mask.show .modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); transition: all .25s; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-close svg { width: 16px; height: 16px; fill: currentColor; }
.modal-title { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.modal-sub { font-size: 12.5px; color: var(--text-3); margin: 8px 0 22px; }
.qr-wrap { position: relative; width: 190px; height: 190px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: var(--qr-bg); box-shadow: var(--sh-2); }
.qr-wrap img { width: 100%; height: 100%; }
.qr-cover { position: absolute; inset: 0; background: rgba(255,255,255,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.qr-cover p { font-size: 13px; color: #666; }
.qr-status { margin-top: 18px; font-size: 13px; color: var(--text-2); min-height: 20px; }
.qr-status.scan { color: #2f9e44; font-weight: 600; }

/* ========== 全屏播放器 Tab ========== */
.np-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.np-tab {
  padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); transition: all .3s;
}
.np-tab:hover { color: rgba(255,255,255,.8); }
.np-tab.on { color: #fff; background: rgba(255,255,255,.16); }
.np-pane { display: none; flex: 1; min-height: 0; }
.np-pane.on { display: block; }
.comment-box { overflow-y: auto; mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); padding: 10px 0; }
.cmt { display: flex; gap: 13px; padding: 13px 4px; animation: rowIn .4s var(--ease-out) backwards; }
.cmt img { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.cmt-body { flex: 1; min-width: 0; }
.cmt-head { display: flex; align-items: baseline; gap: 10px; }
.cmt-user { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.cmt-time { font-size: 11px; color: rgba(255,255,255,.35); }
.cmt-text { font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,.68); margin-top: 5px; word-break: break-word; }
.cmt-liked { font-size: 11.5px; color: rgba(255,255,255,.4); margin-top: 6px; }
.cmt.hot .cmt-user { color: var(--red-2); }
.cmt-loading, .cmt-empty { text-align: center; color: rgba(255,255,255,.4); font-size: 13px; padding: 40px 0; }

/* ========== 搜索类型 Tab ========== */
.search-tabs { display: flex; gap: 8px; margin: 2px 0 20px; flex-wrap: wrap; }
.stab { padding: 8px 20px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--surface-1); transition: all .28s var(--ease-out); }
.stab:hover { background: var(--surface-2); color: var(--text); transform: translateY(-1px); }
.stab.on { background: var(--grad-red); color: #fff; font-weight: 600; box-shadow: var(--sh-red); }

/* 歌手/专辑卡片（横向） */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.mini-card { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: var(--r-md); background: var(--surface-1); cursor: pointer; transition: all .35s var(--ease-out); animation: cardIn .5s var(--ease-out) backwards; }
.mini-card:hover { background: var(--surface-2); transform: translateY(-3px); box-shadow: var(--sh-2); }
.mini-card img { width: 56px; height: 56px; border-radius: 12px; flex: none; box-shadow: var(--sh-1); }
.mini-card img.round { border-radius: 50%; }
.mini-card p { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-card span { font-size: 11.5px; color: var(--text-3); }

/* ========== 歌手/专辑页 ========== */
.artist-hero { position: relative; border-radius: 26px; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; padding: 30px; box-shadow: var(--sh-2); animation: pageIn .55s var(--ease-out); }
.artist-hero .ah-bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; }
.artist-hero .ah-mask { position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(0,0,0,.78)); }
.artist-hero .ah-info { position: relative; z-index: 1; color: #fff; }
.artist-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.artist-hero p { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.75); max-width: 640px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.7; }
.ah-stats { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.6); }

/* ========== 日推/FM/云盘 页头 ========== */
.feature-hero { display: flex; align-items: center; gap: 24px; padding: 28px 30px; border-radius: 26px; background: var(--surface-1); box-shadow: var(--sh-1); animation: pageIn .55s var(--ease-out); position: relative; overflow: hidden; }
.feature-hero .fh-icon { width: 74px; height: 74px; border-radius: 20px; background: var(--grad-red); display: grid; place-items: center; flex: none; box-shadow: var(--sh-red); }
.feature-hero .fh-icon svg { width: 34px; height: 34px; fill: #fff; }
.feature-hero .fh-icon .fh-day { color: #fff; font-size: 26px; font-weight: 800; }
.feature-hero h1 { font-size: 23px; font-weight: 800; letter-spacing: .5px; }
.feature-hero .fh-sub { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.feature-hero .fh-actions { margin-left: auto; display: flex; gap: 12px; }

/* 登录引导 */
.login-guide { text-align: center; padding: 80px 0; animation: pageIn .5s; }
.login-guide svg { width: 60px; height: 60px; fill: var(--text-3); opacity: .5; margin-bottom: 18px; }
.login-guide p { color: var(--text-3); font-size: 14px; margin-bottom: 22px; }

/* 歌曲行快捷喜欢 */
.sr-like { opacity: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); transition: all .22s; background: none; justify-self: end; }
.song-row:hover .sr-like { opacity: 1; }
.sr-like:hover { color: var(--red); transform: scale(1.15); }
.sr-like.liked { opacity: 1; color: var(--red); }
.sr-like svg { width: 15px; height: 15px; fill: currentColor; }

/* FM 卡片 */
.fm-card { display: flex; gap: 26px; align-items: center; padding: 26px; border-radius: 26px; background: var(--surface-1); box-shadow: var(--sh-1); margin-bottom: 18px; animation: pageIn .55s var(--ease-out); }
.fm-card img { width: 150px; height: 150px; border-radius: 18px; box-shadow: var(--sh-2); }
.fm-card .fm-info h2 { font-size: 22px; font-weight: 800; }
.fm-card .fm-info p { color: var(--text-3); font-size: 13px; margin-top: 8px; }
.fm-card .fm-ops { display: flex; gap: 12px; margin-top: 20px; }

/* 歌曲行尾部：喜欢 + 时长 */
.song-row { grid-template-columns: 46px 1.6fr 1.2fr 1fr 100px; }
.sr-tail { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
@media (max-width: 860px) {
  .song-row { grid-template-columns: 36px 1.6fr 1fr 88px; }
}

/* 全屏播放器实体背景（无歌曲时也不透明） */
.now-playing { background: var(--bg); }

/* 歌单/专辑头部：两种主题下均为深色沉浸卡片（封面模糊打底） */
.pl-hero { background: #16161c; color: #f4f4f7; }
.pl-hero .pl-creator { color: rgba(255, 255, 255, .72); }
.pl-hero .pl-stats { color: rgba(255, 255, 255, .5); }
.pl-hero .pl-desc { color: rgba(255, 255, 255, .5); }
.pl-hero .btn-ghost { background: rgba(255,255,255,.1); color: #fff; }
.pl-hero .btn-ghost:hover { background: rgba(255,255,255,.2); }

/* =====================================================
   v4 · 灵感动效系统
   ===================================================== */

/* 图片优雅淡入 */
.view img, .qd-item img, .hist-item img, .upl-item img, .pb-cover {
  opacity: 0; transition: opacity .55s var(--ease-out), transform .7s var(--ease-out);
}
.view img.loaded, .qd-item img.loaded, .hist-item img.loaded, .upl-item img.loaded, .pb-cover.loaded { opacity: 1; }

/* 页面入场：模糊 + 上浮 */
@keyframes pageIn { from { opacity: 0; transform: translateY(22px) scale(.99); filter: blur(6px); } }

/* Logo 音符呼吸浮动 */
.logo svg { animation: logoFloat 4s ease-in-out infinite; }
@keyframes logoFloat { 50% { transform: translateY(-3px) rotate(-4deg); } }

/* 标题装饰条弹入 */
.sec-title::before { animation: barPop .6s var(--ease-spring) backwards; }
@keyframes barPop { from { transform: scaleY(0); } }

/* 卡片 3D 倾斜（JS 驱动，CSS 保底过渡） */
.card-cover, .top-card { will-change: transform; transform-style: preserve-3d; }
.card-cover { transition: transform .18s ease-out, box-shadow .4s; }
.top-card { transition: transform .18s ease-out, background .35s, box-shadow .35s; }

/* 卡片封面光扫 */
.card-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform .8s var(--ease-out);
}
.card:hover .card-cover::before { transform: translateX(110%); }

/* 歌曲行：封面微动 + 悬停整行微抬 */
.song-row { transition: background .25s, transform .3s var(--ease-out), box-shadow .3s; }
.song-row:hover { transform: translateX(4px); }
.sr-main img { transition: transform .4s var(--ease-spring), opacity .55s, box-shadow .3s; }
.song-row:hover .sr-main img { transform: scale(1.08) rotate(-3deg); box-shadow: var(--sh-2); }

/* 正在播放行：呼吸光晕 */
.song-row.playing { animation: rowGlow 2.6s ease-in-out infinite; }
@keyframes rowGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 82, 82, 0); }
  50% { box-shadow: 0 0 24px 0 rgba(250, 82, 82, .18); }
}

/* 播放中唱片：红色光晕脉动 */
.turntable::before {
  content: ""; position: absolute; inset: -26px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(250, 82, 82, .35), transparent 65%);
  opacity: 0; transform: scale(.85); transition: opacity 1s, transform 1s;
}
.turntable.playing::before { opacity: 1; transform: scale(1); animation: haloPulse 3.2s ease-in-out infinite; }
@keyframes haloPulse { 50% { transform: scale(1.08); opacity: .7; } }

/* 当前歌词：渐变扫光文字 */
.lrc-line.on {
  background: linear-gradient(90deg, #fff 20%, #ffb4b4 50%, #fff 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: lyricSweep 3.5s linear infinite;
  text-shadow: none;
}
@keyframes lyricSweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* 进度条流光 */
.progress-fill { position: absolute; overflow: visible; }
.progress-fill::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 26px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55));
  border-radius: 99px; animation: fillShine 2.2s ease-in-out infinite;
}
@keyframes fillShine { 50% { opacity: .25; } }

/* 主按钮：悬停流光 */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform .7s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(110%); }

/* 导航选中项：弹性入场 */
.nav-item.active { animation: navPop .45s var(--ease-spring); }
@keyframes navPop { from { transform: scale(.92); opacity: .4; } }

/* 播放按钮：播放时柔光环 */
.play-btn { transition: transform .25s var(--ease-spring), box-shadow .3s; }
.play-btn:not(.loading):hover { box-shadow: 0 0 0 6px rgba(250, 82, 82, .18), var(--sh-2); }

/* Banner 图片视差容器 */
.banner-slide img { transition: transform .35s ease-out; will-change: transform; }

/* 图标按钮弹性 */
.icon-btn:active svg { animation: iconWiggle .35s var(--ease-spring); }
@keyframes iconWiggle { 30% { transform: scale(.8) rotate(-10deg); } 70% { transform: scale(1.15) rotate(6deg); } }

/* Toast 图标感 */
.toast.show { animation: toastBounce .55s var(--ease-spring); }
@keyframes toastBounce { 0% { transform: translate(-50%, -30px) scale(.9); } 60% { transform: translate(-50%, 3px) scale(1.02); } 100% { transform: translate(-50%, 0) scale(1); } }

/* 全屏播放器打开时内容浮入 */
.now-playing.open .np-left { animation: npIn .8s var(--ease-out) .15s backwards; }
.now-playing.open .np-right { animation: npIn .8s var(--ease-out) .28s backwards; }
@keyframes npIn { from { opacity: 0; transform: translateY(36px); } }

/* 队列抽屉项目入场 */
.queue-drawer.open .qd-item { animation: qdIn .45s var(--ease-out) backwards; }
.queue-drawer.open .qd-item:nth-child(1) { animation-delay: .05s; }
.queue-drawer.open .qd-item:nth-child(2) { animation-delay: .1s; }
.queue-drawer.open .qd-item:nth-child(3) { animation-delay: .15s; }
.queue-drawer.open .qd-item:nth-child(4) { animation-delay: .2s; }
.queue-drawer.open .qd-item:nth-child(5) { animation-delay: .25s; }
@keyframes qdIn { from { opacity: 0; transform: translateX(26px); } }

/* 弹窗二维码脉冲环 */
.qr-wrap { animation: qrPulse 3s ease-in-out infinite; }
@keyframes qrPulse { 50% { box-shadow: 0 0 0 10px rgba(250, 82, 82, .1), var(--sh-2); } }

/* 减少动态偏好兼容 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
