:root {
  color-scheme: light;
  --bg: #f5efe2;
  --bg-accent: #e6dcc6;
  --panel: rgba(255, 252, 245, 0.84);
  --text: #1f1a14;
  --muted: #695e4c;
  --line: rgba(31, 26, 20, 0.12);
  --brand: #9d3c22;
  --brand-strong: #7e2813;
  --shadow: 0 18px 50px rgba(62, 35, 12, 0.12);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(157, 60, 34, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(131, 107, 59, 0.18), transparent 24%),
    linear-gradient(180deg, var(--bg), #fbf7ee);
  color: var(--text);
}

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

.hero {
  padding: 8px 2px 18px;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
}

.subhead {
  margin: 10px 0 0;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin-top: 14px;
  backdrop-filter: blur(10px);
}

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mode-pill,
button {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--brand);
  color: #fff7f1;
  font: inherit;
  font-weight: 700;
}

.secondary {
  background: #efe4d1;
  color: var(--text);
}

.mode-pill.active {
  background: var(--brand-strong);
}

.toolbar,
.editor-actions,
.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editor {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}

.status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.metric-label,
.section-title {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.admin-card strong {
  display: block;
  font-size: 22px;
  margin-top: 4px;
}

.feed-list {
  display: grid;
  gap: 12px;
}

.video-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.video-topline,
.video-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.video-caption {
  margin: 12px 0;
  white-space: pre-wrap;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--bg-accent);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.video-author {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .status,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  .shell {
    padding-left: 12px;
    padding-right: 12px;
  }
}
