/* body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: var(--size-avg);
  background-color: #f5f5f5;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
} */

img {
    display: block;
    max-width: 100%;
}


/* CSS for section section:MatchWidget */
.match-widget-container {
    display: flex;
    flex-direction: column;
    gap: var(--size-small);
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: var(--size-avg);
    width: 100%;
}

.match-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* border-radius: var(--size-small); */
    /* box-shadow: 0px var(--size-tiny) var(--size-mid) 0px rgba(0, 0, 0, 0.08); */
    overflow: hidden;
    /* background-color: #fff; */
}

/* Header Styles */
.match-header {
    display: flex;
    align-items: center;
}
.match-header img {
    aspect-ratio: 1;
    height: calc(var(--text-h4)*var(--line-h) + 2*var(--size-normal));
    margin: auto 0;
}

.header-content {
    padding: var(--size-normal);
    background-color: var(--primary);
    display: flex;
    align-items: center;
    /* gap: var(--size-small); */
}

.league-title {
    display: -webkit-box;
    color: #ffffff;
    font-size: var(--text-h4);
    font-weight: 600;
    /* line-height: 1.2; */
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Match List Styles */
.match-list {
    display: flex;
    flex-direction: column;
}

.match-row {
    display: grid;
    grid-template-columns: 1fr 3fr 2fr 3fr 1fr;
    align-items: center;
    padding: var(--size-tiny) var(--size-normal);
    gap: 0;
    /* min-height: 75px; */
    /* height: 75px; */
    color: #000000;
}

/* Row Variants */
.row-yellow {
    background-color: #ffd700;
}

.row-white {
    background-color: #ffffff;
}

.row-dark {
    background-color: #1a1a2e;
    color: #ffffff;
}

/* Columns */
.row-left {
    flex-basis: 10%;
    flex-shrink: 0;
}

.row-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    justify-self: center;
    flex-shrink: 0;
    gap: 0;
    /* Gaps handled by inner containers */
}
.row-center > img {
    aspect-ratio: 1;
    height: calc(var(--text-h2)*var(--line-h) + 2*var(--size-small));
    margin: auto 0;
}

.row-right {
    flex-basis: 15%;
    /* Fixed width for alignment */
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Typography */
.match-time {
    font-size: var(--size-mid);
    color: inherit;
}

.team-group-wrapper {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
}
.team-group-wrapper > img {
    flex-shrink: 0;
    aspect-ratio: 1;
    height: calc(var(--text-h4)*var(--line-h) + 2*var(--size-small));
    margin: auto 0;
    z-index: 1;
}

.team-group {
    display: flex;
    align-items: center;
    /* gap: var(--size-small); */
    /* width: 135px; */
    background-color: var(--white);
    padding: var(--size-small) var(--size-tiny);
    width: 100%;
    min-width: 0;
    box-shadow: 0px var(--size-tiny) var(--size-mid) 0px rgba(0, 0, 0, 0.08);
}

.team-group.home {
    justify-content: flex-end;
}

.team-group.away {
    justify-content: flex-start;
}

.team-name {
    /* font-size: var(--size-mid); */
    color: inherit;
    /* white-space: nowrap; */
    width: 100%;
    min-width: 0;
    text-align: center;
}

/* .row-dark .team-name {
  color: #ffffff;
} */

.score-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--size-small);
}

.score {
    font-size: var(--text-h2);
    font-weight: 600;
    color: white;
    width: max-content;
}

/* .row-dark .score {
  color: #ffffff;
} */

.details-link {
    font-size: 14px;
    color: #0c00b1;
    text-decoration: none;
}

.row-dark .details-link {
    color: #ffffff;
}

/* Flag Icons / Merged Images */
.flag-icon {
    /* position: relative; */
    /* width: 34px; */
    /* height: var(--size-big); */
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.flag-layer {
    /* position: absolute;
  top: 0;
  left: 0; */
    width: 100%;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        padding: var(--size-small);
    }
    .match-header img {
        height: calc(var(--text-h4)*var(--line-h) + 2*var(--size-small));
    }
    .match-row {
        /* flex-wrap: wrap; */
        /* flex-direction: column; */
        grid-template-columns: 1fr 3fr 1fr 3fr 1fr;
        /* height: 50px; */
        padding: var(--size-tiny) var(--size-small);
    }

    .score-container {
        padding: var(--size-tiny);
    }

    .score {
        font-size: var(--text-h2);
        font-weight: 600;
        color: white;
        width: max-content;
    }

    .row-center > img {
        height: calc(var(--text-h2)*var(--line-h) + 2*var(--size-tiny));
    }

    .row-left {
        width: 100%;
        font-weight: bold;
        font-size: 14px;
    }

    .row-center {
        /* width: 100%; */
        /* justify-content: space-between; */
    }

    .team-group {
        padding: var(--size-tiny);
    }

    .team-name {
        /* font-size: 14px; */
        color: inherit;
        white-space: wrap;
    }

    /* .team-group.home>.team-name {
        text-align: right;
    } */

    .team-group.away>.team-name {
        text-align: left;
    }

    .row-right {
        display: none;
        /* width: 100%;
    justify-content: flex-start; */
    }

    .league-title {
        /* font-size: 14px; */
    }

    /* .rect-img.rotate-180 {
        width: 50%;
    } */
    .rect-img {
        display: none;
    }

    .match-widget-container {
        /* --text-h1: 2.25rem;
        --text-h2: 1.5rem;
        --text-h3: 1.25rem;
        --text-h4: 1rem;
        --text-h5: 0.75rem;
        --text-h6: 0.5rem;
        --text-p: 0.875rem; */

        --text-h1: 1.25rem;
        --text-h2: 1rem;
        --text-h3: 0.875rem;
        --text-h4: 0.75rem;
        --text-h5: 0.5rem;
        --text-h6: 0.5rem;
        --text-p: 0.75rem;
        /* scroll-behavior: smooth; */
    }
}
