.fold-audio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  row-gap: 4px;
  padding: 0 28px 0 0;
}

.fold-audio-row > :is(h2, h3) {
  flex: 1 1 12rem;
  min-width: min(100%, 12rem);
  margin: 0;
}

.fold-audio-row .fold-toggle {
  padding-right: 0;
}

.story-audio {
  position: relative;
  display: flex;
  flex: 0 0 205px;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  width: 205px;
  max-width: 100%;
  height: 25px;
  margin: 0 0 0 auto;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: #d8a526;
  color: #211b0e;
  box-shadow: none;
}

.story-audio button {
  display: inline-flex;
  flex: 0 0 14px;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #211b0e;
  font: 14px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.story-audio button:hover,
.story-audio button:focus-visible {
  background: rgba(33, 27, 14, 0.12);
  outline: 1px solid #211b0e;
  outline-offset: 1px;
}

.story-audio [data-audio-toggle]:disabled {
  opacity: 0.35;
  cursor: default;
}

.story-audio [data-audio-toggle]:disabled:hover,
.story-audio [data-audio-toggle]:disabled:focus-visible {
  background: transparent;
  outline: none;
}

.story-audio-icon {
  font-size: 12px;
  line-height: 1;
}

.story-audio-stop {
  display: block;
  width: 8px;
  height: 8px;
  background: #211b0e;
}

.story-audio-seek {
  --fortschritt: 0%;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 14px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.story-audio-seek:focus-visible {
  outline: 1px solid #211b0e;
  outline-offset: 1px;
}

.story-audio-seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #211b0e var(--fortschritt), rgba(33, 27, 14, 0.28) var(--fortschritt));
}

.story-audio-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  margin-top: -2.5px;
  border: 0;
  border-radius: 50%;
  background: #211b0e;
  cursor: pointer;
}

.story-audio-seek::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #211b0e var(--fortschritt), rgba(33, 27, 14, 0.28) var(--fortschritt));
}

.story-audio-seek::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #211b0e;
  cursor: pointer;
}

.story-audio-time {
  flex: 0 0 32px;
  width: 32px;
  color: #211b0e;
  font: 10px/1 Arial, Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.story-audio-error {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.story-audio audio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 700px) {
  .fold-audio-row {
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-audio button {
    transition: none;
  }
}
