.match-item.elgadwl {
    max-width: 100%;
    width: 98%;
    margin: 10px auto;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 3px;
}

.box-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #212867;
    color: white;
    border-radius: 8px;
    padding: 15px;
    flex-wrap: wrap;
}

.boxstitle {
    font-size: 20px;
    margin: 0;
    flex: 1;
    text-align: right;
}
/* ✅ تصميم الجداول */
.matches-table {
    display: none;
    background: white;
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.matches-table.active {
    display: block !important;
}
#allmatch {
    width: 98%;
    margin: auto;
}
/* ✅ التصميم المتجاوب (Responsive) */
@media (max-width: 768px) {
    .box-title {
        flex-direction: column;
        text-align: center;
    }

    .boxstitle {
        text-align: center;
        margin-bottom: 10px;
    }
    .nav-tabs li {
        width: 100%;
        text-align: center;
    }

    .nav-tabs li a {
        width: 170px;
        font-size: 16px;
    }
}
@media (max-width: 646px) {
    .nav-tabs li a {
        width: 107px;
        font-size: 10px;
    }
}

@media (max-width: 388px) {
    .nav-tabs li a {
        width: 74px;
        font-size: 11px;
        padding: 5px;
    }
}
@media only screen and (max-width: 600px)  {
    #tbmatch, #articles {
        width: 100%;
    }
    .watch-btn {width: 90%!important;}
}


/* ------------------------------------------------------- */
/* table style */
#linkmatch{
    text-decoration: none;
}
.match-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.match-item {
    background: #f4f4f4;
    color:#000;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    cursor: pointer;
}

/* تأثير hover مثل الصورة */
/* الحاوية */
.match-item {
    position: relative;
    overflow: hidden;
}

/* طبقة الـ Blur */
.match-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(1px); /* الخلفية فقط */
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    z-index: 1;  /* خلف زر التشغيل */
}

/* زر التشغيل */
.match-item::before {
    content: "▶";
    position: absolute;
    font-size: 55px;
    font-weight: bold;
    color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    filter: drop-shadow(0 0 4px #000);
    z-index: 2; /* فوق طبقة البلور */
}

/* عند تمرير الماوس */
.match-item:hover::after {
    opacity: 1;
}

.match-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}




.team {
    text-align: center;
    width: 25%;
}

.team-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
}

.team-name {
    margin-top: 8px;
    font-weight: bold;
}

.center-box {
    width: 40%;
    text-align: center;
}

.score {
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0;
}

.league {
    margin-top: 8px;
    font-size: 14px;
}

/* عند hover تتغير ألوان العناصر الداخلية */
.match-item:hover .play-btn {
    background: #fff;
    color: #8b0000;
}

.match-item:hover img {
    filter: brightness(0.8);
}

.statumatch {
    padding: 3px 12px;
    margin-top: 5px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
    transition: 0.3s;
}

/* ألوان الحالات */
.not-started { background: #777; color: #fff; }
.soon { background: #27ae60; color: #fff; }
.playing { background: #e74c3c; color: #fff; }
.finished { background: #2c3e50; color: #fff; }

/* ---------------------------------------------- */
