/* ==========================================================================
   Depoimento em áudio (componente experimental)
   Para remover: apague o bloco "DEPOIMENTO EM ÁUDIO" do index.html e os
   links para audio-testimonial.css / audio-testimonial.js no <head>.
   ========================================================================== */

.atm {
  margin-top: 32px;
  max-width: 640px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
@media (min-width: 768px) { .atm { margin-top: 40px; padding: 28px 32px; } }

/* Identificação */
.atm__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.atm__avatar {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--blue-50); color: var(--blue);
  font-family: var(--font-display); font-weight: 500; font-size: .85rem;
}
.atm__who { min-width: 0; flex: 1; }
.atm__name { font-weight: 600; color: var(--ink); font-size: .925rem; line-height: 1.35; }
.atm__role { font-size: .825rem; color: var(--muted); line-height: 1.4; }
.atm__badge {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.atm__badge svg { width: 14px; height: 14px; color: var(--blue); }

/* Trecho transcrito (funciona como prova mesmo sem play) */
.atm__quote p {
  font-family: var(--font-display);
  font-size: 1.05rem; line-height: 1.5; color: var(--ink);
  margin-bottom: 18px;
}
@media (min-width: 768px) { .atm__quote p { font-size: 1.15rem; } }

/* Player */
.atm__player {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px;
  background: var(--paper);
  border-radius: 999px;
}
.atm__play {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--blue); color: #fff;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.atm__play:hover { background: var(--blue-700); }
.atm__play svg { width: 14px; height: 14px; }
.atm__icon-pause { display: none; }
.atm.is-playing .atm__icon-play { display: none; }
.atm.is-playing .atm__icon-pause { display: block; }
.atm.is-loading .atm__play::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--blue);
  animation: atm-spin .8s linear infinite;
}
@keyframes atm-spin { to { transform: rotate(360deg); } }

.atm__track { position: relative; flex: 1; min-width: 0; height: 28px; }
.atm__track:focus-within { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.atm__bars {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.atm__bars span {
  width: 3px; flex: none; border-radius: 2px;
  height: var(--h, 40%);
  background: #C5CCD3;
}
.atm__bars--fill { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.atm__bars--fill span { background: var(--blue); }
.atm__seek {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.atm__time {
  flex: none; min-width: 2.8em; text-align: right;
  font-size: .8rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Transcrição completa */
.atm__transcript { margin-top: 14px; }
.atm__transcript summary {
  display: inline-block; cursor: pointer;
  font-size: .85rem; color: var(--blue);
  list-style: none;
}
.atm__transcript summary::-webkit-details-marker { display: none; }
.atm__transcript summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.atm__transcript p { margin-top: 10px; font-size: .925rem; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .atm.is-loading .atm__play::after { animation-duration: 2s; }
}
