:root {
  color-scheme: light;
  --bg: #f5efe4;
  --panel: #fff9f1;
  --panel-strong: #ffffff;
  --text: #1c1a18;
  --muted: #6b635d;
  --line: #d7c9ba;
  --accent: #cb5c2f;
  --accent-dark: #9c3e18;
  --danger: #8f2330;
  --success: #dff4e5;
  --error: #f8d9dd;
  --shadow: 0 18px 40px rgba(76, 47, 28, 0.14);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(203, 92, 47, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f1e6 0%, #efe4d4 100%);
  color: var(--text);
}

a {
  color: var(--accent-dark);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

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

button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

button.danger {
  background: var(--danger);
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero,
.auth-panel,
.stat-card,
.job-bar,
.video-card {
  background: rgba(255, 249, 241, 0.94);
  border: 1px solid rgba(215, 201, 186, 0.8);
  box-shadow: var(--shadow);
}

.hero,
.auth-panel {
  border-radius: 28px;
  padding: 1.5rem;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  font-size: 0.78rem;
}

.muted {
  color: var(--muted);
}

.notice {
  margin-top: 1rem;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
}

.notice.success {
  background: var(--success);
}

.notice.error {
  background: var(--error);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.stat-card {
  border-radius: 22px;
  padding: 1.1rem 1.2rem;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.stat-card strong {
  font-size: 2rem;
}

.job-bar {
  border-radius: 22px;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.video-list {
  display: grid;
  gap: 1rem;
}

.video-card {
  border-radius: 24px;
  padding: 1.2rem;
}

.video-card.empty {
  text-align: center;
}

.video-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.video-card h2,
.video-card h3 {
  margin-top: 0;
}

.source-pill,
.status-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.source-pill {
  background: rgba(203, 92, 47, 0.14);
  color: var(--accent-dark);
}

.status-badge {
  background: #eee2d2;
}

.status-pending_review {
  background: #f5e7bc;
}

.status-approved {
  background: #cdebd8;
}

.status-rejected {
  background: #f2c9cf;
}

.status-published {
  background: #c9e2f2;
}

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

.meta-grid dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.meta-grid dd {
  margin: 0;
}

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

.caption-block {
  margin-top: 1rem;
}

.caption-block pre {
  white-space: pre-wrap;
  background: #f8f4ee;
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid var(--line);
}

.actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.auth-panel {
  max-width: 440px;
  margin: 12vh auto 0;
}

.auth-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.auth-form input {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: #fff;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
  }

  .page-shell {
    padding-inline: 0.9rem;
  }
}

