/* =========================================================
   HOME STANDINGS
========================================================= */

.home-standings {
    width: 100%;
    margin-top: 20px;
}


/* =========================================================
   Header
========================================================= */

.home-standings__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.home-standings__heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-standings__heading h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.home-standings__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px;
    padding: 0 14px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #fff;
    color: #008f4c;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;

    transition: .2s ease;
}

.home-standings__more:hover {
    color: #006633;
}


/* =========================================================
   فلتر المنافسة والفئة
   Competition / Age
========================================================= */

.home-standings__filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-standings__filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-standings__filter label {
    margin: 0;

    color: #6b7280;

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
}

.home-standings__filter select {
    height: 34px;
    min-width: 145px;

    padding: 0 10px;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    background-color: #fff;

    color: #111827;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
    outline: none;

    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 11px 11px;
}

.home-standings__filter select:focus {
    border-color: #008f4c;
}


/* =========================================================
   بطاقة الترتيب
========================================================= */

.home-standings .match-standings-card {
    width: 100%;

    overflow: hidden;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    background: #ffffff;
}

/* =========================================================
   فلتر الكل / داخل الأرض / خارج الأرض
========================================================= */

.home-standings .lwf-standings-filter {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 8px;

    width: 100%;
    min-height: 64px;

    box-sizing: border-box;

    padding: 12px 18px;

    direction: rtl;

    border-bottom: 0;
}

.home-standings .lwf-standings-filter button {
    height: 36px;

    padding: 0 14px;

    border: 1px solid #dbe3eb;
    border-radius: 14px;

    background: #f8fafc;
    color: #374151;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: .2s ease;
}

.home-standings .lwf-standings-filter button:hover {
    background: #f3f4f6;
}

.home-standings .lwf-standings-filter button.active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}


/* =========================================================
   جدول الترتيب
========================================================= */

