/**
 * ============================================================================
 * UI/UX PRO MAX: BROADCAST MATCH CENTER MASTERPIECE (VERSION 5.0)
 * Modern Sports Broadcast Design for Desktop & Mobile
 * ============================================================================
 */

:root {
    --match-primary: #0284c7;
    --match-primary-dark: #0369a1;
    --match-accent: #38bdf8;
    --match-bg: #f1f6fb;
    --match-card-bg: #ffffff;
    --match-text: #0f172a;
    --match-muted: #475569;
    --match-border: rgba(2, 132, 199, 0.14);
    --match-border-strong: #bae6fd;
}

body.match-page-bright-pro {
    background-color: var(--match-bg) !important;
    color: var(--match-text) !important;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ──────────────────────────────────────────────────────────────────────────
   1. HERO BROADCAST SCOREBOARD
   ────────────────────────────────────────────────────────────────────────── */
.match-hero-pro {
    position: relative;
    padding: clamp(32px, 4.5vw, 56px) 0 clamp(36px, 5.5vw, 64px);
    background: radial-gradient(ellipse 65% 60% at 15% 25%, rgba(var(--home-rgb, 37, 99, 235), 0.14) 0%, transparent 60%),
                radial-gradient(ellipse 65% 60% at 85% 25%, rgba(var(--away-rgb, 2, 132, 199), 0.14) 0%, transparent 60%),
                radial-gradient(120% 100% at 50% 0%, #e0f2fe 0%, #ebf5ff 40%, #f1f6fb 100%) !important;
    border-bottom: 1px solid rgba(2, 132, 199, 0.12);
    overflow: hidden;
}

.hero-stadium-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
}

.hero-turf-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(2, 132, 199, 0.08) 0.85px, transparent 0.85px);
    background-size: 22px 22px;
    opacity: 0.8;
}

.hero-inner-container {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Topline & Navigation Context */
.hero-broadcast-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.topline-crumb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #0369a1;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(186, 230, 253, 0.8);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.04);
    transition: all 0.2s ease;
}

.topline-crumb-link:hover {
    background: #ffffff;
    color: #0284c7;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.topline-meta-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-pill.status-scheduled {
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    color: #0284c7;
}

.status-pill.status-live {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    animation: livePillPulse 2s infinite ease-in-out;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    animation: liveDotPulse 1.4s infinite ease-in-out;
}

@keyframes livePillPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 6px 22px rgba(239, 68, 68, 0.65); }
}

@keyframes liveDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.status-pill.status-finished {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #15803d;
}

/* Stadium Arena Card (The Master Scoreboard) */
.stadium-arena-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: clamp(28px, 4.5vw, 44px) clamp(24px, 4vw, 48px);
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 20px 25px -5px rgba(2, 132, 199, 0.05);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stadium-arena-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.09), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Teams Pods */
.team-pod {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    min-width: 0;
}

.team-pod:hover {
    transform: translateY(-2px);
}

.team-pod.is-home {
    justify-content: flex-end;
    text-align: right;
}

.team-pod.is-away {
    justify-content: flex-start;
    text-align: left;
}

.team-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.team-pod.is-home .team-info {
    align-items: flex-end;
}

.team-pod.is-away .team-info {
    align-items: flex-start;
}

