/* ============================================================================
   「AI 混剪」样式（2026-10-12 新增）
   🔴 作用域：所有类名以 mx- 开头 + 挂在 #sub-mixcut 下（项目铁律：新类名必须全局唯一，
      裸类名会跨功能吃样式）。浮层挂在 document.body 上，类名同样带 mx- 前缀。
   设计定位：**剪辑工坊**——深石板蓝 + 香槟金点缀，比暖金色系的音乐板块更冷静专业。
   ========================================================================== */

#sub-mixcut .mx-root { padding: 0 0 24px; }

/* ---- 顶部横幅 ---- */
#sub-mixcut .mx-hero {
  position: relative; overflow: hidden; border-radius: 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, #3d5468 0%, #1e2d3d 100%);
  padding: 18px 16px 16px; color: #fff;
}
#sub-mixcut .mx-hero::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(201, 162, 39, 0.16);
}
#sub-mixcut .mx-hero-t { font-size: 19px; font-weight: 700; letter-spacing: 0.5px; }
#sub-mixcut .mx-hero-s { font-size: 12.5px; opacity: 0.82; margin-top: 5px; line-height: 1.6; }
#sub-mixcut .mx-hero-badges { display: flex; gap: 6px; margin-top: 11px; flex-wrap: wrap; }
#sub-mixcut .mx-hero-badges span {
  font-size: 11px; padding: 3px 9px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ---- 玩法选择（三张卡）---- */
#sub-mixcut .mx-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
#sub-mixcut .mx-mode {
  border: 1px solid rgba(30, 45, 61, 0.14); border-radius: 13px; padding: 12px 8px 11px;
  text-align: center; cursor: pointer; background: #fff; transition: border-color 0.15s, background 0.15s;
}
#sub-mixcut .mx-mode.on { border-color: #2b3a4a; background: #f2f5f8; box-shadow: inset 0 0 0 1px #2b3a4a; }
#sub-mixcut .mx-mode-i { font-size: 20px; line-height: 1; }
#sub-mixcut .mx-mode-t { font-size: 13px; font-weight: 600; color: #1e2d3d; margin-top: 7px; }
#sub-mixcut .mx-mode-s { font-size: 10.5px; color: #8b98a5; margin-top: 3px; line-height: 1.4; }

/* ---- 卡片 ---- */
#sub-mixcut .mx-card {
  border: 1px solid rgba(30, 45, 61, 0.1); border-radius: 15px; background: #fff;
  padding: 13px 13px 14px; margin-bottom: 12px;
}
#sub-mixcut .mx-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
#sub-mixcut .mx-h b { font-size: 14.5px; color: #1e2d3d; }
#sub-mixcut .mx-h span { font-size: 11.5px; color: #8b98a5; }

/* ---- 素材上传区 ---- */
#sub-mixcut .mx-drop {
  border: 1.5px dashed rgba(30, 45, 61, 0.26); border-radius: 12px; padding: 20px 12px;
  text-align: center; cursor: pointer; background: #fafbfc;
}
#sub-mixcut .mx-drop:active { background: #f2f5f8; }
#sub-mixcut .mx-drop-i { font-size: 22px; }
#sub-mixcut .mx-drop-t { font-size: 13px; color: #3d5468; font-weight: 600; margin-top: 6px; }
#sub-mixcut .mx-drop-s { font-size: 11px; color: #96a2ae; margin-top: 4px; line-height: 1.5; }

/* ---- 已选素材网格 ---- */
#sub-mixcut .mx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
#sub-mixcut .mx-thumb {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background: #eef1f4 center/cover no-repeat;
}
#sub-mixcut .mx-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
#sub-mixcut .mx-thumb-x {
  position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 13px; line-height: 20px; text-align: center;
  cursor: pointer; border: 0; padding: 0;
}
#sub-mixcut .mx-thumb-tag {
  position: absolute; left: 4px; bottom: 4px; font-size: 10px; color: #fff;
  background: rgba(0, 0, 0, 0.5); padding: 1px 6px; border-radius: 10px;
}

