/* =========================================================
   AI Kids Teacher — voice settings & pronunciation test page
   Reuses style.css and alphabet.css (hero, buddy, round buttons).
   ========================================================= */
.vs-hero { background: linear-gradient(120deg, rgba(255,255,255,.92), rgba(237,233,254,.85) 55%, rgba(209,250,229,.85)); }

.vs-card {
  margin-top: 22px; padding: 22px clamp(14px, 3vw, 28px);
  border-radius: var(--radius-lg); background: rgba(255,255,255,.94); box-shadow: var(--shadow);
}
.vs-card h2 { font-size: 1.45rem; color: var(--blue-900); margin-bottom: 10px; }
.vs-lead { color: var(--ink-soft); font-weight: 700; margin-bottom: 12px; }
.vs-flag { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(30,42,90,.15); flex: none; }

/* Status */
.vs-banner { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 800; margin-bottom: 12px; }
.vs-banner.is-ok { background: #ecfdf5; color: #065f46; }
.vs-banner.is-warn { background: #fffbeb; color: #92400e; }
.vs-status { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.vs-status li { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--blue-50); font-weight: 700; }
.vs-status li b { min-width: 90px; }
.vs-status li.is-warn { background: #fffbeb; color: #92400e; }
.vs-status li span { overflow-wrap: anywhere; }

/* Voice per language */
.vs-langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vs-lang { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--blue-50); }
.vs-lang__title { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; color: var(--blue-900); }
.vs-lang__title small { font-family: var(--font-body, inherit); font-size: .8rem; color: var(--ink-soft); font-weight: 800; }
.vs-select, #vsCustomLang {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 14px;
  border: 2px solid var(--blue-200); background: #fff; font: inherit; font-weight: 700; color: var(--ink);
}
.vs-select:disabled { opacity: .6; }
.vs-test { align-self: flex-start; }
.vs-browser { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 2px dashed var(--blue-200); }
.vs-tip { font-size: .85rem; font-weight: 700; color: #92400e; background: #fffbeb; border-radius: 12px; padding: 8px 10px; }
.vs-src { min-height: 1.3em; font-weight: 800; font-size: .88rem; color: #047857; overflow-wrap: anywhere; }
.vs-src.is-warn { color: #b45309; }

.seg { display: inline-flex; background: var(--blue-50); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; min-height: 40px; font-weight: 900; color: var(--ink-soft); }
.seg button.is-on { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.vs-lang .seg { background: #fff; align-self: flex-start; }
.vs-lang .seg button.is-on { background: var(--blue-100); }
.seg--wrap { flex-wrap: wrap; border-radius: 22px; }

/* General settings */
.vs-general { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 20px; align-items: start; }
.vs-field { display: flex; flex-direction: column; gap: 8px; }
.vs-field__label { font-weight: 900; color: var(--blue-900); }
.vs-field input[type="range"] { width: 100%; accent-color: var(--blue-600); min-height: 32px; }
.vs-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: var(--ink); }
.vs-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue-600); flex: none; }
.vs-player { display: flex; gap: 10px; }
.vs-player .round-btn:disabled { opacity: .45; cursor: default; }

/* Kazakh letters */
.vs-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.vs-summary { font-weight: 900; color: var(--ink-soft); }
.vs-letters { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.vs-letter {
  display: grid; grid-template-columns: 64px minmax(110px, 160px) 1fr auto; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius); background: var(--blue-50);
}
.vs-letter__l { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--purple-500); text-align: center; line-height: 1; }
.vs-letter__w { font-weight: 900; font-size: 1.15rem; color: var(--blue-900); }
.vs-letter__play { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-letter__mark { display: flex; align-items: center; gap: 6px; }
.vs-letter__who { font-weight: 800; color: var(--ink-soft); font-size: .8rem; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chip-btn {
  border: 2px solid var(--blue-200); background: #fff; color: var(--blue-700);
  border-radius: 999px; padding: 6px 12px; min-height: 38px; font-weight: 900; font-size: .9rem;
}
.chip-btn:hover:not(:disabled) { background: var(--blue-100); }
.chip-btn:disabled { opacity: .45; cursor: not-allowed; }
.chip-btn--warn { border-color: #fcd34d; color: #92400e; background: #fffbeb; }
.mark-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; background: #fff; font-size: 1.1rem; }
.mark-btn.is-on { border-color: var(--blue-600); background: var(--blue-100); }

/* Samples */
.vs-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vs-sample { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--blue-50); }
.vs-sample__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vs-sample__list li { display: grid; gap: 6px; }
.vs-sample__list p { font-weight: 800; color: var(--ink); }

.vs-custom { display: grid; grid-template-columns: 1fr 200px auto; gap: 12px; align-items: end; margin-top: 18px; }
.vs-custom textarea { width: 100%; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--blue-200); font: inherit; font-weight: 700; resize: vertical; }
.vs-custom .vs-src { grid-column: 1 / -1; }

.vs-note { background: #fffbeb; }
.vs-note p { font-weight: 700; color: #78350f; }

@media (max-width: 960px) {
  .vs-langs, .vs-samples { grid-template-columns: minmax(0, 1fr); }
  .vs-general { grid-template-columns: minmax(0, 1fr); }
  .vs-letter { grid-template-columns: 52px minmax(0, 1fr); }
  .vs-letter__play, .vs-letter__mark { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .vs-custom { grid-template-columns: minmax(0, 1fr); }
  .vs-letter__l { font-size: 2.1rem; }
}
