/* Горизонтальный блок рейтинга */
.horizontal-leaderboard {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  color: white;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.horizontal-leaderboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.horizontal-leaderboard .container {
  max-width: 1200px;
  width: 100%;
  position: relative;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Заголовок и табы */
.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.leaderboard-title {
  text-align: left;
}

.leaderboard-title h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.star-icon {
  font-size: 1.2rem;
  color: #ffd700;
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.date-range {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 0.25rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Табы */
.leaderboard-tabs {
  display: flex;
  gap: 0.4rem;
}

.leaderboard-tab {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-width: 80px;
  text-align: center;
}

.leaderboard-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.leaderboard-tab:hover::before {
  left: 100%;
}

.leaderboard-tab:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.leaderboard-tab.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  color: #4f46e5;
  border-color: white;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

/* Темная тема для лидерборда */
[data-theme="dark"] .leaderboard-tab.active {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border-color: var(--border-color);
  box-shadow: 0 6px 20px rgba(88, 166, 255, 0.3);
  transform: translateY(-2px);
}

/* Список лидеров - десктопная версия */
.leaders-list {
  display: flex;
  justify-content: flex-start;
  gap: 0.4rem;
  margin-bottom: 0;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0; /* Позволяет контейнеру сжиматься */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0.5rem 1rem 0.5rem 1.5rem; /* Отступ слева для карточек */
  margin: -0.5rem 0 -0.5rem 0;
  /* Скрываем скроллбар на десктопе, но оставляем возможность прокрутки */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE и Edge */
}

/* Скрываем скроллбар для WebKit браузеров (Chrome, Safari, Opera) */
.leaders-list::-webkit-scrollbar {
  display: none;
}

/* На мобильных показываем скроллбар */
@media (max-width: 768px) {
  .leaders-list {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }
  
  .leaders-list::-webkit-scrollbar {
    display: block;
    height: 6px;
  }
  
  .leaders-list::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .leaders-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }
  
  .leaders-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }
}

.leader-item {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 1rem 0.6rem;
  text-align: center;
  flex: 0 0 auto; /* Не растягивается, фиксированный размер */
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  min-height: 140px;
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 0.7s ease forwards;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.leader-avatar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
}

.leader-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.leader-item:hover::before {
  opacity: 1;
}

.leader-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Ссылка внутри карточки */
.leader-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  width: 100%;
}

.leader-link:hover {
  text-decoration: none;
  color: inherit;
}

.leader-rank {
  background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
  color: #212529; /* Темный цвет для лучшей видимости на желтом фоне */
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Темная тема для рейтинга лидеров */
[data-theme="dark"] .leader-rank {
  color: #212529 !important; /* Принудительно устанавливаем темный цвет для лучшей видимости на желтом фоне */
}

.leader-flag {
  width: 18px;
  height: 14px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.leader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 0.1rem;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.leader-avatar-placeholder {
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 0.1rem;
  flex-shrink: 0;
}

.leader-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: white;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.leader-first-name,
.leader-last-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.leader-score {
  font-size: 0.8rem;
  opacity: 0.95;
  color: #ffd700;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Блок уровня и очков - вертикальная компоновка */
.leader-level-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.leader-level {
  font-size: 0.7rem;
  font-weight: 700;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.2);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  text-shadow: 0 1px 3px rgba(0, 212, 255, 0.3);
  position: relative;
  z-index: 1;
  cursor: help;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.leader-level:hover {
  background: rgba(0, 212, 255, 0.35);
  border-color: rgba(0, 212, 255, 0.6);
  transform: scale(1.05);
}


/* PROJECT-GT на левом краю фона */
.main-brand {
  position: absolute;
  left: 2rem;
  top: 1rem;
  z-index: 10;
  max-width: 200px;
  pointer-events: none;
}

.main-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap; /* Не переносить текст на новую строку */
  word-break: keep-all;
}

/* Слоганы справа от статусной строки */
.leaderboard-slogan {
  text-align: right;
  max-width: 300px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2rem;
}

.slogan-quote {
  margin: 0;
  font-style: italic;
}

.slogan-text {
  font-size: 1rem;
  color: #6c757d;
  text-shadow: none;
  line-height: 1.4;
}

/* Темная тема для слогана */
[data-theme="dark"] .slogan-text {
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
}

/* Слоганы в блоке рейтинга */
.horizontal-leaderboard .leaderboard-slogan {
  text-align: center;
  max-width: none;
  margin: 0;
  padding: 0 2rem;
}

.horizontal-leaderboard .slogan-quote {
  margin: 0;
  font-style: italic;
}

.horizontal-leaderboard .slogan-text {
  font-size: 0.9rem;
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Информация о рейтинге слева от карточек */
.leaderboard-info {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  text-align: left;
  max-width: 250px;
  pointer-events: none;
}

.leaderboard-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Основной контент с карточками и табами */
.leaderboard-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-left: 280px; /* Отступ от PROJECT-GT и информации о рейтинге */
  position: relative;
  width: calc(100% - 280px);
  min-width: 0; /* Позволяет контейнеру сжиматься */
  padding-left: 1rem; /* Дополнительный отступ для карточек */
}

/* Блок с карточками и табами */
.leaderboard-main {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  min-width: 0; /* Позволяет контейнеру сжиматься */
  padding-top: 0.25rem; /* Отступ сверху для закруглений карточек */
  position: relative;
}

/* Вертикальные табы справа от карточек */
.leaderboard-tabs-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
  min-width: 90px;
  position: relative;
  z-index: 10;
  background: transparent;
}

/* Анимации */
@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .horizontal-leaderboard {
    padding: 0.8rem 0;
    margin: 0 0.5rem 1rem;
    overflow-x: hidden; /* предотвращаем горизонтальный скролл самого блока */
  }
  
  .horizontal-leaderboard .container {
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    overflow-x: hidden;
  }
  
  .main-brand {
    position: static;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .main-title {
    font-size: 2.2rem;
  }
  
  .leaderboard-slogan {
    text-align: center;
    max-width: none;
    margin-top: 0.5rem;
  }
  
  .slogan-text {
    font-size: 0.95rem;
  }
  
  .horizontal-leaderboard .leaderboard-slogan {
    margin: 0;
    padding: 0 1rem;
  }
  
  .horizontal-leaderboard .slogan-text {
    font-size: 0.85rem;
    color: white !important;
  }
  
  .leaderboard-info {
    position: static;
    text-align: center;
    margin-bottom: 1rem;
    transform: none;
    right: auto;
    top: auto;
  }
  
  .leaderboard-info h3 {
    font-size: 1.2rem;
    justify-content: center;
  }
  
  .leaderboard-content {
    flex-direction: column;
    gap: 0.2rem;
    margin-left: 0;
    width: 100%;
    overflow-x: hidden;
  }
  
  .leaderboard-main {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    overflow-x: hidden;
  }
  
  .leaderboard-tabs-vertical {
    flex-direction: row;
    justify-content: center;
    gap: 0.2rem;
    align-self: center;
  }
  
  .leaderboard-tabs {
    flex-direction: row;
    justify-content: center;
    gap: 0.4rem;
  }
  
  .leaderboard-tab {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    min-width: 70px;
  }
  
  .leaders-list {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    margin: 0 -0.5rem;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-left: 0.5rem;
    scroll-padding-right: 0.5rem;
    width: calc(100% + 1rem);
  }
  
  .leader-item {
    min-width: 110px;
    max-width: 130px;
    min-height: 120px;
    padding: 0.8rem 0.5rem;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    scroll-snap-align: start;
  }
  
  /* Первая и последняя карточки - видимые полностью */
  .leader-item:first-child {
    margin-left: 0.5rem;
  }
  
  .leader-item:last-child {
    margin-right: 0.5rem;
  }
  
  .leader-name {
    font-size: 0.85rem;
    line-height: 1.15;
  }
  
  .leader-score {
    font-size: 0.75rem;
  }
  
  .leader-level {
    font-size: 0.65rem;
    padding: 0.08rem 0.25rem;
  }
  
  .leader-level-score {
    gap: 0.1rem;
  }
}

@media (max-width: 480px) {
  .horizontal-leaderboard {
    padding: 0.7rem 0;
    margin: 0 0.3rem 1rem;
  }
  
  .leaderboard-header {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  
  .leaderboard-title h3 {
    font-size: 1.1rem;
    justify-content: center;
  }
  
  .leaderboard-tabs {
    gap: 0.3rem;
  }
  
  .leaderboard-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.6rem;
    min-width: 60px;
  }
  
  .leaders-list {
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    margin: 0 -0.3rem;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-left: 0.3rem;
    scroll-padding-right: 0.3rem;
    width: calc(100% + 0.6rem);
  }
  
  .leader-item {
    min-width: 100px;
    min-height: 110px;
    padding: 0.7rem 0.4rem;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    scroll-snap-align: start;
  }
  
  /* Первая и последняя карточки - видимые полностью */
  .leader-item:first-child {
    margin-left: 0.3rem;
  }
  
  .leader-item:last-child {
    margin-right: 0.3rem;
  }
  
  .leader-avatar {
    width: 32px;
    height: 32px;
  }
  
  .leader-rank {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
  
  .leader-name {
    font-size: 0.8rem;
  }
  
  .leader-score {
    font-size: 0.7rem;
  }
  
  .leader-level {
    font-size: 0.55rem;
    padding: 0.06rem 0.2rem;
  }
  
  .leader-level-score {
    gap: 0.08rem;
  }
}

/* Темная тема */
[data-theme="dark"] .horizontal-leaderboard {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #7c2d12 100%);
  box-shadow: 0 10px 40px rgba(30, 27, 75, 0.3);
}

[data-theme="dark"] .leaderboard-tab.active {
  background: var(--gradient-primary);
  color: var(--text-inverse);
}

/* ===== ОБЩИЕ ИСПРАВЛЕНИЯ ДЛЯ ТЕМНОЙ ТЕМЫ ===== */

[data-theme="dark"] .leaderboard-tab {
  color: var(--text-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .leaderboard-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-dark);
}

/* Убираем фоновый цвет для leaders-list в темной теме - оставляем как в светлой */
[data-theme="dark"] .leaders-list {
  background: transparent;
}

/* Убираем переопределения для темной темы - оставляем как в светлой */
[data-theme="dark"] .leader-item {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .leader-name {
  color: white;
}

[data-theme="dark"] .leader-score {
  color: #ffd700;
}

[data-theme="dark"] .leader-level {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
}

/* Высокий контраст */
@media (prefers-contrast: high) {
  .horizontal-leaderboard {
    background: #000;
    border: 2px solid #fff;
  }
  
  .leaderboard-tab {
    border: 2px solid #fff;
  }
  
  .leader-item {
    border: 2px solid #fff;
  }
}

/* Уменьшенная анимация */
@media (prefers-reduced-motion: reduce) {
  .leader-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .leaderboard-tab,
  .leader-item,
  .leaderboard-btn {
    transition: none;
  }
}

/* ============================================
   Home Mini Cards (FIFA Style)
   ============================================ */

.leaders-list {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-wrap: nowrap;
  padding: 0.5rem 0;
  margin: 0;
}

.home-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0.5rem 0.5rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #32CD32 0%, #20B2AA 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 115px;
  min-width: 110px;
  text-decoration: none;
  animation: slideInUp 0.5s ease forwards;
  opacity: 0;
}

.home-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

/* Rank color variations */
.home-mini-card.rank-легенда { background: linear-gradient(145deg, #FFD700 0%, #FFA500 100%); }
.home-mini-card.rank-мастер { background: linear-gradient(145deg, #FF6B35 0%, #E63946 100%); }
.home-mini-card.rank-профессионал { background: linear-gradient(145deg, #4169E1 0%, #7B68EE 100%); }
.home-mini-card.rank-пилот { background: linear-gradient(145deg, #32CD32 0%, #20B2AA 100%); }
.home-mini-card.rank-любитель { background: linear-gradient(145deg, #CD7F32 0%, #8B4513 100%); }
.home-mini-card.rank-новичок { background: linear-gradient(145deg, #808080 0%, #A9A9A9 100%); }

/* Header */
.hmc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.2rem;
}

.hmc-elo {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hmc-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Avatar */
.hmc-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 0.3rem;
}

.hmc-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.hmc-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.hmc-level {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #7c3aed, #a855f7);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

/* Name and rank */
.hmc-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.hmc-rank {
  font-size: 0.55rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* No data */
.leaders-list .no-data {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  padding: 1rem;
}

@media (max-width: 768px) {
  .leaders-list {
    gap: 0.5rem;
  }
  
  .home-mini-card {
    width: 95px;
    min-width: 90px;
    padding: 0.5rem 0.4rem;
  }
  
  .hmc-avatar {
    width: 42px;
    height: 42px;
  }
  
  .hmc-elo {
    font-size: 0.95rem;
  }
  
  .hmc-level {
    width: 18px;
    height: 18px;
    font-size: 0.55rem;
  }
}

@media (max-width: 576px) {
  .home-mini-card {
    width: 80px;
    min-width: 75px;
    padding: 0.4rem 0.3rem;
  }
  
  .hmc-avatar {
    width: 36px;
    height: 36px;
  }
  
  .hmc-elo {
    font-size: 0.85rem;
  }
  
  .hmc-name {
    font-size: 0.65rem;
  }
}
