:root {
  --bg: #111827;
  --panel: #1f2937;
  --panel-2: #374151;
  --text: #f9fafb;
  --muted: #9ca3af;
  --accent: #22c55e;
  --accent-2: #16a34a;
  --danger: #ef4444;
  --border: #4b5563;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 24px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.intro-text,
.intro-image {
  flex: 1;
}

.intro-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1 {
  margin-top: 0;
  font-size: 2rem;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.topbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}

button,
input[type="file"],
input[type="text"] {
  font: inherit;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

button:hover {
  background: var(--accent-2);
}

.secondary {
  background: var(--panel-2);
}

.secondary:hover {
  background: #4b5563;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.slot {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.slot h3 {
  margin: 0 0 12px 0;
  font-size: 1.05rem;
}

.row {
  margin-bottom: 12px;
}

.row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: white;
}

.key-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #111827;
  color: var(--text);
}

.file-input {
  width: 100%;
}

.file-button {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: #144;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.file-button:hover {
  background: #333;
}

.filename {
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.2em;
}

.status {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #93c5fd;
  min-height: 1.2em;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.live {
  outline: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.warning {
  color: #fca5a5;
  font-size: 0.95rem;
  margin-bottom: 16px;
  min-height: 1.2em;
}

.footer-note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

audio {
  width: 100%;
  margin-top: 8px;
}