/* ============================================================
   iOS 26 · Liquid Glass 视觉系统
   颜色变量由 theme.css 提供（支持多主题切换）
   ============================================================ */

:root {
  /* 圆角（iOS 26 大圆角语言） */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  /* 阴影 */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.22);

  /* 动效 */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.42s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  height: 100dvh;
  /*
   * 五段式渐变：首尾同色
   *   0%    --bg-top     匹配状态栏
   *   10%   --bg-top-2   进入主体
   *   48%   --bg-mid     中段蓝色
   *   80%   --bg-low     收暗
   *   100%  --bg-bottom  匹配底部工具栏（= 顶部色）
   */
  background-color: var(--bg-top, #08201d);
  background-image: linear-gradient(180deg,
    var(--bg-top, #08201d) 0%,
    var(--bg-top-2, #0c2c28) 10%,
    var(--bg-mid, #1b4e63) 48%,
    var(--bg-low, #123340) 80%,
    var(--bg-bottom, #08201d) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
  /* 防止 iOS 橡皮筋效果露出底色 */
  overscroll-behavior: none;
  /* 防止横向溢出（放在 html 上，避免破坏 sticky） */
  overflow-x: hidden;
}

body {
  min-height: 100%;
  min-height: 100dvh;   /* 动态视口，iOS 地址栏变化时正确 */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  padding-bottom: 140px;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  /* 不要在这里设 overflow-x，会破坏 position:sticky */

  /* 渐变背景 —— 与 html 一致，双保险 */
  background-color: var(--bg-top, #08201d);
  background-image: linear-gradient(180deg,
    var(--bg-top, #08201d) 0%,
    var(--bg-top-2, #0c2c28) 10%,
    var(--bg-mid, #1b4e63) 48%,
    var(--bg-low, #123340) 80%,
    var(--bg-bottom, #08201d) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
}

/* ============================================================
   动态流体背景
   ============================================================ */

.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-top, #08201d);
  background-image: linear-gradient(180deg,
    var(--bg-top, #08201d) 0%,
    var(--bg-top-2, #0c2c28) 10%,
    var(--bg-mid, #1b4e63) 48%,
    var(--bg-low, #123340) 80%,
    var(--bg-bottom, #08201d) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transition: background 0.5s var(--ease);
}

/* 内容层要盖在背景层之上 */
.topbar,
.main,
.player {
  position: relative;
  z-index: 1;
}

.topbar {
  z-index: 100;
}

.player {
  z-index: 200;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;        /* 大幅降低，让底色渐变主导视觉 */
  will-change: transform;
  mix-blend-mode: screen;
}

.blob-1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #2fbf8f 0%, transparent 72%);
  top: -180px; left: -140px;
  animation: float1 22s var(--ease) infinite;
  opacity: 0.2;
}

.blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #1fa8c4 0%, transparent 72%);
  top: 20%; right: -180px;
  animation: float2 28s var(--ease) infinite;
  opacity: 0.16;
}

.blob-3 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #4a6fd4 0%, transparent 72%);
  bottom: -120px; left: 25%;
  animation: float3 34s var(--ease) infinite;
  opacity: 0.14;
}

.blob-4 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #7c5fd4 0%, transparent 72%);
  top: 55%; left: -100px;
  animation: float1 26s var(--ease) infinite reverse;
  opacity: 0.1;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(80px, 60px) scale(1.12); }
  66%      { transform: translate(-40px, 100px) scale(0.94); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-100px, 80px) scale(1.15); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(120px, -70px) scale(1.08); }
  70%      { transform: translate(-60px, -30px) scale(0.92); }
}

/* 细腻噪点，消除大色块断层 */
.noise {
  position: absolute;
  inset: 0;
  opacity: 0.028;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Liquid Glass 基础材质
   ============================================================ */

.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), var(--shadow-inner);
  border-radius: var(--r-lg);
}

/* 顶部内高光（玻璃厚度感） */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.06) 32%,
    transparent 55%,
    rgba(255, 255, 255, 0.10) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
   顶部导航
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 24px 0;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 64px;
  padding: 0 14px 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-radius: var(--r-xl);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.36), inset 0 1px 0 rgba(255,255,255,0.45);
  color: #04231a;
}
.brand-mark svg { width: 19px; height: 19px; }

.brand-text {
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 560;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease),
              box-shadow 0.3s var(--ease), transform 0.2s var(--ease);
}

.nav-tab svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.055); }
.nav-tab:active { transform: scale(0.96); }

.nav-tab.active {
  color: #04231a;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.34), inset 0 1px 0 rgba(255,255,255,0.4);
}

.badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(255, 69, 58, 0.5);
}

.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px;
  font-weight: 550;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.account.offline .dot {
  background: var(--text-3);
  box-shadow: none;
  animation: none;
}

.account.offline { color: var(--text-3); }

/* ============================================================
   登录按钮 / 弹窗
   ============================================================ */

.login-trigger {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.26s var(--ease);
}

.login-trigger svg { width: 16px; height: 16px; }

.login-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

.login-trigger:active { transform: scale(0.94); }

/* ---------- 遮罩 ---------- */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 6, 10, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: maskIn 0.32s var(--ease);
}

.modal-mask[hidden] { display: none !important; }

@keyframes maskIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- 卡片 ---------- */

.modal-card {
  width: min(430px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  border-radius: var(--r-lg);
  animation: cardIn 0.42s var(--ease-out);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 0;
}

.modal-head h3 {
  font-size: 19px;
  font-weight: 660;
  letter-spacing: -0.03em;
}

.modal-close {
  width: 30px; height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.22s var(--ease);
}

.modal-close svg { width: 13px; height: 13px; }
.modal-close:hover { background: rgba(255, 255, 255, 0.16); color: var(--text); }

.modal-body { padding: 20px 24px 26px; }

.login-step[hidden] { display: none !important; }

.login-step { animation: stepIn 0.34s var(--ease-out); }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- 提示 ---------- */

.login-hint {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 20px;
  letter-spacing: -0.005em;
}

/* ---------- 按钮 ---------- */

.login-primary {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #04231a;
  font-size: 14.5px;
  font-weight: 640;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 5px 20px rgba(52, 211, 153, 0.34),
              inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: all 0.24s var(--ease);
}

.login-primary svg { width: 18px; height: 18px; }
.login-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.login-primary:active { transform: scale(0.975); }

.login-secondary {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 560;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.24s var(--ease);
}

.login-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.login-secondary:active { transform: scale(0.98); }

/* ---------- 分隔线 ---------- */

.login-divider {
  position: relative;
  margin: 22px 0 16px;
  text-align: center;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.login-divider span {
  position: relative;
  padding: 0 14px;
  background: transparent;
  font-size: 12px;
  color: var(--text-3);
  backdrop-filter: blur(4px);
}

/* ---------- Cookie 输入框 ---------- */

.cookie-input {
  width: 100%;
  height: 82px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font-size: 12.5px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: all 0.24s var(--ease);
}

.cookie-input::placeholder { color: var(--text-3); font-size: 12px; }

.cookie-input:focus {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

/* ---------- 等待动画 ---------- */

.waiting-anim {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 12px auto 24px;
  display: grid;
  place-items: center;
}

.waiting-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(52, 211, 153, 0.14);
  border-top-color: var(--accent);
  animation: spin 1.1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.waiting-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #6ee7b7, var(--accent) 60%, var(--accent-deep));
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.5);
  animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.14); opacity: 1; }
}

.waiting-title {
  text-align: center;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.waiting-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 20px;
}

.waiting-tips {
  padding: 13px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.waiting-tips p {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.85;
}

/* ---------- 成功 / 失败 ---------- */

.success-icon,
.error-icon {
  width: 66px; height: 66px;
  margin: 6px auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: popIn 0.45s var(--ease-out);
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-icon {
  background: linear-gradient(150deg, rgba(52, 211, 153, 0.24), rgba(34, 211, 238, 0.14));
  border: 1px solid rgba(52, 211, 153, 0.34);
  color: var(--accent);
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.24);
}

.success-icon svg { width: 30px; height: 30px; }

.error-icon {
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.3);
  color: var(--danger);
}

.error-icon svg { width: 30px; height: 30px; }

.success-title {
  text-align: center;
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}

.success-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 0 8px;
  word-break: break-all;
}

/* 移动端弹窗样式见下方响应式体系的 600px 断点 */

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

/* ============================================================
   主体
   ============================================================ */

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 0;
  /* 防止内容撑破视口 */
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.page { display: none; }
.page.active {
  display: block;
  animation: pageIn 0.55s var(--ease-out);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 搜索 Hero ---------- */

.search-hero {
  text-align: center;
  padding: 26px 0 46px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.04;
  background: linear-gradient(175deg, #ffffff 0%, rgba(255,255,255,0.62) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-2);
  font-weight: 460;
  letter-spacing: -0.01em;
}

/* ---------- 搜索框 ---------- */

.search-box {
  max-width: 660px;
  margin: 34px auto 0;
  height: 62px;
  padding: 0 8px 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  transition: box-shadow 0.45s var(--ease), border-color 0.45s var(--ease),
              transform 0.45s var(--ease), background 0.45s var(--ease);
}

.search-box:focus-within {
  background: var(--glass-bg-strong);
  border-color: rgba(52, 211, 153, 0.42);
  box-shadow:
    0 12px 44px rgba(0, 0, 0, 0.34),
    0 0 0 4px rgba(52, 211, 153, 0.10),
    inset 0 1px 0 var(--glass-highlight);
  transform: translateY(-2px);
}

.search-icon {
  width: 20px; height: 20px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: color 0.3s var(--ease);
}
.search-box:focus-within .search-icon { color: var(--accent); }

#searchInput {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  letter-spacing: -0.01em;
}

#searchInput::placeholder { color: var(--text-3); }

.search-clear {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}
.search-clear:hover { background: rgba(255, 255, 255, 0.2); }
.search-clear:active { transform: scale(0.9); }
.search-clear svg { width: 13px; height: 13px; }

.search-btn {
  flex-shrink: 0;
  height: 46px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #04231a;
  font-size: 15px;
  font-weight: 640;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(52, 211, 153, 0.34),
              inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.22s var(--ease), box-shadow 0.3s var(--ease),
              filter 0.3s var(--ease);
}

.search-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 26px rgba(52, 211, 153, 0.46),
              inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.search-btn:active { transform: scale(0.955); }

/* ---------- 热门标签 ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.chip {
  padding: 8px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.28s var(--ease);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  transform: translateY(-2px);
}
.chip:active { transform: scale(0.95); }

/* ============================================================
   搜索结果
   ============================================================ */

.results {
  display: grid;
  gap: 10px;
  padding-bottom: 20px;
  /* 防止子元素撑破容器导致横向溢出 */
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: background 0.32s var(--ease), border-color 0.32s var(--ease),
              transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
  animation: rowIn 0.5s var(--ease-out) backwards;
  /* 关键：不超出父容器 */
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@keyframes rowIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-row:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.11);
  transform: translateX(4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
}

.result-cover {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 13px;
  object-fit: cover;
  background: linear-gradient(150deg, #1a2a26, #0d1614);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.1);
}

.result-info {
  flex: 1 1 0;      /* 允许收缩到 0，避免把按钮挤出容器 */
  min-width: 0;
  overflow: hidden;
}

.result-title {
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.result-sub {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-tags {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  margin-right: 6px;
}

.q-tag {
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.02em;
  background: rgba(52, 211, 153, 0.13);
  color: var(--accent);
  border: 1px solid rgba(52, 211, 153, 0.2);
  white-space: nowrap;
}

.q-tag.hi {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.22);
}

.q-tag.mid {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-2);
  border-color: rgba(34, 211, 238, 0.2);
}

.result-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.26s var(--ease);
}

.icon-btn svg { width: 17px; height: 17px; }

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}
.icon-btn:active { transform: scale(0.9); }

.icon-btn.primary {
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #04231a;
  border-color: transparent;
  box-shadow: 0 3px 14px rgba(52, 211, 153, 0.3);
}
.icon-btn.primary:hover { filter: brightness(1.1); }

/* ---------- 下载音质选择 ---------- */

.quality-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.qb-label {
  font-size: 13px;
  font-weight: 560;
  color: var(--text-3);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.qb-options {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
  justify-content: center;
}

.qb-opt {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 15px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 550;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.26s var(--ease), background 0.26s var(--ease),
              box-shadow 0.26s var(--ease), transform 0.18s var(--ease);
}

/* 扩展名小标签 */
.qb-opt .q-ext {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.5;
  text-transform: lowercase;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  transition: opacity 0.26s var(--ease);
}

.qb-opt:hover .q-ext { opacity: 0.75; }

.qb-opt.active .q-ext {
  opacity: 0.72;
  font-weight: 700;
}

.qb-opt:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.qb-opt:active { transform: scale(0.95); }

.qb-opt.active {
  color: #04231a;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 3px 12px rgba(52, 211, 153, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-weight: 640;
}

/* 无损专用色 */
.qb-opt[data-q="F000"].active {
  background: linear-gradient(150deg, #c084fc 0%, #818cf8 100%);
  box-shadow: 0 3px 12px rgba(168, 85, 247, 0.34),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* 音质选择条的小屏样式见响应式体系 600px 断点 */

/* ============================================================
   最近播放
   ============================================================ */

.recent-list {
  display: grid;
  gap: 9px;
}

.recent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.3s var(--ease);
  animation: rowIn 0.45s var(--ease-out) backwards;
}

.recent-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.recent-cover {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 11px;
  object-fit: cover;
  background: linear-gradient(150deg, #1a2a26, #0d1614);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.recent-cover-empty {
  display: grid;
  place-items: center;
  font-size: 19px;
  color: rgba(52, 211, 153, 0.6);
  background: linear-gradient(150deg, rgba(52,211,153,0.11), rgba(34,211,238,0.06));
  border: 1px solid rgba(52, 211, 153, 0.16);
}

.recent-info {
  flex: 1;
  min-width: 0;
}

.recent-title {
  font-size: 14.5px;
  font-weight: 550;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-sub {
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recent-tag {
  display: inline-block;
  padding: 1.5px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 620;
  letter-spacing: 0.02em;
  background: rgba(52, 211, 153, 0.13);
  color: var(--accent);
  border: 1px solid rgba(52, 211, 153, 0.2);
  flex-shrink: 0;
}

.recent-tag.local {
  background: rgba(129, 140, 248, 0.14);
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.24);
}

/* 最近播放的小屏样式见响应式体系 600px 断点 */

/* ============================================================
   空状态
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 90px 20px;
  color: var(--text-3);
  font-size: 15px;
}

.empty-orb {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.04) 45%,
    transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 8px 32px rgba(0,0,0,0.28);
  animation: orbFloat 5s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-10px) scale(1.04); }
}

/* ============================================================
   页头
   ============================================================ */

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 4px;
}

.page-head h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.count-pill {
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.ghost-btn {
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 540;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.26s var(--ease);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.ghost-btn:active { transform: scale(0.96); }

/* ============================================================
   下载任务卡片
   ============================================================ */

.task-list, .lib-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.042);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  animation: rowIn 0.5s var(--ease-out) backwards;
}

.task-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.task-bar {
  height: 4px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  flex: none;
}

.task-cover {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 11px;
  object-fit: cover;
  background: linear-gradient(150deg, #1a2a26, #0d1614);
}

.task-title {
  font-size: 14.5px;
  font-weight: 560;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-sub {
  font-size: 12.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-2));
  background-size: 200% 100%;
  transition: width 0.4s var(--ease);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
  animation: barShine 2.2s linear infinite;
}

@keyframes barShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.task-bar-fill.done {
  animation: none;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}

.task-bar-fill.error {
  animation: none;
  background: linear-gradient(90deg, #7f1d1d, var(--danger));
}

.task-status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.st-downloading { background: rgba(52,211,153,0.13); color: var(--accent); }
.st-resolving   { background: rgba(34,211,238,0.13); color: var(--accent-2); }
.st-pending     { background: rgba(255,255,255,0.08); color: var(--text-2); }
.st-done        { background: rgba(52,211,153,0.16); color: var(--accent); }
.st-error       { background: rgba(255,69,58,0.14); color: var(--danger); }
.st-canceled    { background: rgba(255,255,255,0.06); color: var(--text-3); }

/* ============================================================
   音乐库
   ============================================================ */

.lib-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.3s var(--ease);
  animation: rowIn 0.5s var(--ease-out) backwards;
}

.lib-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.lib-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
  background: linear-gradient(150deg, rgba(52,211,153,0.18), rgba(34,211,238,0.1));
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: var(--accent);
}

.lib-icon.flac {
  background: linear-gradient(150deg, rgba(168,85,247,0.18), rgba(99,102,241,0.1));
  border-color: rgba(168, 85, 247, 0.24);
  color: #c084fc;
}

.lib-info { flex: 1; min-width: 0; }

.lib-title {
  font-size: 14.5px;
  font-weight: 550;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-sub {
  font-size: 12.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   底部播放器
   ============================================================ */

.player {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(1180px, calc(100vw - 48px));
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 18px;
  border-radius: var(--r-lg);
  animation: playerIn 0.5s var(--ease-out);
}

/* hidden 必须压过 display:flex */
.player[hidden] { display: none !important; }
.badge[hidden] { display: none !important; }
[name="hidden"] { display: none !important; }
[hidden] { display: none !important; }

@keyframes playerIn {
  from { opacity: 0; transform: translateX(-50%) translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.player-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  width: 260px;
  flex-shrink: 0;
}

.player-cover {
  width: 48px; height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(150deg, #1a2a26, #0d1614);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.36);
  flex-shrink: 0;
}

.player-meta { min-width: 0; }

.player-title {
  font-size: 14px;
  font-weight: 570;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.player-singer {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-center {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ctrl-btn {
  position: relative;
  width: 52px; height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: 14px;
  background: linear-gradient(150deg, #3ddc84 0%, #2fd07a 52%, #26c46e 100%);
  color: #06231a;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 4px 16px rgba(52, 211, 153, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.22s var(--ease), filter 0.25s var(--ease),
              box-shadow 0.3s var(--ease);
}

/* 图标叠放，用类切换显示 */
.ctrl-btn .ic {
  grid-area: 1 / 1;
  width: 19px; height: 19px;
  transition: opacity 0.16s var(--ease), transform 0.22s var(--ease);
  pointer-events: none;
}

/* 默认（暂停中）：只显示播放三角 */
.ctrl-btn .ic-pause { opacity: 0; transform: scale(0.72); }
.ctrl-btn .ic-play  { opacity: 1; transform: scale(1); }

/* 播放中：只显示双竖条 */
.ctrl-btn.is-playing .ic-play  { opacity: 0; transform: scale(0.72); }
.ctrl-btn.is-playing .ic-pause { opacity: 1; transform: scale(1); }

/* 播放三角视觉居中补偿 */
.ctrl-btn .ic-play { margin-left: 2px; }
.ctrl-btn.is-playing .ic-play { margin-left: 0; }

.ctrl-btn:hover {
  filter: brightness(1.07);
  box-shadow:
    0 6px 22px rgba(52, 211, 153, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.ctrl-btn:active { transform: scale(0.93); }

.ctrl-btn.small {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.ctrl-btn.small svg,
.ctrl-btn.small .ic { width: 13px; height: 13px; margin-left: 0 !important; }
.ctrl-btn.small:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); }

.progress-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- 时间标签（等宽数字，不做抖动） ---------- */
.t-cur, .t-dur {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  flex-shrink: 0;
  min-width: 42px;
  letter-spacing: 0.02em;
}

.t-cur { text-align: left; }
.t-dur { text-align: right; }

/* ---------- 进度条轨道 ---------- */
.progress-track {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 20px;             /* 加大触摸区域 */
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* 未播放部分 */
.progress-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
  background: var(--track-bg);
  pointer-events: none;
}

/* 已播放部分（填充）*/
.progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 0%;
  border-radius: 999px;
  background: var(--track-fill);
  pointer-events: none;
  z-index: 1;
  transition: width 0.08s linear;
}

/* ---------- 跟随圆点（自己绘制，与填充线同基准） ---------- */
.progress-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--thumb-bg);
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  z-index: 3;
  transition: left 0.08s linear, width 0.16s var(--ease),
              height 0.16s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: none;
}

/* 悬停 / 拖动时圆点放大，依旧保持在线中心 */
.progress-track:hover .progress-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 5px var(--thumb-halo);
}

.progress-track.is-seeking .progress-dot {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 7px var(--thumb-halo);
}

/* ---------- 原生 range（透明，只留滑块） ---------- */
.progress {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 20px;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

/* 原生滑块完全透明 —— 只负责接收点击和拖拽，视觉交给 .progress-dot */
.progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: grab;
}

.progress:active::-webkit-slider-thumb {
  cursor: grabbing;
}

/* WebKit 轨道（透明） */
.progress::-webkit-slider-runnable-track {
  height: 20px;
  background: transparent;
  border: none;
}

/* Firefox 滑块（透明） */
.progress::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: grab;
}

.progress::-moz-range-track {
  height: 4px;
  background: var(--track-bg);
  border-radius: 999px;
}

.progress::-moz-range-progress {
  height: 4px;
  background: var(--track-fill);
  border-radius: 999px;
}

.progress:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 999px;
}

.player-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================================
   音量控制（上下结构，点击展开）
   ============================================================ */

.vol-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.vol-wrap.is-open { z-index: 30; }

/* 触发按钮上的三个音量图标叠放 */
#volBtn .ic {
  grid-area: 1 / 1;
  transition: opacity 0.16s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}

#volBtn .ic-vol-high,
#volBtn .ic-vol-low,
#volBtn .ic-vol-mute { opacity: 0; transform: scale(0.75); }

#volBtn .ic-vol-high { opacity: 1; transform: scale(1); }

#volBtn.st-low .ic-vol-high { opacity: 0; transform: scale(0.75); }
#volBtn.st-low .ic-vol-low  { opacity: 1; transform: scale(1); }

#volBtn.st-mute .ic-vol-high { opacity: 0; transform: scale(0.75); }
#volBtn.st-mute .ic-vol-mute { opacity: 1; transform: scale(1); }

/* ---------- 竖直面板 ---------- */

.vol-pop {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  width: 84px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18px 0 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateX(-50%) translateY(12px) scale(0.9);
  transform-origin: center bottom;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.26s var(--ease), transform 0.3s var(--ease),
              visibility 0.26s var(--ease);
}

/* 底部小尖角 */
.vol-pop::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid rgba(255, 255, 255, 0.97);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.14));
}

/* 只有点击后（.is-open）才显示 */
.vol-wrap.is-open .vol-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ---------- 竖直滑块区域 ---------- */

.vol-slider-area {
  position: relative;
  width: 84px;
  height: 132px;
  flex: none;
  display: flex;
  justify-content: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.vol-track {
  position: relative;
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.vol-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  transition: height 0.06s linear;
}

.vol-thumb {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3ddc84 0%, #10b981 100%);
  box-shadow: 0 2px 7px rgba(16, 185, 129, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translate(-50%, 50%);
  transition: bottom 0.06s linear, transform 0.14s var(--ease);
  pointer-events: none;
}

.vol-slider-area:hover .vol-thumb,
.vol-slider-area.dragging .vol-thumb {
  transform: translate(-50%, 50%) scale(1.14);
}

/* ---------- 百分比 ---------- */

.vol-pct {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.02em;
  color: #111;
  font-variant-numeric: tabular-nums;
}

/* ---------- 分隔线 ---------- */

.vol-sep {
  height: 1px;
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.07);
}

/* ---------- 底部静音按钮 ---------- */

.vol-mute {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  min-width: 84px;
  max-width: 84px;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0 0 24px 24px;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  overflow: hidden;
}

.vol-mute:hover { background: rgba(0, 0, 0, 0.05); color: #111; }
.vol-mute:active { background: rgba(0, 0, 0, 0.09); }

/* 三个图标叠放在同一位置 */
.vol-mute .ic {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 23px !important;
  height: 23px !important;
  max-width: 23px;
  max-height: 23px;
  margin: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.16s var(--ease);
  stroke-width: 2.2;
}

/* 图标三态（状态类用 st- 前缀，避免与布局类 .vol-mute 冲突） */
.vol-mute .ic-vol-high,
.vol-mute .ic-vol-low,
.vol-mute .ic-vol-mute { opacity: 0; }

.vol-mute .ic-vol-high { opacity: 1; }

.vol-mute.st-low .ic-vol-high { opacity: 0; }
.vol-mute.st-low .ic-vol-low  { opacity: 1; }

.vol-mute.st-mute .ic-vol-high { opacity: 0; }
.vol-mute.st-mute .ic-vol-mute { opacity: 1; }

/* ============================================================
   Toast
   ============================================================ */

.toast-wrap {
  position: fixed;
  top: 96px;
  right: 26px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: var(--r-sm);
  background: rgba(20, 24, 28, 0.78);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.13);
  font-size: 13.5px;
  font-weight: 520;
  color: var(--text);
  animation: toastIn 0.42s var(--ease-out);
}

.toast.out { animation: toastOut 0.34s var(--ease) forwards; }

.toast-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.toast.ok .toast-dot   { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.toast.err .toast-dot  { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.toast.info .toast-dot { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.94); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px) scale(0.94); }
}

/* ============================================================
   Loading 骨架
   ============================================================ */

.skeleton {
  height: 82px;
  border-radius: var(--r-md);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.075) 50%,
    rgba(255,255,255,0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   滚动条（桌面）
   ============================================================ */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
  background-clip: content-box;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  background-clip: content-box;
}

::selection { background: rgba(var(--accent-rgb), 0.28); }

/* ============================================================
   响应式体系
   ------------------------------------------------------------
   ≥1440px  大桌面（宽屏）
   1180-1440 标准桌面
   834-1180  iPad 横屏 / 小笔记本
   600-834   iPad 竖屏 / 大屏手机横屏
   <600      Android / iPhone
   ============================================================ */

/* ---------- 大桌面 ---------- */
@media (min-width: 1441px) {
  .main { max-width: 1320px; }
  .topbar-inner { max-width: 1320px; }
  .player { width: min(1320px, calc(100vw - 56px)); }
}

/* ---------- iPad 横屏 / 小笔记本 ---------- */
@media (max-width: 1180px) {
  .topbar { padding: 14px 18px 0; }
  .topbar-inner { height: 60px; gap: 16px; padding: 0 12px 0 17px; }

  .main { padding: 34px 18px 0; }

  .hero-title { font-size: clamp(34px, 4.6vw, 52px); }
  .hero-sub { font-size: 15px; }

  .search-box { max-width: 600px; }

  .player {
    width: calc(100vw - 36px);
    gap: 16px;
    padding: 11px 16px;
  }
  .player-left { width: 210px; }
}

/* ---------- iPad 竖屏 / 大屏手机 ---------- */
@media (max-width: 900px) {
  .topbar {
    padding: 10px 12px 0;
  }

  .topbar-inner {
    height: 56px;
    gap: 10px;
    padding: 0 10px 0 14px;
    border-radius: var(--r-lg);
  }

  .brand-text { display: none; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark svg { width: 18px; height: 18px; }

  /* 导航：可横向滚动（iPad 竖屏等中间尺寸） */
  .nav-tabs {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 3px;
    gap: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-tabs::-webkit-scrollbar { display: none; }

  .nav-tab {
    flex-shrink: 0;
    padding: 9px 12px;
    gap: 6px;
    font-size: 13px;
  }
  .nav-tab svg { width: 17px; height: 17px; }

  .account-wrap { flex-shrink: 0; }
  .user-name { display: none; }
  .user-chip { padding: 5px 6px; gap: 0; }
  .user-caret { display: none; }

  /* 小屏隐藏「登录/注册」文字，只留图标 */
  #btnShowAuth {
    padding: 8px 12px !important;
    font-size: 0 !important;
    line-height: 0;
    position: relative;
  }
  #btnShowAuth::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-4 0-7 2-7 5v1h14v-1c0-3-3-5-7-5z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-4 0-7 2-7 5v1h14v-1c0-3-3-5-7-5z'/%3E%3C/svg%3E") center/contain no-repeat;
  }

  .login-trigger { width: 32px; height: 32px; }
  .login-trigger svg { width: 15px; height: 15px; }

  .main { padding: 26px 14px 0; }

  .hero-title { font-size: clamp(30px, 7vw, 40px); }
  .hero-sub { font-size: 14px; }

  .search-box {
    height: 54px;
    margin-top: 22px;
    padding: 0 6px 0 18px;
  }
  #searchInput { font-size: 16px; }   /* 防止 iOS 聚焦时缩放 */
  .search-btn { height: 42px; padding: 0 22px; font-size: 14px; }

  .chips { gap: 8px; margin-top: 20px; }
  .chip { padding: 7px 15px; font-size: 13px; }

  /* 结果行 */
  .result-row {
    padding: 11px 12px 11px 11px;
    gap: 12px;
  }
  .result-cover { width: 50px; height: 50px; border-radius: 11px; }
  .result-tags { display: none; }
  .result-title { font-size: 14.5px; }
  .result-sub { font-size: 12.5px; }

  /* 触摸设备按钮加大 */
  .icon-btn { width: 42px; height: 42px; }
  .icon-btn svg { width: 18px; height: 18px; }

  .page-head h2 { font-size: 24px; }

  /* 播放器 */
  .player {
    left: 12px;
    right: 12px;
    bottom: 12px;
    bottom: calc(12px + var(--safe-bottom));
    width: auto;
    transform: none;
    padding: 10px 14px;
    gap: 12px;
    border-radius: var(--r-md);
    animation: none;
  }

  .player-left { width: auto; flex: 1; min-width: 0; gap: 11px; }
  .player-cover { width: 44px; height: 44px; border-radius: 11px; }

  .player-center { flex: 2; gap: 11px; }

  .ctrl-btn { width: 46px; height: 40px; border-radius: 13px; }
  .ctrl-btn .ic { width: 17px; height: 17px; }

  /* 时间显示保留，字号缩小 */
  .t-cur, .t-dur {
    font-size: 11px;
    min-width: 38px;
  }
  .progress-wrap { gap: 9px; }

  .player-right { gap: 6px; }
  .ctrl-btn.small { width: 34px; height: 34px; }

  .toast-wrap {
    right: 12px;
    left: 12px;
    top: 78px;
    top: calc(78px + var(--safe-top));
  }
  .toast { min-width: 0; }

  /* 音量面板：小屏改到右侧，避免溢出 */
  .vol-pop { right: calc(100% + 1px); }

  /* 弹窗 */
  .modal-mask { padding: 16px; }
  .modal-card { width: min(430px, 100%); }
}

/* ---------- Android / iPhone 竖屏 ---------- */
@media (max-width: 600px) {
  .topbar-inner {
    height: 52px;
    gap: 8px;
    padding: 0 8px 0 12px;
    border-radius: var(--r-md);
  }

  .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
  .brand-mark svg { width: 16px; height: 16px; }

  .nav-tabs { padding: 2px; }
  .nav-tab {
    padding: 8px 10px;
    font-size: 12.5px;
    gap: 5px;
    border-radius: 10px;
  }
  .nav-tab svg { width: 15px; height: 15px; }

  /* 极窄屏：只保留图标，避免横向滚动 */
  .nav-tab span { display: none; }
  .nav-tab { padding: 9px 11px; }

  /* 「搜索」保留文字作为引导 */
  .nav-tab[data-tab="search"] span {
    display: inline;
    font-size: 12.5px;
    margin-left: 1px;
  }

  .main { padding: 20px 12px 0; }

  .hero-title { font-size: 28px; letter-spacing: -0.03em; }
  .hero-sub { font-size: 13px; margin-top: 4px; }

  .search-box {
    height: 50px;
    margin-top: 18px;
    padding: 0 5px 0 16px;
    gap: 9px;
  }
  .search-icon { width: 18px; height: 18px; }
  .search-btn { height: 38px; padding: 0 18px; font-size: 13.5px; }

  .chips { gap: 7px; margin-top: 16px; }
  .chip { padding: 6px 13px; font-size: 12.5px; }

  /* 音质选择条 */
  .quality-bar { gap: 8px; margin-top: 18px; }
  .qb-label { font-size: 11.5px; }
  .qb-options { gap: 3px; padding: 3px; }
  .qb-opt { padding: 6px 10px; font-size: 12px; gap: 4px; }
  .qb-opt .q-ext { font-size: 9.5px; }

  /* 结果行 —— 小屏改为紧凑布局，防止按钮溢出 */
  .result-row {
    padding: 10px;
    gap: 10px;
    overflow: hidden;
  }
  .result-cover { width: 46px; height: 46px; border-radius: 10px; }
  .result-info { min-width: 0; }
  .result-title { font-size: 14px; }
  .result-sub { font-size: 12px; }

  .result-actions {
    gap: 5px;
    flex-shrink: 0;
  }
  .icon-btn { width: 38px; height: 38px; border-radius: 10px; }
  .icon-btn svg { width: 16px; height: 16px; }

  .page-head { margin-bottom: 18px; }
  .page-head h2 { font-size: 21px; gap: 9px; }
  .count-pill { padding: 2px 9px; font-size: 12px; }
  .ghost-btn { padding: 8px 15px; font-size: 12.5px; }

  /* 推荐卡片 */
  .recommend-wrap { margin-top: 26px; }
  .rec-head { margin-bottom: 12px; }
  .rec-title { font-size: 13px; }
  .rec-refresh { padding: 5px 11px; font-size: 12px; }
  .rec-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 9px;
  }
  .rec-card { padding: 7px; border-radius: 15px; }
  .rec-cover-box { border-radius: 10px; margin-bottom: 8px; }
  .rec-name { font-size: 12px; }
  .rec-artist { font-size: 11px; }
  .rec-play { width: 32px; height: 32px; right: 6px; bottom: 6px; }

  /* 列表项 */
  .task-card, .lib-row, .recent-row, .pl-row {
    padding: 9px 11px;
    gap: 10px;
    border-radius: var(--r-sm);
  }

  .task-cover, .pl-cover { width: 40px; height: 40px; border-radius: 9px; }
  .recent-cover { width: 40px; height: 40px; border-radius: 9px; }
  .lib-icon { width: 40px; height: 40px; border-radius: 9px; font-size: 9px; }
  .pl-index { display: none; }

  .task-title, .lib-title, .recent-title, .pl-title { font-size: 13.5px; }
  .task-sub, .lib-sub, .recent-sub, .pl-sub { font-size: 11.5px; }

  /* 播放列表工具栏 */
  .playlist-toolbar { gap: 8px; margin-bottom: 14px; }
  .pl-playall { padding: 10px 18px; font-size: 13px; border-radius: 11px; }
  .pl-playall svg { width: 14px; height: 14px; }
  .pl-shuffle { width: 38px; height: 38px; border-radius: 10px; }
  .pl-shuffle svg { width: 15px; height: 15px; }

  /* 播放器 */
  .player {
    left: 8px;
    right: 8px;
    bottom: 8px;
    bottom: calc(8px + var(--safe-bottom));
    padding: 9px 12px;
    gap: 10px;
    flex-wrap: wrap;
    border-radius: var(--r-sm);
  }

  .player-left { gap: 9px; }
  .player-cover { width: 40px; height: 40px; border-radius: 10px; }
  .player-title { font-size: 13px; }
  .player-singer { font-size: 11px; }

  .player-center {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    gap: 10px;
    margin-top: 2px;
  }

  .ctrl-btn { width: 42px; height: 36px; border-radius: 11px; }
  .ctrl-btn .ic { width: 16px; height: 16px; }

  .player-right { gap: 5px; }
  .ctrl-btn.small { width: 31px; height: 31px; }

  /* 小屏：时间更紧凑，但保留显示 */
  .progress-wrap { gap: 8px; }
  .t-cur, .t-dur {
    font-size: 10.5px;
    min-width: 36px;
  }
  .progress-track { height: 18px; }
  .progress-track::before { height: 3px; }
  .progress-fill { height: 3px; }
  .progress { height: 18px; }

  /* 小屏圆点与 3px 线同粗 */
  .progress-dot { width: 3px; height: 3px; }
  .progress-track:hover .progress-dot { width: 8px; height: 8px; }
  .progress-track.is-seeking .progress-dot { width: 10px; height: 10px; }

  /* 音量面板位置调整 */
  .vol-pop { bottom: calc(100% + 10px); }

  /* 弹窗全屏化 */
  .modal-mask {
    padding: 0;
    align-items: flex-end;
  }

  .modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    animation: sheetUp 0.36s var(--ease-out);
  }

  @keyframes sheetUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  .modal-head { padding: 18px 20px 0; }
  .modal-body { padding: 16px 20px 24px; }

  /* 认证表单 */
  .auth-field { height: 50px; padding: 0 12px 0 42px; }
  .af-icon { left: 13px; width: 17px; height: 17px; }
  .auth-field + .auth-field::before { left: 42px; }
  .auth-field input { font-size: 16px; }   /* 防止 iOS 缩放 */
  .auth-field input::placeholder { font-size: 14px; }
  .auth-submit { height: 46px; font-size: 14.5px; }
  .auth-tab { padding: 10px; font-size: 13px; }

  /* 用户菜单全屏宽 */
  .user-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    bottom: calc(10px + var(--safe-bottom));
    width: auto;
    transform-origin: bottom center;
    transform: translateY(12px) scale(0.97);
  }

  .user-menu.open { transform: translateY(0) scale(1); }

  .theme-row { gap: 4px; }
  .theme-btn { padding: 8px 3px 7px; font-size: 10.5px; gap: 5px; }
  .theme-btn svg { width: 15px; height: 15px; }

  .accent-row { gap: 8px; padding: 4px 12px 12px; }
  .accent-dot { width: 24px; height: 24px; }

  /* toast */
  .toast {
    padding: 11px 15px;
    font-size: 13px;
  }
}

