@charset "ISO-8859-1";

.sb--baseball {
    display: flex;
    flex-direction: column;
    margin: 5px 5px;
    min-width: 350px;
    max-width: 350px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
@media all and (min-width: 768px) {
    .sb--baseball {
        min-width: 375px;
        max-width: 375px;
    }
}
/*** @media all and (min-width: 820px) {
    .sb--baseball {
        flex: 1 1 auto;
        margin: 5px 5px;
        min-width: 400px;
        max-width: 400px;
        background-color: white;
        border: 1px solid darkgrey;
    }
} ***/
@media all and (min-width: 1095px) {
    .sb--baseball {
        min-width: 350px;
        max-width: 350px;
    }
}

/*** sb hide/show ***/
.hide--sb {
    display:none !important;
}
.show-inline--sb {
    display:inline-block !important;
}
.show--sb {
    display:block !important;
}


/* --- NEW MODERN HEADER --- */
.sb__game-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px; /* Reduced to match your updated footer */
    background-color: #f8fafc;
    border-bottom: 1px solid #edf2f7;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between the pulse dot and the text */
    font-size: 12px;
    font-weight: 800;
    color: #1a202c; /* Crisp dark slate for all states */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sb__game-status-row .bso {
    font-size: 12px;
    font-weight: 700;
    color: #4a5568;
    background: #edf2f7; /* Nice pill background */
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
/* Automatically hides the gray pill background when the JS empties the text */
.sb__game-status-row .bso:empty {
    display: none; 
}

.sb__game-status-row .base-runners img {
    height: 20px;
    width: auto;
}

/* --- HARDWARE ACCELERATED PULSE DOT --- */
span.live-game {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #3b82f6; /* Modern Tech Blue */
}

/* The expanding ring */
span.live-game::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background-color: #3b82f6;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(2.5); opacity: 0; }
}

.sb__info-top-row th, 
.sb__info th {
    font-size: 10px;
    color: #a0aec0;
    text-transform: uppercase;
    padding: 8px 0 4px 0;
    border-bottom: none !important; /* This kills the separator line */
}
/* --- NEW MODERN HEADER --- */



/*** info ***/

.sb__info {
    width:100%;
    font-size: 10px;
    font-weight: normal;
    text-align: left;
    color: black; 
}
.sb__info table {
    width: 100%;
    border-collapse: collapse;
}
.sb__info th {
    border-bottom: solid 1px #CCC;
    color: #003366;
}


span.live-game {
    margin-left: 3px;
    margin-right: auto;
    width: 6px;
    height: 6px;
    border-radius: 6px;
    background-color: blue;  
}
.sb__info .game-status {
    padding: 2px 0 1px 0;
    display: flex;
    justify-content: left;
    align-items: center;
}

.sb__info th.rhe {
    padding: 3px 0 3px 0;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
}
.sb__info td.winner {
    padding: 0px;
    width:4%;
    font-size: 12px;
    font-weight: bold;
}
/* Scorebox Team Info Block */
.sb-team-cell {
    padding: 0;           /* Let the link handle the padding */
    vertical-align: middle;
    text-align: left;
}
/* Scorebox Team Info Block */
.sb-team-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 3px;
}
a.sb-team-link:hover {
    font-weight: normal;
}
a.sb-team-link:hover .sb-name {
    opacity: 0.8;         /* Subtle feedback on hover */
    text-decoration: underline;
}
/* Stack for Rank, Name, and Record */
.sb-text-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}
/* Horizontal Row for Rank + Name */
.sb-name-row {
    display: flex;
    align-items: center;
    gap: 4px; /* Space between rank and name */
}
.sb-rank {
    font-size: 13px; 
    font-weight: bold;
    color: black;
}
.sb-name {
    font-size: 14px;
    font-weight: bold;
    color: #003366;
}
.sb-record {
    font-size: 11px;
    color: #666;
}


.sb__info td.rhe {
    padding: 3px;
    width: 9%;
    font-size: 14px;
    text-align: center;
}
.sb__info td.runs {
    font-size: 15px;
    font-weight: bold;
}


