﻿.ift-page {
    font-family: 'Tajawal',Tahoma,Arial,sans-serif;
    color: #22302a;
    background: #f6f8f5;
    min-height: 70vh;
    padding: 20px 0 44px
}

.ift-wrap {
    max-width: 1120px;
    margin: auto;
    padding: 0 14px
}

.ift-page * {
    box-sizing: border-box
}

.ift-crumb {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #748078;
    margin: 3px 0 16px
}

    .ift-crumb a {
        color: #567a42;
        text-decoration: none
    }

        .ift-crumb a:hover {
            text-decoration: underline
        }

.ift-hero {
    background: linear-gradient(110deg,#203f2e,#3c6944);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    color: white
}

.ift-identity {
    display: flex;
    align-items: center;
    gap: 19px;
    min-width: 0
}

.ift-badge-logo {
    background: white;
    border-radius: 18px;
    width: 105px;
    height: 105px;
    display: grid;
    place-items: center;
    flex: none;
    padding: 12px;
    box-shadow: 0 8px 28px #0002
}

    .ift-badge-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain
    }

    .ift-badge-logo span {
        font-size: 42px
    }

.ift-eyebrow {
    font-size: 12px;
    opacity: .85
}

.ift-intro h1 {
    font-size: clamp(22px,4vw,32px);
    margin: 8px 0 14px;
    font-weight: 800;
    color: inherit
}

.ift-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

    .ift-chips span {
        font-size: 12px;
        background: #ffffff20;
        border: 1px solid #ffffff30;
        border-radius: 20px;
        padding: 5px 10px
    }

.ift-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.ift-action {
    color: #254930;
    background: #fff;
    border-radius: 10px;
    padding: 11px 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800
}

    .ift-action:hover {
        color: #1e6e25
    }

.ift-action-light {
    color: #fff;
    background: #ffffff22;
    border: 1px solid #ffffff40
}

    .ift-action-light:hover {
        color: #fff;
        background: #ffffff33
    }

.ift-profile {
    margin: 16px 0;
    background: white;
    border: 1px solid #e5ece5;
    border-radius: 17px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px
}

.ift-profile-list {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 15px
}

    .ift-profile-list > div {
        min-width: 0
    }

    .ift-profile-list small {
        display: block;
        color: #7c887e;
        font-size: 12px;
        margin-bottom: 6px
    }

    .ift-profile-list strong {
        font-size: 14px;
        overflow-wrap: anywhere
    }

.ift-venue-image {
    width: 180px;
    height: 116px;
    border-radius: 12px;
    overflow: hidden;
    background: #e8eee8
}

    .ift-venue-image img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.ift-matches-section {
    background: white;
    border: 1px solid #e5ece5;
    border-radius: 18px;
    padding: 20px
}

.ift-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

    .ift-section-head h2 {
        margin: 6px 0 4px;
        font-size: 21px;
        color: #24472d
    }

    .ift-section-head p {
        margin: 0;
        color: #758079;
        font-size: 12px
    }

    .ift-section-head .ift-eyebrow {
        color: #5b8c3b
    }

.ift-season-form {
    display: flex;
    gap: 9px;
    align-items: center
}

    .ift-season-form label, .ift-league-filter label {
        font-size: 13px;
        font-weight: 700
    }

    .ift-season-form select, .ift-league-filter select {
        padding: 9px 12px;
        border: 1px solid #d9e3d7;
        border-radius: 10px;
        background: #fff;
        color: #263b2c;
        font-family: inherit;
        max-width: 100%
    }

.ift-stats {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 9px;
    margin: 18px 0
}

    .ift-stats > div {
        text-align: center;
        background: #f5f8f2;
        border: 1px solid #edf1e9;
        border-radius: 12px;
        padding: 13px 3px
    }

    .ift-stats strong {
        display: block;
        font-size: 23px;
        color: #346b39;
        font-variant-numeric: tabular-nums
    }

    .ift-stats span {
        font-size: 11px;
        color: #69796d
    }

