/* ===== 设计变量 ===== */
:root {
  --primary: #f0b429;
  --primary-hover: #d9a21b;
  --text: #e6e8ea;
  --muted: #8b949e;
  --bg: #0e1116;
  --surface: #161b22;
  --border: #2a3038;
  --danger: #ef4444;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 键盘可操作：清晰的焦点环（仅键盘导航时显示） */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ===== 顶栏 ===== */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand { font-weight: 800; font-size: 18px; color: #111827; }
.tagline { color: var(--muted); font-size: 13px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.credits { color: #6b7280; }
.credits b { color: var(--danger); }

/* ===== 容器 ===== */
.container { max-width: 860px; margin: 0 auto; padding: 24px 16px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.panel.narrow { max-width: 420px; margin: 40px auto; }
h2 { margin: 0 0 14px; font-size: 18px; }
.muted { color: var(--muted); font-weight: 400; font-size: 13px; }
.error {
  color: var(--danger);
  background: #fef2f2;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}

/* ===== 表单 ===== */
.hero { text-align: center; padding: 40px 0; }
.hero h1 { font-size: 28px; }
textarea,
input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 10px;
  font-family: inherit;
}
textarea { resize: vertical; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row input[type="text"] { flex: 1; margin-bottom: 0; min-width: 0; }
.check {
  font-size: 14px;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
label { display: block; font-size: 13px; color: #6b7280; margin-bottom: 4px; }

.btn,
.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { background: var(--muted); border-color: var(--muted); cursor: not-allowed; }

/* ===== 歌曲列表 ===== */
.song-list { display: flex; flex-direction: column; gap: 12px; }
.song-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #f0f1f3;
  border-radius: 10px;
}
.song-info { flex: 1; min-width: 0; }
.song-title { font-weight: 600; }
.song-style { color: var(--muted); font-size: 12px; }
audio { width: 260px; height: 36px; }

/* ============================================================
   响应式三断点：桌面 >1024 / 平板 768–1024 / 移动 <768
   ============================================================ */

/* 平板（768–1024px）：收窄容器、音频条变短 */
@media (max-width: 1024px) {
  .container,
  .topbar-inner { max-width: 720px; }
  audio { width: 200px; }
}

/* 移动（<768px）：纵向堆叠、全宽控件 */
@media (max-width: 768px) {
  .topbar-inner { flex-wrap: wrap; }
  .tagline { display: none; }
  .nav { margin-left: auto; }
  .container { padding: 16px 12px; }
  .panel { padding: 16px; }
  .hero h1 { font-size: 22px; }
  .row { flex-direction: column; align-items: stretch; }
  .row input[type="text"] { width: 100%; margin-bottom: 10px; }
  .song-card { flex-direction: column; align-items: stretch; gap: 8px; }
  audio { width: 100%; }
  .btn,
  .btn-primary { width: 100%; text-align: center; }
}

/* ============================================================
   照片 MV 制作页
   ============================================================ */

.mv-field { margin-bottom: 16px; }

select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
input[type="file"] {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #6b7280;
}

.mv-submit-row { margin-top: 6px; }
.mv-submit-row .muted { margin-left: auto; }

/* ---- 照片网格 ---- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.photo-grid > .muted { grid-column: 1 / -1; }
.photo-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}
.photo-item img {
  display: block;
  width: 100%;
  height: 104px;
  object-fit: cover;
}
.photo-idx {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 12px;
  text-align: center;
}
.photo-ops {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  gap: 4px;
}
.icon-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.icon-btn.danger { color: var(--danger); }

/* ---- 运镜 chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  cursor: pointer;
}
.chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* ---- 高级折叠 ---- */
.mv-advanced {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.mv-advanced summary { cursor: pointer; font-size: 14px; color: var(--primary); }
.mv-advanced[open] summary { margin-bottom: 12px; }

/* 二级折叠：80 个不支持的效果名铺开会把整屏占满，收起来只留一行 */
.mv-subadvanced { margin-top: 6px; }
.mv-subadvanced summary { cursor: pointer; font-size: 13px; color: var(--primary); }
.mv-subadvanced p { margin: 8px 0 0; line-height: 1.9; }

/* ---- 进度条 ---- */
.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #eef0f3;
  overflow: hidden;
}
.progress-fill {
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.4s ease;
}
.mv-result {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.mv-result video {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  background: #000;
}

/* ---- 我的 MV ---- */
.mv-jobs { display: flex; flex-direction: column; gap: 10px; }
.mv-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #f0f1f3;
  border-radius: 10px;
}
.mv-info { flex: 1; min-width: 0; }
.mv-title { font-weight: 600; }
.mv-sub { color: var(--muted); font-size: 12px; }
.mv-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 768px) {
  .mv-submit-row .muted { margin-left: 0; }
  .mv-card { flex-direction: column; align-items: stretch; gap: 8px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .photo-item img { height: 88px; }
}

/* ===== 充值页 ===== */
.pkg-list { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.pkg-card {
  flex: 1 1 140px;
  min-width: 120px;
  padding: 16px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.pkg-card:hover { border-color: var(--primary); }
.pkg-credits { font-size: 18px; font-weight: 700; }
.pkg-price { color: var(--primary); font-weight: 700; margin-top: 4px; }
.pkg-tier { font-size: 12px; color: #92400e; background: #fef3c7; display: inline-block; padding: 2px 8px; border-radius: 999px; }
.pkg-days { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pkg-benefits { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 6px; }
.benefit-tag { font-size: 11px; color: var(--muted); border: 1px solid var(--border); padding: 1px 6px; border-radius: 999px; }
.pay-box { text-align: center; margin-top: 12px; }
.qrcode { width: 220px; height: 220px; border: 1px solid var(--border); border-radius: 8px; }
a.credits { color: var(--text); text-decoration: none; }
a.credits:hover b { color: var(--primary); }

/* ===== 社交（广场/歌页） ===== */
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.square-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.square-card .song-title { font-weight: 600; display: block; margin-bottom: 4px; }
.share-note { background: #fef3c7; border: 1px solid #f59e0b; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.cut-box { background: #fff7ed; border: 1px solid #fb923c; border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.social-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.lyrics { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-top: 12px; }

/* ===== 歌词字幕 / 排行榜 ===== */
.lyrics-panel { max-height: 280px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-top: 12px; }
.lyric-line { padding: 4px 8px; border-radius: 6px; color: var(--muted); transition: color .2s; }
.lyric-line.active { color: var(--text); background: #eef2ff; font-weight: 600; }
.rank-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rank-tabs .sep { width: 8px; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-item { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.rank-no { font-weight: 700; color: var(--primary); width: 28px; text-align: center; }

/* ===== 充值 / 进度条 / 底部播放器 ===== */
a.recharge { color: #fff; background: var(--primary); padding: 4px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; }
a.recharge b { color: #fff; }
.gen-progress { height: 8px; background: var(--border); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.gen-progress-bar { height: 100%; width: 0%; background: var(--primary); border-radius: 999px; transition: width .5s; }
.song-actions { display: flex; gap: 8px; align-items: center; }
.btn-play { color: #fff; background: var(--primary); border: none; padding: 6px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.btn-play:hover { background: var(--primary-hover); }
.player-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -2px 10px rgba(0,0,0,.06); z-index: 100; }
.player-inner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 960px; margin: 0 auto; }
.player-btn { border: none; background: none; font-size: 18px; cursor: pointer; padding: 4px 8px; }
.player-info { min-width: 100px; flex: 1; }
.player-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-progress { flex: 2; height: 6px; background: var(--border); border-radius: 999px; cursor: pointer; }
.player-progress-bar { height: 100%; width: 0%; background: var(--primary); border-radius: 999px; }
.player-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.player-lyrics { max-height: 260px; overflow-y: auto; border-top: 1px solid var(--border); padding: 12px 16px; text-align: center; }
.pl-line { padding: 3px 0; color: var(--muted); }
.pl-line.active { color: var(--primary); font-weight: 600; }
.pl-line.past { display: none; }
.lyrics-poster-link { display: inline-block; margin-top: 10px; color: var(--primary); font-size: 14px; text-decoration: none; }
details.lyrics { margin-top: 8px; }
details.lyrics summary { cursor: pointer; color: var(--muted); }
details.lyrics pre { white-space: pre-wrap; margin: 8px 0 0; }
body { padding-bottom: 76px; }

/* ===== 全屏「正在播放」页（网易云式）===== */
.playing-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(180deg, #1f2937, #0f172a);
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 20px; color: #fff; overflow-y: auto;
}
.playing-close { position: absolute; top: 14px; left: 14px; background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; }
.playing-disc {
  width: min(62vw, 240px); height: min(62vw, 240px); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6366f1, #312e81);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; font-weight: 700; color: #fff;
  margin: 24px 0 16px; box-shadow: 0 10px 34px rgba(0,0,0,.45);
  flex-shrink: 0;
}
.playing-disc.spinning { animation: spin 20s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.playing-title { font-size: 20px; font-weight: 700; }
.playing-lyrics { flex: 1; width: 100%; max-width: 480px; overflow-y: auto; text-align: center; margin: 16px 0; }
#playing-lyrics .pl-line { color: rgba(255,255,255,.45); font-size: 15px; }
#playing-lyrics .pl-line.active { color: #fff; font-weight: 700; font-size: 17px; }
.playing-progress { width: 100%; max-width: 480px; height: 6px; background: rgba(255,255,255,.2); border-radius: 999px; cursor: pointer; margin-top: 8px; }
.playing-progress-bar { height: 100%; width: 0%; background: #fff; border-radius: 999px; }
.playing-time { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 6px; }
.playing-controls { display: flex; align-items: center; gap: 36px; margin: 12px 0 24px; }
.playing-btn { background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; }
.playing-play { font-size: 52px; }

/* ===== 手机自适应 ===== */
@media (max-width: 768px) {
  .topbar-inner { flex-wrap: wrap; row-gap: 6px; }
  .tagline { display: none; }
  .nav { flex-wrap: wrap; row-gap: 4px; }
  .player-inner { gap: 8px; padding: 8px 10px; }
  .player-info { min-width: 60px; }
  .player-time { display: none; }
}

/* 播放页「返回」按钮：清晰的返回样式 */
.playing-close { font-size: 17px; padding: 6px 12px; background: rgba(255,255,255,.12); border-radius: 999px; }

/* 新元素手机适配 */
@media (max-width: 768px) {
  .song-actions { flex-wrap: wrap; }
  .pkg-list { flex-direction: column; }
  .rank-item { flex-wrap: wrap; }
  .playing-overlay { padding: 16px 14px; }
  .playing-controls { gap: 28px; }
  .playing-disc { width: 58vw; height: 58vw; }
  a.recharge { padding: 4px 10px; }
}

/* ===== 底部导航（5 Tab，移动 App 式）===== */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,.06);
  z-index: 210; /* 高于全屏播放页(200)，播放时任务栏仍可见 */
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
}
.tab:hover { text-decoration: none; }
.tab .tab-ico { font-size: 20px; line-height: 1; }
.tab.active { color: var(--primary); font-weight: 600; }
.tab-create .tab-create-ico {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-top: -18px;
  box-shadow: 0 4px 12px rgba(79,70,229,.4);
}
@media (min-width: 769px) { .tabbar { display: none; } }

/* ===== 创作页 功能卡片 ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.feature-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 12px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); text-decoration: none; text-align: center;
}
.feature-card:hover { border-color: var(--primary); text-decoration: none; }
.feature-ico { font-size: 28px; line-height: 1; }

/* ===== 我的页 ===== */
.me-head { display: flex; align-items: center; gap: 14px; }
.me-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.me-name { font-weight: 700; font-size: 18px; }
.credit-big { font-size: 40px; font-weight: 800; color: var(--primary); }
.me-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.me-cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 6px; border-radius: 10px; background: var(--bg);
  color: var(--text); text-decoration: none; font-size: 13px;
}
.me-cell:hover { background: #eef2ff; text-decoration: none; }
.me-list { display: flex; flex-direction: column; }
.me-row { padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.me-row:last-child { border-bottom: none; }
.me-row:hover { color: var(--primary); text-decoration: none; }

/* ===== 玩法页 ===== */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tpl-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); text-decoration: none; text-align: center;
}
.tpl-card:hover { border-color: var(--primary); text-decoration: none; }
.tpl-ico { font-size: 30px; line-height: 1; }
.tpl-title { font-weight: 600; }
.tpl-sub { color: var(--muted); font-size: 12px; }

.classic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.classic-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); text-decoration: none; text-align: center;
}
.classic-card:hover { border-color: var(--primary); text-decoration: none; }
.classic-title { font-weight: 600; }
.btn-sm { padding: 4px 12px; font-size: 12px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tool-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); text-decoration: none; text-align: center;
}
.tool-card:hover { border-color: var(--primary); text-decoration: none; }
.tool-ico { font-size: 24px; line-height: 1; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.req { color: var(--danger); }

/* ===== 我的页 · 签到/任务/邀请 ===== */
.me-credit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge-member { background: #fef3c7; color: #92400e; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.checkin-week { display: flex; gap: 8px; margin-bottom: 8px; }
.checkin-day {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--muted); font-size: 13px;
}
.task-row { display: flex; justify-content: space-between; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.task-row:last-child { border-bottom: none; }
.task-reward { color: var(--primary); font-weight: 600; }
.invite-link { display: flex; gap: 8px; margin-top: 8px; }
.invite-link input { flex: 1; margin-bottom: 0; }

/* hidden 属性强制隐藏 —— 防止被 .playing-overlay 等 display:flex 覆盖 */
[hidden] { display: none !important; }

/* ===== 深色金主题（覆盖浅色遗留的硬编码颜色）===== */
.brand { color: var(--text); }
.credits, label, .song-style, .mv-sub, .field label { color: var(--muted); }
.check { color: var(--muted); }
textarea,
input[type="text"],
input[type="password"],
input[type="email"],
select {
  background: var(--surface);
  color: var(--text);
  border-color: #374151;
}
input[type="file"] { color: var(--muted); }
.btn { background: var(--surface); border-color: #374151; color: var(--text); }
.btn-primary, .btn-play, .skip-link, a.recharge, a.recharge b,
.tab-create .tab-create-ico, .chip.active {
  color: #1a1200;
}
.chip { background: var(--surface); color: #b0b8c0; }
.icon-btn { background: rgba(22, 27, 34, 0.92); color: var(--text); border-color: #374151; }
.photo-item { background: #1f2630; }
.progress-bar, .gen-progress { background: #2a3038; }
.song-card, .mv-card { border-color: #2a3038; }
.error { background: #3b1d1d; }
.cut-box { background: #3a2a10; }
.share-note { background: #3a2a10; border-color: #b45309; color: #fde68a; }
.me-avatar { background: #2a3448; }
.me-cell:hover { background: #2a3448; }
.lyric-line.active { background: #2a3448; }
.player-bar { background: var(--surface); }
.playing-close { background: rgba(255, 255, 255, 0.12); }

/* ===== 榜单：前三名卡片 + 完整榜单 ===== */
.rank-sub { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tab-mini { color: var(--muted); font-size: 13px; text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.tab-mini:hover { text-decoration: none; }
.tab-mini.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.rank-reward { margin-left: auto; color: var(--primary); font-size: 13px; text-decoration: none; }
.rank-top3 { display: flex; gap: 10px; margin-bottom: 16px; }
.rank-top-card {
  flex: 1; position: relative; display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; text-decoration: none; color: var(--text); min-width: 0;
}
.rank-top-card.first { border-color: var(--primary); }
.rank-top-card:hover { text-decoration: none; }
.crown { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 20px; }
.rank-cover {
  width: 100%; aspect-ratio: 1/1; border-radius: 8px; background-size: cover; background-position: center;
  background-color: #2a3448; display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--muted);
}
.rank-cover.sm { width: 44px; height: 44px; border-radius: 6px; font-size: 20px; flex-shrink: 0; }
.rank-badge {
  position: absolute; bottom: 60px; left: 10px; width: 20px; height: 20px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.65); color: #f0b429; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.rank-card-title { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-card-author { color: var(--muted); font-size: 11px; }
.rank-card-meta { color: var(--muted); font-size: 11px; }
.rank-full-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; }
.rank-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rank-title { color: var(--text); text-decoration: none; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-title:hover { color: var(--primary); text-decoration: none; }
.rank-author { color: var(--muted); font-size: 11px; }
.rank-meta { color: var(--muted); font-size: 12px; flex-shrink: 0; }

/* ===== 创作页 4 tab + 3 子模式 ===== */
.ct-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.ct-tab {
  flex: 1; padding: 8px 6px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--muted); font-size: 13px; cursor: pointer;
}
.ct-tab.active { background: var(--primary); border-color: var(--primary); color: #1a1200; font-weight: 600; }
.ct-subtabs { display: flex; gap: 14px; margin-bottom: 12px; }
.ct-sub { background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 2px 0; border-bottom: 2px solid transparent; }
.ct-sub.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.ct-panel { animation: fade 0.15s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.struct-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.struct-btn {
  padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 12px; cursor: pointer;
}
.struct-btn:hover { border-color: var(--primary); color: var(--primary); }
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.theme-chip {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer;
}
.theme-chip:hover { border-color: var(--primary); }
.placeholder-box { text-align: center; padding: 24px 8px; }
.ph-ico { font-size: 44px; }
.placeholder-box h3 { margin: 8px 0 6px; }
.placeholder-box .chips { justify-content: center; margin: 12px 0; }
.ph-cards { display: flex; gap: 10px; margin: 12px 0; }
.ph-card {
  flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); font-size: 13px; display: flex; flex-direction: column; gap: 2px;
}

/* ===== 玩法页 · 经典改编/专业工具/教程 ===== */
.classic-hot { color: var(--primary); font-size: 12px; }
.tool-group-title { font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 400; }
.tutorial-card {
  padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); margin-bottom: 10px;
}
.tut-tag { font-size: 11px; color: #92400e; background: #fef3c7; padding: 1px 8px; border-radius: 999px; }
.tut-title { font-weight: 600; margin-top: 6px; }
.tut-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ===== 播放页三连 / 好友留言 / 迷你唱片 / 解锁弹窗 ===== */
.playing-actions { display: flex; justify-content: center; gap: 14px; margin: 10px 0 4px; }
.tri-btn {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff; padding: 6px 16px; border-radius: 999px; cursor: pointer; font-size: 14px;
}
.tri-btn:hover { border-color: var(--primary); }
.playing-share-note {
  margin: 4px auto; max-width: 480px; width: 100%;
  background: rgba(240, 180, 41, 0.15); border: 1px solid rgba(240, 180, 41, 0.4);
  color: #fde68a; border-radius: 8px; padding: 8px 12px; font-size: 13px; text-align: center;
}
.mini-player {
  position: fixed; right: 12px; bottom: 90px; z-index: 96;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.mini-disc {
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6366f1, #312e81);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700; border: 2px solid rgba(255, 255, 255, 0.25);
}
.mini-disc.spinning { animation: spin 20s linear infinite; }
.unlock-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.unlock-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; max-width: 320px; width: 100%; text-align: center; position: relative;
  display: flex; flex-direction: column; gap: 12px;
}
.unlock-close {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1;
}
.unlock-ico { font-size: 40px; }
.unlock-box h3 { margin: 0; }
/* ===== 分享平台选择弹窗 ===== */
.share-picker {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: flex-end; justify-content: center; padding: 0 16px 20px;
}
.share-picker-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.share-picker-box {
  position: relative; z-index: 1; width: 100%; max-width: 360px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 16px; display: flex; flex-direction: column; gap: 16px;
}
.share-picker-title { text-align: center; font-weight: 700; font-size: 16px; color: var(--text); }
.share-picker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 4px; cursor: pointer; color: var(--text); font-size: 12px;
}
.share-opt:hover { border-color: #f0b429; }
.share-ico { font-size: 24px; line-height: 1; }
.share-picker-cancel {
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; font-size: 14px;
}
@media (min-width: 768px) {
  .share-picker { align-items: center; padding: 20px; }
}
/* ===== 积分不足充值弹窗 ===== */
.recharge-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.recharge-modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.recharge-modal-box {
  position: relative; z-index: 1; width: 100%; max-width: 360px;
  background: #1a1d24; border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.recharge-modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1;
}
.recharge-modal-icon {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 50%;
  border: 2px solid #f0b429; color: #f0b429;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.recharge-modal-title { text-align: center; font-size: 20px; font-weight: 700; color: var(--text); margin: 0; line-height: 1.4; }
.recharge-modal-title b { color: #f0b429; }
.recharge-modal-sub { text-align: center; color: var(--muted); font-size: 13px; margin: -4px 0 0; }
.recharge-modal-credits {
  display: flex; justify-content: space-between; align-items: center;
  background: #242833; border-radius: 12px; padding: 12px 14px;
}
.rmc-label { color: var(--text); font-weight: 600; font-size: 14px; }
.rmc-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.rmc-right { text-align: right; }
.rmc-balance { color: var(--muted); font-size: 13px; }
.rmc-balance b { color: var(--text); }
.rmc-detail { color: #f0b429; font-size: 12px; text-decoration: none; }
.recharge-modal-perks { display: flex; flex-direction: column; gap: 8px; }
.rmp-item { display: flex; align-items: center; gap: 10px; background: #242833; border-radius: 12px; padding: 12px 14px; }
.rmp-ico { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.rmp-yellow { background: rgba(240, 180, 41, 0.18); }
.rmp-green { background: rgba(52, 199, 89, 0.18); }
.rmp-item b { display: block; color: var(--text); font-size: 14px; }
.rmp-item span { color: var(--muted); font-size: 12px; }
.recharge-modal-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #f0b429, #e09a1a); color: #1a1d24;
  font-weight: 700; font-size: 16px; border-radius: 999px; padding: 13px;
  text-decoration: none;
}
.recharge-modal-free { text-align: center; color: var(--muted); font-size: 12px; text-decoration: none; }
/* 匿名用户右上角登录入口（去掉了顶部菜单后） */
.login-link {
  position: fixed; top: 10px; right: 14px; z-index: 50;
  color: var(--text); text-decoration: none; font-size: 14px;
  padding: 4px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
}
/* ===== 网页版顶部导航（复刻 lexuan 网页版）===== */
.web-topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 60; }
.web-topbar-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 24px; }
.web-brand { font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.web-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.web-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.web-nav a.on, .web-nav a:hover { color: var(--text); font-weight: 600; }
.web-nav .web-reg { background: var(--primary, #f0b429); color: #1a1204; padding: 6px 14px; border-radius: 999px; font-weight: 600; }
/* 歌卡点击即播放 */
.song-card[data-play], .square-card[data-play], .rank-top-card[data-play], .rank-item[data-play] { cursor: pointer; }
.square-detail { color: var(--muted); font-size: 12px; text-decoration: none; }
.rank-detail { color: var(--muted); font-size: 12px; text-decoration: none; display: inline-block; margin-top: 2px; }
/* ===== 榜单页顶部广告轮播（暗夜鎏金）===== */
.ad-carousel { margin-bottom: 14px; }
.ad-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: 16px;
}
.ad-track::-webkit-scrollbar { display: none; }
.ad-slide {
  flex: 0 0 100%; scroll-snap-align: center; min-height: 170px; box-sizing: border-box;
  display: flex; align-items: center; gap: 14px; padding: 20px 18px;
  background: radial-gradient(circle at 82% 18%, #3a2a0e 0%, #1a1204 50%, #0a0a0a 100%);
  text-decoration: none; color: var(--text); position: relative; overflow: hidden;
}
.ad-coin {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a0, #f0b429 60%, #c8860a);
  color: #3a2500; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(240, 180, 41, 0.35);
}
.ad-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ad-title { font-size: 19px; font-weight: 700; line-height: 1.25; color: #fff; }
.ad-title em { display: block; font-style: normal; color: #ffd700; font-size: 22px; font-weight: 800; }
.ad-sub { color: #ccc; font-size: 12px; line-height: 1.5; }
.ad-btn {
  align-self: flex-start; margin-top: 4px;
  background: linear-gradient(135deg, #ffc107, #e6a900);
  color: #3a2500; font-weight: 700; font-size: 14px;
  border-radius: 999px; padding: 7px 18px;
}
.ad-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.ad-dot { width: 6px; height: 6px; border-radius: 999px; background: #555; transition: all .25s; }
.ad-dot.active { background: #ffd700; width: 18px; }
/* ===== 网页版落地页 ===== */
.landing-hero { text-align: center; padding: 50px 16px 34px; }
.landing-hero h1 { font-size: 32px; font-weight: 800; margin: 0 0 12px; }
.landing-sub { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0; }
.landing-cta { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }
.landing-start { padding: 12px 28px; font-size: 16px; }
.landing-stat { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.landing-features, .landing-trending, .landing-faq { padding: 28px 0; }
.landing-features h2, .landing-trending h2, .landing-faq h2 { font-size: 22px; margin: 0 0 6px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.feature h3 { margin: 0 0 8px; font-size: 15px; }
.feature p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.6; }
.trending-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.trending-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; }
.trending-cover { aspect-ratio: 1/1; border-radius: 8px; background: #2a3448; display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--muted); margin-bottom: 8px; }
.trending-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trending-author { color: var(--muted); font-size: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.faq-list details p { color: var(--muted); margin: 8px 0 0; font-size: 13px; line-height: 1.6; }
.landing-footer { border-top: 1px solid var(--border); margin-top: 30px; padding: 28px 0 18px; }
.landing-footer-inner { display: flex; gap: 60px; justify-content: center; }
.landing-footer-col { display: flex; flex-direction: column; gap: 8px; }
.landing-footer-title { font-weight: 700; margin-bottom: 4px; font-size: 14px; }
.landing-footer-col a { color: var(--muted); text-decoration: none; font-size: 13px; }
.landing-copy { text-align: center; color: var(--muted); font-size: 12px; margin: 22px 0 0; }
@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .trending-grid { grid-template-columns: 1fr 1fr; }
}
/* ===== 榜单排名奖励 ===== */
.rank-reward-info { color: var(--muted); font-size: 13px; margin: 10px 0 4px; }
.rank-reward-info b { color: #f0b429; }
.rank-card-reward { color: #f0b429; font-weight: 700; font-size: 12px; margin-top: 2px; }
.rank-item-reward { color: #f0b429; font-size: 12px; font-weight: 600; min-width: 56px; text-align: right; }
/* ===== 创作页模型选择行 ===== */
.model-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.cost-info { color: var(--muted); font-size: 13px; margin-left: auto; }
/* ===== API Key 管理页 ===== */
.api-key-create { margin-bottom: 14px; }
.api-key-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.api-key-name { font-weight: 600; }
.api-key-meta { color: var(--muted); font-size: 12px; }
.api-key-actions { display: flex; gap: 8px; }
.api-docs { margin-top: 20px; }
.api-docs pre { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow-x: auto; font-size: 12px; }
/* ===== API 文档 ===== */
.api-doc-block { margin-top: 22px; }
.api-doc-block h3 { margin: 0 0 8px; font-size: 16px; }
.api-doc-list { color: var(--muted); font-size: 14px; line-height: 1.9; padding-left: 18px; }
.api-doc-list b { color: var(--text); }
.api-endpoint { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.api-endpoint code { font-family: ui-monospace, monospace; font-size: 14px; color: var(--text); }
.method { display: inline-block; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 6px; color: #fff; }
.method.post { background: #2563eb; }
.method.get { background: #16a34a; }
.api-sub { font-weight: 600; font-size: 13px; margin: 12px 0 6px; color: var(--text); }
.api-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 12px; }
.api-table th, .api-table td { text-align: left; padding: 8px 10px; border: 1px solid var(--border); }
.api-table th { background: var(--surface); color: var(--muted); font-weight: 600; }
.api-table td { color: var(--text); }
.api-table td code { font-family: ui-monospace, monospace; font-size: 12px; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.api-doc-block pre { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-size: 12px; line-height: 1.7; }
/* ===== 微信一键登录 ===== */
.btn-wx { background: #07c160; color: #fff; display: block; text-align: center; text-decoration: none; }
.or-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 14px 0; font-size: 13px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
/* ===== 场景库 ===== */
.scenes-head { text-align: center; margin-bottom: 20px; }
.scenes-head h2 { margin: 0 0 8px; }
.scenes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.scene-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--text); }
.scene-card:hover { border-color: var(--primary, #f0b429); }
.scene-ico { font-size: 28px; line-height: 1; }
.scene-title { font-weight: 700; font-size: 15px; }
.scene-sub { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.5; }
@media (max-width: 768px) { .scenes-grid { grid-template-columns: 1fr; } }

/* ===== 作品页：封面卡 / 三点菜单 ===== */
.work-song { cursor: pointer; }
.work-cover {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  background-size: cover; background-position: center; background-color: #6366f1;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 700;
}
.song-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.song-more {
  background: none; border: none; color: var(--muted); font-size: 22px;
  cursor: pointer; padding: 6px 10px; line-height: 1; flex-shrink: 0;
}
.song-more:hover { color: var(--text); }

.song-menu { position: fixed; inset: 0; z-index: 260; }
.song-menu-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.song-menu-box {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--surface); border-radius: 16px 16px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 2px;
  max-height: 80vh; overflow-y: auto;
}
.song-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px; border-bottom: 1px solid var(--border); margin-bottom: 6px;
}
.song-menu-close { background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 8px; background: none; border: none; border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 15px; cursor: pointer; text-align: left;
}
.menu-item span { width: 24px; text-align: center; }
.menu-item em { font-style: normal; }
.menu-item.locked { opacity: 0.45; }
.menu-item.locked em::after { content: " 🔒"; }
.menu-item.danger, .menu-item.danger span { color: #dc2626; }

/* ===== 会员专属提示弹窗 ===== */
.member-modal { position: fixed; inset: 0; z-index: 320; display: flex; align-items: center; justify-content: center; padding: 20px; }
.member-modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.member-modal-box {
  position: relative; background: var(--surface); border-radius: 16px;
  padding: 28px 24px; max-width: 320px; width: 100%; text-align: center;
  display: flex; flex-direction: column; gap: 12px;
}
.member-modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }
.member-modal-icon { font-size: 40px; }
.member-modal-title { font-size: 18px; font-weight: 700; margin: 0; }
.member-modal-sub { color: var(--muted); font-size: 13px; margin: -4px 0 4px; }
.member-modal-btn { display: block; background: var(--primary); color: #fff; padding: 12px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.member-modal-btn:hover { text-decoration: none; }

/* ===== 播放页：三图滑动 + 迷你唱片叉 ===== */
.playing-swipe { width: 100%; max-width: 480px; }
.playing-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.playing-slides::-webkit-scrollbar { display: none; }
.playing-slide {
  flex: 0 0 100%; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 264px; box-sizing: border-box;
}
.playing-cover {
  width: min(62vw, 240px); height: min(62vw, 240px); border-radius: 14px;
  background-size: cover; background-position: center; background-color: #1e293b;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 40px; font-weight: 700; text-align: center; padding: 12px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45); word-break: break-all;
}
.playing-cover-note {
  margin-top: 12px; max-width: 320px; width: 100%;
  background: rgba(240, 180, 41, 0.15); border: 1px solid rgba(240, 180, 41, 0.45);
  color: #fde68a; border-radius: 12px; padding: 10px 14px;
  font-size: 14px; text-align: center; word-break: break-all;
}
.playing-comments { width: 100%; max-height: 264px; overflow-y: auto; text-align: left; padding: 0 8px; }
.pc-item { background: rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.pc-name { font-size: 12px; color: #fbbf24; font-weight: 600; }
.pc-msg { font-size: 14px; margin-top: 4px; word-break: break-all; }
.pc-empty { color: rgba(255, 255, 255, 0.5); text-align: center; font-size: 13px; padding: 20px 0; }
.playing-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.playing-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); border: none; padding: 0; cursor: pointer; }
.playing-dot.active { background: #fff; }
.cover-upload-btn { margin-top: 10px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; border-radius: 999px; padding: 6px 16px; font-size: 13px; cursor: pointer; }
/* 第 4 页：扫码听歌 */
.playing-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.playing-qr-img { width: min(60vw, 240px); height: min(60vw, 240px); background: #fff; border-radius: 14px; padding: 12px; box-sizing: border-box; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45); }
.playing-qr-hint { color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.playing-qr-download { background: var(--primary); color: #1a1202; text-decoration: none; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 700; }
.mini-close {
  position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%;
  background: #374151; color: #fff; border: 1px solid #fff; font-size: 11px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.playing-overlay { padding-bottom: 96px; }

/* ===== 版权证书 ===== */
.cert-panel { max-width: 640px; margin: 0 auto; }
.cert { text-align: center; padding: 32px 24px; border: 2px solid #d4b45a; border-radius: 12px; background: var(--surface); }
.cert-seal { font-size: 52px; }
.cert-title { font-size: 24px; font-weight: 800; margin: 8px 0 4px; color: #b8860b; }
.cert-no { color: var(--muted); font-size: 13px; margin: 0; }
.cert-line { border: none; border-top: 1px solid #e5d5a0; margin: 18px auto; width: 70%; }
.cert-label { color: var(--muted); font-size: 13px; margin: 8px 0 4px; }
.cert-song { font-size: 26px; font-weight: 700; margin: 4px 0; }
.cert-author { font-size: 18px; font-weight: 600; margin: 4px 0; }
.cert-foot { color: var(--muted); font-size: 12px; margin-top: 8px; line-height: 1.6; }
.cert-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
@media print {
  .cert-actions, .tabbar, .player-bar, .mini-player { display: none !important; }
}

/* ===== 作品页（对标 3.png：深黑 + 金黄胶囊标签 + 卡片列表） ===== */
.works-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.works-bell { font-size: 18px; }
.works-title { margin: 0; font-size: 20px; font-weight: 700; flex: 1; text-align: center; }
.works-head-actions { display: flex; gap: 12px; color: var(--muted); font-size: 18px; }
.wh-circle { border: 1.5px solid var(--muted); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

.works-tabs { display: flex; background: #1a1a1a; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.wtab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 4px; background: transparent; border: none; border-radius: 10px; color: #aaa; font-size: 13px; cursor: pointer; }
.wtab .wt-ico { font-size: 14px; }
.wtab.active { background: var(--primary); color: #1a1202; font-weight: 700; }

.ws-head { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.ws-title { font-size: 17px; font-weight: 700; }
.ws-badge { background: #333; color: #ccc; font-size: 12px; padding: 1px 8px; border-radius: 8px; }
.ws-spacer { flex: 1; }
.ws-search { color: #888; font-size: 16px; }
.ws-add { background: #222; color: var(--primary); border: 1px solid var(--primary); border-radius: 10px; padding: 5px 10px; font-size: 13px; cursor: pointer; }

.ws-month { color: #888; font-size: 13px; margin: 12px 0 8px; }

.wsong-list { display: flex; flex-direction: column; gap: 10px; }
.wsong { display: flex; align-items: center; gap: 12px; background: #121212; border-radius: 12px; padding: 12px; cursor: pointer; }
.wsong-cover { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; background-size: cover; background-position: center; background-color: #1e1e21; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 700; }
.wsong-info { flex: 1; min-width: 0; }
.wsong-title { font-size: 15px; font-weight: 600; }
.wsong-globe { color: var(--primary); font-size: 13px; }
.wsong-lock { font-size: 13px; }
.wsong-meta { color: #888; font-size: 12px; margin-top: 3px; }
.wsong-more { background: none; border: none; color: #888; font-size: 20px; cursor: pointer; padding: 6px 8px; flex-shrink: 0; }
.wsong-actions { display: flex; gap: 8px; align-items: center; }
.wsong-empty { text-align: center; color: #776633; font-size: 14px; padding: 24px 0; }

/* ===== 歌操作弹窗（对标 10.jpg） ===== */
.sm-drag { width: 40px; height: 4px; background: #333; border-radius: 2px; margin: 8px auto 14px; }
.sm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sm-cover { width: 56px; height: 56px; border-radius: 8px; background-size: cover; background-position: center; background-color: #1e1e21; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; flex-shrink: 0; }
.sm-info { flex: 1; min-width: 0; }
.sm-title { font-size: 17px; font-weight: 700; }
.sm-sub { color: #999; font-size: 12px; margin-top: 2px; }
.sm-close { background: #333; border: none; color: #fff; width: 28px; height: 28px; border-radius: 14px; font-size: 15px; cursor: pointer; flex-shrink: 0; line-height: 1; }

.sm-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.sm-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-radius: 12px; border: none; background: #222; color: #ccc; font-size: 14px; cursor: pointer; }
.sm-btn .smb-ico { font-size: 15px; }
.sm-btn.sm-share { background: var(--primary); color: #1a1202; font-weight: 700; }
.sm-btn.sm-public { background: #222; border: 1px solid var(--primary); color: #fff; }
.sm-btn em { font-style: normal; }
.sm-btn.locked, .sm-tool.locked, .sm-pro.locked, .sm-delete.locked { opacity: .45; }
.sm-btn.locked em::after, .sm-tool.locked::after { content: " 🔒"; }

.sm-section { color: #777; font-size: 13px; margin: 4px 0 8px; }
.sm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.sm-tool { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; color: #fff; font-size: 12px; padding: 10px 4px; cursor: pointer; }
.sm-tool .smt-ico { font-size: 22px; }

.sm-pro { display: flex; align-items: center; gap: 10px; width: 100%; background: #222; border: none; border-radius: 12px; color: #fff; padding: 13px 14px; font-size: 15px; font-weight: 700; cursor: pointer; margin-bottom: 18px; }
.sm-pro .smp-ico { color: var(--primary); font-size: 18px; }
.sm-pro em { flex: 1; text-align: left; font-style: normal; font-weight: 400; color: #999; font-size: 12px; }
.sm-pro .smp-arrow { color: #999; font-size: 16px; }
.sm-delete { display: block; width: 100%; background: none; border: none; color: #ff4444; font-size: 15px; font-weight: 700; padding: 6px 0 4px; cursor: pointer; text-align: center; }

/* ===== 播放页细化（对标 1.png：标题+作者+制作MV，金色进度条） ===== */
.playing-head { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 480px; margin-top: 8px; }
.playing-head-text { flex: 1; min-width: 0; text-align: left; }
.playing-title { font-size: 24px; font-weight: 800; text-align: left; }
.playing-author { color: #aaa; font-size: 13px; margin-top: 3px; }
.playing-mv { flex-shrink: 0; background: #1e1e21; border: none; border-radius: 12px; color: #fff; font-size: 13px; padding: 7px 12px; cursor: pointer; }
.playing-progress-bar { background: var(--primary); }

/* ===== 分享落地页（播放器全屏打开，页面本身极简） ===== */
.share-landing { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.sl-cover { width: 96px; height: 96px; border-radius: 16px; background-size: cover; background-position: center; background-color: #1e1e21; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 40px; font-weight: 700; }
.sl-title { margin: 6px 0 0; font-size: 20px; font-weight: 700; }
.sl-author { margin: 0; color: var(--muted); font-size: 13px; }
.sl-link { margin-top: 16px; color: var(--primary); font-size: 14px; }

/* ===== 评论弹层（对标 11.jpg） ===== */
.comment-modal { position: fixed; inset: 0; z-index: 260; }
.comment-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.comment-box {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #1a1a1a; border-radius: 16px 16px 0 0;
  display: flex; flex-direction: column;
  max-height: 78vh; height: 70vh;
}
.comment-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px 10px; border-bottom: 1px solid #2a2a2a;
}
.comment-title { font-size: 17px; font-weight: 700; color: #fff; }
.comment-title b { color: #fff; }
.comment-sort { display: flex; gap: 14px; margin-left: 4px; font-size: 14px; }
.comment-sort span { color: #aaa; cursor: pointer; }
.comment-sort span.on { color: var(--primary); font-weight: 700; }
.comment-close { margin-left: auto; background: #333; border: none; color: #fff; width: 26px; height: 26px; border-radius: 13px; font-size: 15px; cursor: pointer; line-height: 1; }
.comment-list { flex: 1; overflow-y: auto; padding: 4px 16px; }
.comment-item { display: flex; gap: 12px; padding: 12px 0; }
.comment-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: #6366f1; color: #fff; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.comment-body { flex: 1; min-width: 0; }
.comment-name { color: #fbbf24; font-size: 13px; font-weight: 600; }
.comment-text { color: #fff; font-size: 15px; margin-top: 2px; word-break: break-all; }
.comment-meta { color: #888; font-size: 12px; margin-top: 3px; }
.comment-empty { text-align: center; color: #777; font-size: 13px; padding: 32px 0; }
.comment-input-row { display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #2a2a2a; }
.comment-input-row input {
  flex: 1; height: 42px; border-radius: 21px; border: none;
  background: #2d2d2d; color: #fff; padding: 0 16px; font-size: 15px; outline: none;
}
.comment-input-row input::placeholder { color: #aaa; }
.comment-send {
  height: 42px; padding: 0 20px; border-radius: 21px; border: none;
  background: var(--primary); color: #1a1202; font-size: 15px; font-weight: 700; cursor: pointer;
}

/* 字幕别被挤压成一条缝 */
.playing-lyrics { min-height: 120px; }

/* 点击歌词放大：全屏歌词，显示更多 */
.playing-overlay.lyrics-expanded .playing-swipe,
.playing-overlay.lyrics-expanded .playing-head,
.playing-overlay.lyrics-expanded .playing-actions,
.playing-overlay.lyrics-expanded .playing-progress,
.playing-overlay.lyrics-expanded .playing-time,
.playing-overlay.lyrics-expanded .playing-controls { display: none; }
.playing-overlay.lyrics-expanded .playing-lyrics {
  position: fixed; inset: 0; z-index: 210; max-width: none; width: auto; margin: 0;
  padding: 64px 20px 96px; background: linear-gradient(180deg, #1f2937, #0f172a);
  text-align: center; overflow-y: auto;
}
.playing-overlay.lyrics-expanded .playing-lyrics::before {
  content: "▲ 收起歌词"; display: block; color: rgba(255, 255, 255, 0.55);
  font-size: 13px; margin-bottom: 24px; cursor: pointer;
}
.playing-overlay.lyrics-expanded #playing-lyrics .pl-line { font-size: 20px; }
.playing-overlay.lyrics-expanded #playing-lyrics .pl-line.active { font-size: 24px; }

/* 榜单分类按钮并排一行，别被移动端 .btn 全宽挤成竖排 */
.rank-tabs .btn { flex: 1 1 0; width: auto; min-width: 0; padding-left: 6px; padding-right: 6px; font-size: 13px; }

/* 喜欢 tab 一键播放 */
.wsong-play-all {
  display: block; width: 100%; margin-bottom: 12px;
  background: var(--primary); color: #1a1202; border: none; border-radius: 12px;
  padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer;
}
