/* ============================================================
 * 唱唱 · 现代暗色玻璃拟态 UI
 * ============================================================ */
:root {
  --bg: #0b0b12;
  --bg-2: #12121c;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f8;
  --dim: #9a9aae;
  --dim-2: #6f6f82;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --cyan: #22d3ee;
  --danger: #ff5a6a;
  --radius: 18px;
  --radius-sm: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(100% 70% at 100% 0%, rgba(236, 72, 153, 0.16), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-user-select: none;
  user-select: none;
  overflow-x: hidden;
}

/* ---------- 顶部品牌栏 ---------- */
.app-header {
  position: sticky; top: 0; z-index: 30;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 12px;
  background: linear-gradient(180deg, rgba(11, 11, 18, 0.92), rgba(11, 11, 18, 0.55));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.hdr-btn {
  position: relative; display: grid; place-items: center; cursor: pointer;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.hdr-btn svg { width: 21px; height: 21px; }
.hdr-btn:active { background: var(--surface-2); }
.logout-btn { width: auto; padding: 0 14px; font-size: 13px; font-weight: 700; color: var(--text); }
/* 未读红点 / 数字徽标 */
.badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px rgba(11,11,18,.9);
}
[hidden] { display: none !important; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.brand-sub { font-size: 11px; color: var(--dim); margin-top: 1px; }

/* ---------- 屏幕容器 ---------- */
.screen { display: none; padding: 16px 16px 96px; animation: fade .28s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; padding: 18px 4px 8px; }
.hero-glow {
  position: absolute; inset: -30px -30px auto -30px; height: 200px;
  background: radial-gradient(60% 100% at 30% 0%, rgba(139, 92, 246, 0.35), transparent 70%);
  filter: blur(8px); pointer-events: none;
}
.hero-title { position: relative; font-size: 30px; font-weight: 850; line-height: 1.15; margin: 6px 0 6px; }
.hero-title .hl {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { position: relative; color: var(--dim); font-size: 13px; margin: 0 0 16px; }

.hero-search, .search-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 0 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-search .ic, .search-wrap .ic { width: 18px; height: 18px; color: var(--dim); flex: none; }
.hero-search input, .search-wrap input {
  flex: 1; border: none; background: none; outline: none; color: var(--text);
  font-size: 15px; padding: 13px 10px;
}
.hero-search input::placeholder, .search-wrap input::placeholder { color: var(--dim-2); }

/* ---------- 区块标题 ---------- */
.section-title {
  font-size: 14px; font-weight: 700; color: var(--dim);
  margin: 26px 4px 12px; letter-spacing: .5px;
}

/* ---------- 模块卡片网格（首页） ---------- */
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.module-card {
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 14px 14px;
  display: flex; flex-direction: column; gap: 6px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.module-card:active { transform: scale(.97); border-color: rgba(139, 92, 246, 0.5); background: var(--surface-2); }
.mc-ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; margin-bottom: 4px;
}
.mc-ic svg { width: 22px; height: 22px; }
.grad-a { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.grad-b { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.grad-c { background: linear-gradient(135deg, #22d3ee, #0ea5e9); }
.grad-d { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.mc-title { font-size: 15px; font-weight: 700; }
.mc-sub { font-size: 11px; color: var(--dim); }

/* ---------- 热门推荐网格 ---------- */
.hot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.song-card {
  position: relative; cursor: pointer; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); padding: 0; transition: transform .15s ease;
}
.song-card:active { transform: scale(.97); }
.song-cover {
  height: 96px; display: grid; place-items: center;
  font-size: 34px; font-weight: 800; color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.song-card .sc-info { padding: 2px 0; min-width: 0; }
.song-card .sc-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-card .sc-artist { font-size: 11px; color: var(--dim); margin-top: 2px; }

/* ---------- 子页头部 ---------- */
.sub-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sub-title { font-size: 19px; font-weight: 800; margin: 0; }
.sub-spacer { flex: 1; }
.back {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.back svg { width: 20px; height: 20px; }
.back:active { background: var(--surface-2); }

/* 分段切换 */
.seg { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 3px; margin-left: auto; }
.seg-btn {
  border: none; background: none; color: var(--dim); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 8px; cursor: pointer; transition: all .15s;
}
.seg-btn.active { background: var(--accent-grad); color: #fff; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4); }

.search-wrap { margin-bottom: 14px; }

/* ---------- 歌库内容 ---------- */
.lib-body { display: flex; flex-direction: column; gap: 10px; }
.artist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.artist-chip { text-align: center; cursor: pointer; }
.artist-ava {
  width: 72px; height: 72px; margin: 0 auto 7px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.artist-chip .ac-name { font-size: 13px; font-weight: 600; }
.artist-chip .ac-count { font-size: 10px; color: var(--dim); }

.song-row {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: transform .12s ease, background .12s ease;
}
.song-row:active { transform: scale(.985); background: var(--surface-2); }
.sr-cover {
  width: 46px; height: 46px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 800;
}
.sr-main { flex: 1; min-width: 0; }
.sr-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-artist { font-size: 12px; color: var(--dim); margin-top: 2px; }
.sr-tag {
  font-size: 10px; color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 6px; padding: 2px 6px; white-space: nowrap; flex: none;
}
.sr-play { color: var(--dim); flex: none; }
.sr-play svg { width: 18px; height: 18px; }

.group-label { font-size: 12px; color: var(--dim); font-weight: 700; margin: 6px 2px 2px; letter-spacing: 1px; }

/* ---------- 联网找歌 ---------- */
.online-form { display: flex; flex-direction: column; gap: 10px; }
.field {
  width: 100%; padding: 13px 14px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 15px; outline: none;
}
.field:focus { border-color: var(--accent); }
.hint { font-size: 12px; color: var(--dim); line-height: 1.55; margin: 2px 2px 0; }
.online-result { margin-top: 16px; }
.result-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px;
}
.result-card h3 { margin: 0 0 4px; font-size: 17px; }
.result-card .sub { font-size: 12px; color: var(--dim); margin-bottom: 12px; }
.lrc-preview {
  max-height: 150px; overflow: auto; font-size: 12px; color: var(--dim);
  background: rgba(0, 0, 0, 0.25); border-radius: 10px; padding: 10px; white-space: pre-wrap; line-height: 1.7;
}
.manual-area {
  width: 100%; min-height: 120px; margin-top: 10px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--text);
  padding: 10px; font-size: 13px; font-family: inherit; resize: vertical; outline: none;
}

/* ---------- 我的录音 ---------- */
.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.rec-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rec-title { font-size: 14px; font-weight: 600; }
.rec-time { font-size: 11px; color: var(--dim); margin-top: 2px; }
.rec-del {
  flex: none; background: none; border: 1px solid var(--danger); color: var(--danger);
  border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.rec-item audio { width: 100%; margin-top: 10px; }
.acc-actions { margin-top: 10px; }
.acc-actions .sc-sing { width: 100%; }

/* ---------- 按钮 ---------- */
.btn-primary {
  background: var(--accent-grad); color: #fff; border: none; border-radius: 13px;
  padding: 13px 18px; font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}
.btn-primary:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.btn-primary.block { width: 100%; }
.btn-warn {
  background: transparent; color: #ff7a59; border: 1.5px solid rgba(255, 122, 89, 0.55); border-radius: 13px;
  padding: 11px 18px; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 8px;
}
.btn-warn:active { background: rgba(255, 122, 89, 0.12); }
.btn-warn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost {
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .12s;
}
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 沉浸式唱歌页 ---------- */
.sing-screen {
  position: fixed; inset: 0; z-index: 50; max-width: 460px; margin: 0 auto;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(236, 72, 153, 0.2), transparent 55%),
    var(--bg);
  display: none; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
}
.sing-screen.active { display: flex; }
.sing-top { display: flex; align-items: center; gap: 10px; }
.sing-meta { flex: 1; min-width: 0; }
.sing-title { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sing-artist { font-size: 12px; color: var(--dim); margin-top: 2px; }

.lyric-box {
  flex: 1; overflow-y: auto; padding: 40px 16px; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}
.line {
  text-align: center; font-size: 17px; line-height: 1.5; color: var(--dim);
  padding: 10px 6px; transition: all .25s ease; opacity: .4;
}
.line.active {
  color: #fff; font-size: 23px; font-weight: 800; opacity: 1;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 26px rgba(139, 92, 246, 0.45);
}
.line.matched { color: var(--cyan); }

.sing-status { text-align: center; font-size: 13px; color: var(--cyan); min-height: 18px; padding: 4px 0; }
.sing-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 6px; }
.btn-record {
  width: 100%; padding: 16px; border: none; border-radius: 16px; cursor: pointer;
  font-size: 17px; font-weight: 800; color: #fff; background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.5);
}
.btn-record:disabled { opacity: .5; }
.rec-ring {
  width: 12px; height: 12px; border-radius: 50%; background: #fff; flex: none;
}
.recording .rec-ring { background: var(--danger); animation: blink 1s infinite; box-shadow: 0 0 0 4px rgba(255, 90, 106, 0.3); }
@keyframes blink { 50% { opacity: .25; } }
.ctrl-row { display: flex; gap: 10px; width: 100%; }
.ctrl-row .btn-ghost { flex: 1; }
.player { width: 100%; margin-top: 4px; }
.sing-tip { text-align: center; font-size: 11px; color: var(--dim); margin: 10px 6px 0; line-height: 1.5; }

/* ---------- 联网听歌：歌曲卡片 ---------- */
.song-card { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; margin-bottom: 10px; }
.sc-pic { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #222; flex: none; }
/* 曲库卡片首元素（渐变字块）：固定为与封面图同尺寸，避免被 flex 压成窄条 */
.song-card .song-cover { width: 48px; height: 48px; border-radius: 10px; flex: none; font-size: 20px; }
.sc-info { flex: 1; min-width: 0; }
.sc-title { font-weight: 700; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-sub { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.sc-actions { display: flex; gap: 7px; flex: none; width: 100%; justify-content: flex-start; margin-top: 2px; }
.sc-play, .sc-sing, .sc-acap, .sc-music { padding: 7px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; border: none; cursor: pointer; white-space: nowrap; }
.sc-play { background: rgba(255,255,255,.12); color: #fff; }
.sc-play.playing { background: #a78bfa; color: #0b0b12; }
.sc-sing { background: linear-gradient(135deg, #a78bfa, #ec4899); color: #0b0b12; }
.sc-acap { background: rgba(255,255,255,.12); color: #fff; }
.sc-music { background: linear-gradient(135deg, #34d399, #22d3ee); color: #06231c; }
.sr-actions { display: flex; gap: 8px; flex: none; }
.sr-acap, .sr-music, .sr-add { padding: 6px 11px; border-radius: 9px; font-size: 12px; font-weight: 700; border: none; cursor: pointer; white-space: nowrap; }
.sr-acap { background: rgba(255,255,255,.12); color: #fff; }
.sr-music { background: linear-gradient(135deg, #34d399, #22d3ee); color: #06231c; }
.sr-add { background: rgba(167,139,250,.25); color: #cbb8ff; }
.bg-audio { display: none; }
.player:not([hidden]) { width: 100%; margin: 12px 0 4px; }

/* ---------- 跟唱仪（音频驱动） ---------- */
.follow-panel {
  width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 14px; margin-top: 8px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.fp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.seg-sm { padding: 2px; border-radius: 9px; gap: 2px; margin-left: 0; }
.seg-sm .seg-btn { font-size: 12px; padding: 6px 12px; border-radius: 7px; }
.fp-vad { font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.fp-vad.on { color: var(--cyan); }

.fp-meter { display: flex; align-items: center; gap: 10px; }
.fp-label { font-size: 11px; color: var(--dim); flex: none; }
.pitch-track {
  position: relative; flex: 1; height: 26px; border-radius: 13px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
  overflow: hidden;
}
.pitch-marker {
  position: absolute; top: 3px; bottom: 3px; width: 4px; border-radius: 2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan); opacity: 0;
  transform: translateX(-2px); transition: left .05s linear, opacity .2s;
}
.fp-note { font-size: 13px; font-weight: 700; color: #fff; width: 38px; text-align: center; flex: none; }

.fp-level { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); margin: 8px 0 6px; overflow: hidden; }
.fp-level-fill { height: 100%; width: 0%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width .08s linear; }

.fp-speed { display: flex; align-items: center; gap: 10px; }
.fp-speed input[type="range"] { flex: 1; accent-color: var(--accent); height: 4px; }
.sp-end { font-size: 11px; color: var(--dim); flex: none; }

/* ---------- 伴奏唱模式：进度条 + 暂停/播放 ---------- */
.track-panel {
  width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 14px; margin-top: 8px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tp-row { display: flex; align-items: center; gap: 10px; }
.tp-pp {
  flex: none; padding: 8px 14px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #34d399, #22d3ee); color: #06231c;
  font-size: 13px; font-weight: 700;
}
.tp-pp.playing { background: rgba(255,255,255,.16); color: #fff; }
.tp-time { font-size: 12px; color: var(--dim); width: 40px; text-align: center; flex: none; }
.tp-seek { flex: 1; accent-color: #22d3ee; height: 4px; }

/* ---------- 底部导航 ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px; z-index: 40;
  display: flex; padding: 8px 8px calc(8px + var(--safe-b));
  background: linear-gradient(180deg, rgba(11, 11, 18, 0.6), rgba(11, 11, 18, 0.95));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.nav-item {
  flex: 1; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--dim-2); font-size: 11px; padding: 4px 0;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: #fff; }
.nav-item.active svg { color: var(--accent); filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6)); }

/* ---------- 空态 ---------- */
.empty { text-align: center; color: var(--dim); padding: 48px 0; font-size: 14px; line-height: 1.6; }

/* 滚动条隐藏（移动端点歌更干净） */

.grad-e { background: linear-gradient(135deg, #f59e0b, #ec4899); }
.grad-f { background: linear-gradient(135deg, #2dd4bf, #0ea5e9); }
.grad-g { background: linear-gradient(135deg, #a78bfa, #34d399); }

/* ---------- 伴奏分离（本地 AI） ---------- */
.sep-box { padding: 4px 2px; }
.sep-intro { font-size: 13px; color: #e5e7eb; line-height: 1.6; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 6px 0 14px; }
.sep-intro strong { color: #fff; }
.sep-import { display: flex; flex-direction: column; gap: 10px; }
.file-btn { position: relative; text-align: center; cursor: pointer; }
.sep-or { text-align: center; color: var(--dim); font-size: 12px; margin: 2px 0; }
.sep-url { display: flex; gap: 8px; }
.sep-url .field { flex: 1; }
.sep-status { margin: 14px 2px 6px; font-size: 13px; color: #fff; font-weight: 600; }
.sep-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.sep-bar-fill { height: 100%; width: 0%; border-radius: 4px; background: linear-gradient(90deg, #a78bfa, #ec4899); transition: width .2s; }
.sep-result { margin-top: 12px; }
.sep-result .result-card { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.sep-result .result-card h3 { margin: 0 0 4px; font-size: 15px; color: #fff; }
.sep-result .result-card .sub { font-size: 12px; color: var(--dim); }
.lyric-box::-webkit-scrollbar, .lrc-preview::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- 播放列表 / 纯播放（v1.4.4） ---------- */
.grad-h { background: linear-gradient(135deg, #60a5fa, #3b82f6); }

/* 加号按钮（加入播放列表） */
.sr-add {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
  color: var(--text); font-size: 20px; font-weight: 700; line-height: 1;
}
.sr-add:active { background: var(--accent); color: #fff; }

.card-add {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; font-size: 19px; font-weight: 700; line-height: 1;
}
.card-add:active { background: var(--accent); }

.sc-add {
  padding: 7px 12px; border-radius: 10px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer;
}
.sc-add:active { background: rgba(255, 255, 255, 0.18); }

.pl-bar { display: flex; gap: 10px; margin: 12px 0; }
.pl-bar .btn-primary { flex: 1; }
.pl-play { width: 100%; }
.rec-top-actions { display: flex; gap: 8px; flex: none; }
.pl-pin {
  flex: none; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--accent); color: var(--accent);
  background: rgba(139, 92, 246, 0.12); cursor: pointer;
}
.pl-pin:active { background: rgba(139, 92, 246, 0.26); }
.rec-item.pinned { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35); }

/* ===== 使用声明（首页底部常驻） ===== */
.declaration {
  margin: 18px 4px 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.65;
  color: var(--dim);
}
.declaration strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.declaration p { margin: 0; }

.home-account { margin: 6px 4px 24px; }
.home-account .ha-row { display: flex; gap: 10px; }
.home-account .ha-row .btn-ghost { flex: 1; }
.ha-logout { color: #ff8fc4; border-color: rgba(236, 72, 153, 0.4); }

/* ---------- 首页热门推荐：竖版卡片（避免被联网横版 .song-card flex 样式挤压） ---------- */
.home-card { display: block; padding: 0; }
.home-card .song-cover { height: 96px; }
.home-card .sc-info { padding: 9px 11px 0; }
.home-card .sc-actions { flex-wrap: wrap; justify-content: flex-start; padding: 8px 10px 11px; gap: 6px; }
.home-card .sc-acap, .home-card .sc-music, .home-card .sc-add { padding: 6px 9px; font-size: 11px; white-space: nowrap; }

/* 顶栏按钮：恢复 hidden 属性语义（.hdr-btn 的 display:grid 会覆盖 UA 的 [hidden]{display:none}） */
.hdr-btn[hidden] { display: none !important; }

/* ===== 使用声明弹窗（首次启动） ===== */
.decl-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 4, 10, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.decl-modal[hidden] { display: none; }
.decl-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #181826, #12121c);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: declPop .22s ease-out;
}
@keyframes declPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.decl-ic {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.16);
  color: var(--accent-2);
}
.decl-title { margin: 0 0 10px; font-size: 18px; }
.decl-body { margin: 0 0 18px; font-size: 13px; line-height: 1.75; color: var(--dim); }
.decl-card .btn-primary { margin-top: 2px; }

.play-list-btn {
  width: 38px; height: 38px; border-radius: 11px; flex: none; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  display: grid; place-items: center;
}
.play-list-btn svg { width: 20px; height: 20px; }
.play-list-btn:active { background: var(--surface-2); }

/* 下载原唱按钮（联网搜歌卡片中）：按钮行独占第二行、左对齐 */
.sc-actions { flex-wrap: wrap; justify-content: flex-start; }
.sc-dl {
  padding: 7px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; border: none; cursor: pointer;
  background: linear-gradient(135deg, #f59e0b, #f97316); color: #1a1206;
}
.sc-dl:active { filter: brightness(1.08); }

/* ---------- 待分离清单（v1.4.5） ---------- */
.pending-wrap {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 16px; padding: 12px 12px 6px; margin: 0 0 14px;
}
.pending-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.pending-title { font-size: 14px; font-weight: 800; color: #fbbf24; }
.pending-sub { font-size: 11px; color: var(--dim); }
.pending-list { display: flex; flex-direction: column; gap: 10px; }
.pending-item {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 12px;
}
.pending-item .rec-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pending-item .rec-title { font-size: 14px; font-weight: 700; color: #fff; }
.pending-item .rec-time { font-size: 11px; color: var(--dim); margin-top: 2px; }
.pen-audio { width: 100%; margin: 9px 0 2px; }
.pen-sep { width: 100%; }
.pen-del { padding: 4px 10px; font-size: 11px; }

.play-progress { display: flex; align-items: center; gap: 8px; margin: 12px 2px 0; }
.pp-time { font-size: 11px; color: var(--dim); flex: none; min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.play-seek {
  flex: 1; height: 5px; -webkit-appearance: none; appearance: none;
  background: rgba(255, 255, 255, 0.14); border-radius: 3px; outline: none; cursor: pointer; margin: 0;
}
.play-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px rgba(34, 211, 238, 0.7); cursor: pointer;
}
.play-seek::-moz-range-thumb {
  width: 14px; height: 14px; border: none; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px rgba(34, 211, 238, 0.7); cursor: pointer;
}
.play-seek:disabled { opacity: .4; cursor: default; }

.play-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.play-controls .play-nav {
  flex: none; padding: 11px 14px; border-radius: 12px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700;
}
.play-controls .play-nav:active { background: var(--surface-2); }
.play-controls .play-main { flex: 1; }

/* 播放模式切换 */
.play-mode { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 0; }
.pm-label { font-size: 13px; color: var(--dim); font-weight: 600; }
.pm-btn {
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: background .12s, border-color .12s;
}
.pm-btn:active { background: var(--surface-2); border-color: rgba(139, 92, 246, 0.5); }

/* ---------- 蓝牙 / 媒体控制面板 ---------- */
.bt-panel {
  margin: 16px 2px 0; padding: 12px 14px;
  background: rgba(34, 197, 220, 0.08); border: 1px solid rgba(34, 197, 220, 0.32);
  border-radius: 14px;
}
.bt-head { display: flex; align-items: center; gap: 8px; }
.bt-ic { font-size: 16px; }
.bt-title { flex: 1; font-size: 14px; font-weight: 700; color: var(--text); }
.bt-status {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: var(--dim); border: 1px solid var(--line);
}
.bt-status.on { background: rgba(52, 211, 153, 0.16); color: #4ade80; border-color: rgba(52, 211, 153, 0.5); }
.bt-status.off { background: rgba(248, 113, 113, 0.14); color: #f87171; border-color: rgba(248, 113, 113, 0.5); }
.bt-meta { margin-top: 8px; font-size: 13px; color: var(--text); font-weight: 600; word-break: break-all; }
.bt-hint { margin: 6px 0 0; font-size: 11px; line-height: 1.5; color: var(--dim); }

/* ---------- 歌单（风格精选 + 平台流行榜） ---------- */
.charts-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.chart-card {
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line);
  border-radius: 18px; padding: 13px 13px 6px; overflow: hidden;
}
.chart-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.chart-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; }
.chart-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-size: 20px; box-shadow: 0 6px 16px rgba(139, 92, 246, 0.32);
}
.chart-name { font-size: 15px; font-weight: 800; }
.chart-sub { font-size: 11px; color: var(--dim); margin-top: 2px; }
.chart-import { flex: none; padding: 10px 14px; font-size: 13px; }
.chart-songs { display: flex; flex-direction: column; }
.chart-song {
  display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line);
}
.cs-main { flex: 1; min-width: 0; }
.cs-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-artist { font-size: 11px; color: var(--dim); margin-top: 1px; }
.cs-acts { display: flex; gap: 6px; flex: none; }
.cs-play, .cs-add {
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer; flex: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-size: 14px; display: grid; place-items: center; transition: background .12s;
}
.cs-play:active, .cs-add:active { background: var(--surface-2); border-color: rgba(139, 92, 246, 0.5); }
.cs-add { color: var(--accent); font-weight: 800; }

/* Toast 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(20px);
  z-index: 200; max-width: 80%; padding: 10px 18px; border-radius: 22px;
  background: rgba(0, 0, 0, 0.82); color: #fff; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 迷你播放器（后台播放时控制） */
.mini-player {
  position: fixed; left: 50%; bottom: calc(60px + var(--safe-b)); transform: translateX(-50%);
  width: calc(100% - 28px); max-width: 432px; z-index: 45;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px;
  background: rgba(20, 20, 30, 0.92); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
/* 关键修复：默认 .mini-player 设了 display:flex，会覆盖 HTML hidden 属性导致始终置顶遮挡。
   此处确保 hidden 时彻底隐藏（登录 / 唱歌 / 播放页均不显示悬浮播放器）。 */
.mini-player[hidden] { display: none !important; }
.mini-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; text-align: left; }
.mini-ic { color: var(--cyan); font-size: 16px; flex: none; }
.mini-title { color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-toggle {
  flex: none; padding: 8px 16px; border-radius: 12px; cursor: pointer; border: none;
  background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #0b0b12; font-weight: 700; font-size: 13px;
}
.mini-toggle:active { filter: brightness(1.08); }
.mini-ctrl {
  flex: none; display: grid; place-items: center; height: 38px; padding: 0 9px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  color: #fff; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; line-height: 1;
}
.mini-ctrl:active { background: var(--surface-2); }
.mini-mode { font-size: 12px; }

/* ============================================================
 * 登录 / 申请开通
 * ============================================================ */
.screen.login-screen.active { display: flex; align-items: center; justify-content: center; padding: 24px 18px; }
.login-card {
  width: 100%; max-width: 380px;
  background: linear-gradient(180deg, #181826, #12121c);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.login-brand { text-align: center; margin-bottom: 18px; }
.login-logo { width: 56px; height: 56px; border-radius: 16px; }
.login-name { font-size: 19px; font-weight: 700; margin-top: 8px; }
.login-sub { font-size: 12px; color: var(--dim); margin-top: 2px; }
.login-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.ltab {
  flex: 1; padding: 9px 0; border-radius: 11px; cursor: pointer; font-size: 13px;
  background: var(--surface); border: 1px solid var(--line); color: var(--dim);
}
.ltab.active { background: var(--accent-grad); color: #0b0b12; font-weight: 700; border-color: transparent; }
.ltab-pane { display: flex; flex-direction: column; gap: 10px; }
.field {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); outline: none;
}
.field:focus { border-color: var(--accent); }
.field.area { min-height: 72px; resize: vertical; line-height: 1.5; }
.login-hint { font-size: 12px; color: var(--dim-2); line-height: 1.6; margin: 2px 0 0; text-align: center; }
.pending-box { text-align: center; }
.pending-ic { font-size: 34px; }
.pending-title { font-weight: 600; margin: 6px 0 8px; }

/* ============================================================
 * 好友消息（私聊 + 公告 + 管理）
 * ============================================================ */
.ann-bar {
  margin: 10px 12px; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6;
  background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.3); color: #ffd9ec;
}
.chat-view { padding: 6px 0 12px; }
.member-list { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
.member-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-align: left;
}
.member-item:active { background: var(--surface-2); }
.mi-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; flex: none; }
.mi-name { flex: 1; font-size: 15px; font-weight: 600; }
.mi-go { font-size: 12px; color: var(--dim); }

.conv-head { display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px; border-bottom: 1px solid var(--line); }
.conv-peer { font-size: 15px; font-weight: 600; }
.msg-list { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg-mine { align-self: flex-end; align-items: flex-end; }
.msg-theirs { align-self: flex-start; align-items: flex-start; }
.msg-bubble { padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
.msg-mine .msg-bubble { background: var(--accent-grad); color: #0b0b12; border-bottom-right-radius: 5px; }
.msg-theirs .msg-bubble { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 5px; }
.msg-time { font-size: 10px; color: var(--dim-2); margin-top: 3px; }

.emoji-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 10px 0; }
.emoji-btn { width: 34px; height: 34px; font-size: 18px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.emoji-btn:active { background: var(--surface-2); }
.chat-input { display: flex; gap: 8px; padding: 8px 12px 4px; }
.chat-input .field { flex: 1; }

.admin-sec { margin: 10px 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.admin-sec-title { font-size: 13px; font-weight: 700; color: var(--dim); margin-bottom: 10px; }
.admin-user-list { display: flex; flex-direction: column; gap: 8px; }
.admin-user { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.au-main { flex: 1; min-width: 0; }
.au-name { font-size: 14px; font-weight: 600; }
.au-role { font-size: 11px; color: var(--cyan); margin-left: 6px; font-weight: 400; }
.au-meta { font-size: 12px; color: var(--dim); margin: 2px 0; }
.au-msg { font-size: 12px; color: var(--dim-2); line-height: 1.5; word-break: break-word; }
.au-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.au-btn { padding: 7px 12px; border-radius: 9px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; }
.au-ok { background: #34d399; color: #06281c; }
.au-ban { background: rgba(255, 90, 106, 0.18); color: var(--danger); border: 1px solid rgba(255, 90, 106, 0.4); }
.au-btn:disabled { opacity: 0.5; }

/* ===== 密码输入：眼睛切换 / 修改密码 / 重置密码 ===== */
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap .field { width: 100%; padding-right: 44px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; border-radius: 9px;
  background: transparent; color: var(--dim-2, #8b8b9e); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pw-eye svg { width: 20px; height: 20px; }
.pw-eye.showing, .pw-eye:active { color: var(--accent, #b06bff); }
.forgot-link {
  display: block; margin: 8px auto 0; padding: 4px 8px;
  background: none; border: none; color: var(--dim-2, #8b8b9e);
  font-size: 13px; text-decoration: underline; cursor: pointer;
}
.pw-change-btn { margin-top: 16px; }
.au-reset-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
  background: rgba(255, 193, 7, 0.16); color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.45);
}
.au-pw { background: rgba(176, 107, 255, 0.16); color: #c99aff; border: 1px solid rgba(176, 107, 255, 0.45); }
.au-del { background: var(--danger); color: #fff; }
.au-del:active { filter: brightness(0.9); }
.reset-pw-row { display: flex; gap: 8px; align-items: center; margin: 10px 0 2px; }
.reset-pw-row .field { flex: 1; text-align: center; font-size: 20px; font-weight: 700; letter-spacing: 4px; user-select: all; }

/* ============================================================
 * 公告置顶（首页横幅） + 消息中心 + 底部导航红点 + 综合搜索标签
 * ============================================================ */
.ann-pin {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 11px 14px;
  border-radius: 14px; font-size: 13px; line-height: 1.5; color: #ffd9ec;
  background: rgba(236, 72, 153, 0.14); border: 1px solid rgba(236, 72, 153, 0.34);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.12);
}

/* 底部导航未读红点 */
.nav-badge {
  position: absolute; top: 2px; right: calc(50% - 22px); min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px rgba(11,11,18,.9);
}
.nav-item { position: relative; }

/* 消息中心列表 */
.msg-center-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 8px; }
.mc-ann {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  background: rgba(236, 72, 153, 0.14); border: 1px solid rgba(236, 72, 153, 0.34); color: #ffd9ec;
}
.mc-ann-ic { font-size: 20px; flex: none; }
.mc-ann-body { flex: 1; min-width: 0; }
.mc-ann-t { font-size: 12px; font-weight: 800; color: #ffb3da; margin-bottom: 3px; }
.mc-ann-c { font-size: 13px; line-height: 1.55; word-break: break-word; }
.mc-sec { font-size: 12px; font-weight: 800; color: var(--dim); margin: 8px 4px 2px; letter-spacing: 1px; }
.mc-empty { text-align: center; color: var(--dim-2); font-size: 13px; padding: 8px 0; }
.mc-thread {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.mc-thread:active { background: var(--surface-2); }
.mc-thread-ava { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 800; }
.mc-thread-main { flex: 1; min-width: 0; }
.mc-thread-name { font-size: 14px; font-weight: 700; }
.mc-thread-last { font-size: 12px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-thread-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11px; color: var(--dim-2); }
.mc-dot {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger);
  color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.mc-sys { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mc-sys-ic { font-size: 18px; flex: none; }
.mc-sys-body { flex: 1; min-width: 0; }
.mc-sys-t { font-size: 13px; font-weight: 700; }
.mc-sys-c { font-size: 12px; color: var(--dim); margin-top: 2px; line-height: 1.5; word-break: break-word; }
.mc-sys-time { font-size: 11px; color: var(--dim-2); margin-top: 3px; }

/* 综合搜索结果卡片上的「曲库 / 网上」标签 */
.song-card .tag {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 7px;
  border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 1.5;
}
.song-card .tag-local { background: rgba(34, 211, 238, 0.16); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.4); }
.song-card .tag-online { background: rgba(236, 72, 153, 0.16); color: #ff8fc4; border: 1px solid rgba(236, 72, 153, 0.4); }

/* ============================================================
 * 影视模块（screen-movie / screen-movie-detail / screen-movie-play）
 * ============================================================ */

/* ---------- 分类横滑 ---------- */
.mv-cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mv-cats::-webkit-scrollbar { display: none; }
.mv-cat {
  flex: none; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); color: var(--dim); cursor: pointer;
}
.mv-cat.active { background: var(--accent-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(139, 92, 246, .35); }
.mv-cat.loading { background: none; border: none; color: var(--dim-2); font-weight: 500; }

/* ---------- 推荐轮播（每部都可直接播） ---------- */
.mv-hero-wrap { margin: 12px 0 4px; }
.mv-hero-scroll {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mv-hero-scroll::-webkit-scrollbar { display: none; }
.mv-slide {
  flex: 0 0 100%; scroll-snap-align: center; position: relative; height: 188px;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #2a2140, #3a1b33);
}
.mv-slide-pic { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-slide-mask { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 11, 18, .96) 6%, rgba(11, 11, 18, .28) 55%, transparent 92%); }
.mv-slide-info { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.mv-slide-name { font-size: 18px; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 8px rgba(0, 0, 0, .65); }
.mv-slide-meta { font-size: 12px; color: var(--dim); margin: 4px 0 10px; }
.mv-slide-row { display: flex; gap: 8px; align-items: center; }
.mv-slide-play { padding: 9px 18px; font-size: 13px; }
.mv-slide-det {
  background: rgba(255, 255, 255, .14); border: 1px solid var(--line); color: var(--text);
  border-radius: 13px; padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
}

/* ---------- 全部分类 ---------- */
.mv-cat-more { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 0; }
.mv-cat-toggle {
  background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 700;
  cursor: pointer; padding: 6px 0;
}
.mv-cat-toggle.active { color: var(--accent-2); }
.mv-count { font-size: 11px; color: var(--dim-2); }
.mv-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 0; }
.mv-cat-cell {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); padding: 11px 8px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.mv-cat-cell.active { background: var(--accent-grad); color: #fff; border-color: transparent; }
.mv-more-left { display: flex; gap: 12px; align-items: center; }

/* ---------- 筛选面板（年份 / 地区） ---------- */
.mv-filter-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; margin: 10px 0 0;
}
.mvfp-sec { margin-bottom: 12px; }
.mvfp-title { font-size: 13px; font-weight: 700; color: var(--dim); margin-bottom: 8px; }
.mv-chips { display: flex; flex-wrap: wrap; gap: 7px; max-height: 148px; overflow-y: auto; }
.mv-chip {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.mv-chip.active { background: var(--accent-grad); color: #fff; border-color: transparent; }
.mvfp-actions { display: flex; gap: 8px; }
.mvfp-actions .btn-ghost { padding: 8px 14px; font-size: 12px; }

/* ---------- 搜索结果分组 ---------- */
.mv-sec-head {
  font-size: 13px; font-weight: 700; color: var(--dim);
  margin: 16px 2px 8px; letter-spacing: .3px;
}
.mv-sec-head:first-child { margin-top: 4px; }

/* 搜索结果：横向列表行（比三列小卡更清晰，长标题不挤） */
.mv-list { display: flex; flex-direction: column; gap: 10px; }
.mv-row {
  display: flex; gap: 12px; padding: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  text-align: left; color: var(--text); cursor: pointer; width: 100%;
}
.mv-row-pic {
  width: 64px; height: 88px; flex: none; border-radius: 9px;
  object-fit: cover; background: var(--surface-2); border: 1px solid var(--line);
}
.mv-row-info { flex: 1; min-width: 0; }
.mv-row-name {
  font-size: 15px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mv-row-meta {
  font-size: 12px; color: var(--dim); margin-top: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mv-row-badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 700; color: var(--cyan);
  background: rgba(34, 211, 238, .14); border: 1px solid rgba(34, 211, 238, .34);
}
.mv-row-play {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--accent-grad); color: #fff; font-size: 15px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(139, 92, 246, .38);
}

/* ---------- 清晰度选择 ---------- */
.mv-qualities { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mv-q {
  background: rgba(255, 255, 255, .12); border: 1px solid transparent; color: #fff;
  border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.mv-q.active { background: var(--accent-grad); color: #fff; }
.mv-q-disabled { font-size: 11px; color: rgba(255, 255, 255, .6); padding: 6px 4px; }

/* ---------- 滑动手势提示 ---------- */
.mv-gesture {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .66); color: #fff; border-radius: 14px; padding: 14px 18px;
  z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 132px; text-align: center; pointer-events: none;
}
.gv-text { font-size: 14px; font-weight: 700; }
.gv-bar { width: 120px; height: 6px; background: rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; }
.gv-fill { height: 100%; width: 0%; background: var(--accent-grad); }

/* ---------- 投屏 ---------- */
.mv-cast-panel {
  background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px; padding: 10px; margin-top: 8px; max-height: 184px; overflow-y: auto;
}
.mvcp-head { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.mvcp-head span { color: #ffd166; margin-left: 6px; font-weight: 600; }
.mvcp-list { display: flex; flex-direction: column; gap: 6px; }
.mvcp-dev {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; border-radius: 9px; padding: 9px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; text-align: left;
}
.mvcp-empty { font-size: 11px; color: rgba(255, 255, 255, .75); line-height: 1.6; }
.mvcp-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mvcp-actions .btn-ghost { padding: 7px 12px; font-size: 11px; }
.mvcp-tip { font-size: 10px; color: rgba(255, 255, 255, .6); margin: 8px 0 0; line-height: 1.5; }
.mvcp-ctrl { margin-top: 8px; }
.mvcp-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mvcp-time { flex: none; font-size: 11px; color: #fff; font-variant-numeric: tabular-nums; }
.mvcp-seek {
  flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}
.mvcp-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: none;
}
/* 遥控三键：快退 / 播放暂停 / 快进 */
.mvcp-remote { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 10px; }
.mvcp-rbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 58px; height: 52px; padding: 0 10px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px; color: #fff; font-size: 17px; line-height: 1; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mvcp-rbtn span { font-size: 9px; font-weight: 700; opacity: .85; }
.mvcp-rbtn:active { background: rgba(255, 255, 255, .28); }
.mvcp-rbtn-main {
  min-width: 68px; height: 58px; font-size: 20px;
  background: rgba(255, 209, 102, .92); border-color: rgba(255, 209, 102, .92); color: #1a1400;
}
.mvcp-rbtn-main span { opacity: .9; }
.mvcp-rbtn-main:active { background: rgba(255, 209, 102, .75); }

/* ---------- 海报一键播放 ---------- */
.mv-quick {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .25);
}

/* ---------- 搜索清空 ---------- */
.mv-clear {
  flex: none; background: none; border: none; color: var(--dim); font-size: 20px;
  cursor: pointer; padding: 0 2px; line-height: 1;
}

/* ---------- 海报网格 ---------- */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mv-poster { background: none; border: none; padding: 0; cursor: pointer; text-align: left; color: var(--text); }
.mv-pic-wrap {
  position: relative; width: 100%; aspect-ratio: 2 / 3; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface-2); border: 1px solid var(--line);
}
.mv-pic-wrap.no-pic { background: linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(236, 72, 153, .3)); }
.mv-pic { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-badge {
  position: absolute; bottom: 6px; right: 6px; background: rgba(0, 0, 0, .62); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
}
.mv-pname {
  font-size: 12px; font-weight: 700; margin-top: 6px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mv-pmeta { font-size: 11px; color: var(--dim-2); margin-top: 2px; }
.mv-loading { text-align: center; color: var(--dim); padding: 34px 0; font-size: 13px; }

/* ---------- 源设置面板 ---------- */
.mv-src-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin: 10px 0 0;
}
.mvsp-head { font-size: 13px; font-weight: 700; color: var(--dim); }
.mvsp-list { margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.mvsp-row {
  display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px;
  border: 1px solid transparent;
}
.mvsp-row.active { border-color: rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .1); }
.mvsp-info { flex: 1; min-width: 0; background: none; border: none; color: var(--text); text-align: left; cursor: pointer; padding: 0; }
.mvsp-name { font-size: 13px; font-weight: 700; }
.mvsp-lat {
  margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--cyan);
  background: rgba(34, 211, 238, .14); border: 1px solid rgba(34, 211, 238, .35);
  border-radius: 6px; padding: 1px 6px;
}
.mvsp-lat.bad { color: var(--danger); background: rgba(255, 90, 106, .14); border-color: rgba(255, 90, 106, .35); }
.mvsp-api { font-size: 11px; color: var(--dim-2); margin-top: 2px; word-break: break-all; }
.mvsp-del {
  flex: none; background: none; border: 1px solid var(--line); color: var(--danger);
  border-radius: 8px; padding: 5px 10px; font-size: 11px; cursor: pointer;
}
.mvsp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mvsp-actions .btn-ghost { padding: 8px 14px; font-size: 12px; }

/* ---------- 详情（沉浸式） ---------- */
.mv-detail { position: relative; }
.mvd-bg {
  position: absolute; top: -16px; left: -16px; right: -16px; height: 240px;
  background-size: cover; background-position: center;
  filter: blur(34px) brightness(.55); opacity: .55; border-radius: 0 0 var(--radius) var(--radius);
}
.mvd-main { position: relative; z-index: 1; display: flex; gap: 14px; padding-top: 6px; }
.mvd-pic {
  width: 118px; height: 168px; flex: none; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--surface-2); border: 1px solid var(--line);
}
.mvd-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.mvd-name { font-size: 19px; font-weight: 800; line-height: 1.25; }
.mvd-sub { font-size: 12px; color: var(--dim); margin-top: 6px; }
.mvd-meta .btn-primary { margin-top: 12px; padding: 10px 20px; font-size: 14px; }
.mvd-sec { position: relative; z-index: 1; margin-top: 22px; }
.mvd-sec-title { font-size: 13px; font-weight: 700; color: var(--dim); margin-bottom: 8px; }
.mvd-content { font-size: 13px; color: var(--dim); line-height: 1.7; white-space: pre-wrap; margin: 0; }
.mvd-eps { display: flex; flex-direction: column; gap: 12px; }
.mvd-src-row { display: flex; flex-direction: column; gap: 6px; }
.mvd-src-label { font-size: 12px; font-weight: 700; color: var(--dim-2); }
.mvd-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mvd-ep {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 8px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.mvd-ep:active { background: var(--surface-2); }

/* ---------- 播放页（全屏） ---------- */
.movie-play-screen { padding: 0 !important; background: #000; }
.movie-play-screen.active { position: fixed; inset: 0; z-index: 60; display: block; }
.movie-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
/* 全屏态（横屏 + 沉浸）：画面撑满，控件贴边 */
.movie-play-screen.fs .movie-video { object-fit: contain; background: #000; }
.movie-play-screen.fs .mv-controls {
  padding: calc(8px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px))
           calc(10px + env(safe-area-inset-bottom, 0px)) calc(10px + env(safe-area-inset-left, 0px));
}
.mv-dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 1; }
.mv-q-switch {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; border-radius: 8px; padding: 7px 12px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.mv-controls {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px))
           calc(16px + env(safe-area-inset-bottom, 0px)) calc(14px + env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 26%, transparent 55%, rgba(0, 0, 0, .82));
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
/* 覆盖层本身透明于点击，只有控件可点——这样点画面空白处能收起/唤出控制条 */
.mv-controls.show { opacity: 1; pointer-events: none; }
.mv-controls.show .mv-top,
.mv-controls.show .mv-big,
.mv-controls.show .mv-bottom { pointer-events: auto; }
/* 欢迎语：跟随控制条淡入淡出，右下角；金色渐变 + 光影辉光 */
.mv-welcome {
  position: absolute; right: 14px; z-index: 3; pointer-events: none;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 96px);
  max-width: 62%; text-align: right; line-height: 1.55;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  background: linear-gradient(180deg, #fff6d5 0%, #ffe9a8 30%, #f5c95c 62%, #d99a2b 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .85)) drop-shadow(0 0 7px rgba(255, 196, 72, .5));
  opacity: 0; transition: opacity .3s ease;
}
/* 老 WebView 不支持 background-clip:text 时，渐变文字会整块透明——退回纯金色 */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .mv-welcome { color: #f5c95c; -webkit-text-fill-color: #f5c95c; background: none; }
}
.mv-controls.show + .mv-welcome { opacity: 1; }
/* 投屏面板弹出时让位，避免压在面板上 */
.cast-open .mv-welcome { opacity: 0 !important; }
.mv-top { display: flex; align-items: center; gap: 10px; }
.mv-back {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .45);
  border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mv-back svg { width: 20px; height: 20px; }
.mv-title {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mv-big {
  align-self: center; width: 62px; height: 62px; border-radius: 50%; border: none;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mv-bottom { display: flex; flex-direction: column; gap: 8px; }
.mv-status { font-size: 12px; color: #ffd166; text-align: center; min-height: 16px; }
.mv-progress { display: flex; align-items: center; gap: 8px; }
.mv-time { flex: none; font-size: 11px; color: #fff; font-variant-numeric: tabular-nums; }
.mv-seek {
  flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}
.mv-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: none;
}
.mv-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; position: relative; }
/* 音量滑块面板：点 🔊 在按钮栏上方浮出 */
.mv-vol-panel {
  position: absolute; bottom: calc(100% + 10px); right: 0;
  display: flex; align-items: center; gap: 10px;
  background: rgba(20, 20, 26, .92); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.mv-vol-panel[hidden] { display: none; }
.mv-vol-slider {
  width: 140px; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(255, 255, 255, .25); border-radius: 2px; outline: none; cursor: pointer;
}
.mv-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.mv-vol-pct { font-size: 12px; font-weight: 700; color: #fff; min-width: 38px; text-align: right; }
.mv-vol-btn { min-width: 46px; }
.mv-btn {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; border-radius: 10px; padding: 7px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.mv-speeds { display: flex; gap: 4px; }
.mv-spd {
  background: rgba(255, 255, 255, .1); border: 1px solid transparent; color: #ccc;
  border-radius: 8px; padding: 6px 9px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.mv-spd.active { background: var(--accent-grad); color: #fff; }
.mv-sources { max-height: 132px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.mv-sources .mv-src-row { display: flex; flex-direction: column; gap: 5px; }
.mv-sources .mv-src-label { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .72); }
.mv-ep-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mv-ep {
  background: rgba(255, 255, 255, .12); border: 1px solid transparent; color: #fff;
  border-radius: 8px; padding: 6px 10px; font-size: 11px; cursor: pointer;
}
.mv-ep.active { background: var(--accent-grad); color: #fff; }
