:root {
  color-scheme: dark;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f8fafc;
  padding: 24px;
}

.app {
  width: min(720px, 100%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

h1 {
  margin-top: 0;
  margin-bottom: 8px;
}

textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #f8fafc;
  resize: vertical;
  font-size: 16px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

select,
button {
  border-radius: 10px;
  padding: 10px 12px;
  border: none;
  font-size: 15px;
}

select {
  background: #111827;
  color: #f9fafb;
}

.buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

button {
  cursor: pointer;
  background: #2563eb;
  color: white;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status {
  margin-top: 12px;
  color: #bfdbfe;
}

audio {
  margin-top: 12px;
  width: 100%;
}

.download-link {
  display: inline-block;
  margin-top: 8px;
  color: #93c5fd;
}

@media (max-width: 600px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .buttons {
    flex-direction: column;
  }
}
