body { background-color: #020617; color: white; font-family: 'Oswald', 'Noto Sans Bengali', sans-serif; overflow-x: hidden; touch-action: manipulation; }
.font-score { font-family: 'Teko', 'Noto Sans Bengali', sans-serif; }
.font-text { font-family: 'Oswald', 'Noto Sans Bengali', sans-serif; }
.font-bangla { font-family: 'Noto Sans Bengali', sans-serif; }

/* Force transparent overlay */
body.overlay-mode { background-color: transparent !important; }
#view-overlay { background-color: transparent; }

/* --- CUSTOM SCROLLBARS --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(71, 85, 105, 0.5); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.8); }

/* --- NOTIFICATIONS (TOASTS) --- */
.toast-card {
    background: rgba(15, 23, 42, 0.95); border-left: 4px solid #10b981; padding: 12px 20px;
    border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); min-width: 250px;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: auto; display: flex; align-items: center; gap: 12px;
}
.toast-icon { width: 32px; height: 32px; background: rgba(16, 185, 129, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #10b981; }
.toast-content h4 { font-family: 'Teko', 'Noto Sans Bengali', sans-serif; font-weight: 700; font-size: 1.25rem; line-height: 1; text-transform: uppercase; color: white; margin: 0; }
.toast-content p { font-size: 0.75rem; color: #94a3b8; margin: 0; font-weight: 600; text-transform: uppercase; }

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ==========================================================================
   THE NEW "ROOF": MATCH TOP BAR (NOW EXPANDABLE)
   ========================================================================== */
.match-top-bar {
    position: absolute; top: -28px; left: 20px; display: flex; align-items: center; height: 26px;
    background: #0B2447; border: none; border-radius: 6px; padding: 0; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); z-index: 10; overflow: hidden; width: fit-content; max-width: 95%; 
    transition: all 0.3s ease;
}
.top-bar-badge {
    background: #dc2626; color: white; font-size: 0.7rem; font-weight: bold; padding: 0 12px; height: 100%;
    display: flex; align-items: center; text-transform: uppercase; font-family: 'Oswald', 'Noto Sans Bengali', sans-serif;
    letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.top-bar-teams { display: flex; align-items: center; padding: 0 15px; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.bd-team-name { font-weight: 700; font-size: 1.1rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.5px; font-family: 'Teko', 'Noto Sans Bengali', sans-serif; color: #ffffff; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }
.bd-team-name.active-bat { color: #facc15; text-shadow: 0 2px 10px rgba(250, 204, 21, 0.4), 1px 1px 2px rgba(0,0,0,0.8); }
.bd-vs { font-size: 0.75rem; color: #e2e8f0; font-weight: bold; text-transform: uppercase; margin: 0; text-shadow: 1px 1px 2px rgba(0,0,0,0.8);}

#o-roof-stats { white-space: nowrap; flex-shrink: 0; }

/* 🚨 SMART ROTATOR SMOOTH FADE ANIMATION 🚨 */
.stat-fade { animation: statFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes statFadeIn {
    0% { opacity: 0; transform: translateY(-4px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MULTI-PANE TV STRIP LAYOUT
   ========================================================================== */
.tv-strip-container {
    display: flex; align-items: stretch; justify-content: center; height: 65px; width: 98%; max-width: 1100px;
    font-family: 'Oswald', 'Noto Sans Bengali', sans-serif; margin: 35px auto 0 auto; 
    background: transparent; border: none; box-shadow: none; padding: 0; gap: 8px; 
    position: relative; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bd-strip-batsmen, .bd-strip-score-wrapper, .bd-strip-bowler {
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    position: relative; z-index: 5; flex-shrink: 0;
}

.bd-strip-batsmen { display: flex; flex-direction: column; justify-content: center; width: 36%; padding: 0 15px; overflow: hidden; }
.bd-bat-row { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 50%; padding: 0 4px; }
.bd-bat-row > div:first-child { display: flex; align-items: center; min-width: 0; flex: 1; margin-right: 15px; overflow: hidden; }
.bd-bat-name { font-weight: 600; text-transform: uppercase; font-size: 1.1rem; color: white; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-shadow: 1px 1px 2px rgba(0,0,0,0.9); }
.bd-bat-runs { font-family: 'Teko', 'Noto Sans Bengali', sans-serif; font-size: 1.6rem; font-weight: 500; color: #facc15; display: flex; align-items: center; flex-shrink: 0; justify-content: flex-end; text-shadow: 1px 1px 2px rgba(0,0,0,0.9); line-height: 1; }
.player-out .bd-bat-name { text-decoration: line-through; opacity: 0.7; }

.ball-pill {
    background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 6px; border-radius: 6px; margin-left: 8px; display: flex; align-items: center; justify-content: center;
    min-width: 28px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.ball-pill span { font-family: 'Oswald', 'Noto Sans Bengali', sans-serif; font-size: 0.75rem; font-weight: 700; color: #ffffff; text-shadow: none; line-height: 1; }

.bd-strip-score-wrapper { display: flex; flex-direction: row; align-items: stretch; width: 28%; min-width: 200px; overflow: hidden; }
.bd-score-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.bd-score-info { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 15px; min-width: 80px; text-align: center; }

.bd-main-score { font-family: 'Teko', 'Noto Sans Bengali', sans-serif; font-size: clamp(2.5rem, 4vw, 3.8rem); font-weight: 700; line-height: 0.9; margin-top: -2px; transition: all 0.3s; white-space: nowrap; text-align: center; }
.bd-overs-container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1;}
.info-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0; text-align: center;}
.bd-overs-val { font-family: 'Oswald', 'Noto Sans Bengali', sans-serif; font-size: 1.3rem; font-weight: 700; text-align: center;}

.bd-strip-bowler { display: flex; flex-direction: column; justify-content: center; width: 36%; padding: 0 15px; overflow: hidden; flex-shrink: 0; }
.bd-bowl-row { display: flex; align-items: center; width: 100%; overflow: hidden; white-space: nowrap; }
.bd-bowl-row > span:first-child { flex-shrink: 0; }
.bd-bowl-name { font-weight: 700; text-transform: uppercase; font-size: 1.1rem; color: white; letter-spacing: 0.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; display: inline-block; text-shadow: 1px 1px 2px rgba(0,0,0,0.9); }
.bd-strip-bowler > .flex.justify-between { flex-wrap: nowrap; gap: 10px; width: 100%; overflow: hidden; align-items: center; }
.bd-bowl-fig { font-family: 'Teko', 'Noto Sans Bengali', sans-serif; font-size: 1.4rem; font-weight: 500; color: #facc15; flex-shrink: 0; text-shadow: 1px 1px 2px rgba(0,0,0,0.9); }

.bd-timeline { display: flex; gap: 4px; align-items: center; margin-left: auto; flex-shrink: 0; overflow: hidden; justify-content: flex-end;}
.timeline-ball { font-size: 0.7rem; font-weight: 800; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: rgba(255,255,255,0.1); color: #e2e8f0; flex-shrink: 0; text-shadow: none; }
.ball-4 { background: #FACC15; color: black; box-shadow: 0 2px 4px rgba(250, 204, 21, 0.4); }
.ball-6 { background: #eab308; color: black; box-shadow: 0 2px 4px rgba(234, 179, 8, 0.4); }
.ball-w { background: #dc2626; color: white; box-shadow: 0 2px 4px rgba(220, 38, 38, 0.4); }
.ball-dot { background: #0B2447; border: 1px solid rgba(255,255,255,0.2); color: #ffffff; }

/* ==========================================================================
   🚨 THE STANDALONE TICKER STYLES 🚨
   ========================================================================== */
.ticker-strip { 
    position: relative; height: 32px; display: flex; align-items: center; overflow: hidden; 
    z-index: 10; border-radius: 6px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    width: 98%; max-width: 1100px; margin: 0 auto; 
    font-family: 'Noto Sans Bengali', 'Oswald', sans-serif;
    transition: all 0.3s ease;
}

/* 🚨 ADMIN MASTER OVERRIDE OVERLAY EFFECT 🚨 */
.ticker-strip.admin-override {
    background: linear-gradient(90deg, #7f1d1d, #dc2626, #7f1d1d) !important;
    color: #fde047 !important;
    border: 2px solid #facc15 !important;
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.9) !important;
}
.ticker-strip.admin-override .marquee-content {
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}


/* ==========================================================================
   THEMES (Updated with Sibling Selectors for Ticker)
   ========================================================================== */

/* THEME 1: CLASSIC */
.theme-classic .match-top-bar { background: #0B2447; border: 1px solid rgba(255,255,255,0.1); border-bottom: none; }
.theme-classic .bd-strip-batsmen { background: #166534; border-left: 4px solid #FACC15; }
.theme-classic .bd-strip-score-wrapper { background: #0B2447; color: #ffffff; border-top: 4px solid #15803d; }
.theme-classic .bd-score-info { background: #ffffff; border-left: 1px solid #cbd5e1; }
.theme-classic .bd-main-score { color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important; }
.theme-classic .info-label { color: #64748b; }
.theme-classic .bd-overs-val { color: #000000; }
.theme-classic .bd-strip-bowler { background: #166534; border-right: 4px solid #FACC15; }

#score-strip.theme-classic ~ .ticker-strip { background: #ffffff; color: #0B2447; border: 2px solid #FACC15; }

/* THEME 2: PRO NETWORK */
.theme-pro .match-top-bar { background: linear-gradient(90deg, #0B2447, #1e3a8a); border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.theme-pro .top-bar-badge { background: #166534; }
.theme-pro #o-roof-stats { border-color: rgba(255,255,255,0.2); }
.theme-pro #roof-rrr-box, .theme-pro #roof-target-box { border-color: rgba(255,255,255,0.2); }

.theme-pro .bd-strip-batsmen { background: linear-gradient(135deg, #0B2447, #1e3a8a); border-left: 3px solid #166534; }
.theme-pro .bd-strip-score-wrapper { background: linear-gradient(135deg, #15803d, #166534); color: #ffffff; }
.theme-pro .bd-score-info { background: linear-gradient(135deg, #FACC15, #eab308); border-left: 1px solid rgba(0,0,0,0.1); }
.theme-pro .bd-main-score { color: #ffffff; text-shadow: 2px 2px 5px rgba(0,0,0,0.6) !important; }
.theme-pro .info-label { color: #451a03 !important; }
.theme-pro .bd-overs-val { color: #000000 !important; }
.theme-pro .bd-strip-bowler { background: linear-gradient(135deg, #1e3a8a, #0B2447); border-right: 3px solid #166534; }

#score-strip.theme-pro ~ .ticker-strip { background: #0B2447; color: #ffffff; }

/* THEME 3: MODERN PURPLE (NOW LIME GREEN & DEEP NAVY) */
.theme-purple .match-top-bar { background: #ccff00; border-radius: 6px; top: -30px; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.4); padding: 0 15px 0 0; height: auto; min-height: 26px;}
.theme-purple .top-bar-badge { display: none; } 
.theme-purple .top-bar-teams { padding-left: 15px; }
.theme-purple .top-bar-teams .bd-team-name { color: #0a1128; text-shadow: none; }
.theme-purple .top-bar-teams .bd-team-name.active-bat { color: #0a1128; font-weight: 900; }
.theme-purple .top-bar-teams .bd-vs { color: #0a1128; opacity: 0.6; text-shadow: none; }

.theme-purple #o-roof-stats { border-color: rgba(10,17,40,0.2) !important; color: #0a1128; }
.theme-purple #roof-rrr-box, .theme-purple #roof-target-box { border-color: rgba(10,17,40,0.2) !important; }
.theme-purple #o-roof-stats span.text-white { color: #0a1128 !important; text-shadow: none; font-weight: 800; }
.theme-purple #o-roof-stats span.opacity-70 { color: #0a1128 !important; opacity: 0.8; font-weight: 700; text-shadow: none; }
.theme-purple #o-roof-stats .text-yellow-400 { color: #0a1128 !important; text-shadow: none; font-weight: 900; }

.theme-purple .bd-strip-batsmen { background: #0a1128; border-left: 4px solid #ccff00; border-radius: 8px;}
.theme-purple .bd-bat-name { color: #ffffff; text-shadow: none; }
.theme-purple .bd-bat-runs { color: #ffffff; text-shadow: none; }
.theme-purple .ball-pill { background: transparent; border: none; box-shadow: none; padding: 0 0 0 4px; }
.theme-purple .ball-pill span { color: #cbd5e1; font-weight: normal; text-shadow: none; }

.theme-purple .bd-strip-score-wrapper { background: transparent; padding: 0; gap: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.6); border-radius: 8px; overflow: hidden; border: 2px solid #ccff00;}
.theme-purple .bd-score-main { background: #ccff00; padding: 0 15px; border-radius: 0; } 
.theme-purple .bd-main-score { background: transparent; color: #0a1128; padding: 0; text-shadow: none !important; font-size: clamp(2.5rem, 4vw, 3.8rem); margin: 0; font-weight: 800; }
.theme-purple .bd-score-info { background: #0a1128; border-left: none; padding: 0 15px; border-radius: 0; border-left: 2px solid #ccff00; } 
.theme-purple .info-label { color: #ccff00 !important; text-shadow: none; font-weight: 800;}
.theme-purple .bd-overs-val { color: #ffffff !important; text-shadow: none; font-weight: 900;}

.theme-purple .bd-strip-bowler { background: #0a1128; border-right: 4px solid #ccff00; border-radius: 8px;}
.theme-purple .bd-bowl-name { color: #ffffff; text-shadow: none; }
.theme-purple .bd-bowl-fig { color: #ffffff; text-shadow: none; font-weight: 700; }
.theme-purple .bd-strip-bowler .text-\[10px\] { color: #94a3b8 !important; }

/* Timeline over dots matching the image style */
.theme-purple .timeline-ball { background: #ccff00; border: none; color: #0a1128; box-shadow: none; font-weight: 900;}
.theme-purple .ball-4, .theme-purple .ball-6 { background: #ffffff; color: #0a1128; }
.theme-purple .ball-w { background: #dc2626; color: #ffffff; font-weight: bold; border: none; } 
.theme-purple .ball-dot { background: transparent; border: 2px solid #ccff00; color: #ccff00; font-weight: bold; } 

#score-strip.theme-purple ~ .ticker-strip { background: #0a1128; color: #ccff00; border: 1px solid #ccff00; }

#score-strip.theme-purple ~ .ticker-strip { background: #d1d5db; color: #1a2f23; border: none; }

/* THEME 4: T20-2026 */
.theme-t20-26 .match-top-bar { background: #e2e8f0; border: none; border-radius: 6px; top: -30px; left: 50%; transform: translateX(-50%); box-shadow: 0 5px 15px rgba(0,0,0,0.3); padding: 0 15px 0 0; height: auto; min-height: 26px; }
.theme-t20-26 .top-bar-badge { display: none; }
.theme-t20-26 .top-bar-teams { padding-left: 15px; }
.theme-t20-26 .top-bar-teams .bd-team-name { color: #475569; text-shadow: none; }
.theme-t20-26 .top-bar-teams .bd-vs { color: #2563eb; text-shadow: none; }
.theme-t20-26 .top-bar-teams .bd-team-name.active-bat { color: #990000; }

.theme-t20-26 #o-roof-stats { border-color: rgba(11, 36, 71, 0.2) !important; color: #0B2447; }
.theme-t20-26 #roof-rrr-box, .theme-t20-26 #roof-target-box { border-color: rgba(11, 36, 71, 0.2) !important; }
.theme-t20-26 #o-roof-stats span.text-white { color: #0B2447 !important; text-shadow: none; font-weight: 800; }
.theme-t20-26 #o-roof-stats span.opacity-70 { color: #475569 !important; opacity: 1; font-weight: 700; text-shadow: none; }
.theme-t20-26 #o-roof-stats .text-yellow-400 { color: #0B2447 !important; text-shadow: none; font-weight: 900; }
.theme-t20-26 #o-roof-stats #o-target, .theme-t20-26 #o-roof-eqn { color: #dc2626 !important; text-shadow: none; font-weight: 900; }

.theme-t20-26 .bd-strip-batsmen { background: #8b0000; border-left: 6px solid #f59e0b; border-radius: 8px; }
.theme-t20-26 .bd-bat-name { color: #ffffff; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }
.theme-t20-26 .bd-bat-runs { color: #ffffff; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }
.theme-t20-26 .ball-pill { background: transparent; border: none; box-shadow: none; padding: 0 0 0 4px; }
.theme-t20-26 .ball-pill span { color: #ffffff; font-weight: normal; opacity: 0.9; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }

.theme-t20-26 .bd-strip-score-wrapper { background: transparent; padding: 0; gap: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.6); border-radius: 8px; overflow: hidden; }
.theme-t20-26 .bd-score-main { background: #064e3b; padding: 0 15px; border-radius: 0; } 
.theme-t20-26 .bd-main-score { background: transparent; color: #ffffff; padding: 0; text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important; font-size: clamp(2.5rem, 4vw, 3.8rem); margin: 0; }
.theme-t20-26 .bd-score-info { background: #b91c1c; border-left: none; padding: 0 15px; border-radius: 0; } 
.theme-t20-26 .info-label { color: #ffffff !important; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.theme-t20-26 .bd-overs-val { color: #ffffff !important; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }

.theme-t20-26 .bd-strip-bowler { background: #a3e635; border-right: 6px solid #1e3a8a; border-radius: 8px; }
.theme-t20-26 .bd-bowl-name { color: #0f172a; text-shadow: none; }
.theme-t20-26 .bd-bowl-fig { color: #0f172a; text-shadow: none; font-weight: 700; }
.theme-t20-26 .bd-strip-bowler .text-\[10px\] { color: #334155 !important; }

.theme-t20-26 .timeline-ball { background: #0B2447; border: none; color: #ffffff; box-shadow: none; }
.theme-t20-26 .ball-4, .theme-t20-26 .ball-6 { background: #FACC15; color: black; border-color: #FACC15; font-weight: 900; }
.theme-t20-26 .ball-w { background: #ffffff; color: #dc2626; font-weight: bold; border: 1px solid #dc2626; }
.theme-t20-26 .ball-dot { background: #0B2447; color: #ffffff; }

#score-strip.theme-t20-26 ~ .ticker-strip { background: #e2e8f0; color: #000000; border: none; }

/* ==========================================================================
   EQUATION MODE & OVERLAYS
   ========================================================================== */
.stats-bar.equation-mode { position: static; flex: 1; height: 100%; margin: 0; background: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0; z-index: 10;}
.eq-wrapper { gap: 10px; justify-content: center;}
.eq-team-need { background: linear-gradient(135deg, #0B2447, #1e3a8a); color: white; border-radius: 6px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); padding: 0 20px;}
.eq-data-box { background: white; color: #0f172a; border-radius: 6px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); max-width: 400px; }
.eq-num { color: #166534; font-family: 'Teko', 'Noto Sans Bengali', sans-serif; text-shadow: none;}

.tv-strip-container:has(.equation-mode) .bd-strip-batsmen, .tv-strip-container:has(.equation-mode) .bd-strip-bowler, .tv-strip-container:has(.equation-mode) .bd-strip-score-wrapper { display: none; }
.tv-strip-container:has(.equation-mode) .match-top-bar { display: none; }

.bd-strip-result-overlay {
    position: absolute; inset: 0; background: rgba(11, 36, 71, 0.98); backdrop-filter: blur(10px); 
    border-radius: 8px; display: flex; align-items: center; justify-content: center; z-index: 50; 
    font-family: 'Teko', 'Noto Sans Bengali', sans-serif; font-size: 2.5rem; font-weight: 700; color: #FACC15; 
    text-transform: uppercase; animation: fadeIn 0.3s ease-out; text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.bd-strip-result-overlay.hidden { display: none !important; }

#warp-event-overlay { border-radius: 8px; z-index: 100;}
#warp-panel { box-shadow: inset 0 0 50px rgba(0,0,0,0.3); background-size: 200% 200%; animation: warpShimmer 2s linear infinite; }
@keyframes warpShimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.warp-4 { background: #15803d; border-color: #FACC15; }
.warp-6 { background: #FACC15; border-color: #0B2447; }
.warp-w { background: #dc2626; border-color: #ffffff; }
.warp-nb { background: #f97316; border-color: #000000; }
.warp-wd { background: #06b6d4; border-color: #ffffff; }
.warp-mil { background: linear-gradient(90deg, #FACC15, #ca8a04); border-color: #ffffff; }
.warp-default { background: #0B2447; border-color: #166534; }

/* ==========================================================================
   🚨 IN-LINE FIXTURE STRIP (SMART FIT 3-COLUMN LAYOUT) 🚨
   ========================================================================== */
#fixture-strip { display: flex; justify-content: center; align-items: flex-end; width: 100%; margin-bottom: 20px;}
#fixture-strip.hidden { display: none !important; }

.inline-fixture-card { 
    display: flex; align-items: center; justify-content: space-between; 
    height: 65px; width: 98%; max-width: 1100px; 
    font-family: 'Oswald', 'Noto Sans Bengali', sans-serif; 
    background: linear-gradient(90deg, rgba(11,36,71,0.95) 0%, rgba(22,101,52,0.95) 50%, rgba(11,36,71,0.95) 100%); 
    backdrop-filter: blur(12px); border: 1px solid rgba(250,204,21,0.3); 
    border-radius: 12px; box-shadow: 0 15px 50px rgba(0,0,0,0.7); 
    color: white; padding: 0 2rem; overflow: hidden; gap: 10px;
}

/* The 3 Column Rigid Structure */
.fs-col-left { width: 25%; display: flex; justify-content: flex-start; overflow: hidden; }
.fs-col-center { width: 50%; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.fs-col-right { width: 25%; display: flex; justify-content: flex-end; overflow: hidden; }

/* The Smart Ellipsis Shields */
.inline-fixture-tourney { 
    font-size: clamp(0.8rem, 1.2vw, 1rem); color: #cbd5e1; font-weight: bold; 
    text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; 
    overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

.inline-fixture-teams { 
    font-family: 'Teko', 'Noto Sans Bengali', sans-serif; font-weight: 700; 
    text-transform: uppercase; text-shadow: 0 2px 4px rgba(0,0,0,0.5); width: 100%;
}

.fs-team-name {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 42%; /* Ensures the VS badge is never crushed */
    display: inline-block; vertical-align: middle;
}

.fs-vs-badge { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1; display: inline-block; vertical-align: middle;}

.inline-fixture-venue { 
    font-size: clamp(0.8rem, 1.2vw, 1rem); color: #FACC15; font-weight: bold; 
    text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; 
    overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

#summary-card { position: absolute; inset: 0; background: transparent; z-index: 150; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; pointer-events: none; }
#summary-card.hidden { display: none !important; }
#summary-card.scorer-preview-mode { position: fixed; background: rgba(2, 6, 23, 0.9); backdrop-filter: blur(8px); pointer-events: auto; }

/* Helpers & UI */
.view { display: none !important; min-height: 100dvh; flex-direction: column; }
.view.active { display: flex !important; }
.input-dark { background-color: #0f172a !important; color: white !important; border: 1px solid #334155; border-radius: 0.25rem; }
#modal-overlay { backdrop-filter: blur(5px); }
.btn-toggle { background: #1e293b; color: #94a3b8; border: 1px solid #334155; border-radius: 0.375rem; padding: 0.5rem; font-weight: bold; width: 100%; transition: all 0.2s; }
.btn-toggle.active { background: #15803d; color: white; border-color: #22c55e; }
.btn-touch:active, .btn-toggle:active { transform: scale(0.96); transition: transform 0.1s; }
button { transition: all 0.1s ease-in-out; }
button:active { transform: scale(0.95); }
input[type="checkbox"] { accent-color: #15803d; }
input[type="radio"] { accent-color: #ef4444; }

#h-classic-scorecard, #live-classic-scorecard { border: 2px solid #0B2447 !important; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.8); width: 100%;}
#h-classic-scorecard th, #live-classic-scorecard th { background: #0B2447; color: #e2e8f0; font-weight: bold; padding: 8px 12px; }
#h-classic-scorecard td, #live-classic-scorecard td { border-bottom: 1px solid #1e293b; padding: 8px 12px; color: #f8fafc;}
#h-classic-scorecard .bg-gradient-to-r, #live-classic-scorecard .bg-gradient-to-r { background: linear-gradient(90deg, #166534, #0B2447) !important; border-bottom: 2px solid #FACC15; }
#view-scorer { background: radial-gradient(circle at top right, #0B2447, #020617); }
.stats-content { display: flex; align-items: center; }
.marquee-content { white-space: nowrap; animation: marquee 15s linear infinite; padding-left: 100%; font-weight: bold; text-transform: uppercase; font-size: 0.95rem; font-family: 'Noto Sans Bengali', sans-serif; width: 100%; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .tv-strip-container { height: auto; flex-wrap: wrap; justify-content: center; padding: 10px; transform: scale(0.9); transform-origin: bottom center; margin-top: 40px; gap: 8px;}
    .match-top-bar { top: -35px; left: 50%; transform: translateX(-50%); border-radius: 6px; max-width: 95%; width: auto;}
    .theme-pro .match-top-bar, .theme-purple .match-top-bar, .theme-t20-26 .match-top-bar { top: -30px; left: 50%; transform: translateX(-50%); }
    
    #o-roof-stats { font-size: 0.7rem; padding: 0 8px; gap: 6px; }
    
    .bd-strip-batsmen, .bd-strip-score-wrapper, .bd-strip-bowler { padding: 8px 15px; width: 100% !important; max-width: none !important; border-radius: 8px; }
    
    .bd-strip-score-wrapper { order: -1; padding: 0 !important; }
    .bd-score-main { padding: 10px 15px; }
    .bd-score-info { padding: 10px 15px; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); flex-direction: row; justify-content: center; width: 100%; gap: 15px;}
    .bd-overs-container { flex-direction: row; gap: 8px; align-items: baseline; }
    .info-label { margin-bottom: 0; }
    
    .bd-main-score { font-size: 3rem; }
    
    .ticker-strip { position: static; width: 100%; margin-top: 5px; border-radius: 8px !important; }
    
    /* 🚨 MOBILE STACKING FOR FIXTURE STRIP 🚨 */
    .inline-fixture-card { flex-direction: column; height: auto; padding: 15px; justify-content: center; gap: 8px; text-align: center; }
    .fs-col-left, .fs-col-center, .fs-col-right { width: 100%; justify-content: center; }
    .fs-team-name { max-width: 45%; font-size: 2rem; }
    .inline-fixture-tourney, .inline-fixture-venue { text-align: center; }
}

@media (max-width: 600px) {
    .bd-strip-result-overlay { font-size: 1.5rem; }
    .tv-strip-container { transform: scale(0.85); margin-bottom: 10px; }
}

@media (orientation: portrait) {
    #overlay-wrapper { transform: scale(0.65); transform-origin: center bottom; width: 100%; padding-bottom: 20px; }
    .tv-strip-container { width: 155%; margin-left: -27.5%; transform: scale(1); } 
}