/*** innings ***/
.sb__live-action {
    padding: 10px 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

/* --- AUTO-HIDE MAGIC --- */
.dash-last-play:empty, 
.dash-matchup:empty {
    display: none;
}

/* --- TOP: LAST PLAY STYLING --- */
.dash-last-play {
    font-size: 11px;
    font-style: italic;
    color: #4a5568;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0; 
    margin-bottom: 8px;
}

/* --- MIDDLE: INNINGS GRID --- */
.inning-grid {
    display: grid;
    grid-template-columns: 45px repeat(var(--cols, 9), 1fr); 
    text-align: center;
    align-items: center;
}

.inn-lbl { 
    font-size: 10px; 
    font-weight: 800; 
    color: #a0aec0; 
    padding-bottom: 6px; 
    border-bottom: 1px solid #e2e8f0; 
    margin-bottom: 4px;
}

.inn-lbl-corner { 
    font-size: 10px; 
}

.t1-name, .inn-cell[class*="t1-inn"] { /* Renamed from inn-v */
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.inn-t-name { font-size: 11px; font-weight: 700; color: #718096; text-align: left; text-transform: uppercase;}
.inn-cell { font-size: 12px; font-weight: 500; color: #1a202c; }

/* --- BOTTOM: PITCHER / BATTER STYLING --- */
.dash-matchup {
    display: flex;
    justify-content: space-between; 
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
    font-size: 11px;
    font-weight: 600;
}
.dash-matchup .pitcher { color: #2b6cb0; } 
.dash-matchup .batter { color: #c53030; }

/* -- old inn style -- */

.sb__innings {
    background-color: white;
    width: 100%;
    padding: 10px 10px 10px 10px;
    vertical-align: top;
    border-top: 1px solid #ccc;
}

.sb__innings table {
    width: 100%;
    border-collapse: collapse;
}
.sb__innings th {
    padding: 0 0 3px 0;
    text-align: center;
    width: 25px;
    color: #48494a;
    border-bottom: 1px solid #cbccce;
    background-color: white;
    font-weight: normal;
    font-size: 10px;
}
.sb__innings th:first-child {
    width:40px !important;
}

.sb__innings td {
    color: #48494a;
    padding: 3px 0;
    width: 25px;
    font-family: "BentonSans",-apple-system,"Roboto",Helvetica,Arial,sans-serif;
    font-size: 11px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #cbccce;
    border-left: 1px solid #cbccce;
    border-top: none;
    background-color: white;
    font-weight: normal;
}
.sb__innings td:first-child {
    width:40px !important;
}

.sb__innings .inn-R,
.sb__innings .inn-H,
.sb__innings .inn-E {
    background-color:#f2f2f2 !important;
}
.sb__innings td:last-child {
    border-right: 1px solid #cbccce;
}

/*** live win prob ***/
.sb__lwp {
    width: 100%;
    padding: 12px 16px;
    background-color: white;
    border-top: 1px solid #edf2f7;
    box-sizing: border-box; /* Ensures padding doesn't break the width */
}

.lwp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #4a5568; /* Neutral, professional text color */
}

.lwp-progress-bar {
    height: 6px;
    border-radius: 3px;
    display: flex;
    gap: 2px; /* 1. Creates a hard slice between the two colors */
    overflow: hidden;
    background: #edf2f7; 
}

.lwp-fill-1, .lwp-fill-2 {
    height: 100%;
    min-width: 3%; /* 2. Ensures the 1% loser is always visible as a colored cap */
    transition: width 0.5s ease-in-out, background-color 0.5s ease;
}

.sb__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Keeps network aligned to the bottom if the left side stacks */
    gap: 15px; /* Creates a hard bumper so the left text can NEVER touch the network */
    padding: 8px 10px;
    font-size: 10px;
    color: #718096;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    margin-top: auto; /* Pushes footer to the bottom if content heights vary */
}

.sb__footer .footer-left {
    text-align: left;
    line-height: 1.4;
    font-weight: 600;
    flex: 1 1 75%;
}

.sb__footer .footer-right {
    text-align: right;
    font-weight: 800;
    color: #4a5568;
    text-transform: uppercase;
    flex: 0 0 25%; /* Strictly caps this column at 25% width */
    line-height: 1.2;
}


