/* Custom Audio Player CSS - Root Stylesheet */

.custom-audio-player {
  display: flex;
  align-items: center;
  width: 300px;
  height: 40px;
  background-color: #2a2a2e;
  border-radius: 8px;
  padding: 0 10px;
  box-sizing: border-box;
  color: #f9f9fa;
  font-family: 'Open Sans', 'Roboto', sans-serif;
  user-select: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s, box-shadow 0.2s;
  margin: 10px 0;
}

.custom-audio-player:hover {
  background-color: #323236;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.custom-audio-player button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background-color 0.2s, transform 0.1s;
}

.custom-audio-player button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.custom-audio-player button:active {
  transform: scale(0.9);
}

.custom-audio-player button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.custom-audio-player .time-display {
  font-size: 11px;
  color: #b1b1b3;
  width: 72px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Progress range slider styling */
.custom-audio-player input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  flex: 1;
  margin: 0 8px;
  height: 20px;
}

.custom-audio-player input[type="range"]:focus {
  outline: none;
}

/* Track styling - Webkit */
.custom-audio-player input[type="range"]::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.2);
  height: 4px;
  border-radius: 2px;
  transition: background 0.2s;
}

.custom-audio-player input[type="range"]:hover::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.35);
}

/* Thumb styling - Webkit */
.custom-audio-player input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background-color: #ff3b30; /* red accent matching the page's red theme */
  height: 12px;
  width: 12px;
  border-radius: 50%;
  margin-top: -4px; /* center thumb on track */
  transition: transform 0.1s, background-color 0.2s;
}

.custom-audio-player input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.3);
  background-color: #ff453a;
}

/* Track styling - Firefox */
.custom-audio-player input[type="range"]::-moz-range-track {
  background: rgba(255, 255, 255, 0.2);
  height: 4px;
  border-radius: 2px;
  transition: background 0.2s;
}

.custom-audio-player input[type="range"]:hover::-moz-range-track {
  background: rgba(255, 255, 255, 0.35);
}

/* Thumb styling - Firefox */
.custom-audio-player input[type="range"]::-moz-range-thumb {
  background-color: #ff3b30;
  border: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  transition: transform 0.1s, background-color 0.2s;
  cursor: pointer;
}

.custom-audio-player input[type="range"]:active::-moz-range-thumb {
  transform: scale(1.3);
  background-color: #ff453a;
}
