/*
/////////////////////////////////////////////////////////
  Start File livepress.css
/////////////////////////////////////////////////////////*/
.league-card {
    transition: transform 0.3s;
    margin-bottom: 1.5rem;
}

.league-card:hover {
    transform: translateY(-5px);
}

span.badge.matchs-num {
    background-color: #eee;
    color: #333
}

.list-group-item {
    border: 1px solid #e9e9e9;
    background-color: #f2f2f2;
}

.card {
    color: #ffffff;
    border: none;
    background-color: #191d2d;
}

.league-header {
    background: #191D2D !important;
}

div.card-header.league-header > div > h4 {
    font-size: 0.80rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    /* تحديد الحد الأقصى لعرض العنوان */
}

a.league-card:hover {
    transform: scale(1.03);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.team-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

span.text-muted.finshed {
    font-size: 10px;
}

/* Compact layout */
.league-card {
    margin-bottom: 10px;
}

.team-name {
    font-size: 12px;
}

small.fc_time {
    font-weight: 600;
    font-size: 21px;
}

/* تعيين عرض ثابت لكل زر */
#matchesTab .nav-item {
    width: 30%;
    /* عرض ثابت لكل زر */
}

#matchesTabContent {
    max-height: 265vh;
    /* قم بتحديد الارتفاع كما تريد */
    overflow-x: hidden;
    overflow-y: auto;
    /* تمكين التمرير العمودي */
    scroll-behavior: smooth;
    /* تأثير التمرير السلس */
    touch-action: auto;
}

#matchesTabContent::-webkit-scrollbar {
    display: none;
    /* إخفاء شريط التمرير */
}

#matchesTabContent {
    scrollbar-width: none;
}

/* محاذاة الأزرار في الوسط */
#matchesTab {
    display: flex;
    justify-content: space-between;
    /* توزيع الأزرار */
    border: none;
}

#matchesTab .nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    /* مسافات داخلية */
    text-align: center;
    /* محاذاة النص */
    width: 100%;
    /* تأكد من أن الأزرار تشغل عرض العنصر */
}

.no-matches {
    text-align: center;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: #7f8c8d;
}

/*
.fc_time,
.fc_time_show {
    display: flex;
    align-items: center;
    justify-content: center;
}
*/

.fc_time_show {
    font-size: 1rem;
}

.badge.penalties {
    display: flex;
    justify-content: center;
    gap: 10px;
}


span.badge.bg-info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 60px;
    margin: auto;
}

span.status-badge.text-danger {
    width: 100%;
    display: flex;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    height: 16px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    max-width: 40px;
    margin: auto;
}

/* إضافة التأثير على النص داخل span */
span.pulse-text {
    color: #ffffff;
}

.animate-pulse {
    animation: blink 1s infinite linear;
}

.date-navigation-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 5px;
}

.nav-arrow a {
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.current-date-display {
    text-align: center;
}

.date-text {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.btn i {
    font-size: 1rem;
}

#calendarModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#calendarModal .modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

#datePicker {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px;
    font-size: 1rem;
    position: relative;
}

#datePicker:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* تنسيق أيقونة التقويم للوضع العادي */
/* تنسيق النتائج والفرق الفائزة */
.match-score {
    font-size: 1rem !important;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    display: inline-flex !important;
    align-items: center;
    padding: 0.25rem 0.5rem;
    gap: 5px;
}

.match-score.match-score-between {
    font-size: 1rem !important;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.score-team1,
.score-team2 {
    transition: all 0.3s ease;
}

.score-separator {
    color: #262626;
}

/* الفريق الفائز */
.score-team1.winner,
.score-team2.winner {
    /*    background-color: #39dbbf;*/
    color: #39dbbf;
    /*    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);*/
    font-weight: 900;
}

/* الفريق الخاسر */
.score-team1.loser,
.score-team2.loser {
    /*    background-color: #dc3545;*/
    color: #dc3545;
    opacity: 0.8;
}

/* التعادل */
.score-team1.draw,
.score-team2.draw {
    /*    background-color: #ffc107;*/
    color: #ffc107;
    font-weight: bold;
}

.team-name {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    /*    text-overflow: ellipsis;*/
}

#datePicker::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23212529' d='M6.5 1A1.5 1.5 0 0 1 8 2.5V3h4V2.5A1.5 1.5 0 0 1 13.5 1h1A1.5 1.5 0 0 1 16 2.5V15a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2.5A1.5 1.5 0 0 1 1.5 1h1zM2 4v11h12V4H2zm2.5 0h7v2h-7V4zm0 3h7v2h-7V7zm0 3h7v2h-7v-2z'/%3e%3c/svg%3e");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 1;
}

/* حل بديل باستخدام CSS filter للمتصفحات الأخرى */
@media (prefers-color-scheme: dark) {
    #datePicker::-webkit-calendar-picker-indicator {
        filter: invert(1);
    }
}