/* ---- 玩法专属输入 ---- */
#sub-mixcut .mx-field { margin-top: 10px; }
#sub-mixcut .mx-field label { display: block; font-size: 12px; color: #5a6a7a; margin-bottom: 5px; }
#sub-mixcut .mx-input, #sub-mixcut .mx-area {
  width: 100%; box-sizing: border-box; border: 1px solid rgba(30, 45, 61, 0.16); border-radius: 10px;
  padding: 10px 11px; font-family: inherit; font-size: 13.5px; color: #1e2d3d; background: #fff;
}
#sub-mixcut .mx-input:focus, #sub-mixcut .mx-area:focus { outline: 0; border-color: #3d5468; }
#sub-mixcut .mx-area { resize: vertical; min-height: 44px; }
#sub-mixcut .mx-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
#sub-mixcut .mx-chip {
  border: 1px solid rgba(30, 45, 61, 0.16); background: #fff; border-radius: 20px;
  padding: 6px 12px; font-size: 12.5px; color: #3d5468; cursor: pointer; font-family: inherit;
}
#sub-mixcut .mx-chip.on { background: #2b3a4a; border-color: #2b3a4a; color: #fff; }
#sub-mixcut .mx-pick {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1.5px dashed rgba(30, 45, 61, 0.26); border-radius: 12px; padding: 13px 12px;
  background: #fafbfc; cursor: pointer;
}
#sub-mixcut .mx-pick.has { border-style: solid; border-color: rgba(201, 162, 39, 0.7); background: #fffdf6; }
#sub-mixcut .mx-pick-l { min-width: 0; }
#sub-mixcut .mx-pick-t { font-size: 13px; color: #1e2d3d; font-weight: 600; }
#sub-mixcut .mx-pick-s { font-size: 11px; color: #96a2ae; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sub-mixcut .mx-pick-b {
  flex: 0 0 auto; font-size: 12.5px; padding: 7px 13px; border-radius: 9px;
  background: #2b3a4a; color: #fff; border: 0; font-family: inherit; cursor: pointer;
}

/* ---- 模板库 ----------------------------------------------------------------
   🔴 2026-10-12 老板：「一个窗口只显示上下两行，视觉不得劲，可以显示 5 行」
   ⇒ 三点改动：
   ① 行高做成**确定值**：缩略图用固定 height（不用 aspect-ratio —— 后者高度随列宽变，
      窗口就没法正好等于"5 行"）；窗口 max-height = 5 × 行高 + 4 × 间距 + 余量，
      任何屏宽下窗口里都是整齐的 5 行。
   ② 列数自适应（auto-fill）⇒ 卡片变小，5 行才装得进手机一屏。
   ③ 4 个尺寸变量集中在 #sub-mixcut 上，调档位只动这一处。 */
#sub-mixcut {
  --tpl-img: 76px;    /* 缩略图高度（竖版观感） */
  --tpl-row: 104px;   /* 单行卡片总高 = 图 76 + 名字行 25 + 边框 3 */
  --tpl-min: 62px;    /* 单卡最小宽度 ⇒ 决定一行放几张（手机 3~4 张） */
  --tpl-gap: 7px;
}
@media (min-width: 1024px) {
  #sub-mixcut { --tpl-img: 102px; --tpl-row: 130px; --tpl-min: 104px; --tpl-gap: 8px; }
}
#sub-mixcut .mx-tpls {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tpl-min), 1fr));
  gap: var(--tpl-gap);
  max-height: calc(5 * var(--tpl-row) + 4 * var(--tpl-gap) + 6px);
  overflow-y: auto; padding: 2px; -webkit-overflow-scrolling: touch;
}
#sub-mixcut .mx-tpl {
  border: 1.5px solid rgba(30, 45, 61, 0.12); border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer; position: relative;
}
#sub-mixcut .mx-tpl.on { border-color: #c9a227; box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2); }
#sub-mixcut .mx-tpl-img { position: relative; height: var(--tpl-img); background: #eef1f4 center/cover no-repeat; }
#sub-mixcut .mx-tpl-n {
  font-size: 11px; color: #1e2d3d; padding: 5px 6px; height: 25px; box-sizing: border-box;
  line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#sub-mixcut .mx-tpl-demo {
  position: absolute; right: 4px; bottom: 4px; font-size: 10px; line-height: 1.5; padding: 2px 6px;
  border-radius: 20px; background: rgba(0, 0, 0, 0.58); color: #fff; border: 0; cursor: pointer;
  font-family: inherit; backdrop-filter: blur(2px);
}
#sub-mixcut .mx-tpl-check {
  position: absolute; left: 4px; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: #c9a227; color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; display: none;
}
#sub-mixcut .mx-tpl.on .mx-tpl-check { display: block; }
#sub-mixcut .mx-loading { grid-column: 1 / -1; text-align: center; font-size: 13px; color: #96a2ae; padding: 22px 0; }

/* ---- 生成按钮 ---- */
#sub-mixcut .mx-go {
  display: block; width: 100%; padding: 15px; border: 0; border-radius: 15px;
  font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #3d5468, #1e2d3d);
}
#sub-mixcut .mx-go:disabled { background: #d3d9de; color: #fff; cursor: not-allowed; }
#sub-mixcut .mx-go-tip { font-size: 12px; color: #8b98a5; text-align: center; margin-top: 9px; line-height: 1.6; }

