/* Main controls container and button styles */

.prestoplay-custom-controls.modern {
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  margin: 0;
  padding: 12px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10;
  background: #000;
}

/* Fullscreen controls - overlay on video */
:fullscreen .prestoplay-custom-controls.modern,
:-webkit-full-screen .prestoplay-custom-controls.modern,
:-moz-full-screen .prestoplay-custom-controls.modern,
:-ms-fullscreen .prestoplay-custom-controls.modern {
  position: absolute;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.prestoplay-custom-controls.modern.audio-only {
  height: 100% !important;
  border-radius: 12px;
  background: rgba(24, 24, 32, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure proper spacing when controls are hidden in audio-only mode */
.prestoplay-custom-controls.audio-only .pp-right-controls {
  gap: 12px; /* Increase gap to account for hidden controls */
}

.pp-left-controls,
.pp-right-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
}

.pp-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

/* Button styles */
.prestoplay-control-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px !important;
  min-height: 28px !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 15px !important;
  padding: 0 !important;
  border-radius: 6px !important;
}

.prestoplay-control-btn:hover,
.prestoplay-control-btn:focus {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

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

/* Small button variant */
.pp-btn-small {
  min-width: 36px !important;
  min-height: 36px !important;
  width: 40px !important;
  height: 40px !important;
  background: transparent !important;
  border-radius: 8px !important;
  border: none !important;
  color: #fff !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

/* Fullscreen button */
.pp-fs-btn,
.prestoplay-volume-btn {
  background: transparent !important;
  border: none !important;
  color: white !important;
  padding: 0px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  font-size: 16px !important;
  min-width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease !important;
}

/* Play button specific hover */
.prestoplay-play-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Volume button specific hover */
.prestoplay-volume-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Fullscreen button specific hover */
.pp-fs-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Settings button specific hover */
.pp-settings-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Subtitle toggle button specific hover */
.pp-subtitle-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Display utilities */
.pp-display-none {
  display: none !important;
}

.pp-display-block {
  display: block !important;
}

/* Control visibility utilities */
.pp-controls-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.pp-controls-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide mouse cursor when control bar is hidden */
.clpp-container.hide-cursor {
  cursor: none !important;
} 