/* --- Custom Stylesheet for Match Center, Scoring App, & Analytics --- */

:root {
    --color-dot: #64748b;
    --color-runs: #1e293b;
    --color-boundary-4: #2563eb;
    --color-boundary-6: #d97706;
    --color-wicket: #dc2626;
    --color-extra: #0891b2;
}

/* --- Live Dot Animation --- */
.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--color-wicket);
    border-radius: 50%;
    margin-right: 8px;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* --- Live Match Tag Header --- */
.live-match-header {
    background-color: #fee2e2;
    color: var(--color-wicket);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Scoring Console Layout --- */
.scorer-container {
    max-width: 1100px;
    margin: 30px auto;
}

.setup-panel {
    background: var(--pure-white);
    padding: 45px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
}

.setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Scorer Console Grid */
.scorer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
}

.scorer-card {
    background: var(--pure-white);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.scorer-card:hover {
    box-shadow: var(--shadow-md);
}

.scorer-card h3 {
    border-bottom: 2px solid var(--slate-100);
    padding-bottom: 12px;
    margin-bottom: 24px;
    color: var(--navy-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
}

/* Active Batsmen Board */
.batsmen-scoring-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.batsmen-scoring-table th {
    text-align: left;
    color: var(--slate-400);
    font-weight: 700;
    padding: 12px 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--slate-100);
}

.batsmen-scoring-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--slate-100);
    font-size: 0.95rem;
    color: var(--slate-700);
}

.batsmen-scoring-table tr.active-striker {
    background-color: rgba(241, 196, 15, 0.06);
    font-weight: 700;
    color: var(--navy-dark);
}

.batsmen-scoring-table tr.active-striker td:first-child {
    color: var(--navy-blue);
}

.batsmen-scoring-table tr.active-striker td:first-child::before {
    content: "🏏 ";
    font-size: 1rem;
}

/* Bowler Scoring Row */
.bowler-scoring-info {
    display: flex;
    justify-content: space-between;
    background-color: var(--slate-100);
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 5px solid var(--navy-blue);
    font-weight: 700;
    color: var(--navy-dark);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

/* Control Pad (Run Buttons) */
.runs-pad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.btn-run {
    height: 55px;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--slate-200);
    background-color: var(--pure-white);
    color: var(--slate-800);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-run:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--navy-blue);
}

.btn-run:active {
    transform: scale(0.96);
}

/* Premium Scoring Colors */
.btn-run-0 { border-color: var(--slate-300); color: var(--slate-600); }
.btn-run-0:hover { background-color: var(--slate-100); border-color: var(--slate-400); }

.btn-run-4 { border-color: var(--color-boundary-4); color: var(--color-boundary-4); }
.btn-run-4:hover { background-color: var(--color-boundary-4); color: var(--pure-white); }

.btn-run-6 { border-color: var(--color-boundary-6); color: var(--color-boundary-6); }
.btn-run-6:hover { background-color: var(--color-boundary-6); color: var(--pure-white); }

.btn-run-wk { border-color: var(--color-wicket); color: var(--color-wicket); font-weight: 800; }
.btn-run-wk:hover { background-color: var(--color-wicket); color: var(--pure-white); }

.btn-run-extra { border-color: var(--color-extra); color: var(--color-extra); }
.btn-run-extra:hover { background-color: var(--color-extra); color: var(--pure-white); }

/* Over Ball Timeline */
.over-timeline-container {
    margin: 24px 0 10px 0;
    padding-top: 15px;
    border-top: 1px dashed var(--slate-200);
}

.over-timeline {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0;
}

