.mdv-match-single-page {
    width: 100%;
    padding: 48px 0;
}

.mdv-match-single-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.mdv-match-single-hero {
    position: relative;
    overflow: hidden;
    background: var(--mdv-primary);
    color: #ffffff;
    border-radius: 8px;
    padding: 42px;
    margin-bottom: 24px;
}

.mdv-match-single-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.mdv-match-single-status--live {
    background: #dc2626;
}

.mdv-match-single-status--finished {
    background: rgba(17, 24, 39, 0.72);
}

.mdv-match-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.mdv-match-single-team a {
    display: grid;
    justify-items: center;
    gap: 16px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
}

.mdv-match-single-team strong {
    font-size: 28px;
    line-height: 1.15;
    color: #ffffff;
}

.mdv-match-single-logo {
    width: 124px;
    height: 124px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
}

.mdv-match-single-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mdv-match-single-center {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.mdv-match-single-score {
    font-size: 64px;
    font-weight: 950;
    line-height: 1;
    color: #ffffff;
    white-space: nowrap;
}

.mdv-match-single-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.mdv-match-single-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 700;
}

.mdv-match-single-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.mdv-match-single-info div,
.mdv-match-panel,
.mdv-match-lineup-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.mdv-match-single-info div {
    display: grid;
    gap: 6px;
    padding: 18px;
}

.mdv-match-single-info strong {
    color: #6b7280;
    font-size: 13px;
}

.mdv-match-single-info span {
    color: #111827;
    font-weight: 800;
}

.mdv-match-tabs {
    margin-top: 0;
}

.mdv-match-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.mdv-match-tab-button {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.mdv-match-tab-button.active {
    border-color: var(--mdv-primary);
    background: var(--mdv-primary);
    color: #ffffff;
}

.mdv-tab-panel {
    display: none;
}

.mdv-tab-panel.active {
    display: block;
}

.mdv-match-panel,
.mdv-match-lineup-card {
    padding: 24px;
}

.mdv-match-panel h2,
.mdv-match-lineup-card h2 {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.2;
    color: #111827;
}

.mdv-match-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.mdv-match-overview-grid div {
    display: grid;
    gap: 6px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.mdv-match-overview-grid strong {
    color: #6b7280;
    font-size: 13px;
}

.mdv-match-overview-grid span {
    color: #111827;
    font-weight: 800;
}

.mdv-match-timeline {
    display: grid;
    gap: 12px;
}

.mdv-match-event {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 14px;
    align-items: stretch;
}

.mdv-match-event-minute {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 900;
}

.mdv-match-event-content {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 8px;
}

.mdv-match-event-content strong {
    color: #111827;
}

.mdv-match-event-content span,
.mdv-match-event-content small {
    color: #6b7280;
}

.mdv-match-event--goal .mdv-match-event-minute {
    background: #16a34a;
}

.mdv-match-event--yellow .mdv-match-event-minute {
    background: #ca8a04;
}

.mdv-match-event--red .mdv-match-event-minute {
    background: #dc2626;
}

.mdv-match-event--sub .mdv-match-event-minute {
    background: #2563eb;
}

.mdv-match-lineup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.mdv-match-lineup-list {
    display: grid;
    gap: 10px;
}

.mdv-match-lineup-player {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #eef0f3;
    border-radius: 8px;
}

.mdv-match-lineup-player span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 900;
}

.mdv-match-lineup-player strong {
    color: #111827;
}

.mdv-match-lineup-player small {
    color: #6b7280;
    font-weight: 700;
}

.mdv-match-empty {
    margin: 0;
    color: #6b7280;
}

@media (max-width: 980px) {
    .mdv-match-single-grid,
    .mdv-match-lineup-grid {
        grid-template-columns: 1fr;
    }

    .mdv-match-single-score {
        font-size: 52px;
    }

    .mdv-match-single-team strong {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .mdv-match-single-page {
        padding: 28px 0;
    }

    .mdv-match-single-container {
        width: min(100% - 24px, 1180px);
    }

    .mdv-match-single-hero,
    .mdv-match-panel,
    .mdv-match-lineup-card {
        padding: 22px;
    }

    .mdv-match-single-logo {
        width: 104px;
        height: 104px;
    }

    .mdv-match-tab-button {
        flex: 1 1 100%;
    }

    .mdv-match-event {
        grid-template-columns: 48px 1fr;
    }

    .mdv-match-lineup-player {
        grid-template-columns: 40px 1fr;
    }

    .mdv-match-lineup-player small {
        grid-column: 2;
    }
}
