/* ================================================
   MATCH DETAIL PAGE - REDESIGNED
   ================================================ */

.dashboard-header-match {
    background:
        linear-gradient(135deg, rgba(10, 22, 40, 0.72) 0%, rgba(15, 39, 68, 0.62) 55%, rgba(10, 22, 40, 0.78) 100%),
        url("../images/Stadion.png"),
        linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 45%, var(--blue-primary) 100%);
    background-size: cover, cover, cover;
    background-position: center, 26% 54%, center;
    background-repeat: no-repeat;
    padding: 72px 50px 96px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
    color: white;
    isolation: isolate;
}

.dashboard-header-match::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 36%),
        linear-gradient(180deg, rgba(10, 22, 40, 0.28) 0%, rgba(10, 22, 40, 0.46) 100%),
        linear-gradient(110deg, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0.46) 50%, rgba(255, 255, 255, 0) 67%);
    background-size: auto, auto, 220% 100%;
    background-position: center, center, -160% 0;
    opacity: 1;
    pointer-events: none;
    animation: barelangReveal 4.4s ease-in-out infinite alternate, barelangShimmer 6.2s linear infinite;
}

.dashboard-header-match::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: transparent;
}

.dashboard-header-match .dashboard-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-header-match .header-subtitle {
    color: rgba(255, 255, 255, 0.93);
    font-size: 14px;
    max-width: 560px;
    line-height: 1.6;
    text-shadow: 0 3px 14px rgba(10, 22, 40, 0.5);
}

.dashboard-header-match .btn-primary,
.dashboard-header-match .btn-secondary {
    background: rgba(10, 22, 40, 0.38);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
    backdrop-filter: blur(2px);
}

.dashboard-header-match .btn-primary:hover,
.dashboard-header-match .btn-secondary:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.header-meta {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.meta-chip i {
    color: var(--gold-light);
}

.match-summary-card {
    position: relative;
    overflow: hidden;
}

.match-summary-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 60%);
    pointer-events: none;
}

.match-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.match-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
    color: var(--navy);
}

.event-tag {
    background: var(--white-blue);
    color: var(--blue-primary);
    border-color: rgba(59, 130, 246, 0.2);
}

.code-tag {
    background: var(--white);
}

.status-tag {
    border-color: transparent;
}

.match-teams-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.match-team-logo {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.match-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--gray-100);
    color: var(--gray-400);
    border: 1px dashed var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-team-logo .team-logo-placeholder {
    font-size: 34px;
}

.match-team-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-team-uniform {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    max-width: 180px;
    line-height: 1.35;
}

.match-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.score-pill {
    background: var(--navy-dark);
    color: white;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(15, 39, 68, 0.2);
}

.final-score-display {
    display: grid;
    grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
    align-items: start;
    column-gap: 64px;
    min-width: 430px;
}

.final-score-side {
    display: flex;
    position: relative;
    min-height: 92px;
    min-width: 92px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.final-score-main {
    color: var(--navy-dark);
    font-size: 76px;
    font-weight: 900;
    line-height: 0.92;
    font-variant-numeric: tabular-nums;
}

.final-score-vs {
    align-self: center;
    color: var(--navy-dark);
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
}

.final-score-penalty {
    position: absolute;
    top: 54px;
    color: #d97706;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.final-score-side:first-child .final-score-penalty {
    right: 8px;
}

.final-score-side:last-child .final-score-penalty {
    left: 8px;
}

.vs-pill {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--red);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.score-subtext {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-500);
}

.match-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.match-meta-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
}

.match-meta-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
}

.match-meta-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
}

.match-meta-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: var(--gray-100);
    color: var(--navy);
    border: 1px solid var(--gray-200);
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
    font-weight: 800;
}

/* Specific enhancement for meta-chips in dark headers to ensure high contrast */
.header-meta .status-completed {
    background: #10b981;
    color: white;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.header-meta .status-completed i {
    color: white;
}

.status-scheduled {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.35);
}

