/* ============================================
 * 初探 AI 综合站 — 配色和原初探 AI 一致
 * 主色:#1677FF  背景:#FFFFFF  气泡:#F0F2F5
 * 严格规范:全站无外露滚动条 / 顶栏 60px / 圆角统一
 * ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
* { scrollbar-width: none; -ms-overflow-style: none; }

:root {
  --primary: #1677FF;
  --primary-hover: #4096FF;
  --primary-active: #0958D9;
  --primary-bg: rgba(22, 119, 255, 0.08);
  --primary-bg-strong: rgba(22, 119, 255, 0.14);
  --bg: #FFFFFF;
  --bg-sidebar: #FAFAFA;
  --bg-hover: #F0F2F5;
  --bg-card: #FFFFFF;
  --bg-bubble-ai: #F0F2F5;
  --bg-bubble-user: #1677FF;
  --text: #1A1A1A;
  --text-2: #595959;
  --text-3: #8C8C8C;
  --text-4: #BFBFBF;
  --border: #F0F0F0;
  --border-strong: #E5E5E5;
  --error: #FF4D4F;
  --success: #52C41A;
  --warning: #FAAD14;
  --sidebar-w: 260px;
  --topbar-h: 60px;
  --composer-h: 72px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
}

html, body { height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: row;
}
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea { font-family: inherit; }

/* 通用 */
.hidden { display: none !important; }
.flex { display: flex; }
.f1 { flex: 1; min-width: 0; }
.center { display: flex; align-items: center; justify-content: center; }

/* AI 头像(纯 CSS,不用 emoji) */
.avatar-ai {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #1677FF 0%, #4096FF 100%);
  color: white; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 2px 6px rgba(22,119,255,.25);
  letter-spacing: -0.5px;
}
.avatar-user {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* 布局:左侧栏 + 主区 */
.app { display: flex; height: 100vh; width: 100vw; }

/* ============== 左侧栏 ============== */
.sidebar {
  width: 10vw;
  min-width: 140px;
  max-width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  flex-shrink: 0; position: relative;
  height: 100%;
  transition: width .2s;
}
.sidebar.collapsed { width: 60px; min-width: 60px; max-width: 60px; }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-item .lbl,
.sidebar.collapsed .conv-section,
.sidebar.collapsed .user-info .user-name,
.sidebar.collapsed .user-info .user-action { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 0; }
.sidebar.collapsed .brand { padding: 0; justify-content: center; }
.sidebar.collapsed .user-info { justify-content: center; padding: 10px 0; }
.brand { cursor: pointer; user-select: none; }
.brand:hover { background: var(--bg-hover); }
.brand {
  height: var(--topbar-h);
  padding: 0 20px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
  flex-shrink: 0;
}
.brand .logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #1677FF 0%, #4096FF 100%);
  color: white; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.5px;
}
.brand-text { font-size: 16px; font-weight: 600; color: var(--text); }

/* 菜单 */
.nav { padding: 12px 12px 0; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 14px;
  cursor: pointer; transition: all .15s;
  background: transparent; border: none; text-align: left; width: 100%;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active { background: var(--primary-bg); color: var(--primary); font-weight: 500; }
.nav-item .icon { width: 20px; text-align: center; font-size: 16px; flex-shrink: 0; }
.nav-item .caret {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-3);
  transition: transform .15s;
}
.nav-item .caret.open { transform: rotate(0deg); }
.nav-divider { height: 1px; background: var(--border); margin: 6px 8px; opacity: .6; }

/* 音乐子菜单(左侧菜单内联展开) */
.nav-group { display: flex; flex-direction: column; }
.nav-sub {
  display: flex; flex-direction: column;
  margin: 0 4px 4px 4px;
  padding: 4px 0 4px 0;
  background: transparent;
  border-left: 2px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}
.nav-sub.hidden { display: none !important; }
.nav-sub-item {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px 0 22px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  background: transparent; border: none; text-align: left;
  width: 100%;
  transition: background .12s;
}
.nav-sub-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-sub-item .sub-icon { width: 16px; text-align: center; font-size: 13px; flex-shrink: 0; }
.nav-sub-item span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 对话列表 */
.conv-section {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: 16px 12px 80px;  /* 底部 80px 给用户信息让位置 */
  overflow: hidden;
}
.conv-section.hidden { display: none; }
.conv-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 8px 8px;
  font-size: 12px; color: var(--text-3); font-weight: 500;
}
.conv-header .icon-btn {
  width: 22px; height: 22px;
  border: none; background: transparent;
  border-radius: 4px; cursor: pointer;
  color: var(--text-3); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.conv-header .icon-btn:hover { background: var(--bg-hover); color: var(--primary); }
.conv-list { flex: 1; overflow-y: auto; padding-right: 4px; }
.conv-empty { padding: 20px 8px; text-align: center; color: var(--text-4); font-size: 12px; }
.conv-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px;
  color: var(--text-2); transition: all .15s;
  margin-bottom: 1px;
}
.conv-item:hover { background: var(--bg-hover); color: var(--text); }
.conv-item.active { background: var(--primary-bg); color: var(--primary); font-weight: 500; }
.conv-item .conv-title {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.conv-item .conv-del {
  opacity: 0; width: 18px; height: 18px;
  border: none; background: transparent; border-radius: 4px;
  cursor: pointer; color: var(--text-3); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.conv-item:hover .conv-del { opacity: 1; }
.conv-item .conv-del:hover { background: var(--error); color: white; }

/* 用户信息(钉在左下角) */
.user-info {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .15s;
  background: transparent; z-index: 10;
}
.user-info:hover { background: var(--bg-hover); }
.user-info .avatar { width: 32px; height: 32px; flex-shrink: 0; }
.user-info .user-name { flex: 1; font-size: 13px; color: var(--text); font-weight: 500; }
.user-info .user-action { font-size: 16px; color: var(--text-3); }

/* ============== 主区 ============== */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); height: 100%; overflow: hidden; }

/* 顶栏(60px,跟左栏 brand 高度一致) */
.topbar {
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
  z-index: 5;
}
.topbar .title {
  font-size: 16px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.topbar .title .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.topbar .spacer { flex: 1; }

.model-pick {
  height: 36px; padding: 0 32px 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 13px; color: var(--text);
  cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1L5 5L9 1' stroke='%238C8C8C' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color .15s;
}
.model-pick:hover, .model-pick:focus { border-color: var(--primary); }

/* 顶栏右上模型信息(脱敏后只显示内部名) */
.model-info {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--primary-bg);
  border-radius: 20px;
  font-size: 12px; color: var(--primary);
  cursor: default; user-select: none;
}
.model-info .model-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

.icon-btn {
  width: 36px; height: 36px;
  border: none; background: transparent; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 16px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--primary); }

/* 移动端菜单按钮 */
.menu-btn {
  display: none;
  position: fixed; top: 12px; left: 12px; z-index: 200;
  width: 40px; height: 40px;
  background: white; border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer; font-size: 18px;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* ============== AI 聊天 ============== */
.mode { flex: 1; display: flex; flex-direction: column; min-height: 0; height: 100%; overflow: hidden; }
.mode.hidden { display: none; }

/* 消息流 */
.messages {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 24px 20px 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.msg { display: flex; gap: 12px; max-width: 820px; width: 100%; margin: 0 auto; }
.msg.user { flex-direction: row-reverse; }

.msg-body { display: flex; flex-direction: column; max-width: calc(100% - 56px); }
.msg.user .msg-body { align-items: flex-end; }
.msg.assistant .msg-body { align-items: flex-start; }

.msg-bubble {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px; line-height: 1.65;
  word-break: break-word; white-space: pre-wrap;
  max-width: 100%;
}
.msg.assistant .msg-bubble { background: var(--bg-bubble-ai); color: var(--text); }
.msg.user .msg-bubble { background: var(--primary); color: white; }

.msg-actions { display: flex; gap: 4px; margin-top: 4px; padding: 0 4px; }
.msg-action {
  border: none; background: transparent;
  font-size: 13px; color: var(--text-3);
  cursor: pointer; padding: 4px 8px; border-radius: 4px;
  display: flex; align-items: center; gap: 4px;
  transition: all .15s;
}
.msg-action:hover { background: var(--bg-hover); color: var(--primary); }
.msg-action.tts-loading { color: var(--warning); pointer-events: none; }
.msg-action.tts-error { color: var(--error); }

.empty-tip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px; color: var(--text-3); text-align: center; gap: 8px;
  flex: 1; min-height: 200px;
}
.empty-tip .greet {
  font-size: 28px; font-weight: 600; color: var(--text);
  margin-bottom: 4px;
}
.empty-tip .sub { font-size: 14px; color: var(--text-3); }

.typing { display: flex; gap: 4px; align-items: center; padding: 6px 0; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3);
  animation: typing 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); } 30% { opacity: 1; transform: scale(1); } }

/* composer 全宽白条 */
.composer {
  flex-shrink: 0;
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 20px 16px;
  display: flex; gap: 12px; align-items: flex-end;
}
.composer-inner {
  max-width: 820px; width: 100%; margin: 0 auto;
  display: flex; gap: 12px; align-items: flex-end;
}
.composer .input-wrap {
  flex: 1;
  background: var(--bg-hover);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex; align-items: flex-end; gap: 8px;
  transition: border-color .15s, background .15s;
  min-height: 44px;
}
.composer .input-wrap:focus-within { background: white; border-color: var(--primary); }
.composer .input {
  flex: 1; min-width: 0;
  border: none; background: transparent; outline: none;
  resize: none; font-size: 14px; line-height: 1.5;
  color: var(--text);
  max-height: 120px;
  padding: 0; font-family: inherit;
}
.composer .voice-btn {
  width: 28px; height: 28px; flex-shrink: 0;
  border: none; background: transparent; border-radius: 50%;
  cursor: pointer; font-size: 16px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.composer .voice-btn:hover { background: rgba(0,0,0,0.04); color: var(--primary); }
.composer .voice-btn.rec {
  background: var(--error); color: white;
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,79,.4); } 50% { box-shadow: 0 0 0 8px rgba(255,77,79,0); } }

