/* Stadium page — matches section (dark + light, mobile-first) */

.inner-page-content.stad .stad-header-row {
    align-items: flex-start;
}

.inner-page-content.stad .stad-matches-row {
    margin-top: 24px;
}

.stad-matches-block {
    background: #151825;
    border: 1px solid #191D2D;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.stad-matches-block:last-child {
    margin-bottom: 0;
}

.stad-matches-heading {
    margin: 0 0 16px;
    padding: 0;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    background: none;
}

.stad-match-group {
    margin-bottom: 12px;
}

.stad-match-group:last-child {
    margin-bottom: 0;
}

.stad-match-group .matches-week-title.two-rows-title {
    margin: 0 0 6px;
    min-height: 34px;
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
}

.inner-page-content.stad .stad-match-card.inline-match-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    min-height: 64px;
    margin-bottom: 4px;
    padding: 14px 16px;
    background: #191D2D;
    border-radius: 10px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.inner-page-content.stad .stad-match-card.inline-match-item:last-child {
    margin-bottom: 0;
}

.inner-page-content.stad .stad-match-card.inline-match-item:hover {
    background: #1e2235;
}

.inner-page-content.stad .stad-match-card .first-team,
.inner-page-content.stad .stad-match-card .second-team {
    flex: 1 1 0;
    min-width: 0;
}

.inner-page-content.stad .stad-match-card .first-team .team---item,
.inner-page-content.stad .stad-match-card .second-team .team---item {
    width: 100%;
    min-width: 0;
}

.inner-page-content.stad .stad-match-card .first-team .team---item b,
.inner-page-content.stad .stad-match-card .second-team .team---item b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inner-page-content.stad .stad-match-card .first-team .team---item {
    justify-content: flex-end;
}

.inner-page-content.stad .stad-match-card .second-team .team---item {
    justify-content: flex-start;
}

.inner-page-content.stad .stad-match-card .result-wrap {
    flex: 0 0 auto;
    width: auto;
    min-width: 72px;
    max-width: 110px;
    margin: 0 16px;
    padding: 6px 12px;
    height: auto;
    min-height: 28px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.inner-page-content.stad .stad-match-card.match-with-result .result-wrap .match-date,
.inner-page-content.stad .stad-match-card.match-with-result .result-wrap .stad-match-score {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.inner-page-content.stad .stad-match-card .result-wrap .result-status-text,
.inner-page-content.stad .stad-match-card .result-wrap .stad-match-status {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    display: block;
    font-size: 9px;
    line-height: 1.2;
    margin: 0;
    white-space: normal;
    text-align: center;
    color: #707488;
}

.inner-page-content.stad .stad-match-card.stad-match-ended .result-wrap {
    min-width: 64px;
    max-width: 88px;
}

.inner-page-content.stad .stad-match-card.stad-match-ended .result-wrap .stad-match-score i {
    margin: 0 3px;
    font-style: normal;
    color: #707488;
}

.inner-page-content.stad .stad-match-card.stad-match-ended .result-wrap .first-team-result.winner,
.inner-page-content.stad .stad-match-card.stad-match-ended .result-wrap .second-team-result.winner {
    color: #39DBBF;
}

.inner-page-content.stad .stad-match-card.stad-match-ended .result-wrap .first-team-result.loser,
.inner-page-content.stad .stad-match-card.stad-match-ended .result-wrap .second-team-result.loser {
    color: rgba(255, 255, 255, 0.45);
}

.inner-page-content.stad .stad-match-card .active-match-quick-links {
    position: absolute;
    left: 10px;
    bottom: 6px;
}

/* Light mode */
html.light .stad-matches-block {
    background: #fff;
    border-color: #e8ebf2;
}

html.light .stad-matches-heading {
    color: #131521;
}

html.light .inner-page-content.stad .stad-match-card.inline-match-item {
    background: #f4f6fb;
}

html.light .inner-page-content.stad .stad-match-card.inline-match-item:hover {
    background: #eef1f8;
}

html.light .inner-page-content.stad .stad-match-card .result-wrap {
    background: #fff;
    color: #131521 !important;
}

html.light .inner-page-content.stad .stad-match-card.match-with-result .result-wrap .match-date,
html.light .inner-page-content.stad .stad-match-card.match-with-result .result-wrap .stad-match-score {
    color: #131521;
}

html.light .inner-page-content.stad .stad-match-card.stad-match-ended .result-wrap .first-team-result.loser,
html.light .inner-page-content.stad .stad-match-card.stad-match-ended .result-wrap .second-team-result.loser {
    color: rgba(19, 21, 33, 0.4);
}

html.light .stad-match-group .matches-week-title.two-rows-title {
    background: rgba(90, 131, 255, 0.1);
}

html.light .stad-match-group .matches-week-title.two-rows-title .date {
    color: #505668;
}

/* Tablet & mobile */
@media (max-width: 991px) {
    .inner-page-content.stad .stad-info-wrapper {
        padding-right: 0;
    }

    .inner-page-content.stad .stad-matches-row {
        margin-top: 16px;
    }
}

@media (max-width: 767px) {
    .stad-matches-block {
        padding: 16px;
        border-radius: 12px;
    }

    .stad-matches-heading {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .inner-page-content.stad .stad-match-card.inline-match-item {
        min-height: 58px;
        padding: 12px 10px;
    }

    .inner-page-content.stad .stad-match-card .first-team .team---item b,
    .inner-page-content.stad .stad-match-card .second-team .team---item b {
        font-size: 11px;
    }

    .inner-page-content.stad .stad-match-card .first-team .img,
    .inner-page-content.stad .stad-match-card .second-team .img {
        width: 22px;
        height: 22px;
    }

    .inner-page-content.stad .stad-match-card .result-wrap {
        min-width: 56px;
        max-width: 76px;
        margin: 0 6px;
        padding: 5px 6px;
    }

    .inner-page-content.stad .stad-match-card.match-with-result .result-wrap .match-date,
    .inner-page-content.stad .stad-match-card.match-with-result .result-wrap .stad-match-score {
        font-size: 12px;
    }

    .inner-page-content.stad .stad-match-card.stad-match-ended .result-wrap {
        min-width: 52px;
        max-width: 68px;
    }
}

@media (max-width: 480px) {
    .inner-page-content.stad .stad-match-card .first-team .team---item b,
    .inner-page-content.stad .stad-match-card .second-team .team---item b {
        max-width: 72px;
    }

    .stad-match-group .matches-week-title.two-rows-title {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: space-between;
    }

    .stad-match-group .matches-week-title.two-rows-title .date {
        margin-right: 0;
        font-size: 9px;
    }
}

/* LTR adjustments */
html[dir="ltr"] .inner-page-content.stad .stad-match-card .first-team .team---item {
    justify-content: flex-start;
}

html[dir="ltr"] .inner-page-content.stad .stad-match-card .second-team .team---item {
    justify-content: flex-end;
}

html[dir="ltr"] .inner-page-content.stad .stad-match-card .active-match-quick-links {
    left: auto;
    right: 10px;
}

html[dir="ltr"] .stad-match-group .matches-week-title.two-rows-title {
    padding-right: 14px;
    padding-left: 14px;
}

html[dir="ltr"] .stad-match-group .matches-week-title.two-rows-title .date {
    margin-right: 0;
    margin-left: auto;
}