.home-standings .match-standings {
    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

.home-standings .match-standings::-webkit-scrollbar {
    display: none;
}


.home-standings .lwf-standings-table {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   اسم المنافسة + الشعار
========================================================= */

.home-standings .match-competition {
    width: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    direction: rtl;
    flex-direction: row-reverse;

    gap: 10px;

    margin: 0;
    padding: 18px;

    background: transparent;

    color: #111827;

    font-size: 17px;
    font-weight: 400;
        border-top: 1px solid #edf2f7;

}

.home-standings .match-competition img {
    order: 1;

    width: 35px;
    height: 35px;

    object-fit: contain;

    margin-left: 0;
}

.home-standings .match-competition__link {
    color: inherit;
    text-decoration: none;

    font-size: 15px;
}

.home-standings .match-competition__link:hover {
    text-decoration: underline;
}


/* =========================================================
   Team Cell
========================================================= */

.home-standings .lwf-team-cell {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   Animation
========================================================= */

.home-standings__content.is-standings-changing {
    opacity: 0;
    transform: translateY(6px);

    transition:
        opacity .22s ease,
        transform .22s ease;
}

.home-standings__content.is-standings-entering {
    animation: homeStandingsEnter .28s ease forwards;
}

@keyframes homeStandingsEnter {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================================================
   فلتر المجموعة
========================================================= */

.home-standings .competition-overview-group-selector {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-inline-start: auto;

    padding: 0;

    flex-shrink: 0;
}

.home-standings .competition-overview-group-selector select {
    height: 36px;
    min-width: 120px;

    padding: 0 14px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background-color: #fff;

    color: #111827;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    outline: none;

    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 12px 12px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

.home-standings {
    width: 100%;
    max-width: 100%;

    margin-inline: 0;
    margin-top: 20px;

    box-sizing: border-box;
}


    /* -----------------------------------------------------
       Header
    ----------------------------------------------------- */

    .home-standings__header {
        align-items: center;

        flex-direction: row;

        gap: 8px;
    }

    .home-standings__heading {
        flex: 0 0 auto;
    }

    .home-standings__heading h2 {
        font-size: 14px;
        font-weight: 600;
    }

    .home-standings__more {
        height: 34px;

        padding: 0 12px;

        font-size: 11px;

        border-radius: 10px;
    }


    /* -----------------------------------------------------
       المنافسة + الفئة
       نحافظ على الفلترين في الهيدر الخارجي
    ----------------------------------------------------- */

 .home-standings__filters {
    display: flex;
    align-items: center;

    flex: 1;
    min-width: 0;

    gap: 8px;
}

.home-standings__filter {
    display: flex;
    align-items: center;

    flex: 1 1 0;
    min-width: 0;

    gap: 4px;
}

.home-standings__filter label {
    display: none;
}

.home-standings__filter select {
    display: block;

    width: 100%;
    min-width: 0;

    height: 34px;

    padding: 0 12px;

    border-radius: 9px;

    font-size: 11px;
    font-weight: 700;

    background-position: left 9px center;
    background-size: 11px 11px;

    box-sizing: border-box;
}


    /* -----------------------------------------------------
       بطاقة الترتيب
    ----------------------------------------------------- */

    .home-standings .match-standings-card {
        width: 100%;

        border-radius: 14px;

        overflow: hidden;
    }


    /* -----------------------------------------------------
       فلتر الكل / داخل / خارج
    ----------------------------------------------------- */

  .home-standings .lwf-standings-filter {
    flex-wrap: nowrap;

    gap: 8px;

    min-height: 78px;
    padding: 21px 18px;
    border-bottom: 0;
}

    .home-standings .lwf-standings-filter button {
        height: 36px;

        padding: 0 14px;

        border-radius: 14px;

        font-size: 13px;
        font-weight: 600;
    }


    /* -----------------------------------------------------
       فلتر المجموعة
    ----------------------------------------------------- */
.home-standings .competition-overview-group-selector {
    width: auto;

    justify-content: flex-start;

    margin-inline-start: auto;
    margin-top: 0;

    flex-shrink: 0;
}

.home-standings .competition-overview-group-selector select {
    min-width: 130px;
    height: 36px;

    padding: 0 14px;

    font-size: 13px;
}

    /* -----------------------------------------------------
       عنوان المنافسة
    ----------------------------------------------------- */

.home-standings .match-competition {
    width: 100%;

    padding: 18px 20px 18px 6px;

    gap: 10px;

    font-size: 17px;
    font-weight: 500;

    margin-right: 0;

    border-top: 1px solid #edf2f7;

    transform: none;
}

    .home-standings .match-competition img {
        width: 35px;
        height: 35px;

        flex: 0 0 35px;
    }

    .home-standings .match-competition__link {
        font-size: 15px;
    }


    /* -----------------------------------------------------
       الجدول
    ----------------------------------------------------- */

    .home-standings .match-standings {
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

   
.home-standings .lwf-standings-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
}



    /* الخلايا */

    .home-standings .lwf-standings-table th,
    .home-standings .lwf-standings-table td {
        padding: 8px 6px;

        font-size: 12px;

        white-space: nowrap;

        text-align: center;
    }


    /* رقم الترتيب */

    .home-standings .lwf-standings-table th:first-child,
    .home-standings .lwf-standings-table td:first-child {
        width: 32px;

        min-width: 32px;
    }


    /* الفريق */


.home-standings .lwf-standings-table th:nth-child(2),
.home-standings .lwf-standings-table td:nth-child(2) {
    text-align: right;
    padding-right: 6px;
    padding-left: 4px;
    width: 30%;
    min-width: 0;
    max-width: none;
}


    .home-standings .lwf-team-cell {
        width: 100%;
        max-width: 100%;

        display: flex;
        align-items: center;
        justify-content: flex-start;

        gap: 6px;

        box-sizing: border-box;

        white-space: nowrap;

        direction: rtl;

        overflow: hidden;

        font-size: 12px;
        font-weight: 500;
    }

    .home-standings .lwf-team-logo {
        width: 20px;
        height: 20px;

        flex: 0 0 20px;

        object-fit: contain;
    }


    /* باقي الأعمدة */

    .home-standings .lwf-standings-table
    th:not(:first-child):not(:nth-child(2)),
    .home-standings .lwf-standings-table
    td:not(:first-child):not(:nth-child(2)) {

        width: 34px;

        min-width: 34px;
    }


    /* إخفاء الأعمدة */

    .home-standings .lwf-standings-table th:nth-child(4),
    .home-standings .lwf-standings-table td:nth-child(4),

    .home-standings .lwf-standings-table th:nth-child(5),
    .home-standings .lwf-standings-table td:nth-child(5),

    .home-standings .lwf-standings-table th:nth-child(6),
    .home-standings .lwf-standings-table td:nth-child(6),

    .home-standings .lwf-standings-table th:last-child,
    .home-standings .lwf-standings-table td:last-child {
        display: none;
    }

    .home-standings .lwf-standings-table th:last-child,
.home-standings .lwf-standings-table td:last-child {
    display: none;
}

}

.lwf-points{

    font-weight:700;
    color:#111827;
    font-size:15px;

}

/* =========================================================
   French — Competition Info LTR
   ========================================================= */

.lwf-competition-info--fr {
    direction: ltr;
}

.lwf-competition-info--fr .lwf-info-card {
    direction: ltr;
    text-align: left;
}

.lwf-competition-info--fr .lwf-info-card h4 {
    direction: ltr;
    justify-content: flex-start;
    text-align: left;
}

.lwf-competition-info--fr .lwf-info-card p {
    direction: ltr;
    text-align: left;
}

.lwf-competition-info--fr .lwf-rule-row {
    direction: ltr;
}

.lwf-competition-info--fr .lwf-rule-name {
    text-align: left;
}

/* =========================================================
   HOME STANDINGS — FRENCH LTR
   ========================================================= */

.home-standings--fr {
    direction: ltr;
}


/* =========================
   Header
========================= */

.home-standings--fr .home-standings__header {
    direction: ltr;
}

.home-standings--fr .home-standings__filters {
    direction: ltr;
}

.home-standings--fr .home-standings__heading {
    direction: ltr;
}


/* =========================
   Filters
========================= */

.home-standings--fr .lwf-standings-filter {
    direction: ltr;
    justify-content: flex-start;
}


/* =========================
   Competition title
========================= */

.home-standings--fr .match-competition {
    direction: ltr;
    flex-direction: row;
    justify-content: flex-start;
}

.home-standings--fr .match-competition img {
    order: 0;
}

.home-standings--fr .match-competition__link {
    direction: ltr;
    text-align: left;
}


/* =========================
   Standings table
========================= */

.home-standings--fr .lwf-standings-table {
    direction: ltr;
}


/* =========================
   Team cell
========================= */

.home-standings--fr .lwf-team-cell {
    direction: ltr;
    justify-content: flex-start;
    text-align: left;
}


/* =========================
   Points / numbers
========================= */

.home-standings--fr .lwf-standings-table th,
.home-standings--fr .lwf-standings-table td {
    direction: ltr;
}