/* ============================================================
   XIAOU · 音乐 —— 毛玻璃（Glassmorphism）UI
   设计思路参考：GlassMusicPlayer 的简约玻璃卡片 + 封面驱动配色
   三档响应式：≥1240 双栏 / 768–1239 单栏 / <768 移动端 mini-player
   零依赖：纯 CSS 变量 + backdrop-filter，无框架、无外部字体
   ============================================================ */

:root {
  /* 主题色：由封面提取后覆盖（JS 设置），默认极光冷调 */
  --accent: #7fc4ff;
  --accent2: #b79cff;
  --accent-soft: rgba(127, 196, 255, 0.16);

  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.085);
  --glass-3: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-hi: rgba(255, 255, 255, 0.24);

  --txt: #f3f6ff;
  --muted: rgba(232, 238, 255, 0.62);
  --muted-2: rgba(232, 238, 255, 0.4);

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --blur: 26px;
  /* 界面质感（背景弹窗里可调，只影响玻璃面板） */
  --ui-blur: 26px;
  --ui-alpha: 0.054;
  --ui-radius: 26px;
  --shadow-lg: 0 24px 60px rgba(3, 5, 16, 0.5);
  --shadow-md: 0 12px 34px rgba(3, 5, 16, 0.38);
  --shadow-hi: inset 0 1px 0 rgba(255, 255, 255, 0.09);

  --bg-blur: 0px;
  --bg-dim: 0.46;
  --bg-sat: 1.04;
  --bg-bright: 0.94;
  --bar-h: 84px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--txt);
  background: #070910;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; line-height: 1.6; }
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------ 背景层 */

