/* ============================================================
   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;
  --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: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) 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; }

.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: 1280px; margin: 0 auto; padding: 92px 16px 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;
}
@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::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); }
.hero h1 { 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; overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.lyric p {
  margin: 0;
  padding: 9px 4px;
  color: var(--muted-2);
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  transform-origin: left center;
}
.lyric p:hover { color: var(--muted); }
.lyric p.active { color: var(--txt); font-size: 18px; font-weight: 650; transform: scale(1.01); }
.lyric p .tr { font-size: 13px; color: var(--muted); }

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

.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; }

  .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: 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 .icon-btn { display: 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; }
  .np-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .np-cover { max-width: 260px; }
  .np-left h2 { font-size: 19px; }
  .np-right { min-height: 220px; }

  .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; }
#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); }
}