.status-ongoing {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.35);
}

.status-coming-soon,
.status-open,
.status-accepted {
    background: rgba(14, 165, 233, 0.15);
    color: #0369a1;
    border-color: rgba(14, 165, 233, 0.35);
}

.status-postponed,
.status-cancelled,
.status-abandoned,
.status-rejected,
.status-expired {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.35);
}

.status-tba {
    background: rgba(148, 163, 184, 0.2);
    color: var(--gray-600);
    border-color: var(--gray-200);
}

/* Ensure all status chips in the dark header are always readable */
.header-meta .status-scheduled,
.header-meta .status-ongoing,
.header-meta .status-coming-soon,
.header-meta .status-open,
.header-meta .status-accepted,
.header-meta .status-postponed,
.header-meta .status-cancelled,
.header-meta .status-abandoned,
.header-meta .status-rejected,
.header-meta .status-expired,
.header-meta .status-tba {
    color: #fff;
    border-color: transparent;
}

.header-meta .status-scheduled { background: #2563eb; }
.header-meta .status-ongoing { background: #d97706; }
.header-meta .status-coming-soon,
.header-meta .status-open,
.header-meta .status-accepted { background: #0284c7; }
.header-meta .status-postponed,
.header-meta .status-cancelled,
.header-meta .status-abandoned,
.header-meta .status-rejected,
.header-meta .status-expired { background: #dc2626; }
.header-meta .status-tba { background: #475569; }

.header-meta .status-scheduled i,
.header-meta .status-ongoing i,
.header-meta .status-coming-soon i,
.header-meta .status-open i,
.header-meta .status-accepted i,
.header-meta .status-postponed i,
.header-meta .status-cancelled i,
.header-meta .status-abandoned i,
.header-meta .status-rejected i,
.header-meta .status-expired i,
.header-meta .status-tba i {
    color: #fff;
}

.lineup-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: var(--white-blue);
    color: var(--navy);
    border: 1px solid var(--gray-200);
}

.lineups-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 12px;
}

.lineup-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.lineup-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.lineup-team {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lineup-team-info {
    min-width: 0;
}

.lineup-team-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.lineup-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lineup-team-logo .team-logo-placeholder {
    font-size: 20px;
}

.lineup-team-name {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lineup-count {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 600;
}

.team-side-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--white-blue);
    color: var(--blue-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.team-side-badge.away {
    background: var(--gray-100);
    color: var(--navy);
    border-color: var(--gray-200);
}

.lineup-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lineup-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.lineup-player:hover {
    background: var(--white-blue);
    border-color: var(--blue-primary);
    transform: translateX(2px);
}

.lineup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.lineup-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 16px;
}

.lineup-info {
    flex: 1;
    min-width: 0;
}

.lineup-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lineup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: var(--gray-500);
    align-items: center;
    margin-top: 2px;
}

.lineup-number {
    font-weight: 800;
    color: var(--blue-primary);
}

.lineup-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

@media (min-width: 768px) {
    .dashboard-header-match h1 {
        font-size: 38px;
        letter-spacing: 2px;
    }

    .dashboard-header-match {
        padding: 60px 30px 80px;
        background-size: cover, cover, cover;
        background-position: center, 28% 56%, center;
    }

    .dashboard-header-match .dashboard-header-inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

@media (min-width: 992px) {
    .dashboard-header-match {
        padding: 72px 50px 96px;
        background-size: cover, cover, cover;
        background-position: center, 26% 54%, center;
    }
}

@media (max-width: 992px) {
    .dashboard-header-match {
        padding: 44px 16px 64px;
        min-height: 360px;
        background-size: cover, 146%, cover;
        background-position: center, 34% 62%, center;
    }
}

@media (min-width: 992px) {
    .lineups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .match-teams-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .match-team-logo {
        width: 84px;
        height: 84px;
    }

    .vs-pill {
        width: 60px;
        height: 60px;
    }

    .score-pill {
        font-size: 22px;
    }

    .final-score-display {
        grid-template-columns: minmax(58px, 1fr) auto minmax(58px, 1fr);
        min-width: 260px;
        column-gap: 30px;
    }

    .final-score-side {
        min-height: 68px;
        min-width: 58px;
    }

    .final-score-main {
        font-size: 52px;
    }

    .final-score-vs,
    .final-score-penalty {
        font-size: 26px;
    }

    .final-score-penalty {
        top: 37px;
    }

    .final-score-side:first-child .final-score-penalty {
        right: 5px;
    }

    .final-score-side:last-child .final-score-penalty {
        left: 5px;
    }

    .lineup-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .dashboard-header-match {
        padding: 44px 16px 64px;
        min-height: 360px;
        background-size: cover, 146%, cover;
        background-position: center, 34% 62%, center;
    }

    .match-team-name {
        max-width: 120px;
    }

    .match-team-uniform {
        max-width: 140px;
        font-size: 11px;
    }
}

/* One-field lineup and match header finishing pass */
.dashboard-header-match .dashboard-header-inner > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.dashboard-header-match h1 {
    margin: 0 !important;
    line-height: 1.04 !important;
}

.dashboard-header-match .header-subtitle {
    position: relative;
    z-index: 2;
    margin: 0 !important;
}

#match-staff-lineups-section .lineup-tabs,
#match-staff-lineups-section #staff-half-2 {
    display: none !important;
}

.match-score-block {
    gap: 8px;
}

.match-score-block .match-full-time-label {
    margin: 0 auto;
}

.combined-lineup-card {
    overflow: hidden;
    padding: 18px !important;
}

.combined-futsal-pitch {
    min-height: 820px;
}

.combined-futsal-pitch .pitch-player-token {
    width: 82px;
    gap: 1px;
}

.combined-futsal-pitch .pitch-player-photo-wrap,
.combined-futsal-pitch .pitch-player-photo-wrap img {
    width: 32px;
    height: 32px;
}

.combined-futsal-pitch .pitch-player-rating {
    min-width: 26px;
    height: 17px;
    padding: 0 4px;
    font-size: 0.58rem;
    line-height: 13px;
}

.combined-futsal-pitch .pitch-player-name,
.combined-futsal-pitch .pitch-player-meta {
    display: block;
    width: max-content;
    max-width: 82px;
    overflow: visible;
    padding: 2px 5px;
    border-radius: 6px;
    text-overflow: clip;
    text-shadow: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

.combined-futsal-pitch .pitch-player-name {
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 0.43rem;
    line-height: 1.05;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16);
}

.combined-futsal-pitch .pitch-player-meta {
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 0.39rem;
    line-height: 1.05;
}

.combined-futsal-pitch .pitch-player-photo-wrap img,
.combined-bench-panel .bench-player img {
    object-fit: contain;
    padding: 2px;
    background: rgba(255, 255, 255, 0.94);
}

.combined-bench-grid {
    margin-top: 16px;
}

.combined-bench-panel {
    margin-top: 0;
}

.combined-bench-panel .bench-list {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 680px) {
    .combined-lineup-card { padding: 10px !important; }
    .combined-futsal-pitch { min-height: 800px; }
    .combined-futsal-pitch .pitch-player-token { width: 68px; }
    .combined-futsal-pitch .pitch-player-photo-wrap,
    .combined-futsal-pitch .pitch-player-photo-wrap img { width: 24px; height: 24px; }
    .combined-futsal-pitch .pitch-player-name,
    .combined-futsal-pitch .pitch-player-meta { max-width: 68px; font-size: 0.36rem; }
}

/* Match-event recap parity with the home-page detail modal */
#matchEventsLiveList.pro-goals-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    position: relative !important;
    width: 100% !important;
    max-width: 760px !important;
    margin-inline: auto !important;
    padding: 14px 10px !important;
}

#matchEventsLiveList.pro-goals-container::before {
    display: none !important;
}

#matchEventsLiveList .goals-half-section {
    position: relative;
    min-width: 0;
}

