/* Compact custom audio controls (mini player) */

.audio-mini-player {
  --tcm-accent: #ffffff; /* Slider's accent color, used for the slider thumb. */
  --bg: rgba(0, 0, 0, 0.35);
  --fg: #ffffff; /* Play button and time text color */
  --muted: rgba(255,255,255,0.7);

  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  /* shorter vertical footprint */
  padding: 5px 5px;
  color: var(--fg);
}


.audio-mini-player__row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.audio-mini-player__btn {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: var(--fg);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.audio-mini-player__btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,255,255,0.35);
}

.audio-mini-player__time {
  font-size: 12px;
  color: var(--muted);
  min-width: 68px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.audio-mini-player__slider {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Keep the slider compact */
.audio-mini-player__range {
  width: 100%;
  background: rgb(46, 46, 46);
  height: 5px;
}

.audio-mini-player__range::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

.audio-mini-player__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tcm-accent);
  margin-top: -5px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.14);
}

.audio-mini-player__range::-moz-range-track {
  height: 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

.audio-mini-player__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tcm-accent);
  border: none;
}

.audio-mini-player__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

