/* ==========================================================================
   EMIRATES STADIUM CONTROL — GIANT LED SCOREBOARD CANVAS (BROADCAST/OBS)
   Ultra high-contrast, zero-scroll, distance-legible typography
   ========================================================================== */

:root {
    --canvas-width: 1920px;
    --canvas-height: 1080px;
    --scale-factor: 1;
    --color-gold: #D4AF37;
    --color-gold-bright: #F5E08C;
    --color-arsenal-red: #DB0007;
    --color-arsenal-dark: #0E1626;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    cursor: none; /* Hide cursor on broadcast display */
}

/* Outer scaling container */
.display-viewport-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

/* Master Fixed Canvas */
.broadcast-canvas {
    width: var(--canvas-width);
    height: var(--canvas-height);
    transform-origin: center center;
    background: radial-gradient(circle at 50% 30%, #151F33 0%, #080D1A 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px;
}

/* Decorative Stadium Lighting Borders */
.canvas-border-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.canvas-border-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--color-arsenal-red), transparent);
}

/* TOP BAR: Tournament & Stadium Venue */
.display-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 20px;
}

.comp-header-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.comp-display-logo {
    height: 70px;
    width: 70px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    border-radius: 12px;
}

.comp-display-logo-fallback {
    height: 70px;
    width: 70px;
    background: var(--color-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.comp-display-titles h2 {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.comp-display-titles span {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gold-bright);
}

.venue-header-tag {
    text-align: right;
}

.venue-header-tag h3 {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.venue-header-tag span {
    font-size: 18px;
    color: var(--color-gold);
    font-weight: 700;
}

/* MAIN HERO SCOREBOARD */
.scoreboard-main-hero {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    margin: 20px 0;
}

.team-display-pod {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.team-display-crest {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: #FFFFFF;
    padding: 8px;
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.team-display-crest-fallback {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.team-name-en {
    font-size: 38px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.team-name-ar {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-gold-bright);
    direction: rtl;
}

/* CENTER SCORE & PERIOD CONTAINER */
.score-display-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 420px;
}

.score-digits-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid var(--color-gold);
    border-radius: 28px;
    padding: 20px 40px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.2);
}

.score-digit {
    font-size: 130px;
    font-weight: 900;
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    color: #FFFFFF;
    line-height: 1;
    min-width: 90px;
    text-align: center;
}

.score-colon {
    font-size: 100px;
    font-weight: 900;
    color: var(--color-gold);
    line-height: 1;
}

.period-pill-display {
    background: var(--color-gold);
    color: #000000;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 8px 28px;
    border-radius: 30px;
    margin-top: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* FOOTER CLOCK & STOPPAGE TIME BAR */
.display-bottom-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0 40px;
    position: relative;
}

.clock-timer-box {
    display: flex;
    align-items: center;
    gap: 24px;
}

.clock-digits-display {
    font-size: 90px;
    font-weight: 900;
    font-family: 'Courier New', Courier, monospace;
    color: #FFFFFF;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.stoppage-time-box {
    background: #DC2626;
    color: #FFFFFF;
    font-size: 44px;
    font-weight: 900;
    padding: 6px 18px;
    border-radius: 12px;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
}

/* Standby Neutral Screen */
.standby-card {
    margin: auto;
    text-align: center;
}

.standby-card h1 {
    font-size: 72px;
    font-weight: 900;
    color: var(--color-gold);
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.standby-card p {
    font-size: 32px;
    color: #FFFFFF;
    font-weight: 700;
}
