@charset "UTF-8";
/* ============================================================
   VOICES PAGE — Section wrapper
   Structure:
     <section class="zg-section zg-voices-page" id="voicesPageRoot">
       <div class="containerv2 voices-page">
         <h1> / <p> / filters / cards
       </div>
     </section>
   zg-section → padding + positioning
   containerv2 → max-width + centering
   voices-page → scope for all voice-specific styles
   ============================================================ */
/* Override .zg-section padding — voices page needs less vertical space */
.zg-voices-page {
  padding-top: 32px;
  padding-bottom: 48px;
}

/* When lang dropdown is open — ensure enough vertical space so it never clips */
.voices-page:has(.lang-menu.open) .voicesListWrap {
  min-height: min(70vh, 520px);
}

/* Zero out containerv2 legacy padding (same as other sections) */
.zg-voices-page .containerv2 {
  padding: 0;
}

/* Kill legacy .oh overflow on this page */
.zg-voices-page .oh {
  overflow: visible;
}

/* ── Page header typography ── */
.voices-page h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 8px;
}

.voices-page h1 + p {
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
  max-width: none;
  margin: 0 0 4px;
}

/* ── Language selector top bar — full width ── */
.voices-page .voicesLangTop {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hide native <select> — use styled .xDrop instead */
.voices-page .voicesLangTop select.audioSelector {
  display: none;
}

/* Reset legacy uiDD wrapper — full width */
.voices-page .uiDD.voices-lang-dd {
  border: none;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* ============================================================
   FILTERS BAR
   ============================================================ */
.voices-page .voicesFilters {
  margin: 0 0 24px;
}

/* ── Filters area — subtle background bar ── */
.voices-page .voicesFilters {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-top: 12px;
  padding: 16px 20px;
}

.voices-page .voicesFiltersTop {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Filters toggle button — icon only, text hidden ── */
.voices-page .bttnFilters {
  min-height: 36px;
  width: 36px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  /* Filter icon via CSS mask — 3 horizontal lines */
}
.voices-page .bttnFilters::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: #475569;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M2 4h12M4 8h8M6 12h4' stroke='currentColor' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M2 4h12M4 8h8M6 12h4' stroke='currentColor' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}
.voices-page .bttnFilters:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.voices-page .bttnFilters:hover::before {
  background: #1e293b;
}
.voices-page .bttnFilters {
  /* Active state — filters applied (JS toggles .is-filtered) */
}
.voices-page .bttnFilters.is-filtered {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.voices-page .bttnFilters.is-filtered::before {
  background: #2563eb;
}
.voices-page .bttnFilters.is-filtered:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

/* ── Search input ── */
.voices-page .searchwrap {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  margin-bottom: 0; /* kill legacy bottom margin */
}

.voices-page .voicesSearch,
.voices-page .searchlang {
  width: 100%;
  height: 36px;
  margin: 0; /* kill legacy margins — keeps searchwrap tight */
  padding: 0 36px 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #0f172a;
  box-sizing: border-box;
  line-height: 36px;
  transition: border-color 0.15s;
}
.voices-page .voicesSearch::placeholder,
.voices-page .searchlang::placeholder {
  color: #94a3b8;
}
.voices-page .voicesSearch:focus,
.voices-page .searchlang:focus {
  border-color: #2563eb;
  outline: none;
}

/* ── Voice search — icon button ──
   Default: magnifying glass (decorative, non-interactive).
   .clr (JS adds when input has text): × cross, clears field. */
.voices-page .voicesSearchClear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: none;
  border: none;
  border-radius: 4px;
  padding: 0;
  font-size: 0;
  pointer-events: none; /* decorative — no click */
  cursor: default;
  transition: color 0.15s;
  /* 🔍 Magnifying glass — default state */
}
.voices-page .voicesSearchClear::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Ccircle cx='7' cy='7' r='5.25' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Ccircle cx='7' cy='7' r='5.25' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}
.voices-page .voicesSearchClear {
  /* × cross SVG — hidden by default */
}
.voices-page .voicesSearchClear svg {
  display: none;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.voices-page .voicesSearchClear {
  /* ✕ Field has text — swap to × cross, enable click */
}
.voices-page .voicesSearchClear.clr {
  pointer-events: auto;
  cursor: pointer;
  color: #64748b;
}
.voices-page .voicesSearchClear.clr::before {
  display: none;
}
.voices-page .voicesSearchClear.clr svg {
  display: block;
}
.voices-page .voicesSearchClear.clr:hover {
  color: #1e293b;
}

/* ── Language search — icon button (.lupa) ──
   Same pattern as .voicesSearchClear: magnifying glass → × on .clr.
   Prod .lupa has background: url(lupa.svg) → killed, we use CSS mask. */
.voices-page .lupa {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: none;
  background-image: none; /* kill prod lupa.svg / clr.svg */
  border: none;
  border-radius: 4px;
  padding: 0;
  font-size: 0;
  pointer-events: none; /* decorative — no click */
  cursor: default;
  transition: color 0.15s;
  /* 🔍 Magnifying glass — default state */
}
.voices-page .lupa::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Ccircle cx='7' cy='7' r='5.25' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Ccircle cx='7' cy='7' r='5.25' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}
.voices-page .lupa {
  /* × cross SVG — hidden by default */
}
.voices-page .lupa svg {
  display: none;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.voices-page .lupa:hover {
  filter: none; /* kill prod hover filter */
}
.voices-page .lupa {
  /* ✕ Field has text — swap to × cross, enable click */
}
.voices-page .lupa.clr {
  pointer-events: auto;
  cursor: pointer;
  color: #64748b;
}
.voices-page .lupa.clr::before {
  display: none;
}
.voices-page .lupa.clr svg {
  display: block;
}
.voices-page .lupa.clr:hover {
  color: #1e293b;
}

/* ── Filters panel ── */
.voices-page .filtersPanel {
  margin-top: 14px;
}

.voices-page .filtersRow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-end;
}

/* ============================================================
   FILTER GROUPS — .zg-filter-group wraps label + chip list
   ============================================================ */
.voices-page .zg-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 5px;
  align-items: center;
  /* Label takes full row, chips flow inline after it */
}
.voices-page .zg-filter-group .zg-filter-group__label {
  width: 100%;
}

.voices-page .zg-filter-group__label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  white-space: nowrap;
  line-height: 1;
}

