/* =========================================================
   ZNILATHOSS SPORTS
   LIVE.CSS
   المباريات المباشرة فقط
   ========================================================= */


/* =========================================================
   القسم الرئيسي
   ========================================================= */

.live-section {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* =========================================================
   رأس المباشر
   ========================================================= */

.live-header {

    width: 100%;

    min-height: 58px;

    padding: 11px 15px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow:
        0 3px 12px
        rgba(15, 35, 65, .045);
}


/* =========================================================
   عنوان المباشر
   ========================================================= */

.live-title {

    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--live);

    font-size: 16px;

    font-weight: 900;
}


/* =========================================================
   أيقونة المباشر
   ========================================================= */

.live-title-icon {

    width: 31px;

    height: 31px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    background:
        rgba(229, 57, 53, .08);

    border-radius: 8px;

    color: var(--live);

    font-size: 15px;
}


/* =========================================================
   مؤشر LIVE في الرأس
   ========================================================= */

.live-indicator {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 6px 10px;

    color: var(--live);

    background:
        rgba(229, 57, 53, .07);

    border:
        1px solid
        rgba(229, 57, 53, .12);

    border-radius: 20px;

    font-size: 9px;

    font-weight: 900;
}


/* =========================================================
   النقطة الحمراء
   ========================================================= */

.live-indicator-dot {

    width: 7px;

    height: 7px;

    display: inline-block;

    background: var(--live);

    border-radius: 50%;

    animation:
        livePulse 1.2s infinite;
}


/* =========================================================
   قائمة المباريات المباشرة
   ========================================================= */

.live-list {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 10px;
}


/* =========================================================
   بطاقة المباراة المباشرة
   ========================================================= */

.live-list .match-card {

    border-color:
        rgba(229, 57, 53, .16);

    box-shadow:
        0 4px 15px
        rgba(229, 57, 53, .055);
}


/* =========================================================
   الشريط الأحمر أعلى البطاقة
   ========================================================= */

.live-list .match-card::before {

    background: var(--live);

    height: 3px;
}


/* =========================================================
   مركز المباراة المباشرة
   ========================================================= */

.live-list .match-card-center {

    gap: 5px;
}


/* =========================================================
   وقت / دقيقة المباراة
   ========================================================= */

.live-minute {

    color: var(--live);

    font-size: 13px;

    font-weight: 900;

    direction: ltr;

    white-space: nowrap;
}


/* =========================================================
   النتيجة المباشرة
   ========================================================= */

.live-score {

    color: var(--text);

    font-size: 20px;

    font-weight: 950;

    line-height: 1.1;

    direction: ltr;

    white-space: nowrap;
}


/* =========================================================
   حالة المباراة
   ========================================================= */

.live-status {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    color: var(--live);

    font-size: 8px;

    font-weight: 900;

    white-space: nowrap;
}


/* =========================================================
   النقطة داخل حالة المباراة
   ========================================================= */

.live-status::before {

    content: "";

    width: 5px;

    height: 5px;

    display: inline-block;

    background: var(--live);

    border-radius: 50%;

    animation:
        livePulse 1.1s infinite;
}


/* =========================================================
   الدقيقة الإضافية
   ========================================================= */

.live-added-time {

    margin-right: 2px;

    color:
        #991b1b;

    font-size: 8px;

    font-weight: 800;
}


/* =========================================================
   فريق سجل هدفًا
   ========================================================= */

.live-list .team-scored {

    color: var(--primary);

    font-weight: 950;
}


/* =========================================================
   نتيجة الفريق
   ========================================================= */

.live-team-score {

    min-width: 24px;

    color: var(--text);

    font-size: 15px;

    font-weight: 950;

    direction: ltr;
}


/* =========================================================
   تنبيه هدف حديث
   ========================================================= */

.live-goal {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    color: var(--live);

    font-size: 8px;

    font-weight: 900;
}


/* =========================================================
   معلومات المباشر
   ========================================================= */

.live-info {

    width: 100%;

    padding: 9px 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    color: var(--text-muted);

    background:
        rgba(229, 57, 53, .025);

    border:
        1px solid
        rgba(229, 57, 53, .10);

    border-radius: var(--radius-sm);

    font-size: 9px;

    font-weight: 700;

    text-align: center;
}


