:root {
  --bg: #0f1419;
  --panel: #1a222c;
  --line: #2a3542;
  --text: #e8eef5;
  --muted: #8aa0b5;
  --ok: #2ecc71;
  --warn: #f1c40f;
  --err: #e74c3c;
  --stale: #95a5a6;
  --accent: #3d8bfd;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
h1 { margin: 0 0 4px; font-size: 1.25rem; }
.source { margin: 0; color: var(--muted); font-size: 0.85rem; }

.status-box {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warn);
}
.dot.live { background: var(--ok); }
.dot.connecting, .dot.reconnectando { background: var(--warn); }
.dot.error, .dot.erro { background: var(--err); }

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--muted); }
.filters input[type="search"],
.filters input[type="number"] {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}
.check { flex-direction: row; align-items: center; gap: 8px; }
button {
  align-self: end;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}

.banner {
  margin: 12px 20px;
  padding: 10px 12px;
  border: 1px solid var(--warn);
  color: var(--warn);
  border-radius: 6px;
}
.hidden { display: none; }

#board { padding: 12px 20px 40px; }
.match {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.match h2 {
  margin: 0;
  padding: 10px 12px;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.league { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
.status { font-weight: 600; text-transform: lowercase; }
.status.available { color: var(--ok); }
.status.suspended { color: var(--warn); }
.status.stale, .status.unavailable { color: var(--stale); }
.empty { color: var(--muted); padding: 24px; text-align: center; }