.ift-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0
}

    .ift-filters button {
        font: 700 13px 'Tajawal',Tahoma,sans-serif;
        cursor: pointer;
        background: #f6f8f4;
        color: #506354;
        border: 1px solid #e1e8dd;
        border-radius: 25px;
        padding: 9px 14px
    }

        .ift-filters button span {
            opacity: .75;
            margin-right: 4px
        }

        .ift-filters button.is-active {
            background: #5b8c3b;
            color: white;
            border-color: #5b8c3b
        }

.ift-league-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 19px
}

.ift-date-section {
    margin-bottom: 18px
}

    .ift-date-section h3 {
        font-size: 13px;
        color: #5d7460;
        background: #f5f8f4;
        border-radius: 8px;
        padding: 9px 12px;
        margin: 0 0 8px
    }

.ift-match {
    background: white;
    border: 1px solid #e7ece5;
    border-radius: 12px;
    padding: 10px 15px;
    margin: 7px 0
}

.ift-match-competition {
    display: flex;
    gap: 7px;
    align-items: center;
    margin: 0 0 10px;
    color: #68786a;
    font-size: 11px
}

    .ift-match-competition img {
        width: 17px;
        height: 17px;
        object-fit: contain
    }

    .ift-match-competition a {
        color: #527b48;
        text-decoration: none;
        font-weight: 700
    }

        .ift-match-competition a:hover {
            text-decoration: underline
        }

    .ift-match-competition small {
        margin-inline-start: auto;
        white-space: nowrap;
        max-width: 45%;
        overflow: hidden;
        text-overflow: ellipsis
    }

.ift-match-line {
    display: grid;
    grid-template-columns: minmax(0,1fr) 92px minmax(0,1fr);
    align-items: center;
    gap: 5px
}

.ift-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-decoration: none;
    color: #2e3c31;
    font-size: 13px
}

    .ift-team:hover {
        color: #5b8c3b
    }

    .ift-team strong {
        min-width: 0;
        overflow-wrap: anywhere
    }

.ift-home {
    justify-content: flex-end;
    text-align: left
}

.ift-away {
    justify-content: flex-end;
    text-align: right
}

.ift-team img {
    width: 31px;
    height: 31px;
    object-fit: contain;
    flex: none
}

.ift-team.is-selected-team strong {
    color: #2e6f35;
    font-weight: 900
}

.ift-fallback {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: #f2f5f0;
    border-radius: 50%;
    flex: none
}

.ift-score {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center
}

    .ift-score > b {
        font-size: 17px
    }

.ift-score-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    font-size: 17px;
    font-variant-numeric: tabular-nums
}

.ift-score small {
    font-size: 10px;
    color: #768077
}

.ift-score.is-live small {
    color: #bd2630;
    font-weight: 900
}

.ift-note {
    font-size: 12px;
    color: #967333
}

.ift-empty {
    text-align: center;
    color: #7c887d;
    background: #f8faf7;
    border: 1px dashed #d9e4d5;
    border-radius: 14px;
    padding: 30px;
    margin: 15px 0
}

.ift-page [hidden] {
    display: none !important
}

@media(max-width:750px) {
    .ift-profile {
        grid-template-columns: 1fr
    }

    .ift-profile-list {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .ift-venue-image {
        width: 100%;
        max-width: 320px
    }

    .ift-stats {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }

    .ift-hero {
        padding: 18px
    }

    .ift-badge-logo {
        width: 78px;
        height: 78px
    }

    .ift-matches-section {
        padding: 13px
    }
}

@media(max-width:420px) {
    .ift-match {
        padding: 10px 7px
    }

    .ift-match-line {
        grid-template-columns: minmax(0,1fr) 67px minmax(0,1fr);
        gap: 3px
    }

    .ift-team {
        gap: 4px;
        font-size: 11px
    }

        .ift-team img {
            width: 23px;
            height: 23px
        }

    .ift-score-values {
        font-size: 15px
    }

    .ift-identity {
        gap: 10px
    }

    .ift-badge-logo {
        width: 67px;
        height: 67px
    }

    .ift-stats strong {
        font-size: 20px
    }

    .ift-filters button {
        padding: 8px 10px;
        font-size: 12px
    }
}
