﻿/* Gedian Sports public international match centre. Scoped styles; does not modify site.css or Index. */
.gim-page {
    --gim-green: #5B8C3B;
    --gim-dark: #466f2d;
    --gim-soft: #edf5e8;
    --gim-text: #1f2937;
    --gim-muted: #6b7280;
    --gim-border: #e5e7eb;
    direction: rtl;
    font-family: "Tajawal","Segoe UI",Tahoma,Arial,sans-serif;
    color: var(--gim-text);
    padding: 20px 12px 48px;
}

    .gim-page *, .gim-page *::before, .gim-page *::after {
        box-sizing: border-box;
    }

    .gim-page a {
        text-decoration: none;
        color: inherit;
    }

    .gim-page button {
        font: inherit;
        cursor: pointer;
    }

.gim-shell {
    width: min(1120px,100%);
    margin: auto;
}

.gim-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    padding: 22px 24px;
    border: 1px solid #d8e5d1;
    border-radius: 16px;
    background: linear-gradient(120deg,#f0f6eb,#fff 63%);
}

.gim-eyebrow {
    font-size: 11px;
    font-weight: 800;
    color: var(--gim-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gim-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gim-green);
}

.gim-page-heading h1 {
    margin: 6px 0 4px;
    font-size: 23px;
    font-weight: 900;
}

.gim-page-heading p {
    margin: 0;
    color: var(--gim-muted);
    font-size: 12px;
    line-height: 1.65;
}

.gim-heading-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: flex-end;
    max-width: 410px;
}

    .gim-heading-meta > span:not(.gim-sync-note) {
        font-size: 11px;
        background: #fff;
        border: 1px solid #e3e9de;
        padding: 7px 10px;
        border-radius: 9px;
        white-space: nowrap;
    }

    .gim-heading-meta strong {
        font-size: 15px;
        color: var(--gim-dark);
    }

.gim-sync-note {
    width: 100%;
    text-align: left;
    color: var(--gim-muted);
    font-size: 10px;
}

.gim-date-bar {
    display: grid;
    grid-template-columns: 38px repeat(5,minmax(0,1fr)) 38px;
    gap: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--gim-border);
    border-radius: 14px;
}

.gim-date-arrow, .gim-date-pill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 53px;
    border-radius: 10px;
    color: #536155;
}

.gim-date-arrow {
    border: 1px solid var(--gim-border);
    font-size: 25px;
    font-weight: 700;
}

.gim-date-pill {
    gap: 1px;
}

    .gim-date-pill:hover, .gim-date-arrow:hover {
        background: #f4f8f1;
    }

    .gim-date-pill small {
        font-size: 10px;
        color: var(--gim-muted);
    }

    .gim-date-pill strong {
        font-size: 17px;
        line-height: 1.1;
    }

    .gim-date-pill.is-selected {
        background: var(--gim-green);
        box-shadow: 0 4px 12px rgba(91,140,59,.15);
        color: #fff;
    }

        .gim-date-pill.is-selected small {
            color: #fff;
        }

    .gim-date-pill.is-today:not(.is-selected) {
        outline: 1px solid #b8d1ad;
    }

.gim-today-link {
    display: inline-flex;
    padding: 4px 9px;
    margin-bottom: 10px;
    border-radius: 7px;
    background: var(--gim-soft);
    color: var(--gim-dark) !important;
    font-weight: 850;
    font-size: 11px;
}

.gim-matches {
    margin-top: 10px;
}

.gim-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

    .gim-section-header h2 {
        margin: 0;
        font-size: 17px;
        font-weight: 900;
    }

    .gim-section-header span {
        color: var(--gim-muted);
        font-size: 10px;
    }

.gim-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.gim-filter {
    min-height: 32px;
    border: 1px solid #dce5d6;
    border-radius: 999px;
    background: #fff;
    color: #586457;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 850;
}

    .gim-filter.is-active {
        background: var(--gim-green);
        color: #fff;
        border-color: var(--gim-green);
    }

.gim-league-list {
    display: grid;
    gap: 10px;
}

.gim-league {
    background: #fff;
    border: 1px solid var(--gim-border);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(24,44,24,.035);
}

    .gim-league[hidden], .gim-match[hidden], .gim-empty[hidden] {
        display: none !important;
    }

.gim-league-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 9px 13px;
    background: #f9fbf8;
    border-bottom: 1px solid #e9eee5;
}

.gim-league-identity {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.gim-league-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    background: #fff;
    border: 1px solid #e0e7dc;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 16px;
}

    .gim-league-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 3px;
    }

.gim-league-info {
    min-width: 0;
}

    .gim-league-info h3 {
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        font-weight: 900;
    }

    .gim-league-info small {
        color: var(--gim-muted);
        font-size: 10px;
    }

