/* Voices-only stylesheet
   Loaded after style.css so these rules stay authoritative for voices.html. */

.voices-intro {
  margin: 0.2rem 0 0.9rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.78);
}

.voice-roster {
  margin: 1rem 0 1.25rem;
}

.voice-roster-head {
  margin-bottom: 0.9rem;
}

.voice-roster-title {
  margin: 0 0 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7af7ff;
}

.voice-roster-copy {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.76);
}

.voice-roster-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  text-align: left;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(122, 247, 255, 0.32);
  background:
    radial-gradient(circle at top left, rgba(122, 247, 255, 0.12), transparent 32%),
    linear-gradient(160deg, rgba(16, 12, 22, 0.92), rgba(33, 20, 30, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.voice-roster-card:hover,
.voice-roster-card:focus-visible,
.voice-roster-card.active {
  transform: translateY(-2px);
  border-color: rgba(255, 244, 99, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 22px 46px rgba(0, 0, 0, 0.32);
  outline: none;
}

.voice-roster-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.voice-roster-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.voice-roster-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 244, 99, 0.88);
}

.voice-roster-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.05;
  color: #fff9df;
}

.voice-roster-desc {
  margin: 0.15rem 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  max-width: 52ch;
}

/* Voices card grid layout */
#voices-results,
.voices-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

/* Voices cards */
.voice-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 18px 18px;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.08);
}

.voice-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px 0;
}

.voice-card-title {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0;
}

.voice-card-copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.20);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.voice-card-copy:hover {
  border-color: rgba(0, 255, 255, 0.55);
}

.voice-card-text {
  font-size: 1.12rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Advanced panel */
#voices-advanced {
  margin-top: 0.75rem;
}

#voices-advanced > summary {
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.35rem;
}

#voices-advanced .advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 14px;
  align-items: center;
}

#voices-advanced .adv-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

#voices-advanced .adv-item > span {
  line-height: 1.1;
}

#voices-advanced .adv-item input[type="range"] {
  width: 100%;
}

#voices-advanced .adv-item.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

@media (max-width: 760px) {
  .voice-roster-card {
    grid-template-columns: 1fr;
  }

  .voice-roster-avatar {
    max-width: 320px;
  }
}
