/* ===========================================================
   MBSN — Stats / League Leaders page
   Only loaded on page-league-leaders.php (see functions.php).
   Uses the same design tokens as style.css.
   =========================================================== */

.mbsn-leaders-page { padding: 36px 0 60px; }

.leaders-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.leaders-page-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-heading); }

/* Desktop: 4 columns side by side */
.leaders-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.leaders-col { padding: 18px; }
.leaders-col .widget-title { color: var(--plum); font-family: var(--font-heading); }
.leaders-col-chevron { color: var(--text-muted); font-size: 1.1rem; }

.leaders-list { display: flex; flex-direction: column; gap: 4px; }

.leader-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-radius: var(--radius-sm); }
.leader-row:hover { background: var(--bg-subtle); }
.leader-row + .leader-row { border-top: 1px solid var(--border-color); }

.leader-rank { flex: 0 0 16px; font-weight: 700; font-size: 0.85rem; color: var(--plum); text-align: center; }

.leader-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center top;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.leader-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.leader-name { font-size: 0.85rem; font-weight: 600; color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-team { display: flex; align-items: center; font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-team .team-badge-img { width: 14px; height: 14px; margin-right: 4px; }

.leader-value { flex: 0 0 auto; font-weight: 700; font-size: 0.95rem; color: var(--text-heading); padding-left: 6px; }

.leaders-empty { opacity: 0.6; font-size: 0.85rem; padding: 10px 0; }

.leaders-articles-section { margin-top: 40px; }

/* ---------- Tablet: 2 columns ---------- */
@media (max-width: 1100px) {
  .leaders-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile: swipeable full-width category cards ---------- */
@media (max-width: 640px) {
  .mbsn-leaders-page { padding: 24px 0 40px; }
  .leaders-page-head { padding: 0 16px; margin-bottom: 16px; }
  .leaders-page-title { font-size: 1.2rem; }

  .leaders-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 16px 6px;
    margin: 0;
  }
  .leaders-grid::-webkit-scrollbar { display: none; }

  .leaders-col { scroll-snap-align: start; flex: 0 0 88vw; max-width: 360px; }

  .leader-name { font-size: 0.82rem; }
  .leader-value { font-size: 0.88rem; }

  .leaders-articles-section { padding: 0 16px; margin-top: 30px; }
  .leaders-articles-section .news-hub-grid .horizontal-article-card { flex: 0 0 100%; }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .leaders-page-head { padding: 0 4px; }
}