.gim-league-tools {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.gim-league-count {
    font-size: 10px;
    color: var(--gim-muted);
    white-space: nowrap;
}

.gim-fold {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--gim-dark);
    font-size: 20px;
    font-weight: 800;
    background: #fff;
    border: 1px solid #d8e5d1;
    border-radius: 8px;
}

    .gim-fold:hover {
        background: var(--gim-soft);
    }

.gim-fixtures {
    padding: 0 10px;
}

    .gim-fixtures[hidden] {
        display: none !important;
    }

.gim-match {
    display: grid;
    grid-template-columns: minmax(0,1fr) 120px minmax(0,1fr);
    align-items: center;
    gap: 8px;
    min-height: 86px;
    padding: 11px 7px;
    border-bottom: 1px solid #edf0ec;
}

    .gim-match:last-child {
        border-bottom: 0;
    }

.gim-team {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.gim-home {
    justify-content: flex-end;
    flex-direction: row;
}

.gim-away {
    justify-content: flex-start;
    flex-direction: row-reverse;
}

.gim-club-logo {
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #e2e8df;
    border-radius: 50%;
    overflow: hidden;
    color: var(--gim-dark);
    font-size: 13px;
    font-weight: 800;
}

    .gim-club-logo img {
        width: 100%;
        height: 100%;
        padding: 3px;
        object-fit: contain;
    }

.gim-club-name {
    font-size: 12px;
    font-weight: 850;
    min-width: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.gim-home .gim-club-name {
    text-align: right;
}

.gim-away .gim-club-name {
    text-align: left;
}

.gim-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    min-width: 0;
}

.gim-kickoff {
    font-size: 10px;
    color: var(--gim-muted);
}

.gim-score {
    font-size: 19px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    line-height: 1.15;
}

.gim-status {
    display: inline-flex;
    min-width: 64px;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid #dfe4dd;
    color: #717e72;
    background: #f8faf7;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 800;
}

    .gim-status.is-live {
        color: #b72330;
        background: #fff1f1;
        border-color: #f3c5ca;
    }

        .gim-status.is-live::before {
            content: "";
            width: 5px;
            height: 5px;
            align-self: center;
            border-radius: 50%;
            background: #d52d3d;
            margin-left: 5px;
        }

    .gim-status.is-upcoming {
        color: #568543;
        background: #f3f9f0;
        border-color: #d8e9d1;
    }

.gim-empty {
    padding: 45px 12px;
    text-align: center;
    border: 1px dashed #d1dbcc;
    border-radius: 13px;
    background: #fff;
    color: var(--gim-muted);
    font-size: 12px;
}

.gim-empty-symbol {
    font-size: 25px;
    margin-bottom: 6px;
}

.gim-empty strong {
    display: block;
    color: var(--gim-text);
    font-size: 14px;
}

.gim-empty p {
    max-width: 450px;
    margin: 8px auto 0;
    line-height: 1.65;
}

.gim-empty.is-error {
    color: #9c3737;
    background: #fff4f4;
    border-color: #eed0d0;
}

.gim-poll-note {
    margin: 14px 2px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: var(--gim-muted);
    font-size: 10px;
}

.gim-poll-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7faf6c;
}

    .gim-poll-indicator.is-failed {
        background: #d88550;
    }

.gim-page [hidden] {
    display: none !important;
}

@media(max-width:800px) {
    .gim-page {
        padding: 12px 8px 34px;
    }

    .gim-page-heading {
        padding: 15px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

        .gim-page-heading h1 {
            font-size: 19px;
        }

    .gim-heading-meta {
        max-width: 100%;
        justify-content: flex-start;
    }

    .gim-sync-note {
        text-align: right;
    }

    .gim-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .gim-date-bar {
        gap: 3px;
        padding: 6px;
        grid-template-columns: 27px repeat(5,minmax(0,1fr)) 27px;
    }

    .gim-date-pill {
        min-height: 53px;
    }

        .gim-date-pill small {
            font-size: 9px;
        }

        .gim-date-pill strong {
            font-size: 14px;
        }

    .gim-date-arrow {
        font-size: 20px;
    }
}

@media(max-width:520px) {
    .gim-match {
        grid-template-columns: minmax(0,1fr) 77px minmax(0,1fr);
        gap: 3px;
        padding: 11px 3px;
        min-height: 91px;
    }

    .gim-fixtures {
        padding: 0 5px;
    }

    .gim-team {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .gim-home, .gim-away {
        justify-content: center;
    }

    .gim-club-logo {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .gim-club-name {
        font-size: 10px;
        text-align: center !important;
        max-width: 125px;
    }

    .gim-score {
        font-size: 15px;
    }

    .gim-status {
        font-size: 9px;
        padding: 3px 4px;
        min-width: 55px;
    }

    .gim-league-header {
        padding: 8px;
    }

    .gim-league-info h3 {
        font-size: 11px;
    }

    .gim-league-logo {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .gim-league-tools {
        gap: 5px;
    }

    .gim-league-count {
        font-size: 9px;
    }

    .gim-filter {
        font-size: 10px;
        padding: 5px 10px;
    }
}
