/* 
   PRO BROADCAST SCORER - OVERLAY GRAPHICS ENGINE 
   Resolution: 1920x1080 (Full HD)
   Style: International Sports TV (Hexagonal purple theme)
*/

/* 1. GLOBAL SETTINGS & TRANSPARENCY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

body, html {
    width: 1920px;
    height: 1080px;
    background: transparent !important; /* Instruction: Full Transparency for OBS */
    overflow: hidden;
}

.overlay-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 2. LOWER-THIRD ANIMATED SCOREBAR */
.lower-third-main {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    width: 1500px;
    height: 100px;
    animation: slideUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Team Blocks (White blocks on both ends) */
.team-block {
    background: #ffffff;
    color: #0f172a;
    font-weight: 900;
    font-size: 28px;
    padding: 0 40px;
    height: 60px;
    line-height: 60px;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    z-index: 5;
}

/* Stats Area (Batsmen & Bowler) */
.stats-area {
    background: rgba(15, 23, 42, 0.95); /* Dark Navy */
    color: white;
    flex-grow: 1;
    height: 75px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    border-bottom: 4px solid #db2777; /* Purple underline */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.player-row {
    display: flex;
    flex-direction: column;
    width: 300px;
}

.striker-active {
    color: #fbbf24; /* Gold highlight for active striker */
    font-weight: 900;
}

.tri-icon {
    font-size: 14px;
    margin-right: 8px;
    color: #fbbf24;
}

/* 3. CENTRAL HEXAGONAL SCORE BOX (Correct Sample Image Style) */
.score-hex {
    position: relative;
    background: #db2777; /* Sample Image Purple/Pink */
    width: 240px;
    height: 130px;
    margin: 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
    border: 5px solid #ffffff;
    z-index: 20;
    box-shadow: 0 0 40px rgba(219, 39, 119, 0.6);
}

.main-runs {
    font-size: 60px;
    font-weight: 900;
    line-height: 0.9;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.main-overs {
    font-size: 22px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
}

/* 4. TARGET & NEED STRIPS */
.target-strip {
    position: absolute;
    top: -28px;
    background: #1e1b4b; /* Indigo */
    color: white;
    padding: 3px 25px;
    font-size: 15px;
    font-weight: 900;
    border-radius: 6px 6px 0 0;
    letter-spacing: 1px;
}

.need-strip {
    position: absolute;
    bottom: -22px;
    background: #020617;
    color: #fbbf24;
    padding: 4px 30px;
    width: 85%;
    text-align: center;
    font-size: 16px;
    font-weight: 900;
    border-radius: 0 0 8px 8px;
    border-top: 2px solid #fbbf24;
}

/* 5. CENTER CARDS (1BAT, SUMMERY, TARGET) */
.center-card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 550px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(88, 28, 135, 0.95) 100%);
    border: 6px solid #fbbf24;
    border-radius: 40px;
    display: none; /* Controlled via JS */
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 150px rgba(0,0,0,0.9);
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 6. EVENT ANIMATIONS (FOUR, SIX, WICKET) */
.event-anim-fullscreen {
    position: absolute;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
}

.anim-text {
    font-size: 280px;
    font-weight: 900;
    color: #fbbf24;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 10px 10px 0px #000, 0 10px 50px rgba(251, 191, 36, 0.5);
    animation: bounceIn 0.8s infinite;
}

/* 7. UMPIRE DECISION BOX */
.decision-box-container {
    background: #fbbf24;
    color: black;
    padding: 20px 100px;
    font-size: 110px;
    font-weight: 900;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    animation: popIn 0.4s ease;
}

/* 8. KEYFRAME ANIMATIONS */
@keyframes slideUp {
    from { transform: translate(-50%, 250px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes bounceIn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* 9. UTILS */
.fw-900 { font-weight: 900; }
.text-gold { color: #fbbf24; }
.letter-spacing-2 { letter-spacing: 2px; }

/* 10. MARQUEE STRIP */
#customBottom {
    border-top: 3px solid #db2777;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}