.team-slogan-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.team-name {
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 900;
    color: var(--team-text-color, var(--team-color, #0f172a));
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    word-break: break-word;
    transition: color 0.2s ease, transform 0.2s ease;
}

.team-pod:hover .team-name {
    color: var(--team-color, var(--team-text-color, #0284c7));
    transform: translateY(-1px);
}

.team-badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.team-pod.is-home .team-badges-row {
    justify-content: flex-end;
}

.team-pod.is-away .team-badges-row {
    justify-content: flex-start;
}

.short-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 6px;
}

.meta-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 6px;
}

/* Crest Container */
.crest-container {
    width: clamp(76px, 9vw, 100px);
    height: clamp(76px, 9vw, 100px);
    border-radius: 22px;
    background: #ffffff;
    border: 3px solid var(--team-color, #0284c7);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06), 0 0 0 4px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 10px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.team-pod:hover .crest-container {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12), 0 0 0 4px rgba(255, 255, 255, 1);
}

.crest-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.crest-fallback {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

/* Center Score / Clash Hub */
.center-clash-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 180px;
    flex-shrink: 0;
}

.vs-badge-3d {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0f172a;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    border: 3px solid #ffffff;
    outline: 2px solid #e2e8f0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.vs-badge-3d:hover {
    transform: scale(1.08);
    background: #0284c7;
    outline-color: #bae6fd;
}

.score-display-board {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(48px, 6vw, 74px);
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.score-display-board.is-live {
    color: #ef4444;
}

.score-display-board .colon {
    color: #94a3b8;
}

.live-minute-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
    color: #ef4444;
    background: #fee2e2;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.hero-penalty-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 900;
    color: #b45309;
    background: #fef3c7;
    border: 1.5px solid #fde68a;
    padding: 3px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.12);
}

.clash-meta-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.clash-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    background: rgba(241, 245, 249, 0.85);
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid rgba(2, 132, 199, 0.12);
}

.clash-chip.is-time {
    color: #0369a1;
    font-weight: 800;
    background: #f0f9ff;
    border-color: #bae6fd;
}

/* Quick Actions Bar under Scoreboard */
.hero-quick-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.hero-action-btn.is-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.hero-action-btn.is-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
}

.hero-action-btn.is-highlight {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.hero-action-btn.is-highlight:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

.hero-action-btn.is-ghost {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.hero-action-btn.is-ghost:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────────────────────────────
   2. VIDEO THEATER & HIGHLIGHTS SUITE
   ────────────────────────────────────────────────────────────────────────── */
.match-theater-section {
    padding: 40px 0 60px;
}

/* Video Suite Tabs Quick Navigation */
.video-suite-tabs-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.video-suite-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.video-suite-tab:hover {
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.video-suite-tab.is-stream.is-active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.video-suite-tab.is-highlight.is-active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.video-suite-tab .tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-status-pill {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.tab-status-pill.is-live {
    background: #ef4444;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tab-status-pill.is-ready {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.video-suite-tab:not(.is-active) .tab-status-pill.is-ready {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.video-theater-card {
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(2, 132, 199, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
    scroll-margin-top: 90px;
}

.theater-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e0f2fe;
    gap: 16px;
    flex-wrap: nowrap;
}

.theater-head-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    min-width: 0;
}

.live-broadcast-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    white-space: nowrap;
}

.broadcast-ready-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: #0284c7;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    white-space: nowrap;
}

.highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: #0284c7;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    flex-shrink: 0;
    white-space: nowrap;
}

.standby-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 11.5px;
    font-weight: 800;
    flex-shrink: 0;
    white-space: nowrap;
}

.theater-match-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    min-width: 0;
}

.theater-team-unit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    min-width: 0;
}

.theater-team-unit.is-home {
    justify-content: flex-end;
    text-align: right;
}

.theater-team-unit.is-away {
    justify-content: flex-start;
    text-align: left;
}

