/* Speaker on a vocabulary picture. Sized for a child's finger. Logical properties keep Arabic (rtl) aligned. */
.hear-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  max-width: 100%;
}
.hear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  margin: 0.35rem auto 0;
  padding: 0;
  border: 3px solid #c0392b;
  border-radius: 50%;
  background: #fff;
  color: #c0392b;
  box-shadow: 0 3px 0 #9b2c2c, 0 6px 14px rgba(45, 23, 40, 0.18);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
}
.hear-controls .hear-btn { margin: 0; }
.hear-btn--slow,
.hear-btn--again {
  width: auto;
  padding-inline: 0.75rem;
  border-radius: 999px;
}
.hear-label {
  font-family: 'Nunito', 'Noto Naskh Arabic', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}
.hear-btn svg { display: block; width: 32px; height: 32px; }
.hear-btn:hover,
.hear-btn:focus-visible {
  background: #fff4f2;
  outline: 3px solid #2d3748;
  outline-offset: 3px;
}
.hear-btn:active { transform: translateY(1px); }
.hear-btn.is-playing {
  background: #14643c;
  border-color: #0e4a2c;
  color: #fff;
  box-shadow: 0 3px 0 #0e4a2c, 0 6px 14px rgba(45, 23, 40, 0.18);
}
.hear-btn[hidden] { display: none !important; }
.hear-status {
  flex: 1 0 100%;
  margin: 0.1rem 0 0;
  font-family: 'Nunito', 'Noto Naskh Arabic', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: #742a2a;
  text-align: center;
}
.hear-status[hidden] { display: none !important; }
.flashcard .hear-status { color: #fff; }

html[dir="rtl"] .hear-btn svg { transform: scaleX(-1); }

.word-card .vocab-slot {
  height: auto;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.15rem;
}
.word-card > .hear-controls {
  grid-column: 1 / -1;
  justify-content: flex-start;
}
.word-card .hear-btn { margin-top: 0.15rem; }
.match-card .hear-controls,
.memory-card .hear-controls,
.flashcard .hear-controls,
.quiz-question .hear-controls,
.scramble-area .hear-controls { width: 100%; }
.flashcard.has-art { height: auto; min-height: 0; }
.flashcard.has-art .flashcard-front {
  position: relative;
  height: auto;
  min-height: 420px;
}
.flashcard.has-art .flashcard-back {
  position: absolute;
  inset: 0;
  height: 100%;
}
.flashcard .hear-controls { margin-top: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  .hear-btn { transition: none; }
  .hear-btn:active { transform: none; }
}

@media print {
  .hear-btn { display: none !important; }
  .hear-controls { display: none !important; }
}
