/* 设计参数对齐参考站：中性黑白主题色 + 1180 容器 + 药丸搜索 + 文字型顶部标签 */
:root {
  --bg: #e9eaee;
  --bg2: #dfe0e5;
  --card: #fff;
  --line: #ececef;
  --line2: #e2e3e8;
  --soft: #f6f7fa;
  --txt: #1a1a1a;
  --sub: #888;
  --muted: #999;
  --accent: #1a1a1a;
  --accent-hover: #333;
  --on-accent: #fff;
  --focus: #1a1a1a;
  --ok: #177a3e;
  --danger: #c0392b;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, .06);
  --shadow-tab: 0 2px 6px rgba(0, 0, 0, .08);
}
html[data-theme="dark"] {
  --bg: #141519;
  --bg2: #26272d;
  --card: #1e1f24;
  --line: #2b2d33;
  --line2: #33353c;
  --soft: #26272d;
  --txt: #eaeaec;
  --sub: #9a9aa2;
  --muted: #85858d;
  --accent: #f2f2f4;
  --accent-hover: #fff;
  --on-accent: #17181c;
  --focus: #f2f2f4;
  --ok: #5fd394;
  --danger: #ff6b6b;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, .35);
  --shadow-tab: 0 2px 6px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 124px;
  transition: background .2s, color .2s;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: none; background: none; cursor: pointer; padding: 0; }
