/* ============================================================
   音乐播放器 v2 样式
   主色：品红霓虹（--mp-neon，可由设置抽屉动态修改）
   风格：B 式全屏（左黑胶唱片 + 右居中霓虹歌词）
   ============================================================ */
:root {
  --mp-neon: #ff2ea6;
  --mp-neon-rgb: 255, 46, 166;
  --mp-lyr-size: 18px;
}

/* ==================== 迷你播放栏 ==================== */
.music-player-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9500;
  height: 64px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(24,16,32,.88), rgba(14,10,22,.96));
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-top: 1px solid rgba(var(--mp-neon-rgb), .18);
  box-shadow: 0 -8px 32px rgba(0,0,0,.45), 0 -1px 0 rgba(var(--mp-neon-rgb), .12) inset;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
.music-player-bar.hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
/* 向右缩回：只留右侧手柄，点击展开 */
.music-player-bar.retracted { transform: translateX(calc(100% - 22px)); }
.mp-retract-handle {
  position: absolute; left: 0; top: 0; bottom: 0; width: 22px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); cursor: pointer; font-size: 13px; user-select: none;
  background: rgba(255,255,255,.03);
  border-right: 1px solid rgba(var(--mp-neon-rgb), .14);
  transition: color .2s, background .2s;
}
.mp-retract-handle:hover { color: #fff; background: rgba(var(--mp-neon-rgb), .22); }

/* 封面：加大 + 品红光环 canvas */
.music-player-bar { padding-right: 30px; }
.mp-cover-wrap {
  position: relative; width: 48px; height: 48px; flex-shrink: 0;
  cursor: pointer; border-radius: 50%;
}
.mp-cover {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; display: block; position: relative; z-index: 2;
  margin: 2px;
  border: 2px solid rgba(255,255,255,.14);
  animation: mp-spin 9s linear infinite; animation-play-state: paused;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.mp-cover.spinning { animation-play-state: running; }
@keyframes mp-spin { to { transform: rotate(360deg); } }
.mp-disc-fx {
  position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px);
  z-index: 1; opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.mp-cover-wrap.glowing .mp-disc-fx { opacity: 1; }
.mp-cover-wrap:hover .mp-cover { transform: scale(1.06); }

/* 歌曲信息 */
.mp-info {
  width: 150px; min-width: 110px; flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.mp-title { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-artist { font-size: 11px; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }

/* 跑马灯歌词：水平垂直居中 + 霓虹外发光 */
.mp-lyric-marquee {
  flex: 1; min-width: 0; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0 8px;
}
.mp-lyric-marquee span {
  font-size: 18px; letter-spacing: 1.5px; color: rgba(255,255,255,.9);
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  text-align: center; will-change: contents;
  transition: color .3s ease, text-shadow .3s ease;
}
.mp-lyric-marquee span.neon {
  color: hsl(var(--mp-hue, 200), 90%, 72%);
  font-size: 19px;
  font-weight: 600;
  text-shadow:
    0 0 3px currentColor,
    0 0 7px rgba(255,255,255,.16);
}
/* 跑马灯内的逐字高亮：字体同步放大，光晕收小（避免看起来像有背景色） */
.mp-lyric-marquee .mp-karaoke-hl.on {
  text-shadow: 0 0 3px currentColor;
}
.mp-lyric-marquee .mp-karaoke-smooth { font-size: 19px; }

/* 控制按钮组 */
.mp-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mp-btn {
  width: 34px; height: 34px; border: none; border-radius: 50%;
  cursor: pointer; background: transparent; color: rgba(255,255,255,.78);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .15s;
}
.mp-btn:hover { background: rgba(255,255,255,.12); color: #fff; transform: scale(1.08); }
.mp-btn:active { transform: scale(.94); }
.mp-btn.play-btn {
  width: 40px; height: 40px; margin: 0 4px;
  background: radial-gradient(circle at 30% 30%, #ff5fc0, var(--mp-neon) 60%, #c2187f);
  color: #fff;
  box-shadow: 0 4px 18px rgba(var(--mp-neon-rgb), .45), 0 0 0 1px rgba(255,255,255,.12) inset;
}
.mp-btn.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 26px rgba(var(--mp-neon-rgb), .65);
  background: radial-gradient(circle at 30% 30%, #ff74c9, var(--mp-neon) 60%, #d22087);
}
.mp-fav-btn-like.fav-active, .mp-btn.fav-active, .mp-fc-btn.fav-active { color: var(--mp-neon) !important; filter: drop-shadow(0 0 6px rgba(var(--mp-neon-rgb), .7)); }

/* 播放模式上的单曲循环小徽章 */
.mp-mode-one-badge {
  position: absolute; bottom: 1px; right: 1px; font-style: normal;
  font-size: 8px; font-weight: 700; line-height: 1;
  background: var(--mp-neon); color: #fff; border-radius: 6px;
  padding: 1.5px 3.5px; pointer-events: none;
}

/* 音量按钮 mute/low 状态 */
.mp-vol-btn .mp-vol-mute { display: none; }
.mp-vol-btn.is-mute .mp-vol-mute { display: block; }
.mp-vol-btn.is-mute .mp-vol-wave,
.mp-vol-btn.is-mute .mp-vol-wave2 { display: none; }
.mp-vol-btn.is-low .mp-vol-wave2 { display: none; }
.mp-vol-btn.is-mute { color: rgba(255,255,255,.45); }

/* 进度条（可拖拽 seek） */
.mp-progress-wrap {
  height: 5px; border-radius: 3px;
  background: rgba(255,255,255,.12);
  cursor: pointer; position: relative;
  touch-action: none;
}
.music-player-bar .mp-progress-wrap { flex: 1; max-width: 260px; min-width: 100px; }
.mp-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, rgba(var(--mp-neon-rgb), .75), var(--mp-neon));
  border-radius: 3px; position: relative;
}
.mp-progress-bar::after {
  content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%) scale(0);
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px rgba(var(--mp-neon-rgb), .9);
  transition: transform .15s ease;
}
.mp-progress-wrap:hover .mp-progress-bar::after,
.mp-progress-wrap.seeking .mp-progress-bar::after { transform: translateY(-50%) scale(1); }
.mp-progress-wrap.seeking .mp-progress-bar::after { width: 13px; height: 13px; }
.mp-time {
  font-size: 11px; color: rgba(255,255,255,.5);
  min-width: 92px; text-align: center;
  font-variant-numeric: tabular-nums; letter-spacing: .3px;
  flex-shrink: 0; white-space: nowrap;
}

/* 音量滑块（带填充轨道）*/
.mp-volume-wrap { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.mp-volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 76px; height: 4px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(90deg,
    var(--mp-accent, var(--mp-neon)) var(--range-pct, 70%),
    rgba(255,255,255,.14) var(--range-pct, 70%));
  transition: height .15s ease;
}
.mp-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.5), 0 0 8px rgba(var(--mp-neon-rgb), .6);
  transition: transform .15s ease;
}
.mp-volume-slider::-webkit-slider-thumb:hover { transform: scale(1.25); }
.mp-volume-slider::-moz-range-thumb {
  width: 12px; height: 12px; border: none; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.5), 0 0 8px rgba(var(--mp-neon-rgb), .6);
}
.mp-volume-slider:hover { height: 6px; }

