/* ============================================================
   Music2 · 忠实复刻 Apple Music 界面
   （SF 风格字体 · 近黑色底 · 半透明面板 · Apple 红 #ff2d55）
   ============================================================ */
:root {
  --bg: #000;
  --bg-2: #121214;
  --panel: rgba(28, 28, 31, 0.92);      /* 半透明面板/播放条 */
  --panel-2: rgba(255, 255, 255, 0.06);
  --card: rgba(255, 255, 255, 0.05);
  --card-2: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text2: #d1d1d6;
  --text3: #8e8e93;
  --acc: #ff2d55;
  --acc-2: #ff5a75;
  --acc-soft: rgba(255, 45, 85, 0.14);
  --grad: linear-gradient(135deg, var(--acc-2), var(--acc));
  --r: 16px;
  --r-lg: 24px;
  --r-sm: 11px;
  --sbw: 226px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          Segoe UI, system-ui, Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: .1px;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--text3); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 8px; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); }
::selection { background: var(--acc-soft); }

/* ---------- 背景：纯黑，进入"正在播放"时铺一层封面色 ---------- */
.backdrop {
  position: fixed; inset: -40px; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  filter: blur(70px) saturate(1.4); opacity: 0; transition: opacity .8s ease;
}
body.nowplaying .backdrop { opacity: .38; }

.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }

/* ============================================================
   侧边栏（Mac Music 半透明浮起样式）
   ============================================================ */
