/* Logo container */
 div#banner { 
   position: fixed; 
   top: -10%; 
   left: -10%;
   width: 120%;
   height: 120%;
       }
   div#banner-content { 
   position: fixed;
   top: 115px;
   left: 50%;
   transform: translate(-50%, -50%);
}

/* Page whatnottery */
  body {
background-color: #939393;
}

/* Video container */
.video-container {
  width: 55%;
  margin-top: 240px;
  background-color: #000;
  position: fixed;
  right: 22.5%; /* Adjust video centering */
  border-radius: 4px;
  overflow: hidden;
}

#videoElement {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #000;
}

/* Hide native controls but allow them as a fallback */
#videoElement::-webkit-media-controls {
  display: none !important;
}

#videoElement::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Player controls styling */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
  pointer-events: none; /* Allow clicks to pass through to video by default */
}

.player-controls * {
  pointer-events: auto; /* Re-enable pointer events for controls' children */
}

/* Desktop hover controls */
@media (hover: hover) {
  .video-container:hover .player-controls,
  .player-controls:focus-within {
    opacity: 1;
  }
}

/* Mobile controls - always visible */
@media (hover: none) {
  .player-controls {
    opacity: 1; /* Always visible on mobile */
    padding: 0px; /* Larger touch targets */
  }
}

.control-button {
  background: transparent;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 2px;
  transition: background-color 0.2s;
  z-index: 30;
  touch-action: manipulation; /* Improve touch behavior */
}

@media (max-width: 480px) {
  .control-button {
    width: 44px; /* Larger buttons on small screens */
    height: 44px;
  }
}

.control-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.control-button:active {
  background-color: rgba(255, 255, 255, 0.3);
}

.control-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.left-controls, 
.right-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.control-icon {
  width: 20px;
  height: 20px;
  fill: white;
}

@media (max-width: 480px) {
  .control-icon {
    width: 24px; /* Larger icons on small screens */
    height: 24px;
  }
}

/* Volume control */
.volume-container {
  display: flex;
  align-items: center;
  position: relative;
}

.volume-slider {
  width: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-left: 5px;
  transition: width 0.2s;
  position: relative;
  overflow: hidden;
}

/* Show volume control on desktop hover */
@media (hover: hover) {
  .volume-container:hover .volume-slider {
    width: 60px;
  }
}

.volume-level {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background-color: #4CAF50;
  border-radius: 2px;
}

/* Status overlay */
.status-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.status-overlay.active {
  opacity: 1;
}