.rpg-time-slider-pilot {
  --rpg-time-split: 50%;
  position: relative;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  border-radius: inherit;
  background: #111827;
  isolation: isolate;
  touch-action: pan-y;
}

.rpg-time-slider-pilot > img,
.rpg-time-slider-pilot .rpg-time-slider-before > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.rpg-time-slider-pilot .rpg-time-slider-current {
  z-index: 1;
}

.rpg-time-slider-before {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--rpg-time-split)) 0 0);
  pointer-events: none;
}

.rpg-time-slider-divider {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--rpg-time-split);
  width: 2px;
  transform: translateX(-1px);
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(2,6,23,.35), 0 0 18px rgba(2,6,23,.5);
  pointer-events: none;
}

.rpg-time-slider-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15,23,42,.92);
  border: 2px solid #fff;
  color: #fff;
  font: 700 16px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 2px;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}

.rpg-time-slider-label {
  position: absolute;
  z-index: 5;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(2,6,23,.82);
  color: #fff;
  font: 700 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .02em;
  pointer-events: none;
}

.rpg-time-slider-label--before { left: 12px; }
.rpg-time-slider-label--after { right: 12px; }

.rpg-time-slider-range {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: .001;
  cursor: ew-resize;
  touch-action: pan-y;
}

.rpg-time-slider-pilot.rpg-time-slider-focus {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.rpg-time-slider-credit {
  margin: 7px 2px 0;
  color: #94a3b8;
  font: 500 11px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rpg-time-slider-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rpg-time-slider-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  .rpg-time-slider-pilot { min-height: 190px; }
  .rpg-time-slider-label { top: 9px; }
  .rpg-time-slider-label--before { left: 9px; }
  .rpg-time-slider-label--after { right: 9px; }
  .rpg-time-slider-handle { width: 38px; height: 38px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .rpg-time-slider-pilot,
  .rpg-time-slider-divider,
  .rpg-time-slider-before { scroll-behavior: auto; transition: none !important; }
}
