/*
|--------------------------------------------------------------------------
| Match Page
|--------------------------------------------------------------------------
*/

.match-page1 {
    width: 100%;
    max-width: 800px;
    margin-right: 0;
    margin-left: auto;
}

/*
|--------------------------------------------------------------------------
| Match Card
|--------------------------------------------------------------------------
*/

.match-single-card{

    background:#fff;

    border-radius:14px;

    overflow:hidden;

    border:1px solid #ececec;

}

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

.match-single-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:10px 20px;

}

.match-back{

    text-decoration:none;

    color:#444;

    display:flex;

    align-items:center;

    gap:8px;

    font-size:15px;

}

.match-back:hover{

    color:#0c8f44;

}

.competition{

    font-weight:400;

    color:#222;

}

/*
|--------------------------------------------------------------------------
| Match Title
|--------------------------------------------------------------------------
*/

.match-single-title{

    margin:20px 0 18px;

    text-align:center;

    font-size:19px;

    font-weight:500;

    line-height:1.3;

    color:#111;

}

.match-single-title .separator{

    color:#999;

    margin:0 14px;

    font-weight:400;

}

/*
|--------------------------------------------------------------------------
| Meta
|--------------------------------------------------------------------------
*/

.match-single-meta{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:14px;

    flex-wrap:wrap;

    padding:14px 20px;

        border-bottom:1px solid #efefef;

}

.match-single-meta-item{

    display:flex;

    align-items:center;

    gap:6px;

    color:#666;

    font-size:14px;

}

/*
|--------------------------------------------------------------------------
| Teams
|--------------------------------------------------------------------------
*/

.match-single-body{

    display:grid;

    grid-template-columns:1fr 140px 1fr;

    align-items:center;

        padding: 45px 60px;

    gap:20px;

}

.match-single-team{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:18px;

}

.match-single-team h2{

    font-size:18px;

    font-weight:500;

    margin:0;

}

.match-single-team img{

    width:56px;

    height:56px;

    object-fit:contain;

    margin:0;

}

.match-single-home{

    display:flex;

    justify-content:flex-end;

    align-items:center;

    gap:14px;

}

.match-single-away{

    display:flex;

    justify-content:flex-start;

    align-items:center;

    gap:14px;

}

/*
|--------------------------------------------------------------------------
| Center
|--------------------------------------------------------------------------
*/

.match-single-center{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    width:140px;

    min-width:140px;

    gap:0;

    text-align:center;

}

.match-single-kickoff {
    font-size: 33px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| عداد المباراة
|--------------------------------------------------------------------------
*/

.match-live-clock {
    min-height: 28px;
    font-size: 18px;
    font-weight: 500;
   color: #ffffff;
    line-height: 1;
    order: 3;
}

.match-live-label.live + .match-live-clock {
    color: #16a34a;
}

.match-tab-content {
    display: none;
}

.match-tab-content.active {
    display: block;
}

/*
|--------------------------------------------------------------------------
| حالة المباراة
|--------------------------------------------------------------------------
*/

.match-live-label {
    min-height: 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    order: 2;
    margin-bottom: 12px;
}

.match-live-label:empty {
    display: none;
}

.match-live-label.live {
    color: #dc2626;
}

.match-live-label.live::before {
    content: "";
    width: 7px;
    height: 7px;
    background: #dc2626;
    border-radius: 50%;
    animation: lwf-live-pulse 1.2s infinite;
}

.match-live-label.finished {
    color: #555;
    order: 3;
}

@keyframes lwf-live-pulse {

    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .35;
        transform: scale(.75);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }

}

/* =========================================================
   MATCH RESULT
   ========================================================= */

.match-live-clock.finished-score {
    color: #111 !important;
    font-size: 33px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    min-height: 33px !important;
    order: 2;
}

.match-live-label.finished {
    color: #555 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    order: 2;
}

/* عند وجود نتيجة: 2 - 0 ثم انتهت */
.match-live-label.finished:has(+ .match-live-clock.finished-score) {
    order: 3;
}

/* انتهت بدون نتيجة: نخفي الساعة الفارغة */
.match-live-clock:empty {
    display: none;
}