.theater-team-name {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.theater-mini-crest {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #ffffff;
    border: 1.5px solid var(--team-color, #cbd5e1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 2px;
}

.theater-mini-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.theater-mini-crest b {
    font-size: 10px;
    font-weight: 900;
    color: var(--team-color, #0f172a);
}

.theater-vs-chip {
    font-size: 10px;
    font-weight: 900;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
}

.theater-vs-chip.is-score-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.theater-vs-chip.is-score-chip .pen-mini {
    font-size: 8.5px;
    color: #fde68a;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.theater-head-meta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tournament-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tournament-tag svg {
    color: #0284c7;
    flex-shrink: 0;
}

/* Screen Frame */
.theater-screen-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.theater-screen-frame iframe,
.theater-screen-frame video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.theater-standby-screen {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    text-align: center;
}

.standby-content-box {
    max-width: 580px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px 36px;
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.standby-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    color: #0284c7;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.standby-radar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.8);
    animation: liveDotPulse 1.5s infinite;
}

.standby-content-box h3 {
    font-size: clamp(17px, 2.2vw, 23px);
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.standby-content-box p {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 18px 0;
}

.standby-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.standby-meta-row .meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 800;
}

.theater-external-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.external-play-orb {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
    border: 3px solid #ffffff;
}

.theater-external-card h3 {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.theater-external-card p {
    font-size: 14px;
    color: #475569;
    margin: 0 0 20px 0;
}

.btn-open-stream {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    background: #0284c7;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
}

.btn-open-stream:hover {
    background: #0369a1;
    transform: scale(1.04);
}

/* ──────────────────────────────────────────────────────────────────────────
   2B. SEPARATE HIGHLIGHTS CARD
   ────────────────────────────────────────────────────────────────────────── */
.video-highlights-card {
    background: #ffffff;
    border: 1.5px solid #fde68a;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(245, 158, 11, 0.10), 0 2px 8px rgba(0, 0, 0, 0.03);
    margin-top: 36px;
    scroll-margin-top: 90px;
}

.highlights-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border-bottom: 1px solid #fef3c7;
    gap: 16px;
    flex-wrap: nowrap;
}

.highlights-head-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    min-width: 0;
}

.highlights-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.highlights-head-meta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.highlights-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.highlights-tag svg {
    color: #f59e0b;
    flex-shrink: 0;
}

.highlights-score-chip {
    background: #78350f !important;
    border-color: #78350f !important;
}

.highlights-screen-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.highlights-screen-frame iframe,
.highlights-screen-frame video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.highlights-external {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.highlights-orb {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.highlights-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.highlights-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.highlights-standby .standby-badge.highlights-badge {
    background: #fef3c7;
    border-color: #fde68a;
    color: #b45309;
}

/* ──────────────────────────────────────────────────────────────────────────
   3. MATCH INTELLIGENCE & TEAMS DECK
   ────────────────────────────────────────────────────────────────────────── */
.match-deck-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 820px;
    margin: 36px auto 0;
}

.deck-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.deck-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.1);
}

.deck-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--team-color, #0284c7);
}

.deck-team-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 14px;
    margin-bottom: 20px;
    width: 100%;
}

.deck-role-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    line-height: 1;
}

