/* =========================================================
   TEAM — NEXT MATCH
========================================================= */

.team-next-match-card {
    overflow: hidden;
}


/* =========================================================
   Match Link
========================================================= */

.team-next-match {
    display: block;

    width: 100%;

    padding: 22px 20px;

    text-decoration: none;
    color: inherit;

    transition: background-color .2s ease;
}

.team-next-match:hover {
    background: #fafafa;
}


/* =========================================================
   Date
========================================================= */

.team-next-match__date {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 17px;

    font-size: 13px;

    color: #6b7280;
}

.team-next-match__day {
    font-weight: 500;
}

.team-next-match__time {

    direction: ltr;

    font-weight: 700;

    color: #111827;
}


/* =========================================================
   Teams
========================================================= */

.team-next-match__teams {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        50px
        minmax(0, 1fr);

    align-items: center;

    gap: 10px;

    width: 100%;
}


/* =========================================================
   Team
========================================================= */

.team-next-match__team {

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-width: 0;

    font-size: 12px;
    font-weight: 500;

    text-align: center;
}

.team-next-match__team span {

    display: block;

    max-width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.team-next-match__team img {

    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    object-fit: contain;
}

/* ترتيب الفريق المضيف: الشعار ثم الاسم */
.team-next-match__team--home img {
    order: 1;
}

.team-next-match__team--home span {
    order: 2;
}

/* ترتيب الفريق الضيف: الشعار ثم الاسم */
.team-next-match__team--away img {
    order: 1;
}

.team-next-match__team--away span {
    order: 2;
}


/* =========================================================
   VS
========================================================= */

.team-next-match__vs {

    display: flex;

    align-items: center;
    justify-content: center;
}

.team-next-match__vs span {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f3f4f6;

    color: #6b7280;

    font-size: 11px;
    font-weight: 700;

    direction: ltr;
}


/* =========================================================
   Stadium
========================================================= */

.team-next-match__venue {

  display: none !important;
}


/* =========================================================
   Empty
========================================================= */

.team-next-match-card .team-overview-empty {

    padding: 30px 20px;

    text-align: center;

    color: #9ca3af;

    font-size: 13px;
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 700px) {

    .team-next-match {
        padding: 20px 15px;
    }

    .team-next-match__teams {

        grid-template-columns:
            minmax(0, 1fr)
            42px
            minmax(0, 1fr);

        gap: 6px;
    }

    .team-next-match__team {

        flex-direction: column;

        gap: 6px;

        font-size: 12px;
    }

    .team-next-match__team img {

        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }

    .team-next-match__vs span {

        width: 34px;
        height: 34px;
    }

}

.team-next-match-card .team-overview-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.team-next-match-card .team-overview-card__header span {
    margin: 0;
}

.team-next-match__team {
    text-decoration: none;
    color: inherit;
}

.team-next-match__team:hover {
    color: inherit;
}

.team-next-match-card .team-overview-card__header h2 {
    font-size: 14px;
    font-weight: 600;
}

.team-next-match__vs span {
    width: auto;
    height: auto;
    min-width: 38px;
    padding: 6px 8px;

    border-radius: 6px;

    background: #f3f4f6;
    color: #6b7280;

    font-size: 13px;
    font-weight: 700;

    direction: ltr;
    white-space: nowrap;
}

@media (max-width: 700px) {

    .team-next-match__vs span {
        font-size: 12px;
        min-width: 34px;
        padding: 5px 7px;
    }

}

.team-next-match__competition {
    text-decoration: none;
    color: inherit;
        font-size: 13px;
    font-weight: 400;
    color: #6B7280;
}

.team-next-match__competition:hover {
    text-decoration: underline;
}

/* =========================================================
   French — LTR
========================================================= */

.team-next-match-card--fr {
    direction: ltr;
}

.team-next-match-card--fr .team-overview-card__header {
    direction: ltr;
    text-align: left;
}

.team-next-match-card--fr .team-next-match__competition {
    direction: ltr;
    text-align: right;
}

.team-next-match-card--fr .team-next-match {
    direction: ltr;
}

.team-next-match-card--fr .team-next-match__date {
    direction: ltr;
    text-align: center;
}

.team-next-match-card--fr .team-next-match__teams {
    direction: ltr;
}

.team-next-match-card--fr .team-next-match__team {
    direction: ltr;
    text-align: center;
}

.team-next-match-card--fr .team-next-match__vs {
    direction: ltr;
}

.team-next-match-card--fr .team-next-match__venue {
    direction: ltr;
    text-align: left;
}

.team-next-match-card--fr .team-overview-empty {
    direction: ltr;
    text-align: center;
}