/* 全屏正在播放 / 沉浸歌词 —— 旧下载页与新整页播放器共享 */
.np-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  background: #0b0b0f;
  color: #fff; opacity: 0; visibility: hidden;
  transform: translateY(24px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
  overflow: hidden;
}
.np-overlay.open { opacity: 1; visibility: visible; transform: translateY(0); }

/* 仅歌词模式：背景透明、隐藏封面/控制，只显示滚动歌词 */
.np-overlay.lyrics-only { background: transparent; }
.np-overlay.lyrics-only .np-bg { display: none; }
.np-overlay.lyrics-only .np-topbar,
.np-overlay.lyrics-only .np-left,
.np-overlay.lyrics-only .np-footer { display: none; }
.np-overlay.lyrics-only .np-body { justify-content: center; padding: 40px 6%; }
.np-overlay.lyrics-only .np-right { max-width: 800px; height: 80vh; }
.np-overlay.lyrics-only .np-lyrics .ln { font-size: 24px; text-align: center; transform-origin: center;
  text-shadow: 0 2px 16px rgba(0,0,0,.75); }
.np-overlay.lyrics-only .np-lyrics .ln .tr { font-size: 16px; }

/* 专辑取色渐变底（替代模糊封面） */
.np-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(130% 100% at 28% 12%, #23232c, #121217 60%, #08080c 100%);
  transition: background 1s ease;
}
/* 流体动画光斑层（仿 25pan「流体动画」开关；fluid-on 时显示） */
.np-fluid { position: absolute; inset: 0; z-index: 1; overflow: hidden;
  opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.np-overlay.fluid-on .np-fluid { opacity: .9; }
.np-overlay.lyrics-only .np-fluid { display: none; }
.np-fluid .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  mix-blend-mode: screen; will-change: transform; }
.np-fluid .b1 { width: 46vw; height: 46vw; left: -6vw; top: -8vw; background: var(--c1, #3a3a52);
  animation: blobA 18s ease-in-out infinite; }
.np-fluid .b2 { width: 40vw; height: 40vw; right: -4vw; top: 18vh; background: var(--c2, #262636);
  animation: blobB 22s ease-in-out infinite; }
.np-fluid .b3 { width: 38vw; height: 38vw; left: 30vw; bottom: -12vw; background: var(--c3, #2c2c40);
  animation: blobC 26s ease-in-out infinite; }
@keyframes blobA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw,6vh) scale(1.18); } }
@keyframes blobB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vw,4vh) scale(1.12); } }
@keyframes blobC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,-6vh) scale(1.22); } }
.np-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,12,.18), rgba(8,8,12,.5)); }

.np-topbar { position: relative; z-index: 2; display: flex; align-items: center;
  gap: 12px; padding: calc(18px + env(safe-area-inset-top)) 28px 18px; }
.np-close { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .2s; }
.np-close:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(2px); }
.np-close svg { width: 22px; height: 22px; }
.np-source { font-size: 13px; color: rgba(255,255,255,.6); }
.np-now { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: 3px;
  color: rgba(255,255,255,.55); font-weight: 600; }
.np-topbar { position: relative; }
.np-overlay.lyrics-only .np-now { display: none; }

.np-body { position: relative; z-index: 2; flex: 1; display: flex;
  align-items: center; justify-content: center; gap: 6%;
  padding: 0 6% 12px; min-height: 0; }

/* 左：封面 + 信息 */
.np-left { display: flex; flex-direction: column; align-items: center; gap: 26px;
  flex: 0 0 auto; width: min(42vh, 420px); }
.np-cover-wrap { width: min(42vh, 420px); height: min(42vh, 420px);
  border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.55);
  background: rgba(255,255,255,.06); }
.np-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-meta { text-align: center; max-width: 100%; }
.np-title { font-size: 26px; font-weight: 700; margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: 15px; color: rgba(255,255,255,.65); }
.np-actions { display: flex; gap: 14px; margin-top: 6px; }
.np-actions button { background: rgba(255,255,255,.1); border: none; color: #fff;
  border-radius: 20px; padding: 8px 16px; cursor: pointer; font-size: 13px; transition: background .2s; }
