.custom-video-player {
  position: relative;
  max-width: 800px; /* Maximum width for the video player */
  background-color: #000;
  font-family: Arial, sans-serif;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
.video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (height/width = 9/16 = 0.5625) */
  background-color: #000;
}
  
#custom-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video covers the container without black borders */
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: #333;
  color: #fff;
}
.controls button,
.controls input {
  margin: 0 5px;
}

#progress {
  flex: 1;
}

  
button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px 10px;
}

button:hover {
  color: #00adef;
}
  
.controls svg {
  max-width: 20px;
  max-height: 20px;
  color: white;
}


/* Progress bar container */
#progress-bar-container {
  width: 100%;
  height: 8px;
  background: #444;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

/* Filled portion of the progress bar */
#progress-bar-filled {
  width: 0%;
  height: 100%;
  background: #00adef;
  transition: width 0.1s linear; /* Smooth fill effect */
}

/* Tooltip styling remains the same */
.progress-tooltip {
  position: absolute;
  top: -30px;
  left: 0;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
}