#matchEventsLiveList .goals-half-section::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 39px;
    bottom: 2px;
    left: 50%;
    width: 1px;
    background: #cbd5e1;
    transform: translateX(-50%);
    pointer-events: none;
}

#matchEventsLiveList .goals-half-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-height: 28px !important;
    margin: 0 auto 7px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: #fff7ed !important;
    color: #ea580c !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

#matchEventsLiveList .event-category {
    position: relative;
    z-index: 1;
    min-width: 0;
}

#matchEventsLiveList .event-category + .event-category {
    margin-top: 8px;
}

#matchEventsLiveList .event-category-title {
    position: relative;
    z-index: 2;
    width: fit-content;
    margin: 0 auto 5px;
    padding: 3px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.65px;
    text-align: center;
    text-transform: uppercase;
}

#matchEventsLiveList .event-category .goal-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

#matchEventsLiveList .goal-side {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

#matchEventsLiveList .goal-side.active {
    opacity: 1 !important;
    visibility: visible !important;
}

#matchEventsLiveList .goal-details {
    box-sizing: border-box !important;
    min-width: 0 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

#matchEventsLiveList .team-1-side .goal-details {
    border-left: 3px solid #fb923c !important;
}

#matchEventsLiveList .team-2-side .goal-details {
    border-left: 3px solid #3b82f6 !important;
}

