/* ═══════════════════════════════════════════
   GOYO Voice Selector — Compact Nav Pill
   ═══════════════════════════════════════════ */

.gojo-voice-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #10B981;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.gojo-voice-pill:hover {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
}

.gojo-voice-pill .gojo-pill-emoji {
  font-size: 15px;
  line-height: 1;
}

.gojo-voice-pill .gojo-pill-name {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gojo-voice-pill .gojo-pill-arrow {
  font-size: 9px;
  margin-left: -2px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.gojo-voice-pill.open .gojo-pill-arrow {
  transform: rotate(180deg);
}

/* ═══════════════════════════════════════════
   Dropdown
   ═══════════════════════════════════════════ */

.gojo-voice-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-height: 420px;
  background: #1a1a2e;
  border: 1px solid #27272A;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: gojo-drop-in 0.18s ease-out;
}

@keyframes gojo-drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gojo-voice-dropdown-header {
  padding: 14px 16px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #A1A1AA;
  border-bottom: 1px solid #27272A;
}

/* ── Voice List ── */
.gojo-voice-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px;
  max-height: 220px;
}

.gojo-voice-list::-webkit-scrollbar {
  width: 4px;
}

.gojo-voice-list::-webkit-scrollbar-track {
  background: transparent;
}

.gojo-voice-list::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

.gojo-voice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.gojo-voice-option:hover {
  background: rgba(16, 185, 129, 0.08);
}

.gojo-voice-option.active {
  background: rgba(16, 185, 129, 0.12);
}

.gojo-voice-option .gojo-voice-gender {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.gojo-voice-option .gojo-voice-info {
  flex: 1;
  min-width: 0;
}

.gojo-voice-option .gojo-voice-name {
  font-size: 14px;
  font-weight: 600;
  color: #FAFAFA;
  line-height: 1.3;
}

.gojo-voice-option .gojo-voice-desc {
  font-size: 11px;
  color: #71717A;
  line-height: 1.3;
  margin-top: 1px;
}

.gojo-voice-option .gojo-voice-check {
  font-size: 16px;
  color: #10B981;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.gojo-voice-option.active .gojo-voice-check {
  opacity: 1;
}

/* ── Speed Section ── */
.gojo-voice-speed {
  padding: 12px 16px;
  border-top: 1px solid #27272A;
}

.gojo-voice-speed-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #A1A1AA;
  margin-bottom: 10px;
}

.gojo-voice-speed-options {
  display: flex;
  gap: 8px;
}

.gojo-speed-btn {
  flex: 1;
  padding: 8px 4px;
  border: 1px solid #27272A;
  border-radius: 8px;
  background: transparent;
  color: #A1A1AA;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.gojo-speed-btn:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #FAFAFA;
}

.gojo-speed-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #10B981;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .gojo-voice-dropdown {
    width: 260px;
    right: -40px;
  }
}

@media (max-width: 420px) {
  .gojo-voice-dropdown {
    width: calc(100vw - 32px);
    right: -60px;
  }
  .gojo-voice-pill .gojo-pill-name {
    max-width: 50px;
  }
}