svg { display: block; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 头部 ---------- */
header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { max-width: 1180px; margin: 0 auto; padding: 12px 0 8px; display: flex; align-items: center; gap: 14px; }
.logo { font-size: 24px; font-weight: 800; cursor: pointer; white-space: nowrap; letter-spacing: -.5px; }
.search { flex: 1; max-width: 460px; display: flex; align-items: stretch; border-radius: 22px; transition: box-shadow .18s; position: relative; }
.search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.search input { flex: 1; min-width: 0; border: none; outline: none; background: var(--card); border-radius: 22px 0 0 22px; padding: 10px 16px; box-shadow: var(--shadow-tab); }
.search > button { background: var(--accent); color: var(--on-accent); border-radius: 0 22px 22px 0; padding: 0 20px; font-weight: 600; }
.search > button:hover { background: var(--accent-hover); }
.suggest { position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-card); overflow: hidden; z-index: 30; }
.sg { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 12px; color: var(--txt); }
.sg:hover { background: var(--soft); }
.sg .sg-cover { width: 32px; height: 32px; border-radius: 6px; background: var(--bg2) center/cover no-repeat; flex: 0 0 auto; }
.sg .sg-t { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg .sg-s { font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg .sg-kw { flex: 1; font-size: 13px; }
.sg-x { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 15px; line-height: 1;
  color: var(--muted); opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.sg:hover .sg-x { opacity: 1; }
.sg-x:hover { background: var(--bg2); color: var(--danger); }
.sg-hist { padding: 6px 12px; font-size: 11px; color: var(--muted); }
.user-box { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow-tab); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn:hover { background: var(--bg2); }
.src-btn { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 17px; background: var(--card); box-shadow: var(--shadow-tab); font-size: 12px; color: var(--sub); }
.src-btn svg { width: 16px; height: 16px; }
.src-btn:hover { color: var(--txt); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot-ok { background: var(--ok); }
.dot-bad { background: var(--danger); }


/* 搜索栏下方的平台切换行 */
.plat-row { max-width: 1180px; margin: 0 auto; padding: 0 0 10px; display: flex; align-items: center; gap: 12px; }
.plat-tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.plat-tabs::-webkit-scrollbar { display: none; }
.ptab { position: relative; padding: 2px 0 10px; font-size: 15px; color: var(--sub); white-space: nowrap; transition: color .18s; }
.ptab:hover { color: var(--txt); }
.ptab.is-active { color: var(--txt); font-weight: 700; }
.ptab.is-active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 2px; width: 20px; height: 3px; border-radius: 2px; background: var(--accent); }
.ptab .n { font-size: 11px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.plat-count { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- 主体 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 0 0; }
.sec { margin-bottom: 30px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-head h3 { margin: 0; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.sec-head h3::before { content: ""; display: inline-block; width: 4px; height: 18px; background: var(--accent); border-radius: 2px; }
.sec-head .tools { margin-left: auto; display: flex; gap: 8px; }
.btn { background: var(--card); color: var(--txt); border-radius: 16px; padding: 7px 16px; font-size: 13px; box-shadow: var(--shadow-tab); }
.btn:hover { background: var(--bg2); }
.btn.solid { background: var(--accent); color: var(--on-accent); }
.btn.ghost { box-shadow: none; border: 1px solid var(--line2); color: var(--sub); }

/* 每行 6 张，尺寸一致 */
.grid6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { cursor: pointer; transition: transform .18s; min-width: 0; }
.card:hover { transform: translateY(-3px); }
.poster { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg2) center/cover no-repeat; box-shadow: var(--shadow-card); }
.poster .tag { position: absolute; left: 6px; top: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.poster .dur { position: absolute; right: 6px; top: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 10px; }
.poster .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .18s; }
.card:hover .play { opacity: 1; }
.play svg { width: 36px; height: 36px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
.card .name { margin: 9px 0 2px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { color: var(--sub); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 歌曲列表 ---------- */
.list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden; }
.song-row { display: grid; grid-template-columns: 36px 44px minmax(0, 3fr) minmax(0, 2.4fr) 54px 44px; gap: 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.song-row:last-child { border-bottom: none; }
.song-row:hover { background: var(--soft); }
.song-row.is-current { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.song-row .idx { color: var(--muted); font-size: 12px; text-align: center; }
.song-row .thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--bg2) center/cover no-repeat; }
.song-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-artist { color: var(--sub); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-album { color: var(--sub); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-dur { color: var(--muted); font-size: 12px; text-align: right; }
.row-play { justify-self: end; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.row-play svg { width: 13px; height: 13px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; margin-bottom: 96px; padding-bottom: 6px; color: var(--sub); }
.pages { display: flex; gap: 6px; }
.pages button { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 10px; background: var(--card); color: var(--sub); font-size: 13px; box-shadow: var(--shadow-tab); }
.pages button:hover { color: var(--txt) }
.pages button.is-active { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.pages span { padding: 0 4px; color: var(--muted); }
/* 列表区撑满剩余高度，且不被底部播放条挡住 */
#results .list { min-height: 52vh; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: var(--sub); }
.spinner { width: 15px; height: 15px; border: 2px solid var(--line2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { color: var(--muted); text-align: center; padding: 26px 10px; font-size: 13px; }

/* 无封面占位 */
.ph { background: linear-gradient(135deg, var(--bg2), var(--soft)) !important; display: grid; place-items: center; }
.ph i { font-style: normal; font-weight: 700; color: var(--muted); line-height: 1; }
.thumb.ph i { font-size: 15px; }
.poster.ph i { font-size: 34px; opacity: .55; }

/* ---------- 底部播放器 ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center;
  gap: 14px; justify-content: space-between;
  padding: 10px max(18px, calc((100vw - 1180px) / 2)) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 95%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.p-left { display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; }
.p-cover { width: 44px; height: 44px; border-radius: 8px; background: var(--bg2) center/cover no-repeat; flex: 0 0 auto; }
.p-info { min-width: 0; display: flex; flex-direction: column; }
.p-info strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-info span { color: var(--sub); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 10px; background: var(--soft); color: var(--sub); white-space: nowrap; border: 1px solid var(--line); }
.p-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.p-play { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.p-play:hover { background: var(--accent-hover); }
.p-play svg { width: 17px; height: 17px; }
.p-queue { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--sub); background: var(--card); box-shadow: var(--shadow-tab); }
.p-queue:hover { color: var(--txt); background: var(--bg2); }
.p-queue svg { width: 18px; height: 18px; }
.p-queue.is-active { background: var(--accent); color: var(--on-accent); }
/* 音量：hover 图标才展开音量条（全屏播放页使用） */
.vol-wrap { position: relative; display: flex; align-items: center; }
.vol-slider { width: 0; opacity: 0; pointer-events: none; transition: width .22s, opacity .22s; margin-left: 6px; }
.vol-wrap:hover .vol-slider, .vol-wrap.open .vol-slider { width: 84px; opacity: 1; pointer-events: auto; }
input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 4px; outline: none;
  background: linear-gradient(to right, var(--accent) 0 var(--pct, 0%), var(--line2) var(--pct, 0%) 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); cursor: pointer; }

/* ---------- 弹层 ---------- */
.pop { position: fixed; right: max(18px, calc((100vw - 1180px) / 2)); bottom: 92px; z-index: 85; width: 340px; max-width: calc(100vw - 24px);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); overflow: hidden; }
.pop-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.pop-head #popClear { margin-left: auto; }
.pop-close { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; color: var(--sub); font-size: 18px; line-height: 1; }
.pop-close:hover { background: var(--soft); color: var(--txt); }
.pop-body { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px 14px 14px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: none; }
.opt .on { margin-left: auto; color: var(--ok); font-size: 12px; }
.opt-name { font-weight: 600; font-size: 13px; }
.opt.is-off { opacity: .45; cursor: not-allowed; }
.mini { font-size: 11px; padding: 2px 7px; border-radius: 9px; background: var(--soft); border: 1px solid var(--line2); color: var(--sub); white-space: nowrap; }
.mini.lock { color: var(--muted); }
.mini.del { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line2)); cursor: pointer; }
.mini.bad { color: var(--danger); }
.mini.good { color: var(--ok); }

/* ---------- 评论 / 队列 ---------- */
.comment-filter { color: var(--sub); font-size: 12px; margin: 10px 0 6px; }
.comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg2) center/cover no-repeat; flex: 0 0 auto; }
.comment .who { font-size: 12px; color: var(--muted); display: flex; gap: 8px; }
.comment .text { margin: 4px 0; line-height: 1.6; font-size: 13px; }
.comment .liked { font-size: 11px; color: var(--muted); }
.queue-item { display: flex; gap: 10px; align-items: center; padding: 7px; border-radius: 10px; cursor: pointer; }
.queue-item:hover { background: var(--soft); }
.queue-item.is-current { background: var(--soft); }
.queue-item .thumb { width: 34px; height: 34px; border-radius: 7px; background: var(--bg2) center/cover no-repeat; flex: 0 0 auto; }

/* ---------- 全屏播放页 ---------- */
/* 播放详情页固定深色，不跟随外部主题 */
.fs {
  position: fixed; inset: 0; z-index: 70; overflow: hidden;
  --bg: #141519; --bg2: #26272d; --card: #1e1f24; --line: #2b2d33; --line2: #33353c; --soft: #26272d;
  --txt: #eaeaec; --sub: #9a9aa2; --muted: #85858d; --accent: #f2f2f4; --on-accent: #17181c;
  --ok: #5fd394; --danger: #ff6b6b;
  background: #141519; color: #eaeaec;
}
.fs-bg { position: absolute; inset: -80px; background: var(--bg2) center/cover no-repeat; filter: blur(80px) saturate(1.15) brightness(.62); opacity: .5; transform: scale(1.08); }
.fs-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; max-width: 1180px; width: 100%; margin: 0 auto; padding: 14px 22px 18px; }
.fs-top { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; min-height: 40px; }
.fs-top-right { display: flex; gap: 4px; margin-left: auto; }
.fs-icon-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--sub); }
.fs-icon-btn:hover { background: color-mix(in srgb, var(--card) 60%, transparent); color: var(--txt); }
.fs-icon-btn svg { width: 19px; height: 19px; }
.fs-icon-btn.on { color: var(--danger); }
.fs-icon-btn.on svg { fill: currentColor; }

/* 浅色主题下模糊背景会吃掉对比度，压一层半透明底色 */
.fs::before { content: ""; position: absolute; inset: 0; z-index: 0; background: color-mix(in srgb, var(--bg) 68%, transparent); }
/* 播放页文字与控件一律显式跟随主题，不做 hover 变色 */
.fs-song { color: var(--txt); }
.fs-meta, .fs-comment-head { color: var(--sub); }
.comment .text { color: var(--txt); font-size: 13.5px; }
.comment .who { color: var(--sub); }
.comment .liked { color: var(--muted); }
.comment .avatar { box-shadow: 0 0 0 1px var(--line2); }
.comment:hover { background: none; }
.fs-icon-btn { color: color-mix(in srgb, var(--txt) 72%, transparent); }
.fs-icon-btn:hover { background: color-mix(in srgb, var(--txt) 10%, transparent); color: var(--txt); }
.fs-play { background: var(--accent); color: var(--on-accent); }
.fs-bar { color: var(--sub); }
.fs-bar input[type="range"] { background: linear-gradient(to right, var(--txt) 0 var(--pct, 0%), color-mix(in srgb, var(--txt) 18%, transparent) var(--pct, 0%) 100%); }
.fs-bar input[type="range"]::-webkit-slider-thumb { background: var(--txt); }

/* 打开/关闭播放页的过渡动画 */
.fs { opacity: 0; transform: translateY(30px) scale(.985); transition: opacity .34s ease, transform .46s cubic-bezier(.22, .61, .36, 1); }
.fs.open { opacity: 1; transform: none; }
.fs .fs-disc-col, .fs .fs-info-col { opacity: 0; transform: translateY(22px); transition: opacity .4s ease .05s, transform .5s cubic-bezier(.22, .61, .36, 1) .05s; }
.fs.open .fs-disc-col { opacity: 1; transform: none; }
.fs .fs-info-col { transition-delay: .12s; }
.fs.open .fs-info-col { opacity: 1; transform: none; }
.fs .fs-bg { transform: scale(1.14); transition: transform 1.1s ease, filter .3s; }
.fs.open .fs-bg { transform: scale(1.08); }

/* 仅看歌词：隐藏圆盘，歌词占满 */
.fs.lyricon .fs-disc-col { display: none; }
.fs.lyricon .fs-cols { grid-template-columns: minmax(0, 1fr); }
.fs.lyricon .fs-line { text-align: center; }
.fs.lyricon #fsLyricBtn { color: var(--txt); background: color-mix(in srgb, var(--txt) 12%, transparent); }

/* 播放列表抽屉 */
.fs-queue { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 5;
  background: color-mix(in srgb, var(--card) 96%, transparent); backdrop-filter: blur(16px); border-left: 1px solid var(--line);
  box-shadow: -18px 0 46px rgba(0, 0, 0, .28); display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .34s cubic-bezier(.22, .61, .36, 1); }
.fs-queue.show { transform: none; }
.fs-queue-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fs-queue-head strong { font-size: 15px; }
.fs-queue-head span { font-size: 12px; color: var(--muted); }
.fs-queue-clear { margin-left: auto; font-size: 12px; padding: 4px 10px; border-radius: 12px; color: var(--sub); border: 1px solid var(--line2); }
.fs-queue-clear:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line2)); }
.fs-queue-list { flex: 1; overflow-y: auto; padding: 6px 10px 16px; }

.fs-body { flex: 1; min-height: 0; display: flex; }
.fs-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(280px, 40%) minmax(0, 1fr); gap: 30px; align-items: center; }
.fs-disc-col { display: grid; place-items: center; min-width: 0; min-height: 0; }
.disc-wrap { position: relative; width: min(360px, 34vw, 100%); aspect-ratio: 1; }
.disc { position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .028) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 50%, #3a3a3a 0 24%, #1b1b1b 24% 100%); box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .06); display: grid; place-items: center; }
.disc::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); }
.disc::after { content: ""; position: absolute; inset: 17%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .05); }
/* 圆形封面嵌在黑胶里：外圈压纹 + 中心主轴孔 */
.disc-cover { position: absolute; width: 52%; height: 52%; border-radius: 50%; background: #2a2a2a center/cover no-repeat;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .07), 0 0 0 10px rgba(0, 0, 0, .55), 0 0 0 11px rgba(255, 255, 255, .05), 0 10px 28px rgba(0, 0, 0, .55); }
.disc-cover::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9%; height: 9%; transform: translate(-50%, -50%);
  border-radius: 50%; background: #101114; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.disc.spinning { animation: spin 22s linear infinite; }
.needle { position: absolute; left: 50%; top: -8%; width: 7px; height: 44%; border-radius: 4px; background: linear-gradient(var(--bg2), #6d6d75);
  transform-origin: 50% 0; transform: rotate(-16deg); transition: transform .6s ease; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.fs.playing .needle { transform: rotate(8deg); }

.fs-info-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; padding-top: 4vh; }
.fs-song { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-meta { margin: 0 0 14px; color: var(--sub); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex: 0 0 auto; }
.fs-tab { padding: 5px 16px; border-radius: 16px; font-size: 13px; color: var(--sub); background: color-mix(in srgb, var(--card) 45%, transparent); }
.fs-tab.is-active { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.fs-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 14px 8px 30px;
  mask-image: linear-gradient(transparent, #000 6%, #000 92%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 92%, transparent); }
.fs-lyric-head { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
/* 让当前行能停在容器正中 */
#fsPane-lyric { padding: 12px 8px 40%; }
.fs-line { padding: 4px 10px; font-size: 17px; line-height: 1.4; color: color-mix(in srgb, var(--txt) 32%, transparent); border-radius: 10px; cursor: pointer; transition: color .25s, font-size .2s; }
.fs-line:hover { color: color-mix(in srgb, var(--txt) 60%, transparent); }
.fs-line.is-active { color: var(--txt); font-weight: 800; font-size: 21px; }
.fs-comment-head { color: var(--sub); font-size: 12px; margin-bottom: 8px; }
.comment-more { text-align: center; color: var(--muted); font-size: 12px; padding: 14px 0 4px; cursor: pointer; }
.comment-more:hover { color: var(--txt); }
.fs-credit { display: flex; flex-direction: column; gap: 12px; }
.fs-credit .c { display: flex; gap: 12px; font-size: 14px; }
.fs-credit .c b { color: var(--sub); font-weight: 400; min-width: 72px; }

.fs-player { flex: 0 0 auto; padding-top: 10px; transition: opacity .45s, transform .45s; }
.fs-bar { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.fs-bar span { width: 40px; text-align: center; }
.fs-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.fs-ctrl-left { display: flex; gap: 4px; flex: 1; }
.fs-ctrl-mid { display: flex; align-items: center; gap: 14px; }
.fs-ctrl-right { display: flex; gap: 4px; justify-content: flex-end; flex: 1; }
.fs-play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.fs-play svg { width: 19px; height: 19px; }
/* 鼠标移开自动收起控制条 */
.fs.idle .fs-player, .fs.idle .fs-top { opacity: 0; transform: translateY(10px); pointer-events: none; }
.fs.idle { cursor: none; }
.fs.webfull { max-width: none; }

/* ---------- 音源管理弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.modal-box { position: relative; width: min(560px, calc(100vw - 28px)); max-height: 84vh; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.modal-head { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 14px 18px 18px; overflow-y: auto; }
.add-box { margin-top: 18px; border-top: 1px dashed var(--line2); padding-top: 14px; }
.add-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab-btn { padding: 6px 14px; border-radius: 14px; background: var(--soft); color: var(--sub); font-size: 13px; }
.tab-btn.is-active { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.add-form { display: flex; flex-direction: column; gap: 10px; }
.add-form input, .add-form textarea { background: var(--soft); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 12px; outline: none; }
.add-form input:focus, .add-form textarea:focus { border-color: color-mix(in srgb, var(--focus) 45%, var(--line2)); }
.add-form textarea { min-height: 120px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; resize: vertical; }
.file-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--sub); }
.hint { margin: 0; font-size: 12px; color: var(--sub); }
.hint.err { color: var(--danger); }

.toast { position: fixed; left: 50%; bottom: 116px; transform: translateX(-50%); z-index: 90;
  background: var(--txt); color: var(--bg); padding: 9px 18px; border-radius: 20px; font-size: 13px; max-width: 82vw; box-shadow: var(--shadow-card); }
.toast.is-err { background: var(--danger); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .grid6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .disc-wrap { width: min(300px, 40vw); }
}
@media (max-width: 860px) {
  .grid6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fs-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
  .fs-body { overflow-y: auto; }
  .fs-info-col { height: auto; padding-top: 0; }
  .fs-scroll { max-height: 46vh; }
  .disc-wrap { width: min(240px, 56vw); }
  .fs-line { font-size: 15px; }
  .fs-line.is-active { font-size: 18px; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  header { padding: 0 14px; }
  .bar { flex-wrap: wrap; gap: 10px; padding-left: 0; padding-right: 0; }
  .logo { font-size: 20px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 38px; padding: 0 14px; }
  .search > button { height: 38px; padding: 0 16px; font-size: 13px; }
  .user-box { margin-left: auto; }
  .plat-row { padding-left: 0; padding-right: 0; }
  .wrap { padding: 16px 14px 0; }
  .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .song-row { grid-template-columns: 26px minmax(0, 1fr) 50px 34px; }
  .song-row .thumb, .song-row .song-album { display: none; }

  /* 底部播放器：悬浮毛玻璃胶囊（对齐 video_pro 移动端底部导航） */
  .player { left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
    border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    background: color-mix(in srgb, var(--card) 78%, transparent);
    backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
    padding: 9px 14px; }
  html[data-theme="dark"] .player { border-color: rgba(255, 255, 255, .08); }
  .p-cover { width: 40px; height: 40px; border-radius: 10px; }
  .p-actions { gap: 12px; }

  .pop { left: 14px; right: 14px; width: auto; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .fs-inner { padding: 10px 14px 14px; }
  .fs-song { font-size: 20px; }
  .disc-wrap { width: min(200px, 52vw); }
}
