.inline-audio-player {
  padding: 8px 2px;
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

/* Labels here are sentences, not words. Left inline they eat the row and
   collapse the track to nothing, so the title gets its own line. */
.audio-title {
  flex: 0 0 100%;
}

.audio-play-btn {
  background: none;
  color: black;
  border: none;
  padding: 0;
  width: 1.4em;
  font-size: 16px;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-play-btn:hover {
  color: #777;
}

/* Container is a tall, transparent click target; the visible 2px track is
   drawn by ::before so seeking isn't a 2px-tall bullseye. Children are
   pointer-events: none so a click always reports offsetX against the
   container -- otherwise clicks landing on the filled bar seek short. */
.audio-progress-container {
  flex-grow: 1;
  min-width: 80px;
  position: relative;
  height: 14px;
  cursor: pointer;
}

.audio-progress-container::before,
.audio-progress-bar {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  transform: translateY(-50%);
  pointer-events: none;
}

.audio-progress-container::before {
  width: 100%;
  background-color: #ddd;
}

.audio-progress-bar {
  width: 0%;
  background-color: black;
}

.audio-time {
  font-size: 14px;
  color: #777;
  white-space: nowrap;
}

.audio-volume {
  display: flex;
  align-items: center;
  gap: 5px;
}

.audio-volume input {
  width: 50px;
  accent-color: black;
}
