/* =============================================================================
 * styles-music-mv.css —— 音乐MV 智能体模块样式（高保真复刻参考站）
 * 挂载点：#view.mm-view 内的 .mm-page / .mm-studio，以及 body 下的 .mm-overlay-host
 * 设计要点：深色卡片、粉色渐变主按钮、橙色教程标签、粉色步骤胶囊、竖屏镜头条
 * ========================================================================== */

.mm-view {
  --mm-bg: #0f1115;
  --mm-card: #171a21;
  --mm-card-2: #1c2029;
  --mm-line: rgba(255, 255, 255, .09);
  --mm-ink: #f4f5f7;
  --mm-sub: #a8adb8;
  --mm-pink: #ff4d8d;
  --mm-pink-2: #ff7ab8;
  --mm-purple: #8b5cf6;
  --mm-warm: #f5a623;
  background: var(--mm-bg);
}

/* ---------- 页面容器 ---------- */
.mm-page { max-width: 1240px; margin: 0 auto; padding: 22px 26px 60px; }

/* ---------- Hero ---------- */
.mm-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--mm-line);
  display: flex;
  align-items: center;
}
/* 图层1：舞台背景（铺满，偏右裁切） */
.mm-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 62%; z-index: 0; }
/* 图层2：黑胶唱片（右侧大圆，半透明融入背景） */
.mm-hero-disc { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 340px; height: 340px; object-fit: fill; opacity: .55; z-index: 1; pointer-events: none; }
.mm-hero-shade {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(9,10,14,.97) 0%, rgba(9,10,14,.92) 30%, rgba(9,10,14,.45) 60%, rgba(9,10,14,.05) 100%);
}
.mm-hero-left { position: relative; z-index: 5; padding: 34px 0 34px 34px; max-width: 56%; }
.mm-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,77,141,.12);
  border: 1px solid rgba(255,77,141,.42);
  color: var(--mm-pink-2); font-size: 12px; letter-spacing: .5px;
}
.mm-hero-title { margin: 16px 0 12px; font-size: 40px; line-height: 1.2; font-weight: 700; color: #fff; letter-spacing: 1px; }
.mm-hero-desc { margin: 0 0 22px; font-size: 14px; line-height: 1.85; color: #c9cdd6; max-width: 520px; }
.mm-hero-btns { display: flex; gap: 12px; margin-bottom: 20px; }
.mm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
  font-family: inherit;
}
.mm-btn:disabled { opacity: .45; cursor: not-allowed; }
.mm-btn-primary { background: linear-gradient(135deg, #ff5c9a, #a855f7); color: #fff; box-shadow: 0 6px 18px rgba(255,77,141,.3); }
.mm-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mm-btn-ghost { background: rgba(255,255,255,.07); color: #e8eaf0; border-color: rgba(255,255,255,.18); }
.mm-btn-ghost:hover { background: rgba(255,255,255,.13); }
.mm-btn-warm { background: linear-gradient(135deg, #f7b733, #f0803c); color: #2b1a05; }
.mm-btn-warm:hover { filter: brightness(1.06); }
.mm-btn-outline-warm { background: rgba(245,166,35,.08); color: #f7b733; border-color: rgba(245,166,35,.5); }
.mm-btn-outline-warm:hover { background: rgba(245,166,35,.16); }
.mm-btn-plain { background: transparent; color: var(--mm-sub); border-color: var(--mm-line); }
.mm-btn-plain:hover { color: #fff; background: rgba(255,255,255,.05); }
.mm-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-step-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #d7dae2; font-size: 12px;
}
.mm-step-pill i {
  width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff5c9a, #a855f7); color: #fff; font-size: 11px; font-style: normal; font-weight: 700;
}
/* 图层3：人物 */
.mm-hero-ren { position: absolute; right: 12%; bottom: 0; height: 100%; width: auto; object-fit: fill; z-index: 3; pointer-events: none; }
/* 图层4：三张竖屏卡片 */
.mm-hero-card { position: absolute; z-index: 4; border-radius: 8px; overflow: hidden; border: 2px solid rgba(255,255,255,.28); box-shadow: 0 8px 24px rgba(0,0,0,.5); transform: rotate(4deg); }
.mm-hero-card:nth-of-type(even) { transform: rotate(-5deg); }
.mm-hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-hero-card-no { position: absolute; left: 6px; bottom: 5px; font-size: 10px; color: #fff; background: rgba(0,0,0,.5); padding: 1px 5px; border-radius: 4px; }
.mm-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 38px; display: flex; align-items: flex-end; gap: 2px; padding: 0 6px; z-index: 6; opacity: .8; pointer-events: none; }
.mm-wave i { flex: 1; max-width: 6px; background: linear-gradient(180deg, var(--mm-pink), var(--mm-purple)); border-radius: 2px 2px 0 0; animation: mmWave 2.2s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes mmWave { from { transform: scaleY(.5); } to { transform: scaleY(1.1); } }

/* ---------- 实战教程卡 ---------- */
.mm-tut-card {
  margin-top: 18px; border-radius: 16px; padding: 16px;
  background: linear-gradient(135deg, #1a1d25, #151821);
  border: 1px solid rgba(245,166,35,.28);
  box-shadow: 0 0 0 1px rgba(245,166,35,.06) inset;
  display: grid; grid-template-columns: 190px 1fr 210px; gap: 18px; align-items: center;
}
.mm-tut-thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; background: #000; }
.mm-tut-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-tut-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.42); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .2s;
}
.mm-tut-play:hover { background: var(--mm-pink); transform: translate(-50%,-50%) scale(1.08); }
.mm-tut-label {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(245,166,35,.14); border: 1px solid rgba(245,166,35,.45);
  color: var(--mm-warm); font-size: 11px; margin-bottom: 10px;
}
.mm-tut-title { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: #fff; }
.mm-tut-desc { margin: 0 0 12px; font-size: 12.5px; line-height: 1.7; color: var(--mm-sub); }
.mm-stats { display: flex; gap: 26px; margin-bottom: 12px; }
.mm-stat { display: flex; flex-direction: column; }
.mm-stat b { font-size: 22px; color: var(--mm-pink-2); line-height: 1.1; }
.mm-stat small { font-size: 11px; color: var(--mm-sub); margin-top: 2px; }
.mm-mini-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mm-mini-steps span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #c7cad3; }
.mm-mini-steps i { width: 16px; height: 16px; border-radius: 50%; background: rgba(245,166,35,.18); color: var(--mm-warm); font-style: normal; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.mm-tut-btns { display: flex; gap: 10px; }
.mm-tut-btns .mm-btn { padding: 8px 16px; font-size: 13px; }
.mm-tut-strip { display: flex; gap: 6px; justify-content: flex-end; }
.mm-tut-strip img { width: 46px; height: 82px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(255,255,255,.12); }

/* ---------- 能力介绍三块 ---------- */
.mm-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.mm-cap {
  position: relative; border-radius: 16px; overflow: hidden; min-height: 230px;
  border: 1px solid var(--mm-line); background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.mm-cap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,10,14,.2) 0%, rgba(9,10,14,.88) 70%); }
.mm-cap-idx { position: absolute; top: 16px; left: 18px; z-index: 2; font-size: 13px; color: var(--mm-pink-2); font-weight: 700; letter-spacing: 2px; }
.mm-cap-body { position: relative; z-index: 2; padding: 20px; }
.mm-cap-body h3 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.mm-cap-body p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.7; color: #c9cdd6; }
.mm-cap-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mm-cap-tags span { padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); color: #d7dae2; font-size: 11px; }

/* ---------- 底部小助手 ---------- */
.mm-dock-tip { position: fixed; left: 18px; bottom: 18px; z-index: 60; display: flex; align-items: flex-end; gap: 8px; pointer-events: none; }
.mm-dock-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #ff5c9a, #8b5cf6); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.mm-dock-bubble { pointer-events: auto; max-width: 260px; padding: 10px 12px; border-radius: 12px 12px 12px 2px; background: #fff; color: #222; font-size: 12px; line-height: 1.6; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.mm-dock-link { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--mm-pink); font-size: 12px; font-weight: 600; cursor: pointer; }

/* ==========================================================================
 * 弹窗（新建 MV / 实战教程）
 * ======================================================================== */
.mm-overlay-host { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.mm-mask { position: absolute; inset: 0; pointer-events: auto; background: rgba(6,7,10,.7); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.mm-dialog { width: 100%; max-width: 760px; max-height: 90vh; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; color: #1c1f26 !important; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
/* 全局深色主题会给 span/small 等注入浅色，这里逐项拉回深色弹窗需要的配色 */
.mm-dialog .mm-f-label, .mm-dialog .mm-upload-t, .mm-dialog .mm-ratio b, .mm-dialog .mm-rhythm b,
.mm-dialog .mm-singer small, .mm-dialog .mm-tut-data span, .mm-dialog .mm-tut-shot p,
.mm-dialog .mm-model-val, .mm-dialog .mm-tut-h4, .mm-dialog .mm-bible-attr span { color: #333842 !important; }
.mm-dialog small, .mm-dialog .mm-hint, .mm-dialog .mm-counter, .mm-dialog .mm-upload-s,
.mm-dialog .mm-estimate, .mm-dialog .mm-tut-footnote, .mm-dialog .mm-ratio small,
.mm-dialog .mm-rhythm small, .mm-dialog .mm-tut-data small, .mm-dialog .mm-tut-lead,
.mm-dialog .mm-tut-bible > p, .mm-dialog .mm-bible-attr small { color: #8a8f99 !important; }
.mm-dialog .mm-btn-primary, .mm-dialog .mm-btn-warm { color: #fff !important; }
.mm-dialog .mm-btn-warm { color: #2b1a05 !important; }
.mm-dialog .mm-btn-plain, .mm-dialog .mm-btn-ghost { color: #5f646e !important; }
.mm-dialog .mm-dlg-head p { color: #8a8f99 !important; }
.mm-dialog-tutorial { max-width: 960px; }
.mm-dlg-head { position: relative; padding: 20px 26px 16px; border-bottom: 1px solid #eceef2; flex: none; }
/* 覆盖站点全局 html[data-theme="dark"] h3/h4 { color:#fafafa !important } —— 必须用同等特异度 */
html[data-theme] .mm-dialog h3,
html[data-theme] .mm-dialog h4,
html[data-theme] .mm-dialog .mm-tut-h4,
html[data-theme] .mm-dialog .mm-tut-h4 span { color: #1c1f26 !important; }
.mm-dlg-head h3 { margin: 0 0 5px; font-size: 19px; font-weight: 700; }
.mm-dlg-head p { margin: 0; font-size: 12.5px; color: #8a8f99 !important; }
/* 弹窗滚动条美化 */
.mm-dlg-body::-webkit-scrollbar, .mm-tut-content::-webkit-scrollbar, .mm-tut-side::-webkit-scrollbar { width: 8px; height: 8px; }
.mm-dlg-body::-webkit-scrollbar-thumb, .mm-tut-content::-webkit-scrollbar-thumb, .mm-tut-side::-webkit-scrollbar-thumb { background: #d5d9e0; border-radius: 4px; }
.mm-dlg-body::-webkit-scrollbar-track, .mm-tut-content::-webkit-scrollbar-track, .mm-tut-side::-webkit-scrollbar-track { background: transparent; }
.mm-x { position: absolute; right: 18px; top: 18px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f2f3f6; color: #666; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mm-x:hover { background: #e6e8ed; }
.mm-dlg-body { padding: 18px 26px; overflow-y: auto; flex: 1; }
.mm-f-label { font-size: 13px; font-weight: 600; color: #333842; margin: 14px 0 8px; }
.mm-f-label:first-child { margin-top: 0; }
.mm-f-label-row { display: flex; align-items: center; justify-content: space-between; }
.mm-song-tabs { display: inline-flex; gap: 6px; padding: 3px; background: #f4f5f8; border-radius: 9px; margin-bottom: 10px; }
.mm-song-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 7px; background: transparent; color: #6a6f79; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.mm-song-tab.active { background: #fff; color: var(--mm-pink); box-shadow: 0 1px 4px rgba(0,0,0,.08); font-weight: 600; }
.mm-upload-box { border: 1.5px dashed #d8dbe3; border-radius: 12px; background: linear-gradient(135deg, #fdf2f7, #f4f1fd); padding: 22px; text-align: center; cursor: pointer; transition: .2s; }
.mm-upload-box:hover, .mm-upload-box.has-file { border-color: var(--mm-pink); background: linear-gradient(135deg, #fce7f0, #f0eafd); }
.mm-upload-ic { color: var(--mm-pink); margin-bottom: 6px; }
.mm-upload-t { font-size: 13.5px; font-weight: 600; color: #333842; }
.mm-upload-s { font-size: 11.5px; color: #9297a1; margin-top: 4px; }
.mm-gen-songs { display: flex; flex-direction: column; gap: 6px; }
.mm-gen-song { text-align: left; padding: 10px 14px; border: 1px solid #e6e8ed; border-radius: 9px; background: #fafbfc; color: #444; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.mm-gen-song.active { border-color: var(--mm-pink); color: var(--mm-pink); background: #fdf2f7; }
.mm-lyric-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mm-lyric-import { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #e2e5ea; border-radius: 7px; background: #fff; color: #555b66; font-size: 12px; cursor: pointer; font-family: inherit; }
.mm-counter { font-size: 11.5px; color: #a0a5ae; }
.mm-textarea { width: 100%; min-height: 120px; resize: vertical; padding: 12px; border: 1px solid #e2e5ea; border-radius: 10px; font-size: 12.5px; line-height: 1.7; color: #333; font-family: inherit; box-sizing: border-box; }
.mm-textarea:focus, .mm-input:focus, .mm-shot-desc:focus { outline: none; border-color: var(--mm-pink); box-shadow: 0 0 0 3px rgba(255,77,141,.1); }
.mm-hint { font-size: 11.5px; color: #9a9fa9; line-height: 1.6; margin: 6px 0 0; }
.mm-hint-top { margin-top: -4px; }
.mm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mm-ratio-opts { display: flex; gap: 8px; }
.mm-ratio { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid #e4e7ec; border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; transition: .15s; }
.mm-ratio.active { border-color: var(--mm-pink); background: #fdf2f7; }
.mm-ratio b { font-size: 12.5px; color: #333842; }
.mm-ratio small { font-size: 11px; color: #9297a1; }
.mm-ratio-ic { display: block; border: 2px solid #c4c8d0; border-radius: 3px; }
.mm-ratio.active .mm-ratio-ic { border-color: var(--mm-pink); }
.mm-ratio-16-9 { width: 26px; height: 15px; }
.mm-ratio-9-16 { width: 14px; height: 24px; }
.mm-ratio-1-1 { width: 20px; height: 20px; }
.mm-rhythm-opts { display: flex; gap: 8px; }
.mm-rhythm { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border: 1px solid #e4e7ec; border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; transition: .15s; }
.mm-rhythm.active { border-color: var(--mm-pink); background: #fdf2f7; }
.mm-rhythm b { font-size: 12.5px; color: #333842; }
.mm-rhythm small { font-size: 10.5px; color: #9297a1; text-align: center; }
.mm-singers { display: flex; gap: 14px; }
.mm-singer { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.mm-singer-av { width: 54px; height: 54px; border-radius: 50%; background: #f0f1f5; color: #8a8f99; display: flex; align-items: center; justify-content: center; border: 2px dashed #d3d7df; }
.mm-singer.active .mm-singer-av { border: 2px solid var(--mm-pink); background: #fdf2f7; color: var(--mm-pink); }
.mm-singer small { font-size: 11.5px; color: #666; }
.mm-input { width: 100%; padding: 10px 12px; border: 1px solid #e2e5ea; border-radius: 9px; font-size: 12.5px; font-family: inherit; box-sizing: border-box; }
.mm-style-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.mm-style-tag { padding: 6px 13px; border: 1px solid #e4e7ec; border-radius: 999px; background: #fff; color: #666; font-size: 12px; cursor: pointer; font-family: inherit; }
.mm-style-tag.active { border-color: var(--mm-pink); background: #fdf2f7; color: var(--mm-pink); font-weight: 600; }
.mm-dlg-foot { padding: 14px 26px; border-top: 1px solid #eceef2; display: flex; align-items: center; justify-content: space-between; flex: none; background: #fbfbfc; }
.mm-estimate { font-size: 12px; color: #9297a1; }
.mm-foot-btns { display: flex; gap: 9px; }

/* ---------- 实战教程弹窗 ---------- */
.mm-tut-main { display: grid; grid-template-columns: 210px 1fr; flex: 1; min-height: 360px; overflow: hidden; }
.mm-tut-side { padding: 16px 12px; background: #f7f8fa; border-right: 1px solid #eceef2; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.mm-tut-step { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; font-family: inherit; }
.mm-tut-step > i { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #e8eaef; color: #8a8f99; display: flex; align-items: center; justify-content: center; font-size: 12px; font-style: normal; font-weight: 700; }
.mm-tut-step b { display: block; font-size: 13px; color: #444; }
.mm-tut-step small { display: block; font-size: 11px; color: #9a9fa9; margin-top: 2px; }
.mm-tut-step.active { background: #fdf2f7; border-color: rgba(255,77,141,.35); }
.mm-tut-step.active > i { background: linear-gradient(135deg, #ff5c9a, #a855f7); color: #fff; }
.mm-tut-step.active b { color: var(--mm-pink); }
.mm-tut-step.done > i { background: #e6f7ee; color: #22a06b; }
.mm-tut-content { padding: 20px 24px; overflow-y: auto; }
.mm-tut-h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 18px; color: #222; }
.mm-tut-h4 svg { color: var(--mm-pink); }
.mm-tut-lead { font-size: 12.5px; line-height: 1.8; color: #5f646e; margin: 0 0 16px; }
.mm-tut-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mm-tut-data { padding: 12px; border: 1px solid #e8eaef; border-radius: 10px; background: #fafbfc; }
.mm-tut-data small { display: block; font-size: 11px; color: #9a9fa9; margin-bottom: 5px; }
.mm-tut-data span { font-size: 12.5px; color: #333842; }
.mm-tut-note { padding: 10px 12px; border-radius: 9px; background: #eef7fb; border: 1px solid #d4e9f3; color: #3a6479; font-size: 12px; line-height: 1.7; }
.mm-tut-bible h4 { font-size: 14px; color: var(--mm-pink); line-height: 1.6; margin: 0 0 6px; }
.mm-tut-bible > p { font-size: 12.5px; color: #5f646e; line-height: 1.8; margin: 0 0 12px; }
.mm-bible-attrs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.mm-bible-attr { padding: 10px 12px; border: 1px solid #e8eaef; border-radius: 9px; background: #fafbfc; }
.mm-bible-attr small { display: block; font-size: 11px; color: #9a9fa9; margin-bottom: 4px; }
.mm-bible-attr span { font-size: 12px; color: #444; line-height: 1.6; }
.mm-bible-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-bible-tags span { padding: 4px 10px; border-radius: 999px; background: #eef7fb; border: 1px solid #d4e9f3; color: #4a8ba8; font-size: 11.5px; }
.mm-tut-timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-tut-shot { padding: 10px 12px; border: 1px solid #e8eaef; border-radius: 9px; background: #fafbfc; }
.mm-tut-shot-seg { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fdf2f7; color: var(--mm-pink); font-size: 10.5px; font-weight: 600; margin-right: 8px; }
.mm-tut-shot-time { font-size: 11px; color: #8a8f99; margin-right: 8px; }
.mm-tut-shot-cam { font-size: 11px; color: #6a6f79; }
.mm-tut-shot p { margin: 7px 0 0; font-size: 12px; line-height: 1.7; color: #444; }
.mm-tut-emphasis { padding: 10px 12px; border-radius: 9px; background: #fff7e8; border: 1px solid #f5deb0; color: #8a6320; font-size: 12.5px; line-height: 1.7; }
.mm-tut-strip-wide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.mm-tut-strip-wide img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid #e4e7ec; }
.mm-tut-footnote { font-size: 11.5px; color: #a0a5ae; }

/* ==========================================================================
 * 创建后的工作台（4 步）
 * ======================================================================== */
.mm-studio { max-width: 1180px; margin: 0 auto; padding: 20px 26px 60px; color: var(--mm-ink); }
.mm-st-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.mm-st-back { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--mm-line); border-radius: 8px; background: transparent; color: var(--mm-sub); font-size: 12.5px; cursor: pointer; font-family: inherit; }
.mm-st-back:hover { color: #fff; background: rgba(255,255,255,.05); }
.mm-st-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.mm-st-title svg { color: var(--mm-pink); }
.mm-st-meta { margin-left: auto; font-size: 11.5px; color: var(--mm-sub); }
.mm-st-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.mm-st-nav-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--mm-line); border-radius: 12px; background: var(--mm-card); cursor: pointer; text-align: left; font-family: inherit; transition: .18s; }
.mm-st-nav-item:hover { border-color: rgba(255,77,141,.4); }
.mm-st-nav-item.active { border-color: var(--mm-pink); background: linear-gradient(135deg, rgba(255,77,141,.14), rgba(139,92,246,.1)); }
.mm-st-nav-num { width: 26px; height: 26px; flex: none; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--mm-sub); display: flex; align-items: center; justify-content: center; font-size: 12px; font-style: normal; font-weight: 700; }
.mm-st-nav-item.active .mm-st-nav-num { background: linear-gradient(135deg, #ff5c9a, #a855f7); color: #fff; }
.mm-st-nav-item.done .mm-st-nav-num { background: #22a06b; color: #fff; }
.mm-st-nav-txt b { display: block; font-size: 13px; color: var(--mm-ink); }
.mm-st-nav-txt small { display: block; font-size: 11px; color: var(--mm-sub); margin-top: 2px; }
.mm-st-content { min-height: 420px; }
.mm-st-card { background: var(--mm-card); border: 1px solid var(--mm-line); border-radius: 16px; padding: 24px; }
.mm-st-h2 { margin: 0 0 8px; font-size: 22px; }
.mm-st-lead { margin: 0 0 18px; font-size: 13px; line-height: 1.8; color: var(--mm-sub); }
/* AI 解析 / 分镜控制条 */
.mm-ai-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border: 1px solid rgba(139,92,246,.28); border-radius: 12px; background: linear-gradient(100deg, rgba(139,92,246,.1), rgba(255,77,141,.06)); }
.mm-ai-bar-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #b79cff; }
.mm-ai-msel { width: 210px; max-width: 100%; }
.mm-ai-go { padding: 7px 14px; font-size: 12.5px; }
.mm-ai-bar-tip { margin-left: auto; font-size: 11px; color: var(--mm-sub); }
.mm-ai-source { display: inline-flex; align-items: center; margin: -8px 0 14px; padding: 3px 10px; border-radius: 999px; background: rgba(139,92,246,.16); color: #c4aeff; font-size: 11px; }
.mm-st-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--mm-line); }
.mm-bible { padding: 20px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,77,141,.08), rgba(139,92,246,.06)); border: 1px solid rgba(255,77,141,.2); }
.mm-bible-title { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: #ffb3d1; }
.mm-bible-desc { margin: 0 0 16px; font-size: 13px; line-height: 1.8; color: #d2d5de; }
.mm-bible .mm-bible-attr { background: rgba(255,255,255,.04); border-color: var(--mm-line); }
.mm-bible .mm-bible-attr small { color: var(--mm-sub); }
.mm-bible .mm-bible-attr span { color: #e4e6ec; }
.mm-bible .mm-bible-tags span { background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.3); color: #c4b5fd; }
.mm-timeline { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding-right: 6px; }
.mm-shot { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--mm-line); }
.mm-shot-img { position: relative; border-radius: 8px; background-size: cover; background-position: center; min-height: 130px; }
.mm-shot-no { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; }
.mm-shot-info { min-width: 0; }
.mm-shot-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mm-shot-seg { padding: 3px 9px; border-radius: 999px; background: rgba(255,77,141,.16); color: var(--mm-pink-2); font-size: 11px; }
.mm-shot-time { font-size: 11.5px; color: var(--mm-sub); }
.mm-shot-cam { font-size: 11.5px; color: #9d85f0; }
.mm-shot-desc { width: 100%; min-height: 58px; resize: vertical; padding: 8px 10px; border: 1px solid var(--mm-line); border-radius: 8px; background: rgba(255,255,255,.03); color: #d8dbe3; font-size: 12px; line-height: 1.6; font-family: inherit; box-sizing: border-box; }
.mm-shot-edit { display: flex; gap: 8px; margin-top: 7px; }
.mm-mini-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--mm-line); border-radius: 7px; background: transparent; color: var(--mm-sub); font-size: 11px; cursor: pointer; font-family: inherit; }
.mm-mini-btn:hover { color: #fff; border-color: var(--mm-pink); }
.mm-model-bar { display: flex; gap: 12px; margin-bottom: 14px; }
.mm-model-cell { flex: 1; padding: 12px 14px; border: 1px solid var(--mm-line); border-radius: 10px; background: rgba(255,255,255,.03); }
.mm-model-cell small { display: block; font-size: 11px; color: var(--mm-sub); margin-bottom: 5px; }
.mm-model-val { font-size: 13px; color: #e4e6ec; }
/* 首帧 / 视频模型下拉：自定义胶囊，风格与页面其他胶囊一致（圆角 999px + 粉色高亮） */
.mm-msel { position: relative; }
.mm-msel-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; box-sizing: border-box; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #e4e6ec; font-size: 12.5px; line-height: 1.4; cursor: pointer; font-family: inherit; text-align: left; transition: border-color .15s, background .15s; }
.mm-msel-btn:hover, .mm-msel.open .mm-msel-btn { border-color: var(--mm-pink); background: rgba(255,77,141,.1); }
.mm-msel.disabled .mm-msel-btn { opacity: .55; cursor: not-allowed; }
.mm-msel-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-msel-caret { display: inline-flex; flex: 0 0 14px; color: var(--mm-sub); transition: transform .15s; }
.mm-msel-caret svg { display: block; transform: rotate(90deg); }
.mm-msel.open .mm-msel-caret { transform: rotate(180deg); }
.mm-msel-menu { display: none; position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; overflow-y: auto; padding: 6px; border: 1px solid var(--mm-line); border-radius: 12px; background: #1b1e26; box-shadow: 0 18px 44px rgba(0,0,0,.6); overscroll-behavior: contain; }
.mm-msel.open .mm-msel-menu { display: block; }
.mm-msel-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; box-sizing: border-box; padding: 7px 11px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #d7dae2; font-size: 12px; line-height: 1.4; text-align: left; cursor: pointer; font-family: inherit; transition: background .14s, color .14s, border-color .14s; }
.mm-msel-opt:hover { background: rgba(255,255,255,.07); color: #fff; }
.mm-msel-opt.on { background: rgba(255,77,141,.16); border-color: rgba(255,77,141,.4); color: var(--mm-pink-2); font-weight: 600; }
.mm-msel-opt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-msel-opt-price { flex: 0 0 auto; font-size: 10.5px; color: var(--mm-sub); }
.mm-msel-opt.on .mm-msel-opt-price { color: var(--mm-pink-2); }
.mm-model-note { margin-top: 6px; font-size: 11px; line-height: 1.5; color: var(--mm-sub); min-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 16px; }
.mm-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff5c9a, #8b5cf6); transition: width .15s; }
.mm-frames-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mm-frame { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 9/13; background: #000; border: 1px solid var(--mm-line); }
.mm-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mm-frame.ready img { opacity: 1; }
.mm-frame-no { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; }
.mm-frame-tag { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255,77,141,.85); color: #fff; font-size: 10px; }
.mm-frame-tag-busy { background: rgba(139,92,246,.9); }
.mm-frame-tag-err { background: rgba(220,53,69,.9); max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-frame-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255,77,141,.9); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.mm-frame:hover .mm-frame-play { opacity: 1; }
.mm-final-preview { position: relative; border-radius: 14px; overflow: hidden; min-height: 340px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.mm-final-preview::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.mm-final-play { position: relative; z-index: 2; width: 68px; height: 68px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.4); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mm-final-play:hover { background: var(--mm-pink); }
.mm-final-meta { position: absolute; z-index: 2; left: 18px; bottom: 16px; }
.mm-final-meta b { display: block; font-size: 16px; color: #fff; }
.mm-final-meta span { font-size: 12px; color: #d2d5de; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .mm-tut-card { grid-template-columns: 1fr; }
  .mm-tut-strip { justify-content: flex-start; }
  .mm-caps { grid-template-columns: 1fr; }
  .mm-hero-left { max-width: 75%; }
  .mm-st-nav { grid-template-columns: repeat(2, 1fr); }
  .mm-frames-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .mm-page, .mm-studio { padding: 14px 12px 40px; }
  .mm-hero { min-height: 300px; }
  .mm-hero-left { max-width: 100%; padding: 24px 18px; }
  .mm-hero-title { font-size: 30px; }
  .mm-hero-right { opacity: .35; width: 100%; }
  .mm-stats { gap: 14px; }
  .mm-grid2 { grid-template-columns: 1fr; }
  .mm-tut-main { grid-template-columns: 1fr; }
  .mm-tut-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #eceef2; }
  .mm-tut-step { flex: none; }
  .mm-tut-cards, .mm-tut-timeline, .mm-bible-attrs { grid-template-columns: 1fr; }
  .mm-st-nav { grid-template-columns: 1fr 1fr; }
}

/* ===== 20261123lrc1: 导入歌词文件（真实读取 .lrc/.txt/.srt）===== */
.mm-lyric-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mm-lyric-file {
  font-size: 11.5px; color: #6b7280; max-width: 300px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mm-lyric-import:hover { border-color: var(--mm-pink); color: var(--mm-pink); }
.mm-textarea.is-drag { border-color: var(--mm-pink); box-shadow: 0 0 0 3px rgba(255,77,141,.12); background: rgba(255,77,141,.04); }

/* ===== 20261123lrc2: 深色主题下弹窗输入控件的可读性 =====
   「新建 MV」弹窗是固定白卡，但站点 dark 主题的
   `html[data-theme="dark"] textarea { background:rgba(255,255,255,.05) !important; color:#fafafa !important }`
   会把歌词框、风格偏好框刷成「透明底 + 近白字」——白底白字，输入/导入的歌词完全看不见。
   这里把弹窗内的输入控件统一拉回浅色皮肤（工作台 .mm-studio 是深色皮肤，不受影响）。 */
html[data-theme] .mm-dialog .mm-textarea,
html[data-theme] .mm-dialog .mm-input,
html[data-theme] .mm-dialog textarea,
html[data-theme] .mm-dialog input[type="text"],
html[data-theme] .mm-dialog input[type="search"],
html[data-theme] .mm-dialog select {
  background: #fff !important;
  color: #26272b !important;
  border: 1px solid #e2e5ea !important;
  box-shadow: none !important;
}
html[data-theme] .mm-dialog .mm-textarea:focus,
html[data-theme] .mm-dialog .mm-input:focus,
html[data-theme] .mm-dialog textarea:focus,
html[data-theme] .mm-dialog input[type="text"]:focus {
  border-color: var(--mm-pink) !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 141, .12) !important;
}
html[data-theme] .mm-dialog .mm-textarea::placeholder,
html[data-theme] .mm-dialog .mm-input::placeholder,
html[data-theme] .mm-dialog textarea::placeholder,
html[data-theme] .mm-dialog input::placeholder {
  color: #a3a8b2 !important;
}

/* ===== 20261123mm3: 解析页新增「意象词 / 段落结构」区块 ===== */
.mm-bible-block { margin-top: 16px; }
.mm-bible-block-t { display: block; font-size: 11.5px; color: var(--mm-sub); margin-bottom: 8px; letter-spacing: .3px; }
.mm-bible-kw { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-bible-kw-item {
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px;
  border: 1px solid rgba(255, 77, 141, .35); background: rgba(255, 77, 141, .12); color: #ffd0e2;
}
.mm-bible-segs { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.mm-bible-seg {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px;
  border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
}
.mm-bible-seg b { font-size: 12px; color: var(--mm-ink); }
.mm-bible-seg span { font-size: 11px; color: var(--mm-sub); font-variant-numeric: tabular-nums; }
.mm-bible-seg small { font-size: 10.5px; color: #8b90a0; }

/* ===== 20261123mm12: 出镜歌手 —— 数字人创建 / 选中 / 删除 ===== */
.mm-singers { flex-wrap: wrap; align-items: flex-start; }
.mm-singer { position: relative; }
.mm-singer-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.mm-singer-add .mm-singer-av { background: #f7f8fa; }
.mm-singer-del {
  position: absolute; top: -3px; right: -3px; width: 17px; height: 17px; border-radius: 50%;
  background: #e6e8ee; color: #6b7280; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, background .15s; cursor: pointer;
}
.mm-singer:hover .mm-singer-del { opacity: 1; }
.mm-singer-del:hover { background: var(--mm-pink); color: #fff; }
.mm-singer-create { display: none; margin-top: 14px; padding: 12px; border: 1px solid #eceef2; border-radius: 12px; background: #fbfbfc; }
.mm-singer-create.is-open { display: block; }
.mm-singer-create .mm-singer-name { margin-bottom: 10px; }
.mm-singer-up {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; box-sizing: border-box;
  border: 1px dashed #d3d7df; border-radius: 10px; background: #fff; color: #5f646e;
  font-size: 12px; font-family: inherit; cursor: pointer; text-align: left;
}
.mm-singer-up:hover { border-color: var(--mm-pink); color: var(--mm-pink); }
.mm-singer-up img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; display: block; }
.mm-singer-up-ic { display: flex; color: inherit; }
.mm-singer-create-btns { display: flex; justify-content: flex-end; gap: 9px; margin-top: 11px; }
/* 白卡弹窗内别被深色主题的 button / input 规则带偏 */
html[data-theme] .mm-dialog .mm-singer-up { background: #fff !important; color: #5f646e !important; border: 1px dashed #d3d7df !important; }
html[data-theme] .mm-dialog .mm-singer-up:hover { color: var(--mm-pink) !important; border-color: var(--mm-pink) !important; }
html[data-theme] .mm-dialog .mm-singer-create { background: #fbfbfc !important; border-color: #eceef2 !important; }
html[data-theme] .mm-dialog .mm-singer-del { color: #6b7280 !important; background: #e6e8ee !important; }
html[data-theme] .mm-dialog .mm-singer-del:hover { color: #fff !important; background: var(--mm-pink) !important; }

/* 选中态更明确：名字变粉加粗 + 头像外圈光晕 */
.mm-singer.active small { color: var(--mm-pink); font-weight: 600; }
.mm-singer.active .mm-singer-av { box-shadow: 0 0 0 3px rgba(255, 77, 141, .16); }
.mm-singer-del { opacity: .5; }
.mm-singer:hover .mm-singer-del { opacity: 1; }
html[data-theme] .mm-dialog .mm-singer.active small { color: var(--mm-pink) !important; }

/* 创建面板：名字 + 创建按钮一行，形象照 + 取消一行 */
.mm-singer-create-top { display: flex; gap: 8px; align-items: center; margin-bottom: 9px; }
.mm-singer-create-top .mm-singer-name { flex: 1; margin-bottom: 0; }
.mm-singer-ok { flex: none; white-space: nowrap; padding: 0 15px; height: 38px; }
.mm-singer-create-row { display: flex; gap: 9px; align-items: center; }
.mm-singer-create-row .mm-singer-up { flex: 1; }
.mm-singer-cancel { flex: none; background: none; border: 0; color: #8a8f99; font-size: 12px; font-family: inherit; cursor: pointer; padding: 6px 4px; }
.mm-singer-cancel:hover { color: #5f646e; }
html[data-theme] .mm-dialog .mm-singer-cancel { background: none !important; border: 0 !important; color: #8a8f99 !important; }
html[data-theme] .mm-dialog .mm-singer-cancel:hover { color: #5f646e !important; }

/* 聚焦时去掉浏览器默认 outline，只保留主题的粉色描边 */
.mm-singer-name:focus { outline: none; }
/* 窄屏：名字独占一行，创建按钮拉满，避免和输入框挤在一起 */
@media (max-width: 560px) {
  .mm-singer-create-top { flex-wrap: wrap; }
  .mm-singer-create-top .mm-singer-name { flex: 1 1 100%; margin-bottom: 8px; }
  .mm-singer-ok { width: 100%; }
}

/* 选中态名字变粉：弹窗里有 .mm-dialog .mm-singer small{color:...!important}，必须同等特异度 + !important */
.mm-dialog .mm-singer.active small,
html[data-theme] .mm-dialog .mm-singer.active small { color: var(--mm-pink) !important; font-weight: 600 !important; }

/* 弹窗挂在 body 的 .mm-overlay-host 下，取不到 .mm-view 上的设计变量：把强调色补到覆盖层，
   否则弹窗里所有 var(--mm-pink) 都会失效（选中态不变色、标签不变粉） */
.mm-overlay-host, .mm-dialog {
  --mm-pink: #ff4d8d;
  --mm-pink-2: #ff7ab8;
  --mm-purple: #8b5cf6;
  --mm-warm: #f5a623;
}
