:root {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: #151d2f;
  --surface-2: #1c2740;
  --border: #2d3a54;
  --text: #edf2ff;
  --muted: #9aa8c7;
  --accent: #5b8cff;
  --danger: #ff5d6c;
  --warn: #ffb020;
  --radius: 14px;
  font-family: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
}

.header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

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

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 4px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab,
.button {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.toolbar select {
  margin-left: 8px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.content-card,
.report-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.content-card img,
.content-card .thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #0a0f1a;
}

.thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.card-body {
  padding: 12px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #24304a;
}

.badge.warn {
  background: rgba(255, 176, 32, 0.18);
  color: var(--warn);
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-actions a,
.card-actions button {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text);
  background: #24304a;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.card-actions .danger {
  background: rgba(255, 93, 108, 0.2);
  color: var(--danger);
}

.reports-list {
  display: grid;
  gap: 10px;
}

.report-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 12px;
  padding: 12px;
  align-items: center;
}

.report-item img {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.muted { color: var(--muted); font-size: 0.85rem; }

.empty {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

@media (max-width: 720px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-item {
    grid-template-columns: 1fr;
  }
}
