/* ============================================================================
 * public/bossmusic.css —— 「老板AI音乐」样式（2026-09-18 · 开发员17号）
 *
 * 独立文件、排在 style.css 之后加载（铁律：改别人的样式别动 style.css）。
 * 前缀 bmu-（bm- 已被别的功能占用 71 处，别用）。
 *
 * 设计取向：老板板块其余卡片是暖橙浅底，音乐这块做成**深墨 + 暖金**（黑胶唱片的质感），
 * 一眼能认出"这是音乐"，又不会跟站点主色打架。
 * ========================================================================== */

.bmu-wrap { padding: 0 15px 96px; }            /* 底部给固定 TabBar 留位（实测 74px+） */

/* ---------------- 顶部 Hero（深墨 + 金） ---------------- */
.bmu-hero {
  position: relative;                 /* 🔴 有 absolute 装饰，容器必须 relative（否则手机整页被撑宽） */
  overflow: hidden;
  margin: 0 -15px 14px;
  padding: 22px 20px 20px;
  background: linear-gradient(135deg, #1A1410 0%, #2A1D14 60%, #171210 100%);
  border-radius: 0 0 22px 22px;
}
.bmu-hero-glow {
  position: absolute; right: -60px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 89, 1, 0.42) 0%, rgba(249, 89, 1, 0) 70%);
  pointer-events: none;
}
.bmu-hero h2 {
  margin: 0; font-size: 21px; font-weight: 800; color: #fff; letter-spacing: 0.5px;
}
.bmu-hero p {
  margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: rgba(255, 214, 170, 0.76);
}

