.book-audio-root {
  min-width: 0;
  max-width: 100%;
}

.book-audio-player,
.book-audio-player * {
  box-sizing: border-box;
}

.book-audio-player {
  --book-audio-bg: #061719;
  --book-audio-teal: #0f766e;
  --book-audio-mint: #7ce7d9;
  color-scheme: dark;
  width: 100%;
  min-width: 0;
  max-width: 760px;
  margin: 0;
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid #28635e;
  border-radius: 16px;
  background: var(--book-audio-bg);
  color: #f2fbf9;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
}

.book-audio-player--compact {
  max-width: 600px;
}

.book-audio-player .book-audio-heading {
  margin: 0 0 8px;
  padding: 0;
  color: #f2fbf9;
  font-family: inherit;
  font-size: clamp(21px, 4vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
}

.book-audio-player .book-audio-disclosure {
  margin: 0 0 18px;
  padding: 0;
  color: #c4dcd8;
  font-size: 14px;
  line-height: 1.5;
}

.book-audio-player .book-audio-element {
  display: none;
}

.book-audio-player .book-audio-label {
  display: block;
  min-width: 0;
  margin: 0;
  color: #e5f3f0;
  font-size: 14px;
  font-weight: 600;
}

.book-audio-player .book-audio-select,
.book-audio-player .book-audio-speed,
.book-audio-player .book-audio-share-url {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 9px 10px;
  border: 1px solid #6da09a;
  border-radius: 8px;
  background: #0c292c;
  color: #f2fbf9;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: normal;
}

.book-audio-player .book-audio-select,
.book-audio-player .book-audio-share-url {
  display: block;
  width: 100%;
}

.book-audio-player .book-audio-select option,
.book-audio-player .book-audio-select optgroup,
.book-audio-player .book-audio-speed option {
  background: #0c292c;
  color: #f2fbf9;
}

.book-audio-player .book-audio-track-title {
  margin: 16px 0 12px;
  padding: 0;
  color: #f2fbf9;
  font-family: inherit;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: normal;
}

.book-audio-player .book-audio-transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}

.book-audio-player .book-audio-play,
.book-audio-player .book-audio-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 72px;
  min-height: 44px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--book-audio-mint);
  border-radius: 9px;
  background: var(--book-audio-mint);
  color: var(--book-audio-bg);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.book-audio-player .book-audio-play:hover,
.book-audio-player .book-audio-retry:hover {
  background: #b7f4ec;
}

.book-audio-player .book-audio-time {
  flex: 1 1 auto;
  color: #e5f3f0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.book-audio-player .book-audio-speed-label {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: #e5f3f0;
  font-size: 14px;
}

.book-audio-player .book-audio-speed {
  width: 79px;
  margin: 0;
  padding: 9px 5px;
}

.book-audio-player .book-audio-waveform {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 76px;
  margin: 14px 0 4px;
  padding: 8px 0;
  border-radius: 6px;
  background: #0a2427;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
}

.book-audio-player .book-audio-waveform svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.book-audio-player .book-audio-peaks-base {
  fill: #639993;
}

.book-audio-player .book-audio-peaks-played {
  fill: var(--book-audio-mint);
}

.book-audio-player .book-audio-seek-rail {
  width: 100%;
  height: 6px;
  background: #639993;
}

.book-audio-player .book-audio-seek-progress {
  width: 0;
  height: 100%;
  background: var(--book-audio-mint);
}

.book-audio-player .book-audio-seek-help,
.book-audio-player .book-audio-remember-help {
  margin: 4px 0 10px;
  padding: 0;
  color: #c4dcd8;
  font-size: 14px;
  line-height: 1.5;
}

.book-audio-player .book-audio-status {
  margin: 8px 0;
  padding: 0;
  color: var(--book-audio-mint);
  font-size: 14px;
  line-height: 1.5;
}

.book-audio-player .book-audio-status:empty {
  display: none;
}

.book-audio-player .book-audio-error {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #edb9a8;
  border-radius: 8px;
  background: #3b2420;
  color: #ffe2d8;
  font-size: 14px;
}

.book-audio-player .book-audio-error p {
  margin: 0 0 10px;
  padding: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.book-audio-player .book-audio-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  min-width: 0;
  margin: 8px 0;
}

