/**
 * YouTube Casting Styles
 * Specific styles for YouTube video player integration
 */

/* YouTube Player Container */
#youtube-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 10;
  display: none;
}

#youtube-player.active {
  display: block;
}

/* YouTube Player iframe */
#youtube-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: black;
}

/* Hide cast-media-player when YouTube is active */
cast-media-player.youtube-mode {
  display: none !important;
}

/* YouTube Controls Overlay */
.youtube-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.youtube-controls:hover {
  opacity: 1;
}

.youtube-controls button {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.youtube-controls button:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
}

/* YouTube Loading Indicator */
.youtube-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
  z-index: 15;
}

/* YouTube Error State */
.youtube-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ff4444;
  font-size: 16px;
  text-align: center;
  z-index: 15;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .youtube-controls {
    bottom: 10px;
  }
  
  .youtube-controls button {
    padding: 6px 12px;
    font-size: 12px;
  }
}
