/* ============================================================================
 * 爆款复刻三件套公共样式（深度复刻 / 素材替换 / 分镜复刻）—— 2026-11-02
 *
 * 🔴 老板要求：这三个功能的界面必须跟「电商带货 / 同城到店 / 品牌广告」**同一套**，
 *    骨架全部用那套的 .card / .card-title / .ix-banner / .st-drop / .st-sub /
 *    .st-ta / .st-chips / .gen-btn / .st-stage / .st-video / .st-dl。
 *    这个文件只补三个页面**共用的**、那套里没有的零件：视频上传位、进度、成片按钮行。
 *
 * ⚠️ 类名一律 dc- 前缀且只作用于这三个子页，避免跨功能吃样式。
 * ========================================================================== */

:is(#sub-dclone, #sub-rclone, #sub-sclone) [hidden] { display: none !important; }

/* ------------------------------- 视频上传位 ------------------------------- */
/* .st-drop 原本是给图片用的小方框；视频要更宽更高，里面还要放预览。 */
:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-vdrop {
  min-height: 104px;
  width: 100%;
  padding: 12px;
  gap: 3px;
  border: 1px dashed #e8d3bd;
  border-radius: 14px;
  background: #fffdfb;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-vdrop:hover {
  border-color: #f0a97c;
  background: #fffaf5;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-refvid {
  display: block;
  width: 100%;
  max-height: 300px;
  border-radius: 11px;
  background: #000;
  object-fit: contain;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-shotimg {
  display: block;
  width: 100%;
  max-height: 240px;
  border-radius: 11px;
  background: #f5f1ec;
  object-fit: contain;
}

/* ------------------------------- 进度（套 .st-stage 的外壳）------------------------------ */

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-pg-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-pg-t {
  font-size: 13.5px;
  font-weight: 700;
  color: #6b4a2f;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-pg-el {
  margin-left: auto;
  font-size: 11.5px;
  color: #a89a8c;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-bar {
  height: 6px;
  border-radius: 3px;
  background: #f6e7d7;
  overflow: hidden;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #f95901, #ffa257);
  transition: width .6s ease;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-steps {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #b1a294;
  line-height: 1.5;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-step-dot {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  border-radius: 50%;
  background: #f2e8dd;
  color: #b1a294;
  font-size: 10px;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-step.done { color: #907055; }
:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-step.done .dc-step-dot { background: #efd8c1; color: #b5733f; }
:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-step.run { color: #f95901; font-weight: 600; }
:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-step.run .dc-step-dot { background: #f95901; color: #fff; }

/* ------------------------------- 成片下方两个次要按钮 ------------------------------- */

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-res-row {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-btn-ghost {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  border: 1px solid #f0d8c4;
  border-radius: 11px;
  background: #fff;
  color: #8a6a52;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-btn-ghost:active { background: #fdf6f0; }

/* 生成按钮禁用时给个明确的手感（.gen-btn:disabled 已在 style.css 里） */
:is(#sub-dclone, #sub-rclone, #sub-sclone) .gen-btn { margin-top: 10px; }
:is(#sub-dclone, #sub-rclone, #sub-sclone) .st-director-btn { margin-top: 10px; }


/* ------------------------------- 隐藏原生文件按钮 ------------------------------- */
/* 🔴 `.st-file` 在口播页是作用域内的规则，这三个页面拿不到 ⇒ 原生「选择文件」按钮会露出来。
   这里直接按住，点击统一走外层 .dc-vdrop。 */
:is(#sub-dclone, #sub-rclone, #sub-sclone) input.st-file {
  position: fixed !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* ------------------------------- 加号尺寸对齐口播页 ------------------------------- */
/* 口播页的「＋」是 22px 的 #d8a67a；视频位比图片位大，加号也跟着大一号。 */
:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-vdrop .st-plus {
  font-size: 27px;
  line-height: 1;
  color: #d8a67a;
  margin-bottom: 2px;
}
:is(#sub-dclone, #sub-rclone, #sub-sclone) .dc-vdrop > div > div { font-size: 13px; color: #8a6a52; }

/* 槽位里的角色图标（emoji）比加号小一号，别喧宾夺主 */
#sub-dclone .dc-slot .st-plus { font-size: 19px; margin-bottom: 1px; }
