ul.player-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0;
    list-style: none;
}

ul.player-info {
    list-style-type: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.image-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-link {
    flex-direction: column;
    align-items: center;   
    text-decoration: none;
    color: inherit;
}

.player-name-box {
    background-color: #333;
    width: 90%;
    padding: 5px 10px;       
    border-radius: 6px;      
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.image-box img {
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
}

.player-card {
    border: 1px solid #ddd;
    background-color: #181a1b;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.player-card:hover {
    background-color: #111;
}

.player-card a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #ddd;
    font-size: 22px;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.player-card img {
    max-height: 100px;
    width: auto;
    height: auto;
    margin-top: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
    ul.player-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    ul.player-list {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    .player-card a {
        font-size: 18px;
    }

    .player-card img {
        height: 100px; /* smaller images */
        width: auto;
    }
}
