/* MeTeach English — cartão de pronúncia (js/pronunciation.js)
   Arquivo independente: só estiliza o cartão .mtm-pron-card. */
.mtm-pron-card {
  position: fixed;
  z-index: 100050;
  left: 8px;
  top: 8px;
  box-sizing: border-box;
  width: max-content;
  min-width: 190px;
  max-width: min(300px, calc(100vw - 16px));
  padding: 14px 16px 14px;
  background: #fff;
  color: #173b70;
  border: 1px solid #dbe4f0;
  border-top: 3px solid #f5a623;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 37, 72, .18);
  font-family: Nunito, 'Nunito Sans', system-ui, sans-serif;
  text-align: left;
  animation: mtm-pron-in .14s ease-out;
}
.mtm-pron-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: calc(var(--mt-pron-arrow, 24px) - 6px);
  width: 12px;
  height: 12px;
  background: #f5a623;
  transform: rotate(45deg);
  border-radius: 2px;
  z-index: -1;
}
.mtm-pron-card.is-above { border-top: 1px solid #dbe4f0; border-bottom: 3px solid #f5a623; }
.mtm-pron-card.is-above::before { top: auto; bottom: -9px; }
@keyframes mtm-pron-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.mtm-pron-head { display: flex; align-items: center; gap: 8px; }
.mtm-pron-word {
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  color: #173b70;
  overflow-wrap: anywhere;
}
.mtm-pron-card button {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mtm-pron-icon,
.mtm-pron-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #eef3fa;
  color: #1a3a6e;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.mtm-pron-close { background: transparent; color: #8a97ab; font-size: 24px; width: 36px; margin-right: -8px; }
.mtm-pron-icon:hover { background: #dfe9f6; }
.mtm-pron-close:hover { color: #1a3a6e; }

.mtm-pron-ipa {
  margin-top: 4px;
  font-family: 'Charis SIL', 'Doulos SIL', 'Gentium Plus', 'Lucida Sans Unicode', 'Arial Unicode MS', 'Segoe UI', sans-serif;
  font-size: 17px;
  color: #3d5578;
  letter-spacing: .01em;
}
.mtm-pron-ipa.is-loading { color: #b3bfd0; }
.mtm-pron-lang {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #6b7a93;
}
.mtm-pron-listen {
  margin-top: 12px;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: #1a3a6e;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}
.mtm-pron-listen:hover { background: #214985; }
.mtm-pron-play.is-playing { background: #f5a623; color: #10284b; }
.mtm-pron-play:focus-visible,
.mtm-pron-close:focus-visible { outline: 3px solid rgba(245, 166, 35, .55); outline-offset: 2px; }
.mtm-pron-note { margin-top: 10px; font-size: 12px; line-height: 1.45; color: #8a6a1f; }

@media (prefers-reduced-motion: reduce) {
  .mtm-pron-card { animation: none; }
}
