/* ─── Admin ──────────────────────────────────────────────── */

.page-admin {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 32px 80px;
}

/* Onglets */
.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.admin-tab {
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.admin-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.admin-tab:hover  { color: var(--text); }

/* Filtres */
.admin-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  transition: all .15s;
}
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Liste matchs admin */
.admin-matchs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-match-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(16,24,40,.04);
  transition: border-color .15s;
}
.admin-match-row:hover { border-color: var(--line-strong); }
.admin-match-row--done { opacity: .6; }

.admin-match-date {
  font-size: .78rem;
  color: var(--muted);
}

.admin-match-teams {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
}

.admin-match-groupe {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 2px;
}

.admin-score-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-score-input {
  width: 44px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  background: #f9fafb;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -moz-appearance: textfield;
}
.admin-score-input::-webkit-outer-spin-button,
.admin-score-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.admin-score-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: #fff;
}

.admin-score-sep {
  font-weight: 800;
  color: var(--dim);
}

.admin-score-reel {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  min-width: 60px;
  text-align: center;
}

.btn-valider {
  padding: 8px 14px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-valider:hover { opacity: .85; }
.btn-valider:disabled { opacity: .4; cursor: not-allowed; }

.admin-match-status {
  font-size: .72rem;
  min-height: 14px;
  color: var(--green);
  font-weight: 700;
}

/* Participants */
.admin-participants {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-participant-row {
  display: grid;
  grid-template-columns: 40px 1fr 100px 80px 80px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-p-avatar { font-size: 1.4rem; }
.admin-p-pseudo { font-weight: 700; font-size: .9rem; }
.admin-p-points { color: var(--muted); font-size: .82rem; text-align: center; }
.admin-p-admin  {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--blue);
  font-weight: 700;
}

.btn-toggle {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: all .15s;
}
.btn-toggle:hover { border-color: var(--danger); color: var(--danger); }
.btn-toggle--inactive { border-color: var(--green); color: var(--green); }
.btn-toggle--inactive:hover { background: var(--green); color: #fff; }

.admin-loading {
  color: var(--muted);
  font-size: .88rem;
  padding: 20px 0;
}

@media (max-width: 640px) {
  .page-admin { padding: 16px 16px 60px; }
  .admin-match-row { grid-template-columns: 1fr; gap: 10px; }
  .admin-participant-row { grid-template-columns: 40px 1fr 80px; }
  .admin-p-points { display: none; }
  .admin-p-admin  { display: none; }
}