/* ============================================================
   Music2 · 忠实复刻 Apple Music 界面
   （SF 风格字体 · 近黑色底 · 半透明面板 · Apple 红 #ff2d55）
   ============================================================ */
/* 默认字体：直接引用远程 woff2，不落地到本地 */
@font-face {
  font-family: "AppFont";
  src: url("https://cdn.jsdmirror.com/gh/cheymin/1@0.0.1/hEgV60Ov.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
: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: "AppFont", -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;
  color-scheme: dark;   /* 原生表单控件随深色主题 */
}

/* ---------- 浅色主题（跟随系统 / 手动切换） ---------- */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f2f2f7;
  --panel: rgba(250, 250, 252, 0.92);
  --panel-2: rgba(0, 0, 0, 0.04);
  --card: rgba(0, 0, 0, 0.03);
  --card-2: rgba(0, 0, 0, 0.06);
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.16);
  --text: #000000;
  --text2: #3a3a3c;
  --text3: #787880;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  color-scheme: light;   /* 原生表单控件随浅色主题 */
}
:root[data-theme="light"] .sidebar { background: rgba(245, 245, 247, .72); }
:root[data-theme="light"] body { background: #fff; }

* { 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; }
/* 非播放界面：随机图片背景，玻璃模糊（弱化模糊、略微压暗并提高透明，背景图清晰又不抢内容） */
body:not(.nowplaying) .backdrop { opacity: .66; filter: blur(14px) saturate(1.2) brightness(.78); }
:root[data-theme="light"] body:not(.nowplaying) .backdrop { opacity: .56; filter: blur(14px) saturate(1.15) brightness(.82); }

.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; }
/* 正在播放详情页：隐藏页脚（项目名 / 开发者 / 免责声明） */
body.nowplaying .app-footer { display: none; }

/* ============================================================
   设置 / 关于
   ============================================================ */
.sett { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin: 0 auto; }
/* 关于：两块卡片占满整行，左右排布 */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  align-items: stretch; max-width: 880px; margin: 0 auto; margin: 0 auto;
}
.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 input[type="password"],
.sett select,
.sett textarea {
  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; color-scheme: dark; }
.sett select option { background: #1e1e20; color: #f2f2f4; }
:root[data-theme="light"] .sett select { color-scheme: light; }
:root[data-theme="light"] .sett select option { background: #ffffff; color: #1c1c1e; }
.sett input[type="text"]:focus, .sett select:focus, .sett textarea:focus, .sett input[type="password"]:focus { border-color: var(--acc); }
.sett textarea { resize: vertical; line-height: 1.5; min-height: 120px; font-family: inherit; }
.sett input::placeholder, .sett textarea::placeholder { color: var(--text3); opacity: 1; }
.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; flex-wrap: wrap; gap: 8px; background: var(--panel-2); padding: 4px; border-radius: 999px; width: fit-content; max-width: 100%; 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: var(--bg); }

/* 背景 + 色板 */
.set-bg-row { display: flex; gap: 8px; }
.set-bg-row input { flex: 1; }
.set-bg-row .text-btn { flex: none; white-space: nowrap; }
.sett-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sett-label-row .sett-note { margin: 0; }
.btn.small { padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.btn.loading { opacity: .6; pointer-events: none; }
.api-nodes { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.api-node {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 12px; border-radius: 10px; cursor: pointer; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s, background .15s;
}
.api-node:hover { border-color: var(--acc); }
.api-node.active { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.node-name { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-lat { font-size: 11px; color: var(--text2); min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.node-lat.busy { color: var(--acc); }
.node-lat.fast { color: #37c863; }
.node-lat.mid { color: #e6a23c; }
.node-lat.slow { color: #e0665c; }
.node-lat.down { color: #f05656; }
.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; }

/* ---------- 登录/注册弹层 ---------- */
.auth-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.auth-card label { font-size: 12px; color: var(--text3); margin: 12px 0 6px; display: block; }
.auth-card input {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 14px; outline: none; transition: border .15s;
}
.auth-card input:focus { border-color: var(--acc); }
.auth-tabs { display: flex; gap: 6px; background: var(--panel-2); padding: 4px; border-radius: 10px; margin-bottom: 6px; }
.auth-tab { flex: 1; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text2); font-size: 14px; }
.auth-tab.on { background: var(--text); color: var(--bg); font-weight: 600; }
.auth-hint { font-size: 12px; margin-top: 10px; }
.auth-min { font-size: 12px; margin-top: 5px; }
.auth-cap-title { font-size: 13px; color: var(--text2); margin: 16px 0 10px; font-weight: 500; }
/* Cap 人机验证组件在登录/注册弹层内的深浅色适配 */
.auth-card #capHolder { display: flex; justify-content: center; }
.auth-card cap-widget {
  --cap-background: var(--card);
  --cap-border-color: var(--line-2);
  --cap-border-radius: 11px;
  --cap-color: var(--text);
  --cap-checkbox-background: var(--card-2);
  --cap-checkbox-border: 1px solid var(--line-2);
  --cap-checkbox-border-radius: 6px;
  --cap-spinner-color: var(--acc);
  --cap-spinner-background-color: var(--card-2);
  --cap-font: var(--font);
}
.acct-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.acct-head .sa-avatar.big { width: 52px; height: 52px; font-size: 22px; }
.acct-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acct-meta b { font-size: 16px; }
.acct-meta small { color: var(--text3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--acc); border: 1px solid var(--acc); padding: 3px 7px; border-radius: 999px; }
.btn.danger { background: rgba(255, 45, 85, .14); color: #ff5a75; border: 1px solid rgba(255, 45, 85, .3); }
.btn.danger:hover { background: var(--acc); color: #fff; }
.s-account.authed .sa-avatar { background: var(--acc); }
.s-account.authed .sa-meta small { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 歌单多选（删除 / 下载） ---------- */
.pl-sel {
  display: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2);
  place-items: center; margin-right: 6px; flex: none; font-size: 13px; color: #fff;
}
#plTracks.multi .fav-row { cursor: pointer; }
#plTracks.multi .pl-sel { display: grid; }
#plTracks.multi .fav-row:hover { background: var(--card-2); }
#plTracks.multi .fav-row.on { background: var(--acc-soft); }
#plTracks.multi .fav-row.on .pl-sel { background: var(--acc); border-color: var(--acc); }
#plTracks.multi .fav-row.on .fr-del { display: none; }
.pl-multi {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 40;
  display: none; align-items: center; gap: 16px; padding: 10px 18px; white-space: nowrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--shadow);
}
.pl-multi.show { display: flex; }
.pl-multi .text-btn { font-size: 13px; }
.pl-actions { display: flex; gap: 10px; }

/* ---------- 快捷键 / 导入 ---------- */
ul.keys { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
ul.keys li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); }
ul.keys li span { flex: 1; }
kbd {
  display: inline-block; min-width: 22px; text-align: center; padding: 2px 7px; font-size: 12px;
  color: var(--text2); background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; font-family: inherit;
}
.imp-detect { min-height: 18px; font-size: 12px; margin-top: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 1s linear infinite; }
.pl-actions .bar-btn + .bar-btn { margin-left: 0; }
#plMulti { transition: background .15s, color .15s; }
#plMulti.on { background: var(--acc); color: #fff; border-color: transparent; }

/* 开关行（沉浸模式） */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 14px; color: var(--text2); padding: 4px 0; }
.switch-row input { display: none; }
.switch {
  position: relative; width: 46px; height: 27px; border-radius: 999px; background: var(--line-2);
  flex: none; transition: background .2s;
}
.switch .knob {
  position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); transition: transform .2s; font-style: normal;
}
.switch input:checked + .knob { transform: translateX(19px); }
.switch:has(input:checked) { background: var(--acc); }

/* 关于 */
.about-card { align-items: flex-start; }
.about-card.risk { display: flex; flex-direction: column; }
.about-card.risk p { color: var(--text3); font-size: 13px; line-height: 1.8; }
.about-card.risk a { color: var(--acc); }
.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.risk p { color: var(--text3); font-size: 13px; line-height: 1.8; }
.about-card.risk 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; }
/* ---------- 首页小组件：时钟/日期 + 随机一言 ---------- */
.home-hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 28px 4px 8px;
  margin-bottom: 8px;
}
.home-clock { flex-shrink: 0; }
.home-clock h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.home-clock .sub {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .5px;
  color: var(--text3);
}
.home-quote {
  flex: 1;
  max-width: 420px;
  cursor: pointer;
  user-select: none;
  padding: 12px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,45,85,.08) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(255,45,85,.18);
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.home-quote::before {
  content: "❝ ";
  color: var(--acc);
  font-weight: 800;
  font-size: 18px;
  vertical-align: -2px;
}
.home-quote::after {
  content: " ❞";
  color: var(--acc);
  font-weight: 800;
  font-size: 18px;
  vertical-align: -4px;
}
.home-quote:hover {
  background: linear-gradient(135deg, rgba(255,45,85,.14) 0%, rgba(255,255,255,.05) 100%);
  transform: translateY(-2px);
  border-color: rgba(255,45,85,.32);
  box-shadow: 0 8px 24px rgba(255,45,85,.12);
}
.home-quote::before, .home-quote::after {
  display: inline;
}
/* ---------- 榜单详情页返回 ---------- */
.board .hero { margin-bottom: 10px; }
.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; }

/* 站长歌单：横滑卡片栏 */
.station { position: relative; }
.station-more { position: absolute; top: 6px; right: 2px; color: var(--acc); font-size: 13px; font-weight: 600; text-decoration: none; opacity: .85; }
.station-more:hover { opacity: 1; }
.station-shelf { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.station-shelf::-webkit-scrollbar { height: 6px; }
.station-shelf::-webkit-scrollbar-thumb { background: var(--text3); border-radius: 6px; }
.s-card { flex: 0 0 128px; width: 128px; cursor: pointer; scroll-snap-align: start; user-select: none; }
.s-card:hover .s-play { opacity: 1; }
.s-art-wrap { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--panel2); margin-bottom: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.s-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-play { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; opacity: 0; transition: opacity .18s; }
.sn { font-size: 13.5px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 顶部 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: var(--bg); }
.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 img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .45s ease; }
.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);
}

/* ---------- QQ音乐式磁片机（黑胶唱片）播放样式 ---------- */
.turntable { position: relative; width: 320px; height: 320px; }
/* 底座转盘：哑光金属感，外圈一圈高光环 */
.tt-platter {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.07), transparent 52%),
    radial-gradient(circle at 50% 50%, #313137, #1a1a1e 58%, #0e0e11);
  box-shadow:
    0 36px 72px rgba(0,0,0,.62),
    inset 0 0 0 6px rgba(0,0,0,.35),
    inset 0 0 0 7px rgba(255,255,255,.05),
    inset 0 0 26px rgba(0,0,0,.7);
}
/* 黑胶唱片：哑光黑 + 随盘转动的镜面高光 + 顶部外缘光泽（不再用条纹靶盘）。
   旋转角度由 app.js 的 syncDiscSpin() 逐帧驱动（JS 累加角度），
   这样暂停/停止时能就近归位并「平滑转回原处」，而不是硬停在任意角度。 */