/* ============================================================
   SORT / FILTER CHIPS — V5 chip system (sharp corners)
   ============================================================ */
.voices-page .sortBox {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.voices-page .sortBox li {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  min-height: 32px;
  display: flex;
  align-items: stretch; /* label fills full height */
  padding: 0; /* padding moved to label */
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  background: #fff;
  transition: all 0.15s;
  user-select: none;
}
.voices-page .sortBox li:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}
.voices-page .sortBox li label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 12px; /* click target = full chip area */
  width: 100%;
}

/* Active filter chip — needs clear visual distinction */
.voices-page .sortBox li.cheched {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
  font-weight: 600;
}

/* Disabled filter chip */
.voices-page .sortBox li.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Hide native radio */
.voices-page .sortBox input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Binary filter groups (only 2 options: All + feature)
   Hide "All" chip — the feature chip acts as a toggle.
   When neither is visually active → feature is off (ghost state).
   When feature chip is .cheched → feature is on.
   "All" radio still exists in DOM for JS state management. */
.voices-page .sortBox.styles,
.voices-page .sortBox.intonation,
.voices-page .sortBox.multilang {
  /* Hide the "All" li (first child) — keep for JS */
}
.voices-page .sortBox.styles > li:first-child,
.voices-page .sortBox.intonation > li:first-child,
.voices-page .sortBox.multilang > li:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   LANGUAGE DROPDOWN (.xDrop) — override legacy
   ============================================================ */
.voices-page .xDrop {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  transition: border-color 0.15s;
}
.voices-page .xDrop:hover {
  border-color: #cbd5e1;
}
.voices-page .xDrop .voiceWrap {
  display: flex;
  align-items: center;
}
.voices-page .xDrop .voiceBnt {
  display: flex;
  align-items: center;
  gap: 8px;
}
.voices-page .xDrop .full_name {
  font-weight: 500;
}
.voices-page .xDrop .name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
  text-transform: uppercase;
}
.voices-page .xDrop .caret {
  display: block;
  width: 0;
  height: 0;
  margin-left: auto; /* push caret to right edge */
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #94a3b8;
  transition: transform 0.15s;
}