.match-live-label.finished,
.match-live-clock.finished-score {
    transform: translateY(6px);
}

.match-single-team {
    text-decoration: none;
    color: inherit;
}

.match-single-team:hover {
    color: inherit;
}

.match-single-team h2 {
    text-decoration: none;
}

.match-single-team:hover h2 {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.match-single-header {
    position: relative;

    min-height: 60px;

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

    padding: 10px 20px;

    box-sizing: border-box;

    border-bottom: 1px solid #edf2f7;
}


.match-single-heading {
    width: 100%;

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

.match-single-competition {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    white-space: nowrap;

    font-size: 15px;
    font-weight: 400;

    color: #111827;
}


.match-single-competition img {
    width: 28px;
    height: 28px;

    object-fit: contain;
}


.match-single-competition .separator {
    color: #9ca3af;
    margin: 0 2px;
}


.match-back {
    position: absolute;

    right: 20px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    gap: 6px;

    white-space: nowrap;
}

@media (max-width: 767px) {

    .match-single-header {
        min-height: auto;

        flex-direction: column;

        padding: 12px 15px;
        gap: 10px;
    }

.match-back {
    display: none;
}


    .match-single-heading {
        width: 100%;
    }

    .match-single-competition {
        white-space: normal;

        flex-wrap: wrap;

        text-align: center;

        line-height: 1.8;

        font-size: 15px;
    }


    .match-single-competition img {
        width: 24px;
        height: 24px;
    }

        /* إخفاء Sidebar في جميع التبويبات */
    .match-sidebar {
        display: none;
    }

    /* إظهاره فقط عند تفعيل تبويب الأحداث */
    .match-layout:has(
        .match-single-tab[data-tab="events"].active
    ) .match-sidebar {
        display: block;
    }

    .match-single-team h2 {
    font-size: 11px !important;
    line-height: 1.35 !important;
    white-space: normal;
}

}

/* =========================================================
   حالات المباراة الخاصة
   ========================================================= */

.match-live-label.status-discipline,
.match-live-label.status-postponed,
.match-live-label.status-stopped,
.match-live-label.status-cancelled {
    display: inline-flex;
    align-items: center;
    justify-content: center;

      transform: translateY(7px);

    min-height: 36px;
    padding: 7px 16px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   في انتظار قرار لجنة الانضباط
   --------------------------------------------------------- */

.match-live-label.status-discipline {
    color: #7b1fa2;
    background: #f3e5f5;
    border: 1px solid #e1bee7;
}


/* ---------------------------------------------------------
   مؤجلة
   --------------------------------------------------------- */

.match-live-label.status-postponed {
    color: #ef6c00;
    background: #fff3e0;
    border: 1px solid #ffcc80;
}


/* ---------------------------------------------------------
   متوقفة
   --------------------------------------------------------- */

.match-live-label.status-stopped {
    color: #455a64;
    background: #eceff1;
    border: 1px solid #cfd8dc;
}


/* ---------------------------------------------------------
   ألغيت
   --------------------------------------------------------- */

.match-live-label.status-cancelled {
    color: #c62828;
    background: #ffebee;
    border: 1px solid #ffcdd2;
}


/* =========================================================
   الهاتف
   ========================================================= */

@media (max-width: 767px) {

    .match-live-label.status-discipline,
    .match-live-label.status-postponed,
    .match-live-label.status-stopped,
    .match-live-label.status-cancelled {
   width: max-content;
max-width: 130px;
box-sizing: border-box;
padding: 7px 10px;
font-size: 13px;
white-space: normal;
word-break: keep-all;
text-align: center;
border-radius: 22px;
    }

}

/* =========================================================
   لم تحدد بعد
   ========================================================= */

.match-single-kickoff.not-set {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 7px 16px;

    border-radius: 999px;

    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    color: #616161 !important;
    background: #f3f4f6;

    border: 1px solid #d1d5db;

    white-space: nowrap;
}

.match-live-clock.finished-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.match-final-score {
    display: block;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.1;
}

/* خسارة إدارية للفريقين */
.match-administrative-forfeit {
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    white-space: nowrap;
}

.match-result-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #666;
}

.match-penalties {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    direction: rtl;

   
    padding: 0;

    border: 0;
    background: transparent;

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

.match-penalties .penalty-home,
.match-penalties .penalty-away {
    font-size: 15px;
    font-weight: 700;
    color: #3D4458;
}

.match-penalties .penalty-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 10px;

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

    background: #E7E8EC;

    color: #3D4458;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.penalty-label {
    color: #3D4458;
}

.match-single-competition__link {
    color: inherit;
    text-decoration: none;
}

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

/* ==========================================================
   Match Changes
   ========================================================== */

.match-single-changes {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: -15px;
    margin-bottom: 2px;

    direction: rtl;

    font-size: 13px;
    color: #4b5563;
}


.match-single-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}


.match-single-change-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    flex: 0 0 6px;

    background: #dc2626;
    border-radius: 50%;

    animation: lwf-match-change-pulse 1.4s ease-in-out infinite;
}