.tt-vinyl {
  position: absolute; inset: 16px; border-radius: 50%; overflow: hidden;
  transform: rotate(0deg); will-change: transform;
  background:
    radial-gradient(120% 58% at 50% -14%, rgba(255,255,255,.10), rgba(255,255,255,.02) 46%, transparent 60%),
    conic-gradient(from 205deg at 50% 50%,
      rgba(255,255,255,0) 0deg,
      rgba(255,255,255,.055) 26deg,
      rgba(255,255,255,.02) 62deg,
      rgba(255,255,255,0) 130deg),
    radial-gradient(circle at 50% 45%, #232327 0%, #151518 46%, #0b0b0e 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 0 0 3px rgba(0,0,0,.85),
    inset 0 0 34px rgba(0,0,0,.92),
    inset 0 0 6px rgba(0,0,0,.9);
}
/* 唱片细微纹路（很淡，紧致，才有真实黑胶质感） */
.tt-grooves {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.03) 0 1px, transparent 1px 2.4px);
}
/* 唱片中贴：纸感标签 → 大幅封面（占比约 60%） */
.tt-label {
  position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; z-index: 2;
  transform: translate(-50%, -50%); border-radius: 50%; padding: 5px;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(0,0,0,.04) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 40%, #fff, #e8e4da 70%, #d8d2c4);
  box-shadow:
    0 8px 22px rgba(0,0,0,.7),
    inset 0 0 0 2px rgba(255,255,255,.9),
    inset 0 0 0 3px rgba(0,0,0,.12);
}
.tt-label img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
  transition: opacity .45s ease;
}
/* 中心轴孔 */
.tt-label::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 9px; height: 9px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a3a40, #0a0a0c);
  box-shadow: 0 0 4px rgba(0,0,0,.8), inset 0 0 2px rgba(255,255,255,.25);
}
/* 唱臂（网易云式唱针：细金属臂，顶部枢轴，播放时落盘） */
.tt-arm {
  position: absolute; top: 0; right: 44px; z-index: 6;
  width: 6px; height: 148px; border-radius: 4px;
  background: linear-gradient(90deg, #8f8f97 0%, #e8e8f0 40%, #73737b 72%, #a9a9b1 100%);
  transform-origin: 50% 0; transform: rotate(-36deg);
  transition: transform .85s cubic-bezier(.34,1.25,.4,1);
  box-shadow: 0 3px 6px rgba(0,0,0,.45);
}
/* 枢轴（轴心螺丝） */
.tt-arm::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 21px; height: 21px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #5a5a62, #1c1c20 58%, #0d0d10);
  box-shadow: 0 4px 8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 3px rgba(0,0,0,.8);
}
/* 唱头（落盘端，唱片头） */
.tt-arm::after {
  content: ""; position: absolute; bottom: -9px; left: 50%;
  transform: translateX(-50%) rotate(10deg);
  width: 18px; height: 23px; border-radius: 5px 5px 8px 8px;
  background: linear-gradient(160deg, #f4f4f8, #b9b9c2 55%, #83838c);
  box-shadow: 0 3px 6px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.35);
}
/* 针尖 */
.tt-arm-head {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, #d2d2da, #64646c);
  box-shadow: 0 1px 2px rgba(0,0,0,.6);
}
/* 播放时：唱针落盘（唱片的旋转由 app.js 逐帧驱动，这里不再用 CSS animation） */
.turntable.playing .tt-arm { transform: rotate(22deg); }
@keyframes spin { to { transform: rotate(360deg); } }


.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: rgba(20, 20, 24, 0.42);
  backdrop-filter: blur(48px) saturate(1.9); -webkit-backdrop-filter: blur(48px) saturate(1.9);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 22px; padding: 12px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: bottom .32s ease, opacity .32s ease, border-radius .32s ease, transform .32s ease;
}
.playerbar.hidden { display: none; }
/* 底栏隐藏模式切换按钮 */
.bar-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--text2); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .18s; box-shadow: 0 4px 14px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
.bar-toggle:hover { background: var(--card-2); color: #fff; }
@media (max-width: 620px) {
  .bar-toggle { right: 12px; bottom: 12px; width: 36px; height: 36px; font-size: 12px; }
}
.playerbar.pb-shrink { bottom: -130px; opacity: 0; pointer-events: none; }
/* 正在播放：隐藏侧边栏，让详情页沉浸式居中展示 */
body.nowplaying .sidebar { display: none; }
body.nowplaying .content { padding: 40px 36px 160px; }

/* ---------- 沉浸模式（设置-沉浸模式开启） ---------- */
body.nowplaying.immersive .d-btns { display: none; }
body.nowplaying.immersive .back-btn {
  opacity: 0; pointer-events: none;
  position: fixed; left: 16px; top: 14px; z-index: 45;
  background: var(--panel); border: 1px solid var(--line); color: var(--text2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: opacity .22s ease;
}
body.nowplaying.immersive .back-btn.viewable { opacity: 1; pointer-events: auto; }
body.nowplaying.immersive .back-btn:hover { color: #fff; }
.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; }
  /* 移动端播放页两态视图：默认只显示歌曲信息，轻触背景切换到歌词（再触切回） */
  .detail.m-toggle { min-height: calc(100vh - 220px); justify-content: center; }
  .detail.m-toggle:not(.lyric-view) .d-right { display: none; }
  .detail.m-toggle.lyric-view .d-left { display: none; }
  .detail.m-toggle.lyric-view .lyric-stage,
  .detail.m-toggle.lyric-view .lyrics { min-height: 56vh; max-height: none; }
}
@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 auto; grid-template-areas: "left right" "mid mid"; gap: 8px 12px; }
  .pb-left { grid-area: left; }
  .pb-mid { grid-area: mid; }
  .pb-right { display: flex; grid-area: right; }
  .pb-controls { gap: 0; }
  .pb-vol input { width: 64px; }
}
@media (max-width: 620px) {
  .about { grid-template-columns: 1fr; }
  .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; }
  .turntable { width: 240px; height: 240px; }
  .tt-label { width: 128px; height: 128px; }
  .tt-arm { height: 112px; right: 33px; }
  .home-quote { white-space: normal; overflow: visible; text-overflow: clip; max-width: 100%; }
  .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; }
  .playerbar.pb-shrink { bottom: -190px; }
  .pb-cover { width: 40px; height: 40px; }
  .pb-progress .t { width: 30px; font-size: 10.5px; }
  .pb-meta .sub { display: none; }
  .pb-fav { font-size: 15px; padding: 3px; }
  .pb-fav i { font-size: 15px; }
  .pb-order { padding: 6px; font-size: 14px; }
  .pb-order i { font-size: 14px; }
  .pb-vol { gap: 4px; }
  .pb-vol i { font-size: 14px; }
  .pb-vol input { width: 56px; }
  .d-btns { margin-top: 14px; }
  .d-btns .dl-btn span { font-size: 12px; }
}