/* ============================================================
   LANGUAGE DROPDOWN MENU (.lang-menu)
   Base rules from _uivoicesv2 already on prod:
     .uiDD .lang-menu { position:absolute; opacity:0; visibility:hidden }
     .uiDD .lang-menu.open { opacity:1; visibility:visible }
   Here we override visuals to match redesign system.
   ============================================================ */
.voices-page .uiDD .lang-menu {
  width: auto;
  min-width: 320px;
  max-width: 420px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1), 0 1px 4px rgba(15, 23, 42, 0.06);
  padding: 8px;
  top: calc(100% + 4px);
  background: #fff;
  /* Kill prod contain:content + overflow:auto — they clip the dropdown
     when page content is shorter than the menu height */
  contain: none;
  overflow: visible;
  /* Flex column: searchwrap fixed at top, ul scrolls in remaining space */
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 520px);
  /* Search input inside dropdown */
}
.voices-page .uiDD .lang-menu .searchwrap {
  flex: none;
  max-width: none;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.voices-page .uiDD .lang-menu .searchlang {
  width: 100%;
  box-sizing: border-box;
  height: 34px;
  margin: 0; /* kill legacy margin that inflates searchwrap */
  font-size: 13px;
  padding: 0 32px 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  line-height: 34px;
}
.voices-page .uiDD .lang-menu .lupa {
  right: 8px;
}
.voices-page .uiDD .lang-menu {
  /* List container — scrollable within the capped lang-menu */
}
.voices-page .uiDD .lang-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 0; /* required for flex child to scroll */
  overflow-y: auto;
  overscroll-behavior: contain;
}
.voices-page .uiDD .lang-menu {
  /* Each language item */
}
.voices-page .uiDD .lang-menu li {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #1e293b;
  transition: background 0.1s;
}
.voices-page .uiDD .lang-menu li:hover {
  background: #f1f5f9;
}
.voices-page .uiDD .lang-menu li.selected {
  background: #eff6ff;
  color: #1e40af;
  font-weight: 600;
}
.voices-page .uiDD .lang-menu li.hidden {
  display: none !important;
}
.voices-page .uiDD .lang-menu li.dialect {
  padding-left: 28px;
}
.voices-page .uiDD .lang-menu {
  /* Flag + text layout */
}
.voices-page .uiDD .lang-menu li .text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-left: 0; /* kill legacy .xvoicelist.lang_sprites .text 5px */
  /* Flag sprite pseudo-element — kill legacy margin, fix flex sizing */
}
.voices-page .uiDD .lang-menu li .text::before {
  margin-right: 0; /* override _flags_sq 5px — gap handles it */
  flex-shrink: 0;
  vertical-align: unset; /* not needed in flex context */
}
.voices-page .uiDD .lang-menu li .full_name {
  flex: 1;
}
.voices-page .uiDD .lang-menu li .name {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 1;
}

/* ============================================================
   VOICE CARDS GRID
   ============================================================ */
.voices-page .voicesListWrap.loading {
  opacity: 0.5;
  pointer-events: none;
}

.voices-page .voicesList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

/* ── Voice item wrapper — border lives here ── */
.voices-page .zg-voice-item {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.voices-page .zg-voice-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

/* ============================================================
   VOICE CARD (.zg-acard) — borderless, fills top area
   ============================================================ */
.voices-page .zg-acard {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 0;
  padding: 14px 18px;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.voices-page .zg-acard:active {
  background: #f8fafc;
}

/* Loading state */
.voices-page .zg-acard.loading {
  pointer-events: none;
  opacity: 0.65;
}

/* ── Play icon area ── */
.voices-page .zg-acard__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  margin-bottom: 0;
  flex-shrink: 0;
  position: relative;
  color: #475569;
  transition: background 0.15s, color 0.15s;
}
.voices-page .zg-acard__play svg {
  width: 16px;
  height: 16px;
}

.voices-page .zg-voice-item:hover .zg-acard__play {
  background: #e2e8f0;
  color: #1e293b;
}

/* [LEGACY-KILL] _tts_sg_landing.scss:346
   .exm-player-btn.loading .zg-acard__play::before { animation: spin }
   Creates a second spinner ring. Kill it. */
.voices-page .zg-acard.loading .zg-acard__play::before {
  content: none;
  animation: none;
}

/* Loading spinner on play icon */
.voices-page .zg-acard.loading .zg-acard__play::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  position: absolute;
  animation: voiceSpin 0.7s linear infinite;
}

