/* ===================================================
   Custom Video Player Styles (Fixed Layout & SVG Sizes)
   =================================================== */

.two-box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

@media (max-width: 768px) {
  .two-box-grid {
    grid-template-columns: 1fr;
  }
}

.media-video-box {
  width: 100%;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden; /* Keeps icons from breaking out */
  cursor: pointer;

}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

/* Transparent Click Area */
.video-click-surface {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

/* Center Play/Pause Pop Badge Indicator (FIXED SIZE) */
.play-pause-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  transform: translate(-50%, -50%) scale(0.6);
  background: rgba(18, 18, 18, 0.85);
  border: 2px solid #e62b4a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 15;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(6px);
}

/* Explicit constraint on inner SVGs so they never explode */
.play-pause-badge svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  display: block;
  fill: #ffffff;
}

.play-pause-badge.show-badge {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Floating Audio Controller */
.custom-audio-controller {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

/* Mute / Unmute Button */
.volume-toggle-btn {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
  padding: 0;
}

.volume-toggle-btn:hover {
  background: #e62b4a;
  border-color: #e62b4a;
  transform: scale(1.08);
}

.volume-toggle-btn svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
  fill: currentColor;
}

/* Bottom-to-Top Vertical Slider Container */
.volume-slider-box {
  position: absolute;
  bottom: 44px;
  padding: 10px 6px;
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.custom-audio-controller:hover .volume-slider-box,
.custom-audio-controller:focus-within .volume-slider-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Vertical Slider (Site Red Theme) */
.vertical-slider {
  appearance: slider-vertical;
  -webkit-appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl; /* Bottom = 0, Top = 100 */
  width: 6px;
  height: 80px;
  outline: none;
  cursor: pointer;
  accent-color: #e62b4a;
}