/* ---------- 超小屏 ---------- */
@media (max-width: 380px) {
  .hero-title { font-size: 25px; }
  .nav-tab { padding: 7px 8px; font-size: 12px; }
  .nav-tab svg { width: 14px; height: 14px; }
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 14px; height: 14px; }
  .result-cover { width: 40px; height: 40px; }
  .result-actions { gap: 4px; }
  .result-row { padding: 9px; gap: 9px; }
}

/* ---------- 极窄屏（iPhone SE / 小屏安卓）：结果行紧凑单行 ---------- */
@media (max-width: 430px) {
  .result-row {
    padding: 8px 10px 8px 8px;
    gap: 9px;
  }

  .result-cover {
    width: 42px;
    height: 42px;
    border-radius: 9px;
  }

  .result-info {
    flex: 1 1 0;
    min-width: 0;
  }

  .result-title { font-size: 13.5px; margin-bottom: 2px; }
  .result-sub { font-size: 11.5px; }

  /* 按钮：竖向更矮、横向更窄，三个一排刚好放下 */
  .result-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .icon-btn svg { width: 14px; height: 14px; }
}

/* 更窄（≤375，iPhone SE/8）再收紧 */
@media (max-width: 380px) {
  .result-row { padding: 8px; gap: 8px; }
  .result-cover { width: 40px; height: 40px; }
  .result-actions { gap: 5px; }
  .icon-btn { width: 32px; height: 32px; border-radius: 8px; }
  .icon-btn svg { width: 13px; height: 13px; }
  .result-title { font-size: 13px; }
  .result-sub { font-size: 11px; }
}