.sidebar {
  width: var(--sbw); flex: none; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 12px 16px;
  background: rgba(20, 20, 22, .6);
  backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border-right: 1px solid var(--line);
}
.s-brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 14px; }
.s-logo {
  width: 38px; height: 38px; border-radius: 12px; object-fit: cover; flex: none;
  box-shadow: 0 8px 22px rgba(255, 45, 85, .35);
}
.s-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.s-brand-txt b { font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.s-brand-txt small { font-size: 10.5px; color: var(--text3); letter-spacing: .6px; text-transform: uppercase; }

/* 账号占位 */
.s-account {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px; margin: 2px 0 6px; border-radius: var(--r-sm);
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  transition: background .16s;
}
.s-account:hover { background: rgba(255,255,255,.1); }
.sa-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 18px;
}
.sa-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sa-meta b { font-size: 13.5px; font-weight: 600; }
.sa-meta small { font-size: 11px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-arrow { color: var(--text3); font-size: 13px; }

.s-label { font-size: 11px; color: var(--text3); padding: 10px 12px 4px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--text2); font-size: 14px; font-weight: 500;
  transition: all .16s; position: relative;
}
.nav-item i { font-size: 16px; width: 20px; text-align: center; flex: none; }
.nav-item:hover { color: #fff; background: var(--panel-2); }
.nav-item.active { color: var(--text); font-weight: 600; }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 3px; background: var(--acc);
}
.badge {
  margin-left: auto; background: var(--acc-soft); color: var(--acc); font-size: 11px; font-weight: 700;
  min-width: 22px; text-align: center; padding: 1px 6px; border-radius: 999px;
}
.nav-item.active .badge { background: var(--acc); color: #fff; }

.s-mini { flex: 1; margin-top: 8px; }
.mini-card {
  display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: var(--r-sm);
  background: var(--panel-2); border: 1px solid var(--line); margin: 0 4px;
}
.mini-cover { width: 40px; height: 40px; border-radius: 7px; object-fit: cover; flex: none; background: var(--bg-2); }
.mini-m { min-width: 0; flex: 1; }
.mini-m b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-m small { color: var(--text3); font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-play { background: none; border: none; color: var(--text2); font-size: 16px; }
.mini-play:hover { color: var(--acc); }

.s-foot { font-size: 10px; color: var(--text3); text-align: center; padding: 10px 8px 0; letter-spacing: .4px; line-height: 1.7; }

/* ============================================================
   内容区
   ============================================================ */
.content { flex: 1; min-width: 0; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 30px 36px 150px; }

/* ---------- 每页底部 footer：项目名 · 开发者 · 免责声明 ---------- */
.app-footer {
  width: 100%; margin: 0 auto; padding: 26px 36px 40px; color: var(--text3);
  border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(255,255,255,.02));
}
.foot-wrap { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; font-size: 13px; line-height: 1.7; }
.foot-brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.foot-name { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: .2px; }
.foot-brand .foot-en { font-size: 11px; letter-spacing: 1px; color: var(--text3); }
.foot-dev { display: flex; align-items: center; gap: 8px; color: var(--text2); }
.foot-dev i { color: var(--acc); font-size: 15px; }
.foot-dev b { color: var(--text); }
.foot-disc summary {
  width: fit-content; cursor: pointer; list-style: none; color: var(--text2);
  display: flex; align-items: center; gap: 6px; font-weight: 600;
}
.foot-disc summary::-webkit-details-marker { display: none; }
.foot-disc summary i { font-size: 12px; transition: transform .2s; }
.foot-disc[open] summary i { transform: rotate(180deg); }
.foot-disc p { margin-top: 10px; max-width: 72ch; color: var(--text3); }
.foot-disc p b { color: var(--text2); }
.foot-copy { font-size: 12px; color: var(--text3); border-top: 1px dashed var(--line); padding-top: 14px; }

/* 正在播放详情页：隐藏侧边栏正在播放信息 */
body.nowplaying .s-mini { display: none; }

/* ============================================================
   设置 / 关于
   ============================================================ */
.sett, .about { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.sett-card, .about-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.sett-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.sett-title i { color: var(--acc); font-size: 16px; }
.sett-note { color: var(--text3); font-size: 12.5px; }
.sett input[type="text"],
.sett select {
  width: 100%; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 14px; font-size: 13.5px; outline: none;
}
.sett select { cursor: pointer; }
.sett input[type="text"]:focus, .sett select:focus { border-color: var(--acc); }
.sett input[type="color"] { width: 44px; height: 34px; border: 1px solid var(--line); border-radius: var(--r-sm); background: none; cursor: pointer; padding: 2px; }

/* 分段选择 */
.seg { display: flex; gap: 8px; background: var(--panel-2); padding: 4px; border-radius: 999px; width: fit-content; border: 1px solid var(--line); }
.seg button {
  display: flex; align-items: center; gap: 6px; border: none; background: none;
  color: var(--text2); font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; transition: all .16s;
}
.seg button.on { background: var(--text); color: #000; }

/* 背景 + 色板 */
.set-bg-row { display: flex; gap: 8px; }
.set-bg-row input { flex: 1; }
.set-bg-row .text-btn { flex: none; white-space: nowrap; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { border: none; background: none; padding: 0; cursor: pointer; }
.swatches .sw {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); display: block; transition: transform .16s;
}
.swatches .sw.none { background: transparent; border: 2px dashed var(--line-2); position: relative; }
.swatches .sw.none::after { content: ""; position: absolute; inset: 50% 8px; height: 1.5px; background: var(--text3); transform: rotate(-45deg); }
.swatches button:hover .sw { transform: scale(1.1); }
.swatches .sw.on { border-color: var(--text); box-shadow: 0 0 0 3px var(--acc-soft); }
.set-color-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.set-color-row .muted { font-size: 12.5px; }

/* 关于 */
.about-card { align-items: flex-start; }
.about-logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 32px rgba(255,45,85,.3); }
.about-name { font-size: 20px; font-weight: 800; }
.about-en { color: var(--text3); font-size: 13px; line-height: 1.7; }
.about-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  background: var(--panel-2); border: 1px solid var(--line); padding: 9px 14px;
  border-radius: 999px; color: var(--text); font-size: 13px; transition: background .16s;
}
.about-link:hover { background: rgba(255,255,255,.1); }
.about-link i { color: var(--acc); font-size: 16px; }
.about-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; width: 100%; }
.am-row { display: flex; align-items: center; gap: 10px; color: var(--text2); font-size: 14px; }
.am-row i { color: var(--acc); font-size: 15px; }
.am-row b { color: var(--text); font-weight: 700; margin-right: 4px; }
.am-row a { color: var(--acc); }
.about-card.disc p { color: var(--text3); font-size: 13px; line-height: 1.8; }
.about-card.disc a { color: var(--acc); }