/* ============================================================
   新增：音量 / 弹层Sheet / 歌单 / 播放队列
   ============================================================ */
/* 音量 */
.pb-vol { display: flex; align-items: center; gap: 7px; margin-right: 2px; }
.pb-vol i { color: var(--text3); font-size: 16px; }
.pb-vol i:hover { color: var(--text); }
#pbVol { width: 82px; background: linear-gradient(to right, var(--acc) var(--vp), rgba(255,255,255,.18) var(--vp)); }

/* 弹层 Sheet：玻璃模糊 + 入场动画 */
@keyframes sheetIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sheetOvIn { from { opacity: 0; } to { opacity: 1; } }
.sheet-ov {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: sheetOvIn .22s ease;
}
.sheet {
  width: min(440px, 100%); max-height: 84vh; overflow: auto;
  background: color-mix(in srgb, var(--panel-2) 82%, var(--card));
  border: 1px solid var(--line-2); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow);
  backdrop-filter: blur(34px) saturate(1.25); -webkit-backdrop-filter: blur(34px) saturate(1.25);
  animation: sheetIn .3s cubic-bezier(.22, 1, .36, 1);
}
/* 弹层内的卡片/输入区统一玻璃质感 */
.set-card { backdrop-filter: blur(12px) saturate(1.15); -webkit-backdrop-filter: blur(12px) saturate(1.15); }
.set-card.auth-card,
.set-card .auth-card { background: transparent; }
.set-card h3 { font-size: 17px; margin-bottom: 6px; }
.set-card h3 small { font-weight: 500; }
.set-card label { display: block; font-size: 12px; color: var(--text3); margin: 14px 0 6px; }
.set-card input[type="text"], .set-card input[type="email"], .set-card input[type="password"], .set-card textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--panel-2);
  border: 1px solid var(--line); color: var(--text); font-size: 14px; outline: none; font-family: inherit;
}
.set-card input[type="email"]:focus, .set-card input[type="password"]:focus, .set-card textarea:focus { border-color: var(--acc); }
.set-card textarea { resize: vertical; line-height: 1.5; min-height: 96px; }
.btn.full { width: 100%; }
.acct-links { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 2px; }
.acct-links .btn { text-align: left; }
.acct-title { display: flex; align-items: center; gap: 7px; margin: 16px 0 2px; font-size: 13px; font-weight: 600; color: var(--text2); }
.site-announce-body { max-height: 46vh; overflow: auto; margin-top: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.site-announce-body p { margin: 0; font-size: 14px; color: var(--text); line-height: 1.7; }
.sett-card .set-card textarea { margin-bottom: 10px; }
.row-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
/* 按钮微交互：hover 上浮 + 提亮、active 下压、聚焦环，让交互更丝滑 */
.btn {
  border: none; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px;
  transition: background .18s ease, transform .14s cubic-bezier(.34,1.56,.64,1),
              box-shadow .2s ease, filter .18s ease, opacity .18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1.5px); filter: brightness(1.08); }
.btn:active { transform: translateY(0) scale(.97); filter: brightness(.94); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--acc-soft); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn.ghost { background: var(--panel-2); color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,.16); }
.btn.accent { background: var(--grad); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--acc) 40%, transparent); }
.btn.accent:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--acc) 55%, transparent); }
.btn.accent i { font-size: 13px; }
.btn.danger { background: var(--acc-soft); color: var(--acc); }
.btn.danger:hover { background: var(--acc); color: #fff; }
.text-btn.danger { color: var(--acc); }
/* 次级按钮/文字按钮同样有过渡，避免“生硬” */
.bar-btn, .text-btn, .icon-btn { transition: background .16s ease, color .16s ease, transform .14s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease; }
.bar-btn:hover, .icon-btn:hover { transform: translateY(-1px); }
.bar-btn:active, .icon-btn:active { transform: scale(.94); }
/* 分段选项 hover */
.seg button:hover { background: var(--panel-2); color: var(--text); }
.seg button.on:hover { background: var(--text); }

/* 访问密码锁：整站全屏覆盖 */
.lock-layer {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 20px;
}
.lock-box {
  width: 100%; max-width: 320px; text-align: center;
}
.lock-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lock-brand img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.lock-brand b { font-size: 20px; font-weight: 800; }
.lock-tip { color: var(--text3); font-size: 13px; margin: 10px 0 18px; }
.lock-box input[type="password"] {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border, rgba(255,255,255,.14));
  background: var(--card, rgba(255,255,255,.08)); color: var(--text);
  font-size: 14px; margin-bottom: 12px; outline: none;
}
.lock-box input[type="password"]:focus { border-color: var(--acc); }
.lock-box .btn { width: 100%; justify-content: center; }
.lock-err { color: var(--acc); font-size: 12px; min-height: 18px; margin-top: 10px; }

/* 一键跑路关闭页 */
.shutdown-admin { margin-top: 8px; }
.shutdown-admin .btn { justify-content: center; }
.hero.center { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 70px 10px; }
.hero.center h1 { font-size: 30px; font-weight: 800; }
.hero.center .sub { margin-bottom: 16px; }

