/* Odds, tip and score stay on one row. The wide side-by-side fixture layout starts when the card is wide enough. */
.match-line-spacer {
    display: none;
}

.match-row {
    container-type: inline-size;
    container-name: match;
}

.match-line,
.match-line-fixture,
.match-line-meta {
    max-width: 100%;
    min-width: 0;
}

.match-line-fixture > div {
    min-width: 0;
}

.match-team {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.match-forms {
    max-width: 100%;
    flex-wrap: wrap;
}

.match-line-meta {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 3.5rem;
    align-items: end;
    gap: 0.35rem;
}

.match-line-meta .match-box,
.match-line-meta .match-pick {
    min-width: 0;
    max-width: 100%;
}

.match-line-meta .match-pick {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

@container match (max-width: 739px) {
    .match-line-fixture {
        gap: 0.35rem;
    }

    .match-line-fixture .match-logo {
        width: 1.75rem;
        height: 1.75rem;
    }

    .match-line-meta {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr) 3.15rem;
        gap: 0.3rem;
    }

    .match-line-meta > div > p {
        font-size: 10px;
        line-height: 1.15;
    }

    .match-line-meta .match-box,
    .match-line-meta .match-pick {
        height: 2.15rem;
    }

    .match-line-meta .match-box > div {
        padding-left: 1px;
        padding-right: 1px;
        gap: 0;
    }

    .match-line-meta .match-box > div span:first-child {
        font-size: 9px;
    }

    .match-line-meta .match-box > div span:last-child {
        font-size: 11px;
    }

    .match-line-meta .match-pick span {
        font-size: 11px;
    }
}

@container match (min-width: 740px) {
    .match-line {
        display: flex;
        flex-direction: row;
        align-items: center;
        column-gap: 1rem;
    }

    .match-line-fixture {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        justify-content: center;
    }

    .match-line-meta {
        flex: 0 1 400px;
        width: auto;
        max-width: 420px;
        min-width: 0;
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) 4.5rem;
        align-items: end;
        column-gap: 0.5rem;
    }

    .match-line-meta .match-box > div {
        min-width: 0;
        overflow: hidden;
    }
}
