/* ============================================================
 * WP TTS No-Key — FULL CSS (AI Video Maker style)
 * Dark + premium + gold accents, mobile-first
 * Scope: .ttsnk (safe to paste/replace entire file)
 * ============================================================ */

.ttsnk{
  --bg0: #0b0b0f;
  --bg1: #12121a;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);
  --gold: #d6ad61;
  --gold2:#b88a3b;
  --danger:#ff5c5c;
  --ok:#36d399;

  max-width: 860px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(214,173,97,.18), transparent 55%),
              radial-gradient(1000px 600px at 80% 10%, rgba(120,95,55,.18), transparent 55%),
              linear-gradient(180deg, rgba(18,18,26,.98), rgba(10,10,14,.98));
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  color: var(--text);
}

/* title */
.ttsnk h3{
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .2px;
  color: #fff;
  display:flex;
  align-items:center;
  gap: 10px;
}

.ttsnk h3:before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--gold2));
  box-shadow: 0 0 0 3px rgba(214,173,97,.16);
}

/* labels */
.ttsnk label{
  display:block;
  font-weight: 800;
  margin: 12px 0 8px;
  color: rgba(255,255,255,.86);
}

/* fields */
.ttsnk textarea,
.ttsnk select{
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  outline: none;
  background: var(--card);
  color: #fff;
  transition: box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.ttsnk textarea{
  min-height: 140px;
  resize: vertical;
}

/* select arrow spacing / consistent look */
.ttsnk select{
  appearance: auto;
}

/* placeholder */
.ttsnk textarea::placeholder{
  color: var(--muted2);
}

/* focus */
.ttsnk textarea:focus,
.ttsnk select:focus{
  border-color: rgba(214,173,97,.55);
  box-shadow: 0 0 0 3px rgba(214,173,97,.16);
  background: rgba(255,255,255,.07);
}

/* divider helper (optional if you add <hr>) */
.ttsnk hr{
  border:0;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 14px 0;
}

/* buttons row */
.ttsnk-row{
  display:flex;
  gap: 10px;
  margin-top: 8px;
}

/* buttons */
.ttsnk-row button{
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(214,173,97,.38);
  background: linear-gradient(180deg, var(--gold), var(--gold2));
  color: #14110c;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,.30);
  transition: transform .08s ease, filter .12s ease, opacity .12s ease;
}

.ttsnk-row button:hover{
  filter: brightness(1.03);
}

.ttsnk-row button:active{
  transform: translateY(1px);
}

/* stop button (secondary) */
.ttsnk-row button.ttsnk-stop{
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  box-shadow: none;
}

/* status box */
.ttsnk-status{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 800;
  color: rgba(255,255,255,.88);
}

/* optional status colors (if you later add classes) */
.ttsnk-status.is-ok{ border-color: rgba(54,211,153,.35); }
.ttsnk-status.is-err{ border-color: rgba(255,92,92,.35); }

/* details voice box */
.ttsnk-voices-box{
  margin-top: 14px;
  border-top: 1px dashed rgba(255,255,255,.14);
  padding-top: 12px;
}

.ttsnk-voices-box summary{
  cursor: pointer;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  margin-bottom: 10px;
  list-style: none;
}

.ttsnk-voices-box summary::-webkit-details-marker{
  display:none;
}

.ttsnk-voices-box summary:after{
  content:"▾";
  float:right;
  opacity:.75;
  transform: translateY(1px);
}

.ttsnk-voices-box[open] summary:after{
  content:"▴";
}

.ttsnk-voices-box small{
  display:block;
  opacity:.78;
  margin-top: 8px;
  color: rgba(255,255,255,.70);
}

/* scrollbar (nice on desktop) */
.ttsnk textarea::-webkit-scrollbar{ width: 10px; }
.ttsnk textarea::-webkit-scrollbar-thumb{
  background: rgba(214,173,97,.22);
  border-radius: 999px;
}
.ttsnk textarea::-webkit-scrollbar-track{
  background: rgba(255,255,255,.04);
}

/* links inside (if any later) */
.ttsnk a{
  color: rgba(214,173,97,.95);
  text-decoration: none;
}
.ttsnk a:hover{ text-decoration: underline; }

/* mobile */
@media (max-width: 600px){
  .ttsnk{
    padding: 14px;
    border-radius: 16px;
  }
  .ttsnk-row{
    flex-direction: column;
  }
  .ttsnk textarea{
    min-height: 130px;
  }
}
