/* Custom Video Controls Styling */

.promo-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  border-radius: 0 0 1.25rem 1.25rem;
  backdrop-filter: blur(4px);
}

.promo-video-figure:hover .promo-video-controls,
.promo-video-figure.is-playing .promo-video-controls {
  opacity: 1;
}

.promo-video-figure.is-playing .promo-video-controls {
  opacity: 0;
  transition: opacity 0.3s ease 2s;
}

.promo-video-figure.is-playing:hover .promo-video-controls {
  opacity: 1;
  transition-delay: 0s;
}

.video-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.video-control-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.video-control-btn:active {
  transform: scale(0.95);
}

.video-control-btn .material-symbols-outlined {
  font-size: 1.35rem;
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 20;
  line-height: 1;
}

.video-timeline {
  position: relative;
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
  border-radius: 2px;
}

.timeline-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  z-index: 3;
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.timeline-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-timeline:hover .timeline-slider::-webkit-slider-thumb,
.video-timeline:hover .timeline-slider::-moz-range-thumb {
  opacity: 1;
}

.video-time {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .promo-video-controls {
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
  }
  
  .video-control-btn {
    width: 28px;
    height: 28px;
  }
  
  .video-control-btn .material-symbols-outlined {
    font-size: 1.2rem;
  }
  
  .video-time {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-video-controls,
  .video-control-btn,
  .timeline-progress {
    transition: none;
  }
}
