/* 2D 横版战斗播放器 */
.bp-root { position: relative; }
.bp-root:fullscreen, .bp-root.bp-pseudo-fs {
  display: flex; flex-direction: column;
  width: 100%; height: 100%; padding: 16px; box-sizing: border-box;
  background: var(--surface, #fff);
}
/* 不支持元素全屏时的替代：铺满视口；竖屏下整体顺时针转 90° 变成横屏 */
.bp-root.bp-pseudo-fs { position: fixed; inset: 0; z-index: 2000; width: 100vw; height: 100vh; width: 100dvw; height: 100dvh; }
@media (orientation: portrait) {
  .bp-root.bp-pseudo-fs {
    inset: auto; top: 0; left: 0;
    width: 100vh; height: 100vw; width: 100dvh; height: 100dvw;
    transform-origin: top left;
    transform: translateX(100vw) rotate(90deg); transform: translateX(100dvw) rotate(90deg);
  }
}
body.bp-pseudo-lock { overflow: hidden; }
@media (max-height: 520px) {
  .bp-root:fullscreen, .bp-root.bp-pseudo-fs { padding: 6px; }
}
.bp-root:fullscreen .bp-stage, .bp-root.bp-pseudo-fs .bp-stage {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  background: #1c2028;
}
.bp-root:fullscreen .bp-controls, .bp-root.bp-pseudo-fs .bp-controls { flex-shrink: 0; }
.bp-stage {
  position: relative;
  border-radius: var(--r-1, 8px);
  overflow: hidden;
  background: #6fb7ff;
}
.bp-canvas { display: block; width: 100%; }
.bp-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
  background: rgba(0, 0, 0, .35);
}
.bp-loading[hidden] { display: none; }
.bp-subtitle {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  max-width: 88%;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .62);
  color: #fff; font-weight: 600; font-size: .95rem; text-align: center;
  pointer-events: none;
}
.bp-subtitle[hidden] { display: none; }
.bp-pop { animation: bpPop .25s ease-out; }
@keyframes bpPop { from { transform: translateX(-50%) scale(.92); opacity: .3; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.bp-controls {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin-top: .6rem;
}
.bp-progress {
  min-width: 80px; height: 6px; border-radius: 3px;
  background: rgba(127, 127, 127, .25); overflow: hidden;
}
.bp-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #3d8bfd, #ff5d5d); transition: width .2s; }
.bp-speeds .btn.active { background: var(--sun, #ffc83d); color: #4a3428; }