.ball-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--pure-white);
    background-color: var(--navy-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.ball-badge:hover {
    transform: scale(1.08);
}

.ball-badge.dot { background-color: var(--slate-400); }
.ball-badge.four { background-color: var(--color-boundary-4); }
.ball-badge.six { background-color: var(--color-boundary-6); }
.ball-badge.wicket { background-color: var(--color-wicket); }
.ball-badge.extra { background-color: var(--color-extra); }

/* --- Modals & Overlays --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(6, 18, 38, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1; pointer-events: auto;
}

.modal-content {
    background: var(--pure-white);
    padding: 35px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--slate-200);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    border-bottom: 2px solid var(--slate-100);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--navy-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--slate-400);
    transition: var(--transition-fast);
}

.modal-close:hover { 
    color: var(--color-wicket); 
}

/* --- Commentary & Recent Actions Feed --- */
.commentary-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-100);
    border-left: 5px solid var(--slate-300);
    margin-bottom: 12px;
    background-color: var(--pure-white);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    display: flex;
    align-items: flex-start;
    transition: var(--transition-fast);
}

.commentary-item:hover {
    background-color: var(--slate-50);
}

.commentary-item.boundary-commentary { border-left-color: var(--accent-gold); }
.commentary-item.wicket-commentary { border-left-color: var(--color-wicket); }
.commentary-item.extra-commentary { border-left-color: var(--color-extra); }
.commentary-item.info-commentary { 
    border-left-color: var(--navy-blue); 
    background-color: var(--slate-100); 
    font-weight: 700; 
}

.commentary-ball {
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--navy-blue);
    font-size: 1.1rem;
    margin-right: 20px;
    display: inline-block;
    width: 48px;
    flex-shrink: 0;
}

.commentary-text {
    flex: 1;
    font-size: 0.98rem;
    color: var(--slate-700);
}

/* --- Stats Info display --- */
.info-card {
    background: var(--pure-white);
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.info-label {
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--navy-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-value {
    color: var(--slate-600);
    font-size: 1rem;
}

/* Extras toggle pills row */
.extras-pills-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--slate-100);
    padding: 12px;
    border-radius: 10px;
    justify-content: space-between;
}

.extras-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 22px;
    background: var(--pure-white);
    border: 1px solid var(--slate-200);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--slate-700);
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.extras-pill input {
    display: none; 
}

.extras-pill:hover {
    border-color: var(--navy-blue);
    background-color: var(--slate-50);
}

.extras-pill.active {
    background: var(--navy-blue);
    color: var(--pure-white);
    border-color: var(--navy-blue);
    box-shadow: 0 4px 12px rgba(11, 29, 58, 0.2);
}

/* --- Responsive & Scroll elements --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
}

.scorecard-table {
    min-width: 600px;
}

/* --- Print Stylings --- */
@media print {
    header, footer, .innings-tabs, .no-print, #live-stream-container, .social-links {
        display: none !important;
    }
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .page-header {
        padding: 10px 0 !important;
        border-bottom: 2px solid #000 !important;
        background: none !important;
        color: #000 !important;
    }
    .tab-content {
        display: block !important; 
    }
    .scorecard-table th {
        background-color: #f1f5f9 !important;
        color: #000 !important;
        border-bottom: 2px solid #cbd5e1 !important;
    }
}

/* --- Global Innings Navigation Tabs (Futuristic Design) --- */
.innings-tabs {
    display: flex;
    gap: 12px;
    margin: 25px 0;
    border-bottom: 2px solid var(--slate-200);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--pure-white);
    color: var(--navy-blue);
    border: 1px solid var(--slate-200);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.tab-btn i {
    color: var(--slate-400);
    transition: var(--transition-fast);
}

.tab-btn:hover {
    background: var(--slate-50);
    color: var(--navy-dark);
    border-color: var(--slate-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-btn:hover i {
    color: var(--accent-gold);
}

.tab-btn.active {
    background: var(--gold-gradient);
    color: var(--navy-dark) !important;
    border-color: transparent;
    box-shadow: var(--shadow-gold);
}

.tab-btn.active i {
    color: var(--navy-dark);
}

/* --- Mobile Responsiveness overrides --- */
@media (max-width: 768px) {
    .scorer-grid, .setup-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .scorer-card {
        padding: 20px !important;
    }
    
    .runs-pad {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }
    
    .btn-run {
        height: 50px !important;
        font-size: 1.1rem !important;
    }
    
    .extras-pills-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px;
    }
    
    .extras-pill {
        flex: 1 1 40%;
        height: 38px !important;
        font-size: 0.75rem !important;
    }
    
    .innings-tabs {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch !important;
        border-bottom: 2px solid var(--slate-200);
    }
    
    .tab-btn {
        flex: 0 0 auto !important;
        padding: 10px 18px !important;
        font-size: 0.9rem !important;
    }
}

/* ==================================================== */
/* --- MATCH CENTER & SCORECARD STYLES (CricHeroes Style) --- */
/* ==================================================== */

/* Matches Grid */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Match Cards */
.match-card {
    background: var(--pure-white);
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--navy-light);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--slate-500);
}

