/* =====================================================
   cine-bus.css —— /explode/ 大片播放器 · 章节条 / 字幕 联动层（20260918b）
   仅新增类前缀 cb-*，不动 explode.css 既有任何规则。
   对齐 .ex-movie 深色玻璃质感；CSP: style-src 'self'（外部文件，无内联）。
   ===================================================== */

.cb-panel {
  margin: 12px 0 4px;
  padding: 12px 14px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, .72), rgba(2, 6, 23, .72));
  border: 1px solid rgba(125, 211, 252, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.cb-panel.cb-hidden { display: none !important; }

/* ---- 字幕层（当前章节标题 + 关键词） ---- */
.cb-subs {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  min-height: 22px;
  margin-bottom: 10px;
}
.cb-cue {
  color: #F1F5F9; font-size: 15.5px; font-weight: 700; letter-spacing: .3px;
  line-height: 1.35;
}
.cb-cue:empty { display: none; }
.cb-kw {
  color: #7DD3FC; font-size: 12.5px; line-height: 1.35;
}
.cb-kw:empty { display: none; }

/* ---- 章节条（每章一段，可点） ---- */
.cb-bar {
  display: flex; gap: 4px; align-items: stretch;
  width: 100%;
}
.cb-seg {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(148, 163, 184, .10);
  border-radius: 8px;
  padding: 7px 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background .18s ease;
}
.cb-seg:hover { border-color: rgba(125, 211, 252, .55); background: rgba(125, 211, 252, .12); }
.cb-seg.cb-on { border-color: #38BDF8; background: rgba(56, 189, 248, .14); }
.cb-seg-fill {
  position: absolute; left: 0; top: 0; bottom: 0; right: 0;
  transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(56, 189, 248, .38), rgba(56, 189, 248, .14));
  pointer-events: none;
}
.cb-seg-lab {
  position: relative; z-index: 1;
  display: block;
  color: rgba(226, 232, 240, .82);
  font-size: 11.5px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cb-seg.cb-on .cb-seg-lab { color: #E0F2FE; }

/* ---- 上下章 / 计数 ---- */
.cb-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px;
}
.cb-btn {
  appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(125, 211, 252, .4);
  background: rgba(125, 211, 252, .10);
  color: #BAE6FD;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12.5px; cursor: pointer;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}
.cb-btn:hover:not(:disabled) { background: rgba(125, 211, 252, .2); color: #E0F2FE; }
.cb-btn:disabled { opacity: .38; cursor: default; }
.cb-count { color: rgba(148, 163, 184, .85); font-size: 12px; letter-spacing: .5px; }

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

/* ---- 移动端 393px：章节条可横向滑动，避免挤压溢出 ---- */
@media (max-width: 480px) {
  .cb-panel { padding: 10px 10px 8px; }
  .cb-cue { font-size: 14px; }
  .cb-kw { font-size: 11.5px; }
  .cb-bar { overflow-x: auto; gap: 5px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .cb-seg { flex: 0 0 auto; min-width: 68px; padding: 6px 7px; }
  .cb-seg-lab { font-size: 10.5px; }
  .cb-nav { flex-wrap: wrap; }
  .cb-btn { padding: 6px 12px; font-size: 12px; }
  .cb-bom-row { justify-content: stretch; }
  .cx-bom-btn { flex: 1 1 auto; text-align: center; }
}
