/* ===== Улучшения для страницы рейтинга (top100-body) ===== */
.top100-body {
    position: relative;
    background-image: url('https://imgs.su/upload/547/2876394207.jpg?0');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px; /* отступ сверху и по бокам */
    box-sizing: border-box;
    display: block;
}

/* Полупрозрачный оверлей для читаемости */
.top100-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 0;
}

/* Контейнер для содержимого */
.top100-body > center {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

/* Заголовок (компактная версия) */
.top100-body b {
    display: inline-block;
    font-size: 24px;           /* было 32px */
    font-family: 'Pacifico', cursive;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    padding: 10px 25px;        /* было 15px 40px */
    border-radius: 40px;        /* было 60px */
    box-shadow: 0 8px 15px rgba(0,0,0,0.2); /* чуть уменьшена тень */
    margin-bottom: 25px;        /* был 30px */
    letter-spacing: 1px;        /* было 2px */
}

/* Адаптивность для мобильных (подстройка) */
@media (max-width: 768px) {
    .top100-body b {
        font-size: 20px;
        padding: 8px 20px;
        border-radius: 30px;
    }
}

/* Таблица рейтинга */
.top100-body table {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-collapse: collapse;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

/* Ячейки таблицы */
.top100-body td {
    padding: 12px 15px;
    border: none;
    color: #2c3e50;
    font-size: 14px;
    vertical-align: middle;
    background: transparent;
}

/* Заголовок таблицы (первая строка) */
.top100-body tr:first-child td {
    background: linear-gradient(181deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ссылки в заголовке (названия колонок) */
.top100-body tr:first-child td a {
    color: white;
    text-decoration: none;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background 0.3s;
}

.top100-body tr:first-child td a:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

/* Чётные строки таблицы */
.top100-body tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.03);
}

/* Строки при наведении */
.top100-body tr:hover {
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s;
}

/* Ссылки на профили пользователей */
.top100-body td a {
    color: #e74c3c;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

.top100-body td a:hover {
    color: #c0392b;
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
    text-decoration: underline;
}

/* Выравнивание чисел по правому краю */
.top100-body td[align="right"] {
    text-align: right !important;
}

/* Компактные кнопки навигации (предыдущая/следующая страница) */
.top100-body a[href*="?inc=top100"] {
    display: inline-block;
    padding: 2px 8px;           /* минимальные отступы */
    margin: 0 2px;              /* маленький внешний отступ */
    
    color: white;
    font-weight: bold;
    border-radius: 12px;        /* чуть скруглено, но не вычурно */
    text-decoration: none;
    font-size: 12px;            /* мелкий шрифт */
    line-height: 1.5;
    border: none;
    transition: background 0.2s; /* только изменение цвета при наведении */
}

.top100-body b:hover {
    box-shadow: 1px 1px 6px #252424 !important;
    background: linear-gradient(135deg, #FFC107, #FFC107) !important;
}

/* Текущий номер страницы (без ссылки) – тоже убираем тени и делаем плоским */
.top100-body b:not(:first-child) {
    display: inline-block;
    padding: 6px 13px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 44px;
    color: white;
    font-size: 25px;
    margin: 0 2px;
    font-weight: normal;
    border: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .top100-body > center {
        padding: 15px;
    }
    
    .top100-body b {
        font-size: 24px;
        padding: 10px 20px;
    }
    
    .top100-body table {
        font-size: 12px;
    }
    
    .top100-body td {
        padding: 8px 6px;
    }
    
    .top100-body tr:first-child td {
        font-size: 13px;
    }
    
    .top100-body a[href*="?inc=top100"],
    .top100-body b:not(:first-child) {
        padding: 3px 8px;
        font-size: 12px;
        margin: 0 2px;
    }
}

/* Анимация появления таблицы */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.top100-body table {
    animation: fadeInScale 0.5s ease-out;
}