/* ---------------- 三个入口 Tab ---------------- */
.bmu-tabs {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.bmu-tab {
  flex: 1 1 0; padding: 11px 6px;
  border: 1px solid rgba(240, 180, 90, 0.28);
  border-radius: 14px; background: var(--card);
  color: #8a6a48; font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.bmu-tab.on {
  background: linear-gradient(135deg, #F0B45A 0%, #E08A2B 100%);
  border-color: transparent; color: #23180F;
  box-shadow: 0 6px 16px rgba(224, 138, 43, 0.28);
}

/* ---------------- 场景选择 ---------------- */
.bmu-label {
  display: flex; align-items: baseline; gap: 8px;
  margin: 16px 2px 9px; font-size: 13.5px; font-weight: 700; color: var(--text);
}
.bmu-label em { font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--text2); }
.bmu-scenes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.bmu-scene {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 11px 5px 9px;
  border: 1.5px solid transparent; border-radius: 15px;
  background: var(--card); cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 8px rgba(58, 42, 30, 0.05);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
}
.bmu-scene i { font-size: 20px; font-style: normal; line-height: 1; }
.bmu-scene b { font-size: 12.5px; font-weight: 700; color: var(--text); }
.bmu-scene em { font-size: 10px; font-style: normal; color: var(--text2); text-align: center; line-height: 1.25; }
.bmu-scene.on {
  border-color: #E0A04A;
  box-shadow: 0 6px 16px rgba(224, 138, 43, 0.22);
  transform: translateY(-1px);
}
.bmu-scene:active { transform: scale(0.97); }

/* ---------------- 输入 ---------------- */
.bmu-input {
  width: 100%; box-sizing: border-box;
  padding: 13px 14px; min-height: 84px; resize: vertical;
  border: 1.5px solid rgba(240, 180, 90, 0.24); border-radius: 15px;
  background: var(--card); color: var(--text);
  font-size: 14.5px; line-height: 1.6; font-family: inherit;
  outline: none;
}
.bmu-input:focus { border-color: #E0A04A; box-shadow: 0 0 0 3px rgba(224, 138, 43, 0.12); }
.bmu-input::placeholder { color: #c2ae9c; }

/* ---------------- 小选项（情绪/声音） ---------------- */
.bmu-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.bmu-chip {
  padding: 8px 13px; border-radius: 999px; font-family: inherit;
  border: 1px solid rgba(240, 180, 90, 0.26); background: var(--chip-bg);
  color: #8a6a48; font-size: 13px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bmu-chip.on { background: #23180F; border-color: #23180F; color: #F0B45A; font-weight: 600; }

/* 开关行（纯伴奏 / 用我的声音） */
.bmu-switch {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 12px 14px;
  background: var(--card); border-radius: 14px;
  box-shadow: 0 2px 8px rgba(58, 42, 30, 0.05);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bmu-switch i {
  flex: 0 0 auto; width: 42px; height: 25px; border-radius: 999px;
  background: #e6dcd3; position: relative; transition: background 0.18s;
}
.bmu-switch i::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 19px; height: 19px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); transition: transform 0.18s;
}
.bmu-switch.on i { background: #E0A04A; }
.bmu-switch.on i::after { transform: translateX(17px); }
.bmu-switch b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.bmu-switch span { font-size: 11.5px; color: var(--text2); }
.bmu-switch.locked { opacity: 0.55; }

/* ---------------- 主按钮 ---------------- */
.bmu-go {
  display: block; width: 100%; margin-top: 16px; padding: 15px 0;
  border: none; border-radius: 16px;
  background: linear-gradient(135deg, #F0B45A 0%, #E07A1F 100%);
  color: #23180F; font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer; box-shadow: 0 8px 20px rgba(224, 122, 31, 0.3);
  -webkit-tap-highlight-color: transparent;
}
.bmu-go:disabled { background: #e6dcd3; color: #a89684; box-shadow: none; cursor: default; }
.bmu-ghost {
  flex: 1 1 0; padding: 12px 0; border-radius: 14px; font-family: inherit;
  border: 1px solid rgba(240, 180, 90, 0.3); background: transparent;
  color: #8a6a48; font-size: 14px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bmu-tip { margin: 9px 2px 0; font-size: 12px; color: var(--text2); line-height: 1.55; }

/* ---------------- 生成中 ---------------- */
.bmu-run {
  margin-top: 6px; padding: 26px 20px 22px; text-align: center;
  background: linear-gradient(135deg, #1A1410 0%, #2A1D14 100%);
  border-radius: 20px;
}
.bmu-run-ico { display: flex; justify-content: center; gap: 6px; height: 34px; align-items: flex-end; }
.bmu-run-ico span {
  display: block; width: 7px; border-radius: 4px; background: #F0B45A;
  animation: bmuBars 1.05s ease-in-out infinite;
}
.bmu-run-ico span:nth-child(1) { height: 16px; animation-delay: 0s; }
.bmu-run-ico span:nth-child(2) { height: 30px; animation-delay: 0.15s; }
.bmu-run-ico span:nth-child(3) { height: 21px; animation-delay: 0.3s; }
@keyframes bmuBars { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.15); } }
.bmu-run-stage { margin-top: 14px; font-size: 16.5px; font-weight: 700; color: #fff; }
.bmu-run-bar {
  height: 5px; margin: 14px auto 0; max-width: 300px;
  background: rgba(255, 255, 255, 0.12); border-radius: 99px; overflow: hidden;
}
.bmu-run-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #F0B45A, #E07A1F); transition: width 1s linear; }
.bmu-run-time { margin: 11px 0 0; font-size: 12.5px; color: rgba(255, 214, 170, 0.8); font-variant-numeric: tabular-nums; }
.bmu-run-note { margin: 12px 0 14px; font-size: 12px; line-height: 1.65; color: rgba(255, 255, 255, 0.5); }
.bmu-run-note b { color: rgba(255, 214, 170, 0.9); }
.bmu-run-btns { display: flex; gap: 8px; }
.bmu-run-btns .bmu-ghost { border-color: rgba(255, 214, 170, 0.28); color: rgba(255, 214, 170, 0.86); }

/* ---------------- 成品页 ---------------- */
.bmu-done { margin-top: 4px; }
.bmu-song-hd { padding: 4px 2px 12px; }
.bmu-song-hd b { display: block; font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: 0.4px; }
.bmu-song-hd span { display: block; margin-top: 3px; font-size: 12px; color: var(--text2); }
.bmu-vers { display: flex; gap: 8px; margin-bottom: 11px; }
.bmu-ver {
  flex: 1 1 0; padding: 10px 0; border-radius: 13px; font-family: inherit;
  border: 1px solid rgba(240, 180, 90, 0.3); background: var(--card);
  color: #8a6a48; font-size: 13.5px; font-weight: 600; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  -webkit-tap-highlight-color: transparent;
}
.bmu-ver em { font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--text2); }
.bmu-ver.on { background: #23180F; border-color: #23180F; color: #F0B45A; }
.bmu-ver.on em { color: rgba(255, 214, 170, 0.7); }

/* 播放器（深色卡） */
.bmu-player {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 14px; border-radius: 18px;
  background: linear-gradient(135deg, #1A1410 0%, #2A1D14 100%);
}
.bmu-play {
  flex: 0 0 auto; width: 46px; height: 46px; border: none; border-radius: 50%;
  background: linear-gradient(135deg, #F0B45A, #E07A1F); color: #23180F;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 14px rgba(224, 122, 31, 0.34);
}
.bmu-wave-wrap { position: relative; flex: 1 1 auto; min-width: 0; height: 54px; overflow: hidden; }
.bmu-wave { display: block; width: 100%; height: 54px; }
.bmu-wave-mask {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(240, 180, 90, 0.28), rgba(240, 180, 90, 0.1));
  border-right: 2px solid #F0B45A;
  pointer-events: none;
}
.bmu-time { flex: 0 0 auto; font-size: 12px; color: rgba(255, 214, 170, 0.8); font-variant-numeric: tabular-nums; }

/* 歌词 */
.bmu-lyric {
  margin-top: 12px; padding: 18px 16px; max-height: 320px; overflow-y: auto;
  background: var(--card); border-radius: 18px;
  box-shadow: 0 2px 10px rgba(58, 42, 30, 0.05);
  -webkit-overflow-scrolling: touch;
}
.bmu-ly {
  padding: 6px 2px; font-size: 14.5px; line-height: 1.7; color: #b6a08c;
  text-align: center; transition: color 0.2s, transform 0.2s;
}
.bmu-ly.tag { font-size: 11px; color: #cbb9a8; letter-spacing: 0.6px; }
.bmu-ly.on { color: #E07A1F; font-weight: 700; transform: scale(1.04); }
.bmu-lyric--none { text-align: center; font-size: 13px; color: var(--text2); padding: 26px 16px; }

/* 操作按钮 */
.bmu-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.bmu-act {
  flex: 1 1 calc(50% - 4px); min-width: 120px;
  padding: 13px 8px; border-radius: 14px; font-family: inherit;
  border: 1px solid rgba(240, 180, 90, 0.3); background: var(--card);
  color: #7a5f42; font-size: 13.5px; font-weight: 600; cursor: pointer;
  text-align: center; text-decoration: none; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.bmu-act--main {
  background: linear-gradient(135deg, #F0B45A 0%, #E07A1F 100%);
  border-color: transparent; color: #23180F;
  box-shadow: 0 6px 16px rgba(224, 122, 31, 0.26);
}
.bmu-act:disabled { opacity: 0.6; }

/* 视频 */
.bmu-video { margin-top: 13px; }
.bmu-vid-el { display: block; width: 100%; max-height: 62vh; border-radius: 16px; background: #000; }
.bmu-vid-tip { margin: 9px 2px 0; font-size: 12px; color: var(--text2); }
.bmu-vid-wait { padding: 30px 16px; text-align: center; font-size: 13px; color: var(--text2); background: var(--card); border-radius: 16px; }
.bmu-done-note { margin-top: 12px; font-size: 12px; color: var(--text2); text-align: center; }
.bmu-done-note b { color: #E07A1F; font-variant-numeric: tabular-nums; }
.bmu-again {
  display: block; width: 100%; margin-top: 13px; padding: 13px 0;
  border: 1px solid rgba(240, 180, 90, 0.3); border-radius: 14px;
  background: transparent; color: #8a6a48; font-size: 14px; font-family: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}

/* ---------------- 失败 ---------------- */
.bmu-fail { padding: 24px 18px; text-align: center; background: var(--card); border-radius: 18px; }
.bmu-fail-t { font-size: 16.5px; font-weight: 700; color: var(--text); }
.bmu-fail-m { margin: 9px 0 16px; font-size: 13px; line-height: 1.65; color: var(--text2); }
.bmu-fail .bmu-run-btns .bmu-go { margin-top: 0; }
.bmu-fail .bmu-run-btns .bmu-ghost { border-color: rgba(240, 180, 90, 0.3); color: #8a6a48; }

/* ---------------- 歌词卡 ---------------- */
.bmu-lycard { margin-top: 13px; padding: 15px 15px 14px; background: var(--card); border-radius: 18px; box-shadow: 0 2px 10px rgba(58, 42, 30, 0.05); }
.bmu-lycard-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bmu-lycard-hd b { font-size: 15.5px; font-weight: 700; color: var(--text); }
.bmu-lycard-bd {
  margin: 11px 0 0; padding: 0; max-height: 300px; overflow-y: auto; white-space: pre-wrap;
  font-family: inherit; font-size: 13.5px; line-height: 1.85; color: #5b4a3a;
}
.bmu-lycard-ft { margin-top: 13px; }
.bmu-lycard-ft .bmu-act { display: block; width: 100%; }
.bmu-mini {
  padding: 6px 11px; border-radius: 10px; font-family: inherit;
  border: 1px solid rgba(240, 180, 90, 0.3); background: transparent;
  color: #8a6a48; font-size: 12px; cursor: pointer;
}

/* ---------------- 声音克隆 ---------------- */
.bmu-voice { margin-top: 10px; padding: 15px; background: var(--card); border-radius: 18px; box-shadow: 0 2px 10px rgba(58, 42, 30, 0.05); }
.bmu-voice > b { font-size: 14.5px; font-weight: 700; color: var(--text); }
.bmu-voice-tip { margin-top: 6px; font-size: 12px; line-height: 1.65; color: var(--text2); }
.bmu-voice-has { margin-top: 9px; font-size: 13px; color: #5b4a3a; display: flex; align-items: center; gap: 8px; }
.bmu-voice-rec { display: flex; gap: 8px; margin-top: 11px; }
.bmu-voice-rec .bmu-act { flex: 1 1 0; min-width: 0; }
.bmu-voice-st { margin-top: 9px; font-size: 12px; color: #E07A1F; }
.bmu-finput { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------- 上传文件卡片 ---------------- */
.bmu-drop {
  display: block; padding: 22px 14px; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(240, 180, 90, 0.42); border-radius: 16px;
  background: rgba(255, 248, 240, 0.6);
}
.bmu-drop b { display: block; font-size: 14.5px; color: var(--text); }
.bmu-drop span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--text2); }
.bmu-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; background: var(--card); border-radius: 14px; }
.bmu-file b { font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmu-file span { font-size: 11.5px; color: var(--text2); flex: 0 0 auto; }

/* ---------------- 合规提示 ---------------- */
.bmu-compliance { margin: 14px 2px 0; font-size: 11px; line-height: 1.6; color: #b9a794; }

/* ---------------- Toast ---------------- */
.bmu-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 60;
  transform: translateX(-50%) translateY(8px);
  max-width: 76vw; padding: 11px 17px; border-radius: 14px;
  background: rgba(26, 20, 16, 0.94); color: #F5E6D3;
  font-size: 13px; line-height: 1.5; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.bmu-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 平板 / 桌面 ---------------- */
@media (min-width: 768px) {
  .bmu-wrap > * { max-width: 720px; margin-left: auto; margin-right: auto; }
  .bmu-hero { max-width: none; margin-left: -15px; margin-right: -15px; }
  .bmu-hero > * { max-width: 720px; margin-left: auto; margin-right: auto; }
  .bmu-scenes { grid-template-columns: repeat(3, 1fr); }
  .bmu-act { flex: 1 1 0; }
}

/* ============================================================================
 * v2（2026-09-18 下午）新增：封面 / 我的作品 / 复制兜底框
 * 用户反馈三件事 → 三块样式：① 封面看不到（页面上要有封面）② 一返回歌没了（作品列表）
 * ③ 复制链接粘出来是别的东西（复制失败要给可长按的兜底框）
 * ========================================================================== */

/* ---------------- ① 封面（成品页第一屏） ---------------- */
.bmu-cover-outer { margin-bottom: 13px; }
.bmu-cover {
  position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 62vh;
  overflow: hidden; border-radius: 20px; background: #1A1410;
  box-shadow: 0 10px 30px rgba(26, 20, 16, 0.18);
}
.bmu-cover.has { background: #120E0B; }
.bmu-cover-img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.bmu-cover-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 9px; padding: 24px;
  background: radial-gradient(circle at 50% 40%, rgba(249, 89, 1, 0.28) 0%, rgba(249, 89, 1, 0) 62%),
              linear-gradient(160deg, #241A12 0%, #14100C 100%);
}
.bmu-cover-ph i {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid rgba(240, 180, 90, 0.28); border-top-color: #F0B45A;
  animation: bmu-spin 0.9s linear infinite;
}
@keyframes bmu-spin { to { transform: rotate(360deg); } }
.bmu-cover-ph b { font-size: 14px; font-weight: 700; color: #F5E6D3; }
.bmu-cover-ph em { font-style: normal; font-size: 11.5px; color: rgba(255, 214, 170, 0.6); text-align: center; }
.bmu-cover-acts { display: flex; gap: 8px; margin-top: 9px; }
.bmu-cover-acts .bmu-act { flex: 1 1 0; min-width: 0; }

/* ---------------- ② 我的作品（横向缩略图条 · 永远可见）----------------
   用户第一版问"我的作品在哪呢，没看到" → 位置提到 Tab 之上 + 空态也要显示，
   不能再"没作品就整块隐藏"（那看起来像功能没做）。 */
.bmu-hist {
  margin: 0 0 14px; padding: 12px 12px 10px; background: var(--card);
  border-radius: 18px; box-shadow: 0 2px 10px rgba(58, 42, 30, 0.05);
}
.bmu-hist-hd { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 9px; }
.bmu-hist-hd b { font-size: 14.5px; font-weight: 700; color: var(--text); }
.bmu-hist-hd em { font-style: normal; font-size: 11.5px; color: var(--text2); }
.bmu-hist-row {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 3px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.bmu-hist-row::-webkit-scrollbar { display: none; }
.bmu-hist-item { flex: 0 0 86px; width: 86px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bmu-hist-item:active { opacity: 0.68; }
.bmu-hist-cover {
  width: 86px; height: 86px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #2A1D14, #171210);
  display: flex; align-items: center; justify-content: center;
}
.bmu-hist-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bmu-hist-cover span { font-size: 26px; opacity: 0.85; }
.bmu-hist-item > b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 6px; font-size: 12px; font-weight: 700; line-height: 1.35; color: var(--text);
}
.bmu-hist-item > span {
  display: block; margin-top: 2px; font-size: 10.5px; color: var(--text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bmu-hist--empty { display: flex; flex-direction: column; gap: 5px; padding: 13px 14px; }
.bmu-hist--empty b { font-size: 14px; font-weight: 700; color: var(--text); }
.bmu-hist--empty span { font-size: 12px; line-height: 1.65; color: var(--text2); }

/* ---------------- ③ 复制兜底框（复制失败时给可长按的内容） ---------------- */
.bmu-copymask {
  position: fixed; inset: 0; z-index: 61; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(12, 9, 7, 0.62);
}
.bmu-copymask.on { display: flex; }
.bmu-copybox {
  width: 100%; max-width: 360px; padding: 18px 16px 14px; border-radius: 18px;
  background: #221913; border: 1px solid rgba(240, 180, 90, 0.28);
}
.bmu-copybox b { display: block; margin-bottom: 10px; font-size: 14px; color: #F5E6D3; }
.bmu-copybox textarea {
  display: block; width: 100%; padding: 11px 12px; border-radius: 12px;
  border: 1px solid rgba(240, 180, 90, 0.24); background: rgba(0, 0, 0, 0.34);
  color: #F3D3A2; font-family: inherit; font-size: 12.5px; line-height: 1.6; resize: none;
}
.bmu-copybtns { display: flex; gap: 8px; margin-top: 11px; }
.bmu-copybtns .bmu-act { flex: 1 1 0; min-width: 0; }
