/* rrweb-player base styles (from dist) */
.replayer-wrapper{position:relative}.replayer-mouse{position:absolute;width:20px;height:20px;transition:left .05s linear,top .05s linear;background-size:contain;background-position:50%;background-repeat:no-repeat;background-image:url("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjMwMCIgd2lkdGg9IjMwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBkYXRhLW5hbWU9IkxheWVyIDEiIHZpZXdCb3g9IjAgMCA1MCA1MCI+PHBhdGggZD0iTTQ4LjcxIDQyLjkxTDM0LjA4IDI4LjI5IDQ0LjMzIDE4YTEgMSAwIDAwLS4zMy0xLjYxTDIuMzUgMS4wNmExIDEgMCAwMC0xLjI5IDEuMjlMMTYuMzkgNDRhMSAxIDAgMDAxLjY1LjM2bDEwLjI1LTEwLjI4IDE0LjYyIDE0LjYzYTEgMSAwIDAwMS40MSAwbDQuMzgtNC4zOGExIDEgMCAwMC4wMS0xLjQyem0tNS4wOSAzLjY3TDI5IDMyYTEgMSAwIDAwLTEuNDEgMGwtOS44NSA5Ljg1TDMuNjkgMy42OWwzOC4xMiAxNEwzMiAyNy41OEExIDEgMCAwMDMyIDI5bDE0LjU5IDE0LjYyeiIvPjwvc3ZnPg==");border-color:transparent}.replayer-mouse:after{content:"";display:inline-block;width:20px;height:20px;background:#7cc576;border-radius:100%;transform:translate(-50%,-50%);opacity:.3}.replayer-mouse.active:after{animation:click .2s ease-in-out 1}.replayer-mouse.touch-device{background-image:none;width:70px;height:70px;border-radius:100%;margin-left:-37px;margin-top:-37px;border:4px solid rgba(124,197,118,0);transition:left 0s linear,top 0s linear,border-color .2s ease-in-out}.replayer-mouse.touch-device.touch-active{border-color:#7cc576;transition:left .25s linear,top .25s linear,border-color .2s ease-in-out}.replayer-mouse.touch-device:after{opacity:0}.replayer-mouse.touch-device.active:after{animation:touch-click .2s ease-in-out 1}.replayer-mouse-tail{position:absolute;pointer-events:none}@keyframes click{0%{opacity:.3;width:20px;height:20px}50%{opacity:.5;width:10px;height:10px}}@keyframes touch-click{0%{opacity:0;width:20px;height:20px}50%{opacity:.5;width:10px;height:10px}}

/* ---- Dark theme overrides ---- */

.rr-player {
  position: relative;
  background: #0b1120;
  float: left;
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid rgba(55, 65, 81, 0.5);
  overflow: hidden;
}

.rr-player__frame {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.replayer-wrapper {
  float: left;
  clear: both;
  transform-origin: top left;
  left: 50%;
  top: 50%;
}

.replayer-wrapper > iframe {
  border: none;
}

/* Controller bar */
.rr-controller.svelte-19ke1iv.svelte-19ke1iv {
  width: 100%;
  height: 64px;
  background: #111827;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  border-radius: 0 0 12px 12px;
  border-top: 1px solid rgba(55, 65, 81, 0.5);
}

/* Timeline */
.rr-timeline.svelte-19ke1iv.svelte-19ke1iv {
  width: 85%;
  display: flex;
  align-items: center;
}

.rr-timeline__time.svelte-19ke1iv.svelte-19ke1iv {
  display: inline-block;
  width: 80px;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  font-family: monospace;
}

/* Progress bar */
.rr-progress.svelte-19ke1iv.svelte-19ke1iv {
  flex: 1;
  height: 8px;
  background: rgba(55, 65, 81, 0.6);
  position: relative;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
  border: none;
}

.rr-progress.disabled.svelte-19ke1iv.svelte-19ke1iv {
  cursor: not-allowed;
}

.rr-progress__step.svelte-19ke1iv.svelte-19ke1iv {
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(124, 197, 118, 0.5);
  border-radius: 4px 0 0 4px;
}

.rr-progress__handler.svelte-19ke1iv.svelte-19ke1iv {
  width: 14px;
  height: 14px;
  border-radius: 7px;
  position: absolute;
  top: 2px;
  transform: translate(-50%, -50%);
  background: #7cc576;
  box-shadow: 0 0 6px rgba(124, 197, 118, 0.4);
}

/* Buttons */
.rr-controller__btns.svelte-19ke1iv.svelte-19ke1iv {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #d1d5db;
  gap: 10px;
}

/* Play/pause button — make it prominent */
.rr-controller__btns.svelte-19ke1iv button.svelte-19ke1iv:first-child {
  width: 32px;
  height: 32px;
  background: #7cc576;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
}

.rr-controller__btns.svelte-19ke1iv button.svelte-19ke1iv:first-child:hover {
  background: #4a9e47;
}

/* Play button SVG icon — make it white and visible */
.rr-controller__btns.svelte-19ke1iv button.svelte-19ke1iv:first-child svg {
  fill: #fff;
  stroke: #fff;
  width: 14px;
  height: 14px;
}

/* All other buttons (speed, skip, fullscreen) */
.rr-controller__btns.svelte-19ke1iv button.svelte-19ke1iv {
  width: 28px;
  height: 28px;
  display: flex;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: rgba(55, 65, 81, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.6);
  border-radius: 8px;
  cursor: pointer;
  color: #d1d5db;
  font-size: 11px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.rr-controller__btns.svelte-19ke1iv button.svelte-19ke1iv:hover {
  background: rgba(55, 65, 81, 0.8);
  border-color: rgba(124, 197, 118, 0.4);
  color: #f9fafb;
}

.rr-controller__btns.svelte-19ke1iv button.svelte-19ke1iv:active {
  background: rgba(55, 65, 81, 0.9);
}

/* Active speed button */
.rr-controller__btns.svelte-19ke1iv button.active.svelte-19ke1iv {
  color: #fff;
  background: #7cc576;
  border-color: #7cc576;
}

.rr-controller__btns.svelte-19ke1iv button.svelte-19ke1iv:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

/* SVGs in buttons */
.rr-controller__btns.svelte-19ke1iv button.svelte-19ke1iv svg {
  fill: currentColor;
  stroke: currentColor;
  width: 16px;
  height: 16px;
}

/* Toggle switch */
.switch.svelte-9brlez.svelte-9brlez.svelte-9brlez {
  height: 1em;
  display: flex;
  align-items: center;
}

.switch.disabled.svelte-9brlez.svelte-9brlez.svelte-9brlez {
  opacity: 0.5;
}

.label.svelte-9brlez.svelte-9brlez.svelte-9brlez {
  margin: 0 8px;
  color: #9ca3af;
}

.switch.svelte-9brlez input[type='checkbox'].svelte-9brlez.svelte-9brlez {
  position: absolute;
  opacity: 0;
}

.switch.svelte-9brlez label.svelte-9brlez.svelte-9brlez {
  width: 2em;
  height: 1em;
  position: relative;
  cursor: pointer;
  display: block;
}

.switch.disabled.svelte-9brlez label.svelte-9brlez.svelte-9brlez {
  cursor: not-allowed;
}

.switch.svelte-9brlez label.svelte-9brlez.svelte-9brlez:before {
  content: '';
  position: absolute;
  width: 2em;
  height: 1em;
  left: 0.1em;
  transition: background 0.1s ease;
  background: rgba(124, 197, 118, 0.3);
  border-radius: 50px;
}

.switch.svelte-9brlez label.svelte-9brlez.svelte-9brlez:after {
  content: '';
  position: absolute;
  width: 1em;
  height: 1em;
  border-radius: 50px;
  left: 0;
  transition: all 0.2s ease;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
  background: #374151;
  z-index: 2;
}

.switch.svelte-9brlez input[type='checkbox'].svelte-9brlez:checked+label.svelte-9brlez:before {
  background: #7cc576;
}

.switch.svelte-9brlez input[type='checkbox'].svelte-9brlez:checked+label.svelte-9brlez:after {
  left: 1.1em;
  background: #7cc576;
}
