/* PEACE MUSIC — Apple Music 深色风格 v3 */
:root {
  --bg: #000;
  --panel: #16181d;
  --bd: rgba(255,255,255,.09);
  --tx: #f5f5f7;
  --tx2: #8d8d93;
  --tx3: #55555c;
  --accent: #fa2d48;
  --accent2: #ff5d78;
  --blue: #0a84ff;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --dock-h: 62px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* ---------- 日语字体适配 ----------
   内置 Noto Sans CJK JP 的假名/日文标点子集(87KB,离线可用)，让假名用真正的
   日文字形渲染，避免"中文字体硬显示假名"的生硬感；中文/英文仍走原字体栈。
   unicode-range 只接管假名与日文标点，不影响中文汉字显示。 */
@font-face {
  font-family: 'PMJP';
  src: url('/music/fonts/pm-kana.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
  unicode-range: U+3041-309F, U+30A0-30FF, U+31F0-31FF, U+FF61-FF9F, U+3000-303F, U+309B-309C;
}
html, body { height: 100%; }
html { background: #000; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font-family: 'PMJP', -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Noto Sans CJK SC", BlinkMacSystemFont, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  overscroll-behavior: none; -webkit-font-smoothing: antialiased;
}
/* 内置字体（服务器本地，离线可用） */
body.font-misans { font-family: 'PMJP', "MiSans VF", -apple-system, "PingFang SC", sans-serif; }
body.font-system { font-family: 'PMJP', -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif; }
button { font-family: inherit; border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* iOS 风格按压反馈：头部/列表/通用按钮轻按回弹（播放控制单独定义） */
.head-btn:active, .ap-circle:active, .np-favbtn:active, .sr-fav:active,
.sec-head.clickable:active, .lib-row:active, .card:active, .stab:active, .mp-btn:active {
  transform: scale(.92); transition: transform .12s cubic-bezier(.3,1.3,.5,1);
}
/* 通用液态玻璃工具类 */
.glass { background: rgba(255,255,255,.1); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 6px 18px rgba(0,0,0,.3); }
[hidden] { display: none !important; }
input { font-family: inherit; }
img { -webkit-user-drag: none; user-select: none; }

/* ---------- 布局 ---------- */
#main { padding: 0 20px calc(var(--dock-h) + var(--safe-b) + 74px); max-width: 640px; margin: 0 auto; background: var(--bg); min-height: 100vh; }
.view { display: none; padding-top: calc(var(--safe-t) + 4px); animation: fadeIn .25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 4px; }
.page-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin: 0; }
.head-btns { display: flex; gap: 12px; }
.head-btn { color: var(--accent); width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.head-btn svg { width: 22px; height: 22px; }
.head-btn.round { background: rgba(255,255,255,.09); border-radius: 50%; width: 36px; height: 36px; color: #d8d8dc; }
.loading { color: var(--tx2); text-align: center; padding: 60px 0; font-size: 15px; }

/* ---------- 区块（主页/新发现） ---------- */
.sec { margin-top: 24px; }
.sec-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.sec-head.clickable { cursor: pointer; transition: opacity .15s; }
.sec-head.clickable:active { opacity: .55; }
.sec-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin: 0; }
.sec-head .sec-chev { color: var(--tx2); display: flex; align-items: center; transition: transform .2s; }
.sec-head.clickable:active .sec-chev { transform: translateX(3px); }
.sec-chev svg { width: 15px; height: 15px; }
.sec-head .sec-more { margin-left: auto; color: var(--tx2); font-size: 13px; }
.hscroll { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 4px 2px 8px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overflow-scrolling: touch; overscroll-behavior-x: contain; }
.hscroll::-webkit-scrollbar { display: none; }
.card { flex: 0 0 auto; width: 132px; cursor: pointer; }
.card .card-art { position: relative; width: 132px; height: 132px; border-radius: 10px; overflow: hidden; background: var(--panel); box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.card .card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .card-art .card-reason { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); padding: 3px 8px; border-radius: 20px; font-size: 10px; color: #fff; }
.card .card-name { margin-top: 8px; font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .card-sub { font-size: 12px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* 歌曲行 */
.song-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.song-row .sr-art { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--panel); flex: 0 0 auto; }
.song-row .sr-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.song-row .sr-meta { flex: 1; min-width: 0; }
.song-row .sr-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-row .sr-sub { font-size: 12.5px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.song-row .sr-fav { color: var(--tx3); padding: 6px; display: flex; align-items: center; }
.song-row .sr-fav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.song-row .sr-fav.on { color: var(--accent); }
.song-row .sr-fav.on svg { fill: currentColor; }
.song-row .sr-art.noplace { display: flex; align-items: center; justify-content: center; color: var(--tx3); background: linear-gradient(145deg,#2b2b34,#191920); }
.sr-note svg { width: 20px; height: 20px; opacity: .55; }
.song-row.playing .sr-name { color: var(--accent); }
.song-row:active { opacity: .6; }
.vip-badge { display: inline-block; font-size: 9px; font-weight: 800; color: #c8a04a; border: 1px solid #c8a04a66; border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
/* 正在播放的跳动均衡器 */
.eqbars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; width: 16px; margin-right: 8px; flex: 0 0 auto; }
.eqbars i { width: 3px; background: var(--accent); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eqbars i:nth-child(2) { animation-delay: .25s; }
.eqbars i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }
/* 队列当前行：均衡器叠加在封面右上角（封面照常显示） */
.sr-art { position: relative; }
.eq-over { position: absolute; right: 2px; bottom: 2px; margin: 0; height: 12px; width: 14px; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); border-radius: 4px; padding: 1px 3px; z-index: 1; }
.eq-over i { background: #fff; }

/* ---------- 资料库 ---------- */
.lib-hero { display: flex; gap: 14px; overflow-x: auto; margin: 8px -20px 0; padding: 0 20px 4px; scrollbar-width: none; }
.lib-hero::-webkit-scrollbar { display: none; }
.lib-hero .lh-item { width: 110px; flex: 0 0 auto; cursor: pointer; }
.lib-hero .lh-art { width: 110px; height: 110px; border-radius: 8px; overflow: hidden; background: var(--panel); box-shadow: 0 4px 12px rgba(0,0,0,.45); }
.lib-hero .lh-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-hero .lh-name { font-size: 12px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tx2); }
.lib-list { margin-top: 18px; border-top: 1px solid var(--bd); }
.lib-row { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--bd); font-size: 18px; font-weight: 600; }
.lib-row:active { opacity: .6; }
.lib-ic { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--tx); }
.lib-ic svg { width: 23px; height: 23px; }
.lib-count { margin-left: auto; color: var(--tx2); font-size: 14px; font-weight: 400; }
.lib-albums { margin-top: 26px; }
.lib-albums .alb-head { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 12px; }
/* 最近添加：用 flex + 百分比宽度（老 WebView 不支持 CSS Grid 时 grid 会塌成单列、封面撑满变超大） */
.album-grid { display: flex; flex-wrap: wrap; gap: 18px 14px; }
.album-card { cursor: pointer; width: calc(50% - 7px); }
.album-card .al-art { width: 100%; height: 0; padding-top: 100%; position: relative; border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 6px 18px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.1); }
.album-card .al-art img { position: absolute; inset: 0; }
.album-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-card .al-name { font-size: 14px; font-weight: 700; margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-card .al-artist { font-size: 12px; color: var(--tx2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 搜索 ---------- */
.search-bar { display: flex; align-items: center; gap: 8px; background: #1c1c1eee; border-radius: 12px; padding: 10px 12px; margin: 6px 0 10px; }
.sb-ic { width: 16px; height: 16px; border: 2px solid var(--tx2); border-radius: 50%; position: relative; }
.sb-ic::after { content: ''; position: absolute; width: 7px; height: 2px; background: var(--tx2); bottom: -2px; right: -5px; transform: rotate(45deg); }
.search-bar input { flex: 1; background: none; border: 0; outline: none; color: var(--tx); font-size: 16px; }
.search-bar input::placeholder { color: var(--tx3); }
/* 隐藏 WebView 对 type=search 自带的蓝色原生清除按钮，统一用自定义灰色 ✕ */
.search-bar input::-webkit-search-cancel-button,
.search-bar input::-webkit-search-decoration,
.search-bar input::-webkit-search-results-button,
.search-bar input::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; display: none; }
.sb-clear { color: var(--tx2); font-size: 15px; padding: 4px; }
.search-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.stab { padding: 6px 14px; border-radius: 16px; background: rgba(255,255,255,.07); color: var(--tx2); font-size: 13px; font-weight: 600; }
.stab.active { background: var(--accent); color: #fff; }

/* ---------- ⋮ 弹出菜单 ---------- */
#moreMenu {
  position: fixed; top: calc(var(--safe-t) + 52px); right: 16px; z-index: 110;
  background: rgba(44,44,50,.92); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-radius: 14px; padding: 6px; min-width: 140px;
  box-shadow: 0 10px 34px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.1);
  animation: mmIn .16s ease;
}
#moreMenu[hidden] { display: none; }
@keyframes mmIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.mm-item { padding: 12px 16px; font-size: 15px; font-weight: 600; border-radius: 9px; cursor: pointer; }
.mm-item:active { background: rgba(255,255,255,.1); }

/* ---------- 迷你播放条 ---------- */
#miniplayer {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock-h) + var(--safe-b) + 10px);
  height: 58px; border-radius: 13px; z-index: 60;
  background: linear-gradient(150deg, rgba(255,255,255,.18), rgba(255,255,255,.05) 45%, rgba(38,38,44,.7)) !important;
  backdrop-filter: blur(34px) saturate(2); -webkit-backdrop-filter: blur(34px) saturate(2);
  border: 1px solid rgba(255,255,255,.2) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.55), inset 0 1px 1px rgba(255,255,255,.3) !important;
  display: flex; align-items: center; gap: 12px; padding: 0 8px 0 8px; overflow: hidden;
}
#miniplayer[hidden] { display: none; }
#miniplayer { animation: mpIn .35s cubic-bezier(.2,.9,.3,1); }
@keyframes mpIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.mp-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(255,255,255,.1); }
#mpBar { height: 100%; width: 0; background: var(--accent); }
.mp-art { width: 42px; height: 42px; border-radius: 8px; overflow: hidden; background: var(--panel); flex: 0 0 auto; }
.mp-art img { width: 100%; height: 100%; object-fit: cover; }
.mp-meta { flex: 1; min-width: 0; }
.mp-name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-artist { font-size: 11.5px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.mp-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #fff; padding: 0; }
.mp-btn svg { width: 24px; height: 24px; }

/* ---------- 液态玻璃 Dock（更窄更圆润） ---------- */
#dock {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-b) + 6px); z-index: 80;
  width: auto; min-width: 0; max-width: calc(100% - 20px); height: var(--dock-h);
  border-radius: 31px; padding: 0 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  backdrop-filter: blur(34px) saturate(1.9); -webkit-backdrop-filter: blur(34px) saturate(1.9);
  box-shadow:
    0 10px 34px rgba(0,0,0,.55),
    inset 0 1px 1px rgba(255,255,255,.38),
    inset 0 -1px 1px rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
}
.dock-inner { display: flex; height: 100%; }
.dock-item {
  width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--tx2); border-radius: 26px; position: relative; transition: color .2s;
}
.dock-item svg { width: 23px; height: 23px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.dock-item span { font-size: 10px; font-weight: 600; letter-spacing: .2px; }
.dock-item.active { color: var(--blue); }
.dock-item.active svg { animation: dockPop .35s cubic-bezier(.3,1.4,.5,1); }
@keyframes dockPop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.dock-item:active svg { transform: scale(.88); transition: transform .12s; }

/* ---------- 全屏播放页（Apple Music 1:1） ---------- */
#nowplaying {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 8px) 22px calc(var(--safe-b) + 10px);
  animation: npIn .3s cubic-bezier(.2,.9,.3,1);
}
#nowplaying[hidden] { display: none; }
@keyframes npIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.np-bg { position: absolute; inset: 0; z-index: -2; background: #1c1c22; }
.np-bg2 { z-index: -1; opacity: 0; transition: opacity 1s ease; background: #1c1c22; }
.np-bg2::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 46%, rgba(0,0,0,.38) 100%);
}
.np-top { display: flex; align-items: center; justify-content: space-between; }
.np-btn { font-size: 22px; width: 44px; height: 44px; color: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; }
.np-btn svg { width: 24px; height: 24px; }
/* 歌词模式头部 */
.np-lyr-head { display: flex; align-items: center; gap: 10px; padding: 4px 0 2px; position: relative; }
.np-lyr-thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.1); flex: 0 0 auto; }
.np-lyr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-lyr-meta { flex: 1; min-width: 0; }
.np-lyr-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-lyr-artist { font-size: 12.5px; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.np-lyr-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.np-lyr-btn.lyr-size { width: 30px; height: 30px; font-size: 12.5px; font-weight: 800; letter-spacing: 0;
  background: rgba(255,255,255,.12); flex: 0 0 auto; }
.np-lyr-btn.lyr-size:active { transform: scale(.9); }
.np-lyr-btn svg { width: 21px; height: 21px; }
.np-lyr-btn.on { color: var(--accent2); }
.np-dots { position: absolute; left: 0; bottom: -22px; display: flex; gap: 8px; }
.np-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.np-dots span.on { background: rgba(255,255,255,.75); }
/* 模式切换：歌词模式下隐藏大封面/歌名区 */
#nowplaying.mode-lyric .np-cover { display: none; }
#nowplaying.mode-lyric .np-meta { display: none; }
#nowplaying.mode-lyric .np-cover-wrap { align-items: stretch; }
.np-cover-wrap { flex: 1; display: flex; align-items: center; justify-content: center; margin: 10px 0 6px; min-height: 0; position: relative; }
.np-cover {
  width: 100%; max-width: min(78vw, 400px); height: 0; padding-top: min(78vw, 400px); position: relative; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.35);
  background: rgba(255,255,255,.08);
  transition: opacity .25s, transform .25s; cursor: pointer; flex: 0 0 auto;
}
.np-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* 无封面占位（音符 SVG mask） */
.np-cover.noplace::after {
  content: '';
  width: 34%; height: 34%;
  background: rgba(255,255,255,.28);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 18.5V6.2l10-2.2v12.2'/><circle fill='black' cx='6.6' cy='18.6' r='2.6'/><circle fill='black' cx='16.6' cy='16.3' r='2.6'/><path fill='none' stroke='black' stroke-width='2' d='M9 18.5V6.2l10-2.2v12.2'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 18.5V6.2l10-2.2v12.2'/><circle fill='black' cx='6.6' cy='18.6' r='2.6'/><circle fill='black' cx='16.6' cy='16.3' r='2.6'/><path fill='none' stroke='black' stroke-width='2' d='M9 18.5V6.2l10-2.2v12.2'/></svg>") center / contain no-repeat;
}
/* 歌词全屏区 */
.np-lyricfs {
  position: relative; flex: 1; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y;
  mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
  cursor: pointer; scrollbar-width: none;
}
.np-lyricfs::-webkit-scrollbar { display: none; }
#nowplaying.mode-lyric .np-lyricfs { position: relative; inset: auto; }
.np-lyricfs-scroll { position: relative; padding: 30vh 4px 58vh; }
/* Apple Music 式模糊渐变大歌词（模糊收敛，逐字高亮） */
.np-lyricfs .lyric-line {
  padding: 8px 4px; font-size: calc(25px * var(--lyr-scale, 1)); font-weight: 800; letter-spacing: -.4px; line-height: 1.32;
  color: rgba(255,255,255,.95);
  filter: blur(2.2px); opacity: .42;
  transform-origin: left center;
  transition: filter .4s ease, opacity .4s ease, transform .4s ease;
  cursor: pointer;
}
.np-lyricfs .lyric-line.current { filter: blur(0); opacity: 1; transform: scale(1.02); }
.np-lyricfs .lyric-line.near1 { filter: blur(1px); opacity: .68; }
.np-lyricfs .lyric-line.near2 { filter: blur(1.6px); opacity: .52; }
.np-lyricfs .lyric-line.near3 { filter: blur(2px); opacity: .42; }
.np-lyricfs .lyric-line.tl { font-size: calc(17px * var(--lyr-scale, 1)); font-weight: 600; padding-top: 0; }
/* 逐字 karaoke */
.np-lyricfs .lyric-line.karaoke .lyr-word { color: rgba(255,255,255,.5); transition: color .12s linear, text-shadow .12s linear; }
.np-lyricfs .lyric-line.karaoke.current .lyr-word.sung { color: #fff; text-shadow: 0 0 14px rgba(255,255,255,.55); }
/* 纯音乐提示：对齐图四——歌词区约 40% 高度处、左对齐、较大字号、清晰可见 */
.np-lyricfs .np-lyrics-empty {
  display: block; text-align: left;
  margin-top: 8vh; padding: 0 4px;
  font-size: calc(26px * var(--lyr-scale, 1)); font-weight: 800; letter-spacing: -.4px;
  color: rgba(255,255,255,.72);
}
/* 歌名 + 收藏 */
.np-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.np-meta-l { flex: 1; min-width: 0; }
.np-name { font-size: 21px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: 15px; color: rgba(255,255,255,.62); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-meta-r { display: flex; gap: 12px; }
.np-favbtn {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s, transform .15s;
}
.np-favbtn:active { transform: scale(.9); }
.np-favbtn svg { width: 20px; height: 20px; }
.np-favbtn.on { color: #fff; background: rgba(255,255,255,.34); }

/* 进度条（可拖动） */
.np-seek { margin-top: 4px; }
.np-track { height: 6px; background: rgba(255,255,255,.18); border-radius: 3px; position: relative; cursor: pointer; touch-action: none; }
.np-track-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,.85); border-radius: 3px; }
.np-thumb { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); transform: translate(-50%,-50%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.np-track.dragging .np-thumb, .np-track:hover .np-thumb { opacity: 1; }
.np-times { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.np-quality-wrap { display: inline-flex; align-items: center; gap: 6px; }
.np-quality { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.85); background: rgba(255,255,255,.18); padding: 3px 12px; border-radius: 10px; letter-spacing: .5px; }
.np-quality:active { background: rgba(255,255,255,.3); }
.np-audio-fmt { display: none; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.85); background: rgba(255,255,255,.18); padding: 3px 12px; border-radius: 10px; letter-spacing: .5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.np-audio-fmt.show { display: inline-block; }

/* 控制按钮（图三：放大、填充空间、减少留白） */
.np-controls { display: flex; align-items: center; justify-content: space-between; gap: 0; padding: 10px 8px 6px; }
.np-controls button { color: #fff; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; transition: transform .12s cubic-bezier(.3,1.5,.5,1); }
.np-controls button svg { width: 36px; height: 36px; }
#npPrev svg, #npNext svg, #qsPrev svg, #qsNext svg { width: 52px; height: 52px; }
#npPlayPause svg, #qsPlayPause svg { width: 76px; height: 76px; }
.np-controls button:active { transform: scale(.84); }
.np-bottom { display: flex; align-items: center; justify-content: space-around; padding-top: 2px; }
.np-bottom button { color: rgba(255,255,255,.78); width: 56px; height: 46px; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.np-bottom button:active { transform: scale(.82); }
.np-bottom svg { width: 26px; height: 26px; }
/* 封面区收紧，避免上下留白过大 */
.np-cover-wrap { margin: 6px 0 4px; }
.np-cover { max-width: min(84vw, 460px); }
.np-name { font-size: 24px; }
.np-artist { font-size: 16px; }
.np-meta { margin-bottom: 4px; }
.np-seek { margin-top: 8px; }
.np-track { height: 7px; }
.np-favbtn { width: 40px; height: 40px; }
.np-favbtn svg { width: 22px; height: 22px; }

/* ---------- 专辑详情页（Apple Music 1:1） ---------- */
#albumPage { display: none; position: fixed; inset: 0; z-index: 5; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 0 calc(var(--dock-h) + var(--safe-b) + 74px);
  background: #171c26; }
#albumPage.active { display: block; animation: apPageIn .32s cubic-bezier(.32,.72,.35,1); }
@keyframes apPageIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
.ap-top { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-t) + 8px) 14px 10px; }
.ap-top-r { display: flex; gap: 14px; }
.ap-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.ap-circle svg { width: 20px; height: 20px; }
.ap-circle.dark { background: rgba(255,255,255,.18); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.ap-scroll { animation: fadeIn .25s; padding: 0 20px; }
.ap-cover { width: min(68vw, 320px); height: 0; padding-top: min(68vw, 320px); position: relative; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.25); box-shadow: 0 18px 52px rgba(0,0,0,.55); margin: 14px auto 0; }
.ap-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-name { font-size: 24px; font-weight: 800; letter-spacing: -.4px; text-align: center; margin: 18px 4px 0; line-height: 1.25; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.ap-artist { font-size: 17px; font-weight: 700; text-align: center; color: rgba(255,255,255,.92); margin-top: 6px; }
.ap-meta { font-size: 12.5px; color: rgba(255,255,255,.62); text-align: center; margin-top: 6px; }
.ap-actions { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 6px; }
.ap-playbtn {
  flex: 1; margin: 0 14px; height: 44px; border-radius: 22px; background: #fff; color: #2a63f6;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 800;
  box-shadow: 0 6px 22px rgba(0,0,0,.28); backdrop-filter: blur(14px);
}
.ap-playbtn svg { width: 17px; height: 17px; }
.ap-playbtn:active { transform: scale(.97); }
.ap-tracks { border-top: 1px solid rgba(255,255,255,.16); margin-top: 10px; }
.ap-track { display: flex; align-items: center; gap: 4px; padding: 12px 2px; border-bottom: 1px solid var(--bd); cursor: pointer; }
.ap-track:active { opacity: .6; }
.ap-track .apt-num { width: 26px; color: var(--tx2); font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.ap-track .apt-meta { flex: 1; min-width: 0; }
.ap-track .apt-name { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.ap-track .apt-name .vip-badge { vertical-align: 1.5px; }
.ap-track .apt-sub { font-size: 12px; color: rgba(255,255,255,.62); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-track .apt-num { color: rgba(255,255,255,.55); }
.ap-track .apt-more { color: rgba(255,255,255,.85); width: 36px; height: 34px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ap-track .apt-more svg { width: 19px; height: 19px; }
.ap-track .apt-more:active { opacity: .55; }
.ap-track.playing .apt-name { color: #fff; }
.ap-track.playing .apt-sub { color: rgba(255,255,255,.8); }
.ap-track.hl .apt-num { color: #fff; }
.ap-track.hl .apt-name { font-weight: 800; }
.ap-foot { padding: 16px 2px 8px; font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.6; }
.ap-more { margin-top: 16px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 14px; }
.ap-more .sec-head h2 { color: #fff; font-size: 20px; }

/* ---------- 列表详情页（个性推荐，与专辑页视觉区分） ---------- */
#listPage { display: none; position: fixed; inset: 0; z-index: 5; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 0 calc(var(--dock-h) + var(--safe-b) + 74px);
  background: linear-gradient(180deg, #2a3044 0%, #1b1f2b 34%, #101219 100%); }
#listPage.active { display: block; animation: apPageIn .32s cubic-bezier(.32,.72,.35,1); }
/* 顶部栏：固定在页面顶部、随页面滚动，不做悬浮玻璃 */
.lp-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: calc(var(--safe-t) + 8px) 14px 10px; }
.lp-top .ap-circle { background: rgba(255,255,255,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); flex: 0 0 auto; }
.lp-top-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.lp-top-pad { width: 40px; flex: 0 0 auto; }
.lp-scroll { animation: fadeIn .25s; padding: 0 20px 20px; }
.lp-hero { padding: 18px 2px 6px; }
.lp-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: rgba(255,255,255,.5); }
.lp-title { font-size: 30px; font-weight: 850; letter-spacing: -.8px; line-height: 1.2; color: #fff; margin: 8px 0 6px; }
.lp-sub { font-size: 13.5px; color: rgba(255,255,255,.62); }
.lp-actions { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; }
.lp-play { flex: 1; height: 44px; border-radius: 22px; background: #fff; color: #2a63f6;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 800;
  box-shadow: 0 6px 22px rgba(0,0,0,.28); }
.lp-play svg { width: 17px; height: 17px; }
.lp-play:active { transform: scale(.97); }
.lp-rows { border-top: 1px solid rgba(255,255,255,.16); }
.lp-row { gap: 10px; padding: 9px 2px; border-bottom: 1px solid rgba(255,255,255,.1); }
.lp-row .lp-num { width: 24px; flex: 0 0 auto; text-align: center; font-size: 14px;
  color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.lp-row .sr-art { width: 52px; height: 52px; }
.lp-row .sr-name { color: #fff; }
.lp-row .sr-sub { color: rgba(255,255,255,.6); }
.lp-row .sr-fav { color: rgba(255,255,255,.7); }
.lp-row.hl .lp-num { color: #fff; }
.lp-row.hl .sr-name { font-weight: 800; }

/* ---------- 导入网易云歌单 ---------- */
.lib-import-row .lib-ic { color: var(--accent); }
.import-panel { padding: 20px 20px 18px; }
.import-head { display: flex; align-items: center; justify-content: space-between; }
.import-head h3 { font-size: 19px; font-weight: 800; }
.import-tip { font-size: 12.5px; color: var(--tx2); margin: 10px 0; line-height: 1.55; }
.import-input { width: 100%; min-height: 64px; resize: none; border-radius: 12px; padding: 12px 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--tx);
  font-size: 14px; line-height: 1.45; outline: none; font-family: inherit; }
.import-input:focus { border-color: rgba(255,255,255,.28); }
.import-row { margin-top: 14px; }
.import-btn { width: 100%; height: 46px; border-radius: 23px; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 800; }
.import-btn:active { transform: scale(.98); }
.import-btn:disabled { opacity: .6; }
.import-status { margin-top: 10px; font-size: 13px; color: var(--accent2); min-height: 18px; }
.import-note { margin-top: 6px; font-size: 11.5px; color: var(--tx3); line-height: 1.5; }
.my-pl { margin-top: 4px; }
.my-pl .card-art { position: relative; }
/* 歌单卡片工具：同步 / 删除 */
.pl-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; z-index: 2; }
.pl-tool { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.pl-tool svg { width: 14px; height: 14px; }
.pl-tool:active { transform: scale(.88); }
.pl-tool.spin svg { animation: plSpin .8s linear infinite; }
@keyframes plSpin { to { transform: rotate(360deg); } }
/* 歌单标题行·同步全部按钮（登录网易云后显示） */
#plSyncAll { float: right; font-size: 12px; font-weight: 700; color: var(--accent, #ff3b5c);
  padding: 3px 10px; border-radius: 12px; background: rgba(255,255,255,.08); cursor: pointer; }
#plSyncAll:active { transform: scale(.94); }
#plSyncAll.spin { animation: plSpin .8s linear infinite; }
.my-pl .pl-badge { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 10px; background: rgba(0,0,0,.5); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 10.5px; font-weight: 700; }

/* ---------- 音质选择弹窗 ---------- */
.quality-panel { padding: 20px 20px 12px; }
.quality-head { display: flex; align-items: center; justify-content: space-between; }
.quality-head h3 { font-size: 19px; font-weight: 800; }
.quality-head-r { display: flex; align-items: center; gap: 14px; }
#qsRefresh { color: rgba(255,255,255,.75); font-size: 14px; font-weight: 600; }
.quality-tip { font-size: 12px; color: var(--tx2); margin: 8px 0 4px; }
.quality-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; border-radius: 12px; margin-top: 6px; cursor: pointer; transition: background .15s; }
.quality-item:active { background: rgba(255,255,255,.06); }
.quality-item.on { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.2); }
.quality-item.on .qi-check { color: #fff; }
.quality-item .qi-name { font-size: 16px; font-weight: 700; }
.quality-item .qi-name .qi-tag { display: inline-block; font-size: 10px; background: #e8c34a; color: #614a00; border-radius: 5px; padding: 1px 6px; margin-left: 8px; font-weight: 700; vertical-align: 2px; }
.quality-item.on .qi-name { color: #fff; }
.quality-item .qi-sub { font-size: 12px; color: var(--tx2); margin-top: 2px; }
.quality-item.on .qi-sub { color: rgba(255,255,255,.75); }
/* 字体选择 */
.font-list { padding: 6px 0 10px; overflow-y: auto; }
.font-item { display: flex; flex-direction: column; gap: 3px; padding: 13px 14px; border-radius: 12px; margin-top: 6px; cursor: pointer; position: relative; transition: background .15s; }
.font-item:active { background: rgba(255,255,255,.06); }
.font-item.on { background: rgba(255,255,255,.14); }
.font-item .fi-name { font-size: 16px; font-weight: 700; }
.font-item .fi-desc { font-size: 12px; color: var(--tx2); }
.font-item .fi-check { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--accent2); font-weight: 800; opacity: 0; }
.font-item.on .fi-check { opacity: 1; }
.quality-item .qi-check { font-size: 18px; color: #fff; opacity: 0; }
.quality-item.on .qi-check { opacity: 1; }
/* 实时探测：本曲不支持的音质档置灰、禁止点击 */
.quality-item.disabled { opacity: .42; cursor: not-allowed; }
.quality-item.disabled .qi-check { display: none; }
.quality-item .qi-sub .qi-unsupported { color: var(--tx3); font-size: 11px; margin-left: 8px; border: 1px solid var(--tx3); border-radius: 4px; padding: 0 5px; }
.quality-foot { display: flex; justify-content: flex-end; padding: 14px 0 4px; }
#qsBack { color: var(--accent2); font-size: 14px; font-weight: 600; padding: 6px 10px; }

/* ---------- 设置页 ---------- */
.settings-panel { padding: 16px 16px calc(var(--safe-b) + 10px); max-height: 88vh; }
.st-scroll { overflow-y: auto; min-height: 30vh; }
.st-sec { font-size: 12px; color: var(--tx2); font-weight: 700; letter-spacing: .5px; margin: 16px 4px 6px; text-transform: uppercase; }
.st-group { background: rgba(255,255,255,.06); border-radius: 14px; overflow: hidden; }
.st-row { display: flex; align-items: center; padding: 12px 14px; min-height: 50px; }
.st-row + .st-row { border-top: 1px solid rgba(255,255,255,.06); }
.st-row:active { background: rgba(255,255,255,.04); }
.st-l { flex: 1; min-width: 0; }
.st-name { font-size: 15px; font-weight: 600; }
.st-sub { font-size: 11.5px; color: var(--tx2); margin-top: 2px; }
.st-val { color: var(--tx2); font-size: 14px; }
.st-toggle { width: 46px; height: 27px; border-radius: 14px; background: rgba(255,255,255,.16); position: relative; transition: background .2s; flex: 0 0 auto; }
.st-toggle.on { background: #30d158; }
.st-toggle .tg-dot { position: absolute; top: 2.5px; left: 2.5px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.st-toggle.on .tg-dot { left: 21.5px; }
.st-ver { text-align: center; font-size: 11px; color: var(--tx3); padding: 22px 0 6px; line-height: 1.7; }

/* ---------- 底部面板 ---------- */
.sheet { position: fixed; inset: 0; z-index: 120; }
.sheet[hidden] { display: none; }
.sheet-mask { position: absolute; inset: 0; background: rgba(0,0,0,.5); animation: fadeIn .25s; transition: opacity .26s ease; }
.sheet.closing .sheet-mask { opacity: 0; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh;
  background: #171920; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(255,255,255,.1);
  border-radius: 24px 24px 0 0; padding: 18px 18px calc(var(--safe-b) + 14px);
  transform: translateY(0); animation: sheetIn .42s cubic-bezier(.28,1.28,.42,1);
  display: flex; flex-direction: column;
  box-shadow: 0 -12px 44px rgba(0,0,0,.6);
}
/* iOS 拖拽条 */
.sheet-panel::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.28);
}
#queueSheet .sheet-panel::before { content: none; }
@keyframes sheetIn { from { transform: translateY(100%); } }
/* iOS 风格滑出：下滑+淡出 */
.sheet.closing .sheet-panel { animation: sheetOut .26s cubic-bezier(.5,0,.8,.4) forwards; }
@keyframes sheetOut { to { transform: translateY(100%); opacity: .6; } }
/* 居中确认弹窗：弹簧缩放 */
#confirmSheet .sheet-panel { top: 50%; bottom: auto; left: 26px; right: 26px; max-height: 60vh;
  border-radius: 26px; transform: none; animation: popIn .4s cubic-bezier(.3,1.35,.45,1); }
#confirmSheet .sheet-panel::before { content: none; }
#confirmSheet.closing .sheet-panel { animation: popOut .22s ease forwards; }
@keyframes popIn { from { transform: scale(.88); opacity: 0; } }
@keyframes popOut { to { transform: scale(.92); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-head h3 { margin: 0; font-size: 19px; font-weight: 800; }
.sheet-close { color: var(--tx2); font-size: 18px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); }
/* 通用确认弹窗 */
.confirm-panel { padding: 22px 20px calc(var(--safe-b) + 18px); }
.confirm-panel h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.confirm-msg { font-size: 13.5px; color: var(--tx2); line-height: 1.6; }
.confirm-actions { display: flex; gap: 10px; margin-top: 18px; }
.confirm-btn { flex: 1; height: 44px; border-radius: 22px; font-size: 15.5px; font-weight: 700;
  background: rgba(255,255,255,.1); color: #fff; }
.confirm-btn.danger { background: var(--accent); }
.confirm-btn:active { transform: scale(.98); }
.cmt-list { overflow-y: auto; flex: 1; min-height: 40vh; }
.cmt-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.cmt-item img { width: 34px; height: 34px; border-radius: 50%; background: var(--panel); flex: 0 0 auto; object-fit: cover; }
.cmt-body { flex: 1; min-width: 0; }
.cmt-user { font-size: 12px; color: var(--tx2); display: flex; gap: 6px; align-items: center; }
.cmt-user .vip-tag { color: #c8a04a; font-size: 10px; border: 1px solid #c8a04a66; border-radius: 3px; padding: 0 3px; }
.cmt-content { font-size: 14.5px; line-height: 1.5; margin-top: 3px; word-break: break-all; }
.cmt-foot { display: flex; gap: 14px; margin-top: 5px; font-size: 11.5px; color: var(--tx3); }
.cmt-like.on { color: var(--accent); }
.cmt-reply-btn { color: var(--tx3); }
.cmt-input-bar { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.cmt-input-bar input { flex: 1; background: rgba(255,255,255,.08); border: 0; border-radius: 18px; padding: 10px 14px; color: var(--tx); font-size: 14px; outline: none; }
.cmt-input-bar button { background: var(--accent); color: #fff; border-radius: 18px; padding: 0 18px; font-weight: 700; font-size: 14px; }

/* 账号面板 */
.acct-section { margin-bottom: 14px; }
.acct-title { font-size: 13px; color: var(--tx2); margin: 10px 0 6px; font-weight: 700; }
.acct-card { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.acct-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--panel); }
.acct-name { font-size: 15px; font-weight: 700; }
.acct-sub { font-size: 12px; color: var(--tx2); margin-top: 2px; }
.acct-btn { margin-left: auto; background: var(--accent); color: #fff; border-radius: 16px; padding: 7px 14px; font-size: 13px; font-weight: 700; }
.acct-btn.gray { background: rgba(255,255,255,.12); color: var(--tx); }
.acct-form { display: flex; flex-direction: column; gap: 10px; }
.acct-form input { background: rgba(255,255,255,.08); border: 0; border-radius: 12px; padding: 12px 14px; color: var(--tx); font-size: 15px; outline: none; }
.acct-form .primary { background: var(--accent); color: #fff; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 800; }
.acct-form .switch { color: var(--tx2); text-align: center; font-size: 12.5px; cursor: pointer; padding: 4px 0; }
.acct-form .switch:active { color: var(--accent); }

/* 二维码面板 */
.qr-panel { align-items: center; text-align: center; }
.qr-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 4px; width: 100%; }
#qrBox { background: #fff; padding: 12px; border-radius: 12px; }
#qrBox img, #qrBox canvas { display: block; }
.qr-tip { color: var(--tx2); font-size: 13px; }
.qr-tip.ok { color: #34c759; font-weight: 700; }
.qr-actions button { background: rgba(255,255,255,.1); color: var(--tx); border-radius: 12px; padding: 9px 18px; font-size: 13px; }

/* Toast */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 26px); transform: translateX(-50%);
  z-index: 300; background: rgba(22,22,26,.82); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  color: #fff; padding: 12px 24px; border-radius: 24px; font-size: 14px; font-weight: 600; max-width: 80vw; text-align: center;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 8px 28px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.14);
  animation: toastIn .34s cubic-bezier(.3,1.3,.45,1);
}
#toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%,14px) scale(.94); } to { opacity: 1; transform: translate(-50%,0) scale(1); } }

/* 详情视图（资料库点击） */
.detail-head { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.detail-head button { color: var(--accent); font-size: 15px; }
.detail-head h2 { font-size: 22px; font-weight: 800; margin: 0; flex: 1; }
.back-btn { display: flex; align-items: center; gap: 2px; color: var(--accent); font-size: 15px; font-weight: 600; }
.back-btn svg { width: 17px; height: 17px; }
.sec-playall { display: inline-flex; align-items: center; gap: 4px; }
.sec-playall svg { width: 14px; height: 14px; }

/* ---------- 新发现 Banner ---------- */
.disc-banner { margin: 8px 0 6px; border-radius: 14px; padding: 24px 20px; background: linear-gradient(135deg, #ff6a3d 0%, #e8323e 55%, #b52bd6 100%); color: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(232,50,62,.35); }
.db-small { font-size: 13px; font-weight: 700; opacity: .85; }
.db-big { font-size: 24px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; }
.db-sub { font-size: 12px; opacity: .8; margin-top: 4px; }
.db-btn { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; background: rgba(0,0,0,.28); padding: 8px 16px; border-radius: 16px; }
.chart-head { justify-content: space-between; }
.sec-playall { font-size: 12px; font-weight: 700; color: var(--accent2); background: none; padding: 4px 10px; margin-left: auto; }

/* ---------- 广播 ---------- */
.radio-card { width: 142px; flex: 0 0 auto; cursor: pointer; scroll-snap-align: start; }
.rc-art { position: relative; width: 142px; height: 142px; border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.rc-art img { width: 100%; height: 100%; object-fit: cover; }
.rc-live { position: absolute; left: 8px; top: 8px; font-size: 10px; background: rgba(255,69,80,.92); color: #fff; padding: 2px 9px; border-radius: 8px; font-weight: 700; }
.rc-name-ovl { position: absolute; left: 10px; right: 10px; bottom: 10px; font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.rc-playicon { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; color: #fff; }
.rc-playicon svg { width: 13px; height: 13px; }
.rc-desc { font-size: 11px; color: var(--tx2); margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 新近内容横滑大卡 */
.rn-card { flex: 0 0 auto; width: calc(100vw - 76px); max-width: 420px; display: flex; align-items: center; gap: 14px; background: none; cursor: pointer; scroll-snap-align: start; position: relative; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.rn-card .rn-art { width: 104px; height: 104px; border-radius: 10px; overflow: hidden; background: var(--panel); flex: 0 0 auto; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.rn-card .rn-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rn-card .rn-name { font-size: 17px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-right: 26px; }
.rn-card .rn-more { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--tx2); width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.rn-card .rn-more svg { width: 18px; height: 18px; }

/* 本地音乐行 */
.local-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.local-row .lr-art { width: 46px; height: 46px; border-radius: 8px; background: linear-gradient(145deg,#2e2e38,#1a1a20); display: flex; align-items: center; justify-content: center; color: var(--tx2); font-size: 18px; flex: 0 0 auto; }

/* ---------- 播放列表面板（全屏 1:1 图一） ---------- */
#queueSheet .sheet-panel.queue-panel {
  top: 0; bottom: 0; left: 0; right: 0; max-height: none; height: 100%;
  border-radius: 0; border-top: 0;
  padding: calc(var(--safe-t) + 12px) 20px calc(var(--safe-b) + 8px);
  background: #1b1e26;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  animation: sheetIn .32s cubic-bezier(.2,.9,.3,1);
}
/* 播放列表顶部这条白线是 ::after 高光带，全屏面板不要 */
#queueSheet .sheet-panel::after { content: none; }
.qs-grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.28); margin: 0 auto 14px; }
.qs-head2 { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.qs-thumb { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; background: var(--panel); flex: 0 0 auto; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.qs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qs-meta { flex: 1; min-width: 0; }
.qs-name { font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-artist { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 三个模式胶囊：液态玻璃 */
.qs-btns { display: flex; gap: 12px; padding: 4px 0 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.qs-btns button { flex: 1; height: 46px; border-radius: 23px; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.8); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .12s; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.qs-btns button svg { width: 22px; height: 22px; }
.qs-btns button.on { background: rgba(255,255,255,.9); color: #111; }
.qs-btns button:active { transform: scale(.94); }
.qs-sec { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 2px 2px; }
.qs-sec #qsSecTitle { font-size: 22px; font-weight: 800; }
.qs-clear { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.6); }
.qs-sec-sub2 { font-size: 12.5px; color: rgba(255,255,255,.45); padding: 2px 2px 8px; }
.qs-list { overflow-y: auto; flex: 1 1 0; min-height: 120px; max-height: 46vh; }
.qs-list .song-row { padding: 9px 0; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.qs-list .sr-art { width: 54px; height: 54px; border-radius: 7px; }
.qs-list .sr-name { font-size: 15.5px; }
.qs-list .sr-sub { font-size: 12.5px; }
.qs-list .song-row.playing .sr-name { color: #fff; }
.qs-drag { width: 30px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); flex: 0 0 auto; }
.qs-drag svg { width: 20px; height: 20px; }
.qs-group-label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .4px; padding: 12px 2px 6px; }
/* 图一底部播放控制区 */
.qs-player { border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; margin-top: 8px; }
.qs-player .np-track { background: rgba(255,255,255,.22); }
.qs-controls { padding: 12px 8px 6px; }
.qs-controls button { width: 64px; height: 64px; }
.qs-bottom { padding-top: 2px; }
.qs-bottom button.on { color: #fff; }
/* ---------- 歌曲操作菜单（图二：iOS 分组列表 + 液态玻璃） ---------- */
#actionSheet .sheet-panel.as-panel {
  padding: 0 14px calc(var(--safe-b) + 12px);
  background: #171920; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.as-head {
  display: flex; align-items: center; gap: 14px; padding: 20px 4px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 10px;
}
.as-art { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: var(--panel); flex: 0 0 auto; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.as-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-meta { flex: 1; min-width: 0; }
.as-name { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-sub { font-size: 13.5px; color: rgba(255,255,255,.62); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-sub2 { font-size: 11.5px; color: rgba(255,255,255,.4); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-list { overflow-y: auto; background: rgba(255,255,255,.07); border-radius: 14px; padding: 2px 0; border: 1px solid rgba(255,255,255,.08); }
.as-item { display: flex; align-items: center; gap: 14px; padding: 11px 14px; font-size: 15px; font-weight: 600; cursor: pointer; color: #fff; }
.as-item + .as-item { border-top: 1px solid rgba(255,255,255,.07); }
.as-item:active { background: rgba(255,255,255,.1); }
.as-item svg { width: 22px; height: 22px; color: rgba(255,255,255,.85); flex: 0 0 auto; }
.as-item svg:last-child { width: 14px; height: 14px; color: rgba(255,255,255,.3); margin-left: auto; }
.as-item.danger, .as-item.danger svg { color: var(--accent2); }

/* ========== v1.7：iOS 液态玻璃规范 + 星星空心/实心 + 歌词页去红 ========== */
/* 星星收藏按钮：未收藏=空心描边，收藏后=实心填充（播放页/歌词页/列表行/播放队列通用） */
.np-favbtn svg path, .np-lyr-btn svg path, .sr-fav svg path, .fb-star svg path, .qs-star svg path {
  fill: none !important;
  stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round;
  transition: fill .18s ease, transform .18s cubic-bezier(.3,1.5,.5,1);
}
.np-favbtn.on svg path, .np-lyr-btn.on svg path, .sr-fav.on svg path, .fb-star.on svg path, .qs-star.on svg path {
  fill: currentColor !important; stroke: none;
}
/* 收藏瞬间的小回弹动画 */
@keyframes starPop { 0% { transform: scale(.6) rotate(-18deg); } 60% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
.np-favbtn.star-anim svg, .np-lyr-btn.star-anim svg, .sr-fav.star-anim svg { animation: starPop .38s cubic-bezier(.3,1.4,.5,1); }
/* 歌词页：星标点亮为白色（不再是红色） */
.np-lyr-btn.on { color: #fff; }
/* 歌词页整体白色基调：字级按钮/更多按钮点亮也用白 */
.np-lyr-head .np-favbtn.on { color: #fff; }
/* 二级菜单：深色实底，避免 Android WebView 上大面积模糊合成穿透/白线 */
.import-panel, .settings-panel, .quality-panel {
  background: #171920; backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid rgba(255,255,255,.08);
}
/* iOS 按压反馈统一：dock 图标 */
#dock .dock-item { transition: transform .18s cubic-bezier(.3,1.4,.5,1), opacity .2s; }
#dock .dock-item:active { transform: scale(.86); }
/* 卡片列表滚动淡入 */
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view .sec { animation: riseIn .34s cubic-bezier(.2,.9,.3,1) both; }
/* 播放页顶部按钮 & 底部行轻按回弹（统一弹簧曲线） */
.np-btn, .np-bottom button, .qs-bottom button { transition: transform .16s cubic-bezier(.3,1.45,.5,1), opacity .2s; }
.np-btn:active, .np-bottom button:active, .qs-bottom button:active { transform: scale(.86); }
/* 歌词行点亮平滑过渡 */
.np-lyricfs .lyric-line { transition: opacity .3s ease, filter .3s ease, transform .3s cubic-bezier(.3,1.2,.4,1); }
/* 音质面板：音源分类标题 */
.qs-src-title { font-size: 12px; font-weight: 700; color: var(--tx2); letter-spacing: .5px; margin: 14px 4px 6px; }

/* ============ 液态玻璃（收敛版）—— 深色实底 + 轻玻璃 ============
   大面积面板不用半透明渐变：Android WebView 下 backdrop-filter 与半透明叠加
   会出现白色高光带(白线)、穿透显示底层、滑动白屏闪屏。这里改为接近不透明的
   深色底 + 轻模糊，只保留玻璃的通透质感，不再穿透。 */
:root {
  --lg-blur: blur(20px) saturate(1.4);
  --lg-border: 1px solid rgba(255,255,255,.12);
  --lg-highlight: inset 0 1px 0 rgba(255,255,255,.10);
  --lg-shadow: 0 14px 46px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.35);
}

/* 底部抽屉 / 二级面板：深色实底，杜绝穿透。
   关键：绝不能设 position（会覆盖 .sheet-panel 的 absolute bottom:0 导致贴顶），
   绝不能用 background !important（会覆盖 JS 动态取色导致全灰蓝）。 */
.sheet-panel, .import-panel, .settings-panel, .quality-panel {
  background: #171920;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
/* 顶部高光带：完全去掉，避免任何白线 */
.sheet-panel::after { content: none; display: none; }

/* 桌面侧边栏：默认（移动端/APK）隐藏，仅在宽屏媒体查询内显示。
   漏掉这条会让 sidebar 在手机上直接堆叠到页面顶部，冲乱整个布局。 */
#sidebar { display: none !important; }

/* Dock：折射描边 + 双高光 */
#dock {
  background: linear-gradient(150deg, rgba(255,255,255,.22), rgba(255,255,255,.07) 42%, rgba(255,255,255,.03)) !important;
  backdrop-filter: blur(40px) saturate(2.1) !important; -webkit-backdrop-filter: blur(40px) saturate(2.1) !important;
  border: var(--lg-border) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.6), var(--lg-highlight) !important;
}
/* 选中项：玻璃胶囊 */
#dock .dock-item.active::before {
  content: ''; position: absolute; inset: 4px 2px; border-radius: 22px;
  background: linear-gradient(150deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.3), 0 3px 10px rgba(0,0,0,.3);
  z-index: -1;
}

/* 通用玻璃工具类强化 */
.glass {
  background: linear-gradient(150deg, rgba(255,255,255,.18), rgba(255,255,255,.05)) !important;
  backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur);
  border: var(--lg-border) !important;
  box-shadow: var(--lg-shadow), var(--lg-highlight) !important;
}

/* 圆形顶栏按钮：玻璃化 */
.head-btn.round, .ap-circle.dark, .lp-top .ap-circle {
  background: linear-gradient(150deg, rgba(255,255,255,.2), rgba(255,255,255,.06)) !important;
  backdrop-filter: blur(18px) saturate(1.8); -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.2) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.32), 0 4px 12px rgba(0,0,0,.28);
}

/* 专辑/歌单卡片：图片顶部微高光 + 底部渐变 */
.card .card-art, .album-card .al-art, .lib-hero .lh-art {
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 6px 18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.16);
}
/* 去掉封面顶部白色高光：浅色封面叠加后会泛白发灰，看起来像"一块白的" */
.card .card-art::after, .album-card .al-art::after { content: none; display: none; }


/* 音质选项：选中项玻璃高亮 */
.quality-item.on {
  background: linear-gradient(150deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.26), 0 3px 12px rgba(0,0,0,.25);
}

/* ============ iOS 全局顺滑动效（v3.0.9）====================
   参照录屏：统一 cubic-bezier(.32,.72,0,1)（iOS 标准 ease-out），无 overshoot。
   只用 transform / opacity，不动 position/padding/background，避免白线串顶。
   核心手感：播放页从点击卡片位置放大浮起，关闭时缩回；其余统一顺滑过渡。 */
:root {
  --ios: cubic-bezier(.32, .72, 0, 1);
  --ios-out: cubic-bezier(.22, .61, .36, 1);
}

/* 播放页：从下方轻微放大浮起（模拟封面卡片放大到全屏），顺滑无回弹 */
#nowplaying { animation: npIOSIn .42s var(--ios) !important; }
@keyframes npIOSIn {
  0%   { transform: translateY(8%) scale(.92); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
/* 关闭播放页：缩回淡出 */
#nowplaying.closing { animation: npIOSOut .3s var(--ios) forwards !important; }
@keyframes npIOSOut {
  0% { transform: none; opacity: 1; }
  100% { transform: translateY(6%) scale(.96); opacity: 0; }
}

/* 封面：随播放页一起从卡片放大感，顺滑 */
.np-cover-wrap { animation: coverIOSIn .5s var(--ios) .04s both; }
@keyframes coverIOSIn {
  0% { transform: scale(.82) translateY(18px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
/* 切歌换封面：柔和淡入微放大（无旋转无过冲） */
.np-cover-wrap.swap { animation: coverIOSSwap .4s var(--ios) !important; }
@keyframes coverIOSSwap {
  0% { transform: scale(.96); opacity: .35; }
  100% { transform: none; opacity: 1; }
}

/* 歌曲信息：顺滑淡入上移 */
.np-meta { animation: metaIOSIn .42s var(--ios) .05s both; }
@keyframes metaIOSIn {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* 控制按钮：按压轻微缩小 + 顺滑回弹（无过冲） */
.np-controls button, .np-bottom button, .mp-btn { transition: transform .22s var(--ios) !important; }
.np-controls button:active { transform: scale(.9) !important; }
.np-bottom button:active { transform: scale(.9) !important; }
.mp-btn:active { transform: scale(.88) !important; }
/* 播放/暂停图标切换：柔和缩放淡入 */
#npPlayPause svg.pop, #mpPlayIcon.pop { animation: iconIOSPop .3s var(--ios) !important; }
@keyframes iconIOSPop {
  0% { transform: scale(.82); opacity: .5; }
  100% { transform: none; opacity: 1; }
}

/* Dock / 卡片 / 视图：统一顺滑（去掉之前的 overshoot） */
.dock-item.active svg { animation: dockIOS .32s var(--ios) !important; }
@keyframes dockIOS {
  0% { transform: scale(.82); }
  100% { transform: scale(1); }
}
.dock-item { transition: transform .2s var(--ios); }
.dock-item:active { transform: scale(.92) !important; }

.card, .album-card, .lib-row { transition: transform .2s var(--ios) !important; }
.card:active, .album-card:active, .lib-row:active { transform: scale(.96) !important; }
/* 卡片入场：顺滑淡入上移，无过冲，轻微错落 */
.hscroll .card { animation: cardIOSIn .38s var(--ios) both; }
.hscroll .card:nth-child(2) { animation-delay: .04s; }
.hscroll .card:nth-child(3) { animation-delay: .08s; }
.hscroll .card:nth-child(4) { animation-delay: .12s; }
.hscroll .card:nth-child(5) { animation-delay: .16s; }
@keyframes cardIOSIn {
  0% { transform: translateY(12px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.view { animation: viewIOSIn .34s var(--ios) !important; }
@keyframes viewIOSIn {
  0% { transform: translateY(8px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* 弹层：iOS 顺滑上滑（去掉之前的过冲） */
.sheet-panel { animation: sheetIOSIn .4s var(--ios) !important; }
@keyframes sheetIOSIn {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

/* 收藏星标点击：柔和脉冲光晕（录屏 #46 那种），无回弹 */
.np-favbtn.bounce, .np-lyr-btn.bounce {
  animation: starGlow .42s var(--ios) !important;
}
@keyframes starGlow {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); }
  60% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* 控制按钮点击的柔和反馈（bounceBtn 触发 pop） */
.np-controls button.pop, .np-bottom button.pop, .mp-btn.pop { animation: btnIOSPop .28s var(--ios) !important; }
@keyframes btnIOSPop {
  0% { transform: scale(.9); }
  100% { transform: scale(1); }
}

/* ============ 浅色模式（v3.0.9）====================
   html.light 时覆盖主题变量 + 关键面板。只改颜色，不动布局。 */
html.light {
  --bg: #f2f2f7;
  --panel: #ffffff;
  --bd: rgba(0,0,0,.09);
  --tx: #1c1c1e;
  --tx2: #6e6e73;
  --tx3: #a8a8ad;
  background: #f2f2f7;
  color: var(--tx);
}
html.light body { background: #f2f2f7; color: var(--tx); }
/* 半透明白叠加 → 半透明黑（面板/输入/按钮/分组） */
html.light .st-group,
html.light .acct-card,
html.light .as-list,
html.light .cmt-input-bar input,
html.light .acct-form input,
html.light .stab,
html.light .head-btn.round,
html.light .sheet-close,
html.light .quality-item:active,
html.light .font-item:active,
html.light .st-row:active { background: rgba(0,0,0,.05); }
html.light .st-row + .st-row,
html.light .as-list { border-color: rgba(0,0,0,.08); }
html.light .st-toggle { background: rgba(0,0,0,.15); }
html.light .st-ver { color: var(--tx3); }
/* 液态玻璃：浅色玻璃（dock-inner 不在此设背景，避免内层椭圆；统一由 1114 行实底段处理） */
html.light .glass { background: rgba(255,255,255,.72) !important; border-color: rgba(0,0,0,.08) !important; }
html.light .dock-item { color: var(--tx2); }
html.light .dock-item.active { color: var(--blue); }
html.light #miniplayer { background: rgba(255,255,255,.86) !important; color: var(--tx); }
/* 播放页文字强制白色（封面取色背景仍是深色） */
#nowplaying, #nowplaying .np-name, #nowplaying .np-artist { color: #fff; }

/* ============ 我的歌单：双列铺满 + 全部歌单二级页（v3.0.9）====================
   之前用 .hscroll 横向滑动，第二张卡片总被右侧裁切、显示不全。
   改为 flex-wrap 双列 wrap 网格（与「最近添加」album-grid 同款），彻底不裁切。 */
.pl-head-clickable { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.pl-head-clickable:active { opacity: .6; }
.pl-all-more { font-size: 13px; font-weight: 600; color: var(--tx2); letter-spacing: 0; }
.pl-grid, .pp-grid { display: flex; flex-wrap: wrap; gap: 18px 14px; }
.my-pl .pl-grid .card, .pp-grid .card { width: calc(50% - 7px); flex: 0 0 calc(50% - 7px); }
.my-pl .pl-grid .card .card-art, .pp-grid .card .card-art {
  width: 100%; height: 0; padding-top: 100%; /* padding-top 撑正方形，兼容旧 WebView */
  position: relative; border-radius: 14px;
}
.my-pl .pl-grid .card .card-art img, .pp-grid .card .card-art img { position: absolute; inset: 0; }
.my-pl .pl-grid .card .card-name, .pp-grid .card .card-name { font-size: 14px; }
/* ===== 全部歌单二级页：全屏大图（v3.0.10）=====
   图二问题：卡片偏小、左右留白大、顶部标题窄。改为贴边双列大图 + 全宽标题。 */
#playlistsPage { padding: 0 12px calc(var(--dock-h) + var(--safe-b) + 40px); }
.pp-scroll { padding-bottom: 20px; }
/* 全屏大图：间距收紧、卡片更宽 */
#playlistsPage .pp-grid { gap: 20px 10px; }
#playlistsPage .pp-grid .card { width: calc(50% - 5px); flex: 0 0 calc(50% - 5px); }
#playlistsPage .pp-grid .card .card-art { border-radius: 16px; }
#playlistsPage .pp-grid .card .card-name { font-size: 15px; font-weight: 700; }
#playlistsPage .pp-grid .card .card-sub { font-size: 12px; }

/* ============ 全部歌单二级页：顶栏全宽（跟随主题）==================== */
#playlistsPage .lp-top { padding: calc(var(--safe-t) + 8px) 8px 16px; gap: 8px; }
#playlistsPage .lp-top-title { color: var(--tx); text-align: left; font-size: 26px; font-weight: 800; flex: 1; }
#playlistsPage .lp-top .ap-circle { background: rgba(127,127,127,.16); color: var(--tx); border: 1px solid var(--bd); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
#playlistsPage .lp-top-pad { color: var(--tx2); font-size: 13px; text-align: right; line-height: 40px; width: auto; min-width: 40px; white-space: nowrap; }

/* ============ 浅色模式补全（v3.0.9）====================
   之前只覆盖了变量和 .st-group，底部面板/设置页/dock 仍是深色实底
   → 深色文字压在深色底上看不清、dock 白玻璃在白底上乱掉。这里统一补齐。 */
/* 底部弹出面板（设置/导入/音质/账户/评论/操作表）：白底深字 */
html.light .sheet-panel,
html.light .import-panel,
html.light .settings-panel,
html.light .quality-panel,
html.light .action-panel,
html.light .account-panel,
html.light .comment-panel,
html.light .as-list { background: #ffffff !important; color: var(--tx); border-color: rgba(0,0,0,.08) !important; box-shadow: 0 -12px 44px rgba(0,0,0,.14) !important; }
/* 面板顶部拖拽条：深灰 */
html.light .sheet-panel::before { background: rgba(0,0,0,.22); }
/* 设置页文字/分组：确保深色可读（覆盖可能被面板白底影响的浅色继承） */
html.light .settings-panel .st-name,
html.light .settings-panel .st-row,
html.light .sheet-panel .st-name,
html.light .sheet-panel .st-row { color: var(--tx); }
html.light .st-group { background: #f2f2f7 !important; }
html.light .st-row + .st-row { border-color: rgba(0,0,0,.07) !important; }
html.light .st-toggle:not(.on) { background: rgba(0,0,0,.18) !important; }
html.light .st-toggle.on { background: #30d158 !important; }
html.light .quality-item.on { background: rgba(0,0,0,.06) !important; border-color: rgba(0,0,0,.1) !important; box-shadow: none !important; }
html.light .quality-item.on .qi-name, html.light .quality-item.on .qi-check { color: var(--tx) !important; }
html.light .quality-item .qi-check { color: var(--tx2); }
html.light .head-btn.round, html.light .ap-circle.dark { background: rgba(0,0,0,.05) !important; color: var(--tx) !important; border-color: rgba(0,0,0,.08) !important; box-shadow: none !important; }
/* 账户 / 评论表单：白底深字 */
html.light .acct-card, html.light .cmt-input-bar input, html.light .acct-form input { background: #f2f2f7 !important; color: var(--tx) !important; }
/* 搜索 tab：浅色下未选中灰底、选中蓝底白字（明确色彩提示） */
html.light .stab { background: #e9e9ee !important; color: #6b6b70 !important; border: 1px solid rgba(0,0,0,.05) !important; }
html.light .stab.active { background: var(--blue) !important; color: #fff !important; border-color: var(--blue) !important; box-shadow: 0 2px 8px rgba(10,132,255,.28) !important; }
html.light .as-item { color: var(--tx); }
/* 搜索框：白底深字 */
html.light .search-bar { background: #ffffff !important; color: var(--tx); border: 1px solid var(--bd); }
html.light .search-bar input { color: var(--tx); }
/* 音质弹层内 song 行文字 */
html.light .qs-list .song-row.playing .sr-name { color: var(--blue) !important; }
/* ============ Dock：浅色（图标色统一在下方纯白实底段处理）==================== */
html.light #dock .dock-item { color: var(--tx2) !important; }
html.light #dock .dock-item.active { color: var(--blue) !important; }
html.light #dock .dock-item svg { filter: none !important; }
html.light .glass { background: rgba(255,255,255,.78) !important; border-color: rgba(0,0,0,.08) !important; box-shadow: 0 8px 30px rgba(0,0,0,.12) !important; }
/* 迷你播放器浅色 */
html.light #miniplayer { background: rgba(255,255,255,.9) !important; color: var(--tx) !important; border-top: 1px solid var(--bd); }
html.light #miniplayer .mp-name, html.light #miniplayer .mp-artist, html.light #miniplayer .mp-btn { color: var(--tx) !important; }

/* 进一步补全：评论/账户/确认面板内的分隔线与次要文字 */
html.light .cmt-item { border-bottom-color: rgba(0,0,0,.07); }
html.light .cmt-input-bar { border-top-color: rgba(0,0,0,.08); }
html.light .confirm-panel { background: #fff !important; color: var(--tx); }
html.light .confirm-btn { background: #f2f2f7 !important; color: var(--tx) !important; }
html.light .confirm-btn.danger { background: var(--accent) !important; color: #fff !important; }
html.light .confirm-msg { color: var(--tx2); }
html.light .sheet-head h3, html.light .confirm-panel h3 { color: var(--tx); }
html.light .as-list .as-item { color: var(--tx); }
html.light .as-list { background: #f2f2f7 !important; border: 1px solid rgba(0,0,0,.07) !important; }
html.light .font-item { color: var(--tx); }
html.light .quality-tip, html.light .import-tip, html.light .import-note { color: var(--tx2); }
html.light .qs-src-title { color: var(--tx2); }
html.light .st-sec { color: var(--tx2); }
html.light .pl-all-more { color: var(--tx2); }
/* 歌单标题：同步按钮 + 全部 N 右对齐 */
.pl-head-r { display: flex; align-items: center; gap: 10px; }
#plSyncAll { float: none; }


/* ============ v3.0.9 补充修复 ============ */
/* 首页 ⋮ 三点菜单：浅色模式白底深字 */
html.light #moreMenu {
  background: rgba(255,255,255,.97) !important;
  border-color: rgba(0,0,0,.09) !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
html.light #moreMenu .mm-item { color: var(--tx) !important; }
html.light #moreMenu .mm-item:active { background: rgba(0,0,0,.06) !important; }

/* 更新下载进度弹窗 */
.update-panel { text-align: center; }
.update-panel .up-icon {
  width: 52px; height: 52px; margin: 2px auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #7C5CFF, #6146e0); color: #fff;
  box-shadow: 0 8px 20px rgba(124,92,255,.4);
}
.update-panel .up-icon svg { width: 26px; height: 26px; }
.update-panel h3 { text-align: center; }
.update-panel .confirm-msg { margin-top: 4px; }
.up-spin {
  width: 30px; height: 30px; margin: 16px auto 0; border-radius: 50%;
  border: 3px solid rgba(124,92,255,.2); border-top-color: #7C5CFF;
  animation: upspin .8s linear infinite;
}
@keyframes upspin { to { transform: rotate(360deg); } }
html.light .update-panel .up-spin { border-color: rgba(124,92,255,.18); border-top-color: #7C5CFF; }


/* ============ v3.0.9 歌单置顶 + dock 长方形修复 ============ */
/* 歌单置顶按钮高亮 + 置顶标签 */
.pl-tool.pinned { color: #ff9f0a !important; }
.card.is-pinned .card-art { box-shadow: inset 0 0 0 2px #ff9f0a; }
.pl-pin-tag {
  position: absolute; left: 6px; top: 6px; z-index: 3;
  background: #ff9f0a; color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
/* ===== 浅色 dock：单层液态玻璃椭圆（v3.0.12）=====
   只给 #dock 一层半透明玻璃 + 毛玻璃模糊；.dock-inner 完全透明，绝不再铺背景，
   .active::before 方块胶囊彻底去掉 —— 保证只有一个椭圆、且有真实液态玻璃质感。 */
html.light #dock {
  background: linear-gradient(150deg, rgba(255,255,255,.78), rgba(255,255,255,.62) 55%, rgba(255,255,255,.5)) !important;
  backdrop-filter: blur(30px) saturate(1.9) !important; -webkit-backdrop-filter: blur(30px) saturate(1.9) !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.16), inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 1px rgba(0,0,0,.04) !important;
  border: 1px solid rgba(255,255,255,.85) !important;
  border-radius: 31px !important;
}
html.light #dock .dock-inner {
  background: transparent !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: 0 !important; box-shadow: none !important;
}
html.light #dock .dock-item.active::before { display: none !important; content: none !important; }
html.light #miniplayer {
  background: linear-gradient(150deg, rgba(255,255,255,.8), rgba(255,255,255,.62)) !important;
  backdrop-filter: blur(28px) saturate(1.8) !important; -webkit-backdrop-filter: blur(28px) saturate(1.8) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.16), inset 0 1px 1px rgba(255,255,255,.9) !important;
  border-color: rgba(255,255,255,.85) !important;
}

/* ==========================================================================
   桌面端横屏适配（v3.0.10）— 宽屏 ≥900px 显示左侧边栏 + 全宽内容 + 横屏播放页
   移动端保持原样（dock + 竖屏播放页），此处全部包在媒体查询内。
   ========================================================================== */
@media (min-width: 900px) {
  :root { --sb-w: 232px; }
  body { background: var(--bg); }

  /* ---------- 左侧边栏 ---------- */
  #sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--sb-w); z-index: 90;
    display: flex !important; flex-direction: column; gap: 2px; padding: 18px 12px 20px;
    background: #101115; border-right: 1px solid rgba(255,255,255,.07);
    overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
  }
  html.light #sidebar { background: #f7f7f9; border-right-color: rgba(0,0,0,.08); }
  .sb-brand { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; letter-spacing: .3px; padding: 4px 10px 16px; color: var(--tx); }
  .sb-brand-ic { color: var(--accent); font-size: 22px; }
  .sb-search { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 12px; border-radius: 9px; background: rgba(255,255,255,.07); color: var(--tx2); font-size: 13.5px; font-weight: 600; text-align: left; }
  .sb-search svg { width: 18px; height: 18px; }
  html.light .sb-search { background: #e9e9ee; }
  .sb-search:hover { background: rgba(255,255,255,.12); }
  .sb-nav { display: flex; flex-direction: column; gap: 2px; }
  .sb-nav-item, .sb-quick-item { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 8px; color: var(--tx2); font-size: 14px; font-weight: 600; text-align: left; transition: background .15s, color .15s; }
  .sb-nav-item svg, .sb-quick-item svg { width: 20px; height: 20px; flex: 0 0 auto; }
  .sb-nav-item:hover, .sb-quick-item:hover { background: rgba(255,255,255,.06); color: var(--tx); }
  html.light .sb-nav-item:hover, html.light .sb-quick-item:hover { background: rgba(0,0,0,.05); }
  .sb-nav-item.active { background: rgba(255,255,255,.1); color: var(--tx); }
  html.light .sb-nav-item.active { background: rgba(0,0,0,.08); }
  .sb-section { font-size: 11px; font-weight: 700; color: var(--tx3); letter-spacing: .8px; text-transform: uppercase; padding: 18px 12px 8px; }
  .sb-quick { display: flex; flex-direction: column; gap: 1px; }
  .sb-quick-item { font-size: 13px; padding: 8px 12px; }
  .sb-playlists { display: flex; flex-direction: column; gap: 1px; }
  .sb-pl-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px; color: var(--tx2); font-size: 12.5px; text-align: left; width: 100%; }
  .sb-pl-item img { width: 30px; height: 30px; border-radius: 5px; object-fit: cover; background: var(--panel); flex: 0 0 auto; }
  .sb-pl-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sb-pl-item:hover { background: rgba(255,255,255,.06); color: var(--tx); }
  html.light .sb-pl-item:hover { background: rgba(0,0,0,.05); }

  /* ---------- 主内容区：让位侧边栏，去掉手机 640 宽度限制 ---------- */
  #main { margin-left: var(--sb-w); max-width: none; padding: 0 40px calc(var(--dock-h) + 110px); }
  .page-head h1 { font-size: 34px; }
  #dock { display: none !important; }
  .hscroll { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  /* 桌面端卡片网格：一行多张 */
  #homeRec .hscroll, #homeRecent .hscroll, #homeFav .hscroll, #homeHot .hscroll { flex-wrap: wrap; overflow: visible; }
  .card { width: 160px !important; flex: 0 0 160px !important; }
  .card .card-art { width: 160px; height: 160px; }

  /* ---------- 桌面迷你播放器：贴底、从侧边栏右侧开始 ---------- */
  #miniplayer {
    left: var(--sb-w); right: 0; bottom: 0; height: 72px; border-radius: 0;
    padding: 0 24px; gap: 16px; background: #18191f !important; border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important; backdrop-filter: none !important;
    box-shadow: none !important;
  }
  html.light #miniplayer { background: #fff !important; border-top-color: rgba(0,0,0,.1) !important; }
  .mp-art { width: 52px; height: 52px; }
  .mp-name { font-size: 14px; }
  .mp-btn svg { width: 22px; height: 22px; }

  /* ==========================================================================
     桌面横屏播放页：左侧封面+信息+控制，右侧大歌词（仿 Apple Music 横屏）
     ========================================================================== */
  #nowplaying {
    display: grid !important;
    grid-template-columns: minmax(340px, 44%) 1fr;
    grid-template-rows: auto 1fr auto auto auto;
    grid-template-areas:
      "nphead nphead"
      "cover  lyric"
      "meta   lyric"
      "seek   lyric"
      "ctrl   lyric";
    column-gap: 44px; row-gap: 0;
    padding: 32px 6vw 40px; left: 0;
    background: linear-gradient(120deg, #1a1520 0%, #0d0d11 60%);
  }
  /* 桌面端 hidden 必须能盖过 display:grid!important，否则播放页永远盖在首页上 */
  #nowplaying[hidden] { display: none !important; }
  #nowplaying .np-top { grid-area: nphead; }
  #nowplaying .np-cover-wrap { grid-area: cover; align-items: flex-start; margin: 8px 0 4px; }
  #nowplaying .np-cover { max-width: min(38vw, 440px); width: 100%; margin: 0 auto; }
  #nowplaying .np-meta { grid-area: meta; }
  #nowplaying .np-seek { grid-area: seek; }
  #nowplaying .np-controls { grid-area: ctrl; justify-content: center; gap: 28px; padding: 14px 0; }
  #nowplaying .np-bottom { display: none; }
  #nowplaying .np-lyr-head { display: none; }
  /* 桌面端歌词常驻右栏：np-lyricfs 是 cover-wrap 的子元素，无法直接进 grid，
     用 absolute 相对 #nowplaying 定位到右半区（覆盖 lyric 列）。 */
  #nowplaying { position: fixed; }
  #nowplaying .np-cover-wrap { position: static; width: 100%; }
  #nowplaying .np-lyricfs {
    display: block !important; position: fixed !important;
    left: 52%; right: 6vw; top: 10vh; bottom: 12vh;
    width: auto; overflow-y: auto; pointer-events: auto; z-index: 2;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 82%, transparent 100%);
  }
  #nowplaying.mode-lyric .np-lyricfs { position: fixed !important; left: 52%; }
  #nowplaying .np-lyricfs-scroll { padding: 16vh 6px 40vh; }
  #nowplaying .np-lyricfs .lyric-line { text-align: left; font-size: calc(26px * var(--lyr-scale,1)); line-height: 1.7; }
  /* 桌面横屏：封面与歌词同屏，禁用"歌词模式"切换（点封面不再隐藏封面） */
  #nowplaying.mode-lyric .np-cover { display: block; }
  #nowplaying.mode-lyric .np-meta { display: flex; }

  /* ==========================================================================
     v3.0.12 桌面端进一步对齐 Apple Music：
     (1) 迷你播放器→顶部控制条；(2) 专辑/歌单封面缩小靠左 + 歌曲表格；
     (3) 最近添加/专辑网格多列小卡；(4) 侧边栏搜索框去边框。
     ========================================================================== */
  /* ---- 顶部控制条（原 miniplayer）---- */
  #miniplayer {
    left: var(--sb-w); right: 0; top: 0; bottom: auto; height: 60px; border-radius: 0;
    padding: 0 28px; gap: 18px; z-index: 95;
    background: rgba(250,250,252,.92) !important; border: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,.09) !important; backdrop-filter: blur(24px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.8) !important; box-shadow: 0 2px 18px rgba(0,0,0,.06) !important;
  }
  html.light #miniplayer { background: rgba(250,250,252,.92) !important; }
  :root.theme-dark #miniplayer, html:not(.light) #miniplayer { background: rgba(28,28,34,.94) !important; border-bottom-color: rgba(255,255,255,.08) !important; }
  #miniplayer .mp-progress { top: 0; bottom: auto; }
  .mp-art { width: 40px; height: 40px; }
  /* 隐藏迷你条上的播放/下一首（移到 mp-controls），避免重复 */
  #miniplayer > #mpPlay, #miniplayer > #mpNext { display: none; }
  .mp-controls { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .mp-controls .mp-btn { width: 38px; height: 38px; color: var(--tx2); }
  .mp-controls .mp-btn:hover { color: var(--tx); }
  .mp-controls .mp-play { color: var(--tx); }
  .mp-controls .mp-mode.on { color: var(--accent); }
  .mp-controls .mp-mode svg { width: 19px; height: 19px; }
  /* 主页内容给顶部控制条让位 */
  #main { padding-top: 60px; }

  /* ---- 侧边栏搜索框：灰底、无边框（Apple Music 风格）---- */
  .sb-search { border: 0 !important; outline: 0 !important; box-shadow: none !important; width: calc(100% - 4px); }
  html.light .sb-search { background: #e8e8ed !important; }

  /* ---- 专辑页 / 歌单详情：封面缩小靠左，信息靠右，列表全宽 ---- */
  #albumPage .ap-scroll, #listPage .lp-scroll { padding: 0 0 40px; }
  #albumPage .ap-cover {
    width: 200px; height: 200px; padding-top: 0; margin: 18px 0 0; float: left;
  }
  #albumPage .ap-name, #albumPage .ap-artist, #albumPage .ap-meta {
    text-align: left; margin-left: 228px; color: var(--tx);
  }
  #albumPage .ap-name { font-size: 30px; margin-top: 26px; margin-left: 228px; }
  #albumPage .ap-artist { font-size: 16px; color: var(--tx2); }
  #albumPage .ap-meta { font-size: 13px; color: var(--tx3); }
  #albumPage .ap-actions { clear: both; margin-left: 0; padding-top: 16px; }
  /* 专辑页背景跟随主题，不再强制深色 */
  #albumPage { background: var(--bg) !important; }
  #listPage { background: var(--bg) !important; }

  /* ---- 最近添加 / 专辑列表：多列小卡网格（一行 5~6 张）---- */
  .album-grid, .pl-grid, .pp-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 20px 16px !important;
  }
  .album-card, .pl-grid .card, .pp-grid .card { width: auto !important; flex: none !important; }
  .album-card .al-art { border-radius: 10px; }
  /* 资料库最近添加大封面也收敛为小卡 */
  #libPage .album-card { width: auto !important; }
  /* 首页横向卡片：桌面一行更多、尺寸更小 */
  .card { width: 150px !important; flex: 0 0 150px !important; }
  .card .card-art { width: 150px; height: 150px; }
}

/* ==========================================================================
   v3.0.13 二级页修复：主题化 + 全屏
   问题：#libPage/#playlistsPage 受 #main 的 max-width:640px 限制不是全屏；
        .lp-title/.lp-kicker/.lp-sub/返回按钮写死白色，浅色模式下白底白字看不清。
   方案：用一组"二级页专用变量"，深色=白字深底玻璃、浅色=深字浅底，统一覆盖。
   ========================================================================== */
:root {
  --sub-bg: linear-gradient(180deg,#2a3044 0%,#1b1f2b 34%,#101219 100%);
  --sub-tx: #fff;
  --sub-tx2: rgba(255,255,255,.62);
  --sub-tx3: rgba(255,255,255,.5);
  --sub-bd: rgba(255,255,255,.16);
  --sub-btn: linear-gradient(150deg, rgba(255,255,255,.2), rgba(255,255,255,.06));
  --sub-btn-bd: rgba(255,255,255,.2);
}
html.light {
  --sub-bg: linear-gradient(180deg,#ffffff 0%,#f2f2f7 100%);
  --sub-tx: #1c1c1e;
  --sub-tx2: #6e6e73;
  --sub-tx3: #8d8d93;
  --sub-bd: rgba(0,0,0,.09);
  --sub-btn: rgba(0,0,0,.05);
  --sub-btn-bd: rgba(0,0,0,.09);
}
/* 资料库二级页 / 全部歌单页：脱离 #main 的 640px 限制，真正全屏 */
#libPage, #playlistsPage {
  position: fixed !important; inset: 0; z-index: 5;
  width: 100%; max-width: none !important; margin: 0 !important;
  padding: 0 20px calc(var(--dock-h) + var(--safe-b) + 74px);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
#playlistsPage { padding: 0 12px calc(var(--dock-h) + var(--safe-b) + 40px); }
/* 二级页背景：跟随主题（深色渐变 / 浅色渐变），恢复沉浸感 */
#libPage, #playlistsPage, #listPage { background: var(--sub-bg) !important; }
/* 标题 / 副标题 / 列表文字：跟随主题，不再写死白色 */
.lp-top-title, .lp-title, .lp-row .sr-name { color: var(--sub-tx) !important; }
.lp-kicker, .lp-sub, .lp-row .sr-sub, .lp-row .sr-fav, .lp-num, .lp-foot { color: var(--sub-tx2) !important; }
.lp-rows, .lp-row { border-color: var(--sub-bd) !important; }
/* 返回按钮：跟随主题（深色白玻璃白箭头 / 浅色灰底深箭头） */
.lp-top .ap-circle {
  background: var(--sub-btn) !important; color: var(--sub-tx) !important;
  border: 1px solid var(--sub-btn-bd) !important;
  box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
/* 全部歌单二级页顶栏：还原其自身设计（左对齐大标题）且跟随主题 */
#playlistsPage .lp-top-title { color: var(--sub-tx) !important; }
#playlistsPage .lp-top-pad { color: var(--sub-tx2) !important; }
