/* VideoJS DRM Player Custom Styles */

.videojs-drm-host--fluid .videojs-drm-stage {
  width: 100%;
}

.videojs-drm-host--fluid .videojs-drm-stage + .custom-video-control-bar {
  width: 100%;
}

.video-js:not(.vjs-fluid):not(.vjs-fill) {
  display: flex;
  flex-direction: column;
  position: relative;
  border: none;
  font-family: Arial, sans-serif;
  background-color: black;
}

.video-js:not(.vjs-fluid):not(.vjs-fill) .vjs-tech {
  display: block;
  position: relative;
}

.video-js .vjs-text-track-display {
  position: relative;
}

.video-js .vjs-error-display {
  display: none;
}

.video-js:not(.vjs-fluid):not(.vjs-fill) video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center !important;
  background: #000;
}

/* Button hover effects */
.videojs-drm-button:hover,
.videojs-drm-button:focus {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  transition: all 0.2s ease;
  border-radius: 10px;
}

.vjs-poster img {
  background-color: #000;
}

.video-js.hide-videojs-controls .vjs-control-bar,
.video-js.hide-videojs-controls .vjs-progress-control {
  display: none !important;
}

/* Audio-only mode: collapse to control bar height only */
.video-js.audio-only.display-format-1 {
  height: auto !important;
  min-height: auto !important;
  background-color: transparent;
}

.video-js.audio-only.display-format-1 .vjs-tech,
.video-js.audio-only.display-format-1 video,
.video-js.audio-only.display-format-1 .vjs-text-track-display,
.video-js.audio-only.display-format-1 .vjs-poster {
  display: none !important;
}

/* Display Format 2: Show video area with black background */
.video-js.audio-only.display-format-2 {
  height: auto;
}

.video-js.audio-only.display-format-2 .vjs-tech {
  display: block;
  background-color: #000;
  position: relative;
}

.video-js.audio-only.display-format-2 .vjs-text-track-display {
  display: none !important;
}

/* Display Format 3: Play/Pause button only - IMPROVED */
.video-js.audio-only.display-format-3 {
  display: inline-block;
  padding: 5px;
  background-color: transparent;
}

.video-js.audio-only.display-format-3 .vjs-tech,
.video-js.audio-only.display-format-3 video,
.video-js.audio-only.display-format-3 .vjs-text-track-display,
.video-js.audio-only.display-format-3 .vjs-poster {
  display: none !important;
}

.video-js.audio-only.display-format-3 .custom-controls-container,
.video-js.audio-only.display-format-3 .custom-controls-left,
.video-js.audio-only.display-format-3 .custom-play-button-container,
.video-js.audio-only.display-format-3 .videojs-drm-play-button {
  width: 100%;
  height: 100%;
}

.video-js.audio-only.display-format-3 .custom-video-control-bar {
  background: transparent;
  height: 100%;
  padding: 0;
}

.video-js.audio-only.display-format-3 .custom-progress-container,
.video-js.audio-only.display-format-3 .custom-controls-right,
.video-js.audio-only.display-format-3 .custom-volume-container,
.video-js.audio-only.display-format-3 .custom-time-display-container {
  display: none;
}

.video-js.audio-only.display-format-3 .videojs-drm-play-button {
  border-radius: 50%;
  background: linear-gradient(135deg, #b9bfde 0%, #89838e 100%);
  outline: 3px solid rgba(255, 255, 255, 0.3);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); */
}

.video-js.audio-only.display-format-3 .videojs-drm-play-button:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
  /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); */
}

.video-js.audio-only.display-format-3 .videojs-drm-play-button svg {
  width: 50%;
  height: 50%;
  fill: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.2s ease;
  z-index: 1;
}

.video-js.audio-only.display-format-3 .videojs-drm-play-button:hover svg {
  transform: scale(1.05);
}

/* .video-js.audio-only.display-format-3 .videojs-drm-play-button:active {
  transform: scale(0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
} */

/* Responsive Design for Buttons */
@media (max-width: 768px) {
  .videojs-drm-button {
    width: 30px;
    height: 30px;
    font-size: 14px;
    padding: 3px;
  }

  /* Smaller SVG icons on tablet */
  .videojs-drm-button > svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .videojs-drm-button {
    width: 20px;
    height: 20px;
    font-size: 12px;
    padding: 3px;
  }

  /* Even smaller SVG icons on mobile */
  .videojs-drm-button > svg {
    width: 16px;
    height: 16px;
  }
}

/* Touch-friendly button sizing */
@media (hover: none) and (pointer: coarse) {
  .videojs-drm-button {
    min-width: 36px;
    min-height: 36px;
    padding: 6px;
  }
}
