/*!
 * movie-bus.css — 「万物皆可造(/create/)」大片窗口 · 章节条 + 字幕层样式
 * 版本 20260918a · 只作用于 #crMovieBus 内部，不影响其他屏幕/页签/3D 装配台。
 * 注意：站点 CSP 为 default-src 'self'（无 unsafe-inline），本文件必须外链，
 *       JS 侧只用 classList 与 CSSOM 属性（.style.*），无 style="" 内联。
 */

.cr-bus {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ---------- 字幕层（视频下方 · 当前章节标题） ---------- */
.cr-bus-cue {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(56, 189, 248, .08);
  border: 1px solid rgba(56, 189, 248, .22);
  color: #E2E8F0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  text-align: center;
}
.cr-bus-cue:empty { display: none; }

/* ---------- 章节条（按章分段 · 可点击 · 当前章高亮） ---------- */
.cr-bus-bar {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 26px;
}

.cr-bus-seg {
  flex-basis: 0;
  flex-grow: 1;
  min-width: 16px;
  position: relative;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 7px;
  background: rgba(148, 163, 184, .14);
  cursor: pointer;
  overflow: hidden;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cr-bus-seg:hover { border-color: rgba(56, 189, 248, .6); background: rgba(56, 189, 248, .18); }

.cr-bus-seg .cr-bus-seg-i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(226, 232, 240, .6);
  pointer-events: none;
}

.cr-bus-seg.cr-seg-on {
  background: linear-gradient(180deg, #38BDF8, #0EA5E9);
  border-color: #7DD3FC;
  box-shadow: 0 0 14px rgba(56, 189, 248, .5);
}
.cr-bus-seg.cr-seg-on .cr-bus-seg-i { color: #04212F; font-weight: 700; }

/* ---------- 上/下一节 + 位置 ---------- */
.cr-bus-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cr-bus-pos {
  color: rgba(148, 163, 184, .85);
  font-size: 12.5px;
  letter-spacing: .4px;
}

/* ---------- BOM 返佣按钮（独立行 · 常显 · 不随章节 UI 隐藏） ---------- */
.cr-bom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.cr-bom-btn {
  flex: 0 1 auto;
  border-color: rgba(74, 222, 128, .45) !important;
  background: rgba(74, 222, 128, .10) !important;
  color: #BBF7D0 !important;
}
.cr-bom-btn:hover { background: rgba(74, 222, 128, .2) !important; color: #DCFCE7 !important; }

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .cr-bus-cue { font-size: 13.5px; padding: 6px 10px; }
  .cr-bus-bar { height: 22px; gap: 3px; }
  .cr-bus-seg .cr-bus-seg-i { font-size: 10px; }
  .cr-bus-ctrl .cr-tool { font-size: 12px; padding: 7px 10px; }
  .cr-bom-row { justify-content: stretch; }
  .cr-bom-btn { flex: 1 1 auto; text-align: center; font-size: 12px; padding: 7px 10px; }
}
