/* ============================================================
   星海音乐 Web · nowplaying.css（v6.26 · 从 style.css 结构化拆分）
   内容：正在播放视图（桌面 np）
   ⚠ 级联顺序即加载顺序（app.html 按本文件在链中的位置引入），
     调整 @media / 覆盖关系时请保持文件间相对顺序不变。
   ============================================================ */

/* ================= 正在播放视图（优化版新增） ================= */
#view-nowplaying { padding: 8px 4px 10px; }

.np-empty {
  margin: 12vh auto 0;
  max-width: 460px;
  text-align: center;
  color: var(--sub);
}
.np-empty-icon { width: 96px; height: 96px; color: #2a3550; margin-bottom: 18px; animation: spin 8s linear infinite; }
.np-empty-title { font-size: 17px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.np-empty-sub { font-size: 13.5px; color: #5f6b85; line-height: 1.8; }

.np-stage {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 18px 6px 24px;
  animation: fadeIn 0.3s ease;
}

/* ---- 左：黑胶封面 ---- */
.np-left { display: flex; flex-direction: column; align-items: center; gap: 24px; position: sticky; top: 10px; }
.np-cover-wrap {
  width: 280px; height: 280px;
  display: grid; place-items: center;
}
.np-cover-ring {
  position: relative;
  width: 280px; height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0a0e1a 28%, #161d33 30%, #0e1322 32%, #1a2138 60%, #0a0e1a 62%);
  box-shadow:
    0 0 0 8px rgba(var(--accent-rgb), 0.06),
    0 18px 50px rgba(0, 0, 0, 0.55),
    inset 0 0 30px rgba(0, 0, 0, 0.45);
  display: grid; place-items: center;
  transition: transform 0.4s;
}
.np-cover-ring.spinning { animation: npSpin 12s linear infinite; }
@keyframes npSpin { to { transform: rotate(360deg); } }
.np-cover {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}
.np-cover-ring.has .np-cover { display: block; }
.np-cover-ring.has .np-cover-fallback { display: none; }
.np-cover-fallback {
  display: grid; place-items: center;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--card);
  color: #3d4a68;
}
.np-cover-fallback .icon { width: 56px; height: 56px; }
/* 黑胶中心圆点 */
.np-cover-ring::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #0a0e1a;
  border: 2px solid #2a3550;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.np-actions { display: flex; align-items: center; gap: 12px; }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 20px;
  background: var(--grad);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.45);
  transition: transform 0.12s, box-shadow 0.2s, opacity 0.18s;
}
.btn-download:hover { box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.6); }
.btn-download:active { transform: scale(0.96); }
.btn-download:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-download .icon { width: 18px; height: 18px; }

/* ---- 右：歌曲信息 + 歌词 + 进度 + 控件 ---- */
.np-right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.np-info { display: flex; flex-direction: column; gap: 6px; }
.np-info .badge { align-self: flex-start; margin-bottom: 4px; }
.np-info .badge.src { background: rgba(var(--accent-rgb), 0.15); color: #a5b0ff; box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.18); }
.np-info .badge.quality { background: rgba(var(--accent-2-rgb), 0.13); color: #6fe3ee; box-shadow: 0 0 10px rgba(var(--accent-2-rgb), 0.2); }
.np-info .badge:empty { display: none; }
.np-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.35;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.np-singer { font-size: 15px; color: var(--sub); }
.np-album { font-size: 13px; color: #5f6b85; }
.np-album:empty { display: none; }

.np-lyric {
  position: relative;
  height: 240px;
  overflow-y: auto;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 26, 43, 0.55);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 92%, transparent 100%);
}
.np-lyric-empty { text-align: center; color: #5f6b85; padding: 80px 0; font-size: 13.5px; }
.np-lyric-line {
  padding: 8px 6px;
  font-size: 15px;
  line-height: 1.6;
  color: #6d7a96;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .np-lyric-line:hover { color: var(--text); background: rgba(var(--accent-rgb), 0.07); }
}
.np-lyric-line.active {
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-2-rgb), 0.05));
  transform: scale(1.02);
  transform-origin: left center;
}

.np-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
.np-time {
  font-size: 12px;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
  flex: none;
  min-width: 42px;
  text-align: center;
}
.np-time:last-child { text-align: center; }
#npProgressBar { flex: 1; }
/* 【v6.23】正在播放视图：滑杆放大一档（轨道 6px / 玻璃珠 16px），主舞台更醒目 */
#npProgressBar { height: 6px; }
#npProgressBar::-webkit-slider-thumb { width: 16px; height: 16px; }
#npProgressBar::-moz-range-thumb { width: 16px; height: 16px; }
#npProgressBar::-moz-range-track, #npProgressBar::-moz-range-progress { height: 6px; }

.np-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}



/* ============================================================
   【v6.31 阶段一】倍速 / 睡眠定时胶囊
   · .fs-tools：手机全屏播放器（进度条与按钮排之间）
   · .np-tools：桌面「正在播放」视图（同款同源，视觉一致）
   · .fs-chip.on：激活态 —— 主题色描边 + 微光，一眼可辨"开着"
   ============================================================ */
.fs-tools, .np-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2px 0 12px;
}
.np-tools { margin: 4px 0 14px; }
.fs-chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 26, 43, 0.6);
  color: var(--sub);
  font-size: 12.5px;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.2s;
}
.fs-chip:hover { color: var(--text); border-color: var(--accent); }
.fs-chip:active { transform: scale(0.96); }
.fs-chip.on {
  color: var(--text);
  border-color: var(--accent);
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.20), rgba(var(--accent-2-rgb), 0.12));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.28);
}
.fs-chip.on:hover { box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.4); }
@media (prefers-reduced-motion: reduce) {
  .fs-chip { transition: none; }
}