.send-btn {
  height: 44px; min-width: 72px; padding: 0 18px;
  border: none; border-radius: var(--radius);
  background: var(--primary); color: white;
  font-size: 14px; font-weight: 500;
  cursor: pointer; flex-shrink: 0;
  transition: background .15s;
}
.send-btn:hover:not(:disabled) { background: var(--primary-hover); }
.send-btn:active:not(:disabled) { background: var(--primary-active); }
.send-btn:disabled { background: #D9D9D9; color: white; cursor: not-allowed; }

/* ============== 音乐 ============== */
.music-body {
  flex: 1; min-height: 0;
  display: flex; gap: 20px;
  padding: 20px 24px;
  overflow: hidden;
  position: relative;
}
.now-playing {
  width: 360px; flex-shrink: 0;
  height: 100%;       /* 撑满父容器高度(音乐区) */
  min-height: 0;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  /* 2026-07-18: padding-bottom 减到 4 (原 24) 消除布局空档, 上 12 (原 24) 平衡 */
  padding: 12px 20px 4px 20px;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}
.cover {
  width: 240px; height: 240px;
  border-radius: var(--radius);
  overflow: hidden; background: linear-gradient(135deg, #F0F2F5, #E5E5E5);
  margin-bottom: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.cover { transition: width .3s, height .3s; }
@media (max-height: 800px) { .cover { width: 200px; height: 200px; } }
@media (max-height: 700px) { .cover { width: 180px; height: 180px; } }

/* 桌面/手机 元素显隐 */
.desktop-only { display: flex; }
.mobile-only { display: none !important; }
@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
}

@media (max-width: 900px) {
  .menu-btn { display: flex; }
  /* 手机端隐藏桌面右侧大播放器(全宽列表优先) */
  .now-playing { display: none !important; }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: -160px;
    width: 140px;
    z-index: 100;
    box-shadow: 4px 0 16px rgba(0,0,0,.1);
    transition: left .25s;
    overflow: visible;
  }
  .sidebar.show { left: 0; width: 140px; }
  .sidebar.show .brand-text,
  .sidebar.show .nav-item .lbl,
  .sidebar.show .conv-section,
  .sidebar.show .user-info .user-name,
  .sidebar.show .user-info .user-action { display: block; }
  .sidebar.show .nav-item { justify-content: flex-start; padding: 0 10px; gap: 6px; font-size: 13px; }
  .sidebar.show .brand { padding: 0 14px; justify-content: flex-start; }
  .sidebar.show .user-info { justify-content: flex-start; padding: 8px 10px; gap: 8px; }
  .sidebar.show .user-info .user-name { font-size: 12px; }
  .sidebar.show .nav { padding: 12px 6px 0; }
  .sidebar.show .conv-section { padding: 12px 6px 80px; }
  /* 手机端:更多下拉菜单浮出,不被 sidebar 高度限制 */
  .sidebar.show .nav-dropdown {
    position: absolute;
    left: 100%; top: auto;
    margin: -40px 0 0 4px;
    min-width: 160px;
    background: var(--bg-card, white);
    z-index: 110;
  }
  .sidebar.show .nav-dropdown::before {
    content: ''; position: absolute; left: -4px; top: 10px;
    width: 0; height: 0;
    border: 4px solid transparent;
    border-right-color: var(--bg-card, white);
  }
  .sidebar:not(.show).collapsed,
  .sidebar:not(.show) { width: 0; border: none; overflow: hidden; }
  body.sidebar-open .menu-btn { display: none; }
  .topbar { padding: 0 12px 0 60px; }
  .topbar .title { font-size: 15px; }
  .messages { padding: 16px 12px 8px; }
  .composer { padding: 10px 12px 12px; }
  .model-pick { font-size: 12px; padding: 0 28px 0 10px; }
  .now-playing { width: 100%; }
  .music-body { flex-direction: column; padding: 12px; gap: 0; }
  .cover { width: 180px; height: 180px; }
  .lyric-box { height: 120px; }
  .mini-player {
    position: fixed; left: 0; right: 0; bottom: 0;
    height: 56px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
    padding: 0 12px;
    z-index: 50;
    box-shadow: 0 -2px 8px rgba(0,0,0,.04);
    cursor: pointer;
  }
  .mini-cover {
    width: 40px; height: 40px; border-radius: 6px;
    object-fit: cover; background: var(--bg-hover); flex-shrink: 0;
  }
  .mini-info { flex: 1; min-width: 0; overflow: hidden; }
  .mini-name { font-size: 14px; font-weight: 500; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mini-artist { font-size: 12px; color: var(--text-3);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mini-play {
    width: 40px; height: 40px; border: none; border-radius: 50%;
    background: #333; color: white;
    font-size: 14px; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .full-player {
    position: fixed; inset: 0; z-index: 200;
    background: white;
    display: flex; flex-direction: column; align-items: center;
    padding: 16px 24px 24px;
  }
  .full-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #333;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
}
.full-close:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.full-close:active { transform: scale(0.92); }
.full-close svg { width: 20px; height: 20px; }
  .full-close:hover { background: var(--bg-hover); }
  .cover-lg {
    width: 240px; height: 240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #F0F2F5, #E5E5E5);
    margin-top: 40px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .cover-lg img { width: 100%; height: 100%; object-fit: cover; }
  .cover-lg .placeholder { font-size: 80px; color: var(--text-4); }
  .song-name-lg { font-size: 18px; font-weight: 600; margin-bottom: 4px;
    max-width: 100%; text-align: center;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .song-artist-lg { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
  .lyric-box-lg {
    width: 100%; height: 200px;
    overflow: hidden; position: relative;
    text-align: center; font-size: 13px; line-height: 2; color: var(--text-3);
    margin-bottom: 20px;
  }
  .lyric-box-lg::before, .lyric-box-lg::after {
    content: ''; position: absolute; left: 0; right: 0; height: 40px;
    z-index: 2; pointer-events: none;
  }
  .lyric-box-lg::before { top: 0; background: linear-gradient(to bottom, white, rgba(255,255,255,0)); }
  .lyric-box-lg::after { bottom: 0; background: linear-gradient(to top, white, rgba(255,255,255,0)); }
  .progress-row { padding: 0 8px; }
  .ctrl-row { gap: 24px; }
}

@media (max-width: 480px) {
  .modal { padding: 20px; }
  .composer .input-wrap { padding: 8px 10px; }
  .cover-lg { width: 200px; height: 200px; }
  .lyric-box-lg { height: 160px; }
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .placeholder { font-size: 80px; color: var(--text-4); }

.song-name { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 4px;
  text-align: center; max-width: 100%; flex-shrink: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-artist { font-size: 13px; color: var(--text-3); margin-bottom: 16px;
  text-align: center; max-width: 100%; flex-shrink: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 歌词区(无滚动条,渐变遮罩) - 高度自适应(撑满父容器剩余空间) */
.lyric-box {
  width: 100%; flex: 1 1 auto; min-height: 120px;
  /* 2026-07-18: 去 max-height 让 flex 真正撑开,大屏不留白 */
  overflow: hidden;
  position: relative;
  text-align: center;
  font-size: 13px; line-height: 2;
  color: var(--text-3);
  margin-bottom: 16px;
}
.lyric-box::before, .lyric-box::after {
  content: ''; position: absolute; left: 0; right: 0; height: 32px;
  z-index: 2; pointer-events: none;
}
.lyric-box::before { top: 0; background: linear-gradient(to bottom, white, rgba(255,255,255,0)); }
.lyric-box::after { bottom: 0; background: linear-gradient(to top, white, rgba(255,255,255,0)); }
.lyric-track { position: absolute; left: 0; right: 0; transition: transform .4s ease; padding: 64px 0; }
.lyric-line {
  padding: 4px 8px; transition: all .3s;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lyric-line.active { color: var(--primary); font-size: 15px; font-weight: 600; transform: scale(1.05); }
.lyric-empty { padding: 64px 16px; color: var(--text-4); font-size: 13px; text-align: center; }

/* 进度条 */
.progress-row {
  display: flex; gap: 8px; align-items: center;
  width: 100%; margin-bottom: 8px; flex-shrink: 0;
}
.time { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 36px; text-align: center; }
.progress {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--border-strong); border-radius: 2px; outline: none;
  cursor: pointer;
}
.progress::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); cursor: pointer;
  border: 2px solid white; box-shadow: 0 0 0 1px var(--border-strong);
}
.progress::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); cursor: pointer; border: 2px solid white;
}

.ctrl-row { display: flex; gap: 20px; align-items: center; margin-top: 4px; flex-shrink: 0; padding-bottom: 0; }
.ctrl-btn {
  border: none; background: transparent;
  cursor: pointer; font-size: 22px; color: var(--text);
  padding: 8px; border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ctrl-btn:hover { background: var(--bg-hover); }
.ctrl-btn.play {
  width: 56px; height: 56px;
  background: var(--primary); color: white;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(22,119,255,.3);
  display: flex; align-items: center; justify-content: center;
}
.ctrl-btn.play svg { color: white; }
.ctrl-btn.play:hover { background: var(--primary-hover); }
/* 清除描边/伪元素可能造成的三色 */
.ctrl-btn.play, .ctrl-btn.play *, .ctrl-btn.play::before, .ctrl-btn.play::after { outline: none; box-shadow: 0 4px 12px rgba(22,119,255,.3); }

/* 搜索 + 列表 */
.search-results {
  flex: 1; min-width: 0; height: 100%; min-height: 0;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.search-bar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 8px;
}
.search-input {
  flex: 1; height: 40px; padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--bg); font-size: 14px;
  outline: none; transition: border-color .15s;
}
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: var(--text-4); }
.search-go {
  height: 40px; padding: 0 20px;
  border: none; border-radius: var(--radius);
  background: var(--primary); color: white;
  font-size: 14px; cursor: pointer;
  transition: background .15s;
}
.search-go:hover { background: var(--primary-hover); }

.quick-tabs { display: flex; gap: 24px; padding: 12px 20px 0; border-bottom: 1px solid var(--border); }
.tab {
  padding: 8px 0 12px; color: var(--text-3);
  cursor: pointer; font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  user-select: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.mylist-count { font-size: 12px; color: var(--text-3); margin-left: 2px; }
.tab.active .mylist-count { color: var(--primary); }

/* 2026-07-12: 5 平台音乐源切换(网易/QQ/酷狗/酷我/咪咕) */
/* 2026-07-12: 用户歌单 tab 样式 */
.userlist-form { padding: 16px 20px 8px; }
.userlist-tip { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.userlist-inputs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.userlist-uid {
  flex: 1 1 200px; min-width: 120px; height: 36px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-2, #f5f6f8); color: var(--text);
  font-size: 14px; outline: none;
}
.userlist-uid:focus { border-color: var(--primary); }
.userlist-type {
  height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-2, #f5f6f8); color: var(--text);
  font-size: 14px; cursor: pointer;
}
.userlist-go {
  height: 36px; padding: 0 16px;
  background: var(--primary); color: white;
  border: none; border-radius: 8px;
  font-size: 14px; cursor: pointer; transition: all .15s;
}
.userlist-go:hover { background: var(--primary-hover, #4096ff); }

.userlist-history { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.userlist-history-label { font-size: 12px; color: var(--text-3); margin-right: 4px; }
.userlist-h-item {
  font-size: 12px; padding: 3px 10px; cursor: pointer;
  background: var(--bg-2, #f5f6f8); color: var(--text-2);
  border: 1px solid var(--border); border-radius: 12px;
  transition: all .15s;
}
.userlist-h-item:hover { background: var(--primary-bg, #e6f4ff); color: var(--primary); border-color: var(--primary); }

.userlist-list {
  padding: 8px 20px 20px;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.userlist-pl {
  cursor: pointer; border-radius: 8px; overflow: hidden;
  background: var(--bg-2, #f5f6f8);
  transition: all .15s;
  display: flex; flex-direction: column;
}
.userlist-pl:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.userlist-pl-cover { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-3, #e8e8e8); display: block; }
.userlist-pl-info { padding: 8px 10px; flex: 1; min-width: 0; }
.userlist-pl-name { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.userlist-pl-creator { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.userlist-pl-avatar { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }

/* 2026-07-12: 专辑头部 + 歌曲列表 */
.album-head {
  display: flex; gap: 16px; padding: 16px;
  background: var(--bg-2, #f5f6f8); border-radius: 12px;
  margin-bottom: 12px;
}
.album-head-cover { width: 120px; height: 120px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bg-3, #e8e8e8); }
.album-head-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.album-head-name { font-size: 18px; font-weight: 600; color: var(--text); }
.album-head-artist { font-size: 13px; color: var(--text-3); }
.album-head-count { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.album-head-actions { margin-top: auto; }
.album-head-play {
  height: 36px; padding: 0 16px;
  background: var(--primary); color: white;
  border: none; border-radius: 18px;
  font-size: 14px; cursor: pointer; transition: all .15s;
}
.album-head-play:hover { background: var(--primary-hover, #4096ff); }

.album-songs {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-2, #f5f6f8); border-radius: 12px;
  padding: 8px;
}
.album-song {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  cursor: pointer; transition: all .15s;
}
.album-song:hover { background: var(--primary-bg, #e6f4ff); }
.album-song-num { font-size: 13px; color: var(--text-3); width: 30px; flex-shrink: 0; text-align: center; }
.album-song-name { font-size: 14px; color: var(--text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-song-artist { font-size: 12px; color: var(--text-3); flex-shrink: 0; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.source-tabs { display: flex; gap: 6px; padding: 10px 20px 6px; flex-wrap: wrap; }
.src-tab {
  padding: 4px 12px; color: var(--text-3); background: var(--bg-2, #f5f6f8);
  border: 1px solid var(--border); border-radius: 14px;
  cursor: pointer; font-size: 13px; transition: all .15s; user-select: none;
}
.src-tab:hover { color: var(--text); border-color: var(--text-3); }
.src-tab.active {
  color: white; background: var(--primary); border-color: var(--primary);
  font-weight: 500;
}

.mode-btn {
  height: 32px; padding: 0 12px;
  background: var(--primary-bg); color: var(--primary);
  border: none; border-radius: 16px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.mode-btn:hover { background: var(--primary); color: white; }

.pl-tabs {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 8px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.pl-tabs::-webkit-scrollbar { display: none; }
.pl-tab {
  flex-shrink: 0; font-size: 13px; color: var(--text-3);
  cursor: pointer; padding: 4px 0;
  white-space: nowrap; user-select: none;
  border-bottom: 2px solid transparent;
}
.pl-tab:hover { color: var(--text); }
.pl-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

.result-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.result-empty { padding: 80px 20px; text-align: center; color: var(--text-4); font-size: 13px; }

/* 2026-07-17 v19: 大歌词区 fixed 浮动悬浮窗
   2 个独立 row(active 上, next 下), 永远显示 2 行完整, 不滚动
   透明背景, 默认屏幕中下方(top:75%), 鼠标按下可拖拽
   字号 2.5em (40px), 行高 1.15 (间距减半) */
.big-lyric {
  position: fixed;                     /* 脱离文档流, 不影响其他布局 */
  left: 50%; top: 75%;                 /* v19: 60%→75%, 更靠下 */
  transform: translateX(-50%);
  width: min(90vw, 1200px);
  z-index: 50;
  background: transparent;
  border: none;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  padding: 2px 0;                       /* v19: 4→2, 减半 */
  /* 高度 = 2 行自动, 父容器不裁切 */
  overflow: visible;
}
.big-lyric:active { cursor: grabbing; }
.big-lyric.dragging { cursor: grabbing; opacity: 0.85; }
.big-lyric-line {
  font-size: 2.5em;                    /* 2.5em × 16px = 40px */
  line-height: 1.15;                   /* v19: 1.3→1.15, 间距减半 */
  height: calc(2.5em * 1.15);           /* v19: 行高 46px, 2 行 = 92px */
  color: rgba(0,0,0,0.32);
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
  transition: color .2s;
}
.big-lyric-line.active {
  color: var(--primary);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(22,119,255,0.25);
}
@media (max-width: 900px) {
  .big-lyric { display: none; }
}

/* 2026-07-17 v20: 底部动态频谱背景
   宽的山峰频谱, 灰色半透明, 脘脘可见
   绝对定位底部, pointer-events:none 不拦截点击
   z-index 低, 位于所有内容之下 */
.music-spectrum {
  position: fixed;                 /* 2026-07-18: 改 fixed 浮在视口底部, 不挤压主容器 */
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 45px;                    /* v18: 90→45 减半 */
  z-index: 0;                      /* 2026-07-18: 改 0, 在内容之下 */
  pointer-events: none;            /* 不拦截任何点击 */
  user-select: none;
  background: transparent !important;  /* 强制 transparent, 不让浏览器默认白 */
  display: block;
  opacity: 0.5;
  mix-blend-mode: multiply;        /* 2026-07-18: 改成 multiply 模式, 白底 = 无色, 只显示柱状 */
  transition: opacity 0.3s ease;
}
body.music-playing .music-spectrum {
  opacity: 0.6;  /* v18: 浅灰 */
}
@media (max-width: 900px) {
  .music-spectrum { display: none; }
}
/* 2026-07-12 v8: 歌单列表多列布局 [序号] [歌名] [歌手] [专辑] [+]
   宽屏:4 列横排(2fr/1.2fr/1.2fr)  窄屏(<=720):只显示序号+歌名+,歌名下叠歌手-专辑 */
.song-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.5fr) 28px;
  align-items: center; gap: 16px;
  padding: 8px 20px; cursor: pointer;
  transition: background .12s;
}
.song-item:hover { background: var(--bg-hover); }
.song-item.playing { background: var(--primary-bg); }
.song-num { color: var(--text-3); text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.song-item.playing .song-num { color: var(--primary); }
.song-col { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-col-title { font-size: 14px; color: var(--text); }
.song-item.playing .song-col-title { color: var(--primary); font-weight: 500; }
.song-col-artist, .song-col-album { font-size: 13px; color: var(--text-3); }
/* 旧 meta class 保留兼容(以防其他地方引用) */
.song-meta { flex: 1; min-width: 0; }
.song-title { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-item.playing .song-title { color: var(--primary); font-weight: 500; }
.song-sub { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 窄屏:隐藏 歌手/专辑 独立列,改在歌名下方叠加显示(data-sub 内容) */
@media (max-width: 720px) {
  .song-item {
    grid-template-columns: 32px minmax(0, 1fr) 28px;
    gap: 8px; padding: 8px 12px;
  }
  .song-col-artist, .song-col-album { display: none; }
  .song-col-title {
    display: flex; flex-direction: column; line-height: 1.3;
  }
  .song-col-title::after {
    content: attr(data-sub);
    color: var(--text-3); font-size: 11px; font-weight: normal;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    margin-top: 2px;
  }
  .song-col-title:empty::after { content: ''; }
}
.song-added {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer;
  color: var(--text-3); font-size: 18px;
  transition: all .15s;
}
.song-added:hover { background: var(--primary-bg); color: var(--primary); }
.song-added.on { color: var(--error); }
.song-remove {
  width: 24px; height: 24px;
  background: transparent; border: none;
  color: var(--text-3); font-size: 18px;
  cursor: pointer; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.song-remove:hover { background: var(--error); color: white; }

/* 右键菜单 */
.ctx-menu {
  position: fixed; z-index: 10000;
  background: white; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  border: 1px solid var(--border);
  padding: 4px 0; min-width: 140px;
  font-size: 13px;
}
.ctx-item {
  padding: 8px 14px; cursor: pointer;
  transition: background .12s;
}
.ctx-item:hover { background: var(--bg-hover); color: var(--primary); }

/* 登录弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-mask.hidden { display: none; }
.modal {
  width: 100%; max-width: 400px;
  background: white; border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.modal h3 { font-size: 18px; margin-bottom: 20px; font-weight: 600; }
.modal-input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; margin-bottom: 12px;
  transition: border-color .15s;
}
.modal-input:focus { border-color: var(--primary); }
.modal-err { color: var(--error); font-size: 12px; min-height: 18px; margin-bottom: 8px; }
.modal-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.modal-btn {
  height: 38px; padding: 0 18px;
  border: 1px solid var(--border-strong); background: white;
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px;
  transition: all .15s;
}
.modal-btn:hover { border-color: var(--primary); color: var(--primary); }
.modal-btn.primary { background: var(--primary); color: white; border-color: var(--primary); }
.modal-btn.primary:hover { background: var(--primary-hover); }
.modal-foot { text-align: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.modal-foot a { color: var(--primary); font-size: 13px; text-decoration: none; }
.modal-foot a:hover { text-decoration: underline; }
.modal-wide { max-width: 460px; }
.reg-step { animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.reg-step.hidden { display: none; }
.reg-tip { color: var(--text-3); font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
.reg-tip b { color: var(--primary); }
.reg-username-hint { font-size: 12px; margin: -8px 0 12px; padding: 0 4px; color: var(--text-3); transition: color .15s; }
.reg-username-hint.ok { color: var(--success); }
.reg-username-hint.bad { color: var(--error); }
.reg-inbox-tip { margin-bottom: 12px; }
.reg-inbox-tip summary { cursor: pointer; color: var(--primary); font-size: 13px; padding: 6px 0; }
.reg-inbox { background: var(--bg-hover); border-radius: 8px; padding: 12px; margin-top: 8px; }
.reg-inbox-empty { color: var(--text-3); font-size: 12px; text-align: center; padding: 12px; }
.reg-mail { font-size: 13px; }
.reg-mail-hd { display: flex; justify-content: space-between; color: var(--text-2); margin-bottom: 8px; }
.reg-mail-sub { font-weight: 500; }
.reg-mail-date { color: var(--text-3); font-size: 11px; }
.reg-mail-code { padding: 8px 12px; background: white; border-radius: 6px; margin: 8px 0; font-family: ui-monospace, monospace; }
.reg-mail-code b { color: var(--primary); font-size: 18px; letter-spacing: 2px; }
.reg-mail-fill { background: var(--primary); color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.reg-mail-fill:hover { background: var(--primary-hover); }
.reg-username-row { position: relative; }
.reg-username-row .modal-input { padding-right: 60px; }
.reg-username-row .reg-username-hint { position: absolute; right: 12px; top: 12px; font-size: 12px; }
.reg-debug-code {
  background: #FFF7E6; color: #874D00;
  padding: 8px 12px; border-radius: 6px; font-size: 12px;
  margin-bottom: 8px; border: 1px solid #FFD591;
}
.reg-debug-code b { color: #1677FF; font-size: 14px; letter-spacing: 1px; }
.captcha-row {
  display: flex; gap: 8px; align-items: stretch;
  margin-bottom: 12px;
}
.captcha-row .modal-input { flex: 1; margin: 0; }
.captcha-img {
  width: 120px; height: 44px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #F0F2F5; cursor: pointer; object-fit: contain;
}
.captcha-img.loading { opacity: 0.5; }
.captcha-refresh {
  width: 44px; height: 44px;
  background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 18px; color: var(--text-2);
}
.captcha-refresh:hover { background: var(--bg-hover); color: var(--primary); }
.reg-hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.modal-err.ok { color: var(--success); }

/* Toast */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  z-index: 9999;
  padding: 10px 20px; background: rgba(0,0,0,.78); color: white;
  border-radius: 20px; font-size: 13px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.toast.show { opacity: 1; }
.toast.error { background: var(--error); }
.toast.success { background: var(--success); }

/* 调试面板 */
#debugPanel {
  position: fixed; top: 80px; right: 20px;
  width: 480px; max-width: calc(100vw - 40px);
  max-height: 60vh;
  background: rgba(20, 24, 30, 0.96);
  color: #E6E6E6;
  border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.5;
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all .2s;
}
#debugPanel.hidden { display: none; }
#debugPanel.pinned {
  top: 10px !important;
  box-shadow: 0 0 0 2px var(--error), 0 8px 24px rgba(0,0,0,.4);
}
.dbg-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: rgba(0,0,0,.3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  user-select: none;
}
.dbg-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #52C41A;
  flex-shrink: 0;
  transition: background .2s;
}
.dbg-dot.err { background: var(--error); animation: pulse-dot 1s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.dbg-title { flex: 1; font-weight: 600; color: white; font-size: 12px; }
.dbg-head button {
  background: rgba(255,255,255,0.1);
  border: none; color: white;
  width: 22px; height: 22px;
  border-radius: 4px; cursor: pointer;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.dbg-head button:hover { background: rgba(255,255,255,0.2); }
.dbg-body {
  flex: 1; overflow-y: auto; padding: 4px 0;
  font-variant-numeric: tabular-nums;
}
.dbg-body.collapsed { max-height: 0; overflow: hidden; padding: 0; }
.dbg-line {
  display: flex; gap: 8px; padding: 2px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  word-break: break-all;
}
.dbg-line:hover { background: rgba(255,255,255,0.04); }
.dbg-t { color: #888; flex-shrink: 0; }
.dbg-l { font-weight: 700; flex-shrink: 0; min-width: 50px; }
.dbg-m { flex: 1; min-width: 0; }
.dbg-info .dbg-l { color: #5B9BD5; }
.dbg-warn .dbg-l { color: #FAAD14; }
.dbg-error { background: rgba(255, 77, 79, 0.12); }
.dbg-error .dbg-l { color: #FF4D4F; }
.dbg-ok .dbg-l { color: #52C41A; }
.dbg-user .dbg-l { color: #B37FEB; }
.dbg-api .dbg-l { color: #13C2C2; }
.dbg-api .dbg-m { color: #B5E0F0; }

/* 3D 频谱已禁用,body.music-playing 半透明移除 */


/* 应用下载卡片 */
.app-body {
  padding: 32px 24px;
  max-width: 1100px;
  margin: 0 auto;
  /* 2026-07-12: 允许 appMode 内部上下滚动 (父 .mode overflow:hidden 截断) */
  flex: 1;
  min-height: 0;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.app-sub { color: #888; font-size: 14px; margin-bottom: 24px; }
.app-grid {
  display: grid !important; gap: 16px !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
}
@media (min-width: 600px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .app-grid { grid-template-columns: repeat(4, 1fr); } }
.app-card {
  background: #fff !important; border-radius: 12px !important; padding: 20px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
  display: flex !important; flex-direction: column !important; gap: 8px !important;
  align-items: flex-start !important;  /* 2026-07-12: 防止子元素被拉宽成色块 */
  text-decoration: none !important; color: inherit !important;
  transition: all 0.2s !important;
  overflow: hidden !important;
  min-width: 0 !important;
  width: 100% !important;
}
.app-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(22,119,255,0.15); }
.app-icon {
  width: 48px !important; height: 48px !important; border-radius: 12px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: #fff !important; font-size: 22px !important; font-weight: 600 !important;
  margin-bottom: 4px !important;
  flex-shrink: 0 !important;
  align-self: flex-start !important;
}
.app-name { font-size: 15px !important; font-weight: 600 !important; color: #1A1A1A !important; align-self: stretch !important; }
.app-desc { font-size: 12px !important; color: #999 !important; line-height: 1.5 !important; flex: 1 !important; min-height: 36px !important; word-break: break-word !important; align-self: stretch !important; }
.app-meta { font-size: 11px !important; color: #BBB !important; align-self: stretch !important; }
.app-btn {
  display: inline-block !important; padding: 8px 16px !important;
  background: #1677FF !important; color: #fff !important; border-radius: 6px !important;
  font-size: 13px !important; font-weight: 500 !important;
  text-align: center !important; margin-top: 4px !important;
  align-self: flex-start !important;
}
.app-card:hover .app-btn { background: #4096FF; }
.app-foot { margin-top: 32px; text-align: center; color: #CCC; font-size: 12px; }


/* 2026-07-12: 小智 AI 缩到右下角浮窗 */
.xiaozhi-wrap.xiaozhi-mini {
  position: fixed !important;
  right: 20px;
  bottom: 20px;
  width: 360px;
  height: 480px;
  max-width: 90vw;
  max-height: 70vh;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.xiaozhi-wrap.xiaozhi-mini iframe { border-radius: 16px; }

/* 小智意图提示横幅 */
.xiaozhi-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1677FF 0%, #4096FF 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.4);
  z-index: 10000;
  font-size: 14px;
  font-weight: 500;
  animation: xiaozhi-toast-in 0.3s ease, xiaozhi-toast-out 0.3s ease 2.5s both;
}
@keyframes xiaozhi-toast-in { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes xiaozhi-toast-out { to { transform: translate(-50%, -20px); opacity: 0; } }


/* 2026-07-12: 小智 AI 缩到右下角浮窗 — 方向自适应 */
.xiaozhi-wrap.xiaozhi-mini {
  position: fixed !important;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
/* 竖屏 (portrait): 竖长方形 — 高度占 60% 屏, 宽 360px */
.xiaozhi-wrap.xiaozhi-mini-portrait {
  width: 360px;
  max-width: 90vw;
  height: 60vh;
  max-height: 720px;
}
/* 横屏 (landscape): 横长方形 — 宽 480px, 高 360px */
.xiaozhi-wrap.xiaozhi-mini-landscape {
  width: 480px;
  max-width: 80vw;
  height: 360px;
  max-height: 70vh;
}
.xiaozhi-wrap.xiaozhi-mini iframe {
  border-radius: 16px;
  width: 100%;
  height: 100%;
}

/* 2026-07-18: 后台 grid 卡片 */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  padding: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  align-content: flex-start;
}
.admin-card {
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e8e8e8);
  border-radius: var(--radius-lg, 12px);
  padding: 20px 12px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-family: inherit;
}
.admin-card:hover {
  border-color: var(--primary, #1677FF);
  box-shadow: 0 4px 16px rgba(22,119,255,.15);
  transform: translateY(-2px);
}
.admin-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}
.admin-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #333);
}
.admin-desc {
  font-size: 11px;
  color: var(--text-4, #999);
}
/* 顶栏后台按钮 (在音乐右上角) */
.admin-btn {
  font-size: 16px;
  padding: 4px 8px;
  margin-right: 4px;
}


/* ============================================================
   2026-07-19: 车机模式 (Car Mode) v2 - 三屏布局
   横屏 (车机): 主菜单 25% | 歌单列表 30% | 播放 45% 并排
   竖屏: 三屏上下, 单击切 (data-screen 切换显隐)
   ============================================================ */

#carMode {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  background: linear-gradient(180deg, var(--car-bg-soft, rgba(22,119,255,0.15)) 0%, rgba(0,0,0,0) 50%), #0a0e1a;
  color: #fff;
  transition: background 0.6s ease;
}
#carMode.car-light { background: linear-gradient(180deg, var(--car-bg-soft, rgba(22,119,255,0.12)) 0%, rgba(255,255,255,0) 50%), #f4f5f7; color: #222; }
#carMode.hidden { display: none !important; }

/* 顶栏固定 */
.car-topbar {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 12px;
  flex-shrink: 0;
  padding: 0 8px;
}
.car-title { font-size: 20px; font-weight: 600; }
.car-spacer { flex: 1; }
.car-back-btn, .car-theme-btn, .car-search-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: inherit;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  transition: all 0.2s;
}
#carMode.car-light .car-back-btn,
#carMode.car-light .car-theme-btn,
#carMode.car-light .car-search-btn { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.08); }
.car-back-btn:hover, .car-theme-btn:hover, .car-search-btn:hover { background: rgba(255,255,255,0.18); transform: scale(1.05); }

/* 3 屏: 默认全 hidden, 走 data-screen 切显 */
.car-screen {
  flex: 1;
  display: none;
  overflow: auto;
  padding: 8px 0;
  min-height: 0;
}
#carMode[data-screen="menu"] .car-screen-menu { display: block; }
#carMode[data-screen="list"] .car-screen-list { display: block; }
#carMode[data-screen="player"] .car-screen-player { display: flex; flex-direction: column; }
#carMode[data-screen="loading"] .car-screen-loading { display: flex; align-items: center; justify-content: center; }

/* === 主菜单 (歌单封面 2 列网格) === */
.car-screen-title {
  font-size: 22px;
  font-weight: 600;
  margin: 8px 12px 12px 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.car-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 8px;
}
.car-menu-card {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.car-menu-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); border-color: rgba(22,119,255,0.5); }
.car-menu-card:active { transform: scale(0.97); }
.car-menu-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #2a3142;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.car-menu-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
}
.car-menu-icon { font-size: 48px; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.car-menu-name { font-size: 18px; font-weight: 600; }
.car-menu-desc { font-size: 13px; opacity: 0.6; }

/* === 歌单列表屏 === */
.car-list-desc { font-size: 14px; opacity: 0.7; margin: 0 12px 12px 12px; }
.car-song-list { padding: 0 4px; }
.car-song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.1s;
  min-height: 56px;
}
.car-song-row:hover { background: rgba(255,255,255,0.08); }
.car-song-row:active { background: rgba(255,255,255,0.12); }
.car-song-idx { font-size: 14px; opacity: 0.5; min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.car-song-info { flex: 1; min-width: 0; }
.car-song-name { font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-song-artist { font-size: 13px; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-song-dur { font-size: 13px; opacity: 0.5; font-variant-numeric: tabular-nums; }
.car-list-empty { text-align: center; padding: 60px 20px; font-size: 16px; opacity: 0.5; color: inherit; }
#carMode.car-light .car-list-empty { color: #888; }
.car-loading { font-size: 20px; opacity: 0.6; }

/* === 播放屏 === */
.car-player-main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px;
  flex: 1;
  min-height: 0;
}
.car-cover-wrap {
  flex-shrink: 0;
  width: min(280px, 40vw);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  background: #1a1f2e;
}
.car-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-info { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.car-song { font-size: 28px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-artist { font-size: 18px; opacity: 0.7; }
.car-lyric { font-size: 20px; line-height: 1.5; font-weight: 500; margin-top: 8px; min-height: 60px; opacity: 0.95; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.car-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  flex-shrink: 0;
}
.car-time { font-size: 14px; opacity: 0.7; min-width: 48px; font-variant-numeric: tabular-nums; }
.car-seek { flex: 1; height: 6px; -webkit-appearance: none; appearance: none; background: rgba(255,255,255,0.15); border-radius: 3px; outline: none; }
#carMode.car-light .car-seek { background: rgba(0,0,0,0.1); }
.car-seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #1677ff; cursor: pointer; box-shadow: 0 2px 6px rgba(22,119,255,0.4); }

.car-controls {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 12px;
  padding: 8px 12px 16px 12px;
  flex-shrink: 0;
}
.car-ctrl-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: inherit;
  padding: 14px 8px;
  border-radius: 14px;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 56px;
}
#carMode.car-light .car-ctrl-btn { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.08); }
.car-ctrl-btn:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.car-ctrl-btn:active { transform: scale(0.95); }
.car-play-btn {
  background: #1677ff !important;
  border: none !important;
  color: #fff !important;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(22,119,255,0.4);
  fill: #fff !important;
}
.car-play-btn svg { fill: #fff !important; }

/* === 弹窗 === */
.car-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.car-modal.hidden { display: none !important; }
.car-modal-card {
  background: #1a1f2e;
  border-radius: 20px;
  padding: 24px;
  width: 95%;
  max-width: 800px;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#carMode.car-light .car-modal-card { background: #fff; }
.car-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.car-modal-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.car-modal-close:hover { background: rgba(255,255,255,0.1); }
.car-search-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.car-search-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: inherit;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 18px;
  outline: none;
  min-height: 48px;
}
.car-search-input:focus { border-color: #1677ff; }
.car-source-switch { display: flex; gap: 6px; }
.car-source-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: inherit;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  min-width: 64px;
}
.car-source-btn.active { background: #1677ff; border-color: #1677ff; font-weight: 600; }
.car-search-results { max-height: 50vh; overflow-y: auto; }

/* 顶栏小按钮 (musicMode 顶栏) */
.car-btn { font-size: 16px; padding: 4px 8px; margin-right: 4px; }

/* ============================================================
   横屏布局 (车机 16:9, 理想 i6): 3 屏并排
   ============================================================ */
@media (orientation: landscape) and (min-width: 900px) {
  #carMode {
    padding: 12px 20px;
  }
  /* 横屏: 3 屏同时显示, 占不同比例 */
  .car-screen {
    display: block !important;
    flex: 0 0 auto;
  }
  #carMode {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .car-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
  }
  .car-screen-menu { flex: 0 0 28% !important; padding-top: 64px; }
  .car-screen-list { flex: 0 0 32% !important; padding-top: 64px; border-left: 1px solid rgba(255,255,255,0.08); border-right: 1px solid rgba(255,255,255,0.08); }
  .car-screen-player { flex: 1 !important; padding: 64px 16px 12px 16px; }
  .car-screen-loading { display: none !important; }
  /* 横屏主菜单: 1 列 (因宽度小) */
  .car-menu-grid { grid-template-columns: 1fr; }
  .car-menu-card { flex-direction: row; align-items: center; gap: 12px; padding: 8px; }
  .car-menu-cover { width: 60px; height: 60px; aspect-ratio: unset; flex-shrink: 0; }
  .car-menu-icon { font-size: 24px; }
  .car-menu-name { font-size: 16px; }
  .car-menu-desc { font-size: 12px; }
  .car-screen-title { font-size: 18px; margin: 4px 8px 8px 8px; }
  /* 横屏播放屏: 封面在左, 大 */
  .car-cover-wrap { width: min(320px, 50%); }
  .car-song { font-size: 32px; }
  .car-lyric { font-size: 22px; }
}

/* ============================================================
   2026-07-19: 车机模式 v3
   三屏分离 + 圆形封面 + 频谱外圈 + 歌词拖动
   ============================================================ */

#carMode {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "SF Pro Rounded", sans-serif;
  overflow: hidden;
  background: linear-gradient(180deg, var(--car-bg-soft, rgba(22,119,255,0.15)) 0%, rgba(0,0,0,0) 40%), #0a0e1a;
  color: #fff;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#carMode.car-light { background: linear-gradient(180deg, var(--car-bg-soft, rgba(22,119,255,0.12)) 0%, rgba(255,255,255,0) 40%), #f7f8fa; color: #222; }
#carMode.hidden { display: none !important; }

/* 顶栏 */
.car-topbar {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 4px;
  margin-bottom: 8px;
}
.car-title { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }
.car-spacer { flex: 1; }
.car-icon-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: inherit;
  width: 44px; height: 44px;
  border-radius: 22px;  /* 圆形 = 圆润 */
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.car-icon-btn svg { width: 22px; height: 22px; }
.car-back-btn { padding-left: 12px; padding-right: 12px; width: auto; }
#carMode.car-light .car-icon-btn { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.06); }
.car-icon-btn:hover { background: rgba(255,255,255,0.15); transform: scale(1.05); }
.car-icon-btn:active { transform: scale(0.92); }

/* 3 屏 */
.car-screen {
  flex: 1;
  display: none;
  overflow: auto;
  padding: 4px 0;
  min-height: 0;
  animation: carFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes carFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#carMode[data-screen="menu"] .car-screen-menu { display: block; }
#carMode[data-screen="list"] .car-screen-list { display: block; }
#carMode[data-screen="player"] .car-screen-player { display: flex; flex-direction: column; }
#carMode[data-screen="loading"] .car-screen-loading { display: flex; align-items: center; justify-content: center; }

/* 标题 */
.car-screen-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 22px;
  font-weight: 700;
  margin: 12px 4px;
}
.car-section-2 { margin-top: 24px; }
.car-title-icon { width: 22px; height: 22px; color: #1677ff; }

/* === 主菜单 (歌单圆形封面 2 列) === */
.car-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 4px;
}
.car-menu-card {
  --card-color: #1677ff;
  background: linear-gradient(135deg, var(--card-color) 0%, rgba(0,0,0,0.2) 100%);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.car-menu-card:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.car-menu-card:active { transform: scale(0.97); }
.car-menu-cover {
  width: 64px; height: 64px;
  border-radius: 32px;  /* 圆形 */
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
}
.car-menu-icon { width: 32px; height: 32px; }
.car-menu-name { font-size: 18px; font-weight: 700; color: #fff; }
.car-menu-desc { font-size: 12px; opacity: 0.85; color: #fff; }

/* 个性推荐 (4 列横向) */
.car-rec-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 4px;
}
.car-rec-card {
  --card-color: #1677ff;
  background: linear-gradient(135deg, var(--card-color) 0%, rgba(0,0,0,0.1) 100%);
  border-radius: 16px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}
.car-rec-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.car-rec-card:active { transform: scale(0.95); }
.car-rec-icon { color: #fff; opacity: 0.95; }
.car-rec-icon svg { width: 28px; height: 28px; }
.car-rec-name { font-size: 13px; font-weight: 600; color: #fff; }

/* === 歌单列表 === */
.car-list-desc { font-size: 14px; opacity: 0.7; margin: 0 4px 12px 4px; }
.car-song-list { padding: 0 2px; }
.car-song-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 60px;
}
.car-song-row:hover { background: rgba(255,255,255,0.08); transform: translateX(4px); }
.car-song-row:active { transform: scale(0.98); }
.car-song-idx { font-size: 15px; opacity: 0.5; min-width: 32px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.car-song-info { flex: 1; min-width: 0; }
.car-song-name { font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-song-artist { font-size: 13px; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-song-dur { font-size: 13px; opacity: 0.5; font-variant-numeric: tabular-nums; }
.car-list-empty { text-align: center; padding: 80px 20px; font-size: 16px; opacity: 0.5; }
.car-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 16px; opacity: 0.7; }
.car-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #1677ff;
  border-radius: 50%;
  animation: carSpin 0.8s linear infinite;
}
@keyframes carSpin { to { transform: rotate(360deg); } }

/* === 播放屏 (圆形封面 + 旋转 + 频谱外圈) === */
.car-screen-player {
  display: none;
  flex-direction: column;
  padding: 0;
}
#carMode[data-screen="player"] .car-screen-player { display: flex; }

.car-player-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 0;
}
.car-cover-wrap {
  position: relative;
  width: min(360px, 70vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;  /* 圆形 */
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  background: radial-gradient(circle, #1a1f2e 0%, #0a0e1a 100%);
}
.car-cover {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.car-cover-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
#carSpectrumCanvas { position: absolute; inset: 0; pointer-events: none; z-index: 5; border-radius: 50%; }

.car-player-info {
  padding: 0 12px 8px 12px;
  flex-shrink: 0;
}
.car-song { font-size: 26px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.car-artist { font-size: 16px; opacity: 0.7; margin-bottom: 12px; }
.car-lyric {
  position: relative;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  min-height: 60px;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: background 0.2s;
}
.car-lyric.dragging { background: rgba(22,119,255,0.18); cursor: grabbing; }
.car-lyric-hint { font-size: 12px; opacity: 0.4; text-align: center; margin-bottom: 4px; }
.car-lyric-text { display: block; }
.car-drag-hint {
  position: absolute;
  top: 50%; right: 16px;
  transform: translateY(-50%);
  background: rgba(22,119,255,0.95);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(22,119,255,0.4);
}
.car-drag-hint.show { opacity: 1; }

/* 进度条 */
.car-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  flex-shrink: 0;
}
.car-time { font-size: 13px; opacity: 0.7; min-width: 48px; font-variant-numeric: tabular-nums; }
.car-seek { flex: 1; height: 6px; -webkit-appearance: none; appearance: none; background: rgba(255,255,255,0.15); border-radius: 3px; outline: none; }
#carMode.car-light .car-seek { background: rgba(0,0,0,0.1); }
.car-seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #1677ff; cursor: pointer; box-shadow: 0 2px 6px rgba(22,119,255,0.4); }

/* 控制按钮 (3 个大圆按钮) */
.car-controls {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 16px;
  padding: 4px 32px 20px 32px;
  flex-shrink: 0;
}
.car-ctrl-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: inherit;
  padding: 14px 8px;
  border-radius: 50%;  /* 圆形 = 圆润 */
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 60px; min-width: 60px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.car-ctrl-btn svg { width: 24px; height: 24px; }
#carMode.car-light .car-ctrl-btn { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.06); }
.car-ctrl-btn:hover { background: rgba(255,255,255,0.15); transform: scale(1.08); }
.car-ctrl-btn:active { transform: scale(0.9); }
/* v6: 播放按钮 蓝白圆, 不要黄/橙 */
.car-play-btn {
  background: #1677ff !important;
  border: none !important;
  color: #fff !important;
  width: 80px; height: 80px;
  min-width: 80px; min-height: 80px;
  box-shadow: 0 6px 20px rgba(22,119,255,0.45);
  /* 强制: 任何 SVG/emoji 都白色 */
  fill: #fff !important;
}
.car-play-btn svg { width: 36px; height: 36px; fill: #fff !important; color: #fff !important; }
.car-play-btn:hover { background: #4096ff !important; box-shadow: 0 8px 24px rgba(22,119,255,0.6); transform: scale(1.08); }
.car-play-btn:active { transform: scale(0.95); }

/* === 弹窗 === */
.car-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: carFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.car-modal.hidden { display: none !important; }
.car-modal-card {
  background: #1a1f2e;
  border-radius: 20px;
  padding: 24px;
  width: 95%;
  max-width: 600px;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#carMode.car-light .car-modal-card { background: #fff; }
.car-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.car-modal-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: inherit;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.car-modal-close svg { width: 18px; height: 18px; }
.car-modal-close:hover { background: rgba(255,255,255,0.15); transform: rotate(90deg); }

/* 搜索 */
.car-search-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.car-search-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: inherit;
  padding: 12px 16px;
  border-radius: 24px;
  font-size: 16px;
  outline: none;
  min-height: 48px;
  transition: border-color 0.2s;
}
.car-search-input:focus { border-color: #1677ff; }
.car-source-switch { display: flex; gap: 6px; }
.car-source-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: inherit;
  padding: 12px 18px;
  border-radius: 24px;
  font-size: 15px;
  cursor: pointer;
  min-width: 64px;
  transition: all 0.15s;
}
.car-source-btn:hover { background: rgba(255,255,255,0.12); }
.car-source-btn.active { background: #1677ff; border-color: #1677ff; font-weight: 600; }
.car-search-results { max-height: 50vh; overflow-y: auto; }

/* 音质 */
.car-quality-list { display: flex; flex-direction: column; gap: 4px; }
.car-quality-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255,255,255,0.04);
}
.car-quality-item:hover { background: rgba(22,119,255,0.12); transform: translateX(4px); }
.car-q-name { font-size: 17px; font-weight: 500; }
.car-q-kbps { font-size: 14px; opacity: 0.6; font-weight: 600; }

/* 顶栏 (musicMode 顶栏的车机小按钮) */
.car-btn { font-size: 16px; padding: 4px 8px; margin-right: 4px; }

/* ============================================================
   横屏布局 (车机 16:9, 理想 i6): 3 屏并排
   ============================================================ */
@media (orientation: landscape) and (min-width: 900px) {
  #carMode {
    padding: 8px 16px;
  }
  .car-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    margin: 0;
    height: 48px;
  }
  .car-title { font-size: 18px; }
  .car-icon-btn { width: 38px; height: 38px; border-radius: 19px; }
  /* 3 屏并排 */
  .car-screen {
    display: block !important;
    flex: 0 0 auto;
    padding-top: 56px;
  }
  #carMode {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .car-screen-menu { flex: 0 0 24% !important; padding-right: 6px; border-right: 1px solid rgba(255,255,255,0.06); }
  .car-screen-list { flex: 0 0 30% !important; padding: 56px 6px 6px 6px; border-right: 1px solid rgba(255,255,255,0.06); }
  .car-screen-player { flex: 1 !important; padding: 56px 16px 8px 16px; }
  .car-screen-loading { display: none !important; }
  /* 横屏: 主菜单紧凑, 1 列 */
  .car-menu-grid { grid-template-columns: 1fr; gap: 8px; }
  .car-menu-card { flex-direction: row; align-items: center; gap: 12px; padding: 10px; }
  .car-menu-cover { width: 48px; height: 48px; flex-shrink: 0; }
  .car-menu-icon { width: 24px; height: 24px; }
  .car-menu-name { font-size: 15px; }
  .car-menu-desc { font-size: 11px; }
  .car-screen-title { font-size: 16px; margin: 6px 4px; }
  .car-section-2 { margin-top: 12px; }
  .car-rec-row { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .car-rec-card { padding: 8px 4px; }
  .car-rec-name { font-size: 11px; }
  /* 横屏: 播放器主区 */
  .car-player-top { padding: 0; }
  .car-cover-wrap { width: min(220px, 25vw); }
  .car-cover { width: 220px; height: 220px; }
  .car-player-info { padding: 8px 4px; }
  .car-song { font-size: 22px; }
  .car-lyric { font-size: 16px; padding: 8px; }
  .car-controls { padding: 4px 12px 8px 12px; gap: 12px; }
  .car-play-btn { width: 60px; height: 60px; min-width: 60px; min-height: 60px; }
  .car-play-btn svg { width: 28px; height: 28px; }
}

/* ============================================================
   2026-07-19 v4: 车机模式
   单一深色 + 半透圆角文字 + 列表式 (无彩色卡片, 无个性推荐)
   ============================================================ */

#carMode {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "SF Pro Rounded", sans-serif;
  overflow: hidden;
  background: linear-gradient(180deg, var(--car-bg-soft, rgba(22,119,255,0.12)) 0%, rgba(0,0,0,0) 40%), #0a0e1a;
  color: #fff;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#carMode.car-light { background: linear-gradient(180deg, var(--car-bg-soft, rgba(22,119,255,0.10)) 0%, rgba(255,255,255,0) 40%), #f7f8fa; color: #222; }
#carMode.hidden { display: none !important; }

/* 顶栏 (右侧, 避开浏览器自带按钮) */
.car-topbar {
  display: flex;
  align-items: center;
  height: 48px;
  gap: 6px;
  flex-shrink: 0;
  padding: 0;
  margin-bottom: 8px;
}
.car-spacer { flex: 1; }
.car-icon-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: inherit;
  width: 40px; height: 40px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
#carMode.car-light .car-icon-btn { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.06); }
.car-icon-btn:hover { background: rgba(255,255,255,0.15); transform: scale(1.05); }
.car-icon-btn:active { transform: scale(0.92); }
.car-back-circle { background: rgba(255,255,255,0.10); }

/* 3 屏 */
.car-screen {
  flex: 1;
  display: none;
  overflow: auto;
  padding: 4px 0;
  min-height: 0;
  animation: carFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes carFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#carMode[data-screen="menu"] .car-screen-menu { display: block; }
#carMode[data-screen="list"] .car-screen-list { display: block; }
#carMode[data-screen="search"] .car-screen-search { display: block; }
#carMode[data-screen="player"] .car-screen-player { display: flex; flex-direction: column; }
#carMode[data-screen="loading"] .car-screen-loading { display: flex; align-items: center; justify-content: center; }

/* 标题 */
.car-screen-title {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 4px 12px 4px;
  opacity: 0.7;
  letter-spacing: 0.5px;
  color: inherit;
}
#carMode.car-light .car-screen-title { color: #333; opacity: 0.9; }

/* 搜索栏 (页面内, 不弹窗) */
.car-search-inline {
  display: flex;
  gap: 8px;
  padding: 0 4px 12px 4px;
  align-items: center;
}
.car-search-input-inline {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: inherit;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 16px;
  outline: none;
  min-height: 44px;
  transition: border-color 0.2s, background 0.2s;
}
.car-search-input-inline:focus { border-color: #1677ff; background: rgba(22,119,255,0.08); }
.car-source-switch { display: flex; gap: 4px; }
.car-source-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: inherit;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  cursor: pointer;
  min-width: 56px;
  transition: all 0.15s;
}
.car-source-btn:hover { background: rgba(255,255,255,0.12); }
.car-source-btn.active { background: #1677ff; border-color: #1677ff; font-weight: 600; }
#carMode.car-light .car-search-input-inline,
#carMode.car-light .car-source-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }

/* 主菜单 (列表式, 单一深色, 不用彩色卡片) */
.car-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px;
}
.car-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  min-height: 56px;
}
.car-menu-item:hover { background: rgba(255,255,255,0.10); transform: translateX(4px); border-color: rgba(22,119,255,0.3); }
.car-menu-item:active { transform: scale(0.98); }
#carMode.car-light .car-menu-item { background: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.06); }
#carMode.car-light .car-menu-item:hover { background: rgba(22,119,255,0.08); border-color: rgba(22,119,255,0.2); }
.car-menu-name { font-size: 17px; font-weight: 600; flex: 1; color: inherit; }
#carMode.car-light .car-menu-name { color: #1a1a1a; }
.car-menu-desc { font-size: 13px; opacity: 0.55; color: inherit; }
#carMode.car-light .car-menu-desc { color: #666; opacity: 0.85; }
.car-menu-desc { font-size: 13px; opacity: 0.55; }
.car-menu-arrow { font-size: 20px; opacity: 0.3; transition: transform 0.2s, opacity 0.2s; }
.car-menu-item:hover .car-menu-arrow { opacity: 0.7; transform: translateX(4px); }

/* 歌单/搜索列表 (跟主菜单同款) */
.car-song-list { padding: 0 4px; }
.car-song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 56px;
}
.car-song-row:hover { background: rgba(255,255,255,0.08); transform: translateX(4px); }
.car-song-row:active { transform: scale(0.98); }
.car-song-idx { font-size: 14px; opacity: 0.5; min-width: 32px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.car-song-info { flex: 1; min-width: 0; }
.car-song-name { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; }
.car-song-artist { font-size: 13px; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; }
.car-song-dur { font-size: 13px; opacity: 0.5; font-variant-numeric: tabular-nums; }
#carMode.car-light .car-song-name { color: #1a1a1a; }
#carMode.car-light .car-song-artist { color: #666; opacity: 0.85; }
#carMode.car-light .car-song-dur { color: #888; }
#carMode.car-light .car-song-idx { color: #888; }
.car-list-empty { text-align: center; padding: 60px 20px; font-size: 16px; opacity: 0.5; }

/* 加载中 */
.car-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 16px; opacity: 0.7; }
.car-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #1677ff;
  border-radius: 50%;
  animation: carSpin 0.8s linear infinite;
}
@keyframes carSpin { to { transform: rotate(360deg); } }

/* 播放屏 (圆形封面 + 旋转 + 频谱外圈) */
.car-screen-player { display: none; flex-direction: column; padding: 0; }
#carMode[data-screen="player"] .car-screen-player { display: flex; }

.car-player-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px 16px 12px;
  min-height: 0;
}
.car-cover-wrap {
  position: relative;
  width: min(360px, 65vw);
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  background: radial-gradient(circle, #1a1f2e 0%, #0a0e1a 100%);
}
.car-cover {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.car-cover-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}
#carSpectrumCanvas { position: absolute; inset: 0; pointer-events: none; z-index: 5; border-radius: 50%; }

.car-player-info {
  padding: 0 8px 4px 8px;
  flex-shrink: 0;
}
.car-song { font-size: 24px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.car-artist { font-size: 15px; opacity: 0.7; margin-bottom: 10px; }
.car-lyric {
  position: relative;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  min-height: 80px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: background 0.2s;
  overflow: hidden;
}
.car-lyric-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.5; transition: all 0.3s; padding: 2px 0; }
.car-lyric-line.active { opacity: 1; font-weight: 600; font-size: 19px; color: #1677ff; }
#carMode.car-light .car-lyric-line { color: #444; }
#carMode.car-light .car-lyric-line.active { color: #1677ff; }
.car-lyric.dragging { background: rgba(22,119,255,0.18); cursor: grabbing; }
.car-lyric-hint { font-size: 11px; opacity: 0.4; text-align: center; margin-bottom: 4px; }
.car-lyric-text { display: block; }
.car-drag-hint {
  position: absolute;
  top: 50%; right: 16px;
  transform: translateY(-50%);
  background: rgba(22,119,255,0.95);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(22,119,255,0.4);
}
.car-drag-hint.show { opacity: 1; }

/* 进度条 */
.car-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  flex-shrink: 0;
}
.car-time { font-size: 13px; opacity: 0.7; min-width: 44px; font-variant-numeric: tabular-nums; }
.car-seek { flex: 1; height: 6px; -webkit-appearance: none; appearance: none; background: rgba(255,255,255,0.15); border-radius: 3px; outline: none; }
#carMode.car-light .car-seek { background: rgba(0,0,0,0.1); }
.car-seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #1677ff; cursor: pointer; box-shadow: 0 2px 6px rgba(22,119,255,0.4); }

/* 控制按钮 (3 个大圆) */
.car-controls {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 16px;
  padding: 4px 32px 16px 32px;
  flex-shrink: 0;
}
.car-ctrl-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: inherit;
  padding: 14px 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 60px; min-width: 60px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.car-ctrl-btn svg { width: 24px; height: 24px; }
#carMode.car-light .car-ctrl-btn { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.06); }
.car-ctrl-btn:hover { background: rgba(255,255,255,0.15); transform: scale(1.08); }
.car-ctrl-btn:active { transform: scale(0.9); }
.car-play-btn {
  background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%) !important;
  border-color: #1677ff !important;
  color: #fff !important;
  width: 72px; height: 72px;
  min-width: 72px; min-height: 72px;
  box-shadow: 0 8px 24px rgba(22,119,255,0.5);
}
.car-play-btn svg { width: 32px; height: 32px; }
.car-play-btn:hover { box-shadow: 0 12px 32px rgba(22,119,255,0.6); transform: scale(1.1); }

/* 弹窗 */
.car-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: carFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.car-modal.hidden { display: none !important; }
.car-modal-card {
  background: #1a1f2e;
  border-radius: 20px;
  padding: 24px;
  width: 95%;
  max-width: 500px;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#carMode.car-light .car-modal-card { background: #fff; }
.car-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.car-modal-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: inherit;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.car-modal-close svg { width: 18px; height: 18px; }
.car-modal-close:hover { background: rgba(255,255,255,0.15); transform: rotate(90deg); }

/* 音质 */
.car-quality-list { display: flex; flex-direction: column; gap: 4px; }
.car-quality-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255,255,255,0.04);
}
.car-quality-item:hover { background: rgba(22,119,255,0.12); transform: translateX(4px); }
.car-q-name { font-size: 16px; font-weight: 500; }
.car-q-kbps { font-size: 13px; opacity: 0.6; font-weight: 600; }

/* 顶栏 (musicMode 顶栏的车机小按钮) */
.car-btn { font-size: 16px; padding: 4px 8px; margin-right: 4px; }

/* ============================================================
   横屏布局 (车机 16:9): 3 屏并排
   ============================================================ */
@media (orientation: landscape) and (min-width: 900px) {
  #carMode { padding: 8px 16px; }
  .car-topbar {
    position: absolute;
    top: 8px; right: 12px;
    z-index: 10;
    margin: 0;
    height: 40px;
    width: auto;
  }
  .car-screen {
    display: block !important;
    flex: 0 0 auto;
    padding-top: 0;
  }
  #carMode {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .car-screen-menu { flex: 0 0 28% !important; padding: 0 12px 0 4px; border-right: 1px solid rgba(255,255,255,0.06); }
  .car-screen-list { flex: 0 0 30% !important; padding: 0 12px; border-right: 1px solid rgba(255,255,255,0.06); }
  .car-screen-search { flex: 0 0 30% !important; padding: 0 4px 0 12px; }
  .car-screen-player { flex: 1 !important; padding: 0 24px 12px 24px; }
  .car-screen-loading { display: none !important; }
  /* 横屏紧凑 */
  .car-menu-item { padding: 12px 12px; }
  .car-menu-name { font-size: 15px; }
  .car-menu-desc { font-size: 11px; }
  .car-screen-title { font-size: 14px; margin: 4px 0 8px 0; }
  .car-search-input-inline { font-size: 14px; padding: 8px 14px; min-height: 36px; }
  .car-source-btn { padding: 8px 10px; font-size: 12px; }
  /* 横屏播放器 */
  .car-player-top { padding: 0; }
  .car-cover-wrap { width: min(240px, 28vw); max-width: 280px; }
  .car-song { font-size: 20px; }
  .car-lyric { font-size: 14px; padding: 6px; }
  .car-controls { padding: 4px 12px 4px 12px; gap: 12px; }
  .car-play-btn { width: 56px; height: 56px; min-width: 56px; min-height: 56px; }
  .car-play-btn svg { width: 24px; height: 24px; }
}

/* v7: 模式选择按钮 + 弹窗 */
.car-mode-pick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: inherit;
  padding: 12px 16px;
  border-radius: 22px;
  font-size: 15px;
  cursor: pointer;
  margin: 0 4px 12px 4px;
  transition: all 0.15s;
  font-weight: 500;
}
.car-mode-pick-btn:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
#carMode.car-light .car-mode-pick-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.06); }

.car-mode-pick-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 100;
  padding: 60px 24px 24px 24px;
  animation: carFadeIn 0.2s ease;
}
.car-mode-pick-modal.hidden { display: none !important; }
.car-mode-pick-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
#carMode.car-dark .car-mode-pick-card { background: #1a1f2e; }
.car-mode-pick-card .car-mode-pick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 16px;
  text-align: left;
  width: 100%;
}
.car-mode-pick-card .car-mode-pick-item:hover { background: rgba(22,119,255,0.10); }
.car-mode-pick-card .car-mode-pick-item.active {
  background: rgba(22,119,255,0.15);
  color: #1677ff;
  font-weight: 600;
}
.car-mode-pick-card .car-mode-pick-item .car-mode-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22,119,255,0.10);
  color: #1677ff;
}






/* ============================================================
   2026-07-19 v14: 频谱底部背景 + 主色 + 歌词最底部
   ============================================================ */
#carMode {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  padding: 0; margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #eef0f3;
  color: #222;
  overflow: hidden;
}
#carMode.hidden { display: none !important; }

/* 顶栏 */
.car-topbar {
  display: flex; align-items: center;
  height: 60px; padding: 0 20px; background: rgba(255,255,255,0.95);
  flex-shrink: 0; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: relative; z-index: 200;
}
.car-topbar-left { display: flex; align-items: center; gap: 6px; position: relative; flex-shrink: 0; }
.car-page-dropdown {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: none;
  padding: 8px 12px; border-radius: 22px;
  color: #222; cursor: pointer; font-size: 15px; font-weight: 500;
  transition: background 0.2s;
}
.car-page-dropdown:hover { background: rgba(0,0,0,0.04); }
.car-page-dropdown svg { width: 18px; height: 18px; }
.car-page-dropdown-text { font-weight: 500; }
.car-page-dropdown-arrow { opacity: 0.5; width: 16px !important; height: 16px !important; }

.car-page-dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 6px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px; min-width: 200px; z-index: 300;
  display: flex; flex-direction: column; gap: 2px;
}
.car-page-dropdown-menu.hidden { display: none !important; }
.car-page-dropdown-item { display: block; width: 100%; padding: 12px 16px; border: none; background: transparent; text-align: left; font-size: 14px; color: #333; cursor: pointer; border-radius: 8px; transition: background 0.15s; }
.car-page-dropdown-item:hover { background: rgba(22,119,255,0.08); color: #1677ff; }

.car-topbar-center { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0 24px; background: #f0f2f5; border-radius: 22px; padding: 0 16px; height: 40px; min-width: 0; }
.car-search-icon { width: 18px; height: 18px; color: #999; flex-shrink: 0; }
.car-topbar-center input { flex: 1; border: none; outline: none; background: transparent; font-size: 15px; color: #222; min-width: 0; }
.car-topbar-center input::placeholder { color: #999; }

.car-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.car-mode-source-text { font-size: 15px; font-weight: 500; color: #222; white-space: nowrap; }
.car-icon-btn { background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.06); color: #222; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.car-icon-btn svg { width: 18px; height: 18px; }
.car-icon-btn:hover { background: rgba(0,0,0,0.1); transform: scale(1.05); }

/* === 频谱: 移到底部背景 (在 C/B 页面用, A 页面隐藏在底部) === */
.car-spectrum-top {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 120px; z-index: 1; pointer-events: none;
  opacity: 0.85;
}

/* 页面切换 */
.car-page { display: none; flex: 1; min-height: 0; padding-top: 60px; overflow: hidden; position: relative; }
.car-page.car-page-active { display: flex; }

/* === 页面 A: 推荐 === */
#carPageA-view { background: #eef0f3; }
.car-side { width: 200px; flex-shrink: 0; padding: 20px 12px; display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,0.7); border-right: 1px solid rgba(0,0,0,0.05); position: relative; z-index: 50; pointer-events: auto; }
.car-side-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px; font-size: 16px; color: #555; cursor: pointer; transition: all 0.2s; pointer-events: auto; user-select: none; -webkit-user-select: none; }
.car-side-item:hover { background: rgba(0,0,0,0.04); }
.car-side-item.car-side-active { background: rgba(0,0,0,0.06); color: #1677ff; font-weight: 600; }
.car-side-item svg { width: 18px; height: 18px; }
.car-spacer { flex: 1; }
.car-mini-player { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); box-shadow: 0 4px 12px rgba(0,0,0,0.15); cursor: pointer; transition: all 0.2s; flex-shrink: 0; align-self: center; margin-bottom: 12px; position: relative; display: flex; align-items: center; justify-content: center; }
.car-mini-player:hover { transform: scale(1.08); }
.car-mini-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; }
.car-mini-fallback svg { width: 32px; height: 32px; }
.car-mini-rotator { position: absolute; inset: 0; }
.car-mini-rotator img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: none; }

.car-main { flex: 1; padding: 24px 28px; overflow: auto; }
.car-section-title { font-size: 18px; font-weight: 600; color: #333; margin: 0 0 14px 0; display: flex; align-items: center; gap: 4px; }
.car-section-mt { margin-top: 32px; }
.car-section-arrow { color: #999; font-size: 16px; }
.car-playlists { display: flex; flex-direction: column; gap: 4px; background: transparent; }
.car-pl-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.2s; border: 1px solid transparent; user-select: none; -webkit-user-select: none; }
.car-pl-row:hover { background: #fff; transform: translateX(4px); border-color: rgba(22,119,255,0.2); }
.car-pl-row:active { transform: scale(0.98); }
.car-pl-row .car-pl-name { font-size: 16px; font-weight: 600; color: #222; min-width: 120px; }
.car-pl-row .car-pl-desc { font-size: 13px; color: #888; flex: 1; }
.car-pl-row .car-pl-arrow { font-size: 18px; color: #ccc; }
.car-pl-row:hover .car-pl-arrow { color: #1677ff; transform: translateX(4px); }
.car-podcasts { display: flex; gap: 16px; }
.car-podcast-card { width: 200px; cursor: pointer; transition: all 0.2s; }
.car-podcast-card:hover { transform: translateY(-2px); }
.car-podcast-card img { width: 100%; aspect-ratio: 1/1; border-radius: 10px; object-fit: cover; }
.car-podcast-name { font-size: 14px; font-weight: 500; margin-top: 6px; color: #222; }
.car-podcast-author { font-size: 12px; color: #888; margin-top: 2px; }

/* === 页面 B: 大字歌词 + 控制区 === */
#carPageB-view { background: #f0f2f5; }
.car-b-left { width: 45%; flex-shrink: 0; padding: 40px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid rgba(0,0,0,0.05); position: relative; z-index: 10; }
.car-b-cover-wrap { position: relative; width: 320px; height: 320px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); box-shadow: 0 8px 32px rgba(0,0,0,0.2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.car-b-cover { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: none; }
.car-b-cover-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; }
.car-b-cover-fallback svg { width: 80px; height: 80px; opacity: 0.8; }
.car-b-shine { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%); pointer-events: none; }
.car-b-info { text-align: center; margin-top: 20px; }
.car-b-name { font-size: 22px; font-weight: 700; color: #222; }
.car-b-artist { font-size: 14px; color: #888; margin-top: 4px; }
.car-b-progress { display: flex; align-items: center; gap: 10px; margin-top: 18px; width: 100%; max-width: 320px; }
.car-b-time { font-size: 12px; color: #888; min-width: 36px; }
.car-b-seek-wrap { flex: 1; height: 4px; background: rgba(0,0,0,0.1); border-radius: 2px; position: relative; }
.car-b-seek-bg { position: absolute; inset: 0; }
.car-b-seek-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #1677ff; border-radius: 2px; width: 0; }
.car-b-controls { display: flex; gap: 10px; margin-top: 20px; width: 100%; max-width: 320px; justify-content: space-between; }
.car-b-ctrl { background: rgba(255,255,255,0.9); border: none; color: #333; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 14px; font-weight: 500; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.car-b-ctrl:hover { background: #fff; transform: scale(1.06); }
.car-b-ctrl svg { width: 20px; height: 20px; }
.car-b-quality { width: auto; padding: 0 16px; border-radius: 24px; font-size: 13px; }
.car-b-controls-2 { margin-top: 12px; }
.car-b-ctrl-fav { color: #ff4757; font-size: 20px; }
.car-b-ctrl-play { background: #ff6b35; color: #fff; width: 56px; height: 56px; box-shadow: 0 4px 14px rgba(255,107,53,0.4); }
.car-b-ctrl-play:hover { background: #ff8559; }
.car-b-right { flex: 1; padding: 60px 40px; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1.8; color: #333; position: relative; z-index: 10; }
.car-b-lyric { width: 100%; max-width: 480px; text-align: center; }
.car-b-ll { padding: 6px 0; opacity: 0.5; transition: all 0.3s; }
.car-b-ll-active { opacity: 1; font-size: 24px; font-weight: 600; color: #222; }
.car-b-lyric-empty { color: #999; font-size: 16px; }

/* === 页面 C: 全屏大字歌词, 歌词放屏幕最底部 === */
#carPageC-view { background: #f0f2f5; flex-direction: column; align-items: center; padding-top: 60px; }
.car-c-head { text-align: center; padding: 18px 0 6px 0; position: relative; z-index: 10; }
.car-c-name { font-size: 20px; font-weight: 600; color: #444; }
.car-c-artist { font-size: 13px; color: #999; margin-top: 2px; }

/* 歌词放最底部 (屏幕最底, 在 car-c-bottom 上方, 紧贴控制区) */
.car-c-lyric {
  position: absolute;
  left: 0; right: 0;
  bottom: 130px;     /* 进度+控制的高度, 让歌词贴在控制上方 */
  width: 100%;
  padding: 8px 40px;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
  z-index: 10;
}
.car-c-ll { padding: 2px 0; font-size: 14px; color: rgba(0, 0, 0, 0.35); font-weight: 500; text-align: center; line-height: 1.5; transition: all 0.3s; text-shadow: 0 1px 3px rgba(255,255,255,0.6); }
.car-c-ll-active { color: rgba(0, 0, 0, 0.6); font-weight: 600; font-size: 15px; }
.car-c-lyric-empty { color: rgba(0,0,0,0.3); font-size: 14px; }

.car-c-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 40px 20px; width: 100%; background: linear-gradient(180deg, transparent 0%, rgba(240,242,245,0.92) 30%); z-index: 10; }
.car-c-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.car-c-time { font-size: 13px; color: #888; min-width: 42px; }
.car-c-seek-wrap { flex: 1; height: 4px; background: rgba(0,0,0,0.1); border-radius: 2px; position: relative; }
.car-c-seek-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #ff6b35; border-radius: 2px; width: 0; }
.car-c-controls { display: flex; justify-content: space-around; align-items: center; }
.car-c-ctrl { background: transparent; border: none; color: #333; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 500; }
.car-c-ctrl:hover { background: rgba(0,0,0,0.05); }
.car-c-ctrl svg { width: 22px; height: 22px; }
.car-c-ctrl-play { background: #ff6b35; color: #fff; box-shadow: 0 4px 14px rgba(255,107,53,0.4); width: 60px; height: 60px; }
.car-c-ctrl-play:hover { background: #ff8559; }
.car-c-ctrl-play svg { width: 26px; height: 26px; }

/* 弹窗 */
.car-modal { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 500; }
.car-modal.hidden { display: none !important; }
.car-modal-card { background: #fff; border-radius: 16px; padding: 20px; width: 90%; max-width: 400px; max-height: 80vh; overflow: auto; }
.car-modal-header { display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.car-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #888; }
.car-quality-list { display: flex; flex-direction: column; gap: 4px; }
.car-quality-item { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 10px; cursor: pointer; transition: all 0.15s; }
.car-quality-item:hover { background: rgba(255,107,53,0.08); }
.car-q-name { font-size: 15px; }
.car-q-kbps { font-size: 13px; color: #888; }
.car-mode-pick-card { background: #fff; border-radius: 16px; padding: 12px; width: 90%; max-width: 360px; }
.car-mode-pick-item { display: block; width: 100%; padding: 14px 16px; border-radius: 10px; border: none; background: transparent; text-align: left; font-size: 15px; cursor: pointer; color: #333; }
.car-mode-pick-item:hover { background: rgba(0,0,0,0.04); }
.car-mode-pick-item.car-mode-pick-active { background: rgba(255,107,53,0.1); color: #ff6b35; font-weight: 600; }

/* v15 手机全屏播放页底部频谱 (跟 musicMode 168 柱横向同源) */
.full-spectrum {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 90px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}