#matchEventsLiveList .event-details {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: 100% !important;
    min-height: 34px !important;
    padding: 6px 9px !important;
    overflow: hidden !important;
}

#matchEventsLiveList .event-details .goal-player-name,
#matchEventsLiveList .event-details .goal-player-profile-link {
    display: block !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    color: var(--vt-ink) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#matchEventsLiveList .goal-player-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #60a5fa, #2563eb) !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
}

#matchEventsLiveList .goal-time-inline,
#matchEventsLiveList .switch-clock {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

#matchEventsLiveList .switch-details {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 3px 5px !important;
    width: 100% !important;
    padding: 7px 9px !important;
    overflow: visible !important;
}

#matchEventsLiveList .switch-player {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
    white-space: normal !important;
}

#matchEventsLiveList .switch-out {
    grid-column: 1;
    grid-row: 1;
}

#matchEventsLiveList .switch-in {
    grid-column: 1;
    grid-row: 2;
}

#matchEventsLiveList .switch-details .goal-player-name,
#matchEventsLiveList .switch-details .goal-player-profile-link {
    display: block !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
    color: var(--vt-ink) !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
}

#matchEventsLiveList .switch-icon {
    display: none !important;
}

#matchEventsLiveList .switch-clock {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
}

#matchEventsLiveList .switch-number {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
}

@media (max-width: 576px) {
    #matchEventsLiveList.pro-goals-container {
        padding-inline: 3px !important;
    }

    #matchEventsLiveList .goal-side {
        padding-inline: 4px !important;
    }

    #matchEventsLiveList .event-details {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 2px !important;
        min-height: 28px !important;
        padding: 4px 5px !important;
    }

    #matchEventsLiveList .event-details .goal-player-name,
    #matchEventsLiveList .event-details .goal-player-profile-link {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
        font-size: 8px !important;
        line-height: 1.1 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    #matchEventsLiveList .event-details .goal-icon,
    #matchEventsLiveList .event-details .card-icon {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px !important;
        font-size: 8px !important;
        flex: 0 0 15px !important;
    }

    #matchEventsLiveList .event-details .goal-player-number {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        font-size: 7px !important;
        flex: 0 0 16px !important;
    }

    #matchEventsLiveList .event-details .goal-time-inline {
        height: 16px !important;
        padding-inline: 4px !important;
        font-size: 7px !important;
        flex: 0 0 auto !important;
    }

    #matchEventsLiveList .switch-details {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        gap: 2px !important;
        padding: 5px 6px !important;
        border-radius: 18px !important;
    }

    #matchEventsLiveList .switch-player {
        gap: 2px !important;
        min-height: 16px !important;
    }

    #matchEventsLiveList .switch-tag {
        min-width: 24px !important;
        height: 16px !important;
        padding-inline: 4px !important;
        font-size: 7px !important;
    }

    #matchEventsLiveList .switch-details .goal-player-name,
    #matchEventsLiveList .switch-details .goal-player-profile-link {
        overflow: hidden !important;
        font-size: 8px !important;
        line-height: 1.1 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    #matchEventsLiveList .switch-clock {
        grid-column: 1;
        grid-row: 3;
        justify-self: center;
        height: 16px !important;
        padding-inline: 4px !important;
        font-size: 7px !important;
    }

    #matchEventsLiveList .switch-number {
        display: none !important;
    }
}