/* =========================================================
   عدد المباريات المباشرة
   ========================================================= */

.live-count {

    min-width: 25px;

    height: 22px;

    padding: 2px 7px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(229, 57, 53, .09);

    color: var(--live);

    border-radius: 7px;

    font-size: 9px;

    font-weight: 900;

    direction: ltr;
}


/* =========================================================
   عدم وجود مباريات مباشرة
   ========================================================= */

.live-empty {

    width: 100%;

    min-height: 180px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 9px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    color: var(--text-muted);

    text-align: center;
}


/* =========================================================
   أيقونة عدم وجود المباريات
   ========================================================= */

.live-empty-icon {

    width: 48px;

    height: 48px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(229, 57, 53, .07);

    border-radius: 50%;

    color: var(--live);

    font-size: 21px;
}


/* =========================================================
   عنوان الحالة الفارغة
   ========================================================= */

.live-empty strong {

    color: var(--text);

    font-size: 13px;

    font-weight: 900;
}


/* =========================================================
   وصف الحالة الفارغة
   ========================================================= */

.live-empty span {

    color: var(--text-muted);

    font-size: 10px;

    font-weight: 600;
}


/* =========================================================
   التحميل
   ========================================================= */

.live-loading {

    width: 100%;

    min-height: 170px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    color: var(--text-muted);

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   دائرة التحميل
   ========================================================= */

.live-loading .loading-spinner {

    width: 29px;

    height: 29px;

    border: 3px solid #fee2e2;

    border-top-color: var(--live);

    border-radius: 50%;

    animation:
        liveSpinner .75s linear infinite;
}


@keyframes liveSpinner {

    to {

        transform: rotate(360deg);

    }

}


/* =========================================================
   خطأ المباشر
   ========================================================= */

.live-error {

    width: 100%;

    min-height: 170px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 9px;

    background: #fff7f7;

    border: 1px solid #fecaca;

    border-radius: var(--radius);

    color: var(--danger);

    text-align: center;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   زر إعادة المحاولة
   ========================================================= */

.live-retry {

    min-height: 31px;

    padding: 5px 12px;

    margin-top: 3px;

    color: var(--white);

    background: var(--live);

    border: 0;

    border-radius: 7px;

    font-family: inherit;

    font-size: 10px;

    font-weight: 800;

    cursor: pointer;

    transition:
        opacity var(--transition),
        transform var(--transition);
}


.live-retry:hover {

    opacity: .9;

    transform: translateY(-1px);
}


/* =========================================================
   الشاشات المتوسطة
   ========================================================= */

@media (max-width: 900px) {

    .live-header {

        padding: 10px 12px;
    }


    .live-title {

        font-size: 14px;
    }


    .live-indicator {

        padding: 5px 8px;

        font-size: 8px;
    }

}


/* =========================================================
   الهاتف
   ========================================================= */

@media (max-width: 700px) {

    .live-section {

        gap: 9px;
    }


    .live-header {

        min-height: 52px;

        padding: 9px 10px;
    }


    .live-title {

        gap: 6px;

        font-size: 13px;
    }


    .live-title-icon {

        width: 28px;

        height: 28px;

        font-size: 13px;
    }


    .live-indicator {

        padding: 5px 7px;

        font-size: 7px;
    }


    .live-indicator-dot {

        width: 6px;

        height: 6px;
    }


    .live-list {

        gap: 8px;
    }


    .live-score {

        font-size: 17px;
    }


    .live-minute {

        font-size: 11px;
    }


    .live-info {

        padding: 8px 10px;

        font-size: 8px;
    }


    .live-count {

        min-width: 23px;

        height: 20px;

        font-size: 8px;
    }

}


/* =========================================================
   الهاتف الصغير
   ========================================================= */

@media (max-width: 420px) {

    .live-header {

        padding: 8px;
    }


    .live-title {

        font-size: 12px;
    }


    .live-title-icon {

        width: 26px;

        height: 26px;

        font-size: 12px;
    }


    .live-indicator {

        padding: 4px 6px;
    }


    .live-score {

        font-size: 15px;
    }


    .live-minute {

        font-size: 10px;
    }

}