.scrolling-section {
    min-height: 400px;
    max-height: 600px;
    max-width: 400px;
    overflow-y: auto;
}

/* Кастомный скроллбар для аккуратного вида */
.scrolling-section::-webkit-scrollbar {
    width: 7px;
}

.scrolling-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
    background-clip: padding-box;
}

.scrolling-section::-webkit-scrollbar-track {
    /* Можно добавить отступы сверху и снизу, чтобы "укоротить" видимый путь */
    margin-top: 30px;
    margin-bottom: 30px;
    background: transparent;
}

.scrolling-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background-clip: padding-box;
}


.top-players-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 12px 5px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.2s;
    background-color: #ffffff;
}

body.dark-theme .player-item {
    background-color: #919191;
    color: white;
}

.position {
    font-size: 1.8em;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}


.player-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name {
    font-weight: bold;
    color: #000000;
}

.wins {
    color: #7f8c8d;
    font-size: 1.0em;
}

body.dark-theme .wins {
    color: #000000;
    font-size: 1.0em;
}

/* Стили для призовых мест */
.champion {
    background: #ffebcc;
}

.silver {
    background: #eceeef;
}

.bronze {
    background: #ffecb3;
}

/* Стили для призовых мест */
body.dark-theme .champion {
    background: #ffebcc;
}

body.dark-theme .silver {
    background: #eceeef;
}

body.dark-theme .bronze {
    background: #ffecb3;
}