/* Custom Video Player Styles */
.custom-video-container {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 0;
}

.custom-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 5;
}

.video-overlay.playing {
  opacity: 0;
  pointer-events: none;
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.4);
}

.play-button {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.play-button svg {
  width: 28px;
  height: 28px;
  color: #333;
  margin-left: 2px; /* Slight offset to center the triangle visually */
}

.pause-button {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pause-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.pause-button svg {
  width: 18px;
  height: 18px;
  color: #333;
}

/* Show pause overlay briefly when video is paused */
.video-overlay.paused {
  opacity: 1;
  pointer-events: all;
  animation: fadeOutDelay 2s ease forwards;
}

@keyframes fadeOutDelay {
  0%, 70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    pointer-events: none;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .play-button {
    width: 40px;
    height: 40px;
  }

  .play-button svg {
    width: 24px;
    height: 24px;
  }

  .pause-button {
    width: 40px;
    height: 40px;
  }

  .pause-button svg {
    width: 16px;
    height: 16px;
  }
}

/* For carousel videos */
.carousel-item .custom-video-container {
  height: 100%;
}

.carousel-item .custom-video-player {
  height: 100%;
}