/* ============================= */
/* RESET */
/* ============================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{

    width:100%;
    height:100%;
    overflow:hidden;

    font-family:Arial, Helvetica, sans-serif;

    background:#000;

    color:white;

}


/* ============================= */
/* MAIN */
/* ============================= */

.broadcast{

    position:relative;

    width:100vw;

    height:100vh;

    overflow:hidden;

    background:#000;

}


/* ============================= */
/* VIDEO */
/* ============================= */

.video-container{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    background:#000;

}

video{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

    background:#000;

}


/* ============================= */
/* SCOREBOARD */
/* ============================= */

/* ============================= */
/* SCOREBOARD */
/* ============================= */

.scoreboard{

    position:absolute;

    top:12px;

    left:12px;

    display:flex;

    align-items:center;

    gap:12px;

    padding:8px 12px;

    background:rgba(0,0,0,.70);

    border-radius:10px;

    backdrop-filter:blur(8px);

    box-shadow:0 3px 12px rgba(0,0,0,.35);

    z-index:500;

}

.team{

    min-width:90px;

    text-align:center;

}

.team-name{

    font-size:14px;

    font-weight:bold;

    text-transform:uppercase;

}

.score-area{

    display:flex;

    flex-direction:column;

    align-items:center;

}

.minute{

    font-size:11px;

    color:#FFD54F;

    margin-bottom:3px;

    font-weight:bold;

}

.score{

    font-size:18px;

    font-weight:bold;

    background:#ffffff;

    color:#111;

    padding:3px 10px;

    border-radius:6px;

    min-width:65px;

    text-align:center;

}


/* ============================= */
/* EVENT */
/* ============================= */

/* ============================= */
/* EVENT */
/* ============================= */

.event-banner{

    position:absolute;

    top:70px;

    left:12px;

    transform:translateY(-10px);

    background:rgba(255,255,255,.95);

    color:#111;

    font-weight:bold;

    padding:8px 14px;

    border-radius:8px;

    font-size:15px;

    opacity:0;

    transition:.35s;

    z-index:450;

    pointer-events:none;

    max-width:280px;

}

.event-banner.show{

    opacity:1;

    transform:translateY(0);

}


/* ============================= */
/* TICKER */
/* ============================= */

.ticker{

    position:absolute;

    bottom:0;

    left:0;

    width:100%;

    height:44px;

    background:rgba(15,15,15,.95);

    overflow:hidden;

    z-index:400;

}


.ticker-content{

    white-space:nowrap;

    display:inline-block;

    line-height:44px;

    font-size:18px;

    padding-left:100%;

    animation:ticker 22s linear infinite;

}


@keyframes ticker{

    from{

        transform:translateX(0);

    }

    to{

        transform:translateX(-100%);

    }

}


/* ============================= */
/* FADE */
/* ============================= */

#fadeOverlay{

    position:absolute;

    inset:0;

    background:black;

    opacity:0;

    pointer-events:none;

    transition:opacity .7s ease;

    z-index:300;

}

#fadeOverlay.active{

    opacity:1;

}


/* ============================= */
/* NEXT MATCH SCREEN */
/* ============================= */

.loading-overlay{

    position:fixed;

    inset:0;

    background:#050505;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:999;

    transition:.6s;

}


.loading-overlay.hidden{

    opacity:0;

    visibility:hidden;

}


.loading-box{

    text-align:center;

}


.loading-box h1{

    font-size:70px;

    letter-spacing:3px;

    margin-bottom:25px;

}


.final-score{

    font-size:42px;

    font-weight:bold;

    margin-bottom:35px;

}


.loading-box p{

    font-size:24px;

    margin-bottom:18px;

}


.countdown{

    font-size:95px;

    color:#FFD54F;

    font-weight:bold;

}


/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media(max-width:900px){

.team{

    min-width:120px;

}

.team-name{

    font-size:18px;

}

.score{

    font-size:24px;

}

.event-banner{

    width:90%;

    font-size:22px;

}

.loading-box h1{

    font-size:45px;

}

.final-score{

    font-size:28px;

}

.countdown{

    font-size:70px;

}











}











/* ========================= */
/* Mobile Responsive Layout */
/* ========================= */

@media screen and (max-width: 768px) {

    body {
        overflow-x: hidden;
    }


    .broadcast {
        width: 100%;
        height: 100vh;
    }


    /* Scoreboard */
    .scoreboard {

        width: 100%;
        padding: 8px;

        display: flex;
        justify-content: space-between;
        align-items: center;

        font-size: 14px;
    }


    .team-name {
        font-size: 13px;
        white-space: nowrap;
    }


    .minute {
        font-size: 14px;
    }


    .score {
        font-size: 20px;
        font-weight: bold;
    }



    /* Video Area */
    .video-container {

        width: 100%;

        height: auto;

        aspect-ratio: 16 / 9;

        background: black;

        overflow: hidden;

        display: flex;
        justify-content: center;
        align-items: center;

    }



    video#player {

        width: 100%;

        height: 100%;

        object-fit: contain;

    }



    /* Event Banner */

    .event-banner {

        width: 90%;

        left: 5%;

        font-size: 14px;

        padding: 10px;

    }



    /* Full Time Overlay */

    .loading-box {

        width: 90%;

        padding: 20px;

        text-align: center;

    }


    .loading-box h1 {

        font-size: 24px;

    }


    .final-score {

        font-size: 18px;

    }


    .countdown {

        font-size: 40px;

    }

}



