* {
  font-family: 'Poppins', sans-serif;
}

body {
  background: transparent;
  margin: 0;
}
#video-compare-container {
  display: block;
  line-height: 0;
  position: relative;
  width: 100%;
  /* 16:9 aspect to better match container */
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  /* Enable touch events */
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#video-compare-container > video {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}

/* removed overlay headline */

#before-text {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  color: white;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

#before-text.visible {
  opacity: 1;
}

#after-text {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  color: white;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

#after-text.visible {
  opacity: 1;
}

#video-clipper {
  width: 50%; position: absolute;
  top: 0; bottom: 0;
  overflow: hidden;
}
#video-clipper video {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}

/* Slider handle */
#slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 3px solid rgba(0, 0, 0, 0.3);
  cursor: grab;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
  animation: pulse 2s ease-in-out infinite;
}

#slider-handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(0.95);
}

#slider-handle::before,
#slider-handle::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 2px;
}

#slider-handle::before {
  left: 8px;
}

#slider-handle::after {
  right: 8px;
}

#slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}