.match-venue {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.match-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.match-status.live-text {
    background-color: #fee2e2;
    color: #dc2626;
}

.match-status.past-text {
    background-color: #f1f5f9;
    color: #475569;
}

.match-card h4 {
    font-size: 1.15rem;
    color: var(--navy-dark);
    font-weight: bold;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
}

.team-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--slate-800);
    padding: 4px 0;
}

.team-score.text-muted {
    color: var(--slate-400);
}

.team-score strong {
    font-weight: 700;
    color: var(--navy-blue);
}

.team-score .score {
    font-weight: 800;
    color: var(--navy-dark);
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

.team-score .overs {
    font-size: 0.8rem;
    color: var(--slate-500);
    font-weight: 500;
    margin-left: 4px;
}

.match-footer {
    border-top: 1px dashed var(--slate-200);
    padding-top: 12px;
    margin-top: 4px;
}

.winner-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Match Detail Scoreboard Hero Section */
.match-summary-hero {
    background-color: var(--navy-blue);
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 0%, transparent 40%), 
                      radial-gradient(circle at 90% 80%, rgba(255,255,255,0.03) 0%, transparent 40%),
                      linear-gradient(135deg, var(--navy-dark), var(--navy-blue));
    color: var(--pure-white);
    padding: 50px 0;
    border-bottom: 5px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.match-meta {
    text-align: center;
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.match-meta i {
    color: var(--accent-gold);
}

.match-scoreboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 30px;
}

.team-block {
    flex: 1;
    text-align: left;
}

.team-block h2 {
    font-size: 1.9rem;
    color: var(--pure-white);
    font-weight: bold;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.team-block:last-child {
    text-align: right;
}

.big-score {
    font-size: 2.5rem;
    color: var(--accent-gold);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.big-score .overs {
    font-size: 1.2rem;
    color: var(--pure-white);
    font-weight: 500;
    margin-left: 5px;
}

.vs-badge {
    background: var(--accent-gold);
    color: var(--navy-dark);
    font-weight: 800;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
}

.match-toss {
    background: rgba(255,255,255,0.06);
    padding: 8px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

/* Premium Scorecard Table */
.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.scorecard-table.batting-table,
.scorecard-table.bowling-table {
    table-layout: fixed;
}

.scorecard-table th {
    background-color: var(--navy-blue) !important;
    color: var(--pure-white) !important;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    border: none;
}

.scorecard-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--slate-200);
    color: var(--slate-700);
    font-size: 0.9rem;
    vertical-align: middle;
    word-break: break-word;
}

.scorecard-table tbody tr:nth-child(even) {
    background-color: rgba(9, 21, 43, 0.015);
}

.scorecard-table tbody tr:hover {
    background-color: rgba(207, 168, 60, 0.04);
}

/* Explicit Batting Scorecard Column Widths */
.scorecard-table.batting-table th:first-child,
.scorecard-table.batting-table td:first-child {
    width: 32% !important;
    text-align: left;
}

.scorecard-table.batting-table th:nth-child(2),
.scorecard-table.batting-table td:nth-child(2) {
    width: 24% !important;
    text-align: left;
}

.scorecard-table.batting-table th:nth-child(3),
.scorecard-table.batting-table td:nth-child(3),
.scorecard-table.batting-table th:nth-child(4),
.scorecard-table.batting-table td:nth-child(4),
.scorecard-table.batting-table th:nth-child(5),
.scorecard-table.batting-table td:nth-child(5),
.scorecard-table.batting-table th:nth-child(6),
.scorecard-table.batting-table td:nth-child(6),
.scorecard-table.batting-table th:nth-child(8),
.scorecard-table.batting-table td:nth-child(8) {
    width: 7% !important;
    text-align: center;
}

.scorecard-table.batting-table th:nth-child(7),
.scorecard-table.batting-table td:nth-child(7) {
    width: 9% !important;
    text-align: center;
}

/* Explicit Bowling Scorecard Column Widths */
.scorecard-table.bowling-table th:first-child,
.scorecard-table.bowling-table td:first-child {
    width: 45% !important;
    text-align: left;
}

.scorecard-table.bowling-table th:not(:first-child),
.scorecard-table.bowling-table td:not(:first-child) {
    width: 11% !important;
    text-align: center;
}

/* Player stats profiles responsive layout classes */
.stats-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stats-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
    text-align: center;
}

/* Additional Responsive Tweaks */
@media (max-width: 768px) {
    .match-scoreboard {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }
    
    .team-block {
        text-align: center !important;
    }
    
    .team-block:last-child {
        text-align: center !important;
    }
    
    .team-block h2 {
        font-size: 1.5rem !important;
    }
    
    .big-score {
        font-size: 2rem !important;
    }
    
    .vs-badge {
        margin: 5px auto !important;
    }
    
    .stats-select-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats-highlight-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .wagon-wheel-field {
        width: 290px !important;
        height: 290px !important;
    }
    
    .wagon-wheel-field canvas {
        width: 290px !important;
        height: 290px !important;
    }
}

@media (max-width: 380px) {
    .wagon-wheel-field {
        width: 250px !important;
        height: 250px !important;
    }
    
    .wagon-wheel-field canvas {
        width: 250px !important;
        height: 250px !important;
    }
}

/* ==================================================== */
/* --- DEVICE-SPECIFIC SCREEN OVERRIDES --- */
/* ==================================================== */

/* Desktop Device Layouts */
body.is-desktop-device .match-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.is-desktop-device .match-card {
    padding: 24px;
    border-radius: 14px;
}

body.is-desktop-device .scorer-grid {
    display: grid !important;
    grid-template-columns: 2.2fr 1fr !important;
    gap: 30px !important;
}

body.is-desktop-device .setup-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
}