/* 歌单列表 */
.pl-actions { display: flex; justify-content: flex-end; }
.pl-actions .bar-btn { display: inline-flex; align-items: center; gap: 6px; }
.pl-actions .bar-btn i { font-size: 14px; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.pl-card { cursor: pointer; }
.pl-art { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.pl-art img { width: 100%; height: 100%; object-fit: cover; }
.pl-count { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
/* 歌单收藏心形按钮（歌单推荐「热门歌单」右上角） */
.pl-fav { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 15px; cursor: pointer; transition: transform .12s, background .12s; }
.pl-fav:hover { transform: scale(1.12); background: rgba(0,0,0,.7); }
.pl-fav.on { color: #ff4d6d; }
.pl-fav .bi-heart-fill { color: #ff4d6d; }
/* 歌单详情页「收藏 / 已收藏」按钮 */
.bar-btn.fav-on { color: #ff4d6d; border-color: #ff4d6d; }
.bar-btn.fav-on i, .bar-btn.fav-on span { color: inherit; }
/* 云音乐特色榜卡片无封面时的渐变占位 */
.pl-board-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 15px; font-weight: 700; letter-spacing: 1px; color: #fff; background: linear-gradient(135deg, #ff7a59, #e4485d 55%, #9b30b8); }
/* 管理面板反馈列表中的 IP 标签 */
.fb-ip { font-size: 11px; color: var(--text3); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 2px; }

/* ---------- 反馈列表 / 用户管理（管理面板 + 反馈页） ---------- */
/* 小型图标按钮 */
.minibtn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text2); font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.minibtn:hover { background: rgba(255,255,255,.12); color: #fff; }
.minibtn i { font-size: 13px; }
.minibtn.ghost { background: transparent; }
.minibtn.accent { border-color: rgba(255,45,85,.45); color: var(--acc-2); }
.minibtn.accent:hover { background: var(--acc-soft); color: #fff; }
.minibtn.danger { color: #ff5a5a; border-color: rgba(255,90,90,.35); }
.minibtn.danger:hover { background: rgba(255,90,90,.14); color: #fff; }
.minibtn.on { background: var(--acc-soft); border-color: rgba(255,45,85,.5); color: var(--acc-2); }

/* 反馈条目操作区（回复 / 删除 图标按钮） */
.fb-actions { margin-left: auto; display: inline-flex; gap: 4px; }
.fb-actions .minibtn { width: 30px; height: 30px; padding: 0; justify-content: center; }
.fb-actions .minibtn i { font-size: 14px; }
.fb-item .cmt-head { flex-wrap: wrap; row-gap: 4px; }
.fb-item .fb-actions { align-self: center; }

/* 站长回复块 */
.fb-reply {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--acc-soft); border: 1px solid rgba(255,45,85,.22);
  font-size: 13.5px; line-height: 1.6; color: var(--text2);
}
.fb-reply-head {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--acc-2);
}
.fb-reply-head i { font-size: 12px; }
.fb-wait { margin-top: 8px; font-size: 12.5px; font-style: italic; }

/* 回复输入表单 */
.fb-reply-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.fb-reply-input {
  width: 100%; min-height: 52px; resize: vertical; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  font-family: inherit; font-size: 13.5px; line-height: 1.5;
}
.fb-reply-input:focus { outline: none; border-color: var(--acc); }

/* 用户管理列表 */
.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 14px; flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--line); transition: background .15s;
}
.user-row:hover { background: rgba(255,255,255,.08); }
.user-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.user-meta > b { font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-sub { font-size: 12px; }
.user-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.badge.off { color: var(--text3); border-color: var(--line-2); }
.pl-t { margin-top: 8px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-a { font-size: 12px; color: var(--text3); margin-top: 2px; }
/* 歌单详情头 */
.pl-head { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
.pl-big { width: 148px; height: 148px; border-radius: var(--r-lg); object-fit: cover; background: var(--bg-2); box-shadow: 0 12px 30px rgba(0,0,0,.5); flex: none; }
.pl-head-btns { display: flex; gap: 10px; margin-top: 12px; }
.pl-head-btns .bar-btn { display: inline-flex; align-items: center; gap: 6px; }
.pl-head-btns .bar-btn i { font-size: 14px; }

/* 添加到歌单选择 */
.pl-pick { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 46vh; overflow: auto; }
.pl-pick-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); text-align: left; transition: background .15s; }
.pl-pick-item:hover { background: rgba(255,255,255,.1); }
.pl-pick-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.pl-pick-item span { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-pick-item em { font-style: normal; font-size: 12px; background: var(--acc-soft); color: var(--acc); border-radius: 999px; padding: 2px 8px; }

/* 播放队列 */
.q-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 52vh; overflow: auto; }
.q-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.q-item:hover { background: rgba(255,255,255,.08); }
.q-item.now { background: var(--acc-soft); }
.q-item.now > i { color: var(--acc-2); margin-left: auto; }
.q-item img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: none; }
.q-idx { width: 22px; text-align: center; color: var(--text3); font-size: 13px; font-variant-numeric: tabular-nums; }
.q-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.q-m b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-m span { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 歌曲评论 */
.cmt-box { max-width: 760px; margin: 0 auto; margin-top: 26px; }
.cmt-box .grid-head { align-items: center; }
.cmt-box .grid-head .text-btn { margin-left: auto; }
.cmt-list { display: flex; flex-direction: column; gap: 12px; }
.cmt-item { padding: 12px 14px; border-radius: var(--r-md, 12px); background: var(--panel-2, rgba(255,255,255,.06)); border: 1px solid var(--line, rgba(255,255,255,.08)); }
.cmt-item:has(.cmt-avatar) { display: flex; gap: 10px; }
.cmt-head { display: flex; align-items: baseline; gap: 8px; }
.cmt-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--panel2); }
.cmt-body { flex: 1; min-width: 0; }
.cmt-head .fb-del { margin-left: auto; align-self: center; min-width: 28px; height: 28px; padding: 0 8px; border: 0; background: transparent; color: var(--text3); border-radius: 8px; cursor: pointer; font-size: 14px; }
.cmt-head .fb-del:hover { color: #ff5a5a; background: rgba(255,90,90,.12); }
.cmt-user { font-size: 13px; color: var(--acc, #ff2d55); }
.cmt-time { font-size: 11px; color: var(--text3); }
.cmt-content { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.cmt-like { margin-top: 6px; font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 4px; }

/* 歌曲评论独立页 */
.cmt-page .d-top { margin-bottom: 8px; }
.cmt-hero { padding-bottom: 10px; }
.cmt-hero .small-note { font-size: 12px; }
.cmt-page .cmt-box { max-width: 760px; margin: 0 auto; margin-top: 6px; }
.cmt-page .cmt-list { max-width: 760px; }
.cmt-page .empty.block, .cmt-page .empty.small.block { padding: 32px 0; }

/* 评论"加载更多"页脚 */
.cmt-more { max-width: 760px; padding: 16px 0 4px; text-align: center; }
.cmt-more .bar-btn { min-width: 180px; justify-content: center; }
.cmt-more .bar-btn.working { pointer-events: none; opacity: .7; }
.cmt-more.muted .bi { color: var(--text3); }

/* 歌单推荐卡片加载态 */
.pl-card.loading { opacity: .5; pointer-events: none; }

/* ============================================================
   企业级视觉升级层（Enterprise Polish Layer）
   Linear / Stripe 式克制质感：环境光 · 渐变标题 · 光边卡片 · 精致控件
   覆盖式增强，不改变任何布局结构
   ============================================================ */

/* ---------- 1. 环境光：页面顶部品牌色微光（企业官网标配氛围） ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(52% 34% at 18% -6%, rgba(255, 45, 85, .10), transparent 68%),
    radial-gradient(40% 28% at 86% -4%, rgba(120, 80, 255, .07), transparent 66%);
  opacity: 1; transition: opacity .6s ease;
}
body.nowplaying::after { opacity: .4; }
:root[data-theme="light"] body::after {
  background:
    radial-gradient(52% 34% at 18% -6%, rgba(255, 45, 85, .07), transparent 68%),
    radial-gradient(40% 28% at 86% -4%, rgba(90, 60, 220, .05), transparent 66%);
}

/* ---------- 2. 侧边栏：品牌发光 + 渐变胶囊导航 ---------- */
.s-brand { position: relative; }
.s-logo {
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(255, 45, 85, .38), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.s-brand-txt b {
  background: linear-gradient(120deg, #fff 30%, rgba(255, 255, 255, .72));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-item { border-radius: 10px; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(255, 45, 85, .16), rgba(255, 90, 117, .07));
  box-shadow: inset 0 0 0 1px rgba(255, 45, 85, .22);
}
.nav-item.active::before { height: 16px; width: 3px; box-shadow: 0 0 10px rgba(255, 45, 85, .9); }
.nav-item:hover:not(.active) { background: rgba(255, 255, 255, .05); }
.s-label { letter-spacing: 1.2px; text-transform: uppercase; font-size: 10.5px; }
.s-foot { letter-spacing: .8px; font-size: 9.5px; }

/* ---------- 3. Hero：渐变大标题 + 排版层级 ---------- */
.hero h1 {
  font-size: 32px; letter-spacing: -.5px; line-height: 1.15;
  background: linear-gradient(150deg, var(--text) 45%, rgba(255, 255, 255, .62) 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
:root[data-theme="light"] .hero h1 {
  background: linear-gradient(150deg, #1d1d1f 45%, rgba(29, 29, 31, .58) 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .sub { letter-spacing: .3px; }
.hero .sub b { color: var(--acc-2); }
.home-hero h1 { font-size: 34px; }

/* ---------- 4. 卡片 / 列表行：hover 浮起 + 1px 光边 ---------- */
.search-row, .fav-row, .song-row {
  border: 1px solid transparent;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.search-row:hover, .fav-row:hover, .song-row:hover {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .10);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
}
:root[data-theme="light"] .search-row:hover,
:root[data-theme="light"] .fav-row:hover,
:root[data-theme="light"] .song-row:hover {
  background: rgba(0, 0, 0, .035);
  border-color: rgba(0, 0, 0, .07);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}
.grid-head h2 { letter-spacing: -.2px; }
.grid-head small { letter-spacing: .3px; }

/* ---------- 5. 段选控件（搜索源切换）：玻璃滑块 ---------- */
.seg {
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .22);
}
.seg button { transition: color .16s ease, background .16s ease, box-shadow .16s ease; }
.seg button.on {
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .86));
  color: #0a0a0c;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .34), 0 0 0 1px rgba(255, 255, 255, .16) inset;
}

/* ---------- 6. 播放条：顶部渐变光线 + 控件光晕 ---------- */
.playerbar {
  border-radius: 20px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.playerbar::before {
  content: ""; position: absolute; left: 14%; right: 14%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  border-radius: 1px; pointer-events: none;
}
.pb-controls .play {
  background: linear-gradient(145deg, #ffffff, #e8e8ee);
  box-shadow: 0 4px 16px rgba(255, 255, 255, .22), 0 0 0 1px rgba(0, 0, 0, .06);
}
.pb-controls .play:active { transform: scale(.95); }
.pb-controls .ctl { transition: color .15s, background .15s, transform .12s; }
.pb-controls .ctl:active { transform: scale(.92); }
.pb-fav, .pb-order { transition: color .15s, transform .12s; }
.pb-fav:active, .pb-order:active { transform: scale(.88); }

/* ---------- 7. 主按钮（accent 渐变 + 光晕） ---------- */
.bar-btn.accent {
  box-shadow: 0 4px 18px rgba(255, 45, 85, .36), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.bar-btn.accent:active { transform: translateY(1px) scale(.985); }

/* ---------- 8. 滚动条 / 选区：品牌色统一 ---------- */
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .13);
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); background-clip: padding-box; }
::selection { background: rgba(255, 45, 85, .22); }

/* ---------- 9. 空态 / 徽标精致化 ---------- */
.empty { letter-spacing: .3px; }
.badge {
  background: linear-gradient(135deg, rgba(255, 45, 85, .2), rgba(255, 90, 117, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 45, 85, .25);
  color: var(--acc-2); font-weight: 700;
}

/* ---------- 10. 详情页（正在播放）主按钮 ---------- */
.d-fav.on, .dl-btn {
  transition: transform .14s ease, box-shadow .16s ease, background .16s ease;
}
.d-fav:active, .dl-btn:active { transform: scale(.96); }
.d-fav.on {
  box-shadow: 0 4px 16px rgba(255, 45, 85, .32), inset 0 0 0 1px rgba(255, 45, 85, .3);
}

/* ---------- 11. 移动端降级：环境光减弱，避免小屏糊作一团 ---------- */
@media (max-width: 960px) {
  body::after { background: radial-gradient(70% 24% at 50% -4%, rgba(255, 45, 85, .08), transparent 70%); }
  .hero h1 { font-size: 26px; }
  .home-hero h1 { font-size: 26px; }
  .home-hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 0 0; }
  .home-quote { max-width: 100%; text-align: left; }
  .search-row:hover, .fav-row:hover, .song-row:hover { transform: none; }
}

/* ---------- 12. 交互按钮 q 弹动效：按下回弹 + 过冲曲线，营造"Q 弹"手感 ---------- */
.seg button, .btn, .bar-btn, .text-btn, .fav, .swatches button, .tab,
.pl-actions .bar-btn, .pl-head-btns .bar-btn, .acct-links a {
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), background .22s ease, color .22s ease,
              box-shadow .22s ease, border-color .22s ease, opacity .22s ease;
}
.seg button:active, .btn:active, .bar-btn:active, .text-btn:active,
.fav:active, .swatches button:active, .tab:active,
.pl-actions .bar-btn:active, .pl-head-btns .bar-btn:active, .acct-links a:active {
  transform: scale(.9);
}
/* 主操作按钮悬停轻微浮起，强化"可点击"质感 */
.btn:not(.ghost):hover, .bar-btn.accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 45, 85, .25);
}

/* ---------- 13. 电脑端界面模式：竖屏旋转引导遮罩（iOS 无法强制锁横屏时兜底） ---------- */
.rotate-hint { display: none; }
@media (orientation: portrait) {
  html[data-view="pc"] .rotate-hint {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    position: fixed; inset: 0; z-index: 2147483000;
    background: radial-gradient(80% 60% at 50% 30%, rgba(255, 45, 85, .18), transparent 70%), rgba(5, 5, 9, .94);
    color: #fff; text-align: center; font-size: 15px; letter-spacing: .3px;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  html[data-view="pc"] .rotate-hint .rotate-icon {
    font-size: 48px; color: var(--acc, #ff2d55);
    animation: rotateNudge 1.5s ease-in-out infinite;
  }
  html[data-view="pc"] .rotate-hint .rh-exit {
    margin-top: 10px; padding: 9px 20px; border: none; border-radius: 999px;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; font-weight: 600;
    cursor: pointer;
  }
  html[data-view="pc"] .rotate-hint .rh-exit:active { transform: scale(.94); }
}
@keyframes rotateNudge {
  0%, 100% { transform: rotate(0deg); }
  45%, 55% { transform: rotate(-90deg); }
}

/* ---------- 14. 侧边栏滚动（内容多时可滑动）+ 电脑端模式横屏适配 ---------- */
.sidebar { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 4px; }

/* 电脑端模式：横屏矮视口下压缩纵向尺寸，避免元素过大、比例失衡 */
@media (max-height: 640px) and (orientation: landscape) {
  html[data-view="pc"] .content { padding: 14px 22px 118px; }
  html[data-view="pc"] .hero { margin-bottom: 12px; }
  html[data-view="pc"] .hero h1 { font-size: 22px; }
  html[data-view="pc"] .hero .sub { margin: 4px 0 10px; font-size: 12px; }
  html[data-view="pc"] .hero-search { max-width: 560px; }
  html[data-view="pc"] .search-box, html[data-view="pc"] .bar-btn { height: 40px; }
  html[data-view="pc"] .home-hero h1 { font-size: 26px; }
  html[data-view="pc"] .home-hero { gap: 10px; }
  html[data-view="pc"] .bcard { width: 140px; }
  html[data-view="pc"] .bcard-art { width: 140px; height: 140px; }
  html[data-view="pc"] .sett-card { padding: 14px 16px; }
}

/* ---------- 15. 下载进度条弹窗 ---------- */
.dl-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  display: flex; align-items: center; justify-content: center;
  animation: dlFadeIn .22s ease;
}
@keyframes dlFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.dl-card {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 28px 30px 24px;
  width: min(420px, calc(100vw - 40px));
  box-shadow: 0 32px 80px rgba(0, 0, 0, .5);
  animation: dlSlideIn .3s cubic-bezier(.22, 1, .36, 1);
}
@keyframes dlSlideIn {
  from { transform: translateY(20px) scale(.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.dl-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.dl-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--acc-soft); color: var(--acc);
  font-size: 22px;
  flex-shrink: 0;
}
.dl-icon.done { background: rgba(52, 199, 89, .18); color: #34c759; }
.dl-icon.error { background: rgba(255, 59, 48, .18); color: #ff3b30; }
.dl-icon .spin { animation: dlSpin 1s linear infinite; }
@keyframes dlSpin { to { transform: rotate(360deg); } }
.dl-title {
  font-size: 16px; font-weight: 600; color: var(--text);
  line-height: 1.3;
}
.dl-title .dl-sub {
  display: block; font-size: 12px; color: var(--text3);
  font-weight: 400; margin-top: 2px;
}
.dl-filename {
  font-size: 13px; color: var(--text2); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.dl-bar-wrap {
  position: relative; height: 6px; background: var(--card-2);
  border-radius: 999px; overflow: hidden; margin-bottom: 12px;
}
.dl-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--acc) 0%, var(--acc-2) 50%, #ff8fab 100%);
  border-radius: 999px;
  transition: width .2s ease;
  position: relative;
  overflow: hidden;
}
.dl-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  animation: dlShimmer 1.6s ease-in-out infinite;
}
@keyframes dlShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.dl-bar.indeterminate {
  width: 40%;
  animation: dlIndeterminate 1.4s ease-in-out infinite;
}
@keyframes dlIndeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.dl-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text3);
  font-variant-numeric: tabular-nums;
}
.dl-meta .dl-pct {
  color: var(--acc); font-weight: 600; font-size: 14px;
}
.dl-meta .dl-pct.done { color: #34c759; }
.dl-actions {
  margin-top: 18px; display: flex; gap: 10px;
}
.dl-actions .btn { flex: 1; }
.dl-actions .btn.single { flex: none; width: 100%; }

/* ---- 批量下载 ---- */
.dl-batch-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.dl-batch-header .dl-progress-text {
  font-size: 13px; color: var(--acc); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dl-batch-header .dl-progress-text.done { color: #34c759; }
.dl-batch-list {
  max-height: 280px; overflow-y: auto;
  margin-bottom: 4px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent;
}
.dl-batch-list::-webkit-scrollbar { width: 5px; }
.dl-batch-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18); border-radius: 4px;
}
.dl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
}
.dl-item:last-child { border-bottom: none; }
.dl-item-icon {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-2); color: var(--text3);
  font-size: 12px; flex-shrink: 0;
}
.dl-item-icon.active {
  background: var(--acc-soft); color: var(--acc);
}
.dl-item-icon.done { background: rgba(52,199,89,.18); color: #34c759; }
.dl-item-icon.error { background: rgba(255,59,48,.18); color: #ff3b30; }
.dl-item-icon .spin { animation: dlSpin 1s linear infinite; }
.dl-item-info {
  flex: 1; min-width: 0;
}
.dl-item-name {
  font-size: 13px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dl-item-meta {
  font-size: 11px; color: var(--text3);
  font-variant-numeric: tabular-nums;
}
.dl-item-meta.error-msg { color: #ff3b30; }

/* ---- 浅色主题适配 ---- */
:root[data-theme="light"] .dl-overlay {
  background: rgba(0, 0, 0, .35);
}
:root[data-theme="light"] .dl-bar {
  background: linear-gradient(90deg, var(--acc) 0%, var(--acc-2) 50%, #ffb3c1 100%);
}

/* ---- 移动端适配 ---- */
@media (max-width: 480px) {
  .dl-card { padding: 22px 20px 18px; border-radius: 16px; }
  .dl-icon { width: 40px; height: 40px; font-size: 19px; border-radius: 12px; }
  .dl-title { font-size: 15px; }
}


/* ---- 首页四榜预览 ---- */
.home-boards-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.home-board-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 12px 10px;
  min-width: 0;
}
.home-board-col .hbc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: color .2s;
}
.home-board-col .hbc-head:hover { color: var(--acc); }
.home-board-col .hbc-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-board-col .hbc-head i { font-size: 13px; opacity: .5; }

/* 四榜里的 song-row 更紧凑 */
.home-board-col .song-row {
  padding: 8px 4px;
  gap: 8px;
}
.home-board-col .song-row .row-art {
  width: 30px; height: 30px; border-radius: 5px;
}
.home-board-col .song-row .row-mid .rn { font-size: 12.5px; }
.home-board-col .song-row .row-mid .ra { font-size: 11px; }
.home-board-col .song-row .rk { min-width: 28px; }
.home-board-col .song-row .idx { font-size: 11px; width: 20px; height: 20px; }

/* 浅色主题 */
:root[data-theme="light"] .home-board-col {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}
:root[data-theme="light"] .home-board-col .hbc-head {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* 响应式：平板 2 列，手机 1 列 */
@media (max-width: 900px) {
  .home-boards-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .home-boards-wrap { grid-template-columns: 1fr; }
}

/* =============== Apple Music 风格首页 =============== */
.am-home { padding: 0 24px 40px; max-width: 1400px; margin: 0 auto; }
:root[data-theme="light"] .am-home { padding: 0 20px 40px; }

/* ---- HERO 轮播 ---- */
.am-hero {
  position: relative;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  margin: 18px 0 44px;
  background: #1a1a1c;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.am-hero-slides { position: absolute; inset: 0; }
.am-hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s ease, transform 7s ease-out;
  will-change: opacity, transform;
}
.am-hero-slide.on { opacity: 1; transform: scale(1); }
.am-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.55) 30%,
    rgba(0,0,0,.25) 55%,
    rgba(0,0,0,.1) 80%,
    rgba(0,0,0,.02) 100%);
  pointer-events: none;
}
.am-hero-content {
  position: absolute;
  left: 40px; right: 40px; bottom: 36px;
  z-index: 3;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.am-hero-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 10px;
}
.am-hero-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin: 0 0 6px;
  text-shadow: 0 3px 20px rgba(0,0,0,.7);
}
.am-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  margin: 0 0 20px;
}
.am-hero-btns { display: flex; gap: 10px; align-items: center; }
.am-btn-play {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--acc);
  color: #fff;
  border: none;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
  box-shadow: 0 4px 18px rgba(255, 45, 85, .4);
}
.am-btn-play:hover { background: var(--acc-2); transform: scale(1.04); }
.am-btn-play i { font-size: 18px; }
.am-btn-more {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s ease;
}
.am-btn-more:hover { background: rgba(255,255,255,.25); }

.am-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 4;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .22s ease, background .18s ease;
}
.am-hero:hover .am-hero-arrow { opacity: 1; }
.am-hero-arrow:hover { background: rgba(0,0,0,.65); }
.am-hero-prev { left: 18px; }
.am-hero-next { right: 18px; }

.am-hero-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 7px;
  z-index: 4;
}
.am-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
  padding: 0;
}
.am-dot.on {
  background: #fff;
  transform: scale(1.35);
}

/* ---- 横滑 Row 通用 ---- */
.am-row-section { margin-bottom: 48px; }
.am-row-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  padding-left: 4px;
}
.am-row-head h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0;
  position: relative;
  padding-left: 14px;
}
.am-row-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--acc), var(--acc-2));
}
.am-row-see {
  font-size: 13px;
  color: var(--text3);
  text-decoration: none;
  font-weight: 500;
  transition: color .18s, transform .18s;
}
.am-row-see:hover {
  color: var(--acc);
  transform: translateX(2px);
}