/* Small Phones */

@media screen and (max-width: 400px) {


    .scoreboard {

        padding: 5px;

    }


    .team-name {

        font-size: 11px;

    }


    .score {

        font-size: 18px;

    }


    .video-container {

        aspect-ratio: 9 / 16;

    }


    video#player {

        object-fit: contain;

    }


}

/*more*/

/* ============================= */
/* FULL TIME / LOADING OVERLAY  */
/* ============================= */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #111827 0%, #050505 55%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-box {
    width: 100%;
    max-width: 920px;
    text-align: center;
    padding: 10px 10px 30px;
}

.ft-header {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 10px;
}

.final-score {
    font-size: 28px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 18px;
}

.next-timer-wrap {
    margin-bottom: 8px;
}

.next-label {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.countdown {
    font-size: 64px;
    font-weight: 800;
    color: #FFD54F;
    line-height: 1;
}

.next-match-hint {
    margin-top: 8px;
    margin-bottom: 18px;
    color: #FFD54F;
    font-size: 20px;
    font-weight: 700;
}

/* Odds panel */
.odds-panel {
    margin: 0 auto 22px;
    max-width: 860px;
    text-align: left;
}

.odds-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px;
    backdrop-filter: blur(6px);
}

.odds-title {
    text-align: center;
    color: #FFD54F;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.odds-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 14px;
}

.odds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.odds-section-title {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 8px;
    font-weight: 700;
}

.odd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.22);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 13px;
}

.odd-row b {
    color: #fff;
}

.odd-money {
    color: #00ff99;
    font-weight: 700;
    font-size: 12px;
}

.ou-grid, .cs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.cs-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Recent results */
.recent-results {
    margin-top: 8px;
}

.recent-title {
    color: #FFD54F;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.results-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.result-card {
    min-width: 240px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 14px;
}

.result-time {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.result-score {
    font-size: 14px;
    font-weight: 700;
}

.result-score span {
    color: #FFD54F;
    margin: 0 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .ft-header { font-size: 28px; }
    .final-score { font-size: 20px; }
    .countdown { font-size: 48px; }
    .next-match-hint { font-size: 16px; }

    .odds-grid,
    .ou-grid,
    .cs-grid {
        grid-template-columns: 1fr;
    }

    .result-card {
        min-width: 100%;
    }
}


/* =========================================================
   VIRTUAL MATCH STYLE - FULL TIME SCREEN
========================================================= */

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    overflow-y: auto;
    background:
        radial-gradient(ellipse at center, rgba(20,24,40,0.92) 0%, rgba(5,6,10,0.96) 70%),
        #05060a;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 16px;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.vm-shell {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    color: #fff;
}

.vm-ft-badge {
    width: fit-content;
    margin: 0 auto 10px;
    background: #f5c518;
    color: #111;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 999px;
    padding: 6px 14px;
}

.vm-ft-score {
    text-align: center;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.vm-ft-teams {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #e5e7eb;
}

.vm-ft-meta {
    text-align: center;
    margin-top: 4px;
    margin-bottom: 22px;
    color: #94a3b8;
    font-size: 13px;
}

.vm-next-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.vm-team-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.vm-team-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #f5c518;
}

.vm-team-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vm-next-center {
    text-align: center;
    min-width: 220px;
}

.vm-next-label {
    color: #f5c518;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.vm-vs {
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 2px;
}

.vm-countdown {
    margin-top: 6px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 2px;
}

.vm-countdown-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
    letter-spacing: 1px;
}

.vm-section-title {
    color: #f5c518;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.vm-odds-wrap {
    margin-bottom: 18px;
}

.vm-odds-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 0.9fr;
    gap: 12px;
}

.vm-odds-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px;
}

.vm-odds-card h4 {
    margin: 0 0 10px;
    font-size: 12px;
    color: #cbd5e1;
    letter-spacing: 0.5px;
}

.vm-odd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
}

.vm-odd-row:last-child {
    border-bottom: none;
}

.vm-odd-value {
    color: #f5c518;
    font-weight: 700;
}

.vm-cs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.vm-cs-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    text-align: center;
    padding: 10px 6px;
}

.vm-cs-item .score {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 4px;
}

.vm-cs-item .odd {
    color: #f5c518;
    font-weight: 700;
    font-size: 14px;
}

.vm-recent-list {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}

.vm-recent-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-size: 13px;
}

.vm-recent-item b {
    color: #f5c518;
    margin: 0 6px;
}

.vm-view-all {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vm-footer {
    margin-top: 16px;
    text-align: center;
    color: #64748b;
    font-size: 11px;
}

@media (max-width: 860px) {
    .vm-ft-score { font-size: 40px; }
    .vm-next-card { grid-template-columns: 1fr; }
    .vm-odds-grid { grid-template-columns: 1fr; }
    .vm-cs-grid { grid-template-columns: repeat(2, 1fr); }
    .vm-recent-list { grid-template-columns: 1fr; }
}

