.lb-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.lb-table thead {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.lb-table th {
  padding: .9rem 1.1rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lb-table td {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.lb-row:last-child td { border-bottom: none; }

.lb-row:hover td { background: var(--bg-hover); }

.lb-rank { color: var(--text-muted); font-weight: 700; }
.lb-player { display: flex; flex-direction: column; gap: .1rem; }
.lb-player a { color: var(--text); font-weight: 600; }
.lb-player a:hover { color: var(--accent); }
.lb-pbe-name {
  font-size: .74rem;
  color: var(--text-muted);
  font-style: italic;
}
.lb-mmr { font-weight: 700; }

.lb-podium-1 .lb-rank { color: var(--gold); }
.lb-podium-2 .lb-rank { color: var(--silver); }
.lb-podium-3 .lb-rank { color: var(--bronze); }

.lb-podium-1 td:first-child::before { content: '🥇 '; }
.lb-podium-2 td:first-child::before { content: '🥈 '; }
.lb-podium-3 td:first-child::before { content: '🥉 '; }

/* ── Header row (titre + toggle) ────────────────────────────────────────── */

.lb-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.lb-season-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lb-toggle-btn {
  padding: .4rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.lb-toggle-btn:hover { color: var(--text); background: var(--bg-hover); }

.lb-toggle-active {
  background: var(--accent);
  color: #fff !important;
}

/* ── Search bar ──────────────────────────────────────────────────────────── */

.lb-search-form {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.lb-search-input {
  flex: 1;
  min-width: 200px;
  max-width: 380px;
  padding: .55rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .9rem;
  transition: border-color .15s;
}

.lb-search-input::placeholder { color: var(--text-muted); }

.lb-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.lb-search-btn { white-space: nowrap; }

.lb-search-clear {
  white-space: nowrap;
  font-size: .82rem;
  padding: .4rem .8rem;
}

/* ── Badge season ────────────────────────────────────────────────────────── */

.badge-season {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: rgba(88, 101, 242, .2);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: middle;
  margin-left: .5rem;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: .9rem;
}