@media (max-width: 350px) {
    #matchEventsLiveList .event-details .goal-player-name,
    #matchEventsLiveList .event-details .goal-player-profile-link,
    #matchEventsLiveList .switch-details .goal-player-name,
    #matchEventsLiveList .switch-details .goal-player-profile-link {
        font-size: 7.5px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-header-match {
        animation: none !important;
        background-size: cover, cover, cover;
        background-position: center, 26% 54%, center;
    }

    .dashboard-header-match::before {
        animation: none !important;
        opacity: 0.1;
    }
}

@keyframes barelangReveal {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.10;
    }
}

@keyframes barelangShimmer {
    0% {
        background-position: center, center, -130% 0;
    }

    100% {
        background-position: center, center, 145% 0;
    }
}

/* ================================================
   MATCH DETAIL PAGE HOME-ALIGNED OVERRIDE
   ================================================ */

:root {
    --vt-red: #ff1f2e;
    --vt-orange: #ff8a00;
    --vt-ink: #111827;
    --vt-muted: #667085;
    --vt-line: #e5e7eb;
    --vt-soft: #f8fafc;
    --vt-card: #ffffff;
    --vt-shadow-soft: 0 16px 36px rgba(15, 23, 42, 0.08);
    --vt-shadow-hover: 0 24px 52px rgba(255, 138, 0, 0.16);
}

.dashboard-wrapper,
.main-content-dashboard {
    background:
        radial-gradient(circle at top left, rgba(255, 138, 0, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%) !important;
}

.main-content-dashboard {
    align-items: stretch !important;
    padding: 24px 28px 34px !important;
}

.dashboard-header-match {
    min-height: 320px !important;
    margin: 0 0 20px !important;
    padding: 50px 54px 46px !important;
    border-radius: 10px !important;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.58) 44%, rgba(15, 23, 42, 0.22) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.3) 100%),
        url("../images/Stadion.png") center/cover no-repeat !important;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18) !important;
}

.dashboard-header-match::before {
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 138, 0, 0.32), transparent 30%),
        linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.22) 50%, transparent 66%) !important;
    background-size: auto, 220% 100% !important;
    opacity: 0.82 !important;
}

.dashboard-header-match::after {
    height: 0 !important;
    background: transparent !important;
}

.dashboard-header-match .dashboard-header-inner {
    gap: 16px !important;
    max-width: none !important;
}

.dashboard-header-match .dashboard-header-inner > div:first-child {
    max-width: min(720px, 62%) !important;
}

