.matches-container {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.match {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-bottom: 2px solid rgb(126, 124, 124);
    width: 100%;

}

.team {
    margin: 0;
    text-align: center;
    word-break: break-word;
}

.date {
    margin: 0;
    text-align: center;
    min-width: 120px;
    /* Fixed width for date */
}

.team-logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
}

.match:hover {
    background-color: antiquewhite;
}

.score {
    font-weight: bold;
}

.match-filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.match-filter-buttons>a {
    color: rgb(162, 166, 198);
    font-weight: bold;
    text-decoration: none;
}

.upcoming-matches-button:hover {
    color: rgb(185, 226, 178);
}

.finished-matches-button:hover {
    color: rgb(226, 178, 178);
}

.predictions-button:hover {
    color: rgb(227, 227, 160)
}

.match-link {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 600px) {
    .match {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
        width: 90%;
    }

    .date {
        order: -1;
        /* Move date to top on mobile */
    }
}

/* predictions */

.match.correct:hover {
    background-color: #b4dbb5;

}

.match.close:hover {
    background-color: #ded8a2;

}

.match.incorrect:hover {
    background-color: #ce928e;

}