.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #070910; }
.bg-img {
  position: absolute;
  inset: -8%;
  background-image: var(--bg-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  filter: blur(var(--bg-blur)) saturate(var(--bg-sat)) brightness(var(--bg-bright));
  transition: opacity 0.6s ease, filter 0.35s ease;
}
.bg.has-image .bg-img { opacity: 1; }
.bg-tint { position: absolute; inset: 0; background: rgba(5, 7, 16, var(--bg-dim)); transition: background 0.3s ease; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; transition: opacity 0.5s ease; }
.bg.has-image .blob { opacity: 0.18; }
.b1 { width: 44vw; height: 44vw; left: -8vw; top: -12vw; background: #4b31a8; animation: float1 26s ease-in-out infinite; }
.b2 { width: 38vw; height: 38vw; right: -6vw; top: 4vw; background: #10617a; animation: float2 32s ease-in-out infinite; }
.b3 { width: 34vw; height: 34vw; left: 30vw; bottom: -16vw; background: #6a2f6d; animation: float3 38s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate3d(6vw, 4vw, 0); } }
@keyframes float2 { 50% { transform: translate3d(-5vw, 6vw, 0); } }
@keyframes float3 { 50% { transform: translate3d(4vw, -5vw, 0); } }
.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

/* 预设渐变（纯 CSS，零外部请求） */
html[data-bg="aurora"] .bg { background: radial-gradient(1100px 720px at 12% 6%, #3a2a70 0%, transparent 62%), radial-gradient(980px 680px at 88% 12%, #0d5468 0%, transparent 58%), linear-gradient(165deg, #070910 0%, #121734 55%, #070910 100%); }
html[data-bg="ocean"] .bg { background: radial-gradient(1000px 700px at 18% 10%, #0b4a63 0%, transparent 60%), radial-gradient(900px 640px at 82% 22%, #0b6b73 0%, transparent 58%), linear-gradient(170deg, #05090f, #0a2233 60%, #05090f); }
html[data-bg="sunset"] .bg { background: radial-gradient(1000px 680px at 20% 8%, #7a2f4a 0%, transparent 60%), radial-gradient(900px 620px at 84% 18%, #a15427 0%, transparent 58%), linear-gradient(170deg, #0d0709, #2b1320 60%, #0d0709); }
html[data-bg="forest"] .bg { background: radial-gradient(980px 660px at 16% 10%, #14452f 0%, transparent 60%), radial-gradient(900px 620px at 84% 20%, #275c33 0%, transparent 58%), linear-gradient(170deg, #050a07, #0c2018 60%, #050a07); }
html[data-bg="sakura"] .bg { background: radial-gradient(980px 660px at 18% 8%, #6d3350 0%, transparent 60%), radial-gradient(880px 600px at 84% 20%, #8a4a63 0%, transparent 58%), linear-gradient(170deg, #0c0709, #241523 60%, #0c0709); }
html[data-bg="noir"] .bg { background: linear-gradient(170deg, #05060a, #0b0d14 55%, #05060a); }

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* ------------------------------------------------------------ 玻璃基类 */

.glass {
  background: rgba(255, 255, 255, var(--ui-alpha, 0.054));
  border: 1px solid var(--stroke);
  border-radius: var(--ui-radius, var(--r-lg));
  backdrop-filter: blur(var(--ui-blur, 26px)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--ui-blur, 26px)) saturate(160%);
  box-shadow: var(--shadow-md), var(--shadow-hi);
}

/* ------------------------------------------------------------ 顶栏 */

.topbar {
  position: fixed;
  z-index: 60;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: #08101f; stroke-width: 1.9; stroke-linecap: round; }
/* 后台上传自定义图标后，顶栏 logo 用图片铺满（自动圆形裁切） */
.brand-mark.has-image { background: transparent; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32); overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.brand-text { font-weight: 700; font-size: 15px; letter-spacing: 0.14em; }
.brand-text em { font-style: normal; color: var(--muted); font-weight: 500; letter-spacing: 0.1em; }

/* 国旗：3:2 旗面 + 圆角细边，和品牌名并排 */
.flag {
  flex: none;
  display: inline-flex;
  width: 27px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.35);
  vertical-align: middle;
  transform: translateY(-0.5px);
}
.flag svg { width: 100%; height: 100%; display: block; }

.search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: rgba(9, 12, 24, 0.4);
  border: 1px solid var(--stroke);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.search:focus-within { border-color: var(--stroke-hi); background: rgba(9, 12, 24, 0.55); }
.search .i { color: var(--muted); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 6px 0; }
.search input::placeholder { color: var(--muted-2); }
.ghost-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9d4ea' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 13px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 5px 24px 5px 11px;
  font-size: 13px;
  color: var(--txt);
  outline: none;
}
.ghost-select:hover { border-color: var(--stroke-hi); }
.ghost-select option { background: #131826; color: var(--txt); }

.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* ------------------------------------------------------------ 按钮 */

.btn-primary {
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  color: #08101f;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }
.btn-primary.sm { padding: 7px 14px; font-size: 13px; }
.btn-ghost {
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.btn-ghost:hover { background: var(--glass-3); border-color: var(--stroke-hi); }
.btn-ghost.sm { padding: 7px 14px; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--txt);
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.icon-btn:hover { background: var(--glass-2); border-color: var(--stroke); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-btn.on { color: var(--accent); background: var(--accent-soft); border-color: var(--stroke); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #43e08b; box-shadow: 0 0 10px #43e08b; }
.pill.free .dot { background: #ff9f6b; box-shadow: 0 0 10px #ff9f6b; }

.play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #08101f;
  background: linear-gradient(130deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
  transition: transform 0.16s ease;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn .i { width: 24px; height: 24px; stroke-width: 0; fill: currentColor; }
.play-btn.lg { width: 62px; height: 62px; }
.play-btn.lg .i { width: 30px; height: 30px; }

.badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.badge.live { color: #ff9f6b; border-color: rgba(255, 159, 107, 0.45); background: rgba(255, 159, 107, 0.12); }
.qchip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--txt);
}
.qchip.low { color: #ffce7a; }

/* 滑块 */
.bar {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}
.bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.bar::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }

/* ------------------------------------------------------------ 主舞台 */

.stage {
  /* 流式自适应：宽度/内边距/字号都跟着视口走，不需要再堆断点 */
  max-width: clamp(1180px, 88vw, 1880px);
  margin: 0 auto;
  padding: 92px clamp(12px, 1.6vw, 40px) 130px;
}

.cookie-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  border-color: rgba(255, 159, 107, 0.28);
}
.cookie-bar .cb-icon { font-size: 22px; }
.cb-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.cb-text b { font-size: 14px; }

.landing { display: block; }

/* Hero */
.hero { padding: 40px 36px 32px; position: relative; overflow: hidden; }

/* ---------------- 首页北京时间（液态玻璃胶囊） ---------------- */
/* 和 eyebrow 同一行（flex），窄屏自动换行并右对齐，不会压住标题文字 */
.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-head .eyebrow { margin: 0; }

.bj-clock {
  position: static;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px 8px 11px;
  border-radius: 15px;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.09));
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    0 12px 28px rgba(3, 5, 16, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  user-select: none;
}
.bj-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: bjPulse 2.4s ease-in-out infinite;
}
@keyframes bjPulse {
  50% { opacity: 0.35; transform: scale(0.8); }
}
.bj-main { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.bj-time {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.bj-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bj-tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.02em;
}

/* hero 左上：中文标语 + 党建标语（同一组，窄屏整体换行） */
.hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.hero-tags .eyebrow { margin: 0; }

/* hero 右上角：时钟 + 标语组（整体换行，不会被拆散） */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.hero-meta .bj-clock { margin-left: 0; }

/* 北京时间旁边的标语「人民万岁」 */
.slogan {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffe3a3;
  background: linear-gradient(135deg, rgba(222, 41, 16, 0.28), rgba(222, 41, 16, 0.12));
  border: 1px solid rgba(255, 120, 90, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 14px rgba(160, 20, 10, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  user-select: none;
  white-space: nowrap;
}

/* 「为人民服务」用暖金配色，和「人民万岁」区分开 */
.slogan.slogan-serve {
  color: #ffeec2;
  background: linear-gradient(135deg, rgba(255, 190, 60, 0.26), rgba(255, 190, 60, 0.1));
  border-color: rgba(255, 205, 100, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 14px rgba(150, 95, 10, 0.26);
}

/* 「党在我心中 永远跟党走」用党旗深红 + 金色字 */
.slogan.slogan-party {
  color: #ffe08a;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  background: linear-gradient(135deg, rgba(196, 22, 28, 0.5), rgba(140, 10, 16, 0.28));
  border-color: rgba(255, 190, 90, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 4px 14px rgba(120, 10, 10, 0.3);
}

@media (max-width: 767px) {
  .bj-clock {
    margin: 0 0 0 auto;
    padding: 7px 11px 7px 10px;
    border-radius: 13px;
  }
  .bj-time { font-size: 17px; }
  .bj-meta { font-size: 10.5px; }
  .hero-head { gap: 8px 10px; }
  .hero-meta { gap: 6px; margin-left: auto; }
  .hero-meta .bj-clock { margin-left: 0; }
  .slogan { padding: 5px 9px; font-size: 11px; letter-spacing: 0.08em; border-radius: 10px; }
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.22em; color: var(--muted-2); }
/* 中文标语：中文字距不能照搬英文的 0.22em，否则散开难读 */
.eyebrow.eyebrow-cn {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #ffd9a0;
  text-shadow: 0 1px 6px rgba(222, 41, 16, 0.28);
}
.hero h1 { font-size: clamp(34px, 3.2vw, 62px); font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; }
.lede { color: var(--muted); margin: 14px 0 22px; max-width: 640px; }
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(9, 12, 24, 0.45);
  border: 1px solid var(--stroke);
  max-width: 620px;
}
.hero-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 8px 0; }
.hero-search input::placeholder { color: var(--muted-2); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick button {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.18s ease;
}
.quick button:hover { color: var(--txt); border-color: var(--stroke-hi); background: var(--glass-2); transform: translateY(-1px); }

/* 面板栅格 */
.panels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 16px; }
.span-6 { grid-column: span 6; }
.span-3 { grid-column: span 3; }
.card { padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h3 { font-size: 15px; }

/* 榜单 */
.rank-list li, .mini-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
  min-width: 0;
}
.rank-list li:hover, .mini-list li:hover { background: var(--glass-2); transform: translateX(2px); }
.rank-list li.playing, .mini-list li.playing { background: var(--accent-soft); }
.rank-list .rk { width: 20px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.rank-list li:nth-child(-n+3) .rk { color: var(--accent); }
.li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.li-name, .li-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-name { font-size: 14px; }
.li-sub { font-size: 12px; color: var(--muted); }
.li-dur { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.rank-list li.skeleton, .mini-list li.skeleton, .skeleton {
  height: 34px;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  cursor: default;
}
.skeleton.block { height: 132px; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* 音质卡 */
.quality-card .quality-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.big-q {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 随手听 */
.action-row { display: flex; flex-direction: column; gap: 8px; }
.tile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  font-size: 14px;
  transition: all 0.18s ease;
}
.tile-btn:hover { background: var(--glass-3); border-color: var(--stroke-hi); transform: translateY(-1px); }
.tile-btn b { color: var(--accent); }

/* 推荐歌单 */
.reco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.reco { cursor: pointer; min-width: 0; }
.reco img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.05); transition: transform 0.24s ease; }
.reco:hover img { transform: scale(1.03); }
.reco .t { margin-top: 8px; font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reco .s { font-size: 12px; color: var(--muted-2); }

/* ------------------------------------------------------------ 结果区 */

.results { display: flex; flex-direction: column; gap: 14px; }
.results-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  position: sticky;
  top: 78px;
  z-index: 30;
}
.results-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.results-title b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results-title span { font-size: 12px; }
.results-tools { flex: none; }

.song-list {
  padding: 10px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  box-shadow: var(--shadow-md), var(--shadow-hi);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.song-list.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  padding: 14px;
}
.song {
  display: grid;
  grid-template-columns: 34px 44px minmax(0, 1fr) minmax(0, 180px) minmax(0, 150px) 54px 74px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.16s ease;
  min-width: 0;
}
.song:hover { background: var(--glass-2); }
.song.playing { background: var(--accent-soft); }
.song.playing .idx { color: var(--accent); }
.song.bad { opacity: 0.5; }
.song .idx { font-size: 13px; color: var(--muted-2); text-align: center; font-variant-numeric: tabular-nums; }
.song .cover { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: rgba(255, 255, 255, 0.06); }
.song .name { font-size: 14px; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.song .name .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .tag {
  flex: none;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #ffce7a;
  border: 1px solid rgba(255, 206, 122, 0.4);
  background: rgba(255, 206, 122, 0.12);
}
.song .alias { font-size: 12px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .artist, .song .album { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .dur { font-size: 12.5px; color: var(--muted-2); text-align: right; font-variant-numeric: tabular-nums; }
.song .ops { display: flex; gap: 2px; justify-content: flex-end; }

.gcard { cursor: pointer; min-width: 0; }
.gcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.05); transition: transform 0.24s ease; }
.gcard:hover img { transform: scale(1.03); }
.gcard .t { margin-top: 8px; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard .s { font-size: 12px; color: var(--muted-2); }

.list-more { display: flex; justify-content: center; padding: 6px 0 0; }

/* ------------------------------------------------------------ 播放条 */

.playbar {
  position: fixed;
  z-index: 70;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: min(1280px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 22px;
}
.playbar::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) calc(var(--pg, 0) * 1%), rgba(255, 255, 255, 0.1) 0);
  opacity: 0;
  pointer-events: none;
}
.pb-left { display: flex; align-items: center; gap: 12px; min-width: 0; cursor: pointer; }
.pb-left img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: rgba(255, 255, 255, 0.07); flex: none; }
.pb-meta { min-width: 0; }
.pb-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-artist { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-center { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pb-btns { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pb-seek { display: flex; align-items: center; gap: 10px; }
.pb-seek span { font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.pb-seek .bar { flex: 1; }
.pb-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.vol { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.vol .i { width: 18px; height: 18px; }
.bar.vol { width: 92px; flex: none; }

/* ------------------------------------------------------------ 全屏播放器 */

.np { position: fixed; inset: 0; z-index: 90; overflow: hidden; }
.np-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(48px) saturate(150%);
  opacity: 0.5;
  transform: scale(1.1);
}
.np::before { content: ""; position: absolute; inset: 0; background: rgba(5, 7, 16, 0.55); backdrop-filter: blur(12px); }
.np-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  padding: 24px;
  overflow: auto;
}
.np-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.np-grid { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 28px; }
.np-left { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.np-cover { width: 100%; max-width: 340px; }
.np-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: rgba(255, 255, 255, 0.06); }
.np-left h2 { font-size: 22px; margin-top: 6px; }
.np-left p { margin: 0; font-size: 13.5px; }
.np-quality { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.np-seek { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.np-seek .bar { width: 100%; }
.np-times { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.np-btns { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.np-right { display: flex; flex-direction: column; gap: 12px; min-height: 380px; }
.lyric {
  flex: 1;
  min-height: 0; /* 允许在 flex 里被压缩，否则会被全部歌词撑高 */
  position: relative; /* 让 offsetTop 相对歌词容器，滚动定位才准 */
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  /* 上下边缘淡出，和网易云一样不硬切 */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.lyric p {
  margin: 0;
  padding: 9px 4px;
  color: var(--muted-2);
  font-size: var(--lyric-size, 15px);
  cursor: pointer;
  opacity: 0.5;
  transform-origin: left center;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
}
.lyric p:hover { color: var(--muted); opacity: 0.78; }
.lyric p.near { opacity: 0.72; }
.lyric p.active {
  color: var(--txt);
  opacity: 1;
  font-weight: 650;
  /* 用 scale 而不是改字号：不触发重排，滚动不会抖 */
  transform: scale(1.035);
}
.lyric p .tr { font-size: 13px; color: var(--muted); }
/* 上下留白：让第一句/最后一句都能滚到垂直中间（网易云的滚动观感） */
.lyric.synced::before,
.lyric.synced::after {
  content: "";
  display: block;
  /* 留白 = 半屏减半行，首行正好落在正中 */
  height: calc(50% - 22px);
  min-height: 90px;
}

/* 桌面端把播放页定高：歌词区在自己容器里滚动，不被整页撑开 */
@media (min-width: 768px) {
  .np-inner { height: min(820px, calc(100vh - 48px)); }
  .np-grid { height: 100%; min-height: 0; }
  .np-right { min-height: 0; }
}

/* ------------------------------------------------------------ 弹窗 / 抽屉 */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 6, 14, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: pop 0.22s ease;
}
.modal-card.wide { width: min(720px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.field > span { color: var(--muted); }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
.field.inline > span { flex: none; width: 70px; color: var(--muted); }
.field.inline .bar { flex: 1; }
.field.inline b { width: 46px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.field select, .field textarea, .field input[type="url"] {
  background: rgba(9, 12, 24, 0.5);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  outline: none;
  resize: vertical;
}
.field select:focus, .field textarea:focus, .field input:focus { border-color: var(--stroke-hi); }
.field select option { background: #131826; }
.modal-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.bg-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(9, 12, 24, 0.4); border: 1px solid var(--stroke); }
.bg-tab { flex: 1; padding: 8px 10px; border-radius: 999px; font-size: 13px; color: var(--muted); transition: all 0.18s ease; }
.bg-tab.on { color: var(--txt); background: var(--glass-3); }
.bg-pane { display: flex; flex-direction: column; gap: 12px; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.preset {
  position: relative;
  height: 66px;
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  overflow: hidden;
  color: #fff;
  font-size: 12.5px;
  display: flex;
  align-items: flex-end;
  padding: 8px 10px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.preset:hover { transform: translateY(-2px); border-color: var(--stroke-hi); }
.preset.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.preset[data-p="aurora"] { background: radial-gradient(300px 200px at 20% 10%, #4b31a8, transparent 70%), linear-gradient(150deg, #121734, #070910); }
.preset[data-p="ocean"] { background: radial-gradient(300px 200px at 20% 10%, #0b6b73, transparent 70%), linear-gradient(150deg, #0a2233, #05090f); }
.preset[data-p="sunset"] { background: radial-gradient(300px 200px at 20% 10%, #a15427, transparent 70%), linear-gradient(150deg, #2b1320, #0d0709); }
.preset[data-p="forest"] { background: radial-gradient(300px 200px at 20% 10%, #275c33, transparent 70%), linear-gradient(150deg, #0c2018, #050a07); }
.preset[data-p="sakura"] { background: radial-gradient(300px 200px at 20% 10%, #8a4a63, transparent 70%), linear-gradient(150deg, #241523, #0c0709); }
.preset[data-p="noir"] { background: linear-gradient(150deg, #14161f, #05060a); }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.18s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .i { width: 26px; height: 26px; color: var(--muted); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bg-controls { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; border-top: 1px solid var(--stroke); }

/* 链接解析结果卡片 */
.parse-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}
.parse-result img {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}
.pr-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pr-title { font-size: 14px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.pr-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.pr-actions .btn-primary, .pr-actions .btn-ghost { white-space: nowrap; }

@media (max-width: 560px) {
  .parse-result { flex-wrap: wrap; }
  .pr-actions { flex-direction: row; width: 100%; }
  .pr-actions > * { flex: 1; text-align: center; }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  justify-content: flex-end;
  background: rgba(4, 6, 14, 0.5);
  backdrop-filter: blur(8px);
}
.drawer-inner {
  width: min(520px, 100%);
  height: 100%;
  padding: 20px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  animation: slide 0.24s ease;
}
@keyframes slide { from { transform: translateX(24px); opacity: 0.6; } }
.drawer-actions { display: flex; justify-content: flex-end; }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(var(--bar-h) + 26px);
  transform: translateX(-50%);
  max-width: min(560px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(10, 13, 26, 0.86);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  text-align: center;
  animation: pop 0.2s ease;
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------ ≥1240 双栏 */

@media (min-width: 1240px) {
  .landing { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 16px; align-items: start; }
  .hero { margin: 0; position: sticky; top: 92px; }
  .panels { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-6 { grid-column: span 2; }
  .span-3 { grid-column: span 1; }
}

/* ------------------------------------------------------------ 768–1239 单栏 */

@media (max-width: 1239px) {
  .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-6 { grid-column: span 2; }
  .span-3 { grid-column: span 1; }
  .hero { margin-bottom: 16px; }
}

@media (max-width: 1000px) {
  .song { grid-template-columns: 30px 42px minmax(0, 1fr) minmax(0, 130px) 50px 70px; }
  .song .album { display: none; }
}

/* ------------------------------------------------------------ <768 移动端 */

@media (max-width: 767px) {
  :root { --bar-h: 74px; }
  .topbar {
    top: 8px;
    width: calc(100% - 16px);
    padding: 8px 11px;
    row-gap: 8px;
    gap: 10px;
    flex-wrap: wrap;
  }
  /* 功能按钮全部收进侧边抽屉，顶栏只留「品牌 + 搜索 + 菜单」，不再挤压遮挡 */
  .top-actions { display: none !important; }
  #btnSearchToggle { margin-left: auto; }
  .search { display: none; }
  .search.on { display: flex; order: 4; flex-basis: 100%; }
  .search input { font-size: 15px; }
  .brand-text { font-size: 13.5px; letter-spacing: 0.1em; }
  .flag { width: 22px; height: 15px; border-radius: 2.5px; }

  .stage { padding: calc(var(--topbar-h, 96px) + 16px) 12px calc(var(--bar-h) + 28px); }
  .hero { padding: 26px 20px 22px; border-radius: var(--r-md); }
  .hero h1 { font-size: clamp(34px, 3.2vw, 62px); font-size: 30px; }
  .lede { font-size: 14px; }
  .hero-search { padding: 6px 6px 6px 12px; }
  .hero-search .btn-primary { padding: 8px 14px; }

  .panels { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .span-6, .span-3 { grid-column: span 1; }
  .card { padding: 15px 14px 12px; border-radius: var(--r-md); }
  .reco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .results-head { top: 116px; padding: 10px 12px; }
  .song-list { padding: 8px; border-radius: var(--r-md); }
  .song { grid-template-columns: 26px 42px minmax(0, 1fr) 46px; gap: 8px; padding: 6px 6px; }
  .song .artist, .song .album { display: none; }
  .song .alias { display: none; }
  .song .ops { display: none; }
  .song .name { font-size: 13.5px; }

  /* 移动端 mini-player */
  .playbar {
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 20px;
  }
  .playbar::before { opacity: 1; left: 12px; right: 12px; }
  .pb-left img { width: 42px; height: 42px; border-radius: 11px; }
  .pb-center { flex-direction: row; align-items: center; gap: 4px; }
  .pb-btns { gap: 2px; }
  .pb-btns #btnFavCur,
  .pb-btns #btnAddCur { display: none; }
  .pb-btns .icon-btn { display: inline-flex; flex: none; }
  .pb-btns .play-btn { flex: none; }
  .pb-seek, .pb-right { display: none; }
  .playbar .play-btn { width: 42px; height: 42px; }
  .playbar .play-btn .i { width: 20px; height: 20px; }

  /* 全屏播放器改单列：左栏占内容高度，歌词吃满剩余并自己滚动 */
  .np-inner {
    width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; border: 0;
    padding: 18px 16px;
    display: flex; flex-direction: column; overflow: hidden;
  }
  .np-grid {
    flex: 1; min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
  }
  .np-cover { max-width: 220px; }
  .np-left h2 { font-size: 19px; }
  .np-right { min-height: 0; }
  .lyric { max-height: none; min-height: 0; }

  .modal-card { border-radius: var(--r-md); padding: 16px; }
  .drawer-inner { width: 100%; padding: 16px; }
  .toast { bottom: calc(var(--bar-h) + 20px); border-radius: var(--r-md); }
  .cookie-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------------- 站内上传 ---------------- */
#upList .rk, #upManageList .rk {
  width: 20px;
  flex: none;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
#upList .nm, #upManageList .nm {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#upList .ar, #upManageList .ar {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 48%;
}
#upList .du { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
#upList .up-ops { display: flex; gap: 4px; flex: none; margin-left: auto; opacity: 0.85; }
#upList li:hover .up-ops { opacity: 1; }
#upManageList .up-ops { display: flex; gap: 4px; flex: none; margin-left: auto; }
.up-empty { padding: 10px; }
.up-foot { margin-top: 10px; }
.up-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.up-manage {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}
.up-manage-head { margin-bottom: 6px; }
#upManageList { max-height: 280px; overflow-y: auto; }
@media (max-width: 560px) {
  .up-meta { grid-template-columns: 1fr; }
  #upList .ar { display: none; }
}

/* ---------------- 背景：站点 / 我的 两级切换 ---------------- */
.bg-scope { display: flex; flex-direction: column; gap: 7px; }
.bg-scope-btns {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(9, 12, 24, 0.42);
  border: 1px solid var(--stroke);
}
.scope-btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  transition: all 0.18s ease;
}
.scope-btn:hover { color: var(--txt); }
.scope-btn.on {
  color: #07101f;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 16px rgba(127, 196, 255, 0.24);
}
.bg-scope-hint { margin: 0 2px; font-size: 11.5px; line-height: 1.5; color: var(--muted-2); }

/* ---------------- 站长公告条 ---------------- */
.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px 13px 15px;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(127, 196, 255, 0.14), rgba(183, 156, 255, 0.1));
  border: 1px solid rgba(127, 196, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 26px rgba(3, 5, 16, 0.28);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  animation: nbIn 0.34s ease;
}
@keyframes nbIn {
  from { opacity: 0; transform: translateY(-6px); }
}
.notice-bar.warn {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(251, 113, 133, 0.1));
  border-color: rgba(251, 191, 36, 0.32);
}
.notice-bar.success {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 211, 238, 0.1));
  border-color: rgba(74, 222, 128, 0.3);
}
.nb-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
.notice-bar.warn .nb-icon { color: var(--warn); }
.notice-bar.success .nb-icon { color: var(--ok); }
.nb-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nb-body { flex: 1; min-width: 0; }
.nb-body b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.nb-body p { margin: 0; font-size: 12.8px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.nb-close {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  transition: color 0.16s ease, background 0.16s ease;
}
.nb-close .i { width: 13px; height: 13px; }
.nb-close:hover { color: var(--txt); background: rgba(255, 255, 255, 0.16); }
@media (max-width: 767px) {
  .notice-bar { padding: 11px 11px 11px 13px; gap: 9px; margin-bottom: 11px; }
  .nb-body b { font-size: 13px; }
  .nb-body p { font-size: 12.2px; }
}

/* ---------------- 登录 / 我的账号 ---------------- */
.auth-who { margin: 6px 0 6px; font-size: 14px; }
.auth-who b { color: var(--txt); }
#authMsg, #authPassMsg { color: var(--accent); }
#authPanel .modal-actions { flex-wrap: wrap; }

/* 上传弹窗里的身份 / 配额提示 */
.up-who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: rgba(9, 12, 24, 0.35);
  border: 1px solid var(--stroke);
  margin-bottom: 10px;
}
.up-who b { color: var(--txt); }
.up-who .quota-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--glass-2);
  overflow: hidden;
  flex: 1 1 120px;
  min-width: 80px;
}
.up-who .quota-bar i { display: block; height: 100%; background: var(--accent); }
#upList .own, #upManageList .own { font-size: 11.5px; color: var(--accent); }

/* ============================================================
   MIUIX 登录卡 · Monet 动态取色 · 液态玻璃
   - Monet：JS 从壁纸提取主色写入 --monet / --monet-2（失败退回品牌色）
   - 液态玻璃：多层半透明 + backdrop blur/saturate + 边缘高光 + 内阴影 + 流动高光
   ============================================================ */

:root {
  --monet: var(--accent);
  --monet-2: var(--accent2);
  --monet-soft: var(--accent-soft);
  --monet-ink: #07101f;
}

.auth-scene {
  background: rgba(4, 6, 14, 0.42);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.modal-card.miuix-card {
  position: relative;
  isolation: isolate;
  width: min(366px, 100%);
  padding: 26px 20px 16px;
  gap: 0;
  border-radius: 34px;
  overflow: hidden;
  color: var(--txt);
  background:
    linear-gradient(158deg,
      rgba(255, 255, 255, 0.17) 0%,
      rgba(255, 255, 255, 0.06) 34%,
      rgba(255, 255, 255, 0.025) 62%,
      rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(36px) saturate(185%);
  -webkit-backdrop-filter: blur(36px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.58),
    0 3px 0 rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 70px rgba(255, 255, 255, 0.045);
}

/* 流动高光（液态玻璃的“液体”感） */
.liquid-sheen {
  position: absolute;
  inset: -45% -12%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  filter: blur(28px) saturate(150%);
  background:
    radial-gradient(38% 28% at 20% 12%, rgba(255, 255, 255, 0.6), transparent 62%),
    radial-gradient(34% 26% at 84% 6%, color-mix(in srgb, var(--monet) 62%, transparent), transparent 64%),
    radial-gradient(62% 42% at 50% 104%, color-mix(in srgb, var(--monet-2) 46%, transparent), transparent 72%);
  animation: liquidFlow 16s ease-in-out infinite alternate;
}
@keyframes liquidFlow {
  0% { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  50% { transform: translate3d(2.5%, 1.5%, 0) scale(1.07); }
  100% { transform: translate3d(-1.5%, 2.5%, 0) scale(1.03); }
}

.miuix-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.miuix-close .i { width: 15px; height: 15px; }
.miuix-close:hover { color: var(--txt); background: rgba(255, 255, 255, 0.16); }
.miuix-close:active { transform: scale(0.92); }

/* MIUIX 头部：大圆角徽标 + 大标题 + 副标题 */
.miuix-hero { text-align: center; padding: 6px 0 18px; }
.miuix-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 13px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--monet), var(--monet-2));
  box-shadow:
    0 14px 32px color-mix(in srgb, var(--monet) 42%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 10px rgba(0, 0, 0, 0.14);
}
.miuix-badge svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--monet-ink);
  stroke-width: 1.9;
  stroke-linecap: round;
}
.miuix-title { font-size: 22px; font-weight: 700; letter-spacing: 0.02em; }
.miuix-sub { margin: 7px auto 0; max-width: 260px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

/* MIUIX 分段控件（滑块指示器跟随 --seg） */
#authModal .bg-tabs.miuix-seg {
  position: relative;
  display: flex;
  gap: 0;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(8, 10, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#authModal .bg-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  transition: color 0.22s ease;
}
#authModal .bg-tab.on { color: var(--monet-ink); background: transparent; }
.miuix-seg-ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--monet), var(--monet-2));
  box-shadow:
    0 8px 18px color-mix(in srgb, var(--monet) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateX(calc(var(--seg, 0) * 100%));
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 表单与胶囊输入 */
.miuix-form { display: flex; flex-direction: column; gap: 10px; }
.miuix-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 10px rgba(0, 0, 0, 0.16);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.miuix-input:focus-within {
  border-color: color-mix(in srgb, var(--monet) 72%, transparent);
  background: rgba(255, 255, 255, 0.11);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--monet) 24%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 6px 20px rgba(0, 0, 0, 0.2);
}
.miuix-input .i { width: 18px; height: 18px; flex: none; color: var(--muted); transition: color 0.18s ease; }
.miuix-input:focus-within .i { color: var(--monet); }
.miuix-input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: 0;
  outline: none;
  font-size: 15px;
  color: var(--txt);
}
.miuix-input input::placeholder { color: var(--muted-2); }
.miuix-eye {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease;
}
.miuix-eye .i { width: 17px; height: 17px; }
.miuix-eye.on { color: var(--monet); background: color-mix(in srgb, var(--monet) 18%, transparent); }

/* 主按钮（液态高光扫过） */
.miuix-btn {
  position: relative;
  margin-top: 4px;
  height: 50px;
  border-radius: 25px;
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--monet-ink);
  background: linear-gradient(135deg, var(--monet), var(--monet-2));
  box-shadow:
    0 14px 30px color-mix(in srgb, var(--monet) 36%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -2px 8px rgba(0, 0, 0, 0.14);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}
.miuix-btn::after {
  content: '';
  position: absolute;
  inset: -60% -25%;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.55) 48%, transparent 64%);
  transform: translateX(-130%);
  transition: transform 0.75s ease;
}
.miuix-btn:hover::after { transform: translateX(130%); }
.miuix-btn:hover { filter: brightness(1.05); }
.miuix-btn:active { transform: scale(0.984); }
.miuix-btn:disabled { opacity: 0.6; }
.miuix-btn.ghost {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.miuix-btn.ghost::after { display: none; }

.miuix-msg { min-height: 16px; margin: 2px 2px 0; font-size: 12.5px; color: var(--accent); text-align: center; }
.miuix-msg:empty { min-height: 0; margin: 0; }

/* 已登录面板 */
.miuix-user { display: flex; align-items: center; gap: 12px; padding: 2px 2px 4px; }
.miuix-avatar {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 19px;
  color: var(--monet-ink);
  background: linear-gradient(140deg, var(--monet), var(--monet-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 22px color-mix(in srgb, var(--monet) 32%, transparent);
}
.miuix-userinfo { min-width: 0; }
.miuix-userinfo .auth-who { margin: 0 0 3px; font-size: 15px; }
.miuix-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.miuix-chip {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--txt);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.16s ease, background 0.16s ease;
}
.miuix-chip:hover { background: rgba(255, 255, 255, 0.13); }
.miuix-chip:active { transform: scale(0.97); }
.miuix-chip.danger { color: #ff9fae; }

/* 底部状态 */
.miuix-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 15px 0 0;
  font-size: 11.5px;
  color: var(--muted-2);
}
.miuix-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--monet), var(--monet-2));
  box-shadow: 0 0 10px color-mix(in srgb, var(--monet) 75%, transparent);
  animation: monetPulse 2.8s ease-in-out infinite;
}
@keyframes monetPulse {
  50% { transform: scale(1.55); opacity: 0.5; }
}

@media (max-width: 767px) {
  .modal-card.miuix-card { border-radius: 30px; padding: 24px 16px 14px; }
  .miuix-hero { padding-bottom: 14px; }
  .miuix-badge { width: 58px; height: 58px; border-radius: 20px; }
  .miuix-title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-sheen { animation: none; }
  .miuix-dot { animation: none; }
  .miuix-btn::after { display: none; }
}

/* ---------------- 背景观感优化 ---------------- */
/* 暗角：四周压暗，中间留亮，避免图片边缘与卡片抢视觉 */
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(125% 95% at 50% 28%, transparent 42%, rgba(3, 5, 12, 0.5) 100%);
}
/* 只在有图片时轻微增压饱和 + 压暗，保证前景文字对比度 */
.bg.has-image .bg-img { filter: blur(var(--bg-blur)) saturate(calc(var(--bg-sat) + 0.03)) brightness(var(--bg-bright)); }
.bg-img { will-change: opacity, filter; }

@media (max-width: 767px) {
  /* 手机 GPU 弱：模糊减半 + 停掉漂浮光斑动画，滚动与播放都不掉帧 */
  .bg-img { filter: blur(calc(var(--bg-blur) * 0.5)) saturate(var(--bg-sat)) brightness(calc(var(--bg-bright) - 0.04)); }
  .blob { animation: none; filter: blur(64px); }
  .bg::after { background: radial-gradient(120% 90% at 50% 24%, transparent 38%, rgba(3, 5, 12, 0.58) 100%); }
  /* 全面屏安全区：顶栏与底部播放条避开刘海/小白条 */
  .topbar { top: max(8px, env(safe-area-inset-top, 0px)); }
}

/* ---------------- 移动端侧边抽屉 ---------------- */
.only-mobile { display: none !important; }
.side-mask,
.side-drawer { display: none; }

@media (max-width: 767px) {
  .only-mobile { display: inline-flex !important; }

  .side-mask {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(4, 6, 14, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .side-mask.on { opacity: 1; pointer-events: auto; }

  .side-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 91;
    width: min(302px, 84vw);
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 15, 28, 0.94);
    backdrop-filter: blur(26px) saturate(150%);
    border-left: 1px solid var(--stroke);
    box-shadow: -18px 0 46px rgba(0, 0, 0, 0.45);
    transform: translateX(103%);
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow-y: auto;
  }
  .side-drawer.on { transform: none; }

  .side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 14px;
    border-bottom: 1px solid var(--stroke);
    margin-bottom: 10px;
  }
  .side-head b { font-size: 15px; letter-spacing: 0.06em; }

  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 12px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--txt);
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease;
  }
  .side-item:hover,
  .side-item:active { background: var(--glass-2); transform: translateX(2px); }
  .side-item .i { width: 20px; height: 20px; flex: none; color: var(--muted); }
  .side-item span { flex: 1; min-width: 0; }
  .side-item em {
    font-style: normal;
    font-size: 12px;
    color: var(--muted-2);
    font-variant-numeric: tabular-nums;
  }
  .side-tip { margin: 14px 4px 0; font-size: 12px; color: var(--muted-2); }
}


/* ---------------- 站点稳定运行时间 ---------------- */
.uptime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(9, 12, 24, 0.42);
  border: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--muted);
  backdrop-filter: blur(8px);
}
.up-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: upPulse 2s ease-in-out infinite;
}
@keyframes upPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.up-val {
  color: var(--txt);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-weight: 700;
}

/* ---------------- 我的歌单 ---------------- */
.pl-card {
  width: min(580px, 94vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.pl-head-ops { display: flex; align-items: center; gap: 8px; }
.pl-card .card-head { align-items: center; }
.pl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 2px;
}
.pl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  transition: background 0.16s ease;
}
.pl-item:hover { background: rgba(255, 255, 255, 0.09); }
.pl-item-main { flex: 1; min-width: 0; cursor: pointer; }
.pl-item-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-item-meta { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.pl-item-ops { display: flex; gap: 6px; flex: none; }
.pl-detail-head { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.pl-detail-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
#plTracks { overflow-y: auto; margin-top: 8px; }
@media (max-width: 767px) {
  .pl-card { width: 94vw; max-height: 82vh; }
  .uptime { font-size: 11px; padding: 6px 11px; }
}

/* 歌单广场 / 我的 切换 */
.pl-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(9, 12, 24, 0.42);
  border: 1px solid var(--stroke);
  margin-top: 10px;
}
.pl-tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all 0.18s ease;
}
.pl-tab:hover { color: var(--txt); }
.pl-tab.on {
  color: #07101f;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* 歌单弹窗里的曲目行：单行省略，别被挤成竖排 */
#plTracks .song {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
}
#plTracks .song .idx {
  width: 22px;
  flex: none;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
#plTracks .song .meta { flex: 1; min-width: 0; }
#plTracks .song .meta .t {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#plTracks .song .meta .s {
  font-size: 11.5px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#plTracks .song .dur {
  flex: none;
  font-size: 11.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
#plTracks .song .icon-btn { flex: none; }
#plTracks { max-height: 46vh; overflow-y: auto; }

/* ---------------- 首页：我的歌单卡片 ---------------- */
.mypl-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.mypl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  cursor: pointer;
  transition: background 0.16s ease;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
}
.mypl-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mypl-row .cnt { font-size: 11px; color: var(--muted-2); flex: none; }
.mypl-row .icon-btn { flex: none; }
.mypl-row:hover { background: rgba(255, 255, 255, 0.09); }

/* ---------------- 进站欢迎浮窗（党徽 + 国旗） ---------------- */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(30, 12, 12, 0.92), rgba(3, 4, 8, 0.96));
  backdrop-filter: blur(10px);
  animation: welcomeIn 0.35s ease;
}
@keyframes welcomeIn { from { opacity: 0; } to { opacity: 1; } }
.welcome-card {
  width: min(420px, 94vw);
  padding: 26px 22px 20px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid rgba(245, 197, 24, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: welcomePop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes welcomePop { from { transform: translateY(14px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.welcome-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}


.welcome-flag {
  width: 174px;
  height: 116px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 24px rgba(200, 16, 46, 0.35);
}
.welcome-flag svg { width: 100%; height: 100%; display: block; }
.welcome-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffd76a;
  text-shadow: 0 2px 12px rgba(200, 16, 46, 0.5);
}
.welcome-sub {
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #ffcf9a;
  font-weight: 600;
}
.welcome-btn { margin-top: 20px; width: 100%; }
.welcome-tip { margin-top: 10px; font-size: 11.5px; color: var(--muted-2); }
@media (max-width: 767px) {
  
  .welcome-flag { width: 132px; height: 88px; }
  .welcome-title { font-size: 18px; letter-spacing: 0.1em; }
}



/* ---------------- 进站装载条（绿色 loader） ---------------- */
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 50% 30%, #14161c 0%, #05060a 72%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.boot-loader.on { opacity: 1; visibility: visible; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.boot-title {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #e8f7ef;
}
.boot-sub { font-size: 12.5px; color: #c9cfdb; letter-spacing: 0.14em; }
.boot-bar {
  width: 220px;
  height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.boot-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  transition: width 0.18s linear;
}
.boot-pct {
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
@media (max-width: 767px) {
  .boot-bar { width: 170px; }
  .boot-title { font-size: 16px; }
}

/* 进站装载条里的 loader（From Uiverse.io by catraco，绿色版） */
.boot-loader .loader {
  --color: #ffffff;
  --size: 58px;
  position: relative;
  width: var(--size);
  height: var(--size);
}
.boot-loader .loader span {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid var(--color);
  border-bottom: 1px solid transparent;
  border-radius: 100%;
  animation: loaderRotate 0.8s infinite linear;
}
.boot-loader .loader svg {
  width: 100%;
  height: 100%;
  padding: 25%;
  fill: var(--color);
  animation: loaderBlink 0.8s infinite ease-in-out;
}
@keyframes loaderRotate {
  0% { transform: rotate(360deg); }
}
@keyframes loaderBlink {
  50% { opacity: 0.8; }
}



/* ---------------- UI 优化：搜索结果行反馈 + 结果头部 ---------------- */
.song {
  transition: background 0.15s ease, transform 0.15s ease;
}
.song:hover {
  background: var(--glass-2);
  transform: translateX(2px);
}
.song:hover .idx {
  color: var(--accent);
  font-weight: 700;
}
.song.playing {
  box-shadow: inset 3px 0 0 var(--accent);
}
#resultsMeta {
  font-variant-numeric: tabular-nums;
}
.results-head {
  transition: box-shadow 0.2s ease;
}

/* ---------------- 站内音乐翻页 ---------------- */
.up-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 2px;
}
.up-pager button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  color: var(--txt);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.up-pager button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.up-pager button:disabled { opacity: 0.32; cursor: default; }
.up-pager .pg-info {
  font-size: 12px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}



/* ============================================================
   界面质感调节（弹窗内滑块控制 --ui-blur / --ui-alpha / --ui-radius）
   ============================================================ */
.ui-tune-head {
  margin: 14px 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* ---------------- 歌词工具条 + 纯歌词页 ---------------- */
.lyric-tools { display: flex; align-items: center; gap: 4px; }
.lyric-tools .icon-btn b { font-size: 11px; }
.ly-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--lyric-color, #f3f6ff);
}
.lyric p { font-size: var(--lyric-size, 15px); }
.lyric p.active { color: var(--lyric-color, var(--accent)); }

.lyric-full {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 100% at 50% 0%, rgba(16, 20, 36, 0.96), rgba(4, 6, 12, 0.98));
  backdrop-filter: blur(6px);
}
.lf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px clamp(14px, 3vw, 48px);
  border-bottom: 1px solid var(--stroke);
}
.lf-head b { font-size: 15px; }
.lf-ops { display: flex; align-items: center; gap: 4px; }
.lf-body {
  flex: 1;
  min-height: 0;
  position: relative; /* 保证 offsetTop 相对歌词区 */
  overflow-y: auto;
  padding: 18px 0;
  text-align: center;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
/* 上下留白：首句/末句也能滚到正中 */
.lf-body::before,
.lf-body::after {
  content: "";
  display: block;
  height: calc(50% - 22px);
  min-height: 90px;
}
.lf-body p.near { color: rgba(232, 238, 255, 0.66); }
.lf-body p {
  margin: 0 auto 18px;
  max-width: min(880px, 88vw);
  padding: 0 clamp(14px, 4vw, 60px);
  font-size: var(--lyric-size, 15px);
  line-height: 1.7;
  color: rgba(232, 238, 255, 0.45);
  transition: color 0.2s ease, transform 0.2s ease;
}
.lf-body p .tr { display: block; font-size: 0.82em; opacity: 0.7; margin-top: 4px; }
.lf-body p.active {
  color: var(--lyric-color, var(--accent));
  transform: scale(1.04);
  font-weight: 600;
  text-shadow: 0 0 24px rgba(127, 196, 255, 0.35);
}

/* ---------------- 听歌历史 ---------------- */
.hist-card { width: min(680px, 94vw); max-height: 80vh; display: flex; flex-direction: column; }
.hist-list { overflow-y: auto; }
.hist-list .song { cursor: pointer; }

@media (max-width: 767px) {
}

/* ============================================================
   手机端适配（界面质感 / 歌词 / 纯歌词页 / 历史）
   ============================================================ */
@media (max-width: 767px) {
  /* 歌词工具条：小屏收紧，避免挤爆 */
  .lyric-tools { gap: 2px; }
  .lyric-tools .icon-btn { width: 30px; height: 30px; }
  .lyric-tools .badge { display: none; }
  .lyric-tools .icon-btn b { font-size: 10px; }
  .ly-dot { width: 11px; height: 11px; }

  /* 纯歌词页：小屏字号/内边距 */
  .lyric-full .lf-head { padding: 12px 14px; }
  .lf-body { padding: 14px 0; }
  .lf-body p { margin-bottom: 14px; padding: 0 18px; }

  /* 听歌历史弹窗：占满宽度 */
  .hist-card { width: 94vw; max-height: 78vh; padding: 14px; }
  .hist-list .song { grid-template-columns: 26px minmax(0, 1fr) 46px; }

  /* 界面质感滑块：标签与数值不换行错位 */
  .modal-card .field.inline { align-items: center; gap: 8px; }
  .modal-card .field.inline > span { flex: 0 0 88px; font-size: 12.5px; }
  .modal-card .field.inline input[type="range"] { flex: 1; min-width: 0; }
  .modal-card .field.inline em { flex: 0 0 42px; text-align: right; font-size: 12px; }
  .ui-tune-head { margin: 12px 0 6px; }
}

/* 触控设备：拖动/hover 反馈不要太重 */
@media (hover: none) {
  .song:hover { transform: none; }
  .pl-item:hover, .mypl-row:hover { background: rgba(255, 255, 255, 0.05); }
}

/* ---------------- 背景：电脑/手机 双套 ---------------- */
.bg-variant-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
}
.bg-var {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bg-var.on { background: var(--accent-soft); color: var(--txt); font-weight: 600; }
.bg-var:hover:not(.on) { color: var(--txt); }
#bgVarHint { margin: 0 0 8px; }
@media (max-width: 767px) {
  .bg-var { font-size: 12px; padding: 7px 6px; }
}

/* ---------------- 香港特别行政区区旗（紧跟国旗） ---------------- */
.flag-hk,
.flag-mo,
.flag-tw {
  /* 抵消 .brand 的 flex gap，让几面旗紧贴（净间距约 4px） */
  margin-left: -8px;
}
.flag-tw text { letter-spacing: 0.5px; }
@media (max-width: 560px) {
  .flag-hk, .flag-mo, .flag-tw { width: 19px; height: 13px; margin-left: -6px; }
}

/* ---------------- 站点底部法律入口 ---------------- */
.site-foot {
  margin: 34px 0 0;
  padding: 22px 12px 6px;
  border-top: 1px solid var(--stroke);
  text-align: center;
}
.site-foot-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.site-foot-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13.5px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.site-foot-links a:hover {
  border-bottom-color: var(--accent);
  opacity: 0.9;
}
.sf-dot { color: var(--muted-2); }
.sf-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.sf-dim { color: var(--muted-2); font-size: 11.5px; }

/* ============================================================
   站内聊天（联系管理员）—— 布局思路参考 IM：气泡 / 时间分组 / 未读
   ============================================================ */
.chat-fab {
  position: fixed;
  right: 18px;
  bottom: calc(var(--bar-h) + 16px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--stroke-hi);
  background: linear-gradient(140deg, var(--accent), var(--accent2));
  color: #06101f;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 80;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.03); }
.chat-fab .i { width: 24px; height: 24px; stroke-width: 1.8; }
.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d5e;
  color: #fff;
  font-size: 11px;
  line-height: 19px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 77, 94, 0.5);
}

.chat-panel {
  position: fixed;
  right: 18px;
  bottom: calc(var(--bar-h) + 18px);
  width: 360px;
  height: 520px;
  max-height: calc(100vh - var(--bar-h) - 60px);
  z-index: 95;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke-hi);
  background: rgba(14, 18, 32, 0.92);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}
.chat-back {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}
.chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-title b { font-size: 14px; }
.chat-status { font-size: 11.5px; color: var(--muted-2); margin-top: 1px; }
.chat-body { flex: 1; display: flex; min-height: 0; }
.chat-threads {
  width: 132px;
  flex: none;
  overflow-y: auto;
  border-right: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}
.chat-thread {
  padding: 9px 10px;
  border: 0;
  background: none;
  color: var(--txt);
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
}
.chat-thread.on { background: var(--accent-soft); }
.chat-thread .t-n { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.chat-thread .t-n b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread .t-p { color: var(--muted-2); font-size: 11px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread .t-dot {
  flex: none;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #ff4d5e;
  color: #fff;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  padding: 0 4px;
}
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.chat-empty { text-align: center; color: var(--muted-2); font-size: 12.5px; margin: 28px 8px; line-height: 1.9; }
.chat-time {
  align-self: center;
  font-size: 11px;
  color: var(--muted-2);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  margin: 4px 0;
}
.msg {
  max-width: 78%;
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  animation: msgIn 0.16s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.msg.mine {
  align-self: flex-end;
  background: linear-gradient(140deg, var(--accent), var(--accent2));
  color: #06101f;
  border-bottom-right-radius: 5px;
}
.msg.theirs {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--stroke);
  color: var(--txt);
  border-bottom-left-radius: 5px;
}
.msg .who { display: block; font-size: 10.5px; opacity: 0.7; margin-bottom: 2px; }
.chat-foot {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 9px 10px 10px;
  border-top: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}
.chat-input {
  flex: 1;
  min-height: 36px;
  max-height: 96px;
  resize: none;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.28);
  color: var(--txt);
  font: inherit;
  font-size: 13.5px;
  padding: 8px 10px;
  outline: none;
}
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(140deg, var(--accent), var(--accent2));
  color: #06101f;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.chat-send .i { width: 17px; height: 17px; }
.chat-send:disabled { opacity: 0.45; cursor: default; }

@media (max-width: 767px) {
  .chat-fab { right: 12px; bottom: calc(var(--bar-h) + 12px); width: 46px; height: 46px; }
  .chat-fab .i { width: 21px; height: 21px; }
  .chat-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    z-index: 130;
  }
  .chat-threads { width: 118px; }
  .msg { max-width: 84%; font-size: 14px; }
  .chat-input { font-size: 16px; } /* 防 iOS 聚焦放大 */
  .chat-foot { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* ---------------- 仕途模拟入口（顶栏链接 + 侧边抽屉链接） ---------------- */
a.icon-btn, a.side-item { text-decoration: none; }
a.icon-btn { display: inline-flex; align-items: center; justify-content: center; }
a.side-item { display: flex; align-items: center; gap: 10px; width: 100%; }

/* 站内上传的纯文本歌词（无时间轴） */
.lyric-plain p { margin: 0 0 6px; }

/* 歌词不对：候选选择浮层 */
.lyric-fix-pop {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 200; width: min(420px, 92vw); max-height: 80vh; overflow-y: auto;
  border-radius: 16px; border: 1px solid var(--stroke-hi);
  background: rgba(16, 21, 36, 0.97); backdrop-filter: blur(18px);
  padding: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.lfp-head { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.lfp-head span { color: var(--muted-2); font-size: 12px; }
.lfp-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.lfp-list button {
  text-align: left; border: 1px solid var(--stroke); border-radius: 11px;
  background: rgba(255, 255, 255, 0.04); color: var(--txt);
  padding: 9px 12px; cursor: pointer; font: inherit; font-size: 13px;
}
.lfp-list button:hover { border-color: var(--accent); background: rgba(127, 196, 255, 0.1); }
.lfp-list button b { display: block; font-weight: 600; }
.lfp-list button span { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 1px; }
.lfp-close {
  width: 100%; padding: 9px; border-radius: 11px; border: 1px solid var(--stroke);
  background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer;
}

/* ---------------- MIUI 风格侧栏：跟手拖动 ---------------- */
.side-drawer.dragging,
.side-mask.dragging {
  transition: none !important;
}
/* 打开抽屉时锁住页面滚动，避免背景跟着动 */
body.side-open {
  overflow: hidden;
  touch-action: none;
}
/* 右边缘那一条极淡的提示（小米侧栏的"可拉"暗示） */
.edge-hint {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 64px;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(180deg, rgba(127, 196, 255, 0.55), rgba(183, 156, 255, 0.25));
  opacity: 0.5;
  z-index: 60;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
@media (max-width: 767px) {
  .edge-hint { display: block; }
}
@media (min-width: 768px) {
  .edge-hint { display: none; }
}

.lfp-search { display: flex; gap: 7px; margin-bottom: 10px; }
.lfp-search input {
  flex: 1; min-width: 0;
  border: 1px solid var(--stroke); border-radius: 10px;
  background: rgba(0, 0, 0, 0.3); color: var(--txt);
  padding: 8px 11px; font: inherit; font-size: 13.5px; outline: none;
}
.lfp-search input:focus { border-color: var(--accent); }
.lfp-search button {
  flex: none; padding: 8px 14px; border-radius: 10px; border: 0;
  background: linear-gradient(140deg, var(--accent), var(--accent2));
  color: #06101f; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.lfp-empty { margin: 8px 0; font-size: 12.5px; color: var(--muted-2); text-align: center; }

/* ---------------- 乐友圈：正在同听 / 图片 / 更多菜单 ---------------- */
.playing-strip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0 10px; overflow: hidden;
}
.ps-label {
  flex: none; font-size: 11.5px; color: var(--muted-2);
  border: 1px solid var(--stroke); border-radius: 999px; padding: 2px 9px;
}
.ps-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ps-list::-webkit-scrollbar { display: none; }
.ps-item {
  flex: none; display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--stroke); border-radius: 999px;
  background: var(--glass); padding: 3px 10px 3px 4px; font-size: 11.5px; color: var(--muted);
}
.ps-item img, .ps-av { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.ps-av { display: grid; place-items: center; background: linear-gradient(140deg, var(--accent), var(--accent2)); color: #06101f; font-size: 10px; font-weight: 700; }

.comp-media { position: relative; display: flex; align-items: center; gap: 10px; }
.comp-media img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.comp-media button {
  border: 1px solid var(--stroke); background: none; color: var(--muted);
  border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 11.5px; cursor: pointer;
}

.post-menu {
  position: fixed; z-index: 150; min-width: 132px;
  border-radius: 12px; border: 1px solid var(--stroke-hi);
  background: rgba(16, 21, 36, 0.98); backdrop-filter: blur(14px);
  padding: 5px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.post-menu.hidden { display: none; }
.post-menu button {
  display: block; width: 100%; text-align: left;
  border: 0; background: none; color: var(--txt);
  padding: 9px 11px; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer;
}
.post-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.post-menu button.danger { color: var(--bad); }

/* ===================================================================
   桌面端可读性优化 v1（2026-10-28）

   目标：歌名/艺人成为最好找、最好读的东西。
   范围：对比度、列表栅格、字号、公告折叠、首屏比例。
   移动端（<768px）保持原样，下面的规则全部用 min-width 圈住。
   =================================================================== */

/* ---------- 1. 文字层级：次要文字提亮，正文不再靠壁纸兜底 ---------- */
:root {
  --muted: rgba(232, 238, 255, 0.74);   /* 原 .62 */
  --muted-2: rgba(232, 238, 255, 0.56); /* 原 .40，只用于序号/时长 */
  --fs-body: 15px;
  --fs-sub: 13px;
  --fs-mini: 12px;
}

/* ---------- 2. 列表给暗底：对比度不再取决于用户把背景调多暗 ---------- */
.song-list {
  /* 原来是 5.5% 白，等于给浅色文字垫了更亮的底，换张壁纸就糊。
     取 .72 而不是 .58：按最坏情况（纯白壁纸）实算，
     .58 时歌名对比度只有 4.48（差一点过不了 4.5），.72 时是 7.54、
     艺人 4.71（13px 正文也过 AA）。 */
  background: rgba(8, 11, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.10);
}
.song { background: transparent; }
.song:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.song:hover { background: rgba(255, 255, 255, 0.085); }
/* 斑马纹的优先级与 .playing 相同，这里补一条保证播放中仍然可辨 */
.song.playing { background: var(--accent-soft); }

/* ---------- 3. 列表栅格：歌名吃掉富余宽度，艺人紧跟其后 ----------
   原列宽 34/44/583/180/150/54/74：歌名与艺人之间常空出 400px 以上。
   这里把歌名列设为弹性，最小 200px；总最小宽 800px，1024 视口不溢出。 */
@media (min-width: 1024px) {
  .song {
    grid-template-columns: 40px 44px minmax(200px, 1fr) 160px 140px 56px 80px;
  }
}

/* ---------- 4. 字号收敛（14 档 → 6 档） ---------- */
@media (min-width: 768px) {
  .song .name { font-size: var(--fs-body); }
  .song .artist,
  .song .album { font-size: var(--fs-sub); }
  .song .dur,
  .song .idx { font-size: var(--fs-mini); }
  .song .alias,
  .song .tag { font-size: var(--fs-mini); }
}

/* ---------- 5. 公告条：桌面单行 + 省略号，点箭头展开 ---------- */
@media (min-width: 768px) {
  .notice-bar {
    align-items: center;
    /* 28px 按钮 + 上下各 11px 内边距 = 50，留 2px 余量 */
    max-height: 52px;
    overflow: hidden;
    padding: 11px 12px 11px 14px;
  }
  .nb-body { display: flex; align-items: baseline; gap: 10px; overflow: hidden; }
  .nb-body b {
    display: inline;
    margin: 0;
    flex: none;
    max-width: 38%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nb-body p {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .notice-bar.open { max-height: none; }
  .notice-bar.open .nb-body { display: block; }
  .notice-bar.open .nb-body b { display: block; max-width: none; }
  .notice-bar.open .nb-body p { white-space: pre-wrap; overflow: visible; }
}
.nb-more { transition: transform 0.16s ease; }
.notice-bar.open .nb-more { transform: rotate(180deg); }

/* ---------- 6. 首屏：hero 30% → 42%，榜单同屏可见 ---------- */
@media (min-width: 1240px) {
  .landing {
    grid-template-columns: minmax(360px, 42%) minmax(0, 1fr);
  }
}