.am-hscroll {
  position: relative;
  overflow: visible;
}
.am-hscroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.am-hscroll-track::-webkit-scrollbar { display: none; }
.am-hscroll-track > * { scroll-snap-align: start; flex-shrink: 0; }

.am-skel-row {
  color: var(--text3);
  font-size: 14px;
  padding: 20px 0;
}

.am-hscroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(25,25,28,.85);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s ease, background .18s ease, transform .18s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.am-hscroll:hover .am-hscroll-btn { opacity: 1; }
.am-hscroll-btn:hover {
  background: rgba(255,45,85,.3);
  border-color: rgba(255,45,85,.4);
  transform: translateY(-50%) scale(1.08);
}
.am-hscroll-btn.left  { left: -12px; }
.am-hscroll-btn.right { right: -12px; }

/* ---- Big Chart Card (Top Charts) ---- */
.am-big-card {
  width: 260px;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.25,.46,.45,.94), box-shadow .28s ease;
  box-shadow:
    0 2px 0 rgba(255,255,255,.03) inset,
    0 4px 18px rgba(0,0,0,.35);
  position: relative;
}
.am-big-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 0 rgba(255,255,255,.06) inset,
    0 20px 48px rgba(0,0,0,.55);
}
.am-big-art {
  width: 100%; aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}
