:root {
  --bg: #0f1923;
  --card: #1a2733;
  --accent: #e8a838;
  --accent2: #3b82f6;
  --green: #22c55e;
  --red: #ef4444;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #2d3d4d;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.container { max-width: 800px; width: 100%; padding: 20px; }
h1 { text-align: center; color: var(--accent); font-size: 2rem; margin: 20px 0 10px; }
h2 { color: var(--accent); margin-bottom: 15px; font-size: 1.3rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #000; }
.btn-secondary { background: var(--accent2); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-small { padding: 6px 14px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

.editor-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.add-team-form { display: flex; gap: 8px; margin-bottom: 15px; }
.add-team-form input { flex: 1; }

.team-list { list-style: none; margin: 10px 0; }
.team-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
}
.team-list li .team-name { font-weight: 600; }
.team-list li .team-score { color: var(--muted); font-size: 0.85rem; }
.team-actions { display: flex; gap: 6px; }

.form-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}
.form-group input:focus { outline: none; border-color: var(--accent); }

.results-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.results-table th {
  background: var(--bg); padding: 10px 8px; text-align: left;
  color: var(--muted); font-weight: 600; position: sticky; top: 0; z-index: 1;
}
.results-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap { max-height: 400px; overflow-y: auto; border-radius: 8px; border: 1px solid var(--border); }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

@media (max-width: 600px) {
  .team-list li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .team-actions { width: 100%; justify-content: flex-end; }
  h1 { font-size: 1.5rem; }
}