.match-details-page {
    background: var(--color-background, #f5f8fb);
}

.match-details-hero {
    padding: 80px 0;
}

.match-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.match-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.match-back-link:hover {
    color: var(--color-primary);
}

.match-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-live {
    color: #ffffff;
    background: #dc3545;
}

.status-finished {
    color: #ffffff;
    background: #198754;
}

.status-upcoming {
    color: #ffffff;
    background: var(--color-primary-dark);
}

.status-postponed {
    color: #212529;
    background: #ffc107;
}

.status-cancelled {
    color: #ffffff;
    background: #6c757d;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.35);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.match-detail-card {
    overflow: hidden;
    padding: 42px;
    border: 1px solid rgba(0, 119, 204, 0.12);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(0, 82, 165, 0.1);
}

.match-competition-label {
    margin-bottom: 34px;
    color: var(--color-primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 35px;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-logo-placeholder {
    display: grid;
    width: 92px;
    height: 92px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-primary-dark)
        );
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0, 119, 204, 0.2);
}

.team-name {
    margin: 0;
    color: var(--color-text-dark, #152334);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 800;
}

.team-side {
    margin-top: 6px;
    color: #75808d;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.match-score-area {
    min-width: 170px;
    text-align: center;
}

.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--color-primary-dark);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1;
}

.score-separator {
    color: #c5cbd2;
}

.match-versus {
    color: var(--color-primary-dark);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
}

.score-status {
    display: block;
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.live-match-info {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    color: #dc3545;
    font-weight: 700;
}

.match-information-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 42px;
    padding-top: 32px;
    border-top: 1px solid #e9eef3;
}

.match-information-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border-radius: 16px;
    background: #f6f9fc;
}

.match-information-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: var(--color-primary-dark);
    background: rgba(51, 168, 255, 0.14);
    font-size: 1.15rem;
}

.match-information-label {
    display: block;
    margin-bottom: 4px;
    color: #7a8591;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.match-information-item strong {
    display: block;
    color: #152334;
    overflow-wrap: anywhere;
}

.match-not-found {
    max-width: 680px;
    margin: 40px auto;
    padding: 55px 30px;
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 82, 165, 0.1);
}

.match-not-found-icon {
    margin-bottom: 20px;
    color: var(--color-primary-dark);
    font-size: 4rem;
}

.match-not-found h1 {
    margin-bottom: 12px;
    color: #152334;
    font-weight: 800;
}

.match-not-found p {
    max-width: 480px;
    margin: 0 auto 24px;
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .match-details-hero {
        padding: 55px 0;
    }

    .match-detail-card {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .match-teams {
        grid-template-columns: 1fr 95px 1fr;
        gap: 8px;
    }

    .team-logo-placeholder {
        width: 68px;
        height: 68px;
        font-size: 1.5rem;
    }

    .team-name {
        font-size: 1rem;
    }

    .match-score-area {
        min-width: 0;
    }

    .match-score {
        gap: 8px;
        font-size: 2.4rem;
    }

    .match-versus {
        font-size: 2.2rem;
    }

    .match-information-grid {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }
}

@media (max-width: 430px) {
    .match-details-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .match-teams {
        grid-template-columns: 1fr;
    }

    .match-score-area {
        order: 2;
        margin: 15px 0;
    }

    .match-team-home {
        order: 1;
    }

    .match-team-away {
        order: 3;
    }
}