@keyframes voiceSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.voices-page .zg-acard.loading .pc-play,
.voices-page .zg-acard.loading .pc-pause {
  opacity: 0;
}

/* Play/Pause toggle */
.voices-page .zg-acard .pc-pause {
  display: none;
}

.voices-page .zg-acard.is-playing .pc-play {
  display: none;
}

.voices-page .zg-acard.is-playing .pc-pause {
  display: inline-block;
}

.voicesList .zg-acard.is-playing {
  box-shadow: unset;
}

/* Playing state — on wrapper, not button */
.voices-page .zg-voice-item:has(.zg-acard.is-playing) {
  border-color: #2563eb;
  /* box-shadow: 0 0 0 1px #2563eb;*/
}

.voices-page .zg-acard.is-playing .zg-acard__play {
  background: #eff6ff;
  color: #2563eb;
}

/* ── Name row ── */
.voices-page .zg-voices__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0; /* allow text truncation */
}

.voices-page .zg-voices__name {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

/* ============================================================
   BADGES — reuse landing system tokens
   JetBrains Mono 8px, 3px radius, specific tier colors
   ============================================================ */
.voices-page .zg-voices__badge {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.voices-page .zg-voices__badge.pro {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.voices-page .zg-voices__badge.hd {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.voices-page .zg-voices__badge.standard {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* ============================================================
   VOICE BOTTOM ROW — zero-height overlay, icons in corners
   External link = top-right, Copy = bottom-right
   ============================================================ */
.voices-page .zg-voice-bottom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ── Shared icon button base ── */
.voices-page .zg-voice-link,
.voices-page .copyVoiceBtn {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

/* ── External link → top-right ── */
.voices-page .zg-voice-link {
  top: 10px;
  right: 10px;
  opacity: 0.35;
  transition: opacity 0.15s;
}

.voices-page .zg-voice-item:hover .zg-voice-link {
  opacity: 1;
}

.voices-page .zg-voice-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: transparent;
  text-decoration: none;
  font-size: 0;
  color: transparent;
  border: none;
  transition: background 0.15s;
}
.voices-page .zg-voice-link a::after {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  background: #94a3b8;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  transition: background 0.15s;
}
.voices-page .zg-voice-link a:hover {
  background: #f1f5f9;
}
.voices-page .zg-voice-link a:hover::after {
  background: #475569;
}

/* ── Copy → bottom-right (hidden until hover) ── */
.voices-page .copyVoiceBtn {
  bottom: 10px;
  right: 10px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.voices-page .copyVoiceBtn::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}
.voices-page .copyVoiceBtn:hover {
  background: #f1f5f9;
  color: #475569;
}

/* Reveal copy on card hover */
.voices-page .zg-voice-item:hover .copyVoiceBtn {
  opacity: 1;
}

/* Copied state — always visible */
.voices-page .copyVoiceBtn.copied {
  opacity: 1;
  color: #16a34a;
  background: #f0fdf4;
}
.voices-page .copyVoiceBtn.copied::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ── Empty state ── */
.voices-page .voiceEmpty {
  padding: 32px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* ============================================================
   A11Y — Focus-visible styles
   Blue ring on keyboard navigation, no ring on mouse click.
   ============================================================ */
.voices-page .xDrop:focus-visible,
.voices-page .bttnFilters:focus-visible,
.voices-page .zg-acard:focus-visible,
.voices-page .zg-voice-link a:focus-visible,
.voices-page .copyVoiceBtn:focus-visible,
.voices-page .lupa:focus-visible,
.voices-page .voicesSearchClear:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Radio chips — show ring on the <li> when inner radio is focused via keyboard */
.voices-page .sortBox li:has(input:focus-visible) {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

/* Language menu items */
.voices-page .uiDD .lang-menu li:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

/* ============================================================
   RESPONSIVE
   Breakpoints: 1024 / 768 / 640 / 560 / 480 / 380px
   Aligned with _tts_sg_landing.scss breakpoint system
   ============================================================ */
/* ── 1024px — Small laptop / large tablet landscape ──── */
@media (max-width: 1024px) {
  .zg-voices-page {
    padding-top: 28px;
    padding-bottom: 40px;
  }
}
/* ── 768px — Tablet portrait ─────────────────────────── */
@media (max-width: 768px) {
  .zg-voices-page {
    padding-top: 24px;
    padding-bottom: 32px;
  }
  .voices-page h1 {
    font-size: 1.5rem;
  }
  .voices-page h1 + p {
    font-size: 14px;
  }
  .voices-page .voicesFilters {
    padding: 14px 16px;
  }
  /* Keep bttnFilters + search on one row — just let search shrink */
  .voices-page .searchwrap {
    flex: 1 1 0;
    min-width: 120px;
  }
  .voices-page .voicesList {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .voices-page .filtersRow {
    gap: 10px 16px;
  }
  /* Language dropdown menu — cap to viewport */
  .voices-page .uiDD .lang-menu {
    min-width: 0;
    max-width: calc(100vw - 48px);
    width: 100%;
  }
}
/* ── 640px — Large phone ─────────────────────────────── */
@media (max-width: 640px) {
  .voices-page .voicesList {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .voices-page .zg-acard {
    padding: 12px 14px;
  }
  .voices-page .filtersRow {
    gap: 8px 12px;
  }
  .voices-page .sortBox {
    gap: 4px;
  }
  .voices-page .sortBox li {
    min-height: 30px;
    font-size: 11px;
  }
  .voices-page .sortBox li label {
    padding: 0 10px;
  }
  .voices-page .zg-filter-group__label {
    font-size: 8px;
  }
  .voices-page .zg-voices__name {
    font-size: 13px;
  }
  .voices-page .zg-voices__badge {
    font-size: 7px;
    padding: 2px 6px;
  }
  .voices-page .zg-acard__play {
    width: 32px;
    height: 32px;
  }
  .voices-page .zg-acard__play svg {
    width: 14px;
    height: 14px;
  }
}
/* ── 560px — Phone ───────────────────────────────────── */
@media (max-width: 560px) {
  .zg-voices-page {
    padding-top: 20px;
    padding-bottom: 24px;
  }
  .voices-page h1 {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }
  .voices-page h1 + p {
    font-size: 13px;
    line-height: 1.5;
  }
  .voices-page .voicesFilters {
    padding: 12px 14px;
    border-radius: 8px;
  }
  .voices-page .voicesLangTop {
    margin-top: 10px;
  }
  .voices-page .xDrop {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 6px;
  }
  .voices-page .voicesSearch,
  .voices-page .searchlang {
    height: 34px;
    font-size: 12px;
    line-height: 34px;
  }
  .voices-page .bttnFilters {
    min-height: 34px;
    width: 34px;
  }
  /* Language dropdown — full width on small screens */
  .voices-page .uiDD .lang-menu {
    left: 0;
    right: 0;
    max-width: none;
    max-height: min(60vh, 400px);
    width: auto;
    border-radius: 8px;
  }
  .voices-page .uiDD .lang-menu li {
    padding: 8px 10px;
    font-size: 13px;
  }
}
/* ── 480px — Small phone ─────────────────────────────── */
@media (max-width: 480px) {
  .voices-page .zg-acard {
    padding: 10px 12px;
    gap: 10px;
  }
  .voices-page .zg-acard__play {
    width: 30px;
    height: 30px;
  }
  .voices-page .zg-voice-link {
    top: 8px;
    right: 8px;
  }
  .voices-page .copyVoiceBtn {
    bottom: 8px;
    right: 8px;
  }
  .voices-page .zg-voice-link a,
  .voices-page .copyVoiceBtn {
    width: 24px;
    height: 24px;
  }
  .voices-page .voicesList {
    gap: 8px;
  }
  .voices-page .zg-voice-item {
    border-radius: 8px;
  }
}
/* ── 380px — Safeguard for very small phones ─────────── */
@media (max-width: 380px) {
  .voices-page h1 {
    font-size: 1.125rem;
  }
  .voices-page .sortBox li {
    min-height: 28px;
    font-size: 10px;
  }
  .voices-page .sortBox li label {
    padding: 0 8px;
  }
  .voices-page .filtersRow {
    gap: 6px 8px;
  }
  .voices-page .xDrop {
    padding: 0 10px;
    font-size: 12px;
  }
  .voices-page .xDrop .name {
    font-size: 9px;
  }
}
/* ── Touch devices — no hover, show both action icons ── */
@media (hover: none) {
  .voices-page .zg-voice-link {
    opacity: 1;
  }
  .voices-page .copyVoiceBtn {
    opacity: 1;
  }
}
/* end voices page */