@keyframes lwf-match-change-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .35;
        transform: scale(.72);
    }
}

/* تصغير عرض بطاقة المباراة على الكمبيوتر */
@media (min-width: 993px) {

    .match-single-card {
        width: calc(100% - 100px);
        margin-inline-start: 0;
        margin-inline-end: auto;
    }

}

/* ==========================================================
   MATCH HIGHLIGHTS
========================================================== */

.match-single-highlights {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        1px
        minmax(0, 1fr);

    align-items: start;

    gap: 20px;

    padding: 6px 55px 22px;

    box-sizing: border-box;
}


/* ==========================================================
   COLUMNS
========================================================== */

.match-single-highlights__column {
    display: flex;

    flex-direction: column;

    gap: 7px;

    min-width: 0;
}


.match-single-highlights__column--home {
    align-items: flex-end;

    text-align: right;
}


.match-single-highlights__column--away {
    align-items: flex-start;

    text-align: left;
}


/* ==========================================================
   DIVIDER
========================================================== */

.match-single-highlights__divider {
    width: 1px;

    min-height: 100%;

    background: #eceff2;
}


/* ==========================================================
   EVENT
========================================================== */

.match-single-highlight {
    display: flex;

    align-items: center;

    gap: 7px;

    min-height: 22px;

    color: #555;

    font-size: 12px;

    line-height: 1.4;

    white-space: nowrap;
}


.match-single-highlight__player {
    color: #555;

    font-size: 12px;

    font-weight: 400;
}


.match-single-highlight__minute {
    color: #8a8f96;

    font-size: 11px;

    font-weight: 400;
}


.match-single-highlight__icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    color: #777;

    font-size: 11px;
}

.match-single-highlight__icon i {
    line-height: 1;
}


/* ==========================================================
   CARDS
========================================================== */

.match-single-highlight__card {
    display: inline-block;

    width: 7px;
    height: 12px;

    border-radius: 1px;

    flex: 0 0 7px;
}


.match-single-highlight__card--yellow {
    background: #f5c400;
}


.match-single-highlight__card--red {
    background: #e53935;
}


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

@media (max-width: 700px) {

    .match-single-highlights {
        padding: 5px 18px 18px;

        gap: 10px;
    }


    .match-single-highlight {
        gap: 5px;

        font-size: 11px;
    }


    .match-single-highlight__player {
        font-size: 11px;
    }


    .match-single-highlight__minute {
        font-size: 10px;
    }

}

/* ==========================================================
   FULL WIDTH MATCH HERO
   ========================================================== */

.match-single-card {
    width: 100%;
    max-width: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-sizing: border-box;
}

/* خلفية المباراة */

.match-single-hero {
    position: relative;
    isolation: isolate;

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

    background-color: #101d2b;

    background-image:
        linear-gradient(
            rgba(9, 20, 30, 0.68),
            rgba(9, 20, 30, 0.78)
        ),
        url('../../images/match-background.png');

    background-position: center 99%;
    background-size: cover;
    background-repeat: no-repeat;

    color: #fff;
    overflow: hidden;
}

/* عنوان البطولة */

