table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px auto;
  margin-top: 55px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  min-height: 60vh
}

th, td {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
  font-family: 'CustomFont3', sans-serif;
  font-size: 25px;
}

th {
  background: rgba(0, 0, 0, 0.9);
  font-weight: bold;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.1);
}

#leaderbord {
  min-height: 70vh;
  padding: 20px;
}

/* Центровка только текста "Загрузка..." */
#leaderbord.loading::before {
  content: "Загрузка...";
  display: block;
  text-align: center;
  font-family: 'CustomFont3', sans-serif;
  font-size: 40px;
  color: white;
  text-shadow: 0 0 6px rgba(255, 0, 100, 0.5);
}

/* ----ПАГИНАЦИЯ---- */
/* ----ПАГИНАЦИЯ---- */
/* ----ПАГИНАЦИЯ---- */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.pagination a {
  color: white;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 0, 100, 0.4);
  padding: 6px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'CustomFont1', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(255, 0, 100, 0.3);
}

.pagination a:hover {
  background: rgba(255, 0, 100, 0.7);
  box-shadow: 
    0 0 8px rgba(255, 0, 100, 0.5),
    0 0 16px rgba(0, 128, 255, 0.5);
  transform: scale(1.05);
}

.pagination a.active {
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.8), rgba(255, 0, 255, 0.8), rgba(0, 128, 255, 0.8), rgba(255, 0, 0, 0.8));
  background-size: 300% 100%;
  animation: glow-move 4s linear infinite;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 0 8px rgba(255, 0, 100, 0.6),
    0 0 16px rgba(0, 128, 255, 0.5);
  font-weight: bold;
  transform: scale(1.1);
  border-radius: 6px;
}
.pagination .dots {
  color: #888;
  padding: 6px 10px;
  font-size: 16px;
  font-family: monospace;
}

.pagination .arrow {
  font-weight: bold;
}

/* АНИМАЦИИ */

@keyframes glow-move {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

.top1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  font-weight: bold;
  animation: top1-pulse 2s infinite alternate;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.4);
}

.top2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05));
  font-weight: bold;
  animation: top2-pulse 3s infinite alternate;
  box-shadow: 0 0 8px rgba(192, 192, 192, 0.2);
}

.top3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.03));
  font-weight: bold;
  animation: top3-pulse 4s infinite alternate;
  box-shadow: 0 0 4px rgba(205, 127, 50, 0.15);
}

@keyframes top1-pulse {
  0% {
    background-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  }
  100% {
    background-color: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
}

@keyframes top2-pulse {
  0% {
    background-color: rgba(192, 192, 192, 0.15);
    box-shadow: 0 0 5px rgba(192, 192, 192, 0.3);
  }
  100% {
    background-color: rgba(192, 192, 192, 0.08);
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
  }
}

@keyframes top3-pulse {
  0% {
    background-color: rgba(205, 127, 50, 0.08);
    box-shadow: 0 0 3px rgba(205, 127, 50, 0.15);
  }
  100% {
    background-color: rgba(205, 127, 50, 0.04);
    box-shadow: 0 0 6px rgba(205, 127, 50, 0.2);
  }
}

#leaderbord table tbody tr {
  transition: transform 0.5s ease, opacity 0.3s ease;
  will-change: transform;
}
