/* ============================================================
   星芒AI · 设计系统
   对标基线：ai6666.com（碳基圈）
   配色：黑 / 白 / 红（无其它彩色）
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 品牌色 */
  --brand-1: #E60012;
  --brand-2: #E60012;
  --brand-soft: #FFF1F1;
  --grad-brand: linear-gradient(90deg, #E60012 0%, #B3000E 100%);
  --grad-brand-soft: linear-gradient(90deg, #E60012 0%, #B3000E 100%);

  /* 辅助色 */
  --violet: #E60012;
  --violet-soft: #FFF1F1;
  --gold: #B3000E;
  --gold-soft: #FFF1F1;
  --gold-line: #F5C6C6;
  --teal: #111111;

  /* 中性 */
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --bg-mute: #F2F2F2;
  --line: #E8E8E8;
  --line-soft: #F2F2F2;
  --text: #111111;
  --text-2: #5A5A5A;
  --text-3: #8A8A8A;

  /* 形状 */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* 阴影 */
  --sh-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --sh: 0 4px 16px rgba(16, 24, 40, .08);
  --sh-lg: 0 12px 40px rgba(16, 24, 40, .12);

  --nav-h: 60px;
  --wrap: 1440px;
  --sidebar-w: 232px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ============ 布局 ============ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.page-full { width: 100%; max-width: none; margin: 0; padding: 0 28px; }
.page { padding: 28px 0 80px; }
body { padding-left: var(--sidebar-w); }

/* ============ 左侧固定导航（宽屏贴最左） ============ */
.nav {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 200;
  width: var(--sidebar-w);
  background: #fff; border-right: 1px solid var(--line);
  display: flex; overflow: visible;
}
.nav-inner {
  flex: 1; display: flex; flex-direction: column;
  padding: 18px 14px 16px; gap: 16px; min-width: 0;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 800; letter-spacing: -.2px;
  padding: 2px 6px; white-space: nowrap; color: var(--text);
}
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: #fff; font-size: 26px; font-weight: 700;
}
.brand-name {
  color: var(--brand-1); font-size: 17px; font-weight: 800;
  letter-spacing: -.2px; line-height: 1;
}

/* ---------- 精准控制提示词模板 ---------- */
.precise { background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.precise-title { font-size: 13px; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.precise-row { margin-bottom: 12px; }
.precise-row:last-child { margin-bottom: 0; }
.precise-label { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.precise-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none; }
.pchip:hover { border-color: var(--brand-1); }
.pchip.active { background: var(--brand-1); color: #fff; border-color: var(--brand-1); font-weight: 700; }
.precise-custom { margin-top: 7px; }
.precise-custom input { width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; font-size: 12.5px; background: #fff; color: var(--text); font-family: inherit; }

/* ---------- 创作知识（提炼自提示词工程手册） ---------- */
.kb { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  margin-top: 16px; overflow: hidden; }
.kb-sum { cursor: pointer; padding: 12px 16px; font-weight: 800; font-size: 13.5px;
  color: var(--text); user-select: none; list-style: none; }
.kb-sum::-webkit-details-marker { display: none; }
.kb-sum::before { content: "▸ "; color: var(--brand-1); }
details[open].kb .kb-sum::before { content: "▾ "; }
.kb-body { padding: 0 16px 16px; }
.kb-sec { margin-top: 14px; }
.kb-h { font-size: 13px; font-weight: 800; color: var(--brand-1); margin-bottom: 6px; }
.kb-txt { font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
.kb-em { color: var(--brand-1); font-weight: 700; }
.kb-eg { font-size: 12px; background: #fff; border: 1px dashed var(--line); border-radius: 8px;
  padding: 8px 10px; margin: 6px 0; color: var(--text); }
.kb-warn { font-size: 12px; color: var(--gold); margin-top: 4px; }
.kb-list { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.8; color: var(--text-2); }
.kb-list li { margin-bottom: 4px; }
.kb code { background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 5px; font-size: 11.5px; color: var(--text); font-family: inherit; }
.stag-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.stag { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); background: #fff;
  font-size: 12px; color: var(--text-2); cursor: pointer;
  font-family: ui-monospace, Menlo, Consolas, monospace; user-select: none; }
.stag:hover { border-color: var(--brand-1); color: var(--brand-1); }
.nav-menu { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-item {
  position: relative; display: block;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: .15s; white-space: nowrap;
  border-left: 2px solid transparent;
}
.nav-item:hover { background: var(--bg-mute); color: var(--text); }
.nav-item.active {
  color: var(--brand-1); background: var(--brand-soft);
  border-left-color: var(--brand-1); font-weight: 700;
}
.nav-item.gold { color: var(--brand-1); }
.nav-item.has-drop { padding: 0; }
.nav-item.has-drop.active { border-left-color: var(--brand-1); }
.nav-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--text-2);
  cursor: pointer; user-select: none; border-radius: var(--r-sm);
}
.nav-item.has-drop:hover .nav-label,
.nav-item.has-drop.open .nav-label { background: var(--bg-mute); color: var(--text); }
.nav-item.has-drop.active .nav-label { color: var(--brand-1); background: var(--brand-soft); font-weight: 700; }
.nav-drop {
  position: absolute; left: 100%; top: 0; margin-left: 6px;
  min-width: 224px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-lg); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateX(4px);
  transition: .16s; z-index: 210;
}
/* 透明热区：鼠标从菜单滑到右侧浮层时不中断 hover */
.nav-drop::before { content: ''; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; }
.nav-item.has-drop:hover .nav-drop,
.nav-item.has-drop:focus-within .nav-drop,
.nav-item.has-drop.open .nav-drop {
  opacity: 1; visibility: visible; transform: none;
}
.drop-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 11px; border-radius: var(--r-sm); transition: .15s;
}
.drop-item:hover { background: var(--bg-soft); }
.drop-item.on { background: var(--brand-soft); }
.drop-item b { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); }
.drop-item i { display: block; font-style: normal; font-size: 11.5px; color: var(--text-3); }
.drop-ico { font-size: 15px; line-height: 1.5; }
.nav-right {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.nav-right .nav-item { padding: 9px 12px; text-align: center; border-left: none; }
.nav-right .credits-pill, .nav-right .nav-user, .nav-right .nav-cta { width: 100%; justify-content: center; }
.nav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.avatar.violet { background: var(--brand-1); }
.avatar.teal { background: #111111; }
.credits-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--brand-soft); color: var(--brand-1);
  font-size: 12.5px; font-weight: 700;
}
.nav-cta {
  padding: 9px 16px; border-radius: var(--r-sm);
  background: var(--grad-brand); color: #fff !important;
  font-weight: 700; font-size: 13.5px; box-shadow: var(--sh-sm);
  white-space: nowrap; text-align: center;
}
/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; transition: .15s; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-brand { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-sm); }
.btn-brand:hover { filter: brightness(1.06); }
.btn-violet { background: var(--violet); color: #fff; }
.btn-violet:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--text); }
.btn-outline:hover { background: var(--bg-soft); border-color: #D9D9D9; }
.btn-soft { background: var(--bg-mute); color: var(--text); }
.btn-soft:hover { background: #E8E8E8; }
.btn-dark { background: #111111; color: #fff; }
.btn-dark:hover { background: #1A1A1A; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: var(--r); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* ============ 卡片 ============ */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-sm);
}
.card-pad { padding: 20px; }

/* ============ 标签 / 徽章 ============ */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 600;
  background: var(--bg-mute); color: var(--text-2);
}
.tag-brand { background: var(--brand-soft); color: var(--brand-1); }
.tag-violet { background: var(--violet-soft); color: var(--violet); }
.tag-gold { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.tag-teal { background: #F5F5F5; color: var(--teal); }

.chip {
  padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.chip:hover { border-color: #D9D9D9; color: var(--text); }
.chip.active {
  background: var(--grad-brand); color: #fff;
  border-color: transparent; box-shadow: var(--sh-sm);
}

/* ============ 表单 ============ */
.field { margin-bottom: 16px; }
.label {
  display: block; font-size: 13px; font-weight: 700;
  margin-bottom: 7px; color: var(--text);
}
.label .hint { font-weight: 500; color: var(--text-3); margin-left: 6px; font-size: 12px; }
.input, .textarea, .select {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; font-size: 13.5px; transition: .15s;
  outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(230,0,18, .12);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }

/* ============ 歌曲卡片网格 ============ */
.grid-tracks {
  display: grid; gap: 18px;
  grid-template-columns: repeat(5, 1fr);
}
.track-card { cursor: pointer; }
.track-cover {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--r); overflow: hidden;
  background: linear-gradient(135deg, #F5C6C6, #F5C6C6);
}
.track-cover .cover-art {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.track-card:hover .cover-art { transform: scale(1.05); }
.track-play {
  position: absolute; inset: 0; margin: auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0, 0, 0, .5); backdrop-filter: blur(4px);
  display: grid; place-items: center; color: #fff;
  opacity: 0; transition: .2s;
}
.track-card:hover .track-play { opacity: 1; }
.track-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 9px; border-radius: var(--r-sm);
  background: rgba(230,0,18, .92); color: #fff;
  font-size: 11px; font-weight: 700;
}
.track-title {
  font-size: 14px; font-weight: 700; margin: 10px 0 7px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 卡片操作行：纯线性图标，不显示中文标签；中文仅保留在 title / aria-label */
.track-actions { display: flex; gap: 6px; margin-bottom: 9px; }
.track-actions .mini-btn { flex: 1 1 0; min-width: 0; max-width: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0; border-radius: 9px; }
.track-actions .mini-btn svg { width: 16px; height: 16px; flex: none; display: block; }
.track-actions .mini-btn.on svg path { fill: #FF5C8A; }
.track-actions .mb-lbl { display: none; }
.track-stat { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.track-earn { font-size: 11.5px; font-weight: 700; color: var(--gold, #b8860b);
  background: var(--gold-soft, #fff6e0); border: 1px solid var(--gold-line, #f0d79a);
  border-radius: 999px; padding: 2px 10px; margin-top: 2px; align-self: flex-start; }
.mini-btn {
  padding: 3px 9px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff;
  font-size: 11.5px; font-weight: 600; color: var(--text-2);
  transition: .15s;
}
.mini-btn:hover { background: var(--brand-soft); color: var(--brand-1); border-color: #F5C6C6; }
.mini-btn.on { background: var(--brand-soft); color: var(--brand-1); border-color: #F5C6C6; }
.track-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-3);
}
.track-author { display: flex; align-items: center; gap: 6px; min-width: 0; }
.track-author .avatar { width: 18px; height: 18px; font-size: 9px; }
.track-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-price { font-size: 15px; font-weight: 800; color: var(--brand-1); margin-top: 8px; }

/* ============ 播放器（底部固定） ============ */
.player {
  position: fixed; left: var(--sidebar-w); right: 0; bottom: 0; z-index: 300;
  background: rgba(17, 24, 39, .96); backdrop-filter: blur(12px);
  color: #fff; min-height: 78px;
  display: none; align-items: center; gap: 10px 16px;
  padding: 8px 20px 6px;
  /* 两行：主操作行 + 底部通栏进度条；单行歌词占据进度条原来的位置 */
  grid-template-columns: 42px 150px 36px minmax(0, 1fr) auto auto;
  grid-template-rows: 40px 14px;
  grid-template-areas:
    "cover info play strip acts me"
    "bar   bar  bar  bar  bar  bar";
}
.player.show { display: grid; }
.player-cover {
  width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #E60012, #E60012);
}
.player-info { min-width: 160px; }
.player-info .t { font-size: 13.5px; font-weight: 700; }
.player-info .a { font-size: 12px; color: #8A8A8A; }
.player-bar { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
/* 单行歌词条：占据原进度条位置，只显示当前正在唱的一句，点进整页播放器 */
.player-lyric-strip {
  position: relative; min-width: 0; height: 30px; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.player-lyric-strip-body {
  display: flex; align-items: center; justify-content: center;
  width: 100%; white-space: nowrap; overflow: hidden;
}
.player-lyric-strip .strip-line {
  display: inline-block; max-width: 100%; font-size: 13.5px; color: #fff;
  font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 12px rgba(230,0,18,.55);
}
/* 唱到新句：淡入 + 轻微上浮切换 */
.player-lyric-strip .strip-line.flip { animation: stripFlip .42s ease both; }
@keyframes stripFlip {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.player-track {
  flex: 1; height: 4px; background: rgba(255, 255, 255, .18);
  border-radius: 4px; overflow: hidden; cursor: pointer; position: relative;
}
.player-fill {
  height: 100%; width: 0%; background: var(--grad-brand);
  border-radius: 4px; transition: width .2s linear;
}
.player-time { font-size: 11.5px; color: #8A8A8A; font-variant-numeric: tabular-nums; }
.player-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.player-btn svg { width: 18px; height: 18px; display: block; }
/* 桌面端：单行歌词占进度条原位，进度条下沉为底部通栏 */
@media (min-width: 769px) {
  .player .player-cover        { grid-area: cover; }
  .player .player-info         { grid-area: info; min-width: 0; }
  .player .player-lyric-strip  { grid-area: strip; }
  .player .player-btn#sw-play  { grid-area: play; }
  .player .player-acts         { grid-area: acts; justify-self: end; }
  .player .player-me           { grid-area: me; justify-self: end; }
  .player .player-bar          { grid-area: bar; width: 100%; gap: 10px; }
}
/* 播放器操作按钮组（词 / 买断版权 / 开通会员） */
.player-acts { display: flex; gap: 8px; align-items: center; flex: none; }
/* 歌词面板：悬浮在播放器之上，可滚动（浮层保留为「展开全部歌词」，单行条点击进整页播放器） */
.player-lyrics {
  position: fixed; left: var(--sidebar-w); right: 0; bottom: 78px; z-index: 299;
  background: rgba(17, 24, 39, .97); color: #f2f2f6;
  max-height: 42vh; overflow: auto; padding: 14px 20px 16px;
  display: none; border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
}
.player-lyrics.show { display: block; }
.lyric-body {
  font-size: 13px; line-height: 1.9; color: #b9b9c6; margin-bottom: 10px;
  max-height: 34vh; overflow: auto;
}
.lyric-line { padding: 3px 10px; border-radius: 6px; text-align: center;
  min-height: 26px; transition: color .2s, background .2s; }
.lyric-line.on { color: #fff; background: rgba(255,255,255,.1); font-weight: 700; }
.lyric-empty { color: #8a8a98; padding: 6px; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(17, 24, 39, .45);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--r-lg);
  padding: 30px 28px; max-width: 400px; width: 100%;
  text-align: center; box-shadow: var(--sh-lg);
  animation: pop .22s ease-out;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-icon {
  width: 56px; height: 56px; border-radius: var(--r);
  background: var(--gold-soft); display: grid; place-items: center;
  font-size: 28px; margin: 0 auto 16px;
}
.modal h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.modal p { font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }

/* ============ 顶部悬浮框（单条 · 半透明） ============ */
.top-float {
  position: fixed; top: 0; left: 0; right: 0; z-index: 550;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 16px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, rgba(255,111,174,.82), rgba(138,92,255,.82) 55%, rgba(63,208,255,.82));
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(138,92,255,.25);
  text-align: center;
}
.top-float .xf { margin-left: auto; cursor: pointer; opacity: .85; padding: 0 4px; font-weight: 700; }
.top-float.hide { display: none; }
body.has-float { padding-top: 40px; }

/* ============ Toast（半透明顶部条） ============ */
.toast-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: rgba(20, 22, 34, .72); color: #fff; backdrop-filter: blur(10px);
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.28);
  animation: slideDown .25s ease-out;
  display: flex; align-items: center; gap: 8px; max-width: 92vw;
}
@keyframes slideDown { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ 收银台 ============ */
.paysheet-mask {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(17,24,39,.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.paysheet {
  width: min(380px, 100%); max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 18px; padding: 20px 22px 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.3); text-align: center;
  animation: psIn .22s ease-out;
}
@keyframes psIn { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.ps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ps-head b { font-size: 16px; }
.ps-close { cursor: pointer; font-size: 18px; color: var(--text-3); padding: 0 4px; }
.ps-amount { font-size: 20px; font-weight: 700; color: var(--text-2); }
.ps-amount span { font-size: 36px; font-weight: 800; color: var(--text-1, #111); }
.ps-plan { font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.ps-no { font-size: 11.5px; color: var(--text-3); margin-top: 6px; word-break: break-all; }
.ps-demo { display: inline-block; font-size: 11px; font-weight: 700; color: #a15c00;
  background: #fff4dd; border: 1px solid #f0d79a; border-radius: 999px;
  padding: 3px 12px; margin-top: 10px; }
.ps-demo.real { color: #087a3d; background: #e8f8ee; border-color: #a9e2c2; }
.ps-qrbox svg { max-width: 100%; height: auto; }
.ps-channels { display: flex; gap: 8px; margin: 16px 0 14px; }
.ps-channels button { flex: 1; padding: 10px 4px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; color: var(--text-2); }
.ps-channels button.on { border-color: var(--brand-1); color: var(--brand-1); background: var(--brand-soft, #fff1f2); }
.ps-qrbox { min-height: 176px; display: grid; place-items: center; border: 1px dashed var(--line);
  border-radius: 12px; padding: 8px; background: #fff; }
.ps-qrbox svg { display: block; border-radius: 6px; }
.ps-qr-tip { font-size: 12.5px; color: var(--text-3); }
.ps-status { font-size: 12.5px; color: var(--text-2); margin: 12px 0; min-height: 18px; }
.ps-status.ok { color: #0a8; font-weight: 700; }
.ps-status.err { color: var(--brand-1); font-weight: 700; }
.ps-primary { width: 100%; padding: 12px; border: none; border-radius: 11px; cursor: pointer;
  background: var(--grad-brand); color: #fff; font-size: 15px; font-weight: 800; }
.ps-primary:disabled { opacity: .5; cursor: not-allowed; }
.ps-ghost { width: 100%; padding: 10px; margin-top: 8px; border: none; background: transparent;
  color: var(--text-3); font-size: 13px; cursor: pointer; }

/* ============ 通用区块 ============ */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.sec-head h2 { font-size: 19px; font-weight: 800; }
.sec-head .desc { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.eyebrow {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--brand-1); margin-bottom: 8px;
}
.divider { height: 1px; background: var(--line); margin: 28px 0; }
.empty {
  padding: 56px 20px; text-align: center; color: var(--text-3);
}
.empty .big { font-size: 34px; margin-bottom: 10px; }

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 40px 0 28px; margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px; margin-bottom: 28px;
}
.footer h4 { font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.footer a { display: block; font-size: 13px; color: var(--text-2); padding: 3px 0; }
.footer a:hover { color: var(--brand-1); }
.footer-bot {
  border-top: 1px solid var(--line); padding-top: 20px;
  font-size: 12.5px; color: var(--text-3);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ============ 响应式 ============ */
/* 宽版：超宽屏（>1440）歌曲网格 5 列，≤1440 回落 4 列 */
@media (max-width: 1440px) {
  .grid-tracks { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .grid-tracks { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-tracks { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* 移动端：侧栏收回为顶部条，底部用 Tab 栏导航 */
  :root { --sidebar-w: 0px; }
  .nav { position: sticky; top: 0; bottom: auto; height: auto;
    flex-direction: row; border-right: none; border-bottom: 1px solid var(--line); }
  .nav-inner { flex-direction: row; align-items: center; justify-content: space-between;
    padding: 0 14px; height: var(--nav-h); gap: 10px; }
  .nav-menu { display: none; }
  .nav-right { flex-direction: row; align-items: center; padding-top: 0; border-top: none; gap: 8px; }
  .nav-right .nav-item, .nav-right .credits-pill, .nav-right .nav-user, .nav-right .nav-cta { width: auto; }
  .brand { padding: 0; font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .sec-head h2 { font-size: 17px; }
}
@media (max-width: 480px) {
  .grid-tracks { grid-template-columns: 1fr; }
  .row { flex-direction: column; gap: 0; }
}

/* （二级下拉菜单样式已并入上方「左侧固定导航」区块，此处不再重复定义） */

/* ============================================================
   竖屏 / 移动端：底部 Tab 栏
   ============================================================ */
.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 0 5px; font-size: 10.5px; font-weight: 600; color: var(--text-3);
  transition: .15s;
}
.tab-item.on { color: var(--brand-1); }
.tab-item:active { background: var(--bg-soft); }
.tab-ico { font-size: 19px; line-height: 1; }
/* 底部 Tab 图标：与单歌卡片同款多色线性 SVG，选中态加淡红底突出 */
.tab-ico svg { width: 23px; height: 23px; display: block; margin: 0 auto; }
.tab-item.on .tab-ico { background: var(--brand-soft, #fff0f3); border-radius: 10px; padding: 3px; box-shadow: 0 1px 6px rgba(225,29,72,.14); }
.tab-item.on .tab-ico svg { width: 21px; height: 21px; }

@media (max-width: 768px) {
  .tabbar { display: flex; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  /* 播放器让位给底部 Tab */
  .player { bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .player-lyrics { bottom: calc(58px + 68px + env(safe-area-inset-bottom, 0px)); left: 0; }
  .player-info { min-width: 0; }
  .player-info .t { font-size: 12.5px; }
  .player-cover { width: 38px; height: 38px; }
  .player > .mini-btn { display: none; }
  /* 竖屏下弹窗贴合屏幕 */
  .modal { padding: 26px 20px; max-width: 100%; }
  .toast-wrap { right: 0; left: 0; top: 0; padding-top: 56px; }
  .toast { justify-content: center; }
}

/* 竖屏手机：卡片两列更紧凑 */
@media (max-width: 768px) and (orientation: portrait) {
  .grid-tracks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .track-title { font-size: 13px; margin: 8px 0 6px; }
  .track-actions { gap: 5px; }
  .track-actions .mini-btn { flex: 1 1 0; min-width: 0; max-width: 28px; height: 28px; padding: 0; }
  .track-actions .mini-btn svg { width: 15px; height: 15px; }
  .wrap, .wrap-narrow, .page-full { padding: 0 14px; }
  .hero-title { font-size: 20px; margin: 18px 0 20px; }
}

/* 横屏手机：用三列，别浪费横向空间 */
@media (max-height: 560px) and (orientation: landscape) {
  .grid-tracks { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   2026-11-13 · 全站播放器 / 整页播放 / 社交 / 视频 / 漫剧音乐
   ============================================================ */
.avatar-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: inline-block; flex: none; }
.avatar-img.avatar-sm { width: 28px; height: 28px; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.nav-user .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff; background: var(--grad-brand); flex: none; }
.side-user .avatar-img, .side-user .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.mini-btn.primary { background: var(--brand-soft); color: var(--brand-1); border-color: var(--gold-line); font-weight: 800; }
.player-me { flex: none; margin-left: 2px; cursor: pointer; opacity: .9; }
.player-me:hover { opacity: 1; }
.player-cover { cursor: pointer; }
.player-info .t { cursor: pointer; }
.player-info .t:hover { color: var(--brand-1); }
.track-cat { position: absolute; left: 8px; bottom: 8px; z-index: 2; font-size: 10.5px; font-weight: 800;
  color: #fff; background: rgba(17,17,17,.62); backdrop-filter: blur(6px); padding: 3px 8px; border-radius: 999px; }
.track-album-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 600;
  color: var(--text-3); background: var(--bg-mute); border-radius: 4px; padding: 1px 5px; vertical-align: 1px; }
.cat-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.cat-bar button { border: 1px solid var(--line); background: #fff; color: var(--text-2); cursor: pointer;
  font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; transition: .18s; }
.cat-bar button:hover { border-color: var(--brand-1); color: var(--brand-1); }
.cat-bar button.on { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--sh-sm); }
.cat-bar .cat-count { opacity: .65; font-size: 10.5px; margin-left: 4px; }

/* ---------- 整页播放器 ---------- */
body.np-body { background: #0d0b18; color: #f4f1ff; min-height: 100vh; }
body.np-body .footer { display: none; }
.np-stage { min-height: 100vh; position: relative; overflow: hidden;
  background: radial-gradient(900px 620px at 20% 0%, rgba(138,92,255,.38), transparent 62%),
              radial-gradient(760px 560px at 88% 18%, rgba(63,208,255,.20), transparent 60%),
              radial-gradient(760px 620px at 50% 110%, rgba(255,111,174,.24), transparent 60%),
              #0d0b18; }
.np-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.4px 1.4px at 12% 24%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.2px 1.2px at 72% 16%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 40% 72%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.4px 1.4px at 86% 62%, rgba(255,255,255,.45), transparent);
  background-size: 300px 300px; }
.np-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 26px; }
.np-back { color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 700;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); padding: 8px 15px; border-radius: 999px; }
.np-back:hover { background: rgba(255,255,255,.2); }
.np-brand { font-weight: 900; letter-spacing: .5px; font-size: 15px; }
.np-me { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.82); cursor: pointer; }
.np-wrap { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 10px 26px 60px;
  display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 48px; align-items: start; }
.np-left { position: sticky; top: 18px; }
.np-disc { width: 100%; aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1); overflow: hidden;
  background-size: cover; background-position: center; }
.np-disc.spin .np-disc-inner { animation: npSpin 22s linear infinite; }
.np-disc-inner { width: 46%; aspect-ratio: 1; border-radius: 50%; background:
  radial-gradient(circle at center, #1a1626 0 13%, #2a2340 14% 20%, #141020 21% 100%);
  border: 5px solid rgba(255,255,255,.14); box-shadow: 0 0 0 8px rgba(255,255,255,.05), inset 0 0 30px rgba(0,0,0,.8); }
@keyframes npSpin { to { transform: rotate(360deg); } }
.np-title { font-size: 26px; font-weight: 900; margin: 22px 0 6px; line-height: 1.3; }
.np-author { color: rgba(255,255,255,.7); font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.np-chip { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14); }
.np-progress { margin: 22px 0 10px; }
.np-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.16); cursor: pointer; overflow: hidden; }
.np-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg,#FF6FAE,#8A5CFF 55%,#3FD0FF); }
.np-times { display: flex; justify-content: space-between; font-size: 11.5px; color: rgba(255,255,255,.6); margin-top: 7px; font-variant-numeric: tabular-nums; }
.np-ctrl { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 16px 0 18px; }
.np-ctrl button { border: none; cursor: pointer; color: #fff; background: rgba(255,255,255,.12);
  width: 44px; height: 44px; border-radius: 50%; font-size: 16px; transition: .18s; }
.np-ctrl button:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.np-ctrl button.main { width: 62px; height: 62px; font-size: 23px;
  background: linear-gradient(135deg,#FF6FAE,#8A5CFF); box-shadow: 0 10px 26px rgba(138,92,255,.42); }
.np-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.np-acts button { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff;
  padding: 8px 13px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; }
.np-acts button:hover { background: rgba(255,255,255,.18); }
.np-lyrics-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.np-lyrics-head h2 { font-size: 16px; font-weight: 800; }
.np-lyrics-head span { font-size: 11.5px; color: rgba(255,255,255,.55); }
.np-lyrics { height: min(52vh, 460px); overflow-y: auto; padding: 30px 10px 40px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
  scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
/* 每行固定高度 + 统一居中：高亮只改颜色/字重，不改字号，歌词不会上下跳动 */
.np-line { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.42);
  padding: 7px 12px; min-height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  transition: color .28s, background .28s, text-shadow .28s; cursor: pointer; }
.np-line:hover { color: rgba(255,255,255,.8); }
.np-line.on { color: #fff; font-weight: 800;
  background: linear-gradient(90deg, rgba(255,111,174,.16), rgba(138,92,255,.1));
  text-shadow: 0 0 22px rgba(255,111,174,.45); }
.np-empty { color: rgba(255,255,255,.45); text-align: center; padding: 80px 0; font-size: 14px; }
.np-comments { max-width: 1120px; margin: 0 auto; padding: 0 26px 100px; position: relative; z-index: 2; }
.np-cm-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; padding: 22px; backdrop-filter: blur(10px); }
.np-cm-card h2 { font-size: 17px; margin-bottom: 14px; }
.np-cm-form { display: flex; gap: 10px; margin-bottom: 18px; }
.np-cm-form input { flex: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  background: rgba(0,0,0,.24); color: #fff; padding: 11px 14px; font-size: 13.5px; outline: none; }
.np-cm-form input::placeholder { color: rgba(255,255,255,.4); }
.np-cm-form button { border: none; border-radius: 10px; padding: 0 20px; font-weight: 800; font-size: 13px;
  color: #fff; background: linear-gradient(135deg,#FF6FAE,#8A5CFF); cursor: pointer; }
.np-cm-item { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.09); }
.np-cm-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none;
  background: linear-gradient(135deg,#FF6FAE,#8A5CFF); display: grid; place-items: center;
  font-size: 12px; font-weight: 800; }
.np-cm-body { flex: 1; min-width: 0; }
.np-cm-name { font-size: 12.5px; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.np-cm-text { font-size: 14px; line-height: 1.6; word-break: break-word; }
.np-cm-like { border: none; background: transparent; color: rgba(255,255,255,.6); cursor: pointer; font-size: 12.5px; }
.np-cm-like.on { color: #FF6FAE; font-weight: 800; }

/* ---------- 通用面板 / 表单 ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--sh-sm); }
.panel h2 { font-size: 17px; margin-bottom: 6px; }
.panel .hint { color: var(--text-3); font-size: 12.5px; margin-bottom: 16px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 800; color: var(--text-2); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 13.5px; font-family: inherit; color: var(--text); background: #fff; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-1); }
.btn-main { border: none; background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 13.5px;
  padding: 10px 18px; border-radius: 10px; cursor: pointer; box-shadow: var(--sh-sm); }
.btn-main:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--text-2); font-weight: 700;
  font-size: 12.5px; padding: 9px 14px; border-radius: 10px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--brand-1); color: var(--brand-1); }
.empty-box { text-align: center; color: var(--text-3); padding: 46px 10px; font-size: 13.5px; }

/* ---------- 资料设置 / 封面替换 ---------- */
.pf-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pf-avatar { width: 82px; height: 82px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 900; }
.pf-cover { width: 78px; height: 78px; border-radius: 10px; object-fit: cover; flex: none;
  background: var(--bg-mute); }
.tabs-line { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs-line button { border: none; background: transparent; padding: 11px 15px; font-size: 13.5px; font-weight: 800;
  color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs-line button.on { color: var(--brand-1); border-bottom-color: var(--brand-1); }
.row-card { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.row-card .grow { flex: 1; min-width: 160px; }
.row-card .t { font-weight: 800; font-size: 13.5px; }
.row-card .s { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ---------- 漫剧音乐 ---------- */
.pk-wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 100px; }
.pk-hero { border-radius: 20px; padding: 30px; color: #fff; margin-bottom: 24px;
  background: linear-gradient(120deg,#2a1b45,#5a2c7a 48%,#a63f76); box-shadow: var(--sh); }
.pk-hero h1 { font-size: 25px; margin-bottom: 8px; }
.pk-hero p { font-size: 13.5px; opacity: .85; line-height: 1.7; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 16px; }
.pk-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--sh-sm); }
.pk-cover { height: 130px; position: relative; background-size: cover; background-position: center; }
.pk-cover .tag { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 800;
  color: #fff; background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 999px; }
.pk-body { padding: 16px; }
.pk-body h3 { font-size: 16px; margin-bottom: 5px; }
.pk-body .sub { font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
.pk-body .desc { font-size: 12.5px; color: var(--text-2); line-height: 1.65; min-height: 62px; }
.pk-list { margin: 10px 0 14px; font-size: 12px; color: var(--text-2); }
.pk-list div { padding: 4px 0; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; }
.pk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pk-price { font-size: 19px; font-weight: 900; color: var(--brand-1); }
.pk-price small { font-size: 11px; color: var(--text-3); font-weight: 600; }

/* ---------- 音乐广场内的漫剧音乐 ---------- */
.hall-views { display: flex; gap: 6px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.hall-views button { position: relative; border: none; background: transparent; cursor: pointer;
  padding: 11px 18px 13px; font-size: 14px; font-weight: 800; color: var(--text-3); }
.hall-views button:hover { color: var(--brand-1); }
.hall-views button.on { color: var(--brand-1); }
.hall-views button.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--grad-brand); }
.hv-count { display: inline-block; min-width: 20px; margin-left: 5px; padding: 1px 6px;
  border-radius: 999px; background: var(--bg-soft); color: var(--text-3); font-size: 11px; font-weight: 800; }
.hall-views button.on .hv-count { background: rgba(255,111,174,.14); color: var(--brand-1); }

.hall-pack-strip { margin: 24px 0 22px; padding: 18px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; box-shadow: var(--sh-sm); }
.hall-pack-strip .sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hall-pack-strip .sec-head h2 { font-size: 17px; }
.hall-more { flex: none; border: 1px solid var(--line); background: #fff; color: var(--brand-1);
  padding: 8px 14px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 800; cursor: pointer; }
.hall-more:hover { border-color: var(--brand-1); }
.hps-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 12px; margin-top: 15px; }
.hps-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.hps-cover { height: 78px; position: relative; background-size: cover; background-position: center; }
.hps-cover .tag { position: absolute; left: 10px; top: 10px; font-size: 10.5px; font-weight: 800;
  color: #fff; background: rgba(0,0,0,.45); padding: 3px 9px; border-radius: 999px; }
.hps-body { padding: 11px 12px 12px; }
.hps-body h4 { font-size: 13.5px; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hps-meta { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hps-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; }
.hps-price { font-size: 16px; font-weight: 900; color: var(--brand-1); }
.hps-price small { font-size: 10.5px; color: var(--text-3); font-weight: 600; }
.hps-btn { border: none; border-radius: var(--r-sm); padding: 6px 12px; cursor: pointer;
  background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 800; }
.hps-btn.owned { background: #eef0f5; color: var(--text-2); }
@media (max-width: 640px) {
  .hall-views button { padding: 10px 12px 12px; font-size: 13px; }
  .hps-grid { grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); }
}

/* ---------- 音乐广场内的版权市场 ---------- */
.sw-input { width: 100%; box-sizing: border-box; margin: 4px 0; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; font-family: inherit; outline: none; }
.sw-input:focus { border-color: var(--brand-1); }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 16px; }
.mk-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh); overflow: hidden; display: flex; flex-direction: column; }
.mk-cover { height: 120px; background: var(--grad-brand); position: relative; }
.mk-cover .mk-play { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px;
  border-radius: 50%; border: none; background: rgba(0,0,0,.35); color: #fff; font-size: 16px; cursor: pointer; }
.mk-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.mk-title { font-size: 15px; font-weight: 800; }
.mk-author { font-size: 12.5px; color: var(--text-3); margin: 3px 0 8px; }
.mk-desc { font-size: 12.5px; color: var(--text-2); flex: 1; }
.mk-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.mk-price { font-weight: 800; color: var(--brand-1); }
.mk-price small { color: var(--text-3); font-weight: 500; }
.mk-buy { padding: 8px 16px; border: none; border-radius: var(--r);
  background: var(--gold); color: #3a2a00; font-weight: 800; cursor: pointer; }
.mk-buy:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 音乐广场内的歌词创作 ---------- */
.hall-quick { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 12px; margin: 0 0 22px; }
.hall-quick button { text-align: left; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; padding: 13px 15px; cursor: pointer; box-shadow: var(--sh-sm);
  transition: border-color .2s, transform .2s; }
.hall-quick button:hover { border-color: var(--brand-1); transform: translateY(-2px); }
.hall-quick b { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.hall-quick span { display: block; font-size: 12px; color: var(--text-3); line-height: 1.6; }
.ly-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
.struct-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.struct-bar button { padding: 4px 11px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: #fff; font-size: 12px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.struct-bar button:hover { border-color: var(--brand-2); color: var(--brand-1); }
.ly-out { min-height: 420px; font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 13px; line-height: 2; white-space: pre-wrap; }
.ly-out .sec { color: var(--brand-1); font-weight: 800; }
.ly-tag { display: inline-block; background: var(--violet-soft); color: var(--violet);
  padding: 1px 7px; border-radius: 4px; font-size: 11.5px; font-weight: 700; margin-right: 6px; }
.stat-mini { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; }
.stat-mini div { background: var(--bg-soft); border-radius: var(--r-sm); padding: 10px; text-align: center; }
.stat-mini b { display: block; font-size: 18px; font-weight: 800; color: var(--brand-1); }
.stat-mini span { font-size: 11.5px; color: var(--text-3); }
@media (max-width: 900px) { .ly-wrap { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hall-quick { grid-template-columns: 1fr; } }

/* ---------- 视频生成（即梦式窗口） ---------- */
.vg-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 20px 100px; }
.vg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.vg-head h1 { font-size: 23px; }
.vg-head p { color: var(--text-3); font-size: 13px; margin-top: 5px; }
.vg-grid { display: grid; grid-template-columns: 330px 1fr; gap: 18px; align-items: start; }
.vg-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--sh-sm); }
.vg-box h2 { font-size: 15px; margin-bottom: 4px; }
.vg-box .hint { font-size: 12px; color: var(--text-3); margin-bottom: 14px; line-height: 1.6; }
.vg-preview { aspect-ratio: 9/16; max-height: 380px; border-radius: 12px; margin: 12px auto 0; width: auto;
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; text-align: center;
  background: linear-gradient(150deg,#2a1b45,#8A5CFF 55%,#FF6FAE); box-shadow: var(--sh); }
.vg-shots { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 12px; }
.vg-shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.vg-shot-img { height: 110px; background-size: cover; background-position: center; position: relative; }
.vg-shot-img .idx { position: absolute; left: 8px; top: 8px; font-size: 10.5px; font-weight: 800;
  color: #fff; background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 999px; }
.vg-shot-body { padding: 10px; }
.vg-shot-body .st { font-size: 11px; color: var(--brand-1); font-weight: 800; }
.vg-shot-body .sc { font-size: 12px; line-height: 1.55; color: var(--text-2); margin: 5px 0; min-height: 38px; }
.vg-shot-body .ly { font-size: 11px; color: var(--text-3); border-left: 2px solid var(--gold-line); padding-left: 7px; }
.vg-assets { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 12px; }
.vg-asset { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.vg-asset-img { width: 100%; aspect-ratio: 1; border-radius: 9px; background-size: cover; background-position: center; }
.vg-asset .nm { font-size: 12.5px; font-weight: 800; margin: 8px 0 3px; }
.vg-asset .pr { font-size: 11px; color: var(--text-3); line-height: 1.5; min-height: 32px; }
.vg-asset .ops { display: flex; gap: 6px; margin-top: 8px; }
.vg-asset .ops button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 7px;
  padding: 6px 4px; font-size: 11px; cursor: pointer; color: var(--text-2); }
.vg-asset .ops button:hover { border-color: var(--brand-1); color: var(--brand-1); }
.vg-section { margin-top: 22px; }
.vg-section > h2 { font-size: 17px; margin-bottom: 12px; }
.vg-proj { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.vg-proj button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px;
  font-size: 12px; cursor: pointer; color: var(--text-2); }
.vg-proj button.on { background: var(--grad-brand); color: #fff; border-color: transparent; font-weight: 800; }
@media (max-width: 900px) {
  .vg-grid { grid-template-columns: 1fr; }
  .np-wrap { grid-template-columns: 1fr; gap: 18px; padding: 6px 18px 40px; }
  .np-left { position: static; }
  .np-disc { max-width: 260px; margin: 0 auto; }
  .np-title { text-align: center; font-size: 21px; }
  .np-author { justify-content: center; }
  .np-lyrics { height: 40vh; }
  .np-comments { padding: 0 18px 100px; }
}

/* ---------- 同类随机循环连播 ---------- */
.player-acts { flex-wrap: nowrap; overflow-x: auto; max-width: 44vw; scrollbar-width: none; }
.player-acts::-webkit-scrollbar { display: none; }
.player-acts .mini-btn { flex: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 9px; }
.player-acts .mini-btn svg { width: 18px; height: 18px; display: block; }
.mini-btn.radio-btn.on, .np-acts button.on {
  background: linear-gradient(135deg, #FF6FAE, #8A5CFF) !important;
  color: #fff !important; border-color: transparent !important; font-weight: 800;
}
.np-ctrl button[title^="下一曲"] { font-size: 18px; }
@media (max-width: 768px) { .player-acts { max-width: 46vw; } }

/* ============================================================
   2026-11-12 · 移动端 / 微信适配 · 横屏歌词 · 播放器上下曲
   ============================================================ */
/* 微信 / 移动端基础体验：去掉点击高亮、防止下拉刷新、稳定字号 */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
a, button, .mini-btn, .np-ctrl button, .np-acts button, .cat-bar button, .track-actions button {
  -webkit-tap-highlight-color: transparent;
}
img { -webkit-user-drag: none; }
/* 动态视口高度：消除移动端地址栏导致的 100vh 偏差 */
html, body { min-height: 100%; }
body.np-body { min-height: 100vh; min-height: 100dvh; }
.np-stage { min-height: 100vh; min-height: 100dvh; }

/* 安全区（刘海屏 / 底部手势条） */
.np-top { padding-top: max(18px, env(safe-area-inset-top)); }
.np-ctrl { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 768px) {
  .player { left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .player-lyrics { left: 0; right: 0; bottom: calc(58px + 68px + env(safe-area-inset-bottom, 0px)); }
  .tabbar, #sw-tabbar, #nav { padding-bottom: env(safe-area-inset-bottom); }
  .nav-inner, .tabbar-inner { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* 小屏把播放控件再收窄，避免 5 个按钮溢出 */
@media (max-width: 380px) {
  .np-ctrl { gap: 14px; }
  .np-ctrl button { width: 40px; height: 40px; font-size: 15px; }
  .np-ctrl button.main { width: 56px; height: 56px; font-size: 21px; }
}

/* 整页播放器：横屏改成「左小封面 + 右大歌词」卡拉OK视图，逐句滚动同步（仅手机/平板，避开大屏桌面） */
@media (orientation: landscape) and (max-height: 900px) and (max-width: 1024px) {
  .np-wrap { grid-template-columns: minmax(140px, 220px) 1fr; gap: 24px; padding: 8px 22px 24px; align-items: start; }
  .np-left { position: static; }
  .np-disc { aspect-ratio: 1; }
  .np-title { font-size: 18px; margin: 12px 0 4px; }
  .np-author { font-size: 12px; }
  .np-progress { margin: 12px 0 8px; }
  .np-ctrl { gap: 16px; margin: 8px 0 10px; }
  .np-lyrics { height: min(78vh, 560px); padding: 36px 10px; }
  .np-line { font-size: 22px; line-height: 1.7; min-height: 50px; }
  .np-lyrics-head h2 { font-size: 15px; }
}
/* 矮横屏（手机横过来）进一步让歌词占满 */
@media (orientation: landscape) and (max-height: 560px) {
  .np-wrap { grid-template-columns: minmax(110px, 170px) 1fr; gap: 16px; padding: 6px 16px 14px; }
  .np-disc { aspect-ratio: 1; }
  .np-line { font-size: 19px; min-height: 44px; }
  .np-lyrics { height: min(82vh, 460px); }
}
/* 全局迷你播放器展开歌词时，横屏大字号 */
@media (orientation: landscape) {
  .player-lyrics .lyric-line { font-size: 16px; }
  .player-lyrics .lyric-body { max-height: 30vh; }
}

/* ============================================================
   2026-11-12 · 移动端播放条重排
   歌名/副信息强制横排（不再竖着挤成单字列）、播放键移到行尾、
   进度条与操作按钮各占一行，三段式留白更有设计感
   ============================================================ */
@media (max-width: 768px) {
  .player {
    height: auto;
    min-height: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 9px 10px;
    border-radius: 16px 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
  }
  .player.show {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 44px;
    grid-template-areas:
      "cover info play"
      "strip strip strip"
      "bar   bar  bar"
      "acts  acts acts";
    align-items: center;
    row-gap: 7px;
  }
  /* 封面：圆角 + 细描边 + 柔光 */
  .player .player-cover {
    grid-area: cover;
    width: 46px; height: 46px; border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .14);
  }
  /* 歌曲信息：横排单行省略，彻底消除竖排单字 */
  .player .player-info { grid-area: info; min-width: 0; overflow: hidden; }
  .player .player-info .t {
    font-size: 14px; font-weight: 700; line-height: 1.35; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .player .player-info .a {
    font-size: 11.5px; line-height: 1.4; color: #9aa3b2; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* 播放键后置到第一行行尾，加柔光成为视觉焦点 */
  .player .player-btn#sw-play {
    grid-area: play; justify-self: end;
    width: 44px; height: 44px; font-size: 15px;
    box-shadow: 0 4px 16px rgba(230, 0, 18, .45);
  }
  .player .player-btn#sw-play svg { width: 21px; height: 21px; }
  /* 单行滚动歌词占第二行（原进度条位置） */
  .player .player-lyric-strip { grid-area: strip; width: 100%; height: 24px; }
  .player .player-lyric-strip .strip-line { font-size: 12.5px; }
  /* 进度条下移到第三行 */
  .player .player-bar { grid-area: bar; width: 100%; gap: 10px; }
  .player .player-time { font-size: 11px; min-width: 32px; text-align: center; }
  .player .player-track { height: 4px; }
  /* 操作按钮独占第三行，等距铺开 */
  .player .player-acts {
    grid-area: acts; width: 100%; max-width: none;
    justify-content: space-between; gap: 6px;
    overflow-x: auto; padding-bottom: 1px;
  }
  .player .player-acts .mini-btn { width: 34px; height: 34px; }
  .player .player-acts .mini-btn svg { width: 17px; height: 17px; }
  /* 账户入口由底部 Tab 承担，避免挤压歌名 */
  .player .player-me { display: none; }
  /* 歌词面板紧贴播放器上边缘，不再依赖写死的高度 */
  .player .player-lyrics {
    position: absolute; left: 0; right: 0; bottom: 100%;
    border-radius: 14px 14px 0 0;
  }
}

/* ============================================================
   被点赞 / 收藏：爱心角标 + 全屏飘心特效 + 通知面板
   ============================================================ */
.nav-heart {
  position: relative; display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border:none; border-radius:50%; cursor:pointer;
  background:var(--brand-soft,#fff1f3); color:var(--brand-1,#e11d48); transition:.15s;
}
.nav-heart:hover { background:#ffe0e6; transform:scale(1.08); }
.nav-heart svg { width:19px; height:19px; }
.heart-badge {
  position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px;
  border-radius:9px; background:#e11d48; color:#fff; font-size:11px; font-weight:800;
  line-height:18px; text-align:center; box-shadow:0 2px 6px rgba(225,29,72,.4);
}
.side-heart-btn { color:var(--brand-1,#e11d48); }
.side-heart-btn .heart-badge { position:static; display:inline-block; margin-left:4px; vertical-align:middle; }

/* 全屏飘心：爱心从底部升起、左右轻摆、渐隐 */
.heart-rain { position:fixed; inset:0; z-index:9999; pointer-events:none; overflow:hidden; }
.heart-float {
  position:absolute; bottom:-40px; line-height:1; opacity:0;
  text-shadow:0 2px 10px rgba(225,29,72,.35);
  animation-name:heartFloat; animation-timing-function:ease-in; animation-fill-mode:forwards;
}
@keyframes heartFloat {
  0%   { transform:translateY(0) translateX(0) scale(.6) rotate(-12deg); opacity:0; }
  12%  { opacity:1; }
  70%  { opacity:.9; }
  100% { transform:translateY(-92vh) translateX(var(--drift,0)) scale(1.15) rotate(14deg); opacity:0; }
}

/* 通知面板 */
.notice-modal { max-width:440px; }
.notice-list { max-height:50vh; overflow:auto; margin:6px 0 2px; }
.notice-row {
  display:flex; gap:10px; align-items:flex-start; padding:10px 8px;
  border-bottom:1px solid var(--line); font-size:13px;
}
.notice-row.fresh { background:var(--brand-soft,#fff1f3); border-radius:8px; }
.notice-heart { color:#e11d48; font-size:18px; line-height:1.2; }
.notice-txt { line-height:1.55; }
.notice-txt b { color:var(--brand-1,#e11d48); }
.notice-txt span { color:var(--text-3); font-size:12px; }
.notice-empty { text-align:center; color:var(--text-3); padding:26px 0; font-size:13px; }
@media (max-width:480px) { .nav-heart { width:32px; height:32px; } .nav-heart svg { width:17px; height:17px; } }

/* ============================================================
   悬浮播放器 · 折叠为一排 / 触摸展开（v2）
   折叠态：作者 + 歌名(固定5汉字·超长滚动) + 上一首/播放/下一首/收藏/分享
   展开态：追加 循环/整页/歌词/会员 + 进度条 + 单行歌词
   ============================================================ */
.player.show {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  padding: 6px 12px;
  min-height: 0;
}
/* 折叠行：始终一排 */
.player-compact {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 50px;
}
.player-compact .player-cover {
  width: 40px; height: 40px; border-radius: 9px; flex: 0 0 40px; cursor: pointer;
}
/* 歌名/作者区：作者在上、歌名在下；歌名固定 5 汉字宽，超出左右滚动 */
.player-compact .player-info { flex: 0 0 auto; min-width: 0; cursor: pointer; }
.player-compact .player-info .a { font-size: 11.5px; color: #9aa3b2; line-height: 1.3;
  max-width: 5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-compact .player-info .t { font-size: 14px; font-weight: 700; line-height: 1.35; margin: 0; }
.t-fixed {
  display: inline-block; width: 5em;            /* 固定 5 个汉字宽 */
  max-width: 5em; overflow: hidden; white-space: nowrap; vertical-align: bottom;
}
.t-inner { display: inline-block; white-space: nowrap; padding-right: 1em; }
.t-inner.marquee {
  animation: titleMarquee linear infinite alternate;
  animation-duration: var(--mq-dur, 5s);
}
@keyframes titleMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--marquee-dist, 0px))); }
}
/* 核心控制：上一首 / 播放 / 下一首 / 收藏 / 分享，播放键居中且更醒目 */
.player-core { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: 0 0 auto; }
.player-core .mini-btn { width: 36px; height: 36px; }
.player-core .mini-btn svg { width: 18px; height: 18px; display: block; }
.player-core #sw-play.player-btn {
  width: 42px; height: 42px; margin: 0 2px;
  box-shadow: 0 4px 14px rgba(230, 0, 18, .45);
}
.player-core #sw-play svg { width: 20px; height: 20px; }
.player-core .mini-btn.on { color: #ff4d6d; background: rgba(255,77,109,.14); }
/* 展开区：默认隐藏，触摸 player 后显示 */
.player-more { display: none; width: 100%; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.player.expanded .player-more { display: block; animation: moreReveal .2s ease; }
@keyframes moreReveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.player-more .player-lyric-strip { width: 100%; height: 22px; margin: 2px 0 4px; }
.player-more .player-acts { width: 100%; justify-content: space-around; gap: 4px; margin-bottom: 6px;
  max-width: none; overflow: visible; padding: 0; }
.player-more .player-acts .mini-btn { width: 34px; height: 34px; }
.player-more .player-bar { width: 100%; }
/* 展开态的歌词浮层贴着播放器上沿 */
.player .player-lyrics { position: absolute; left: 0; right: 0; bottom: 100%; }
/* 桌面端：同样折叠一排，取消原 grid 定位 */
@media (min-width: 769px) {
  .player.show { display: flex !important; }
  .player-compact .player-info .a, .player-compact .player-info .t { text-align: left; }
}
/* 窄屏：按钮再收紧一点，保证 5 控件 + 歌名一排放得下 */
@media (max-width: 380px) {
  .player.show { padding: 6px 8px; }
  .player-compact { gap: 7px; }
  .player-core { gap: 2px; }
  .player-core .mini-btn { width: 32px; height: 32px; }
  .player-core #sw-play.player-btn { width: 38px; height: 38px; }
  .player-compact .player-cover { width: 36px; height: 36px; flex-basis: 36px; }
}

/* ============================================================
   悬浮播放器 · 淡红渐变背景（透明度 80%）+ 配套深色文字
   ============================================================ */
.player.show {
  /* 淡红渐变，80% 透明；backdrop-filter 保留毛玻璃 */
  background: linear-gradient(135deg, rgba(255, 228, 236, .8) 0%, rgba(255, 205, 220, .8) 100%) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #7a1f3d !important;                       /* 主体文字改深玫红，浅底可读 */
  border-top: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 -6px 24px rgba(230, 0, 18, .12);
}
/* 作者 / 时间：深灰红 */
.player .player-compact .player-info .a,
.player .player-info .a,
.player .player-time { color: #a34566 !important; }
/* 歌名：深玫红 */
.player .player-info .t,
.player .player-compact .player-info .t { color: #6b1633 !important; }
/* 单行歌词：深色 + 去掉深色底才需要的红阴影 */
.player .player-lyric-strip .strip-line {
  color: #7a1f3d !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .7) !important;
}
/* 进度条：轨道更浅、填充保持品牌红渐变 */
.player .player-track { background: rgba(122, 31, 61, .18) !important; }
/* 常驻进度条：填在悬浮播放器与底部 Tab 栏之间的缝隙，折叠态也始终可见 */
.player .player-seekline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: rgba(122, 31, 61, .16); cursor: pointer; overflow: hidden;
}
.player .player-seekfill {
  height: 100%; width: 0%; background: var(--grad-brand);
  border-radius: 0 4px 4px 0; transition: width .2s linear;
}
/* 图标按钮：半透明白底 + 深红图标，浅底上清晰 */
.player .mini-btn {
  background: rgba(255, 255, 255, .72) !important;
  color: #a34566 !important;
  border-color: rgba(190, 90, 120, .25) !important;
}
.player .mini-btn:hover { background: rgba(255, 255, 255, .95) !important; color: #7a1f3d !important; }
.player .mini-btn.on { background: rgba(255, 255, 255, .95) !important; color: #e11d48 !important; }
/* 核心区收藏高亮（深红心） */
.player .player-core .mini-btn.on { color: #e11d48 !important; background: rgba(255, 255, 255, .95) !important; }
/* 主播放键保留品牌渐变 + 白图标（视觉焦点，浅底上依旧醒目） */
.player .player-btn#sw-play { color: #fff !important; }
/* 歌词浮层：跟随淡红主题，深色字 */
.player .player-lyrics { color: #5a1830 !important; background: rgba(255, 235, 242, .96) !important; border-top: 1px solid rgba(190,90,120,.25); }
.player .player-lyrics .lyric-body { color: #9a5670; }
.player .player-lyrics .lyric-line.on { color: #7a1f3d !important; background: rgba(230, 0, 18, .08) !important; }

/* ============================================================
   顶部横栏（v2）：logo 星芒音乐 + 全局搜索 + 收藏爱心
   淡红渐变 80% 透明，固定悬浮在顶部
   ============================================================ */
body { padding-left: 0 !important; }
/* 给固定顶栏留出内容空间（高度约 60px） */
.nav-topbar {
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
  bottom: auto !important; width: 100% !important; height: 60px; z-index: 400 !important;
  background: linear-gradient(135deg, rgba(255, 228, 236, .8) 0%, rgba(255, 205, 220, .8) 100%) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(190, 90, 120, .22);
  box-shadow: 0 4px 18px rgba(230, 0, 18, .10);
  display: block !important;
}
.nav-topbar .nav-inner {
  height: 100%; flex-direction: row !important; align-items: center; gap: 14px;
  padding: 0 16px; max-width: 1280px; margin: 0 auto;
}
.nav-topbar .brand { padding: 0; flex: 0 0 auto; gap: 8px; }
.nav-topbar .brand-mark {
  width: 34px; height: 34px; border-radius: 10px; font-size: 20px;
  box-shadow: 0 3px 10px rgba(225, 29, 72, .3);
}
.nav-topbar .brand-name { color: #7a1f3d !important; font-size: 16px; font-weight: 800; }
/* 搜索框：占据剩余空间一直到收藏爱心前 */
.nav-topbar .nav-search {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 6px 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(190, 90, 120, .28);
  transition: box-shadow .15s, border-color .15s;
}
.nav-topbar .nav-search:focus-within { border-color: #e11d48; box-shadow: 0 0 0 3px rgba(225,29,72,.12); }
.nav-topbar .ns-ico { width: 18px; height: 18px; flex: 0 0 18px; color: #b05a74; }
.nav-topbar .nav-search input {
  flex: 1 1 auto; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 13.5px; color: #5a1830;
}
.nav-topbar .nav-search input::placeholder { color: #b98a9c; }
.nav-topbar .ns-go {
  flex: 0 0 auto; padding: 6px 16px; border-radius: 999px; border: none;
  background: var(--grad-brand); color: #fff; font-size: 12.5px; font-weight: 800;
}
/* 收藏爱心：淡红主题内深红 */
.nav-topbar .nav-heart {
  flex: 0 0 auto; background: rgba(255, 255, 255, .82); color: #e11d48;
  border: 1px solid rgba(190, 90, 120, .28);
}
/* 顶栏占据高度：正文/卡片/播放器整体下移 */
body { padding-top: 60px !important; }
.player, .player-lyrics, .top-float, .toast-wrap { top: auto; }
.player { left: 0 !important; }
.player-lyrics { left: 0 !important; }
/* 顶部悬浮提示条与 toast 让开顶栏（放到 60px 以下） */
.top-float, .toast-wrap { padding-top: 4px !important; top: 60px !important; }
body.has-float { padding-top: 100px !important; }
@media (max-width: 768px) {
  .nav-topbar { height: 54px; }
  .nav-topbar .brand-name { display: none; }   /* 窄屏只留 logo 图标 */
  body { padding-top: 54px !important; }
  .top-float, .toast-wrap { top: 54px !important; }
  .nav-topbar .nav-inner { gap: 10px; padding: 0 12px; }
  .nav-topbar .ns-go { padding: 6px 12px; }
}
