/* audio-chapter.css — v4.62
   Tiny Amazon-style audio button + minimal mini-player.
   Sits next to chapter titles, takes minimal space, expands only on click.
*/

.audio-chapter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(174, 134, 54, 0.45);
  color: var(--gold, #AE8636);
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 12px;
  transition: all 0.18s ease;
  line-height: 1;
  font-weight: 500;
  position: relative;
  top: -3px;
}
.audio-chapter-btn:hover {
  background: var(--gold, #AE8636);
  color: var(--paper, #FBF7EC);
  border-color: var(--gold, #AE8636);
}
.audio-chapter-btn:hover svg { color: var(--paper, #FBF7EC); }
.audio-chapter-btn svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  transition: color 0.18s ease;
}
.audio-chapter-btn-label {
  display: inline-block;
}
@media (max-width: 540px) {
  .audio-chapter-btn-label { display: none; }
  .audio-chapter-btn { padding: 5px 7px; }
}

/* Mini-player — appears below the chapter title after click */
.audio-chapter-player {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper, #FBF7EC);
  border: 1px solid rgba(174, 134, 54, 0.4);
  border-radius: 10px;
  padding: 7px 12px;
  margin: 10px 0 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12.5px;
  color: var(--ink, #1F1A14);
  max-width: 480px;
  box-shadow: 0 2px 8px rgba(31, 26, 20, 0.06);
  animation: acp-slide-in 0.2s ease-out;
}
@keyframes acp-slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.acp-btn {
  background: transparent;
  border: none;
  color: var(--maroon, #8A322A);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.acp-btn:hover {
  background: rgba(138, 50, 42, 0.08);
}
.acp-status {
  flex: 1;
  font-size: 12px;
  font-style: italic;
  color: var(--ink-fade, #5a4d3a);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acp-close {
  font-size: 17px;
  font-style: normal;
  width: 22px;
  height: 22px;
  margin-left: 2px;
}
