* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #1a1a1a;
  line-height: 1.5;
}

header {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

h1 { margin: 0 0 0.25rem; }
h2 { margin-top: 2rem; }

form label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

form input[type="text"],
form input[type="password"],
form input[type="number"],
form textarea {
  display: block;
  width: 100%;
  padding: 0.5rem;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 0.25rem;
}

button {
  background: #1a1a1a;
  color: white;
  border: 0;
  padding: 0.6rem 1.2rem;
  font: inherit;
  border-radius: 4px;
  cursor: pointer;
}

button:hover { background: #333; }

.inline-form { display: inline; }

.link-button {
  background: none;
  color: #0366d6;
  padding: 0;
  text-decoration: underline;
  font: inherit;
}

.link-button:hover { background: none; color: #024; }

.episode-list {
  list-style: none;
  padding: 0;
}

.episode-list li {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status {
  font-size: 0.85rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eee;
}

.status-published { background: #d4edda; color: #155724; }
.status-failed { background: #f8d7da; color: #721c24; }
.status-transcript_ready { background: #fff3cd; color: #856404; }

.transcript {
  background: #f7f7f7;
  border-radius: 4px;
  padding: 1rem;
  white-space: pre-wrap;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

.error { color: #b00020; }

.meta { color: #666; font-size: 0.9rem; }
