* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
        
body { margin: 0; padding: 0; background: linear-gradient(135deg, #021B38, #00468C); color: white; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }
header { width: 100%; text-align: center; padding: 15px 0; background-color: rgba(0, 0, 0, 0.4); border-bottom: 2px solid #f39c12; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
header h1 { margin: 0; font-size: 2.5rem; text-transform: uppercase; letter-spacing: 2px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
header h1 span { color: #f39c12; }
.bottom-space { flex-grow: 1; width: 100%; margin-top: 20px; }

/* AD OVERLAY LAYER */
#ad_layer_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999; 
    background: rgba(0, 0, 0, 0); 
    cursor: pointer;
}

/* IFRAME PLAYER STYLES */
.container { width: 95%; user-select: none; overflow: hidden; max-width: 1000px; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7); }
.container iframe { width: 100%; height: 100%; border: none; outline: none; }

/* SCOREBOARD STYLES */
.scoreboard-wrapper { width: 95%; max-width: 1000px; margin: 25px 0; background: rgba(0, 0, 0, 0.7); border: 2px solid #f39c12; border-radius: 12px; padding: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.scoreboard-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(243, 156, 18, 0.3); padding-bottom: 10px; margin-bottom: 15px; }
.scoreboard-header h2 { font-size: 1.3rem; color: #f39c12; margin: 0; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.live-indicator { display: flex; align-items: center; gap: 6px; color: #e74c3c; font-size: 0.9rem; font-weight: bold; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.match-card { background: linear-gradient(180deg, #111, #000); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; width: 100%; padding: 20px; display: flex; flex-direction: column; }

/* TEAM LOGOS */
.teams-container { display: flex; justify-content: center; align-items: center; gap: 30px; margin-bottom: 15px; }
.team-logo { height: 60px; max-width: 80px; object-fit: contain; border-radius: 10px; }
.vs-text { font-size: 1.5rem; font-weight: bold; color: #f39c12; font-style: italic; }

.match-title { font-size: 1.1rem; font-weight: 600; color: #ccc; text-align: center; margin-bottom: 5px; }
.match-update { font-size: 0.9rem; color: #3498db; text-align: center; font-style: italic; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 15px; }

.main-score { font-size: 1.6rem; font-weight: bold; color: #fff; text-align: center; margin-bottom: 5px; }
.run-rate { font-size: 0.95rem; color: #aaa; text-align: center; margin-bottom: 20px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stats-box { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.stats-box-title { font-size: 0.85rem; color: #f39c12; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; margin-bottom: 10px; }

.stat-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; }
.stat-name { color: #fff; font-weight: 500; }
.stat-values { color: #ccc; }
.stat-values span { color: #fff; font-weight: bold; margin-right: 5px; }

.not-started-msg { margin-top: 20px; text-align: center; color: #e74c3c; font-weight: bold; font-size: 1.1rem; padding: 10px; background: rgba(231, 76, 60, 0.1); border-radius: 5px; border: 1px dashed #e74c3c; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

@media screen and (max-width: 768px) { .stats-grid { grid-template-columns: 1fr; } }
@media screen and (max-width: 540px) { .teams-container { gap: 15px; } .team-logo { height: 45px; } }