.am-big-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.3) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.am-big-card:hover .am-big-art::after { opacity: 1; }
.am-big-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.am-big-card:hover .am-big-art img { transform: scale(1.08); }
.am-big-body {
  padding: 14px 16px 48px;
}
.am-big-tag {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--acc);
  margin-bottom: 4px;
}
.am-big-title {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.am-big-sub {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}
.am-big-play {
  position: absolute;
  right: 16px; bottom: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--acc);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1), background .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 16px rgba(255,45,85,.45);
}
.am-big-card:hover .am-big-play {
  opacity: 1; transform: translateY(0);
}
.am-big-play:hover {
  background: var(--acc-2);
  box-shadow: 0 6px 22px rgba(255,45,85,.55);
}

/* ---- Small Playlist Card (Listen Now) ---- */
.am-sm-card {
  width: 180px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.25,.46,.45,.94);
}
.am-sm-card:hover { transform: translateY(-4px); }
.am-sm-art {
  width: 180px; height: 180px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 2px 0 rgba(255,255,255,.05) inset,
    0 6px 24px rgba(0,0,0,.4);
  margin-bottom: 10px;
  transition: box-shadow .28s ease;
}
.am-sm-card:hover .am-sm-art {
  box-shadow:
    0 2px 0 rgba(255,255,255,.08) inset,
    0 12px 36px rgba(0,0,0,.55);
}
.am-sm-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.am-sm-card:hover .am-sm-art img { transform: scale(1.08); }
.am-sm-title {
  font-size: 13.5px; font-weight: 600;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.am-sm-sub {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}

/* ---- Song Card (Top 10 rows) ---- */
.am-s-card {
  width: 140px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .22s ease;
}
.am-s-card:hover { transform: translateY(-2px); }
.am-s-art {
  width: 140px; height: 140px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.am-s-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .2s ease;
}
.am-s-card:hover .am-s-art img { transform: scale(1.05); filter: brightness(.8); }
.am-s-play {
  position: absolute;
  right: 8px; bottom: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--acc);
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s ease, transform .18s ease;
  box-shadow: 0 3px 10px rgba(255,45,85,.4);
}
.am-s-card:hover .am-s-play { opacity: 1; }
.am-s-play:hover { transform: scale(1.08); }
.am-s-rank {
  position: absolute;
  left: 8px; top: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.am-s-title {
  font-size: 13px; font-weight: 500;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.am-s-sub {
  font-size: 11.5px;
  color: var(--text3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}

/* ---- 浅色主题适配 ---- */
:root[data-theme="light"] .am-hero { background: #f0f0f2; box-shadow: 0 16px 48px rgba(0,0,0,.15); }
:root[data-theme="light"] .am-hero-title { text-shadow: 0 2px 10px rgba(0,0,0,.25); }
:root[data-theme="light"] .am-hero-sub { color: rgba(255,255,255,.8); }
:root[data-theme="light"] .am-hero-overlay {
  background: linear-gradient(to top,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.45) 35%,
    rgba(0,0,0,.15) 65%,
    rgba(0,0,0,0) 100%);
}
:root[data-theme="light"] .am-big-card { background: #f0f0f2; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
:root[data-theme="light"] .am-big-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.12); }
:root[data-theme="light"] .am-sm-art,
:root[data-theme="light"] .am-s-art { box-shadow: 0 3px 10px rgba(0,0,0,.1); }
:root[data-theme="light"] .am-hscroll-btn { background: rgba(255,255,255,.92); border-color: rgba(0,0,0,.08); color: #000; }
:root[data-theme="light"] .am-hscroll-btn:hover { background: #fff; }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .am-home { padding: 0 16px 32px; }
  .am-hero { height: 300px; margin: 12px 0 32px; border-radius: 16px; }
  .am-hero-content { left: 22px; right: 22px; bottom: 22px; }
  .am-hero-title { font-size: 26px; letter-spacing: -.6px; }
  .am-hero-sub { font-size: 13px; margin-bottom: 14px; }
  .am-btn-play { padding: 9px 18px; font-size: 13px; }
  .am-btn-more { width: 34px; height: 34px; }
  .am-hero-arrow { display: none; }
  .am-big-card { width: 200px; }
  .am-sm-card, .am-sm-art { width: 140px; height: 140px; }
  .am-s-card, .am-s-art { width: 108px; height: 108px; }
  .am-row-head h2 { font-size: 18px; }
}
@media (max-width: 480px) {
  .am-big-card { width: 170px; }
  .am-big-title { font-size: 14px; }
  .am-sm-card, .am-sm-art { width: 128px; height: 128px; }
  .am-s-card, .am-s-art { width: 96px; height: 96px; }
}

/* ---- Hero Duo (2 张并排大卡) ---- */
.am-hero-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 4px 0 48px;
}
.am-hero-card {
  position: relative;
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  background: #2a2a2e;
  box-shadow:
    0 2px 0 rgba(255,255,255,.05) inset,
    0 20px 60px rgba(0,0,0,.5),
    0 2px 8px rgba(0,0,0,.4);
  transition: transform .3s cubic-bezier(.25,.46,.45,.94), box-shadow .3s ease;
}
.am-hero-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow:
    0 2px 0 rgba(255,255,255,.08) inset,
    0 28px 70px rgba(0,0,0,.65),
    0 4px 16px rgba(255,45,85,.12);
}
.am-hero-card .am-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .8s cubic-bezier(.25,.46,.45,.94), filter .3s ease;
  will-change: transform;
}
.am-hero-card:hover .am-hero-bg { transform: scale(1.06); filter: brightness(1.05); }
.am-hero-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,45,85,.22) 0%, transparent 40%, transparent 60%, rgba(59,130,246,.18) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .4s ease;
}
.am-hero-card:hover::before { opacity: 1; }
.am-hero-card::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 30%, rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 80%),
    linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 1;
}
.am-hero-card .am-hero-content {
  position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 2;
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
.am-hero-card .am-hero-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 8px;
  padding: 3px 10px;
  background: rgba(255,45,85,.18);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.am-hero-card .am-hero-title {
  font-size: 28px; font-weight: 800; letter-spacing: -.8px;
  line-height: 1.15; margin: 0 0 6px;
}
.am-hero-card .am-hero-sub {
  font-size: 13px; color: rgba(255,255,255,.7); margin: 0 0 16px;
  font-weight: 500;
}
.am-hero-card .am-hero-btns { display: flex; gap: 10px; align-items: center; }
.am-hero-card .am-btn-play {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px;
  background: var(--acc); color: #fff; border: none;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 18px rgba(255,45,85,.45);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s, box-shadow .2s;
}
.am-hero-card .am-btn-play:hover {
  background: var(--acc-2);
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(255,45,85,.55);
}
.am-hero-card .am-btn-play i { font-size: 15px; }
.am-hero-card .am-btn-more {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.14); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 14px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.am-hero-card .am-btn-more:hover {
  background: rgba(255,255,255,.28);
  transform: scale(1.08);
}
.am-hero-card .am-btn-edit {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.55); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 14px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s, transform .2s;
}
.am-hero-card:hover .am-btn-edit { opacity: 1; }
.am-hero-card .am-btn-edit:hover { background: rgba(0,0,0,.8); transform: rotate(30deg); }

