/* player-controls.css —— 点播自研控制条（移植誉博回放控制条，v20261127v18393）
   作用于 .video-guard / .tp-stage 内的 <video>；水印、试看截断、进度上报不在此层。 */

.pc-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .82));
  color: #fff;
  opacity: 1;
  transition: opacity .25s;
}
.pc-bar.hide { opacity: 0; pointer-events: none; }

.pc-seek-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pc-time { font-size: 12px; font-variant-numeric: tabular-nums; color: #cbd5e1; min-width: 94px; white-space: nowrap; }
.pc-time b { color: #fff; font-weight: 600; }

/* 进度条：外层 22px 命中区，轨道 8px；已播段由 JS 写 --pct 驱动 ::after */
.pc-seek-wrap { position: relative; flex: 1; height: 22px; display: flex; align-items: center; }
.pc-seek-wrap::before, .pc-seek-wrap::after {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 8px; border-radius: 999px; pointer-events: none;
}
.pc-seek-wrap::before { right: 0; background: rgba(255, 255, 255, .22); }
.pc-seek-wrap::after { width: var(--pct, 0%); background: var(--accent, #f97316); }
.pc-seek {
  position: absolute; inset: 0; width: 100%; height: 22px;
  -webkit-appearance: none; appearance: none; background: transparent;
  outline: none; cursor: pointer; margin: 0;
}
.pc-seek::-webkit-slider-runnable-track { height: 8px; background: transparent; }
.pc-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: -4px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.pc-seek::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.pc-seek::-moz-range-track { height: 8px; background: transparent; }
.pc-seek::-moz-range-progress { height: 8px; background: var(--accent, #f97316); border-radius: 999px; }

.pc-btn-row { display: flex; align-items: center; gap: 4px; }
.pc-btn {
  width: 42px; height: 42px; border: 0; background: transparent; color: #fff;
  border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.pc-btn:hover { background: rgba(255, 255, 255, .12); }
.pc-btn svg { flex: 0 0 auto; display: block; width: 20px; height: 20px; fill: currentColor; }
.pc-btn.pc-line svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 画中画：外框描边 + 右下内嵌小框填充；内框用 .pip-in 单独回到填充 */
.pc-btn.pc-pip svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.pc-btn.pc-pip svg .pip-in { fill: currentColor; stroke: none; }
/* 主播放/暂停键：圆形半透明底衬 + 略大图标，任意画面上都清晰可辨 */
.pc-btn.pc-play { width: 46px; height: 46px; background: rgba(0, 0, 0, .38); border-radius: 50%; }
.pc-btn.pc-play:hover { background: rgba(0, 0, 0, .55); }
.pc-btn.pc-play svg { width: 22px; height: 22px; }
.pc-spacer { flex: 1; }

.pc-vol { display: flex; align-items: center; gap: 6px; }
.pc-vol input[type=range] { width: 76px; accent-color: #f97316; cursor: pointer; }
.pc-label-btn .pc-label { font-size: 13px; color: #fff; padding: 0 4px; min-width: 46px; text-align: center; }

.pc-menu-wrap { position: relative; }
.pc-menu {
  position: absolute; bottom: 44px; right: 0; min-width: 116px;
  background: rgba(12, 18, 28, .92); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px; padding: 6px; display: none; z-index: 40;
  max-height: 220px; overflow-y: auto;
}
.pc-menu.show { display: block; }
.pc-menu .pc-mi {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #e2e8f0; padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
.pc-menu .pc-mi:hover { background: rgba(255, 255, 255, .1); }
.pc-menu .pc-mi.cur { color: #fb923c; }
.pc-menu .pc-mi.cur::after { content: "✓"; }

@media (max-width: 700px) {
  /* 窄屏隐藏音量滑条，仅留静音键，避免一行控件拥挤误触 */
  .pc-vol-range { display: none; }
  .pc-time { min-width: 74px; font-size: 11px; }
  .pc-menu { right: auto; left: 0; }
}
