﻿.ifl-page {
    direction: rtl;
    font-family: 'Tajawal',Tahoma,Arial,sans-serif;
    background: #f6f8f5;
    min-height: 80vh;
    color: #1d2b22;
    padding: 18px 0 45px
}

    .ifl-page * {
        box-sizing: border-box
    }

.ifl-container {
    max-width: 1100px;
    margin: auto;
    padding: 0 16px
}

.ifl-crumb {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #788379;
    font-size: 13px;
    margin-bottom: 14px
}

    .ifl-crumb a {
        text-decoration: none;
        color: #5b8c3b
    }

.ifl-topbar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 20px;
    flex-wrap: wrap
}

.ifl-all-link, .ifl-back {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 15px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid #dce6d8
}

.ifl-all-link {
    background: #5b8c3b;
    color: white;
    border-color: #5b8c3b
}

.ifl-back {
    color: #41503d;
    background: white
}

.ifl-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
    background: white;
    border: 1px solid #e6ede3;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 7px 20px rgba(25,60,28,.04)
}

.ifl-identity {
    display: flex;
    align-items: center;
    gap: 19px;
    min-width: 0
}

.ifl-logo {
    width: 95px;
    height: 95px;
    flex: 0 0 95px;
    background: #f7faf5;
    border: 1px solid #e9f0e6;
    border-radius: 19px;
    display: grid;
    place-items: center;
    font-size: 36px
}

    .ifl-logo img {
        width: 78px;
        height: 78px;
        object-fit: contain
    }

.ifl-kicker {
    color: #5b8c3b;
    font-size: 13px;
    font-weight: 800
}

.ifl-hero h1 {
    font-size: clamp(22px,3.2vw,34px);
    margin: 6px 0 8px;
    line-height: 1.3;
    font-weight: 900
}

.ifl-country {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    color: #707d72;
    font-size: 14px
}

    .ifl-country img {
        height: 17px;
        width: 24px;
        object-fit: contain
    }

.ifl-separator {
    color: #b8c0b6
}

.ifl-season-form {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 14px
}

    .ifl-season-form select {
        background: #f7f9f6;
        border: 1px solid #d9e4d5;
        border-radius: 10px;
        padding: 10px 20px;
        font-family: inherit;
        color: #253725
    }

.ifl-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin: 16px 0
}

    .ifl-stats > div {
        background: #fff;
        border: 1px solid #e6ede3;
        border-radius: 15px;
        padding: 15px 19px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px
    }

    .ifl-stats span {
        color: #6a766d;
        font-weight: 700;
        font-size: 13px
    }

    .ifl-stats strong {
        font-size: 25px;
        font-weight: 900;
        font-variant-numeric: tabular-nums
    }

.ifl-live-number {
    color: #dc523f
}

.ifl-panel {
    background: white;
    border: 1px solid #e6ede3;
    border-radius: 19px;
    overflow: hidden
}

.ifl-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 19px 22px 8px
}

    .ifl-panel-heading h2 {
        font-size: 19px;
        font-weight: 900;
        margin: 0
    }

    .ifl-panel-heading > span {
        font-size: 12px;
        color: #818d80
    }

.ifl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 20px 17px
}

    .ifl-filters button {
        border: 1px solid #e0e7de;
        background: #f7f9f6;
        color: #59685c;
        border-radius: 100px;
        cursor: pointer;
        padding: 9px 15px;
        font-family: inherit;
        font-weight: 800;
        font-size: 13px
    }

        .ifl-filters button.is-active {
            background: #5b8c3b;
            color: white;
            border-color: #5b8c3b
        }

        .ifl-filters button span {
            margin-right: 3px;
            opacity: .85
        }

.ifl-day-header {
    font-size: 14px;
    font-weight: 900;
    background: #f7faf5;
    color: #466440;
    padding: 12px 20px;
    margin: 0;
    border-top: 1px solid #edf0eb;
    border-bottom: 1px solid #edf0eb;
    display: flex;
    justify-content: space-between
}

    .ifl-day-header small {
        font-size: 12px;
        color: #80917d
    }