/* Hero */
.hero { margin-bottom: 26px; }
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.4px; }
.hero .sub { color: var(--text3); margin: 8px 0 20px; font-size: 13.5px; }
.hero-search { display: flex; gap: 10px; max-width: 560px; align-items: center; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 14px; height: 44px;
  background: var(--panel-2); border-radius: 10px; border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.search-box:focus-within { border-color: var(--line-2); background: rgba(255,255,255,.1); }
.search-box .si { color: var(--text3); font-size: 13px; }
.search-box input {
  flex: 1; border: none; outline: none; background: transparent; color: var(--text); font-size: 14px; height: 100%;
}
.search-box input::placeholder { color: var(--text3); }
.bar-btn {
  height: 44px; padding: 0 18px; border-radius: 10px; border: none; background: var(--panel-2);
  color: var(--text); font-size: 14px; font-weight: 500; transition: all .16s; white-space: nowrap;
}
.bar-btn:hover { background: rgba(255,255,255,.16); }
.bar-btn.accent { background: var(--acc); color: #fff; font-weight: 600; }
.bar-btn.accent:hover { background: var(--acc-2); }

.grid-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 2px 14px; }
.grid-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.grid-head small { color: var(--text3); font-size: 12.5px; }

/* ---------- 顶部 Tab 切换 ---------- */
.tabs {
  display: flex; gap: 6px; margin: 0 0 20px; padding: 4px; width: fit-content;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
}
.tab {
  border: none; background: none; color: var(--text2); font-size: 13.5px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; transition: all .16s;
}
.tab:hover { color: #fff; }
.tab.active { background: var(--text); color: #000; }
.tab-panel { display: none; animation: fadeUp .28s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 大板块：横滑卡片墙 ---------- */
.board { margin-bottom: 30px; }
.h-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 12px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.bcard { flex: none; width: 168px; scroll-snap-align: start; cursor: pointer; }
.bcard-art {
  position: relative; width: 168px; height: 168px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-2); box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.bcard-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.bcard:hover .bcard-art img { transform: scale(1.05); }
.bcard-play {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: var(--acc); color: #fff; font-size: 16px; display: grid; place-items: center;
  transition: transform .16s, background .16s; opacity: 0;
}
.bcard:hover .bcard-play { opacity: 1; }
.bcard-play:hover { background: var(--acc-2); transform: translateY(-2px); }
.bcard-t { margin-top: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard-a { font-size: 12.5px; color: var(--text3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 排行榜榜单 */
.rank-list { gap: 2px; }
.rank-list .song-row { border-radius: 12px; }
.rank-list .rk .idx { font-size: 16px; font-weight: 700; color: var(--num, var(--text3)); font-variant-numeric: tabular-nums; }

/* ---------- Apple Music 歌曲列表 ---------- */
.song-list { display: flex; flex-direction: column; gap: 2px; }
.song-row {
  display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px;
  cursor: pointer; transition: background .14s;
}
.song-row:hover { background: rgba(255,255,255,.08); }
.rk { position: relative; width: 26px; height: 26px; flex: none; display: grid; place-items: center; }
.rk .idx { font-size: 12px; color: var(--num, var(--text3)); font-variant-numeric: tabular-nums; transition: opacity .12s; }
.rk .rowplay {
  position: absolute; inset: 0; border: none; border-radius: 50%; background: var(--acc); color: #fff;
  display: none; place-items: center; font-size: 11px; box-shadow: 0 3px 10px rgba(255,45,85,.4);
}
.song-row:hover .rk .idx { opacity: 0; }
.song-row:hover .rk .rowplay { display: grid; }
.rk .eqf { display: none; align-items: flex-end; gap: 2.5px; height: 14px; }
.song-row.playing .rk .idx, .song-row.playing .rk .rowplay { display: none; }
.song-row.playing .rk .eqf { display: flex; }
.row-art { width: 46px; height: 46px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-2); flex: none; }
.row-mid { flex: 1; min-width: 0; }
.row-mid .rn { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-mid .ra { font-size: 13px; color: var(--text3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-row.playing .row-mid .rn { color: var(--acc); }
.row-fav { background: none; border: none; color: var(--text3); font-size: 15px; padding: 6px; border-radius: 50%; }
.row-fav:hover { color: var(--text); }
.row-fav.on, .row-fav.on:hover { color: var(--acc-2); }

/* 播放等化器（当前播放行） */
.eqf span { width: 3px; border-radius: 1.5px; background: var(--acc); animation: eqb 1s ease-in-out infinite; }
.eqf span:nth-child(1){ height: 40%; animation-delay:.0s }
.eqf span:nth-child(2){ height: 90%; animation-delay:.22s }
.eqf span:nth-child(3){ height: 60%; animation-delay:.44s }
@keyframes eqb { 0%,100%{ transform: scaleY(.5); opacity:.5 } 50%{ transform: scaleY(1); opacity:1 } }

/* ============================================================
   详情页 · 正在播放（Apple Music Now Playing / Live Lyrics）
   ============================================================ */
.d-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text2);
  padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; transition: color .15s, background .15s;
}
.back-btn:hover { color: #fff; background: var(--panel-2); }
.d-source { color: var(--text3); font-size: 12px; }

.detail {
  display: flex; gap: 48px; align-items: center; justify-content: center;
  min-height: calc(100vh - 220px); max-width: 1160px; margin: 0 auto; padding-top: 6px;
}
.d-left { flex: none; width: 320px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.disc { position: relative; width: 320px; height: 320px; border-radius: var(--r-lg); overflow: hidden; }
.disc .plate, .disc .cover-img { position: absolute; inset: 0; }
.disc .cover-img { overflow: hidden; border-radius: var(--r-lg); }
.disc .cover-img::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 45%);
}
.disc .cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.disc .spindle { display: none; }
.disc::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--r-lg);
  box-shadow: 0 40px 90px rgba(255,45,85,.22), inset 0 0 0 1px rgba(255,255,255,.1);
}
.disc .eq { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: none; }
.disc.playing .eq { display: flex; }
.eq { width: 44px; height: 44px; border-radius: 13px; align-items: center; justify-content: center; gap: 3px;
  background: rgba(20,20,22,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.eq span { width: 3px; border-radius: 2px; background: #fff; animation: eqb 1s ease-in-out infinite; }
.eq span:nth-child(1){ height: 30%; animation-delay:.0s }
.eq span:nth-child(2){ height: 90%; animation-delay:.22s }
.eq span:nth-child(3){ height: 55%; animation-delay:.44s }
.eq span:nth-child(4){ height: 100%; animation-delay:.66s }
.eq span:nth-child(5){ height: 40%; animation-delay:.88s }

.d-left h2 { margin-top: 26px; font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.d-left .d-artist { margin-top: 6px; font-size: 15px; color: var(--text2); }

.d-btns { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.d-fav, .dl-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text2);
  font-size: 13.5px; font-weight: 500; transition: all .16s;
}
.d-fav:hover, .dl-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.d-fav.on { border-color: rgba(255,45,85,.5); background: var(--acc-soft); color: var(--acc-2); }
.d-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.ctl {
  background: none; border: none; color: var(--text2); width: 44px; height: 44px; border-radius: 50%;
  font-size: 16px; display: grid; place-items: center; transition: all .15s;
}
.ctl:hover { color: #fff; background: var(--panel-2); transform: scale(1.08); }
.ctl.play { width: 62px; height: 62px; background: var(--acc); color: #fff; font-size: 20px; box-shadow: 0 10px 24px rgba(255,45,85,.4); }
.ctl.play:hover { background: var(--acc-2); transform: scale(1.05); color: #fff; }

.d-right { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.lyric-stage { position: relative; height: 100%; min-height: 480px; display: flex; align-items: center; justify-content: center; }
.lyrics {
  width: 100%; height: 100%; min-height: 480px; max-height: 640px;
  text-align: center; overflow-y: auto; padding: 60px 26px;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 13%, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 13%, #000 84%, transparent);
}
.lyrics::-webkit-scrollbar { width: 0; }
.len-mark { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text3); font-size: 13px; }
.l-line {
  padding: 6px 0; color: var(--text3); font-size: 17px; font-weight: 500; cursor: pointer; line-height: 1.9;
  transition: all .32s ease; opacity: .6;
}
.l-line:hover { opacity: 1; color: var(--text2); }
.l-line.active { color: #fff; font-size: 26px; font-weight: 700; opacity: 1; transform: scale(1.02); }
.l-line.past { opacity: .28; }

/* ============================================================
   搜索结果 / 收藏
   ============================================================ */
.search-results { display: flex; flex-direction: column; gap: 2px; }
.search-row, .fav-row {
  display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px;
  cursor: pointer; transition: background .14s;
}
.search-row:hover, .fav-row:hover { background: rgba(255,255,255,.08); }
.search-row img, .fav-row img { width: 46px; height: 46px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-2); flex: none; }
.sr-m, .fr-m { flex: 1; min-width: 0; }
.sr-t, .fr-m div:first-child { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-row .muted, .fr-m .muted { font-size: 13px; margin-top: 1px; color: var(--text3); }
.icon-btn {
  background: none; border: none; color: var(--text3); width: 34px; height: 34px; font-size: 14px; flex: none;
  border-radius: 50%; display: grid; place-items: center; transition: all .15s;
}
.icon-btn:hover { color: #fff; background: var(--panel-2); }
.icon-btn.sr-open { color: var(--acc); }
.icon-btn.sr-play { color: var(--acc); background: var(--acc-soft); }

/* ============================================================
   底部迷你播放条（Apple Music mini player）
   ============================================================ */
.playerbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 40;
  width: min(var(--maxw), calc(100% - 28px));
  display: grid; grid-template-columns: 1.1fr 2fr 1fr; align-items: center; gap: 8px 18px;
  background: var(--panel);
  backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid var(--line); border-radius: 22px; padding: 12px 18px; box-shadow: var(--shadow);
  transition: bottom .32s ease, opacity .32s ease, border-radius .32s ease, transform .32s ease;
}
.playerbar.hidden { display: none; }
.playerbar.pb-shrink { bottom: -130px; opacity: 0; pointer-events: none; }
/* 正在播放：隐藏侧边栏，让详情页沉浸式居中展示 */
body.nowplaying .sidebar { display: none; }
body.nowplaying .content { padding: 40px 36px 160px; }
.pb-left { display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; }
.pb-cover { width: 46px; height: 46px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-2); flex: none; }
.pb-meta { display: flex; flex-direction: column; min-width: 0; }
.pb-meta span:first-child { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-meta .sub { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-fav { background: none; border: none; color: var(--text3); font-size: 17px; transition: color .15s; padding: 4px; }
.pb-fav i { font-size: 17px; }
.pb-fav:hover { color: var(--text); }
.pb-fav.on, .pb-fav.on:hover { color: var(--acc-2); }

.pb-mid { display: flex; flex-direction: column; gap: 5px; }
.pb-controls { display: flex; align-items: center; justify-content: center; gap: 4px; }
.pb-controls .ctl { width: 40px; height: 40px; font-size: 14px; background: none; }
.pb-controls .ctl i { font-size: 18px; }
.pb-controls .ctl:hover { color: #fff; background: rgba(255,255,255,.1); transform: none; }
.pb-controls .play { width: 44px; height: 44px; background: #fff; color: #000; font-size: 15px; border-radius: 50%; }
.pb-controls .play i { font-size: 20px; }
.pb-controls .play:hover { background: #fff; color: #000; transform: scale(1.06); }
.pb-progress { display: flex; align-items: center; gap: 10px; width: 100%; }
.pb-progress .t { font-size: 11px; color: var(--text3); font-variant-numeric: tabular-nums; width: 34px; text-align: center; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 5px; border-radius: 5px; background: rgba(255,255,255,.18); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.2); transition: transform .12s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
#pbSeek { flex: 1; background: linear-gradient(to right, var(--acc) var(--sp), rgba(255,255,255,.18) var(--sp)); }

.pb-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.pb-order { background: none; border: none; color: var(--text3); font-size: 15px; padding: 7px; transition: color .15s; }
.pb-order i { font-size: 15px; }
.pb-order:hover { color: #fff; }

/* ---------- 空状态 / 文字按钮 / Toast ---------- */
.empty { color: var(--text3); font-size: 14px; padding: 40px 10px; text-align: center; }
.empty.small { padding: 18px 6px; font-size: 13px; }
.empty.block { padding: 60px 10px; }
.r-head { display: flex; justify-content: flex-end; padding: 8px 6px; }
.text-btn { background: none; border: none; color: var(--acc); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; transition: background .15s; }
.text-btn:hover { background: var(--acc-soft); }
.toast {
  position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%); z-index: 90;
  background: rgba(30,30,32,.96); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 13.5px;
  box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 86vw; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.toast.show { opacity: 1; }

/* ---------- 图标微调 ---------- */
.back-btn i { font-size: 15px; }
.icon-btn i { font-size: 15px; }
.fav-row .rk { width: 24px; }
.mini-play { display: grid; place-items: center; }
.mini-play i { font-size: 15px; }
.ctl { display: grid; place-items: center; }

/* 汉堡 */
.hamburger {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 70; width: 42px; height: 42px;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  backdrop-filter: blur(20px); place-items: center; font-size: 17px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .detail { flex-direction: column; gap: 26px; }
  .d-right { width: 100%; }
  .lyrics, .lyric-stage { min-height: 320px; max-height: 380px; }
  .lyrics { padding: 50px 8px; }
}
@media (max-width: 900px) {
  :root { --sbw: 0px; }
  .hamburger { display: grid; }
  .sidebar { position: fixed; left: -280px; z-index: 60; width: 268px; height: 100vh; transition: left .3s ease; box-shadow: var(--shadow); }
  .sidebar.open { left: 0; }
  /* 侧边栏打开时隐藏汉堡按钮 */
  body.sb-open .hamburger { display: none; }
  .content { padding: 74px 16px 150px; }
  .playerbar { grid-template-columns: 1fr; gap: 8px; }
  .pb-right { display: none; }
  .pb-controls { gap: 0; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 24px; }
  .hero-search { flex-wrap: wrap; }
  .hero-search .bar-btn { flex: 1; justify-content: center; }
  .bcard { width: 132px; }
  .bcard-art { width: 132px; height: 132px; }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; }
  .disc { width: 240px; height: 240px; }
  .l-line { font-size: 15px; }
  .l-line.active { font-size: 21px; }
  .detail { min-height: calc(100vh - 180px); }
  /* 移动端底栏常驻+紧凑：不挡视角 */
  .playerbar { bottom: 8px; width: calc(100% - 16px); border-radius: 16px; padding: 8px 12px; }
  .pb-cover { width: 40px; height: 40px; }
  .pb-progress .t { width: 30px; font-size: 10.5px; }
  .pb-meta .sub { display: none; }
  .pb-fav { display: none; }
  .d-btns { margin-top: 14px; }
  .d-btns .dl-btn span { font-size: 12px; }
}