.matches-list {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    border: 2px solid #F5F5F5;
    border-radius: 5px;
    padding: 5px 10px;
}

.match {
    display: block;
    padding: 8px 10px;
    border-bottom: 2px solid #F5F5F5;
}

a.match {
    text-decoration: none;
}

.match:last-child {
    border-bottom: none;
}

.match-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    margin-bottom: 5px;
    color: #666;
    text-transform: uppercase;
}

.match-info {
    display: grid;
    grid-template-columns: minmax(0, 3fr) auto minmax(0, 3fr);
    gap: 8px;
    margin-bottom: 5px;
    align-items: center;
}

.team {
    display: flex;
    align-items: center;
    min-width: 0;
}

.team p {
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    min-width: 0;
    flex: 1;
}

.team img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0 5px;
}

.team-left {
    justify-content: flex-end;
    text-align: right;
    flex: 1;
}

.team-right {
    justify-content: flex-start;
    text-align: left;
    flex: 1;
}

.score {
    font-size: 1.2em;
    font-weight: bold;
    color: #61B5E0;
    text-align: center;
    white-space: nowrap;
    padding: 0 8px;
}

.loading {
    padding: 10px;
    text-align: center;
    color: #666;
}

.thanks {
    padding: 15px 0 10px 0;
    text-align: center;
    display: block;
}

.thanks img {
    width: 110px;
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #141414;
        color: #F5F5F5;
    }

    .matches-list {
        border: 2px solid #444 !important;
    }

    .match {
        border-bottom: 2px solid #444 !important;
    }

    .match-meta {
        color: #999 !important;
    }

    .team p {
        color: #FFF !important;
    }

    .thanks {
        color: #888;
    }

    .thanks a {
        color: #888;
    }

    .thanks a:hover {
        color: #61B5E0;
    }
}