/* Matndan ovoz sahifasi (/ovoz, /o/{id}) — umumiy style.css ustiga, faqat shu sahifada yuklanadi. */

.tts-form {
  padding: 8px 20px 20px;
}
.tts-label {
  display: block;
  font: 600 1.12rem/1.3 var(--font-d);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tts-text {
  display: block;
  width: 100%;
  min-height: 9.5em;
  resize: vertical;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--paper);
  color: var(--ink);
  font: 400 1.02rem/1.55 var(--font-b);
}
.tts-text::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.tts-text:hover {
  border-color: var(--line-2);
}
.tts-text:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
  border-color: var(--line-2);
}
.tts-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 0.9rem;
}
.tts-count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tts-count.over {
  color: var(--magenta-dk);
  font-weight: 600;
}
.tts-opts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.tts-style select {
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: var(--sheet)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235e5a7a' stroke-width='1.6'/%3E%3C/svg%3E")
    no-repeat right 12px center / 12px 8px;
  color: var(--ink);
  font: 500 0.95rem/1 var(--font-b);
  appearance: none;
  cursor: pointer;
}
.tts-style select:hover {
  border-color: var(--ink);
}
.tts-go {
  margin-left: auto;
}
.tts-form.busy .tts-opts,
.tts-form.busy .tts-text {
  opacity: 0.6;
  pointer-events: none;
}

.tts-out {
  margin: 0 20px 20px;
  padding: 16px;
  border-radius: var(--r-ctl);
  background: var(--paper);
  border: 1px solid var(--line);
}
.tts-out[hidden] {
  display: none;
}
.tts-audio {
  display: block;
  width: 100%;
}
.tts-out-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 8px;
}
.tts-out p {
  margin: 0;
}

.tts-prices {
  max-width: 640px;
}

/* API bandi ikkala rejimda ham to'q: umumiy (och) kod foni bu yerda oq matnni yutib yuboradi. */
.band-dev :not(pre) > code {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 600px) {
  .tts-form {
    padding: 4px 14px 16px;
  }
  .tts-out {
    margin: 0 14px 16px;
  }
  .tts-go {
    width: 100%;
    margin-left: 0;
  }
}
