* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  min-height: 100vh;
  color: #fff;
  position: relative;
  overflow-x: hidden;
}
/* 音符背景图案 */
body::before {
  content: '♪ ♫ ♩ ♬ ♪ ♫ ♩ ♬ ♪ ♫ ♩ ♬ ♪ ♫ ♩ ♬ ♪ ♫ ♩ ♬ ♪ ♫ ♩ ♬ ♪ ♫ ♩ ♬ ♪ ♫ ♩ ♬';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  font-size: 40px;
  line-height: 80px;
  color: rgba(59,130,246,.08);
  pointer-events: none;
  z-index: 0;
  word-wrap: break-word;
  overflow: hidden;
}
/* 背景光斑装饰 */
body::after {
  content: '';
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(59,130,246,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.container { max-width: 900px; margin: 0 auto; padding: 20px; position: relative; z-index: 1; }

.header { text-align: center; padding: 30px 0; }
.header h1 {
  font-size: 28px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header p { color: #94a3b8; font-size: 14px; }

/* 大尺寸播放器 */
.player {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.player-cover {
  width: 200px; height: 200px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  box-shadow: 0 20px 60px rgba(59,130,246,.5), inset 0 0 0 8px rgba(255,255,255,.1);
  animation: rotate 20s linear infinite;
  animation-play-state: paused;
  overflow: hidden;
}
.player.playing .player-cover { animation-play-state: running; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.player-title { text-align: center; font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.player-artist { text-align: center; color: #94a3b8; font-size: 14px; margin-bottom: 24px; }

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  margin-bottom: 16px;
  cursor: pointer;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6);
  border-radius: 3px;
  width: 0%;
  transition: width .1s linear;
}

.time-row { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; margin-bottom: 24px; }

.controls { display: flex; justify-content: center; gap: 24px; align-items: center; }
.controls button {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all .2s;
}
.controls button:hover { background: rgba(255,255,255,.2); transform: scale(1.05); }
.controls button.play-btn {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  font-size: 28px;
}

/* 搜索框 */
.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.search-box input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 15px;
  outline: none;
}
.search-box input:focus { border-color: #3b82f6; }
.search-box button {
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

/* 列表 */
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #3b82f6, #0ea5e9);
  border-radius: 2px;
}
.song-list { list-style: none; }
.song-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 6px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}
.song-item:hover {
  background: rgba(59,130,246,.15);
  border-color: rgba(59,130,246,.3);
  transform: translateX(4px);
}
.song-item.active {
  background: rgba(59,130,246,.2);
  border-color: rgba(59,130,246,.5);
}
.song-num { width: 24px; color: #64748b; font-size: 14px; font-weight: 600; }
.song-info { flex: 1; min-width: 0; }
.song-name { font-size: 15px; margin-bottom: 2px; }
.song-artist { font-size: 12px; color: #64748b; }
.song-actions { display: flex; gap: 8px; }
.song-actions button {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,.1);
  color: #cbd5e1;
  font-size: 12px;
  cursor: pointer;
}
.song-actions button:hover { background: rgba(255,255,255,.2); }

.empty { text-align: center; color: #64748b; padding: 40px 0; font-size: 14px; }

/* 热门试听：封面网格，点一下直接播放 */
.hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.hot-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 8px; cursor: pointer; transition: all .2s;
}
.hot-card:hover { background: rgba(59,130,246,.18); border-color: rgba(59,130,246,.3); transform: translateY(-3px); }
.hot-cover {
  width: 100%; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: rgba(255,255,255,.06);
}
.hot-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-artist { font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.back-link { display: inline-block; margin-bottom: 20px; color: #7c3aed; text-decoration: none; font-size: 14px; }
.back-link:hover { color: #4c1d95; }

/* 手机版响应式设计 */
@media (max-width: 768px) {
  .container { padding: 12px; }
  .header { padding: 20px 0; }
  .header h1 { font-size: 22px; }
  
  .player { padding: 24px; border-radius: 20px; }
  .player-cover { width: 160px; height: 160px; font-size: 60px; }
  .player-title { font-size: 18px; }
  .player-artist { font-size: 13px; }
  
  .controls { gap: 16px; }
  .controls button { width: 48px; height: 48px; font-size: 18px; }
  .controls button.play-btn { width: 60px; height: 60px; font-size: 24px; }
  
  .search-box { flex-direction: column; gap: 10px; }
  .search-box button { width: 100%; padding: 16px 28px; font-size: 16px; }
  
  .song-item { padding: 12px; gap: 12px; }
  .song-num { width: 20px; font-size: 13px; }
  .song-name { font-size: 14px; }
  .song-artist { font-size: 11px; }
  
  .song-actions button { padding: 8px 12px; font-size: 13px; border-radius: 8px; }
}

/* ===== Spotify 卡片：刻意用另一套视觉语言（黑底 + Spotify 绿），
   让它一眼看出来不是上面那台网易云播放器 ===== */
.spotify-card {
  margin-top: 32px;
  background: #0b0f0c;
  border: 1px solid rgba(29,185,84,.35);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
.sp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sp-dot { width: 26px; height: 26px; border-radius: 50%;
          background: radial-gradient(circle at 30% 30%, #1ed760, #0d7a37);
          box-shadow: 0 0 18px rgba(30,215,96,.55); flex-shrink: 0; }
.sp-title { font-size: 17px; font-weight: 800; color: #eafff0; letter-spacing: .3px; }
.sp-sub { font-size: 12.5px; color: #7f9289; margin-top: 2px; }

.sp-input-row { display: flex; gap: 8px; }
.sp-input-row input {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: 10px;
  border: 1px solid #23302a; background: #111815; color: #dff7e8;
  font-size: 13px; outline: none; font-family: inherit;
}
.sp-input-row input:focus { border-color: #1db954; box-shadow: 0 0 0 3px rgba(29,185,84,.15); }
.sp-input-row button {
  padding: 11px 20px; border: none; border-radius: 10px; cursor: pointer;
  background: #1db954; color: #06240f; font-weight: 800; font-size: 13px;
  transition: .15s; white-space: nowrap;
}
.sp-input-row button:hover { background: #1ed760; transform: translateY(-1px); }

.sp-msg { font-size: 12px; color: #7f9289; margin: 10px 2px 4px; min-height: 16px; line-height: 1.6; }
.sp-msg.err { color: #fca5a5; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.sp-chips:empty { display: none; }
.sp-chip {
  padding: 5px 11px; border-radius: 999px; cursor: pointer; font-size: 11.5px;
  border: 1px solid #23302a; background: #131b17; color: #9fb3a8; transition: .15s;
}
.sp-chip:hover { border-color: #1db954; color: #d7ffe4; }
.sp-chip.active { background: #1db954; border-color: #1db954; color: #06240f; font-weight: 700; }

.sp-frame { border-radius: 14px; overflow: hidden; }
.sp-frame iframe { display: block; border: 0; border-radius: 14px; background: #000; }
.sp-empty {
  padding: 34px 18px; text-align: center; font-size: 13px; color: #6d8279;
  background: #0f1613; border: 1px dashed #23302a; border-radius: 14px;
}
.sp-foot { font-size: 11.5px; color: #5f746a; margin-top: 12px; line-height: 1.7; }

@media (max-width: 640px) {
  .spotify-card { padding: 16px; border-radius: 16px; }
  .sp-input-row { flex-direction: column; }
  .sp-input-row button { width: 100%; }
}

/* ================================================================
   苦海音乐 · 排版与歌单（2026-11-12 覆盖层）
   ----------------------------------------------------------------
   原有蓝色玻璃拟态播放器保留，这一层只做三件事：
   1. 抬头：把「🎵 苦海音乐」改成正经的刊头（kicker + 大标题 + 当前播放行）
   2. 版式：单列改左右分栏（左：播放器/热门/搜索/Spotify；右：我的歌单，粘性跟随）
   3. 歌单：多歌单（可新建/改名/清空/删除），曲目列表带封面与"正在播放"标记
   强调色用暖金 #e8c37a，与 Spotify 卡的墨绿刻意区分，两者同屏也不抢。
   ================================================================ */
:root {
  --mz-ink: #0b1626;
  --mz-ink-2: #12233a;
  --mz-line: rgba(147,197,253,.18);
  --mz-text: #eef4ff;
  --mz-dim: #93a5bd;
  --mz-blue: #3b82f6;
  --mz-gold: #e8c37a;
}

body {
  background:
    radial-gradient(70% 50% at 12% 0%, rgba(59,130,246,.22) 0%, transparent 62%),
    radial-gradient(60% 50% at 92% 8%, rgba(232,195,122,.10) 0%, transparent 60%),
    linear-gradient(160deg, #071120 0%, #0b1a2e 55%, #0a1526 100%);
  background-attachment: fixed;
}
body::before { color: rgba(147,197,253,.05); }

.container { max-width: 1180px; padding: 18px 20px 60px; }
.back-link { color: var(--mz-dim); }
.back-link:hover { color: var(--mz-gold); }

/* ---------- 刊头 ---------- */
.mz-hero { padding: 14px 0 26px; border-bottom: 1px solid var(--mz-line); margin-bottom: 26px; }
.mz-kicker {
  font-size: 11px; letter-spacing: .32em; color: var(--mz-gold);
  text-transform: uppercase; margin-bottom: 10px; opacity: .85;
}
.mz-hero h1 {
  font-family: "Kaiti SC", "KaiTi", "Songti SC", serif;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: .18em;
  line-height: 1.15;
  margin-bottom: 10px;
  background: linear-gradient(120deg, #ffffff 10%, #cfe3ff 55%, var(--mz-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mz-hero p { color: var(--mz-dim); font-size: 13.5px; letter-spacing: .06em; }
.mz-hero-line {
  margin-top: 14px; font-size: 12.5px; color: var(--mz-dim);
  display: flex; align-items: center; gap: 8px;
}
.mz-hero-line::before {
  content: ''; width: 22px; height: 2px; background: var(--mz-gold);
  border-radius: 2px; flex: none;
}

/* ---------- 分栏 ---------- */
.mz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 28px;
  align-items: start;
}
.mz-main { min-width: 0; }
.mz-side { position: sticky; top: 18px; }

/* ---------- 播放器微调 ---------- */
.player { padding: 32px 28px; border-radius: 22px; }
.player-cover {
  width: 176px; height: 176px; font-size: 64px;
  box-shadow: 0 18px 50px rgba(59,130,246,.42), inset 0 0 0 6px rgba(255,255,255,.08);
}
.player-title { font-size: 20px; }
.controls button {
  border-radius: 50%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.controls button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59,130,246,.3); }
.play-btn { box-shadow: 0 8px 26px rgba(59,130,246,.45); }

/* ---------- 区块标题 ---------- */
.section-title {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mz-dim); margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--mz-line);
}

/* ---------- 热门卡片：加收藏按钮 ---------- */
.hot-card { position: relative; border-radius: 14px; overflow: hidden; }
.hot-add {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(6,14,26,.7); color: #dbe8ff;
  font-size: 14px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .15s, background .15s, color .15s;
}
.hot-card:hover .hot-add { opacity: 1; }
.hot-add:hover { background: var(--mz-gold); color: #14100a; border-color: var(--mz-gold); }

/* ---------- 搜索框 ---------- */
.search-box { border-radius: 12px; }
.search-box button { border-radius: 9px; }

/* ---------- 搜索结果：加收藏按钮 ---------- */
.song-item { position: relative; }
.song-add {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(147,197,253,.28); background: transparent;
  color: #cfe0f7; cursor: pointer; font-size: 14px; line-height: 1;
  transition: all .15s;
}
.song-add:hover { background: var(--mz-gold); border-color: var(--mz-gold); color: #14100a; }

/* ---------- 侧栏：歌单面板 ---------- */
.pl-panel {
  background: linear-gradient(180deg, rgba(18,35,58,.92), rgba(10,21,38,.92));
  border: 1px solid var(--mz-line);
  border-radius: 18px;
  padding: 18px 16px 14px;
  box-shadow: 0 18px 46px rgba(2,8,20,.55);
  backdrop-filter: blur(14px);
}
.pl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pl-kind { font-size: 10px; letter-spacing: .3em; color: var(--mz-gold); opacity: .8; }
.pl-title {
  font-family: "Kaiti SC", "KaiTi", serif;
  font-size: 22px; letter-spacing: .14em; color: var(--mz-text); margin-top: 2px;
}
.pl-new {
  border: 1px solid var(--mz-line); background: rgba(147,197,253,.08);
  color: #d9e6fb; border-radius: 999px; padding: 6px 12px;
  font-size: 12px; cursor: pointer; transition: all .15s; font-family: inherit;
}
.pl-new:hover { border-color: var(--mz-gold); color: var(--mz-gold); }

.pl-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 12px; }
.pl-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--mz-line); background: rgba(147,197,253,.06);
  color: #c8d8ee; border-radius: 999px; padding: 5px 11px;
  font-size: 12px; cursor: pointer; transition: all .15s; font-family: inherit;
  max-width: 100%;
}
.pl-chip i {
  font-style: normal; font-size: 10px; color: var(--mz-dim);
  background: rgba(147,197,253,.14); border-radius: 999px; padding: 1px 6px;
}
.pl-chip:hover { border-color: rgba(232,195,122,.55); color: #f0e2c4; }
.pl-chip.on {
  background: rgba(232,195,122,.16); border-color: var(--mz-gold); color: #fbeed2;
}
.pl-chip.on i { color: var(--mz-gold); }

.pl-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 0 11px; border-top: 1px solid var(--mz-line);
  font-size: 12px; color: var(--mz-dim); flex-wrap: wrap;
}
.pl-bar b { color: var(--mz-text); font-weight: 600; }
.pl-tools { display: flex; gap: 6px; }
.pl-tools button {
  border: none; background: transparent; color: var(--mz-dim);
  font-size: 11.5px; cursor: pointer; padding: 2px 4px; font-family: inherit;
  border-bottom: 1px solid transparent;
}
.pl-tools button:hover { color: var(--mz-gold); border-bottom-color: rgba(232,195,122,.5); }

.pl-songs { list-style: none; max-height: 52vh; overflow-y: auto; margin: 0; padding: 0; }
.pl-song {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 6px; border-radius: 9px; cursor: pointer;
  position: relative; transition: background .15s;
}
.pl-song:hover { background: rgba(147,197,253,.09); }
.pl-song.now { background: rgba(232,195,122,.12); }
.pl-song.now::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px; background: var(--mz-gold); border-radius: 2px;
}
.pl-idx { flex: none; width: 16px; font-size: 11px; color: var(--mz-dim); text-align: right; }
.pl-song.now .pl-idx { color: var(--mz-gold); }
.pl-cover {
  flex: none; width: 30px; height: 30px; border-radius: 7px;
  background: rgba(147,197,253,.14); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: #cfe0f7;
}
.pl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pl-meta b {
  font-size: 12.5px; font-weight: 600; color: var(--mz-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-meta em {
  font-style: normal; font-size: 11px; color: var(--mz-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-del {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: transparent; color: #6e8099;
  cursor: pointer; font-size: 12px; line-height: 1; opacity: 0;
  transition: opacity .15s, color .15s, background .15s;
}
.pl-song:hover .pl-del { opacity: 1; }
.pl-del:hover { background: rgba(239,68,68,.18); color: #fca5a5; }

.pl-empty {
  border: 1px dashed var(--mz-line); border-radius: 12px;
  padding: 22px 14px; text-align: center; font-size: 12.5px;
  color: var(--mz-dim); line-height: 1.9;
}
.pl-empty b { color: var(--mz-gold); }

.mz-tip {
  margin-top: 12px; font-size: 11.5px; color: #6f819b; line-height: 1.7;
  text-align: center;
}

/* ---------- 轻提示 ---------- */
#mzToast {
  position: fixed; top: 18px; right: 18px; z-index: 999;
  max-width: 300px; padding: 10px 15px; border-radius: 10px;
  background: rgba(10,21,38,.95); color: #e9f1ff;
  border: 1px solid var(--mz-line); border-left: 3px solid var(--mz-gold);
  font-size: 13px; line-height: 1.5; box-shadow: 0 14px 34px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s, transform .18s;
}
#mzToast.show { opacity: 1; transform: none; }
#mzToast.err { border-left-color: #ef4444; }

/* ---------- 窄屏：堆成一列，歌单挪到播放器后面 ---------- */
@media (max-width: 900px) {
  .mz-layout { grid-template-columns: 1fr; gap: 20px; }
  .mz-side { position: static; order: -1; }
  .pl-songs { max-height: none; }
  .container { padding: 14px 14px 48px; }
  .mz-hero h1 { letter-spacing: .12em; }
}
