:root {
  --bg0: #0f1419;
  --bg1: #171e26;
  --bg2: #1e2833;
  --line: #2a3644;
  --text: #e7eef6;
  --muted: #8b9bb0;
  --accent: #3dcea7;
  --accent-dim: rgba(61, 206, 167, 0.14);
  --warn: #f0b429;
  --danger: #ff6b6b;
  --chip: #243041;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Sora", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 206, 167, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(80, 140, 255, 0.08), transparent 50%),
    var(--bg0);
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.bar nav { display: flex; gap: 14px; flex: 1; flex-wrap: wrap; }
.bar nav a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.bar nav a:hover { color: var(--text); }
.who {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: "IBM Plex Mono", monospace;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.shell { max-width: 1120px; margin: 0 auto; padding: 28px 18px 64px; }

.hero-empty {
  margin-top: 12vh;
  text-align: center;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 48px 24px;
  box-shadow: var(--shadow);
}
.hero-empty h1 { margin: 0 0 8px; font-size: 2rem; letter-spacing: -0.04em; }
.hero-empty p { color: var(--muted); margin: 0 0 22px; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head h1 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 110px;
}
.stat b {
  display: block;
  font-size: 1.35rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: -0.03em;
}
.stat span { color: var(--muted); font-size: 0.78rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  align-items: end;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}
.filters input, .filters select, .btn, .filters button {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  padding: 8px 12px;
}
.btn, .filters button {
  background: linear-gradient(180deg, #45d7b0, #2fb894);
  color: #06251c;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
.btn.ghost, .action.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.danger, .action.danger {
  background: linear-gradient(180deg, #ff8585, #e25555);
  color: #2a0606;
  border: none;
}

.queue { display: grid; gap: 14px; }

.card {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: rise 0.35s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(61,206,167,0.06), transparent);
}
.card-top h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.card-top h2 a { color: var(--text); text-decoration: none; }
.card-top h2 a:hover { color: var(--accent); }
.meta { color: var(--muted); font-size: 0.82rem; margin-top: 4px; font-family: "IBM Plex Mono", monospace; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: start; }
.chip {
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
}
.chip.hot { color: var(--warn); border-color: rgba(240,180,41,0.35); background: rgba(240,180,41,0.08); }
.chip.bad { color: var(--danger); border-color: rgba(255,107,107,0.35); background: rgba(255,107,107,0.08); }

.card-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px;
}
@media (max-width: 700px) {
  .card-body { grid-template-columns: 1fr; }
}
.thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--line);
}
.thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
}
.com {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  font-size: 0.95rem;
}
.sub { color: var(--accent); font-weight: 600; margin: 0 0 6px; }

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}
.reporters { color: var(--muted); font-size: 0.8rem; font-family: "IBM Plex Mono", monospace; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.action {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
}
.action:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.action.primary {
  background: var(--accent-dim);
  border-color: rgba(61, 206, 167, 0.35);
  color: var(--accent);
}

.empty {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(23, 30, 38, 0.6);
}

.flash {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(61, 206, 167, 0.3);
  color: var(--accent);
}