.book-audio-player .book-audio-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--book-audio-mint);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}

.book-audio-player .book-audio-link:hover {
  color: #b7f4ec;
}

.book-audio-player .book-audio-manual-share {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #28635e;
  border-radius: 8px;
}

.book-audio-player .book-audio-share-url {
  font-size: 14px;
}

.book-audio-player .book-audio-remember {
  margin: 14px 0;
  padding: 14px 0 0;
  border-top: 1px solid #28635e;
}

.book-audio-player .book-audio-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  color: #e5f3f0;
  font-size: 14px;
  cursor: pointer;
}

.book-audio-player .book-audio-remember-label input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--book-audio-teal);
}

.book-audio-player .book-audio-transcript {
  min-width: 0;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid #28635e;
  color: #e5f3f0;
  font-size: 15px;
}

.book-audio-player .book-audio-transcript summary {
  display: list-item;
  min-height: 44px;
  margin: 0;
  padding: 12px 0;
  color: var(--book-audio-mint);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.book-audio-player .book-audio-transcript-body {
  max-height: 360px;
  margin: 0;
  padding: 0 8px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #639993 #0a2427;
}

.book-audio-player .book-audio-transcript-body p {
  margin: 0 0 14px;
  padding: 0;
  color: #e5f3f0;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.book-audio-player [hidden] {
  display: none !important;
}

.book-audio-player button:disabled,
.book-audio-player select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.book-audio-player button:focus-visible,
.book-audio-player a:focus-visible,
.book-audio-player select:focus-visible,
.book-audio-player input:focus-visible,
.book-audio-player summary:focus-visible,
.book-audio-player .book-audio-transcript-body:focus-visible,
.book-audio-player .book-audio-waveform:focus-visible {
  outline: 3px solid #b7f4ec;
  outline-offset: 3px;
}

@media (max-width: 390px) {
  .book-audio-player .book-audio-transport {
    gap: 8px;
  }

  .book-audio-player .book-audio-time {
    flex-grow: 0;
  }

  .book-audio-player .book-audio-speed-label {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-audio-player,
  .book-audio-player * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.book-audio-player .book-audio-quote-share {
  margin: 12px 0 0;
  border-top: 1px solid #28635e;
  color: #e5f3f0;
}
.book-audio-player .book-audio-quote-share > summary {
  min-height: 44px;
  padding: 12px 0;
  color: #7ce7d9;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.book-audio-player .book-audio-quote-help,
.book-audio-player .book-audio-quote-status {
  margin: 8px 0;
  color: #c4dcd8;
  font-size: 14px;
  line-height: 1.5;
}
.book-audio-player .book-audio-quote-status { color: #7ce7d9; }
.book-audio-player .book-audio-quote-status:empty { display: none; }
.book-audio-player .book-audio-quote-text,
.book-audio-player .book-audio-quote-time,
.book-audio-player .book-audio-quote-manual-text {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 6px 0 10px;
  padding: 10px;
  border: 1px solid #6da09a;
  border-radius: 8px;
  background: #0c292c;
  color: #f2fbf9;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
}
.book-audio-player .book-audio-quote-text::placeholder { color: #c4dcd8; opacity: 1; }
.book-audio-player .book-audio-quote-text,
.book-audio-player .book-audio-quote-manual-text { resize: vertical; overflow-wrap: anywhere; }
.book-audio-player .book-audio-quote-time { max-width: 160px; font-variant-numeric: tabular-nums; }
.book-audio-player .book-audio-quote-time[aria-invalid="true"] { border-color: #edb9a8; }
.book-audio-player .book-audio-quote-time-row,
.book-audio-player .book-audio-quote-actions,
.book-audio-player .book-audio-quote-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  min-width: 0;
}
.book-audio-player .book-audio-quote-social { flex-basis: 100%; }
.book-audio-player .book-audio-quote-social a[aria-disabled="true"] { opacity: .65; cursor: not-allowed; text-decoration: none; }
.book-audio-player .book-audio-use-quote { margin: -8px 0 10px; }
.book-audio-player .book-audio-transcript-paragraph { min-width: 0; }
.book-audio-player textarea:focus-visible { outline: 3px solid #b7f4ec; outline-offset: 3px; }
