.custom-youtube-player {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.custom-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.custom-youtube-player:hover .custom-controls-overlay {
  opacity: 1;
}

.custom-play-btn, .custom-volume-btn, .custom-fullscreen-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
}

.custom-play-btn:hover, .custom-volume-btn:hover, .custom-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.custom-progress {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
}

.custom-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 5px;
  width: 0%;
  position: relative;
}

.custom-time {
  color: white;
  font-size: 0.9rem;
  min-width: 80px;
  text-align: center;
}

.youtube-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.video-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), transparent);
  padding: 15px;
  color: white;
  font-weight: 500;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-youtube-player:hover .video-title-overlay {
  opacity: 1;
}

.custom-buffer-bar {
  position: absolute;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  width: 0%;
}

.error-message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  flex-direction: column;
  gap: 10px;
  z-index: 15;
}

.error-message i {
  font-size: 2rem;
  color: #ef4444;
}