:root[data-theme="light"] .am-hero-card { background: #f0f0f2; box-shadow: 0 10px 32px rgba(0,0,0,.12); }
:root[data-theme="light"] .am-hero-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.18); }
:root[data-theme="light"] .am-hero-card::before { background: linear-gradient(135deg, rgba(255,45,85,.1) 0%, transparent 40%, transparent 60%, rgba(59,130,246,.08) 100%); }

@media (max-width: 800px) {
  .am-hero-duo { grid-template-columns: 1fr; gap: 14px; }
  .am-hero-card { height: 240px; border-radius: 18px; }
  .am-hero-card .am-hero-content { left: 22px; right: 22px; bottom: 22px; }
  .am-hero-card .am-hero-title { font-size: 22px; }
}

/* ---- Admin Hero 编辑模态框 ---- */
.edit-modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.edit-modal {
  background: var(--bg); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 24px; width: 380px; max-width: 90vw;
}
.edit-modal h3 { margin: 0 0 16px; font-size: 16px; }
.edit-modal label { display: block; font-size: 12px; color: var(--text3); margin-bottom: 10px; }
.edit-modal input {
  display: block; width: 100%; box-sizing: border-box;
  padding: 8px 12px; margin-top: 4px;
  background: var(--bg-2); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; color: var(--text); font-size: 13px;
}
.edit-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.edit-actions button {
  padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600;
}
.edit-actions .btn-save { background: var(--acc); color: #fff; }
.edit-actions .btn-save:hover { background: var(--acc-2); }
.edit-actions .btn-cancel { background: rgba(255,255,255,.08); color: var(--text); }
.edit-actions .btn-cancel:hover { background: rgba(255,255,255,.15); }

/* —— Meting 音源列表（设置页） —— */
.meting-source-list { display: flex; flex-direction: column; gap: 6px; }
.meting-source-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2, rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  font-size: 13px;
}
.meting-source-item:hover { border-color: var(--acc); background: rgba(255,255,255,.06); }
.meting-source-item.on {
  border-color: var(--acc);
  background: var(--acc-soft, rgba(255,45,85,.12));
  box-shadow: 0 0 0 2px rgba(255,45,85,.15);
}
.meting-source-item.off { opacity: .55; }
.meting-source-item input[type="radio"] { accent-color: var(--acc); margin: 0; }
.meting-source-item .src-name { flex: 0 0 auto; font-weight: 500; min-width: 180px; }
.meting-source-item .src-note { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.meting-source-item .src-lat { font-size: 12px; font-variant-numeric: tabular-nums; flex: 0 0 auto; min-width: 70px; text-align: right; }
.meting-source-item .src-lat.fast { color: #30d158; }
.meting-source-item .src-lat.mid { color: #ffd60a; }
.meting-source-item .src-lat.slow { color: #ff9f0a; }
.meting-source-item .src-lat.down { color: #ff7a8a; }
@media (max-width: 600px) {
  .meting-source-item { flex-wrap: wrap; }
  .meting-source-item .src-note { display: none; }
  .meting-source-item .src-name { min-width: 0; flex: 1; }
}

/* ============================================================
   全新页面 · 公告 / 免责声明（#/notice）
   —— 极简浮层卡片：顶部品牌图标 + 标题 + 时间 + 可滚动正文 + 底部操作
   ============================================================ */
.notice-page {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
}
.notice-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 34px 30px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
/* 顶部一层柔和光晕，让卡片“浮”起来 */
.notice-card::before {
  content: ""; position: absolute; left: 50%; top: -120px; transform: translateX(-50%);
  width: 420px; height: 260px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--acc-soft), transparent 68%);
  filter: blur(10px);
}
.notice-badge {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--acc); background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
  padding: 5px 12px; border-radius: 999px;
}
.notice-mark {
  position: relative; width: 54px; height: 54px; border-radius: 17px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 25px; color: #fff;
  background: var(--grad); box-shadow: 0 14px 34px color-mix(in srgb, var(--acc) 42%, transparent);
}
.notice-title {
  position: relative; font-size: 27px; font-weight: 800; letter-spacing: -.4px;
  line-height: 1.3; margin: 14px 0 0;
}
.notice-meta {
  position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 10px; font-size: 12.5px; color: var(--text3);
}
.notice-meta span { display: inline-flex; align-items: center; gap: 6px; }
.notice-body {
  position: relative; margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.95; color: var(--text2);
  white-space: pre-wrap; word-break: break-word;
  max-height: min(52vh, 520px); overflow: auto;
}
.notice-body p { margin: 0 0 12px; }
.notice-body p:last-child { margin-bottom: 0; }
.notice-actions {
  position: relative; display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
}
.notice-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.notice-actions .btn.accent { padding: 12px 26px; }
/* 滚动区底部渐隐，暗示还有内容 */
.notice-fade {
  position: absolute; left: 34px; right: 34px; bottom: 0; height: 34px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--card));
}
@media (max-width: 640px) {
  .notice-card { padding: 24px 20px 22px; border-radius: 20px; }
  .notice-title { font-size: 22px; }
  .notice-body { font-size: 14px; }
}

