.mp-match-page-route {
    width: 100%;
    margin: 0;
    padding: 24px 16px 56px;
    background: var(--mp-page-bg, #f3f4f6);
    color: var(--mp-text, #1f2937);
    direction: rtl;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.mp-match-page-route,
.mp-match-page-route * {
    box-sizing: border-box;
}

.mp-match-page-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.mp-match-page-nav {
    margin: 0 0 16px;
}

.mp-match-page-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--mp-border, #e2e8f0);
    border-radius: 10px;
    background: var(--mp-panel-bg, #fff);
    color: var(--mp-nav-color, #1f2937);
    font: 600 14px/1.5 Tahoma, Arial, sans-serif;
    text-decoration: none;
    transition: filter .18s ease, border-color .18s ease;
}

.mp-match-page-nav a:hover,
.mp-match-page-nav a:focus {
    filter: brightness(.96);
    border-color: var(--mp-accent, #f59e0b);
}

.mp-match-preview-notice {
    margin: 0 0 14px;
    padding: 11px 14px;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    background: #fffbeb;
    color: #78350f;
    font-size: 14px;
    font-weight: 700;
}

.mp-match-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 20px;
    padding: 26px clamp(16px, 4vw, 42px) 22px;
    border: 1px solid var(--mp-border, #e2e8f0);
    border-radius: var(--mp-hero-radius, 20px);
    background-color: var(--mp-hero-bg, #0f172a);
    background-position: center;
    background-size: cover;
    color: var(--mp-score, #fff);
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
}

.mp-match-tournament {
    margin: 0 0 8px;
    color: var(--mp-title, #b3c0d1);
    font-size: var(--mp-font-tournament, 14px);
    font-weight: 700;
}

.mp-match-custom-title {
    margin: 0 0 12px;
    color: var(--mp-team, #fff);
    font-size: var(--mp-font-title, clamp(22px, 4vw, 34px));
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.mp-match-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    margin-bottom: 0;
    padding: 3px 12px;
    border: 1px solid var(--mp-border, #e2e8f0);
    border-radius: 999px;
    background: var(--mp-status-bg, #fef3c7);
    color: var(--mp-status-color, #92400e);
    font-size: var(--mp-font-status, 12px);
    font-weight: 800;
}

.mp-match-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .18);
}

.mp-match-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 4vw, 40px);
}

.mp-match-team {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mp-match-team-logo {
    display: flex;
    width: clamp(66px, 13vw, 108px);
    height: clamp(66px, 13vw, 108px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.mp-match-team-logo img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.mp-match-no-logo {
    font-size: 36px;
}

.mp-match-team h1,
.mp-match-team h2 {
    margin: 0;
    color: var(--mp-team, #fff);
    font-size: var(--mp-font-team, clamp(17px, 3vw, 26px));
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mp-match-center-score {
    display: flex;
    min-width: 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mp-match-score-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 18px);
    color: var(--mp-score, #fff);
    font-size: var(--mp-font-score, clamp(30px, 6vw, 56px));
    font-weight: 900;
    line-height: 1;
    direction: ltr;
}

.mp-match-score-numbers b {
    color: var(--mp-accent, #f59e0b);
    font-size: .72em;
}

.mp-match-vs {
    color: var(--mp-title, #b3c0d1);
    font-size: .56em;
}

.mp-match-date {
    margin-top: 20px;
    color: var(--mp-hero-text, #ffffff);
    font-size: var(--mp-font-tournament, 14px);
    font-weight: 600;
}

.mp-match-panel {
    margin: 0 0 20px;
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid var(--mp-border, #e2e8f0);
    border-radius: var(--mp-panel-radius, 16px);
    background: var(--mp-panel-bg, #fff);
    color: var(--mp-text, #1f2937);
    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.mp-match-panel h2 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mp-border, #e2e8f0);
    color: var(--mp-accent, #f59e0b);
    font-size: var(--mp-font-section, 19px);
    font-weight: 800;
}

.mp-match-information-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 12px;
}

.mp-match-information-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 13px 15px;
    border: 1px solid var(--mp-border, #e2e8f0);
    border-radius: 11px;
    background: var(--mp-event-bg, #fff);
}

.mp-match-information-label {
    color: var(--mp-muted, #64748b);
    font-size: clamp(9px, calc(var(--mp-font-info, 14px) - 2px), 22px);
    font-weight: 700;
}

.mp-match-information-item strong {
    color: var(--mp-text, #1f2937);
    font-size: var(--mp-font-info, 14px);
    overflow-wrap: anywhere;
}

.mp-match-channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mp-match-channel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--mp-border, #e2e8f0);
    border-radius: 999px;
    background: var(--mp-panel-bg, #fff);
    color: var(--mp-text, #1f2937);
    font-size: max(9px, calc(var(--mp-font-info, 14px) - 1px));
    font-weight: 700;
}

.mp-match-channel img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mp-match-channel a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mp-match-commentator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-match-commentator img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.mp-match-embed {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
}

.mp-match-embed iframe {
    display: block;
    max-width: 100% !important;
    border: 0;
}

.mp-match-embed iframe.mp-match-embed-video {
    width: min(100%, 960px) !important;
    min-height: 240px;
    aspect-ratio: 16 / 9;
    height: auto !important;
    background: #000;
}

.mp-match-embed iframe.mp-match-embed-post {
    width: min(100%, 600px) !important;
    min-height: 440px;
    max-height: 75vh;
}

.mp-match-embed blockquote {
    max-width: 100%;
    margin: 0 auto !important;
}

.mp-match-embed a {
    overflow-wrap: anywhere;
}

.mp-match-empty {
    margin: 0;
    padding: 20px;
    border: 1px dashed var(--mp-border, #e2e8f0);
    border-radius: var(--mp-event-radius, 12px);
    color: var(--mp-muted, #64748b);
    text-align: center;
    font-size: var(--mp-font-event, 14px);
}

.mp-match-timeline {
    position: relative;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-match-event {
    position: relative;
    display: grid;
    grid-template-columns: 54px 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--mp-border, #e2e8f0);
    border-radius: var(--mp-event-radius, 12px);
    background: var(--mp-event-bg, #fff);
}

.mp-match-event-minute {
    display: inline-flex;
    width: 54px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--mp-minute-bg, #1f2937);
    color: var(--mp-minute-color, #fff);
    font-size: max(9px, calc(var(--mp-font-event, 14px) - 2px));
    font-weight: 800;
    white-space: nowrap;
    direction: ltr;
}

.mp-match-event-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 50%;
    background: var(--mp-event-icon-bg, #f1f5f9);
    color: var(--mp-accent, #f59e0b);
}

.mp-match-event-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mp-match-event-yellow_card .mp-match-event-icon {
    color: var(--mp-event-icon-yellow_card, #ca8a04);
}

.mp-match-event-red_card .mp-match-event-icon {
    color: var(--mp-event-icon-red_card, #dc2626);
}

.mp-match-event-goal .mp-match-event-icon {
    color: var(--mp-event-icon-goal, var(--mp-accent, #16a34a));
}

.mp-match-event-substitution .mp-match-event-icon {
    color: var(--mp-event-icon-substitution, var(--mp-accent, #2563eb));
}

.mp-match-event-half_start .mp-match-event-icon {
    color: var(--mp-event-icon-half_start, var(--mp-accent, #16a34a));
}

.mp-match-event-half_end .mp-match-event-icon {
    color: var(--mp-event-icon-half_end, var(--mp-muted, #64748b));
}

.mp-match-event-match_start .mp-match-event-icon {
    color: var(--mp-event-icon-match_start, var(--mp-accent, #2563eb));
}

.mp-match-event-match_end .mp-match-event-icon {
    color: var(--mp-event-icon-match_end, var(--mp-accent, #9333ea));
}

.mp-match-event-var .mp-match-event-icon {
    color: var(--mp-event-icon-var, var(--mp-accent, #7c3aed));
}

.mp-match-event-penalty .mp-match-event-icon {
    color: var(--mp-event-icon-penalty, var(--mp-accent, #16a34a));
}

.mp-match-event-other .mp-match-event-icon {
    color: var(--mp-event-icon-other, var(--mp-muted, #64748b));
}

.mp-match-event-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    color: var(--mp-text, #1f2937);
    overflow-wrap: anywhere;
}

.mp-match-event-copy strong {
    color: var(--mp-heading, #334155);
    font-size: var(--mp-font-event, 14px);
    line-height: 1.45;
}

.mp-match-event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    color: var(--mp-muted, #64748b);
    font-size: max(9px, calc(var(--mp-font-event, 14px) - 1px));
}

.mp-match-event-team,
.mp-match-event-extra {
    display: inline-flex;
    align-items: center;
}

.mp-match-event-team-logo {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.mp-match-event-copy p {
    margin: 2px 0 0;
    color: var(--mp-muted, #64748b);
    font-size: max(9px, calc(var(--mp-font-event, 14px) - 1px));
    line-height: 1.55;
}

.mp-match-related {
    background: var(--mp-related-bg, #f3f4f6);
    border: 1px solid var(--mp-related-border, #e2e8f0);
}

.mp-match-related > h2 {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mp-related-border, #e2e8f0);
    color: var(--mp-related-heading, #1f2937);
    font-size: clamp(18px, 2.5vw, 23px);
    font-weight: 900;
}

.mp-match-related-grid {
    display: grid;
    grid-template-columns: repeat(var(--mp-related-columns, 3), minmax(0, 1fr));
    gap: 14px;
}

.mp-match-related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mp-related-border, #e2e8f0);
    border-radius: var(--mp-related-radius, 12px);
    background: var(--mp-related-card-bg, #fff);
    transition: transform .18s ease, box-shadow .18s ease;
}

.mp-match-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .10);
}

.mp-match-related-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.mp-match-related-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(148, 163, 184, .14);
}

.mp-match-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-match-related-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    padding: 13px 14px;
}

.mp-match-related-date {
    color: var(--mp-related-text, #64748b);
    font-size: 12px;
}

.mp-match-related-copy h3 {
    margin: 0;
    color: var(--mp-related-title, #0f172a);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

.mp-match-related-link:hover .mp-match-related-copy h3 {
    color: var(--mp-related-link, #0f766e);
}

.mp-match-related-copy p {
    margin: 0;
    color: var(--mp-related-text, #64748b);
    font-size: 13px;
    line-height: 1.65;
}

.mp-match-related-list .mp-match-related-grid {
    grid-template-columns: 1fr;
}

.mp-match-related-list .mp-match-related-link {
    display: grid;
    grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
    align-items: stretch;
}

.mp-match-related-list .mp-match-related-card-no-image .mp-match-related-link {
    grid-template-columns: 1fr;
}

.mp-match-related-list .mp-match-related-image {
    height: 100%;
    min-height: 130px;
    aspect-ratio: auto;
}

.mp-match-related-list .mp-match-related-copy {
    justify-content: center;
    padding: 16px 18px;
}

.mp-match-page-compact .mp-match-hero {
    padding-top: 17px;
    padding-bottom: 16px;
}

.mp-match-page-compact .mp-match-team-logo {
    width: clamp(54px, 10vw, 86px);
    height: clamp(54px, 10vw, 86px);
}

.mp-match-page-compact .mp-match-panel {
    padding: clamp(13px, 2.5vw, 21px);
}

.mp-match-page-compact .mp-match-event {
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (max-width: 600px) {
    .mp-match-page-route {
        padding: 14px 10px 34px;
    }

    .mp-match-hero {
        padding: 20px 12px 18px;
        border-radius: var(--mp-hero-radius, 14px);
    }

    .mp-match-scoreboard {
        gap: 8px;
    }

    .mp-match-team {
        gap: 7px;
    }

    .mp-match-date {
        font-size: max(10px, calc(var(--mp-font-tournament, 14px) * .86));
    }

    .mp-match-custom-title {
        font-size: clamp(18px, calc(var(--mp-font-title, 34px) * .65), 48px);
    }

    .mp-match-team h1,
    .mp-match-team h2 {
        font-size: clamp(12px, calc(var(--mp-font-team, 26px) * .66), 40px);
    }

    .mp-match-score-numbers {
        font-size: clamp(24px, calc(var(--mp-font-score, 56px) * .54), 56px);
    }

    .mp-match-event {
        grid-template-columns: 46px 36px minmax(0, 1fr);
        gap: 8px;
        padding: 10px 9px;
    }

    .mp-match-event-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .mp-match-event-icon svg {
        width: 19px;
        height: 19px;
    }

    .mp-match-related-grid {
        grid-template-columns: 1fr;
    }

    .mp-match-related-list .mp-match-related-link {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .mp-match-related-list .mp-match-related-image {
        min-height: 110px;
    }

    .mp-match-related-copy {
        padding: 11px 12px;
    }

    .mp-match-related-copy h3 {
        font-size: 14px;
    }
}