.deck-role-badge.is-home {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.deck-role-badge.is-away {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.deck-team-crest {
    width: 104px;
    height: 104px;
    border-radius: 28px;
    background: #ffffff;
    border: 3.5px solid var(--team-color, #0284c7);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08), 0 0 0 4px rgba(255, 255, 255, 0.95);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}

.deck-card.is-team:hover .deck-team-crest {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14), 0 0 0 5px rgba(255, 255, 255, 1);
}

.deck-team-crest img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.deck-team-crest b {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
}

.deck-team-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    width: 100%;
}

.deck-badge-kicker {
    display: none;
}

.deck-team-header h3,
.deck-team-heading {
    font-size: 22px !important;
    font-weight: 900 !important;
    color: var(--team-text-color, var(--team-color, #0f172a)) !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    text-transform: uppercase !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.deck-card.is-team:hover .deck-team-heading {
    color: var(--team-color, var(--team-text-color, #0284c7)) !important;
}

.deck-team-sub {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

.deck-card.is-team {
    align-items: center;
    text-align: center;
}

.deck-team-action {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-deck-team-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 220px !important;
    padding: 11px 20px !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    letter-spacing: 0.02em !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
}

.btn-deck-team-link:hover {
    background: var(--team-color, #0284c7) !important;
    border-color: var(--team-color, #0284c7) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(var(--team-rgb, 2, 132, 199), 0.3) !important;
}

.btn-deck-team-link svg {
    transition: transform 0.2s ease;
}

.btn-deck-team-link:hover svg {
    transform: translateX(3px);
}

/* ──────────────────────────────────────────────────────────────────────────
   4. BOTTOM NAVIGATION
   ────────────────────────────────────────────────────────────────────────── */
.match-bottom-nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.btn-match-nav-primary,
.btn-match-nav-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-match-nav-primary {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
}

.btn-match-nav-primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.4);
}

.btn-match-nav-ghost {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-match-nav-ghost:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────────────────────────────
   5. RESPONSIVE DESIGN (TABLET & MOBILE)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .match-deck-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        max-width: 100%;
    }
}

@media (max-width: 860px) {
    .match-hero-pro {
        padding: 24px 0 32px;
    }

    .hero-broadcast-topline {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
        text-align: center;
    }

    .topline-meta-group {
        justify-content: center;
    }

    /* Arena Card: 3-column horizontal balanced layout */
    .stadium-arena-card {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding: 18px 10px 16px;
        border-radius: 20px;
    }

    /* Teams Pod: Perfect Symmetry */
    .team-pod {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .team-pod.is-home {
        order: 1;
    }

    .team-pod.is-home .crest-container {
        order: 1;
        margin: 0 auto;
    }

    .team-pod.is-home .team-info {
        order: 2;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .team-pod.is-away {
        order: 3;
    }

    .team-pod.is-away .crest-container {
        order: 1;
        margin: 0 auto;
    }

    .team-pod.is-away .team-info {
        order: 2;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .crest-container {
        width: clamp(52px, 13vw, 72px);
        height: clamp(52px, 13vw, 72px);
        border-radius: 16px;
        padding: 5px;
    }

    .team-slogan-tag {
        font-size: 10px;
        max-width: 100%;
        margin-bottom: 1px;
    }

    .team-name {
        font-size: clamp(13px, 3.4vw, 16px);
        font-weight: 800;
        line-height: 1.25;
        text-align: center;
    }

    .team-badges-row {
        justify-content: center !important;
        margin-top: 4px;
        gap: 4px;
    }

    .short-badge {
        font-size: 10px;
        padding: 1px 6px;
    }

    .meta-tag {
        font-size: 9.5px;
        padding: 1px 5px;
    }

    /* Center Hub */
    .center-clash-hub {
        order: 2;
        min-width: unset;
        padding: 0 2px;
    }

    .vs-badge-3d {
        width: 44px;
        height: 44px;
        font-size: 16px;
        margin-bottom: 6px;
        border-width: 2.5px;
    }

    .score-display-board {
        font-size: clamp(28px, 7vw, 40px);
        gap: 4px;
        margin-bottom: 6px;
    }

    .clash-meta-strip {
        gap: 3px;
    }

    .clash-chip {
        font-size: 10.5px;
        padding: 2px 7px;
        white-space: nowrap;
    }

    .clash-chip svg {
        width: 10px;
        height: 10px;
    }

    /* Video Suite & Theater */
    .match-theater-section {
        padding: 24px 0 36px;
    }

    .video-suite-tabs-nav {
        gap: 8px;
        margin-bottom: 16px;
        width: 100%;
    }

    .video-suite-tab {
        padding: 8px 14px;
        font-size: 12px;
        gap: 6px;
        flex: 1 1 auto;
        justify-content: center;
    }

    .video-theater-card {
        border-radius: 18px;
    }

    .video-highlights-card {
        border-radius: 18px;
        margin-top: 22px;
    }

    .theater-card-head {
        padding: 12px 14px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    .highlights-card-head {
        padding: 12px 14px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
    }

    .theater-head-main,
    .highlights-head-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .theater-match-strip {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        width: 100%;
        max-width: 100%;
        gap: 6px;
    }

    .theater-team-unit {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        gap: 6px;
        flex: 1 1 0;
        min-width: 0;
    }

    .theater-team-unit.is-home {
        justify-content: flex-end;
    }

    .theater-team-unit.is-away {
        justify-content: flex-start;
    }

    .theater-team-name {
        font-size: clamp(11px, 3.2vw, 13.5px);
        max-width: 115px;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .theater-mini-crest {
        width: 25px;
        height: 25px;
        border-radius: 7px;
        border-width: 1.5px;
        flex-shrink: 0;
    }

    .theater-mini-crest b {
        font-size: 9px;
    }

    .theater-vs-chip {
        font-size: 9.5px;
        padding: 2px 6px;
        flex-shrink: 0;
    }

    .theater-head-meta,
    .highlights-head-meta {
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .tournament-tag,
    .highlights-tag {
        font-size: 10px;
        padding: 3px 10px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .theater-screen-frame:has(.theater-standby-screen),
    .theater-screen-frame:has(.theater-external-card),
    .highlights-screen-frame:has(.theater-standby-screen),
    .highlights-screen-frame:has(.theater-external-card) {
        aspect-ratio: auto;
        min-height: 240px;
    }

    .theater-standby-screen {
        padding: 16px 12px;
    }

    .standby-content-box {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .standby-content-box h3 {
        font-size: 14.5px;
        line-height: 1.35;
        margin-bottom: 6px;
    }

    .standby-content-box p {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .standby-meta-row .meta-pill {
        font-size: 11px;
        padding: 4px 10px;
    }

    .theater-external-card {
        padding: 24px 16px;
    }

    .theater-external-card h3 {
        font-size: 17px;
    }

    .theater-external-card p {
        font-size: 12.5px;
    }

    .btn-open-stream {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 12.5px;
    }

    /* Deck on Mobile */
    .match-deck-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        margin-top: 22px !important;
    }

    .deck-card.is-team {
        padding: 20px 14px 18px !important;
        border-radius: 20px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .deck-team-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
        margin-bottom: 14px !important;
        width: 100% !important;
    }

    .deck-role-badge {
        font-size: 9.5px !important;
        padding: 2.5px 9px !important;
    }

    /* Logo lớn hơn trên Mobile */
    .deck-team-crest {
        width: 82px !important;
        height: 82px !important;
        border-radius: 22px !important;
        margin: 0 auto !important;
        padding: 8px !important;
        border-width: 3px !important;
    }

    .deck-team-header h3,
    .deck-team-heading {
        font-size: clamp(15px, 4vw, 18px) !important;
        font-weight: 900 !important;
        line-height: 1.25 !important;
    }

    .deck-team-sub {
        font-size: 12px !important;
    }

    .deck-team-action {
        width: 100% !important;
        margin-top: 8px !important;
    }

    .btn-deck-team-link {
        font-size: 12px !important;
        padding: 9px 14px !important;
        border-radius: 999px !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: nowrap !important;
    }

    .btn-deck-team-link svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* Bottom Nav Bar */
    .match-bottom-nav-bar {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 24px;
    }

    .btn-match-nav-primary,
    .btn-match-nav-ghost {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 13.5px;
        border-radius: 12px;
    }
}

/* Extra Compact (< 380px) */
@media (max-width: 380px) {
    .stadium-arena-card {
        padding: 12px 6px;
        gap: 4px;
    }

    .crest-container {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .team-name {
        font-size: 12px;
    }

    .vs-badge-3d {
        width: 36px;
        height: 36px;
        font-size: 13.5px;
    }

    .score-display-board {
        font-size: 24px;
    }

    .clash-chip {
        font-size: 9.5px;
        padding: 2px 5px;
    }

    .match-deck-grid {
        gap: 8px !important;
    }

    .deck-card.is-team {
        padding: 14px 8px 12px !important;
        border-radius: 16px !important;
    }

    .deck-team-crest {
        width: 68px !important;
        height: 68px !important;
        border-radius: 18px !important;
        padding: 6px !important;
    }

    .deck-team-header h3,
    .deck-team-heading {
        font-size: 13.5px !important;
    }

    .btn-deck-team-link {
        font-size: 11px !important;
        padding: 7px 10px !important;
        gap: 4px !important;
    }
}