.dashboard-header-match .header-eyebrow {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 17px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.dashboard-header-match h1 {
    color: #ffffff !important;
    font-size: clamp(54px, 5.6vw, 88px) !important;
    line-height: 0.94 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: 0 18px 42px rgba(15, 23, 42, 0.42) !important;
}

.dashboard-header-match .header-subtitle {
    max-width: 620px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
}

.dashboard-header-match .btn-primary,
.dashboard-header-match .btn-secondary {
    min-height: 44px !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.34) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.dashboard-header-match .btn-primary:hover,
.dashboard-header-match .btn-secondary:hover {
    background: linear-gradient(135deg, var(--vt-orange), var(--vt-red)) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 16px 32px rgba(255, 80, 0, 0.32) !important;
}

.header-meta {
    margin-top: 12px !important;
}

.header-meta .meta-chip {
    background: rgba(15, 23, 42, 0.36) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.header-meta .meta-chip i {
    color: #ffd7a6 !important;
}

.dashboard-body {
    width: 100% !important;
    max-width: none !important;
    padding: 0 0 34px !important;
}

.section-container,
.match-summary-card,
.lineup-card,
.match-meta-card,
.lineup-player,
.live-match-timer-card,
.match-suspend-wrap,
.empty-state {
    border-radius: 8px !important;
    border: 1px solid var(--vt-line) !important;
    background: var(--vt-card) !important;
    box-shadow: var(--vt-shadow-soft) !important;
}

.section-container.section-elevated {
    margin-top: 0 !important;
}

.section-container:hover,
.lineup-card:hover,
.match-meta-card:hover,
.lineup-player:hover {
    border-color: #ffcf9f !important;
    box-shadow: var(--vt-shadow-hover) !important;
    transform: translateY(-4px) !important;
}

.match-summary-card::before {
    background:
        radial-gradient(circle at top right, rgba(255, 138, 0, 0.12), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)) !important;
}

.match-tag,
.meta-chip,
.legend-pill,
.team-side-badge,
.lineup-badge,
.card-badge,
.penalty-result-badge,
.suspend-pill {
    border-radius: 999px !important;
    background: #fff3e7 !important;
    border: 1px solid #ffd8b0 !important;
    color: #d64b12 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.event-tag,
.code-tag {
    background: #fff3e7 !important;
    color: #d64b12 !important;
    border-color: #ffd8b0 !important;
}

.status-tag,
.status-chip {
    border-color: transparent !important;
}

.status-chip.status-completed,
.status-tag.status-completed {
    background: linear-gradient(135deg, #111827, #243044) !important;
    color: #ffffff !important;
}

.status-chip.status-ongoing,
.status-tag.status-ongoing,
.status-chip.status-live,
.status-tag.status-live {
    background: linear-gradient(135deg, var(--vt-orange), var(--vt-red)) !important;
    color: #ffffff !important;
}

.match-teams-grid {
    gap: 24px !important;
}

.match-team-logo,
.lineup-team-logo,
.lineup-avatar,
.team-logo-placeholder {
    border-radius: 8px !important;
    border-color: #ffe1bf !important;
    background: #fff7ef !important;
}

.match-team-logo,
.lineup-team-logo {
    box-shadow: 0 12px 28px rgba(255, 138, 0, 0.12) !important;
}

.match-team-name,
.lineup-team-name,
.lineup-name,
.match-meta-value,
.goals-half-title {
    color: var(--vt-ink) !important;
    letter-spacing: 0 !important;
}

.match-team-uniform,
.score-subtext,
.lineup-count,
.lineup-meta,
.match-meta-label,
.live-match-timer-note,
.live-match-timer-label {
    color: var(--vt-muted) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.score-pill {
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--vt-orange), var(--vt-red)) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(255, 80, 0, 0.26) !important;
}

.vs-pill {
    border-radius: 999px !important;
    background: #fff7ef !important;
    color: var(--vt-red) !important;
    border-color: #ffd8b0 !important;
    box-shadow: none !important;
}

.match-meta-card {
    padding: 18px !important;
}

.match-meta-icon {
    border-radius: 8px !important;
    background: #fff7ef !important;
    color: var(--vt-red) !important;
    border: 1px solid #ffd8b0 !important;
}

.lineup-tabs {
    background: #f8fafc !important;
    border: 1px solid var(--vt-line) !important;
    border-radius: 8px !important;
    padding: 6px !important;
}

.lineup-tab-btn {
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--vt-ink) !important;
    letter-spacing: 0 !important;
}

.lineup-tab-btn:hover {
    background: #fff7ef !important;
    border-color: #ffd8b0 !important;
    color: var(--vt-red) !important;
}

.lineup-tab-btn.active {
    background: linear-gradient(135deg, var(--vt-orange), var(--vt-red)) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 12px 26px rgba(255, 80, 0, 0.22) !important;
}

.lineup-card-header {
    border-bottom-color: var(--vt-line) !important;
}

.lineup-player:hover {
    background: #fff7ef !important;
}

.lineup-avatar {
    color: var(--vt-red) !important;
}

.lineup-number {
    background: linear-gradient(135deg, var(--vt-orange), var(--vt-red)) !important;
    color: #ffffff !important;
}

.live-match-timer-card {
    background:
        linear-gradient(135deg, rgba(255, 138, 0, 0.1), rgba(255, 31, 46, 0.08)),
        #ffffff !important;
}

.live-match-timer-half,
.live-match-timer-value {
    color: var(--vt-red) !important;
}

.match-video-links-row {
    gap: 10px !important;
}

.match-video-link {
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--vt-orange), var(--vt-red)) !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 12px 24px rgba(255, 80, 0, 0.24) !important;
}