.match-single-hero .match-single-header {
    min-height: 64px;
    padding: 14px 32px;

    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.match-single-hero .match-single-competition {
    color: #fff;
    font-weight: 600;
}

.match-single-hero .match-single-competition .separator {
    color: rgba(255, 255, 255, 0.55);
}

.match-single-hero .match-back {
    color: rgba(255, 255, 255, 0.85);
}

/* التاريخ والتوقيت والملعب */

.match-single-hero .match-single-meta {
    padding: 14px 24px;

    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.match-single-hero .match-single-meta-item {
    color: rgba(255, 255, 255, 0.82);
}

/* الفريقان والنتيجة */

.match-single-hero .match-single-body {
    min-height: 220px;
    padding: 38px 7%;

    box-sizing: border-box;
}

.match-single-hero .match-single-team {
    color: #fff;
}

.match-single-hero .match-single-team h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.match-single-hero .match-single-team img {
    width: 64px;
    height: 64px;
}

.match-single-hero .match-live-clock.finished-score {
    color: #fff !important;
}

.match-single-hero .match-live-label.finished {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* أحداث المباراة */

.match-single-hero .match-single-highlights {
    padding-bottom: 24px;
}

.match-single-hero .match-single-highlight,
.match-single-hero .match-single-highlight__player,
.match-single-hero .match-single-highlight__minute {
    color: rgba(255, 255, 255, 0.85);
}

/* تحديثات المباراة */

.match-single-hero .match-single-changes {
    color: rgba(255, 255, 255, 0.85);
    padding-bottom: 18px;
}

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

@media (max-width: 767px) {

    .match-single-hero {
        min-height: auto;
    }

    .match-single-hero .match-single-header {
        padding: 14px 12px;
    }

    .match-single-hero .match-single-meta {
        gap: 10px;
        padding: 12px 8px;
    }

    .match-single-hero .match-single-meta-item {
        font-size: 12px;
    }

    .match-single-hero .match-single-body {
        min-height: 170px;
        padding: 30px 12px;
        grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
        gap: 8px;
    }

    .match-single-hero .match-single-team {
        gap: 7px;
    }

    .match-single-hero .match-single-team h2 {
        font-size: 13px !important;
    }

    .match-single-hero .match-single-team img {
        width: 38px;
        height: 38px;
    }

    .match-single-hero .match-live-clock.finished-score {
        font-size: 28px !important;
    }

    .match-single-hero .match-final-score {
        font-size: 30px;
    }

        .match-single-hero .match-administrative-forfeit {
        font-size: 18px !important;
        white-space: nowrap !important;
    }


    .match-single-hero .match-single-highlights {
        padding-inline: 12px;
    }
}



/* ==========================================================
   COMPACT MATCH HERO
   ========================================================== */

.match-single-hero {
    min-height: 0;
}

/* عنوان البطولة */
.match-single-hero .match-single-header {
    min-height: 48px;
    padding: 8px 24px;
}

/* التاريخ والتوقيت والملعب */
.match-single-hero .match-single-meta {
    padding: 8px 24px;
}

/* الفريقان والنتيجة */
.match-single-hero .match-single-body {
    min-height: 0;
    padding: 22px 7% 14px;
}

/* أحداث الأهداف */
.match-single-hero .match-single-highlights {
    padding: 0 55px 12px;
    gap: 12px;
}

.match-single-hero .match-single-highlight {
    min-height: 18px;
    line-height: 1.2;
}

/* الهاتف */
@media (max-width: 767px) {

    .match-single-hero .match-single-header {
        padding: 10px 12px;
    }

    .match-single-hero .match-single-meta {
        padding: 8px 10px;
    }

    .match-single-hero .match-single-body {
        min-height: 0;
        padding: 20px 10px 12px;
    }

    .match-single-hero .match-single-highlights {
        padding: 0 12px 10px;
        gap: 8px;
    }
}

/* حذف الخطوط الفاصلة في بطاقة المباراة */
.match-single-hero .match-single-header,
.match-single-hero .match-single-meta {
    border-bottom: none;
}

/* إزالة الفراغ فوق بطاقة المباراة */
.match-single-hero {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* =========================================
   Match Card - Center Score & Time
========================================= */

.match-single-hero .match-single-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
    align-items: center;
}

.match-single-hero .match-single-center {
    grid-column: 2;
    justify-self: center;

    width: 100%;
    min-width: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    transform: none;
}

/* تثبيت النتيجة والوقت في الوسط */
.match-single-hero .match-single-center .match-live-clock,
.match-single-hero .match-single-center .match-live-label,
.match-single-hero .match-single-center .match-final-score {
    align-self: center;
    text-align: center;
}

/* ==========================================================
   FIX: عرض نتيجة المباراة أفقياً
   ========================================================== */

/* توسيع المساحة المخصصة للنتيجة */
.match-single-hero .match-single-body {
    grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
}

/* النتيجة تظهر أفقياً: 7 - 0 */
.match-single-hero .match-live-clock.finished-score {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    width: max-content;
    min-width: max-content;
    max-width: none;

    white-space: nowrap;
    gap: 8px;
}

/* الحفاظ على النتيجة في سطر واحد */
.match-single-hero .match-final-score {
    white-space: nowrap;
}

/* الهاتف */
@media (max-width: 767px) {

    .match-single-hero .match-single-body {
        grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    }

    .match-single-hero .match-live-clock.finished-score {
        font-size: 28px !important;
    }

}

/* ==========================================================
   زيادة ارتفاع بطاقة المباراة
   ========================================================== */

/* الكمبيوتر */
.match-single-hero .match-single-body {
    min-height: 190px;
    padding-top: 35px;
    padding-bottom: 30px;
}

/* الهاتف */
@media (max-width: 767px) {

    .match-single-hero .match-single-body {
        min-height: 160px;
        padding-top: 28px;
        padding-bottom: 22px;
    }

}

/* ==========================================================
   نتيجة ركلات الترجيح - بطاقة المباراة
   ========================================================== */

.match-penalties-result {
    display: block;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;

    margin: 8px auto 0;
    padding: 7px 14px;

    border: 1px solid rgba(0, 143, 76, 0.25);
    border-radius: 999px;

    background: rgba(0, 143, 76, 0.08);
    color: #ffffff;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    text-align: center;
}

/* حماية النص في الشاشات الصغيرة */
@media (max-width: 480px) {
    .match-penalties-result {
        max-width: 100%;
        padding: 6px 10px;
        font-size: 11px;
        white-space: normal;
    }
}

/* ==========================================================
   ترتيب حالة المباراة ونتيجة ركلات الترجيح عموديًا
   ========================================================== */

.match-single-hero .match-live-label.finished {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* مستطيل نتيجة ركلات الترجيح */
.match-single-hero .match-live-label.finished .match-penalties-result {
    margin: 0;
    display: block;
    max-width: 100%;
    text-align: center;
}

/* ==========================================================
   نتيجة ركلات الترجيح - سطر واحد دون تحريك النتيجة
   ========================================================== */

/* تثبيت مكان كلمة انتهت */
.match-single-hero .match-live-label.finished {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* المستطيل يبقى في سطر واحد ولا يزيد ارتفاع كلمة انتهت */
.match-single-hero .match-live-label.finished .match-penalties-result {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);

    display: block;
    width: max-content;
    max-width: none;

    margin: 0;
    white-space: nowrap;
    text-align: center;

    z-index: 2;
}

/* ==========================================================
   MATCH HERO — Animated Navy & Green Background
   ========================================================== */

.match-single-hero {
    background-color: #0b1521;

    /* تدرّج كحلي مع لمسات خضراء وزرقاء */
    background-image:
        radial-gradient(
            ellipse at 18% 20%,
            rgba(0, 143, 76, 0.18),
            transparent 45%
        ),
        radial-gradient(
            ellipse at 82% 75%,
            rgba(35, 105, 150, 0.16),
            transparent 45%
        ),
        linear-gradient(
            120deg,
            #0b1521,
            #102b2b,
            #0d3528,
            #122338,
            #0b1521
        );

    background-size:
        180% 180%,
        180% 180%,
        300% 300%;

    background-position:
        0% 50%,
        100% 50%,
        0% 50%;

    background-repeat: no-repeat;

    animation: lwf-match-bg-shift 28s ease-in-out infinite;
}

/* حركة بطيئة وناعمة للألوان */
@keyframes lwf-match-bg-shift {
    0% {
        background-position:
            0% 50%,
            100% 50%,
            0% 50%;
    }

    50% {
        background-position:
            100% 50%,
            0% 50%,
            100% 50%;
    }

    100% {
        background-position:
            0% 50%,
            100% 50%,
            0% 50%;
    }
}

/* احترام إعداد تقليل الحركة في الجهاز */
@media (prefers-reduced-motion: reduce) {
    .match-single-hero {
        animation: none;
    }
}

/* =========================================
   Match Hero - تقليل الفراغ فوق النتيجة
========================================= */

/* الشاشات الكبيرة */
.match-single-hero .match-single-body {
    padding-top: 0 !important;
    padding-bottom: 55px !important;
}

/* الهاتف */
@media (max-width: 767px) {
    .match-single-hero .match-single-body {
        padding-top: 0 !important;
        padding-bottom: 45px !important;
    }
}

/* =========================================
   Match Hero - تكبير شعارات الفريقين في الهاتف
========================================= */

@media (max-width: 767px) {

    .match-single-hero .match-single-team img {
        width: 58px !important;
        height: 58px !important;
        object-fit: contain;
    }

}

/* الهاتف - إبعاد مستطيل ركلات الترجيح */
@media (max-width: 767px) {

    .match-single-hero .match-live-label.finished .match-penalties-result {
        top: calc(100% + 25px);
    }

}

/* =========================================
   Match Hero - تقليل الفراغ في النتائج العادية
========================================= */

/* الشاشات الكبيرة */
.match-single-hero:not(:has(.match-penalties-result)) .match-single-body {
    min-height: 0 !important;
    padding-bottom: 10px !important;
}

/* الهاتف */
@media (max-width: 767px) {
    .match-single-hero:not(:has(.match-penalties-result)) .match-single-body {
        min-height: 0 !important;
        padding-bottom: 12px !important;
    }

    .match-single-hero .match-live-label.finished {
    font-size: 11px !important;
}

}

/* ==========================================================
   FRENCH — LTR
   ========================================================== */

.match-single-card--fr {
    direction: ltr;
}

.match-single-card--fr .match-single-hero {
    direction: ltr;
}

.match-single-card--fr .match-single-header,
.match-single-card--fr .match-single-heading,
.match-single-card--fr .match-single-competition {
    direction: ltr;
}

.match-single-card--fr .match-single-meta {
    direction: ltr;
}

.match-single-card--fr .match-single-meta-item {
    direction: ltr;
}

.match-single-card--fr .match-single-body {
    direction: ltr;
}

.match-single-card--fr .match-single-team {
    direction: ltr;
}

.match-single-card--fr .match-single-center {
    direction: ltr;
    text-align: center;
}

.match-single-card--fr .match-single-competition__link {
    direction: ltr;
}

/* Retour */
.match-single-card--fr .match-back {
    direction: ltr;
}

/* أحداث الأهداف */
.match-single-card--fr .match-single-highlights {
    direction: ltr;
}

.match-single-card--fr .match-single-highlights__column--home {
    direction: ltr;
    align-items: flex-end;
    text-align: right;
}

.match-single-card--fr .match-single-highlights__column--away {
    direction: ltr;
    align-items: flex-start;
    text-align: left;
}

/* ركلات الترجيح */
.match-single-card--fr .match-penalties {
    direction: ltr;
}

/* تحديثات المباراة */
.match-single-card--fr .match-single-changes {
    direction: ltr;
}

/* التبويبات */
.match-single-card--fr .match-single-tabs {
    direction: ltr;
}

/* خسارة إدارية للفريقين — سطر واحد */
.match-single-hero .match-administrative-forfeit {
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    width: max-content;
    max-width: none;
}

@media (max-width: 767px) {
    .match-single-hero .match-administrative-forfeit {
        font-size: 18px !important;
        white-space: nowrap !important;
        width: max-content;
        max-width: none;
    }
}

