/* Speaker on a vocabulary picture. Sized for a child's finger. Logical properties keep Arabic (rtl) aligned. */
.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-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; }

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-btn { margin-top: 0.15rem; }

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

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