.league-card {
    transition: transform 0.3s;
    margin-bottom: 1.5rem;
}

.league-card:hover {
    transform: translateY(-5px);
}

.list-group-item {
    border: 1px solid #e9e9e9;
}

.league-header {
    background: #E3E5F0;
}

.single .card-match-single {
    background: #272727 url(../imgs/tbg-2.jpg);
    overflow: hidden;
    background-size: cover;
    background-position: 30% 65%;
    background-blend-mode: overlay;
    object-fit: cover;
    color: #ffffff;
    border-radius: 15px;
}

div.card-header.league-header > div > h6 {
    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-name {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single .team-name {
    max-width: 100%;
}

.team-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.single .fc_time.fc_time_show {
    margin-top: 12px;
}

/*
.match-single {
    box-shadow: 0 0 4px rgba(0, 0, 0, .3);
    background: linear-gradient(to bottom, #e8edf4, #dee3ff, #ffffff);
}
*/

.single .match-score {
    background: none;
    font-size: 21px;
    letter-spacing: 6px;
}

/* Compact layout */
.compact .league-card {
    margin-bottom: 1rem;
}

.compact .team-name {
    font-size: 0.9rem;
}

.compact .match-score {
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    color: #000
}

small.fc_time {
    font-weight: 600;
    font-size: 21px;
}

/* تعيين عرض ثابت لكل زر */
#matchesTab .nav-item {
    width: 30%;
    /* عرض ثابت لكل زر */
}

#matchesTabContent {
    max-height: 255vh;
    /* قم بتحديد الارتفاع كما تريد */
    overflow-x: hidden;
    overflow-y: auto;
    /* تمكين التمرير العمودي */
    scroll-behavior: smooth;
    /* تأثير التمرير السلس */
    touch-action: auto;
}

#matchesTabContent::-webkit-scrollbar {
    display: 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: 0.9rem;
}

.status-badge {
    font-size: 0.8rem;
}
/* إضافة التأثير على النص داخل span */
span.pulse-text {
    display: flex;
    animation: pulseanimation 1s ease-in-out infinite;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    border: 1px solid #f00;
    background-color: #b40001;
    border-radius: 15px;
    padding: 2px 10px;
    height: 22px;
    font-size: 0.6rem;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
/* الأنيميشن */
@keyframes pulseanimation {
    0% {
        opacity: .8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .8;
    }
}

/* تكيف مع الأجهزة الصغيرة */
@media (max-width: 768px) {
    #matchesTabContent {
        max-height: none !important;
    }

    .team-logo {
        width: 26px;
        height: 26px;
    }

    .compact .match-score {
        font-size: 1.1rem;
    }

    .teams {
        padding: 15px;
    }

    .team-name {
        font-size: 12px
    }
    
    div.card-header.league-header > div > h6 {
        max-width: 160px;
    }

}