.no-matches {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 3rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.league-card {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.league-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

span.time-arabic {
    margin-right: 3px;
    font-size: 12px;
}

/* تكيف مع الأجهزة الصغيرة */
@media (max-width: 768px) {
    #matchesTabContent {
        max-height: none !important;
    }

    .egy-list-group .list-group-item {
        gap: 0 !important;
        font-size: 11px !important;
    }

    .egy-list-group h3 {
        font-size: 1.3rem;
    }

    .card-body h2 {
        font-size: 1.3rem;
    }

    span.time-arabic {
        font-size: 10px;
    }

    .date-text {
        font-size: 1rem;
    }

    .nav-arrow a {
        width: 30px;
        height: 30px;
    }

    .btn i {
        font-size: inherit;
    }

    .team-logo {
        width: 26px;
        height: 26px;
    }

    .match-score {
        font-size: 0.95rem;
    }

    .team-name {
        font-size: 12px
    }

    div.card-header.league-header > div > h6 {
        max-width: 160px;
    }

}

/*
////////////////////////////////////////////////////////
    All @keyframes Hare
///////////////////////////////////////////////////////*/
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* الأنيميشن */
@keyframes pulseanimation {
    0% {
        opacity: .8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .8;
    }
}

/* أنيميشن للوهج */
@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.8));
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


.teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team {
    flex: 1; /* كل فريق ياخد نفس المساحة */
}

.match-center {
    text-align: center;
}

.teams {
    width: 100%;
}
.team {
    min-width: 0; /* مهم عشان text-truncate يشتغل */
}
.team-name {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-center {
    min-width: 100px; /* يحافظ على مساحة النتيجة وسط */
}

/* تصميم التايمر الدائري */
.timer-status {
    display: flex;
    align-items: center;
    justify-content: center;
    /*    margin-top: 8px;*/
}

.circular-timer {
    position: relative;
    display: inline-block;
}

.timer-circle {
    transform: rotate(-90deg);
    /* بدء من الأعلى */
}

/*
.timer-track {
    stroke: #e0e0e0;
    stroke-width: 2;
    fill: #181e38;  اللون الداخلي 
}
*/

.timer-track {
    stroke-width: 2;
    fill: rgb(38, 53, 69);
    stroke: rgb(38, 53, 69);
}

.timer-progress {
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-linecap: round;
    fill: transparent; /* خليه شفاف عشان ما يغطيش على الدائرة */
    stroke-dasharray: 157;
    /* محيط الدائرة: 2π × 25 = ~157 */
    stroke-dashoffset: 157;
    /* بداية من 0% */
    transition: stroke-dashoffset 0.5s ease;
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 10px;
    line-height: 1;
}

.timer {
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
    color: #ffb300;
    font-size: 11px;
}

.status {
    display: block;
    text-transform: uppercase;
}

/* نقطة حمراء ثابتة للبث المباشر */
.circular-timer.live-timer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 10;
    /*    animation: live-blink 1.5s infinite;*/
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.6);
    left: 0;
    margin: auto;
}

/* نقطة صغيرة بيضاء في وسط الدائرة الحمراء */
.circular-timer.live-timer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    z-index: 11;
    animation: live-blink 1.5s infinite;
}

/* حالات المباراة المختلفة */
.egy_sports_item.live .timer-progress {
    stroke: #ff0000;
    animation: pulse-circle 2s infinite;
}

/* تأثير المباراة المباشرة */
.circular-timer.live-timer .timer-progress {
    stroke: #4CAF50;
    animation: pulse-circle 2s infinite;
}

/* عند انتهاء المباراة - دائرة خضراء كاملة */
.circular-timer.match-finished .timer-progress {
    stroke: #39dbbf;
    stroke-dashoffset: 0;
    /* دائرة كاملة 100% */
    animation: none;
}

/* إخفاء النقطة الحمراء عند انتهاء المباراة */
.circular-timer.match-finished::before {
    display: none;
}