/* ============================================================
   全新页面 · 用户中心（#/account）
   —— 头部身份卡 + 数据统计 + 分组操作 + 同步 + 危险区
   ============================================================ */
.acct-page { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

/* 身份卡 */
.uc-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 20px;
  padding: 26px 28px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.uc-hero::before {
  content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 300px;
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--acc-soft), transparent 70%);
}
.uc-avatar {
  position: relative; width: 76px; height: 76px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 31px; font-weight: 700; color: #fff;
  background: var(--grad); box-shadow: 0 16px 38px color-mix(in srgb, var(--acc) 40%, transparent),
              inset 0 0 0 3px rgba(255,255,255,.16);
  overflow: hidden;
}
/* 自定义头像：用户填的直链，铺满圆形头像 */
.uc-avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
}
/* 头像编辑浮标（hover 时显示，点它填/改直链） */
.uc-avatar-edit {
  position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 600;
  color: #fff; background: var(--grad); border: 2px solid var(--card);
  box-shadow: 0 6px 16px rgba(0,0,0,.4); opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s cubic-bezier(.34,1.56,.64,1);
}
.uc-avatar:hover .uc-avatar-edit { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(-2px); }
/* 侧边栏账号区头像（有自定义头像时） */
.sa-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sa-avatar.big img { border-radius: 50%; }
.uc-id { position: relative; min-width: 0; flex: 1; }
.uc-id h1 { font-size: 24px; font-weight: 800; letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uc-id .uc-sub { margin-top: 7px; font-size: 13px; color: var(--text3); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uc-role {
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--acc);
  border: 1px solid var(--acc); padding: 3px 9px; border-radius: 999px;
}

/* 统计 */
.uc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.uc-stat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 10px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease;
}
.uc-stat:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.uc-stat:active { transform: translateY(0) scale(.98); }
.uc-stat i { font-size: 19px; color: var(--acc); }
.uc-stat b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.uc-stat small { font-size: 11.5px; color: var(--text3); }

/* 分组 */
.uc-group {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 8px; display: flex; flex-direction: column;
}
.uc-group-title {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; color: var(--text3);
}
.uc-group-title i { color: var(--acc); font-size: 13px; }
.uc-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--text);
  transition: background .15s ease;
}
.uc-row:hover { background: var(--panel-2); }
.uc-row + .uc-row { border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sm) var(--r-sm); }
.uc-row-ic {
  width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center;
  font-size: 16px; background: var(--panel-2); color: var(--text2);
}
.uc-row:hover .uc-row-ic { color: var(--acc); }
.uc-row:hover { transform: translateX(3px); }
.uc-row:active { transform: translateX(0) scale(.99); }
.uc-row-txt { flex: 1; min-width: 0; }
.uc-row-txt b { display: block; font-size: 14.5px; font-weight: 600; }
.uc-row-txt small { display: block; margin-top: 2px; font-size: 12px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-row > i.bi-chevron-right { color: var(--text3); font-size: 13px; flex: none; }
.uc-row.danger .uc-row-ic { color: #ff5a75; }
.uc-row.danger .uc-row-txt b { color: #ff5a75; }
.uc-row.danger:hover { background: rgba(255, 45, 85, .1); }
.uc-row[disabled] { opacity: .5; pointer-events: none; }

@media (max-width: 640px) {
  .uc-hero { flex-direction: column; text-align: center; padding: 24px 18px; }
  .uc-id h1 { justify-content: center; }
  .uc-id .uc-sub { justify-content: center; }
  .uc-stats { gap: 8px; }
  .uc-stat b { font-size: 19px; }
}

/* —— 音源模式：默认音源节点列表 —— */
.gqh-site-list { display: flex; flex-direction: column; gap: 8px; }
.gqh-site-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.gqh-site-item:hover { border-color: var(--acc); background: rgba(255,255,255,.04); }
.gqh-site-item.on { border-color: var(--acc); background: var(--acc-soft); }
.gqh-site-item input[type="radio"] { accent-color: var(--acc); margin: 0; }
.gqh-site-info { flex: 1; min-width: 0; }
.gqh-site-name { font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gqh-site-url { font-size: 11px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gqh-site-lat { font-size: 12px; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 70px; text-align: right; font-weight: 500; }
.gqh-site-lat.fast { color: #30d158; }
.gqh-site-lat.mid { color: #ffd60a; }
.gqh-site-lat.slow { color: #ff9f0a; }
.gqh-site-lat.down { color: #ff7a8a; }

/* —— MusicFree 插件列表 —— */
.mf-plugin-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.mf-plugin-item:hover { border-color: var(--acc); background: rgba(255,255,255,.04); }
.mf-plugin-item.on { border-color: var(--acc); background: var(--acc-soft); }
.mf-plugin-item input[type="radio"] { accent-color: var(--acc); margin: 0; }
.mf-plugin-info { flex: 1; min-width: 0; }
.mf-plugin-name { font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mf-plugin-desc { font-size: 11px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-plugin-item i.bi-chevron-right { color: var(--text3); flex-shrink: 0; }
.mf-tag {
  display: inline-flex; align-items: center;
  padding: 2px 6px; border-radius: 100px;
  font-size: 10px; font-weight: 500;
}