/* ============================================================
   触摸设备优化
   ============================================================ */

@media (hover: none) and (pointer: coarse) {
  /* 禁用悬停位移效果（触摸后残留） */
  .result-row:hover,
  .lib-row:hover,
  .recent-row:hover,
  .pl-row:hover,
  .chip:hover,
  .task-card:hover {
    transform: none;
  }

  .rec-card:hover {
    transform: none;
    box-shadow: none;
  }

  .rec-play {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* 触摸反馈 */
  .result-row:active,
  .lib-row:active,
  .recent-row:active,
  .pl-row:active {
    background: rgba(var(--accent-rgb), 0.1);
    transform: scale(0.994);
  }

  .rec-card:active { transform: scale(0.97); }

  /* 防止长按选中文字 */
  .nav-tab, .chip, .icon-btn, .rec-card, .qb-opt,
  .result-row, .lib-row, .recent-row, .pl-row {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }

  /* 滚动惯性 */
  .results, .recent-list, .lib-list, .task-list, .playlist-list {
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   iOS Safari 特定适配
   ============================================================ */

@supports (-webkit-touch-callout: none) {
  /* 100vh 在 iOS 上会包含地址栏，改用 dvh */
  .modal-card {
    max-height: 88dvh;
  }

  /* 防止输入框自动放大 */
  input, textarea, select {
    font-size: 16px;
  }
}

/* ============================================================
   横屏手机
   ============================================================ */

@media (max-height: 500px) and (orientation: landscape) {
  .topbar-inner { height: 46px; }
  .main { padding-top: 14px; }
  .hero-title { font-size: 24px; }
  .hero-sub { display: none; }
  .search-box { margin-top: 14px; height: 44px; }
  .chips { display: none; }

  .player {
    left: 10px;
    right: 10px;
    bottom: 8px;
    padding: 7px 12px;
    flex-wrap: nowrap;
  }
  .player-center { order: 0; flex: 1; margin-top: 0; }
  .player-cover { width: 34px; height: 34px; }

  body { padding-bottom: 92px; }
}

/* ============================================================
   高对比度 / 减少动效
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .blob { animation: none !important; }
}