.ifl-match {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) 104px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    min-height: 91px;
    padding: 14px 21px;
    border-bottom: 1px solid #edf0eb
}

    .ifl-match:last-child {
        border-bottom: 0
    }

.ifl-team {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0
}

    .ifl-team strong {
        font-size: 14px;
        font-weight: 800;
        min-width: 0;
        overflow-wrap: anywhere
    }

.ifl-home {
    justify-content: flex-end
}

    .ifl-home strong {
        text-align: left
    }

.ifl-away {
    justify-content: flex-start
}

    .ifl-away strong {
        text-align: right
    }

.ifl-team-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center
}

    .ifl-team-logo img {
        width: 32px;
        height: 32px;
        object-fit: contain
    }

.ifl-score {
    text-align: center;
    display: grid;
    gap: 5px;
    justify-items: center
}

    .ifl-score b {
        font-size: 19px;
        font-weight: 900;
        white-space: nowrap;
        font-variant-numeric: tabular-nums
    }

    .ifl-score small {
        color: #869186;
        font-size: 11px;
        line-height: 1.1;
        font-weight: 800
    }

    .ifl-score.ifl-live b, .ifl-score.ifl-live small {
        color: #df4e40
    }

    .ifl-score.ifl-finished b {
        color: #29432d
    }

    .ifl-score.ifl-upcoming b {
        font-size: 15px;
        color: #526350
    }

.ifl-round {
    position: absolute;
    bottom: 4px;
    right: 50%;
    transform: translateX(50%);
    color: #a1aba1;
    font-size: 10px;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.ifl-empty, .ifl-notice {
    padding: 35px 20px;
    text-align: center;
    color: #7b867a
}

.ifl-footnote {
    text-align: center;
    font-size: 12px;
    color: #93a090;
    margin-top: 17px
}

.ifl-match[hidden], .ifl-day[hidden], .ifl-empty[hidden] {
    display: none !important
}

@media(max-width:680px) {
    .ifl-hero {
        padding: 17px;
        gap: 15px
    }

    .ifl-logo {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 13px
    }

        .ifl-logo img {
            width: 54px;
            height: 54px
        }

    .ifl-hero h1 {
        font-size: 23px
    }

    .ifl-stats {
        grid-template-columns: repeat(2,1fr);
        gap: 8px
    }

        .ifl-stats > div {
            padding: 12px
        }

        .ifl-stats strong {
            font-size: 22px
        }

    .ifl-panel-heading {
        padding: 16px 12px 7px
    }

    .ifl-filters {
        padding: 8px 10px 14px;
        gap: 5px
    }

        .ifl-filters button {
            padding: 8px 11px;
            font-size: 12px
        }

    .ifl-match {
        grid-template-columns: minmax(0,1fr) 74px minmax(0,1fr);
        gap: 3px;
        padding: 11px 8px;
        min-height: 92px
    }

    .ifl-team {
        gap: 4px
    }

        .ifl-team strong {
            font-size: 12px
        }

    .ifl-team-logo {
        width: 26px;
        height: 26px;
        flex-basis: 26px
    }

        .ifl-team-logo img {
            width: 24px;
            height: 24px
        }

    .ifl-score b {
        font-size: 16px
    }

    .ifl-day-header {
        padding: 12px
    }

    .ifl-round {
        font-size: 9px
    }

    .ifl-topbar a {
        font-size: 12px;
        padding: 9px 11px
    }
}

@media(max-width:360px) {
    .ifl-match {
        grid-template-columns: minmax(0,1fr) 66px minmax(0,1fr)
    }

    .ifl-team strong {
        font-size: 11px
    }

    .ifl-identity {
        gap: 10px
    }
}

.ifl-score-numbers {
    display: inline-flex;
    direction: rtl;
    align-items: center;
    gap: 7px
}

.ifl-score-colon {
    font-weight: 700;
    opacity: .55
}

/* Team profile navigation; preserve match alignment. */
.ifl-team-name-link {
    color: inherit;
    text-decoration: none;
}

    .ifl-team-name-link:hover {
        color: #5B8C3B;
        text-decoration: underline;
    }

    .ifl-team-name-link:focus-visible {
        outline: 2px solid #5B8C3B;
        outline-offset: 3px;
        border-radius: 3px;
    }