.mp-expand-btn { font-size: 12px; color: rgba(255,255,255,.6); }
.mp-expand-btn:hover { color: var(--mp-neon); }

/* ==================== 展开面板 ==================== */
.music-panel {
  position: fixed; bottom: 64px; right: 18px;
  width: 540px; max-width: calc(100vw - 36px);
  height: 50vh; min-height: 380px;
  z-index: 9995;
  background:
    linear-gradient(165deg, rgba(34,23,48,.96), rgba(15,11,25,.985)),
    rgba(15,11,25,.98);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-radius: 20px;
  border: 1px solid rgba(var(--mp-neon-rgb), .18);
  box-shadow:
    0 28px 72px rgba(0,0,0,.6),
    0 4px 22px rgba(var(--mp-neon-rgb), .07),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 1px 0 rgba(255,255,255,.06) inset;
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: 85% bottom;
  transform: translateY(16px) scale(.985); opacity: 0; pointer-events: none;
  transition: transform .34s cubic-bezier(.34,1.35,.45,1), opacity .26s ease;
}
.music-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

/* Tabs：分段式（pill）控件 */
.mp-tabs {
  display: flex; align-items: center; gap: 4px;
  margin: 12px 14px 10px; padding: 4px;
  background: rgba(0,0,0,.32);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.05);
}
.mp-tab {
  flex: 1; text-align: center;
  padding: 9px 10px 11px; font-size: 13px; letter-spacing: 2px;
  color: rgba(255,255,255,.42); cursor: pointer; user-select: none;
  border-radius: 10px; position: relative;
  transition: color .22s ease, background .22s ease, box-shadow .22s ease;
}
.mp-tab:hover { color: rgba(255,255,255,.8); }
.mp-tab.active {
  color: #fff;
  background: linear-gradient(160deg, rgba(var(--mp-neon-rgb), .30), rgba(var(--mp-neon-rgb), .16));
  box-shadow: 0 2px 12px rgba(var(--mp-neon-rgb), .28), 0 0 0 1px rgba(var(--mp-neon-rgb), .25) inset;
  text-shadow: 0 0 12px rgba(var(--mp-neon-rgb), .65);
}

/* 偏移调节条带（仅歌词 Tab 显示） */
.mp-offset-strip {
  display: none; align-items: center; gap: 8px;
  margin: 0 14px 8px; padding: 7px 12px;
  background: rgba(var(--mp-neon-rgb), .06);
  border: 1px solid rgba(var(--mp-neon-rgb), .14);
  border-radius: 12px;
}
.mp-offset-strip[style*="inline-flex"] { display: inline-flex; }
.mp-off-label {
  font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: 1px;
  margin-right: auto;
}

/* 歌手名可点击跳搜索页 */
.mp-artist-link { cursor: pointer; transition: color .18s ease, text-shadow .18s ease; }
.mp-artist-link:hover {
  color: var(--mp-neon);
  text-shadow: 0 0 10px rgba(var(--mp-neon-rgb), .7);
}
.mp-artist-link:hover::after { content: ' › 搜索'; font-size: 10px; opacity: .8; }

