.stream > .live-playback-controls {
  position: absolute;
  top: calc(50% + 27px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 115;
  width: 252px;
  container-type: inline-size;
  max-width: calc(100% - 16px);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  background: rgba(20, 24, 22, .94);
  color: #f4f7f5;
  box-shadow: 0 3px 12px #0006;
  pointer-events: auto;
}
.stream:not(.active) > .live-playback-controls { display: none; }
.stream > .live-playback-controls:has(.live-playback-timeline:not([hidden])) { top: auto; bottom: 8px; }
.live-playback-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.live-playback-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 30px;
  min-height: 30px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.live-playback-controls button:hover:not(:disabled) { background: #ffffff24; }
.live-playback-controls :is(button, input):focus-visible { outline: 2px solid #7fe69f; outline-offset: 1px; }
.live-playback-controls :disabled { opacity: .45; cursor: default; }
.live-playback-controls [hidden] { display: none !important; }
.live-playback-controls [data-playback="capture"] span,
.live-playback-controls [data-playback="restart"] span { display: inline; }
.live-playback-controls [data-playback="save-replay"] { color: #d7efbc; }
.live-playback-timeline { display: flex; flex-direction: column; gap: 3px; padding: 3px 5px; }
.live-playback-time { font: 11px/1.2 monospace; text-align: center; color: #d3e1d7; }
.live-playback-timeline input { display: block; width: 100%; margin: 2px 0; accent-color: #6bdd8d; cursor: pointer; }
.live-playback-message { display: block; max-width: 230px; padding: 5px; color: #ffd6a2; font: 12px/1.3 sans-serif; }
.replay-speed-controls { margin-top: 4px; text-align: center; }
.live-playback-actions .replay-speed-controls { margin-top: 0; }
.replay-speed-controls .replay-speed-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 32px; padding: 5px 12px; border: 1px solid #4b4b4b;
  border-radius: 999px; background: #303030; color: #eee; font: 600 12px/1.3 Inter, sans-serif;
  cursor: pointer;
}
.replay-speed-controls .replay-speed-toggle strong { font-variant-numeric: tabular-nums; }
.live-playback-actions .replay-speed-toggle { min-height: 30px; padding: 5px 8px; font-size: 12px; }
.replay-speed-panel {
  box-sizing: border-box; inset: 0; width: min(360px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px); overflow-y: auto; margin: auto; padding: 16px;
  border: 1px solid #484848; border-radius: 16px; background: #191919;
  color: #eee; box-shadow: 0 16px 56px #0009; font: 500 13px/1.4 Inter, sans-serif;
  text-align: center;
}
.replay-speed-panel:not(:popover-open) { display: none; }
.replay-speed-panel:popover-open { display: grid; gap: 14px; }
.replay-speed-panel::backdrop { background: #0005; }
.replay-speed-heading { display: flex; align-items: center; justify-content: space-between; color: #aaa; text-align: left; }
.replay-speed-panel .replay-speed-value { font-size: 28px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.replay-speed-controls .replay-speed-panel button {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  box-sizing: border-box; gap: 3px; min-width: 0; min-height: 40px; padding: 7px 4px;
  border: 1px solid transparent; border-radius: 999px; background: #303030;
  color: #eee; font: 600 13px/1.2 Inter, sans-serif; cursor: pointer;
}
.replay-speed-panel button small { font-size: 9px; font-weight: 400; color: #bbb; }
.replay-speed-panel .replay-speed-heading button { width: 30px; min-height: 30px; padding: 0; background: transparent; font-size: 22px; }
.replay-speed-adjust { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 14px; }
.replay-speed-panel .replay-speed-adjust button { width: 40px; height: 40px; padding: 0; font-size: 25px; }
.replay-speed-adjust input { appearance: none; width: 100%; height: 24px; padding: 0; margin: 0; background: transparent; cursor: pointer; }
.replay-speed-adjust input::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: #888; }
.replay-speed-adjust input::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7.5px; border: 0; border-radius: 50%; background: #fff; }
.replay-speed-adjust input::-moz-range-track { height: 5px; border-radius: 5px; background: #888; }
.replay-speed-adjust input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; }
.replay-speed-presets { display: grid; gap: 8px; text-align: left; }
.replay-speed-presets > span { color: #aaa; font-size: 11px; }
.replay-speed-presets > div { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 7px; }
.replay-speed-controls button:hover:not(:disabled) { background: #414141; }
.replay-speed-controls button[aria-pressed="true"] { border-color: #ddd; background: #494949; color: #fff; }
.replay-speed-controls :is(button, input):focus-visible { outline: 2px solid #eee; outline-offset: 3px; }
.replay-speed-controls :disabled { opacity: .45; cursor: default; }
.replay-speed-controls[hidden] { display: none !important; }
@container (max-width: 190px) {
  .live-playback-actions button span { display: none; }
  .live-playback-actions button { flex: 1; }
}
