/* Progress Bar Styles */
.custom-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.custom-progress-loaded {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  width: 0%;
}

.custom-progress-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #ff0000;
  border-radius: 2px;
  width: 0%;
}

.custom-progress-handle {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #ff0000;
  border-radius: 50%;
  transform: translateY(-50%) translateX(-50%);
  opacity: 1;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

/* Progress Bar Tooltip */
.custom-progress-tooltip {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none; /* Allow clicks to pass through to the progress bar */
  z-index: 1000;
  text-align: center;
}

/* Responsive Design for Progress Bar */
@media (max-width: 768px) {  
  .custom-progress-container {
    height: 5px;
  }

  .custom-progress-handle {
    width: 11px;
    height: 11px;
  }

  .custom-progress-tooltip {
    font-size: 10px;
    padding: 3px;
  }
}

@media (max-width: 480px) {
  .custom-progress-container {
    height: 4px;
  }

  .custom-progress-handle {
    width: 10px;
    height: 10px;
  }

  .custom-progress-tooltip {
    font-size: 9px;
    padding: 2px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .custom-progress-tooltip {
    font-size: 10px;
    padding: 3px;
  }
}