/* 列表 Tab 工具条（计数 + 手动刷新推荐） */
.mp-pl-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 4px; position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(24,17,36,.98) 70%, transparent);
}
.mp-pl-count { font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: 1px; }
.mp-pl-refresh {
  border: none; cursor: pointer;
  background: rgba(var(--mp-neon-rgb), .12);
  color: rgba(255,255,255,.85);
  font-size: 12px; padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(var(--mp-neon-rgb), .25) inset;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.mp-pl-refresh:hover {
  background: rgba(var(--mp-neon-rgb), .26); transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(var(--mp-neon-rgb), .45) inset, 0 4px 14px rgba(var(--mp-neon-rgb), .25);
}
.mp-pl-refresh.spinning { opacity: .7; cursor: wait; pointer-events: none; }
.mp-pl-refresh.spinning .mp-refresh-icon { display: inline-block; animation: mp-spin 1s linear infinite; }
.mp-off-btn {
  border: none; background: rgba(255,255,255,.06); color: rgba(255,255,255,.75);
  font-size: 11px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s, transform .12s;
  font-family: inherit;
}
.mp-off-btn:hover { background: rgba(var(--mp-neon-rgb), .22); color: #fff; }
.mp-off-btn:active { transform: scale(.92); }
.mp-off-reset { padding: 4px 8px; }
.mp-off-val {
  font-size: 11px; color: var(--mp-neon); min-width: 38px; text-align: center;
  font-variant-numeric: tabular-nums; font-weight: 600;
  text-shadow: 0 0 8px rgba(var(--mp-neon-rgb), .5);
}

/* 面板内容区 */
#mpPanelContent { height: 330px; overflow-y: auto; position: relative; scroll-behavior: smooth; flex: 1; min-height: 0; }
#mpPanelContent > .mp-playlist { height: 100%; }

/* 空状态 */
.mp-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 64px 24px; text-align: center;
  color: rgba(255,255,255,.42); font-size: 13px; line-height: 1.7;
}
.mp-empty span { font-size: 11.5px; color: rgba(255,255,255,.26); letter-spacing: .5px; }
.mp-empty.big-gap { padding-top: 120px; }

/* 播放列表 */
.mp-playlist { overflow-y: auto; padding: 2px 6px 10px; }
.mp-playlist-item {
  display: flex; align-items: center; padding: 9px 12px; gap: 13px;
  cursor: pointer; transition: background .18s ease, transform .18s ease, border-radius .18s ease;
  border-radius: 14px;
  margin-bottom: 1px;
}
.mp-playlist-item:hover {
  background: linear-gradient(90deg, rgba(var(--mp-neon-rgb), .09), rgba(255,255,255,.03) 60%, transparent);
  transform: translateX(2px);
}
.mp-playlist-item.active {
  background: linear-gradient(90deg, rgba(var(--mp-neon-rgb), .17), rgba(var(--mp-neon-rgb), .05) 68%, transparent);
  position: relative;
}
.mp-playlist-item.active::before {
  content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px;
  background: var(--mp-neon);
  box-shadow: 0 0 12px rgba(var(--mp-neon-rgb), .85);
  border-radius: 0 3px 3px 0;
}
.mp-pl-cover {
  width: 46px; height: 46px; border-radius: 12px; object-fit: cover;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .25s cubic-bezier(.34,1.4,.5,1);
}
.mp-playlist-item:hover .mp-pl-cover { transform: scale(1.06) rotate(-1deg); }
.mp-pl-cover.round { border-radius: 50%; }
.mp-pl-info { flex: 1; min-width: 0; }
.mp-pl-name { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-playlist-item.active .mp-pl-name { color: var(--mp-neon); font-weight: 600; text-shadow: 0 0 10px rgba(var(--mp-neon-rgb), .5); }
.mp-pl-singer { font-size: 11px; color: rgba(255,255,255,.42); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-pl-actions {
  display: flex; gap: 3px; opacity: 0; transform: translateX(6px);
  transition: opacity .18s ease, transform .22s cubic-bezier(.34,1.4,.5,1);
}
.mp-playlist-item:hover .mp-pl-actions,
.mp-playlist-item.active .mp-pl-actions { opacity: 1; transform: translateX(0); }
.mp-pl-btn {
  background: none; border: none; color: rgba(255,255,255,.45);
  cursor: pointer; font-size: 14px; padding: 7px; border-radius: 9px;
  transition: color .18s, background .18s, transform .12s;
}
.mp-pl-btn:hover { color: #fff; background: rgba(255,255,255,.12); transform: scale(1.14); }
.mp-pl-download:hover { color: #6fd3ff; }
.mp-pl-fav.active-color { color: var(--mp-neon); }

/* 收藏分类标签 */
.mp-fav-category {
  font-size: 11px; color: rgba(255,255,255,.45);
  padding: 12px 16px 6px; letter-spacing: .5px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

/* 面板歌词区 */
.mp-lyric-box {
  height: 100%; overflow-y: auto;
  padding: 130px 36px 140px;
  text-align: center;
  scrollbar-width: none;
}
.mp-lyric-box::-webkit-scrollbar { display: none; }
.mp-lyric-line {
  font-size: 15px; line-height: 2.1; letter-spacing: 1.5px; color: #fff;
  padding: 4px 0; cursor: pointer; border-radius: 8px;
  transition: all .3s ease; word-break: break-word;
}
.mp-lyric-line:hover { color: #fff; }
.mp-lyric-line.active {
  color: #fff;
  font-size: calc(var(--mp-lyr-size) * .82);
  font-weight: 700;
  text-shadow:
    0 0 12px hsla(var(--mp-hue, 200), 90%, 65%, .8),
    0 0 26px rgba(255,255,255,.18);
  transform: scale(1.02);
}

/* 卡拉OK逐字高亮（迷你栏 / 面板 / 全屏共用统一规则）
   未唱的字 = 纯白；已唱过的字 = 频谱色相（--mp-hue 由 app.js 每帧写入），轻光晕 */
.mp-karaoke-hl { color: #fff; transition: color .08s linear; letter-spacing: inherit; }
.mp-karaoke-hl.on {
  color: hsl(var(--mp-hue, 200), 90%, 72%);
  text-shadow:
    0 0 3px currentColor,
    0 0 8px rgba(255,255,255,.15);
}
/* 正在唱的字：按 --wp(0~100%) 字内扫光，随 rAF 每帧连续推进 */
.mp-karaoke-hl.cur {
  background-image: linear-gradient(90deg,
    hsl(var(--mp-hue, 200), 90%, 72%) var(--wp, 0%),
    #fff calc(var(--wp, 0%) + 0.5%));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 3px hsla(var(--mp-hue, 200), 90%, 65%, .5));
}
.mp-karaoke-smooth {
  --kp: 0%;
  background: linear-gradient(90deg,
    hsl(var(--mp-hue, 200), 90%, 72%) var(--kp),
    #fff var(--kp));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  font-weight: 700;
  filter: drop-shadow(0 0 3px hsla(var(--mp-hue, 200), 90%, 65%, .55));
}
/* 播放栏流水歌词：与全局统一（未唱白/已唱频谱色），仅字号放大、光晕最小化 */
.mp-lyric-marquee .mp-karaoke-smooth { font-size: 19px; }

/* 搜索框 */
.mp-search-box {
  display: flex; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  position: sticky; top: 0; z-index: 2;
  background: rgba(18,13,28,.94); backdrop-filter: blur(12px);
}
.mp-search-input {
  flex: 1; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1); border-radius: 999px;
  padding: 9px 18px; color: #fff; font-size: 13px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.mp-search-input:focus {
  border-color: rgba(var(--mp-neon-rgb), .55);
  box-shadow: 0 0 0 3px rgba(var(--mp-neon-rgb), .12);
}
.mp-search-input::placeholder { color: rgba(255,255,255,.28); }
.mp-search-btn {
  background: linear-gradient(135deg, #ff5fc0, var(--mp-neon));
  border: none; border-radius: 999px; padding: 0 20px;
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 14px rgba(var(--mp-neon-rgb), .4);
  transition: transform .15s, box-shadow .2s;
}
.mp-search-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 20px rgba(var(--mp-neon-rgb), .55); }
.mp-search-results { overflow-y: auto; }
.mp-search-summary {
  padding: 6px 10px 10px;
  font-size: 12px; letter-spacing: 1px;
  color: rgba(var(--mp-neon-rgb), .85);
  text-shadow: 0 0 10px rgba(var(--mp-neon-rgb), .3);
  border-bottom: 1px solid rgba(255,255,255,.05);
  margin-bottom: 4px;
}

/* 下载任务卡片 */
.mp-dl-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background .18s;
}
.mp-dl-card:hover { background: rgba(255,255,255,.04); }
.mp-dl-main { flex: 1; min-width: 0; }
.mp-dl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.mp-dl-name { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-dl-status {
  font-size: 11px; flex-shrink: 0; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .3px;
}
.mp-dl-card.downloading .mp-dl-status {
  color: #6fd3ff; background: rgba(111,211,255,.12);
  border: 1px solid rgba(111,211,255,.3);
}
.mp-dl-card.done .mp-dl-status {
  color: #43e97b; background: rgba(67,233,123,.1);
  border: 1px solid rgba(67,233,123,.3);
}
.mp-dl-card.error .mp-dl-status {
  color: #ff6b6b; background: rgba(255,107,107,.1);
  border: 1px solid rgba(255,107,107,.3);
}
.mp-dl-bar-wrap {
  height: 5px; border-radius: 3px; overflow: hidden;
  background: rgba(255,255,255,.08);
}
.mp-dl-bar {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #6fd3ff, #4F7CFF);
  transition: width .25s ease;
}
.mp-dl-card.done .mp-dl-bar { background: linear-gradient(90deg, #43e97b, #2bb673); }
.mp-dl-card.error .mp-dl-bar { background: #ff6b6b; }
.mp-dl-card.downloading .mp-dl-bar {
  background-image: linear-gradient(120deg, rgba(255,255,255,.28) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%);
  background-size: 14px 14px;
  animation: mp-dl-stripes .8s linear infinite;
}
@keyframes mp-dl-stripes { to { background-position: 14px 0; } }

/* 拖拽排序 */
.mp-playlist-item[draggable="true"] { cursor: grab; }
.mp-playlist-item[draggable="true"]:active { cursor: grabbing; }
.mp-playlist-item.mp-dragging { opacity: .4; }
.mp-playlist-item.mp-drag-over { box-shadow: inset 0 2px 0 var(--mp-neon); }

/* ==================== 悬浮入口按钮 ==================== */
.mp-float-btn {
  position: fixed; bottom: 84px; right: 22px; z-index: 9480;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #ff5fc0, var(--mp-neon) 55%, #a2166e);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(var(--mp-neon-rgb), .5), 0 0 0 0 rgba(var(--mp-neon-rgb), .35);
  transition: transform .2s cubic-bezier(.34,1.5,.5,1), box-shadow .25s;
  animation: mp-float-glow 2.6s ease-in-out infinite;
}
.mp-float-btn:hover { transform: scale(1.1) translateY(-2px); }
.mp-float-btn.active { animation: none; transform: scale(1.06); }
@keyframes mp-float-glow {
  0%, 100% { box-shadow: 0 6px 24px rgba(var(--mp-neon-rgb), .5), 0 0 0 0 rgba(var(--mp-neon-rgb), .35); }
  50% { box-shadow: 0 6px 28px rgba(var(--mp-neon-rgb), .62), 0 0 0 9px rgba(var(--mp-neon-rgb), 0); }
}

/* ==================== 播放模式弹窗 ==================== */
.mp-mode-popup {
  background: rgba(28,19,38,.98);
  border: 1px solid rgba(var(--mp-neon-rgb), .2);
  border-radius: 14px; padding: 6px 0; min-width: 230px; z-index: 10200;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
  animation: mp-pop-in .16s ease;
}
@keyframes mp-pop-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.mp-mode-popup-title {
  font-size: 10px; color: rgba(255,255,255,.35); padding: 8px 16px 6px;
  letter-spacing: 2px; border-bottom: 1px solid rgba(255,255,255,.05); margin-bottom: 4px;
}
.mp-mode-option {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  cursor: pointer; transition: background .15s;
}
.mp-mode-option:hover { background: rgba(255,255,255,.06); }
.mp-mode-option.active { background: rgba(var(--mp-neon-rgb), .12); }
.mp-mode-icon { width: 30px; text-align: center; flex-shrink: 0; color: rgba(255,255,255,.75); }
.mp-mode-option.active .mp-mode-icon { color: var(--mp-neon); }
.mp-mode-name { font-size: 13px; color: #fff; font-weight: 500; }
.mp-mode-desc { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.mp-mode-check { color: var(--mp-neon); font-size: 14px; font-weight: 700; flex-shrink: 0; }

/* ==================== Toast 提示 ==================== */
#mpToastWrap {
  position: fixed; right: 20px; bottom: 152px; z-index: 2147483000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  pointer-events: none;
}
.mp-toast {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px;
  background: rgba(26,17,34,.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0,0,0,.5);
  font-size: 13px; color: rgba(255,255,255,.88);
  opacity: 0; transform: translateX(16px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.3,.5,1);
  max-width: 320px;
}
.mp-toast.show { opacity: 1; transform: translateX(0); }
.mp-toast-badge {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.mp-toast-success .mp-toast-badge { background: linear-gradient(135deg, #43e97b, #21a159); box-shadow: 0 0 12px rgba(67,233,123,.5); }
.mp-toast-error .mp-toast-badge { background: linear-gradient(135deg, #ff6b6b, #d63a3a); box-shadow: 0 0 12px rgba(255,107,107,.5); }
.mp-toast-info .mp-toast-badge { background: linear-gradient(135deg, #ff5fc0, var(--mp-neon)); box-shadow: 0 0 12px rgba(var(--mp-neon-rgb), .55); }
.mp-toast-msg { white-space: normal; word-break: break-word; min-width: 0; flex: 1; line-height: 1.4; }

/* ============================================================
   全屏播放窗口（B 式：左黑胶 + 右居中霓虹歌词）
   ============================================================ */
.mp-full-player {
  position: fixed; inset: 0; z-index: 9990;
  background: radial-gradient(120% 120% at 20% 10%, #201430 0%, #120c1e 45%, #0a0813 100%);
  overflow: hidden;
  transition: opacity .4s ease, visibility .4s, transform .45s cubic-bezier(.4,0,.2,1);
}
.mp-full-player.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(24px);
}
/* 全屏背景：歌曲封面毛玻璃（由 updateFullPlayer 写入 background-image）+ 霓虹光斑叠加 */
.mp-full-bg {
  position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  background-color: #14101f;
  background-size: cover; background-position: center;
  filter: blur(28px) saturate(1.4) brightness(.85);
  transition: background-image .5s ease;
}
.mp-full-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(42% 55% at 26% 42%, rgba(var(--mp-neon-rgb), .14) 0%, transparent 68%),
    radial-gradient(50% 65% at 80% 68%, rgba(124, 107, 255, .10) 0%, transparent 66%),
    linear-gradient(180deg, rgba(11,8,20,.08), rgba(11,8,20,.28));
}
.mp-full-glow {
  position: absolute; left: 6vw; top: 50%; z-index: 0; pointer-events: none;
  width: 40vmin; height: 40vmin;
  transform: translate(-8%, -50%) scale(calc(1 + var(--beat, 0) * 0.22));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--mp-neon-rgb), .2) 0%, transparent 65%);
  filter: blur(24px);
  opacity: 0; transition: opacity 1s ease;
}
.mp-full-player:not(.hidden) .mp-full-glow { opacity: calc(.55 + var(--beat, 0) * .45); }

/* ---------- 星空层：多层视差闪烁星点，营造纵深 ---------- */
.mp-full-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,.65) 50%, transparent 51%),
    radial-gradient(2px 2px at 45% 14%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 42%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 76% 76%, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 28%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 80%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 86%, rgba(255,255,255,.45) 50%, transparent 51%);
  background-size: 560px 420px;
  animation: mp-stars-drift 46s linear infinite, mp-stars-twinkle 3.6s ease-in-out infinite alternate;
  opacity: calc(.5 + var(--beat, 0) * .35);
  transition: opacity .15s linear;
}
@keyframes mp-stars-drift { to { background-position: 560px 0; } }
@keyframes mp-stars-twinkle { from { filter: brightness(.75); } to { filter: brightness(1.25); } }

/* ---------- 3D 动态律动背景：透视霓虹网格地板（双层视差 + 地平线光带） ---------- */
.mp-full-grid {
  position: absolute; left: -40%; right: -40%; bottom: -12%;
  height: 62vh; z-index: 1; pointer-events: none; overflow: hidden;
  perspective: 520px; perspective-origin: 50% 0%;
  opacity: calc(.45 + var(--beat, 0) * .55);
  transition: opacity .12s linear;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}
.mp-full-grid-plane {
  position: absolute; left: 0; right: 0; top: -52%; bottom: 0;
  background-image:
    linear-gradient(rgba(var(--mp-neon-rgb), calc(.2 + var(--beat, 0) * .65)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--mp-neon-rgb), calc(.12 + var(--beat, 0) * .5)) 1px, transparent 1px);
  background-size: 44px 32px;
  transform-origin: 50% 100%;
  transform: rotateX(76deg);
  animation: mp-grid-flow 1.5s linear infinite;
}
.mp-full-grid-plane.far {
  background-size: 88px 64px;
  opacity: .4;
  animation-duration: 3.2s;
  animation-name: mp-grid-flow-far;
}
@keyframes mp-grid-flow { to { background-position: 0 32px, 0 0; } }
@keyframes mp-grid-flow-far { to { background-position: 0 64px, 0 0; } }
/* 地平线光带：网格顶端的霓虹地平线，随节拍增强 */
.mp-full-horizon {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent 4%, rgba(var(--mp-neon-rgb), calc(.45 + var(--beat, 0) * .55)) 50%, transparent 96%);
  box-shadow: 0 0 18px rgba(var(--mp-neon-rgb), calc(.35 + var(--beat, 0) * .65)), 0 0 60px rgba(var(--mp-neon-rgb), .25);
  filter: blur(.5px);
}
/* 极限频谱风：网格/地平线/光晕色相循环，与频谱彩虹色同步流动 */
.mp-full-grid, .mp-full-glow, .mp-full-horizon { animation: mp-neon-hue 10s linear infinite; }
@keyframes mp-neon-hue { to { filter: hue-rotate(360deg); } }
/* 顶部镜像网格：与地板构成 3D 隧道纵深 */
.mp-full-grid.top {
  top: -10%; bottom: auto; height: 46vh;
  perspective-origin: 50% 100%;
  opacity: calc(.16 + var(--beat, 0) * .2);
  mask-image: linear-gradient(0deg, transparent 0%, #000 36%);
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 36%);
}
.mp-full-grid.top .mp-full-grid-plane {
  transform-origin: 50% 0%;
  transform: rotateX(-76deg);
  animation-name: mp-grid-flow-top;
}
@keyframes mp-grid-flow-top { to { background-position: 0 -32px, 0 0; } }
/* 迷你栏唱片光环 canvas 同样随节拍变色增强 */
.mp-disc-fx { filter: saturate(calc(1 + var(--beat, 0) * 1.4)) hue-rotate(calc(var(--beat, 0) * 70deg)); }

/* 关闭 / 设置按钮 */
.mp-full-close, .mp-full-settings-btn {
  position: absolute; top: 22px; z-index: 12;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
  transition: background .2s, color .2s, transform .15s;
}
.mp-full-close { right: 22px; font-size: 17px; }
.mp-full-settings-btn { right: 76px; }
.mp-full-close:hover, .mp-full-settings-btn:hover {
  background: rgba(var(--mp-neon-rgb), .25); color: #fff; transform: scale(1.08);
}

/* 内容布局：左唱片 右歌词 */
.mp-full-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(300px, 44%) 1fr;
  grid-template-rows: minmax(0, 1fr); /* 关键：约束行高，防止内容撑破视口 */
  gap: clamp(24px, 4vw, 72px);
  height: 100%;
  padding: 4vh clamp(24px, 5vw, 80px) 4vh clamp(24px, 4vw, 64px);
  overflow: hidden;
}

/* 左侧：黑胶唱片 + 控制区 */
.mp-full-left {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0; overflow: visible;
}
.mp-disc-stage { position: relative; width: min(46vmin, 540px); aspect-ratio: 1; }
.mp-disc-shadow {
  position: absolute; inset: 5% 0 -13% 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55) 0%, transparent 68%);
  filter: blur(14px); transform: rotateX(72deg); z-index: 0;
}
/* 节拍脉冲：低频能量越大，唱片轻微放大、光环越亮（--beat 由 JS 频谱循环写入） */
.mp-full-player { --beat: 0; }
.music-player-bar { --beat: 0; }
.mp-disc-stage {
  transform: scale(calc(1 + var(--beat) * 0.045));
  transition: transform .06s linear; /* 高频跟随，无需长过渡 */
}
.mp-disc-wrap {
  position: absolute; inset: 0; z-index: 1;
  border-radius: 50%; padding: 0;
  /* 黑胶纹理底 */
  background:
    repeating-radial-gradient(circle at center,
      #16121f 0px, #1b1626 2px, #141020 4px, #1a1424 6px);
  box-shadow:
    0 18px 60px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.05),
    0 0 90px rgba(var(--mp-neon-rgb), .16);
  display: grid; place-items: center;
}
/* 真实黑胶质感：细密纹路 + 斜向环境反光 */
.mp-disc-wrap::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 1; pointer-events: none;
  background:
    repeating-radial-gradient(circle at center, rgba(255,255,255,.03) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.1) 0%, transparent 46%),
    radial-gradient(circle at 72% 80%, rgba(0,0,0,.32) 0%, transparent 52%);
}
/* 旋转扫光：高光随唱片转动，模拟反光面 */
.mp-disc-wrap::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 4; pointer-events: none;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(255,255,255,.10) 16deg, transparent 34deg,
    transparent 178deg, rgba(255,255,255,.055) 198deg, transparent 218deg);
  animation: mp-spin 22s linear infinite;
}
/* 唱片外围环形频谱画布已移除（背景径向/线性频谱替代） */
.mp-full-player.playing .mp-disc-wrap { box-shadow: 0 18px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06), 0 0 110px rgba(var(--mp-neon-rgb), .3); }
.mp-disc-img {
  width: 72%; height: 72%; border-radius: 50%; object-fit: cover; z-index: 2;
  box-shadow: 0 0 0 6px rgba(0,0,0,.35);
  animation: mp-spin 22s linear infinite; animation-play-state: paused;
}
.mp-full-player.playing .mp-disc-img { animation-play-state: running; }
.mp-disc-core {
  position: absolute; z-index: 3;
  width: 12%; height: 12%; border-radius: 50%;
  background: radial-gradient(circle, #0a0813 58%, #1a1424 60%, rgba(var(--mp-neon-rgb), .5) 82%, transparent 86%);
  box-shadow: 0 0 0 2px rgba(0,0,0,.4);
}
.mp-full-meta { text-align: center; margin-top: clamp(18px, 3.4vh, 34px); }
.mp-full-title {
  font-size: clamp(19px, 2.6vh, 26px); font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.mp-full-artist { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 7px; letter-spacing: 1px; }

/* 进度行 */
.mp-full-progress-row {
  display: flex; align-items: center; gap: 12px;
  width: min(420px, 92%); margin-top: clamp(16px, 2.6vh, 26px);
}
.mp-fc-time { font-size: 11px; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.mp-fc-progress { flex: 1; }
.mp-full-controls {
  display: flex; align-items: center; gap: 12px;
  margin-top: clamp(12px, 2vh, 20px);
}
.mp-fc-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: rgba(255,255,255,.75);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .15s;
  position: relative;
}
.mp-fc-btn:hover { background: rgba(255,255,255,.1); color: #fff; transform: scale(1.1); }
.mp-fc-play {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: radial-gradient(circle at 30% 30%, #ff74c9, var(--mp-neon) 58%, #bb1c7e);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  margin: 0 8px;
  box-shadow: 0 8px 30px rgba(var(--mp-neon-rgb), .5), 0 0 0 1px rgba(255,255,255,.14) inset;
  transition: transform .18s cubic-bezier(.34,1.5,.5,1), box-shadow .25s;
}
.mp-fc-play:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 40px rgba(var(--mp-neon-rgb), .68), 0 0 0 1px rgba(255,255,255,.18) inset;
}
.mp-fc-volume { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.mp-fc-vol-slider { width: 88px; }

/* 右侧：歌词列表（整体水平居中） */
.mp-full-right {
  position: relative; min-width: 0; min-height: 0; /* grid item 需 min-height:0 才允许子级收缩滚动 */
  display: flex; flex-direction: column;
  height: 100%;
}
.mp-full-lyric-box {
  flex: 1; min-height: 0; /* 关键：flex 子项默认 min-height:auto 会被内容撑开导致自身永不滚动 */
  overflow-y: auto; cursor: grab;
  padding: 42vh 56px 44vh;
  text-align: center;
  scrollbar-width: none;
  /* 上下透明渐隐：mask 只作用于歌词文字本身（淡出为透明、透出背景），不改变背景 */
  mask-image: linear-gradient(to bottom, transparent 0%, #000 11%, #000 89%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 11%, #000 89%, transparent 100%);
}
.mp-full-lyric-box::-webkit-scrollbar { display: none; }
.mp-full-lyric-box.dragging { cursor: grabbing; }
.mp-full-lyric-box.snap-back { scroll-behavior: smooth; }

/* 单句歌词行：前置播放按钮 hover 显现，文字居中 */
.mp-lrow {
  position: relative;
  padding: 15px 64px;
  border-radius: 12px;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.mp-lrow-text {
  display: block;
  font-size: var(--mp-lyr-size);
  line-height: 2.05;
  letter-spacing: 2px;
  color: #fff;
  text-align: center;
  word-break: break-word;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.mp-lrow:hover .mp-lrow-text { color: #fff; }
.mp-lrow.active .mp-lrow-text {
  color: #fff;
  font-size: calc(var(--mp-lyr-size) * 1.32);
  font-weight: 700;
  text-align: center;
  text-shadow:
    0 0 12px hsla(var(--mp-hue, 200), 90%, 65%, .85),
    0 0 30px rgba(255,255,255,.22);
}
.mp-lrow-play {
  position: absolute; left: 10px; top: 50%;
  transform: translate(6px, -50%) scale(.7);
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(var(--mp-neon-rgb), .4);
  background: rgba(var(--mp-neon-rgb), .16);
  color: #fff; cursor: pointer; opacity: 0;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: all .22s cubic-bezier(.34,1.4,.5,1);
  box-shadow: 0 0 14px rgba(var(--mp-neon-rgb), .3);
  z-index: 3;
}
.mp-lrow:hover .mp-lrow-play,
.mp-lrow.active .mp-lrow-play { opacity: .95; transform: translate(0, -50%) scale(1); }
.mp-lrow-play:hover {
  background: var(--mp-neon);
  border-color: transparent;
  transform: translate(0, -50%) scale(1.14) !important;
  box-shadow: 0 0 22px rgba(var(--mp-neon-rgb), .7);
}
.mp-lrow-empty {
  display: flex; align-items: center; justify-content: center;
  min-height: 40vh; color: rgba(255,255,255,.3); font-size: 14px; letter-spacing: 2px;
}

/* ==================== 歌词样式设置抽屉 ==================== */
.mp-lyric-drawer {
  position: absolute; top: 76px; right: 76px; z-index: 20;
  width: 320px; max-width: calc(100vw - 40px);
  background: rgba(26,17,36,.97);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(var(--mp-neon-rgb), .2);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  animation: mp-drawer-in .25s cubic-bezier(.34,1.3,.5,1);
  overflow: hidden;
}
@keyframes mp-drawer-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.mp-dr-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; font-size: 14px; font-weight: 600; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mp-dr-close {
  border: none; background: none; color: rgba(255,255,255,.5);
  font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
  transition: background .2s, color .2s;
}
.mp-dr-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.mp-dr-section { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.05); }
.mp-dr-section:last-child { border-bottom: none; }
.mp-dr-label {
  font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: 1px;
  margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
}
.mp-dr-value { color: var(--mp-neon); font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-dr-size-row, .mp-dr-offset-row { display: flex; align-items: center; gap: 8px; }
.mp-dr-stepper {
  border: none; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  font-family: inherit; transition: background .2s, transform .12s;
}
.mp-dr-stepper:hover { background: rgba(var(--mp-neon-rgb), .28); color: #fff; }
.mp-dr-stepper:active { transform: scale(.93); }
.mp-dr-stepper.wide { flex: 1; }
.mp-dr-range {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(90deg,
    var(--mp-neon) var(--range-pct, 50%),
    rgba(255,255,255,.14) var(--range-pct, 50%));
}
.mp-dr-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.5), 0 0 8px rgba(var(--mp-neon-rgb), .6);
  transition: transform .15s ease;
}
.mp-dr-range::-webkit-slider-thumb:hover { transform: scale(1.25); }
.mp-dr-range::-moz-range-thumb {
  width: 12px; height: 12px; border: none; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.5), 0 0 8px rgba(var(--mp-neon-rgb), .6);
}

/* 色板 */
.mp-dr-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-swatch {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  background: var(--sw); border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset;
  transition: transform .16s, box-shadow .2s, border-color .2s;
}
.mp-swatch:hover { transform: scale(1.18); }
.mp-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(var(--mp-neon-rgb), .55), 0 0 14px var(--sw);
  transform: scale(1.12);
}
.mp-dr-custom-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.mp-dr-custom-chip {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.2);
}
.mp-dr-custom-row input[type="color"] {
  width: 30px; height: 24px; padding: 0; border: none; background: none; cursor: pointer;
}
.mp-dr-custom-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.mp-dr-custom-row input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(255,255,255,.2); border-radius: 6px; }
.mp-dr-hex { font-size: 11px; color: rgba(255,255,255,.45); font-family: Consolas, monospace; letter-spacing: 1px; }

/* ==================== Tab 滑动指示器 ==================== */
.mp-tabs { position: relative; }
.mp-tab-indicator {
  position: absolute; bottom: 0; height: 2px;
  background: var(--mp-neon);
  box-shadow: 0 0 10px rgba(var(--mp-neon-rgb), .8);
  border-radius: 1px; pointer-events: none;
  transition: left .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
}

/* ==================== 滚动条 ==================== */
#mpPanelContent::-webkit-scrollbar, .mp-playlist::-webkit-scrollbar, .mp-search-results::-webkit-scrollbar { width: 5px; }
#mpPanelContent::-webkit-scrollbar-thumb, .mp-playlist::-webkit-scrollbar-thumb, .mp-search-results::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14); border-radius: 3px;
}
#mpPanelContent::-webkit-scrollbar-thumb:hover, .mp-playlist::-webkit-scrollbar-thumb:hover, .mp-search-results::-webkit-scrollbar-thumb:hover { background: rgba(var(--mp-neon-rgb), .5); }

/* ==================== 屏幕阅读器辅助 ==================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 粒子画布不受影响 */
#particleCanvas { pointer-events: none; }
#particleCanvas.active { opacity: 1; }

/* ==================== 自定义颜色兼容（外观面板调用的变量）==================== */
.music-player-bar { --mp-bg: rgba(24,16,32,.9); --mp-accent: var(--mp-neon); --mp-text: #ffffff; --mp-border: rgba(var(--mp-neon-rgb), .18); }
.music-panel { --mp-panel-bg: rgba(26,17,36,.98); --mp-accent: var(--mp-neon); --mp-border: rgba(var(--mp-neon-rgb), .16); }

/* 256 主题覆盖：色相与 rgb 三元组由 JS（update256Hue）注入 documentElement，
   避免 rgba(var(--mp-neon-rgb), x) 接收到 hsl() 非法值导致所有发光效果失效 */

/* ==================== 响应式 ==================== */
@media (max-width: 1100px) {
  .mp-fc-volume { display: none; }
}
@media (max-width: 860px) {
  .mp-full-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding: 8vh 24px 6vh; gap: 12px;
    overflow-y: auto;
  }
  .mp-full-left { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding-top: 44px; }
  .mp-disc-stage { width: 148px; }
  .mp-full-meta { width: 100%; order: 2; }
  .mp-full-progress-row { order: 3; }
  .mp-full-controls { order: 4; }
  .mp-full-right { min-height: 340px; }
  .mp-full-lyric-box { padding: 12vh 40px 20vh; mask-image: none; -webkit-mask-image: none; }
  .mp-lrow { padding: 10px 56px; }
  .mp-lyric-drawer { right: 12px; top: 70px; }
}
@media (max-width: 720px) {
  .music-player-bar { gap: 8px; padding: 0 10px; height: 58px; }
  .music-panel { bottom: 58px; width: calc(100vw - 20px); right: 10px; }
  .mp-info { width: auto; flex: 0 0 96px; }
  .mp-lyric-marquee span { font-size: 12px; max-width: 128px; }
  .mp-time { display: none; }
  .mp-volume-wrap { display: none; }
  .music-player-bar .mp-progress-wrap { min-width: 70px; max-width: none; }
  .mp-btn { width: 30px; height: 30px; }
  .mp-btn.play-btn { width: 36px; height: 36px; }
  .mp-float-btn { bottom: 74px; right: 14px; width: 48px; height: 48px; }
  #mpToastWrap { bottom: 132px; right: 12px; }
  .mp-full-settings-btn { right: 66px; }
  .mp-lrow { padding: 9px 46px; }
}

/* ==================== v3 增补 ==================== */

/* 全屏频谱背景画布（底部线性频谱带 + 径向频谱 + 粒子发散 + 扩散环） */
.mp-full-bg-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

/* 播放失败：列表红字 + 悬浮原因（title 提示） */
.mp-playlist-item.mp-failed .mp-pl-name,
.mp-playlist-item.mp-failed .mp-pl-singer { color: #ff6b6b !important; }
.mp-playlist-item.mp-failed .mp-pl-cover { filter: grayscale(.7) brightness(.7); }
.mp-playlist-item.mp-failed .mp-pl-actions .mp-pl-btn { color: rgba(255,107,107,.75); }

/* 专注模式：双击空白只保留壁纸背景，所有 UI（含播放栏/面板/全屏/频谱）全部隐藏，仅 toast 可见
   注意：壁纸图片渲染在 #bgBlurLayer（body 直接子元素）上，必须排除，否则背景变纯白 */
body > * { transition: opacity .45s ease; }
body.focus-hidden > *:not(.music-player-bar):not(.music-panel):not(#mpFullPlayer):not(#mpToastWrap):not(#bgBlurLayer):not(#musicPlayerBar):not(#mpFocusOverlay) {
  opacity: 0 !important;
  pointer-events: none !important;
}
body.focus-hidden { overflow: hidden; }

/* 面板滚动条美化 */
.mp-panel-body::-webkit-scrollbar, .mp-lyric-box::-webkit-scrollbar, .mp-playlist::-webkit-scrollbar {
  width: 6px; height: 6px;
}
.mp-panel-body::-webkit-scrollbar-thumb, .mp-lyric-box::-webkit-scrollbar-thumb, .mp-playlist::-webkit-scrollbar-thumb {
  background: rgba(var(--mp-neon-rgb), .22);
  border-radius: 3px;
}
.mp-panel-body::-webkit-scrollbar-thumb:hover, .mp-lyric-box::-webkit-scrollbar-thumb:hover, .mp-playlist::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--mp-neon-rgb), .4);
}
.mp-panel-body::-webkit-scrollbar-track, .mp-lyric-box::-webkit-scrollbar-track, .mp-playlist::-webkit-scrollbar-track {
  background: transparent;
}

/* Custom tooltip for failed songs */
.mp-custom-tooltip {
  position: fixed;
  z-index: 99999;
  background: rgba(30, 10, 20, 0.95);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.4;
  max-width: 320px;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  animation: mpTooltipFadeIn 0.15s ease-out;
}
@keyframes mpTooltipFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
