.video-container {
  position: relative;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
  height: auto;
}

.video-container video {
  width: 100%;
  cursor: pointer;
}
.video-container:fullscreen video {
	max-width: 100%;
	height: 90%;
	margin: auto;
	z-index: 99;
}
/**/

.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.video-container:hover .controls {
  opacity: 1;
}

.video-container:not(:hover) .controls {
  opacity: 0.3;
}

.control-buttons-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

button, .control-button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: white;
  margin: 0 5px;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
}

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

button:active {
  transform: scale(0.95);
}

/* Play/pause button */
.play-pause-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

svg {
  fill: white;
  width: 24px;
  height: 24px;
}
.pause-icon {
  display: none;
}


.volume-control {
  display: inline-flex;
  align-items: center;
  margin: 0 10px;
  width: 80px;
  position: relative;
}
.volume-high-icon {
  display: block;
}
.volume-icon, .mute-icon{
  display: none;
}

.volume-slider-container {
  display: flex;
  align-items: center;
  width: 80px;
}

#volume-slider {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  border-radius: 5px;
  transition: opacity 0.2s;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

#volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.progress-container {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0 15px;
}

.progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  margin-right: 10px;
}

.progress-filled {
  width: 0%;
  height: 100%;
  background: #ff0000;
  border-radius: 5px;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.1s ease-in-out;
}

.progress-bar:hover .progress-filled {
  background: #ff3333;
}

.time-display {
  color: #fff;
  font-size: 0.85em;
  min-width: 100px;
  text-align: center;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .controls {
    padding: 5px;
  }
  
  .play-pause-button {
    width: 36px;
    height: 36px;
  }
  
  svg {
    width: 20px;
    height: 20px;
  }
  
  #volume-slider {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .play-pause-button {
    width: 32px;
    height: 32px;
  }
  
  svg {
    width: 18px;
    height: 18px;
  }
  
  #volume-slider {
    width: 40px;
  }
}
