#match-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    padding: 20px 16px;
}

.match-card {
    position: relative;
    background: linear-gradient(180deg, rgba(30,32,40,.9), rgba(15,16,20,.95));
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    overflow: hidden;
    transition: .25s;
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
}

/* League badge pill, centered at top */
.league {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 2px;
    font-size: 12px;
    font-weight: 600;
    color: #d1d5db;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.league img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

/* Main row: team logo | center info | team logo */
.match-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    min-height: 90px;
}

/* Blurred team-logo backgrounds behind each side */
.team-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .10;
    filter: blur(1px);
    pointer-events: none;
}

.team-bg.left { left: 0; }
.team-bg.right { right: 0; transform: scaleX(-1); }

.team-logo-wrap {
    position: relative;
    z-index: 2;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
}

.team-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.match-center {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.match-time {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}

.match-date {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
    letter-spacing: .5px;
}

.match-day {
    font-size: 10px;
    color: #6b7280;
    letter-spacing: 1px;
    margin-top: 1px;
}

/* Names row with VS in the middle */
.teams-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px 16px;
    gap: 8px;
}

.team-name {
    flex: 1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
}

.team-name.left { text-align: left; }
.team-name.right { text-align: right; }

.vs-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.vs-divider::before,
.vs-divider::after {
    content: "";
    width: 24px;
    height: 1px;
    background: rgba(255,255,255,.15);
}

.vs-text {
    font-size: 13px;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 1px;
}

/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 768px) {

    #match-list {
        grid-template-columns: 1fr;
        padding: 16px 8px;
        gap: 14px;
    }

    .team-logo-wrap {
        width: 56px;
        height: 56px;
    }

    .match-time {
        font-size: 18px;
    }

}