/* ---- 生成中 ---- */
#sub-mixcut .mx-run { text-align: center; padding: 30px 14px; }
#sub-mixcut .mx-run-i { font-size: 30px; }
#sub-mixcut .mx-run-t { font-size: 15px; color: #1e2d3d; font-weight: 600; margin-top: 12px; }
#sub-mixcut .mx-run-s { font-size: 12.5px; color: #8b98a5; margin-top: 7px; line-height: 1.7; }
#sub-mixcut .mx-bar { height: 4px; border-radius: 4px; background: #eef1f4; overflow: hidden; margin: 18px auto 0; max-width: 260px; }
#sub-mixcut .mx-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3d5468, #c9a227); transition: width 0.5s; }

/* ---- 结果 ---- */
#sub-mixcut .mx-ok { text-align: center; padding: 6px 0 10px; }
#sub-mixcut .mx-ok-t { font-size: 15.5px; color: #1e2d3d; font-weight: 700; margin-bottom: 11px; }
#sub-mixcut .mx-video { width: 100%; border-radius: 14px; background: #000; display: block; }
#sub-mixcut .mx-ok-btns { display: flex; gap: 9px; margin-top: 13px; }
#sub-mixcut .mx-btn-main, #sub-mixcut .mx-btn-ghost {
  flex: 1 1 0; min-width: 0; padding: 13px 8px; border-radius: 13px; font-family: inherit;
  font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none;
  display: block; box-sizing: border-box;
}
#sub-mixcut .mx-btn-main { background: linear-gradient(135deg, #3d5468, #1e2d3d); color: #fff; border: 0; }
#sub-mixcut .mx-btn-ghost { background: #fff; color: #3d5468; border: 1px solid rgba(30, 45, 61, 0.2); }

/* ---- 演示视频浮层（挂在 body，必须带 mx- 前缀）---- */
.mx-modal {
  position: fixed; inset: 0; background: rgba(12, 18, 26, 0.82); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 18px; box-sizing: border-box;
}
.mx-modal-in { width: 100%; max-width: 380px; }
.mx-modal video { width: 100%; border-radius: 14px; display: block; background: #000; }
/* 无演示视频的模板：放大封面大图（见 public/mixcut.js 的 showCover） */
.mx-modal-img {
  width: 100%; max-height: 66vh; object-fit: contain; border-radius: 14px;
  display: block; background: rgba(255, 255, 255, 0.06);
}
.mx-modal-n { color: #fff; font-size: 13.5px; text-align: center; margin-top: 11px; }
.mx-modal-s {
  display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); margin-top: 5px;
}
.mx-modal-x {
  display: block; margin: 12px auto 0; width: 108px; padding: 10px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.16); color: #fff; border: 0; font-family: inherit;
  font-size: 13.5px; cursor: pointer;
}

/* ============================================================================
   「混剪」板块的板块图 + 头牌卡配色（2026-10-12 新增）
   🔴 新建独立样式，**不动别人的 style.css / newsecs.css / bossmusic-entry.css**
      —— 项目铁律：改别人的样式只新建文件、并排在后面加载（本文件在 head 已置于其后）。
   配色：石板蓝灰（#3d5468 → #1e2d3d）＋ 香槟金（#c9a227）点缀 ——
   与左栏「混剪」图标色块（icon-style.js 的 dpage）同色系。
   ========================================================================== */
.hero-mixcut {
  background: linear-gradient(135deg, #6b8496 0%, #3d5468 50%, #1e2d3d 100%);
  box-shadow: 0 10px 26px rgba(30, 45, 61, 0.28);
}

.combo-card.boss-entry.boss-entry-mx {
  background: linear-gradient(135deg, #fbfcfd 0%, #eef2f6 100%);
}
.combo-card.boss-entry.boss-entry-mx:hover {
  box-shadow: 0 10px 26px rgba(30, 45, 61, 0.18);
}
.combo-card.boss-entry.boss-entry-mx .boss-entry-ico {
  background: linear-gradient(135deg, #7c93a6 0%, #3d5468 56%, #1e2d3d 100%);
  box-shadow: 0 6px 14px rgba(30, 45, 61, 0.32);
}
.combo-card.boss-entry.boss-entry-mx .boss-entry-tag {
  color: #2b3a4a; background: #eef2f6;
}
.combo-card.boss-entry.boss-entry-mx .boss-entry-flow {
  color: #3d5468;
}
.combo-card.boss-entry.boss-entry-mx .boss-entry-flow span {
  background: #f7fafc; border-color: #dbe3ea;
}
.combo-card.boss-entry.boss-entry-mx .boss-entry-flow i {
  color: #b6c2cc;
}
