* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.container {
  width: 100%;
  max-width: 500px;
}

h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #fff;
}

.card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #ccc;
}

.hint {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}

input[type="text"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-family: inherit;
}

input[type="file"] {
  display: block;
  margin-bottom: 0.75rem;
  color: #888;
}

button {
  width: 100%;
  padding: 0.75rem;
  background: #3b82f6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

button:hover {
  background: #2563eb;
}

button:disabled {
  background: #444;
  cursor: not-allowed;
}

.status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.status.error {
  color: #f87171;
}

.status.ok {
  color: #4ade80;
}

#voicesList {
  list-style: none;
  margin-top: 0.75rem;
}

#voicesList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #222;
}

#voicesList li:last-child {
  border-bottom: none;
}

.voice-name {
  cursor: pointer;
  color: #60a5fa;
}

.voice-name:hover {
  text-decoration: underline;
}

.voice-actions {
  display: flex;
  gap: 0.4rem;
}

.play-btn {
  width: auto;
  padding: 0.3rem 0.6rem;
  background: #1f6f43;
  font-size: 0.8rem;
}

.play-btn:hover {
  background: #15803d;
}

.del-btn {
  width: auto;
  padding: 0.3rem 0.7rem;
  background: #7f1d1d;
  font-size: 0.8rem;
}

.del-btn:hover {
  background: #991b1b;
}

#audioPlayer {
  width: 100%;
  margin-top: 1rem;
}

.samples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.sample-chip {
  width: auto;
  padding: 0.4rem 0.9rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 999px;
  color: #93c5fd;
  font-size: 0.8rem;
  cursor: pointer;
}

.sample-chip:hover {
  background: #334155;
  color: #bfdbfe;
}

.tones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}