:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body {
  margin: 0;
  background: #020617;
  color: #e2e8f0;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem;
}

.subtitle {
  color: #94a3b8;
}

.hint {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0 0 0.75rem;
}

.file-upload {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.file-upload input[type="file"] {
  max-width: 100%;
}

.card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.button-row {
  display: flex;
  gap: 0.75rem;
}

button {
  background: #0ea5e9;
  color: #0b1020;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="range"] {
  width: 100%;
}

.trim-controls.hidden {
  display: none;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #cbd5e1;
}

input {
  background: #0b1224;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.5rem;
}

#audioPlayer {
  width: 100%;
}

#resultBox {
  white-space: pre-wrap;
  background: #0b1224;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.75rem;
  min-height: 100px;
  overflow-x: auto;
}