.np-actions button:hover { background: rgba(255,255,255,.22); }
.np-actions button.active { background: var(--accent, #22c55e); color: #04210f; }

/* 右：歌词（transform 平滑滚动 + 距离淡出 + 悬停定位） */
.np-right { flex: 1 1 0; max-width: 600px; height: 70vh; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.np-lyrics { display: flex; flex-direction: column; gap: 8px; padding: 0; will-change: transform;
  transition: transform .55s cubic-bezier(.22,.61,.36,1); }
/* 不缩放：当前行/悬停行只变亮变粗，绝不放大（避免 hover 抖动/放大动画） */
.np-lyrics .ln { position: relative; font-size: 22px; line-height: 1.45; color: rgba(255,255,255,.42);
  padding: 9px 58px 9px 14px; cursor: pointer; border-radius: 10px;
  transition: color .18s ease, background-color .18s ease, opacity .28s ease; }
.np-lyrics .ln .ln-tx { display: block; }
.np-lyrics .ln .tr { display: block; font-size: 14px; color: rgba(255,255,255,.3); margin-top: 3px; }
/* 悬停时右侧「▶ 时间」小药丸：点击从该行开始播放 */
.np-lyrics .ln .seekt { position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 8px; border-radius: 11px;
  background: rgba(255,255,255,.14); font-size: 11.5px; color: rgba(255,255,255,.92);
  opacity: 0; transition: opacity .16s ease; font-variant-numeric: tabular-nums; pointer-events: none; }
.np-lyrics .ln .seekt::before { content: ""; width: 0; height: 0; border-style: solid;
  border-width: 4px 0 4px 7px; border-color: transparent transparent transparent currentColor; }
.np-lyrics .ln:hover { color: rgba(255,255,255,.9); background-color: rgba(255,255,255,.045); opacity: 1 !important; }
.np-lyrics .ln:hover .seekt { opacity: 1; }
.np-lyrics .ln.active { color: #fff; font-weight: 700; }
.np-lyrics .ln.active .tr { color: rgba(255,255,255,.6); }
.np-lyrics .ln .w { color: inherit; }
.np-lyrics .ln.active .w {
  background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255,255,255,.4) var(--p, 0%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.np-lyrics .empty { color: rgba(255,255,255,.4); font-size: 16px; padding: 30vh 0; }

/* 全屏页音量 */
.np-vol { position: relative; display: flex; align-items: center; }
.np-vol-btn { background: none; border: none; color: rgba(255,255,255,.85); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 4px; }
.np-vol-btn:hover { color: #fff; }
.np-vol-btn svg { width: 20px; height: 20px; }
.np-vol.open .np-vol-btn { color: #fff; background: rgba(255,255,255,.14); }
.np-vol-pop { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 8px; width: 48px; padding: 14px 0 6px;
  background: rgba(18,18,26,.94); border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  backdrop-filter: blur(12px); box-shadow: 0 14px 40px rgba(0,0,0,.5); z-index: 20; }
.np-vol.open .np-vol-pop { display: flex; }
.np-vol-track { position: relative; width: 4px; height: 110px; border-radius: 999px;
  background: rgba(255,255,255,.18); cursor: pointer; }
.np-vol-fill { position: absolute; left: 0; bottom: 0; width: 100%; border-radius: inherit; background: #e8e8ee; }
.np-vol-thumb { position: absolute; left: 50%; transform: translate(-50%, 50%); bottom: 100%;
  width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.55); pointer-events: none; }
.np-vol-num { font-size: 11px; color: rgba(255,255,255,.55); user-select: none; }
.np-vol-mute { display: flex; align-items: center; justify-content: center; width: 100%;
  padding: 7px 0 5px; margin-top: 1px; border: none; border-top: 1px solid rgba(255,255,255,.12);
  background: none; color: rgba(255,255,255,.65); cursor: pointer; }
.np-vol-mute:hover { color: #fff; }
.np-vol-mute.muted { color: #f43f5e; }
.np-vol-mute svg { width: 16px; height: 16px; }

/* 全屏播放页：播放列表按钮（放在音量旁）+ 右侧滑出面板 */
.np-qbtn, .np-cbtn { background: none; border: none; color: rgba(255,255,255,.85); cursor: pointer; padding: 6px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.np-qbtn:hover, .np-cbtn:hover { color: #fff; background: rgba(255,255,255,.12); }
.np-qbtn.active { color: var(--accent, #22c55e); }
.np-qbtn svg, .np-cbtn svg { width: 20px; height: 20px; }
.np-overlay.lyrics-only .np-qbtn, .np-overlay.lyrics-only .np-cbtn { display: none; }

/* 悬浮卡片式播放列表（右侧留边距，圆角，干净滑入；界面不动）
   注意：不用 backdrop-filter —— 它在 transform 滑入时会让整个背景重新合成，看起来像整页都在动 */
/* 与评论面板同款出现方式：display 切换 + 小幅滑入关键帧（不做整屏大滑动） */
.np-queue { position: absolute; top: 84px; right: 22px; bottom: 108px; width: 360px; max-width: 84vw; z-index: 6;
  background: rgba(20,20,28,.98); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; box-shadow: -8px 0 36px rgba(0,0,0,.4);
  flex-direction: column; overflow: hidden; display: none; }
.np-queue.show { display: flex; animation: cm-slide-in .3s cubic-bezier(.22,.61,.36,1); }
.np-queue-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 14px;
  font-weight: 700; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.np-queue-head .np-q-count { font-style: normal; font-weight: 400; font-size: 12px; color: rgba(255,255,255,.5); margin-left: 6px; }
.np-q-clear { background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; font-size: 13px; }
.np-q-clear:hover { color: #f87171; }
.np-queue-list { flex: 1; overflow-y: auto; padding: 8px; }
.np-q-empty { color: rgba(255,255,255,.4); text-align: center; padding: 40px 0; font-size: 14px; }
.np-q-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.np-q-row:hover { background: rgba(255,255,255,.07); }
.np-q-row.playing { color: var(--accent, #22c55e); }
.np-q-i { width: 22px; text-align: center; font-size: 12px; color: rgba(255,255,255,.45); flex: 0 0 auto; }
.np-q-row.playing .np-q-i { color: var(--accent, #22c55e); }
.np-q-t { flex: 1 1 auto; min-width: 0; }
.np-q-n { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-q-a { font-size: 12px; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-q-x { opacity: 0; margin-left: auto; flex: 0 0 auto; width: 24px; height: 24px; border: none; background: none;
  color: rgba(255,255,255,.5); cursor: pointer; font-size: 17px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; }
.np-q-row:hover .np-q-x { opacity: .8; }
.np-q-x:hover { opacity: 1 !important; background: rgba(255,255,255,.1); color: #f87171; }

/* 底部：进度 + 控制 */
.np-footer { position: relative; z-index: 2; padding: 10px 8% 34px; }
/* 律动波形（全屏页：在进度条上方） */
.np-viz { display: block; width: 100%; max-width: 720px; height: 60px; margin: 0 auto 4px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.np-overlay.lyrics-only .np-viz { display: none; }
/* 进度条不必过长：限宽居中 */
.np-progress { display: flex; align-items: center; gap: 12px; margin: 0 auto 18px; max-width: 720px; }
.np-progress .t { font-size: 12px; color: rgba(255,255,255,.6); width: 42px; text-align: center; }
.np-bar { flex: 1; height: 6px; background: rgba(255,255,255,.18); border-radius: 3px;
  cursor: pointer; position: relative; transition: height .12s; }
.np-bar:hover { height: 8px; }
.np-bar-fill { height: 100%; background: var(--accent, #22c55e); border-radius: 3px; width: 0%; position: relative; }
/* 悬停歌词气泡（进度条上方、随光标 X 跟随，不显示圆点游标） */
/* 悬停歌词：透明无底，只显示文字（描边阴影保证可读） */
.np-bar-tip { position: absolute; bottom: calc(100% + 9px); left: 0; transform: translateX(-50%);
  max-width: 60vw; padding: 0 4px; background: none; border: none; box-shadow: none;
  color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 5px rgba(0,0,0,.92), 0 0 3px rgba(0,0,0,.85);
  pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 5; }
.np-bar-tip.show { opacity: 1; }
/* ===== 控件两层：主传输行（大、居中、对称）+ 次要控件行（小、低调），与底栏同一套设计 ===== */
.np-controls { display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* 主传输行：mode · prev · PLAY · next · 词 */
.np-ctrl-main { display: flex; align-items: center; justify-content: center; gap: 22px; }
.np-ctrl-main button { background: none; border: none; cursor: pointer; color: rgba(255,255,255,.82);
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; padding: 0;
  width: 46px; height: 46px; transition: color .15s, background .15s, transform .12s; }
.np-ctrl-main button:hover { color: #fff; background: rgba(255,255,255,.1); }
.np-ctrl-main button:active { transform: scale(.92); }
.np-ctrl-main .np-prev svg, .np-ctrl-main .np-next svg { width: 28px; height: 28px; }
.np-ctrl-main .np-mode { color: rgba(255,255,255,.6); }
.np-ctrl-main .np-mode.active { color: var(--accent, #22c55e); }
.np-ctrl-main .np-mode svg { width: 22px; height: 22px; }
/* 播放/暂停大圆钮（源序在 .np-ctrl-main button 之后覆盖尺寸） */
.np-ctrl-main .np-play { width: 88px; height: 56px; border-radius: 999px; background: var(--accent, #22c55e); color: #04210f;
  box-shadow: 0 8px 26px rgba(34,197,94,.42); }
.np-ctrl-main .np-play:hover { background: var(--accent, #22c55e); color: #04210f; filter: brightness(1.06); transform: scale(1.04); }
.np-ctrl-main .np-play svg { width: 26px; height: 26px; }
/* 词（桌面歌词）作主行右侧对称项 */
.np-ctrl-main .np-lyric { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.7); }
.np-ctrl-main .np-lyric.active { color: var(--accent, #22c55e); }

/* 次要控件行：倍速 · 音质 · 音量 · 评论 · 列表 */
.np-ctrl-extra { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.np-speed, .np-q { position: relative; }
/* 倍速 + 音质 文字胶囊 */
.np-speed-btn, .np-q-btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px;
  background: rgba(255,255,255,.08); border: 1px solid transparent; border-radius: 999px; color: rgba(255,255,255,.8);
  font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.np-speed-btn:hover, .np-q-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.np-speed.open .np-speed-btn, .np-q.open .np-q-btn { background: rgba(255,255,255,.16); color: #fff; }
.np-speed-menu, .np-q-menu { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: #16161d; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 5px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); display: none; z-index: 10; min-width: 100px; }
.np-speed.open .np-speed-menu, .np-q.open .np-q-menu { display: block; }
.np-speed-menu div, .np-q-menu div { padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; text-align: center; color: #ccc; white-space: nowrap; }
.np-speed-menu div:hover, .np-q-menu div:hover { background: rgba(255,255,255,.08); color: #fff; }
/* 次要行图标键统一：音量/评论/列表 38px 圆 */
.np-ctrl-extra .np-vol-btn, .np-ctrl-extra .np-qbtn, .np-ctrl-extra .np-cbtn {
  width: 38px; height: 38px; border-radius: 50%; padding: 0; background: none; border: none; color: rgba(255,255,255,.8); }
.np-ctrl-extra .np-vol-btn:hover, .np-ctrl-extra .np-qbtn:hover, .np-ctrl-extra .np-cbtn:hover { color: #fff; background: rgba(255,255,255,.1); }
.np-ctrl-extra .np-qbtn.active { color: var(--accent, #22c55e); }
.np-ctrl-extra .np-vol-btn svg, .np-ctrl-extra .np-qbtn svg, .np-ctrl-extra .np-cbtn svg { width: 19px; height: 19px; }
/* 播放列表头：清空 + 关闭 */
.np-qh-r { display: flex; align-items: center; gap: 12px; }
.np-q-close { background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; font-size: 22px; line-height: 1; padding: 0 2px; }
.np-q-close:hover { color: #fff; }

@media (max-width: 820px) {
  .np-body { flex-direction: column; gap: 18px; padding: 0 6% 8px; justify-content: flex-start; }
  .np-left { width: min(50vw, 240px); gap: 14px; margin-top: 6px; }
  .np-cover-wrap { width: min(50vw, 240px); height: min(50vw, 240px); }
  .np-title { font-size: 20px; }
  .np-right { height: 36vh; max-width: 100%; width: 100%; }
  .np-lyrics { gap: 12px; }
  .np-lyrics .ln { font-size: 17px; text-align: center; transform-origin: center; padding: 7px 12px; }
  .np-lyrics .ln .seekt { display: none; }   /* 移动端隐藏行内时间药丸 */
  .np-topbar { padding: calc(14px + env(safe-area-inset-top)) 18px 14px; }
  .np-now { letter-spacing: 2px; font-size: 11px; }
  .np-footer { padding: 8px 5% 26px; }
  .np-viz { height: 44px; }
  /* 控制区换行 + 缩小，避免溢出 */
  .np-controls { gap: 14px; flex-wrap: wrap; }
  .np-controls .np-play { width: 74px; height: 48px; }
  .np-quality { font-size: 11px; padding: 5px 8px; }
  /* 队列面板：移动端占满，从底部上滑 */
  .np-queue { top: auto; bottom: 0; right: 0; left: 0; width: 100%; max-width: 100%; height: 62%;
    border-radius: 16px 16px 0 0; }
  .np-queue.show { animation: np-q-up .3s cubic-bezier(.22,.61,.36,1); }
}
@keyframes np-q-up { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
