* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-width: none; 
}
html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'Oswald', sans-serif;
  line-height: 1.6;
  color: #fff;
  margin: 0;
  padding: 0;
  position: relative;
  background: #000;
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  z-index: -1;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: opacity 0.5s ease-in-out;
}

.bg-image-current {
  opacity: 1;
}

.bg-image-next {
  opacity: 0;
}

/* Leaderboard Section */
.leaderboard-section {
  padding: 50px 0;
  position: relative;
  z-index: 1;
}

.leaderboard-title {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px #ff3d00,
               0 0 20px #ff3d00,
               0 0 30px #ff3d00;
  animation: title-flicker 0.2s infinite;
  margin-bottom: 2rem;
}

@keyframes title-flicker {
  0% { opacity: 0.9; }
  50% { opacity: 1; }
  100% { opacity: 0.9; }
}

/* Filter Panel */
.filter-panel {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 61, 0, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.filter-group {
  margin-bottom: 15px;
}

.filter-toggle {
  background: rgba(255, 61, 0, 0.1);
  border: 1px solid rgba(255, 61, 0, 0.3);
  color: #fff;
  padding: 8px 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  text-align: left;
  position: relative;
}

.filter-toggle:hover {
  background: rgba(255, 61, 0, 0.2);
  border-color: rgba(255, 61, 0, 0.4);
}

.filter-toggle::after {
  content: '>';
  position: absolute;
  right: 15px;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.filter-toggle.active::after {
  transform: rotate(-90deg);
}

.filter-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.filter-options.open {
  max-height: 300px;
}

.filter-item {
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-item:hover {
  background: rgba(255, 61, 0, 0.1);
}

.filter-item.selected {
  color: #86ec6c;
  background: rgba(255, 61, 0, 0.1);
}

/* Leaderboard Table */
.leaderboard-table {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 61, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.leaderboard-table table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  background: rgba(255, 61, 0, 0.1);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 61, 0, 0.2);
}

.leaderboard-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 61, 0, 0.1);
  color: rgba(255, 255, 255, 0.8);
  height: 24px;
  line-height: 24px;
  vertical-align: middle;
}

.leaderboard-table td b {
  display: inline-block;
  line-height: 24px;
  vertical-align: middle;
}

.leaderboard-table tr:hover {
  background: rgba(255, 61, 0, 0.05);
}

.leaderboard-table td:last-child,
.leaderboard-table th:last-child {
  min-width: 64px;
  text-align: right;
  white-space: nowrap;
}

/* Loading Spinner */
.loading-spinner {
  border: 3px solid rgba(255, 61, 0, 0.1);
  border-top: 3px solid #ff3d00;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dark Mode Toggle */
#dark-mode-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 61, 0, 0.3);
  border: 2px solid rgba(255, 61, 0, 0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  margin-left: 15px;
  box-shadow: 0 0 15px rgba(255, 61, 0, 0.3);
}

#dark-mode-toggle:hover {
  background: rgba(255, 61, 0, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 61, 0, 0.4);
}

#dark-mode-toggle.dark {
  background: rgba(255, 61, 0, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .filter-panel {
    margin-bottom: 20px;
  }
  
  .leaderboard-table {
    margin-top: 20px;
  }
  
  .leaderboard-table th,
  .leaderboard-table td {
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: clamp(10px, 3vw, 14px);
  }
  
  .leaderboard-table tr {
    height: 36px;
  }
  
  .leaderboard-title {
    font-size: 24px;
  }
}
@media (max-width: 480px) {
  .leaderboard-table th,
  .leaderboard-table td {
    font-size: clamp(8px, 4vw, 12px);
  }
  .leaderboard-table tr {
    height: 28px;
  }
}