.match-video-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 34px rgba(255, 80, 0, 0.3) !important;
}

.pro-goals-container {
    border-radius: 8px !important;
    border: 1px solid var(--vt-line) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.pro-goals-container::before {
    background: linear-gradient(180deg, rgba(255, 138, 0, 0.18), rgba(255, 31, 46, 0.18)) !important;
}

.pro-goals-container .goal-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: start !important;
    border-radius: 8px !important;
    border: 1px solid var(--vt-line) !important;
    background: #ffffff !important;
}

.pro-goals-container .goal-time-pill {
    display: none !important;
}

.pro-goals-container .goal-player-name,
.pro-goals-container .goal-player-number,
.pro-goals-container .goal-icon {
    color: var(--vt-ink) !important;
}

.pro-goals-container .goal-player-profile-link {
    cursor: pointer;
    text-decoration: none;
}

.pro-goals-container .goal-player-profile-link:hover,
.pro-goals-container .goal-player-profile-link:focus-visible {
    color: var(--vt-red) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.match-suspend-table {
    border-radius: 8px !important;
    overflow: hidden !important;
}

.match-suspend-table th {
    background: linear-gradient(135deg, #111827, #243044) !important;
    color: #ffffff !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.match-suspend-table td {
    color: var(--vt-ink) !important;
    border-bottom-color: var(--vt-line) !important;
}

.match-suspend-table tbody tr:hover {
    background: #fff7ef !important;
    box-shadow: inset 4px 0 0 var(--vt-orange) !important;
}

.card-badge.yellow {
    background: #fff7d6 !important;
    color: #9a5b00 !important;
    border-color: #ffe08a !important;
}

.card-badge.red,
.suspend-pill.active {
    background: #ffe7e7 !important;
    color: #c01824 !important;
    border-color: #ffc2c7 !important;
}

.card-badge.green,
.suspend-pill.done {
    background: #e9f9ee !important;
    color: #16803a !important;
    border-color: #bdecc9 !important;
}

.empty-state {
    padding: 42px 28px !important;
}

.empty-state .empty-icon {
    background: #fff3e7 !important;
    color: var(--vt-red) !important;
    border-radius: 8px !important;
}

@media (max-width: 992px) {
    .main-content-dashboard {
        padding: 18px 18px 28px !important;
    }

    .dashboard-header-match {
        padding: 42px 34px !important;
    }

    .dashboard-header-match .dashboard-header-inner > div:first-child {
        max-width: 100% !important;
    }

    .dashboard-header-match h1 {
        font-size: clamp(44px, 9vw, 64px) !important;
    }
}

@media (max-width: 768px) {
    .main-content-dashboard {
        padding: 14px 12px 24px !important;
    }

    .dashboard-header-match {
        min-height: auto !important;
        padding: 34px 22px !important;
        border-radius: 8px !important;
    }

    .dashboard-header-match .header-subtitle {
        font-size: 15px !important;
    }

    .match-teams-grid {
        grid-template-columns: 1fr !important;
    }

    .vs-pill {
        width: 52px !important;
        height: 52px !important;
    }
}

@media (max-width: 480px) {
    .dashboard-header-match {
        padding: 30px 18px !important;
        background-position: center !important;
    }

    .dashboard-header-match h1 {
        font-size: 40px !important;
    }

    .match-meta-grid,
    .lineups-grid {
        grid-template-columns: 1fr !important;
    }

    .lineup-tabs {
        width: 100% !important;
    }

    .lineup-tab-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
}

/* Match detail navigation and statistic comparison */
.match-section-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 8px;
    border: 1px solid rgba(234, 88, 12, 0.14);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,247,237,0.92));
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
}

