* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f7fb;
  color: #172033;
}

.container {
  width: min(960px, 100%);
  margin: 40px auto;
  padding: 0 16px;
}

.card {
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(18, 26, 39, 0.06);
}

h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.subtext {
  margin-top: 0;
  margin-bottom: 18px;
  color: #4a5a75;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid #b8c6de;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button {
  background: #1c60ff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

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

.status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.status.loading {
  background: #eef4ff;
  border-color: #c9dbff;
  color: #254a90;
}

.status.success {
  background: #ebfff0;
  border-color: #b7efc3;
  color: #13542a;
}

.status.error {
  background: #fff0f1;
  border-color: #f3c2c7;
  color: #8d1823;
}

.result {
  margin-top: 16px;
  padding: 16px;
  background: #f9fbff;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
}

.result a {
  word-break: break-all;
}

.meta {
  color: #455571;
}

.episode-card {
  display: grid;
  gap: 10px;
}

.episode-card p {
  margin: 0;
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.episode-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.episode-table th,
.episode-table td {
  padding: 12px;
  border-top: 1px solid #dbe3f0;
  text-align: left;
  vertical-align: top;
}

.episode-table th {
  color: #455571;
  font-size: 0.88rem;
  background: #f1f5fc;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge-success {
  background: #ebfff0;
  color: #13542a;
}

.badge-muted {
  background: #e9eef8;
  color: #4a5a75;
}

.check-details {
  margin-top: 10px;
}

.check-details summary {
  cursor: pointer;
  color: #254a90;
  font-weight: 600;
}

.check-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.check-list li + li {
  margin-top: 6px;
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .row {
    grid-template-columns: 1fr;
  }
}
