*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface2: #f0f3f8;
  --border: #e2e8f0;
  --border2: #cbd5e1;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --accent-dark: #1d4ed8;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --red: #dc2626;
  --red-light: #fef2f2;
  --yellow: #d97706;
  --yellow-light: #fffbeb;
  --text: #0f172a;
  --text2: #334155;
  --muted: #64748b;
  --muted2: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10), 0 4px 10px rgba(0,0,0,.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
}
header h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
header h1::before {
  content: '🏓';
  font-size: 1.1rem;
}
header nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
header nav a:hover {
  background: var(--surface2);
  color: var(--text);
  text-decoration: none;
}

/* ── PAGE TITLE ── */
.page-title { padding: 32px 0 20px; }
.page-title h2 { font-size: 1.75rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.page-title p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

/* ── FEATURED MATCH ── */
.featured-match {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0ea5e9 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  color: #fff;
  box-shadow: 0 8px 30px rgba(37,99,235,.35);
  position: relative;
  overflow: hidden;
}
.featured-match::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.featured-match::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 20px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.featured-match .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.featured-match .label::before { content: '★'; }
.featured-match .round-name {
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 8px;
}
.featured-match .vs {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.featured-match .vs .separator { color: rgba(255,255,255,.4); margin: 0 10px; font-weight: 300; }
.featured-match .live-scores {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 18px 20px;
  backdrop-filter: blur(4px);
}
.featured-match .live-name { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.9); }
.featured-match .live-pts {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.featured-match .vs-divider {
  font-size: 1.1rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}
.featured-match .games-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.featured-match .game-chip {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .8rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  backdrop-filter: blur(2px);
}
.featured-match .status-line {
  margin-top: 12px;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  position: relative;
  z-index: 1;
}
.featured-match .winner-announce {
  margin-top: 14px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.featured-match .winner-announce::before { content: '🏆 '; }

/* ── WINNER BADGE ── */
.winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #bbf7d0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 8px;
}
.winner-badge::before { content: '🏆'; font-size: .75rem; }

/* ── STATUS BADGES ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-badge.pending { background: var(--surface2); color: var(--muted); }
.status-badge.pending::before { background: var(--muted2); }
.status-badge.active { background: #dcfce7; color: #15803d; }
.status-badge.active::before { background: #16a34a; box-shadow: 0 0 0 2px #bbf7d0; animation: pulse 1.5s infinite; }
.status-badge.finished { background: #ede9fe; color: #6d28d9; }
.status-badge.finished::before { background: #7c3aed; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* ── SYMMETRIC BRACKET ── */
.sym-bracket {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  padding: 4px 0 16px;
  position: relative;
  width: 100%;
}
.sym-half {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: stretch;
  gap: 40px;
}
.sym-half.sym-left { flex-direction: row; }
.sym-half.sym-right { flex-direction: row; }
.sym-final {
  flex-shrink: 0;
  width: 200px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.sym-final .bracket-round-title { text-align: center; }
.sym-final-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sym-bracket .bracket-round {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
}
.sym-bracket .bracket-round-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 0 2px;
  white-space: nowrap;
  text-align: center;
}
/* pair groups two matches that feed one next-round match */
.bracket-pair {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bracket-pair + .bracket-pair { margin-top: 12px; }
.bracket-match-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3px 0;
}
/* SVG connector overlay — drawn by JS */
.bracket-svg { position: absolute; top: 0; left: 0; pointer-events: none; overflow: visible; }

.bracket-match {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.bracket-match:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.bracket-match.featured { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.bracket-match.finished { background: #fafafa; }
.bracket-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.bracket-player:last-child { border-bottom: none; }
.bracket-player.winner { color: var(--green); font-weight: 700; background: var(--green-light); }
.bracket-player.bye { color: var(--muted2); font-style: italic; font-size: .8rem; }
.bracket-player .pts { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.bracket-player.winner .pts { color: var(--green); }

/* ── MATCH CARDS ── */
.match-list { display: grid; gap: 14px; }
.match-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.match-card:hover { box-shadow: var(--shadow); }
.match-card.featured { border-color: var(--accent); background: var(--accent-light); }
.match-card .match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.match-card .round-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.match-card .players { font-size: 1rem; font-weight: 600; color: var(--text); }

/* ── GAME CHIPS ── */
.games-history { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.game-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 600;
  color: var(--text2);
}

/* ── TOURNAMENT GRID ── */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.tournament-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  box-shadow: var(--shadow-sm);
}
.tournament-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.tournament-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.tournament-item .meta { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tournament-item .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted2); }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
input, select {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
input::placeholder { color: var(--muted2); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 36px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 0 4px 14px rgba(37,99,235,.4); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-success { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 2px 8px rgba(22,163,74,.3); }
.btn-success:hover { background: #15803d; }
.btn-ghost {
  background: var(--surface);
  color: var(--text2);
  border-color: var(--border2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--surface2); border-color: var(--border2); }
.btn-sm { padding: 6px 13px; font-size: 0.8rem; }

/* ── SCORE BUTTONS ── */
.btn-score {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid;
  cursor: pointer;
  transition: all .12s;
  flex-shrink: 0;
}
.btn-score:hover { transform: scale(1.1); }
.btn-score:active { transform: scale(.95); }
.btn-score-plus { background: var(--green-light); color: var(--green); border-color: #86efac; }
.btn-score-plus:hover { background: #dcfce7; }
.btn-score-minus { background: var(--red-light); color: var(--red); border-color: #fca5a5; }
.btn-score-minus:hover { background: #fee2e2; }

/* ── SCORE PANEL ── */
.score-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 0 16px;
}
.score-panel .player-side { display: flex; flex-direction: column; gap: 10px; }
.score-panel .player-name { font-size: 0.9rem; font-weight: 700; color: var(--text2); }
.score-panel .score-controls { display: flex; align-items: center; gap: 10px; }
.score-panel .score-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  min-width: 50px;
  text-align: center;
  line-height: 1;
  letter-spacing: -.03em;
}
.score-divider {
  text-align: center;
  color: var(--muted2);
  font-size: 1.5rem;
  font-weight: 300;
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
}
.tab {
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  border-radius: 6px;
  transition: all .15s;
}
.tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ── ALERTS ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-error { background: var(--red-light); border: 1px solid #fca5a5; color: #b91c1c; }
.alert-error::before { content: '⚠'; }
.alert-success { background: var(--green-light); border: 1px solid #86efac; color: #15803d; }
.alert-success::before { content: '✓'; }

/* ── DIVIDERS & MISC ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── REGISTRANT POOL & DRAG-DROP ── */
.pool-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}
.registrant-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 6px;
  cursor: grab;
  user-select: none;
  transition: border-color .15s, box-shadow .15s, opacity .15s;
  font-size: .9rem;
  font-weight: 500;
}
.registrant-chip:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.registrant-chip.dragging { opacity: .4; cursor: grabbing; }
.registrant-chip.assigned {
  background: var(--green-light);
  border-color: #86efac;
  color: var(--green);
}
.registrant-chip .chip-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted2);
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.registrant-chip .chip-delete:hover { color: var(--red); background: var(--red-light); }

.pool-dropzone {
  min-height: 56px;
  border-radius: var(--radius-sm);
  padding: 4px;
  transition: background .15s, border-color .15s;
  border: 2px dashed transparent;
}
.pool-dropzone.drag-over {
  background: #fffbeb;
  border-color: #fde047;
}

.seeding-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seeding-match-block {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.seeding-match-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.seeding-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: 46px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  position: relative;
}
.seeding-slot:last-child { border-bottom: none; }
.seeding-slot.drag-over {
  background: var(--accent-light);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.seeding-slot .seed-num {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted2);
  min-width: 20px;
}
.seeding-slot .slot-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.seeding-slot .slot-name-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .875rem;
  font-weight: 600;
  cursor: grab;
  user-select: none;
  transition: border-color .15s;
}
.seeding-slot .slot-name-chip:hover { border-color: var(--accent); }
.seeding-slot .slot-name-chip.dragging { opacity: .4; }
.seeding-slot .slot-empty {
  color: var(--muted2);
  font-size: .82rem;
  font-style: italic;
}
.seeding-slot .slot-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted2);
  font-size: .85rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.seeding-slot .slot-clear:hover { color: var(--red); background: var(--red-light); }

@media (max-width: 900px) {
  .pool-layout { grid-template-columns: 1fr; }
}

.muted { color: var(--muted); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ── LOGIN ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
}
.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}
.login-box h2 {
  margin-bottom: 6px;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -.02em;
}
.login-box .subtitle {
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: 28px;
}

/* ── ADMIN LAYOUT ── */
.admin-layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 4px 20px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sidebar-logo::before { content: '🏓'; }
.sidebar-section {
  padding: 14px 20px 4px;
  font-size: 0.68rem;
  color: var(--muted2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.sidebar-item {
  padding: 9px 20px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-item:hover { background: var(--surface2); color: var(--text); }
.sidebar-item.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-light); font-weight: 600; }
.sidebar-footer { padding: 20px; margin-top: auto; border-top: 1px solid var(--border); }
.main-area {
  padding: 0 32px 40px;
  overflow-y: auto;
  background: var(--bg);
}

/* ── DETAILS/SUMMARY ── */
details > summary {
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
details > summary::before { content: '▶'; font-size: .65rem; transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
details > summary::-webkit-details-marker { display: none; }

/* ── TROPHY / WINNER BANNER ── */
.tournament-winner {
  background: linear-gradient(135deg, #fef9c3, #fef08a);
  border: 1.5px solid #fde047;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(234,179,8,.2);
}
.tournament-winner .trophy { font-size: 2.4rem; }
.tournament-winner .title { font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #92400e; margin-bottom: 2px; }
.tournament-winner .name { font-size: 1.4rem; font-weight: 800; color: #78350f; letter-spacing: -.02em; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
.score-panel { grid-template-columns: 1fr; gap: 12px; }
  .featured-match .live-scores { grid-template-columns: 1fr; }
  .main-area { padding: 0 16px 32px; }
}