body.is-desktop-device .match-scoreboard {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

@media (max-width: 1200px) {
    body.is-desktop-device .match-scoreboard {
        gap: 15px !important;
        max-width: 100% !important;
        padding: 0 10px;
    }
    body.is-desktop-device .team-block h2 {
        font-size: 1.35rem !important;
    }
    body.is-desktop-device .big-score {
        font-size: 1.9rem !important;
    }
    body.is-desktop-device .big-score .overs {
        font-size: 1rem !important;
    }
}

@media (max-width: 992px) {
    body.is-desktop-device .match-scoreboard {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    body.is-desktop-device .team-block {
        text-align: center !important;
    }
    body.is-desktop-device .team-block:last-child {
        text-align: center !important;
    }
    body.is-desktop-device .vs-badge {
        margin: 5px auto !important;
    }
    body.is-desktop-device .team-block h2 {
        font-size: 1.4rem !important;
    }
    body.is-desktop-device .big-score {
        font-size: 1.8rem !important;
    }
}

/* Mobile Device Layouts */
body.is-mobile-device .scorer-grid,
body.is-mobile-device .setup-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

body.is-mobile-device .match-scoreboard {
    flex-direction: column !important;
    text-align: center !important;
    gap: 20px !important;
}

body.is-mobile-device .team-block {
    text-align: center !important;
}

body.is-mobile-device .team-block:last-child {
    text-align: center !important;
}

body.is-mobile-device .big-score {
    font-size: 2rem !important;
}

body.is-mobile-device .runs-pad {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
}

body.is-mobile-device .btn-run {
    height: 50px !important;
    font-size: 1.1rem !important;
}

body.is-mobile-device .extras-pill {
    flex: 1 1 40% !important;
    height: 38px !important;
    font-size: 0.75rem !important;
}

body.is-mobile-device .wagon-wheel-field,
body.is-mobile-device .wagon-wheel-field canvas {
    width: 280px !important;
    height: 280px !important;
}

