/* Kisure Frontend v672
 * Unified fixture competition identity:
 * country flag + country name + league name + retained league mark.
 * Real API-Sports SVG flags render consistently on Windows/Chrome.
 */

.football-competition-identity {
    align-items: center;
    display: inline-flex;
    flex: 1 1 auto;
    gap: .42rem;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    white-space: normal;
}

.football-competition-identity__flag {
    align-items: center;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .10);
    display: inline-flex;
    flex: 0 0 32px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 18px;
    height: 22px;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    width: 32px;
}

.football-competition-identity__copy {
    align-items: baseline;
    display: flex;
    flex: 1 1 auto;
    gap: .34rem;
    min-width: 0;
    overflow: hidden;
}

.football-competition-identity__country {
    color: var(--primary-strong, #087f7c);
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .055em;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.football-competition-identity__separator {
    color: currentColor;
    flex: 0 0 auto;
    font-size: .7rem;
    opacity: .48;
}

.football-competition-identity__league {
    color: inherit;
    display: block;
    font-size: .9rem;
    font-weight: 850;
    line-height: 1.18;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.football-competition-identity__mark {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    margin-left: .08rem;
}

.football-competition-identity__mark img,
.football-schedule-competition__title .football-competition-identity__mark img {
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(15, 133, 131, .10) !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    height: 25px !important;
    object-fit: contain !important;
    padding: .15rem !important;
    width: 25px !important;
}

/* Existing schedule headers on /football, /football/fixtures, club, stadium,
 * referee, Sports Desk and Match Centre history all use this class. */
.football-schedule-competition__title {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
}

.football-schedule-competition__title > .football-competition-identity {
    display: inline-flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

/* Compact scoredeck / homepage fixture cards. */
.ks-match__head--country-league {
    min-width: 0;
}

.ks-match__head--country-league > .football-competition-identity {
    color: inherit;
    flex: 1 1 auto;
    min-width: 0;
}

.football-home-board--v550 .ks-match__head--country-league {
    display: grid !important;
    gap: 2px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    height: 64px !important;
    padding-bottom: 6px !important;
    padding-top: 6px !important;
}

.football-home-board--v550 .ks-match__head--country-league .football-competition-identity {
    color: #edf6f5 !important;
    gap: 7px !important;
}

.football-home-board--v550 .ks-match__head--country-league .football-competition-identity__flag {
    background: rgba(255, 255, 255, .96) !important;
    border-color: rgba(255, 255, 255, .7) !important;
    flex-basis: 30px !important;
    height: 30px !important;
    width: 30px !important;
}

.football-home-board--v550 .ks-match__head--country-league .football-competition-identity__country {
    color: rgba(237, 246, 245, .82) !important;
    font-size: 10px !important;
}

.football-home-board--v550 .ks-match__head--country-league .football-competition-identity__league {
    color: #fff !important;
    font-size: 13.5px !important;
}

.football-home-board--v550 .ks-match__head--country-league .football-competition-identity__separator {
    color: rgba(237, 246, 245, .72) !important;
}

.football-home-board--v550 .ks-match__head--country-league .football-competition-identity__mark img {
    height: 23px !important;
    width: 23px !important;
}

.football-home-board--v550 .ks-match__head--country-league .ks-match__round {
    margin: 0 0 0 37px !important;
    transform: none !important;
}

/* Generic match-card headers used outside the grouped schedule. */
.football-match-card__league--country {
    flex: 1 1 auto;
    max-width: min(76%, 620px);
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.football-match-card__league--country > .football-competition-identity {
    color: inherit;
    min-width: 0;
}

.football-match-card__league--country .football-competition-identity__country {
    font-size: .66rem;
}

.football-match-card__league--country .football-competition-identity__league {
    font-size: .78rem;
}

html[data-theme="dark"] .football-competition-identity__flag,
html[data-theme="dark"] .football-competition-identity__mark img {
    background: rgba(255, 255, 255, .94) !important;
}

@media (max-width: 640px) {
    .football-competition-identity {
        gap: .34rem;
    }

    .football-competition-identity__flag {
        font-size: 16px;
    }

    .football-competition-identity__copy {
        align-items: flex-start;
        display: grid;
        gap: 1px;
        grid-template-columns: minmax(0, 1fr);
    }

    .football-competition-identity__separator {
        display: none;
    }

    .football-competition-identity__country {
        font-size: .62rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .football-competition-identity__league {
        font-size: .8rem;
    }

    .football-schedule-competition__head {
        min-height: 56px;
    }

    .football-home-board--v550 .ks-match__head--country-league {
        height: 66px !important;
    }

    .football-home-board--v550 .ks-match__head--country-league .football-competition-identity__copy {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .football-home-board--v550 .ks-match__head--country-league .ks-match__round {
        margin-left: 37px !important;
    }

    .football-match-card__league--country {
        max-width: 72%;
    }
}

/* Prediction fixture cards that expose league context use the same identity. */
.football-prediction-match-card__league > .football-competition-identity {
    max-width: 100%;
    min-width: 0;
}

.football-prediction-match-card__league .football-competition-identity__mark img {
    height: 24px !important;
    margin: 0 !important;
    width: 24px !important;
}


/* v671: grouped fixture bars are teal, so the country/league copy must remain
 * explicitly visible while retaining the existing league logo. */
.football-schedule-competition__head .football-competition-identity__country,
.football-schedule-competition__head .football-competition-identity__league,
.football-schedule-competition__head .football-competition-identity__separator {
    color: #fff !important;
}

.football-schedule-competition__head .football-competition-identity__country {
    opacity: .82;
}

.football-header-panel__competition-identity,
.football-header-mobile-panel__competition-identity {
    display: block;
    min-width: 0;
}

.football-header-panel__competition-identity .football-competition-identity,
.football-header-mobile-panel__competition-identity .football-competition-identity {
    width: 100%;
}

.football-header-panel__competition-identity .football-competition-identity__country,
.football-header-mobile-panel__competition-identity .football-competition-identity__country {
    color: currentColor;
    opacity: .72;
}

.football-schedule-competition__head .football-competition-identity__country {
    font-size: .82rem;
    letter-spacing: 0;
    text-transform: none;
}

/* v672: API-Sports SVG flags. Windows does not reliably render regional
 * indicator emoji, so the image is the visual source of truth. */
.football-competition-identity__flag-image {
    border-radius: 3px;
    display: block;
    height: 18px;
    max-width: 28px;
    object-fit: cover;
    width: 28px;
}

@media (max-width: 640px) {
    .football-competition-identity__flag {
        flex-basis: 29px;
        height: 20px;
        width: 29px;
    }

    .football-competition-identity__flag-image {
        height: 16px;
        max-width: 25px;
        width: 25px;
    }
}
