/* Custom Timeline Range Input */
input[type="range"].netflix-slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
input[type="range"].netflix-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #E50914;
  border: 2px solid #ffffff;
  cursor: pointer;
  margin-top: -5px;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.95);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
input[type="range"].netflix-slider:hover::-webkit-slider-thumb {
  transform: scale(1.3);
  box-shadow: 0 0 18px rgba(229, 9, 20, 1);
}
input[type="range"].netflix-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
}


/* Netflix-Style Subtitle Cues */
.subtitle-cue-box {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 1);
  font-size: clamp(1rem, 2.2vw, 1.65rem);
}
.subtitle-cue-box.sub-size-sm {
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
}
.subtitle-cue-box.sub-size-md {
  font-size: clamp(1rem, 2.2vw, 1.65rem);
}
.subtitle-cue-box.sub-size-lg {
  font-size: clamp(1.25rem, 2.9vw, 2.25rem);
}

video::cue {
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
}

/* Jumpscare Shake & Zoom Animation */
@keyframes jumpscarePop {
  0% { transform: scale(0.85) rotate(0deg); filter: brightness(2.5) contrast(1.4); }
  12% { transform: scale(1.16) rotate(-2.5deg); filter: brightness(1.15) contrast(1.25); }
  25% { transform: scale(1.08) rotate(2.5deg); }
  38% { transform: scale(1.18) rotate(-2deg); }
  52% { transform: scale(1.1) rotate(2deg); }
  68% { transform: scale(1.14) rotate(-1.5deg); }
  85% { transform: scale(1.06) rotate(1deg); }
  100% { transform: scale(1.1) rotate(0deg); filter: brightness(1) contrast(1.1); }
}

.jumpscare-animate {
  animation: jumpscarePop 0.45s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

