:root {
  --primary: #00cc66;
  --primary-dark: #00a352;
  --secondary: #1a1a1a;
  --accent: #ffcc00;
  --light: #f8f9fa;
  --dark: #121212;
  --glow: 0 0 15px rgba(0, 204, 102, 0.7);
  --glow-accent: 0 0 15px rgba(255, 204, 0, 0.7);
}



.leaderboard-section {
  background: rgba(18, 18, 18, 0.9);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 204, 102, 0.2);
  margin-top: 30px;
}

.leaderboard-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.leaderboard-section-header h2 {
  font-size: 2.8rem;
  color: var(--accent);
  text-shadow: var(--glow-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.leaderboard-section-header h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--primary);
  border-radius: 5px;
  box-shadow: var(--glow);
}

.leaderboard-section-header p {
  font-size: 1.1rem;
  color: #aaa;
  max-width: 700px;
  margin: 20px auto 0;
}

.weight-class-selector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.weight-class-btn {
  padding: 10px 25px;
  background: rgba(30, 30, 30, 0.8);
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.weight-class-btn:hover,
.weight-class-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--glow);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 10px;
}

.leaderboard-table thead {
  background: rgba(0, 204, 102, 0.2);
}

.leaderboard-table th {
  padding: 18px 15px;
  text-align: left;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
}

.leaderboard-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.leaderboard-table tbody tr:hover {
  background: rgba(30, 30, 30, 0.7);
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.leaderboard-table td {
  padding: 20px 15px;
  font-size: 1rem;
}

.rank {
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--accent);
  text-align: center;
  width: 60px;
}

.rank.champion {
  color: var(--primary);
  text-shadow: var(--glow);
}

.leaderboard-fighter-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.leaderboard-fighter-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: var(--glow);
}

.leaderboard-fighter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fighter-details {
  display: flex;
  flex-direction: column;
}

.fighter-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.fighter-record {
  color: var(--primary);
  font-size: 0.9rem;
}

.weight-class {
  font-weight: 500;
  color: #ddd;
}

.form-indicators {
  display: flex;
  gap: 8px;
}

.form-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.win {
  background: rgba(0, 204, 102, 0.2);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.loss {
  background: rgba(255, 0, 0, 0.2);
  color: #ff3333;
  border: 1px solid #ff3333;
}

.nc {
  background: rgba(170, 170, 170, 0.2);
  color: #aaa;
  border: 1px solid #aaa;
}

.trend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
}

.trend.up {
  color: var(--primary);
}

.trend.down {
  color: #ff3333;
}

.trend.neutral {
  color: #aaa;
}

@media (max-width: 768px) {
  .leaderboard-section {
    padding: 25px;
  }

  .leaderboard-section-header h2 {
    font-size: 2.2rem;
  }

  .leaderboard-table {
    display: block;
    overflow-x: auto;
  }

  .weight-class-selector {
    justify-content: flex-start;
  }

  .fighter-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .leaderboard-fighter-image {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .leaderboard-table th,
  .leaderboard-table td {
    padding: 15px 10px;
    font-size: 0.9rem;
  }

  .rank {
    font-size: 1.1rem;
  }

  .form-indicator {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
}