.waiting-kick-off {
    color: #ff6b35;
    font-weight: bold;
}

.extra-time {
    color: #ff6b35;
    font-weight: bold;
}

.full-time {
    color: #39dbbf;
    font-weight: bold;
}

/* أنيميشن للمباراة المباشرة */
@keyframes pulse-circle {
    0% {
        stroke-width: 2;
    }

    50% {
        stroke-width: 3;
    }

    100% {
        stroke-width: 2;
    }
}

/* أنيميشن وميض النقطة الحمراء */
@keyframes live-blink {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 4px rgba(255, 0, 0, 0.6);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 4px rgba(255, 0, 0, 0.6);
    }
}

/* تأثير للاستراحة */
.half-time .timer-progress {
    stroke: #ffa500;
}

/* إخفاء النقطة الحمراء أثناء الاستراحة */
.circular-timer.half-time::before {
    display: none;
}

/* تأثير الوقت الإضافي */
.extra-time-circle .timer-progress {
    stroke: #ff6b35;
    animation: pulse-circle 1s infinite;
}

/* نقطة برتقالية للوقت الإضافي مع وميض أسرع */
.circular-timer.extra-time-circle::before {
    background: #ff6b35;
    animation: live-blink 1s infinite;
    box-shadow: 0 0 4px rgba(255, 107, 53, 0.6);
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .timer-circle {
        width: 50px;
        height: 50px;
    }

    .timer-circle circle {
        r: 20;
        cx: 25;
        cy: 25;
    }

    .timer {
        font-size: 10px;
    }

    .status {
        font-size: 8px;
    }

    /* تعديل النقطة للأجهزة المحمولة */
    .circular-timer.live-timer::before,
    .circular-timer.extra-time-circle::before {
        top: 0;
        right: 0;
        width: 6px;
        height: 6px;
    }

    .match-score.match-score-between {
        gap: 10px;
    }
}

/*
/////////////////////////////////////////////////////////
  Start File dark-match.css
/////////////////////////////////////////////////////////*/
.score-separator {
    margin: 0 2px;
}

.score-separator {
    color: #ffffff;
}

span.badge.matchs-num {
    background-color: #424663;
    color: #ffffff
}

/* تنسيق أيقونة التقويم للوضع الداكن */
[data-bs-theme="dark"] #datePicker::-webkit-calendar-picker-indicator,
#datePicker::-webkit-calendar-picker-indicator,
body.dark #datePicker::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23ffffff' d='M6.5 1A1.5 1.5 0 0 1 8 2.5V3h4V2.5A1.5 1.5 0 0 1 13.5 1h1A1.5 1.5 0 0 1 16 2.5V15a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2.5A1.5 1.5 0 0 1 1.5 1h1zM2 4v11h12V4H2zm2.5 0h7v2h-7V4zm0 3h7v2h-7V7zm0 3h7v2h-7v-2z'/%3e%3c/svg%3e");
    filter: brightness(0) invert(1);
}

/* تنسيق إضافي للوضع الداكن */
[data-bs-theme="dark"] #datePicker,
#datePicker,
body.dark #datePicker {
    background-color: #212529;
    border-color: #495057;
    color: #ffffff;
}

[data-bs-theme="dark"] #datePicker:focus,
#datePicker:focus,
body.dark #datePicker:focus {
    background-color: #212529;
    border-color: #0d6efd;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* تنسيق Modal للوضع الداكن */
[data-bs-theme="dark"] #calendarModal .modal-content,
#calendarModal .modal-content,
body.dark #calendarModal .modal-content {
    background-color: #212529;
    color: #ffffff;
}

[data-bs-theme="dark"] #calendarModal .modal-header,
#calendarModal .modal-header,
body.dark #calendarModal .modal-header {
    background: linear-gradient(135deg, #7f9dc1 0%, #314158 100%);
    border-bottom-color: #495057;
}
.modal-footer {
    border: none;
}
.date-navigation-bar {
    border: none;
}

.egyflex {
	width: 100%;
	display: flex;
	flex-direction: column
}

.swiper-slide.elgadwl.live {
	order: 1
}

.swiper-slide.elgadwl.soon {
	order: 2
}

.swiper-slide.elgadwl {
	order: 3
}

.swiper-slide.elgadwl.gools {
	order: 4
}

.swiper-slide.elgadwl.finshed {
	order: 5
}