.match-section-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 12px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.match-section-tabs a:hover,
.match-section-tabs a:focus-visible {
    transform: translateY(-2px);
    color: #fff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.20);
}

.match-statistics-section { scroll-margin-top: 24px; }

.match-statistics-card {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 22px;
    border: 1px solid rgba(251, 146, 60, 0.20);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0 0, rgba(251, 146, 60, 0.16), transparent 30%),
        radial-gradient(circle at 100% 100%, rgba(220, 38, 38, 0.10), transparent 32%),
        linear-gradient(145deg, #fff 0%, #fff7ed 100%);
    box-shadow: 0 18px 45px rgba(124, 45, 18, 0.10);
}

.match-stat-team-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 0 8px;
    color: #0f172a;
    font-weight: 900;
    text-align: center;
}

.match-stat-team-head small {
    color: #ea580c;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
}

.match-stat-list { display: grid; gap: 9px; }

.match-stat-row {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(55px, 1fr) minmax(180px, 1.5fr) minmax(55px, 1fr);
    align-items: center;
    min-height: 49px;
    overflow: hidden;
    border-radius: 13px;
    background: #334155;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.10);
}

.match-stat-fill { position: absolute; inset-block: 0; z-index: -1; }
.match-stat-fill.team-one { left: 0; width: var(--team-one-width); background: linear-gradient(90deg, #f97316, #dc2626); }
.match-stat-fill.team-two { right: 0; width: calc(100% - var(--team-one-width)); background: linear-gradient(90deg, #475569, #1e293b); }

.match-stat-value,
.match-stat-label {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0,0,0,0.34);
}

.match-stat-value { padding: 0 14px; font-size: 1rem; }
.match-stat-value.team-two-value { text-align: right; }
.match-stat-label { text-align: center; font-size: 0.84rem; }

@media (max-width: 600px) {
    .match-section-tabs { justify-content: flex-start; overflow-x: auto; border-radius: 14px; }
    .match-section-tabs a { flex: 0 0 auto; padding: 9px 13px; white-space: nowrap; }
    .match-statistics-card { padding: 14px 9px; border-radius: 16px; }
    .match-stat-team-head { gap: 7px; padding: 0 4px; font-size: 0.72rem; }
    .match-stat-team-head small { font-size: 0.52rem; }
    .match-stat-row { grid-template-columns: 50px minmax(125px, 1fr) 50px; min-height: 44px; border-radius: 10px; }
    .match-stat-value { padding: 0 8px; font-size: 0.86rem; }
    .match-stat-label { font-size: 0.69rem; }
}

/* Keep the large match title and subtitle on separate, readable lines. */
.dashboard-header-match .dashboard-header-inner > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
}

.dashboard-header-match h1 {
    margin: 0 !important;
    line-height: 1.04 !important;
}

.dashboard-header-match .header-subtitle {
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
}
