/* === STATISTICS TAB STYLING === */
.modern-design .statistics-container {
    padding: 2px 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
}

.modern-design .statistic-item {
    margin-bottom: 10px;
    position: relative;
}

.modern-design .values-and-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modern-design .values-and-label .value-home,
.modern-design .values-and-label .value-away {
    font-weight: 700;
    color: #333;
    flex-basis: 15%;
    font-size: 16px;
}

.modern-design .values-and-label .value-home { text-align: left; }
.modern-design .values-and-label .value-away { text-align: right; }

.modern-design .values-and-label .label {
    flex-grow: 1;
    text-align: center;
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

/* شريط الخلفية الرمادي */
.modern-design .progress-bar-bg {
    position: relative;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: visible;
}

/* شريط الفريق المنزلي (البنفسجي) - يبدأ من المنتصف ويتجه لليسار */
.modern-design .progress-bar-home {
    position: absolute;
    right: 50%; /* يبدأ من المنتصف */
    top: 0;
    height: 100%;
    background-color: #3a1c5a;
    border-radius: 5px 0 0 5px;
    transition: width 0.4s ease-in-out;
}

/* شريط الفريق الضيف (الأزرق) - يبدأ من المنتصف ويتجه لليمين */
.modern-design .progress-bar-away {
    position: absolute;
    left: 50%; /* يبدأ من المنتصف */
    top: 0;
    height: 100%;
    background-color: #0066cc;
    border-radius: 0 5px 5px 0;
    transition: width 0.4s ease-in-out;
}

/* فاصل بين العناصر */
.modern-design .statistic-item:not(:last-child) {
    padding-bottom: 2px;
}

/* تعديلات للشاشات الصغيرة */
@media (max-width: 640px) {
    .modern-design .values-and-label .value-home,
    .modern-design .values-and-label .value-away {
        font-size: 14px;
        flex-basis: 20%;
    }
    
    .modern-design .values-and-label .label {
        font-size: 10px;
    }
    
    .modern-design .progress-bar-bg {
        height: 8px;
    }
}