/**
 * AMBL Project: calendar.css
 * VERSION: Gold Code 10.7 - WINNER BOX HIGHLIGHT
 * * DESCRIPTION:
 * Complete visual logic for the AMBL Calendar.
 * Added left and right green vertical bars + subtle background fill 
 * to highlight the winning team's box in both Grid and List views.
 * * LINE COUNT AUDIT: ~860 Lines
 */

/* ---------------------------------------------------------
   ROOT DESIGN TOKENS (1. REGULAR DENSITY)
--------------------------------------------------------- */
:root {
    --ambl-blue: #002d62;
    --ambl-red: #ba0c2f;
    --bg-body: #f1f3f5;
    --bg-card: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --win-green: #28a745;
    --mod-orange: #fd7e14;
    
    /* Status Specific Colors */
    --status-rain: #007bff;
    --status-ppd: #8e24aa;
    --status-tbd: #d81b60;
    --status-tie: #ffc107;

    /* EXPLICIT PIXEL SIZES - Bypasses `rem` scaling failures */
    --fs-team: 12px;
    --fs-meta: 10px;
    --fs-day: 14px;
    --fs-bg-num: 45px;
    --fs-brick: 14px;
    --lh-blk: 1.15;
    --rad-blk: 4px;
    --cal-day-min-h: 110px;
    
    --pad-blk-v: 3px;
    --pad-blk-h: 4px;
    --gap-blk: 3px;
    --div-pos-v: 4px;
    --div-pos-h: 4px;
    
    --pad-day-v: 4px;
    --pad-day-h: 4px;
    --pad-day-head: 8px;

    /* Scalable List View Variables */
    --fs-list-base: 13px;
    --fs-list-score: 15px;
    --pad-list-v: 4px;
    --pad-list-h: 8px;
    --pad-rep-v: 4px;
    --pad-rep-h: 8px;
}

/* ---------------------------------------------------------
   2. LARGE MODE OVERRIDES
--------------------------------------------------------- */
body.font-lg {
    --fs-team: 14px;
    --fs-meta: 11px;
    --fs-day: 16px;
    --fs-bg-num: 55px;
    --fs-brick: 16px;
    --lh-blk: 1.3;
    --rad-blk: 6px;
    --cal-day-min-h: 140px;
    
    --pad-blk-v: 6px;
    --pad-blk-h: 8px;
    --gap-blk: 6px;
    --div-pos-v: 6px;
    --div-pos-h: 8px;
    
    --pad-day-v: 8px;
    --pad-day-h: 8px;
    --pad-day-head: 15px;

    --fs-list-base: 15px;
    --fs-list-score: 18px;
    --pad-list-v: 8px;
    --pad-list-h: 10px;
    --pad-rep-v: 6px;
    --pad-rep-h: 12px;
}

/* ---------------------------------------------------------
   3. COMPACT MODE OVERRIDES (schedule.php EXTREME DENSITY)
--------------------------------------------------------- */
body.font-sm {
    /* Aggressive shrink for exact legacy matching */
    --fs-team: 10.5px; 
    --fs-meta: 9px;
    --fs-day: 12px;
    --fs-bg-num: 35px;
    --fs-brick: 12px;
    --lh-blk: 1.0;
    --rad-blk: 2px;
    --cal-day-min-h: 75px;
    
    --pad-blk-v: 1px;
    --pad-blk-h: 2px;
    --gap-blk: 1px;
    --div-pos-v: 2px;
    --div-pos-h: 2px;
    
    --pad-day-v: 2px;
    --pad-day-h: 2px;
    --pad-day-head: 4px;

    --fs-list-base: 11px;
    --fs-list-score: 12px;
    --pad-list-v: 1px;
    --pad-list-h: 4px;
    --pad-rep-v: 1px;
    --pad-rep-h: 4px;
}

/* ---------------------------------------------------------
   DARK MODE OVERRIDES
--------------------------------------------------------- */
body.dark-mode {
    --bg-body: #0a0c10;
    --bg-card: #161b22;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --border-color: #30363d;
    --win-green: #3fb950;
    --ambl-blue: #58a6ff;
    
    /* main2.css Header Synchronization */
    --top-bar-bg: #000000;
    --top-bar-text: #e0e0e0;
    --top-bar-accent: #ffc107;
    --nav-bg: #181818;
    --nav-text: #f5f5f5;
    --nav-hover-bg: #cb0017;
    --nav-hover-text: #ffffff;
}

/* ---------------------------------------------------------
   GLOBAL BODY STYLES
--------------------------------------------------------- */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    transition-property: background-color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    overflow-x: hidden;
    position: relative;
}

/* ---------------------------------------------------------
   HEADER COMPATIBILITY BRIDGE (INDEX2.PHP INTEGRATION)
--------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    padding-top: 0px;
    padding-right: 20px;
    padding-bottom: 0px;
    padding-left: 20px;
}

a.nav-btn:link, 
a.nav-btn:visited, 
a.nav-btn:hover, 
a.nav-btn:active {
    color: #ffffff;
}

.division-links a:link,
.division-links a:visited {
    color: var(--top-bar-text);
}

.nav-links a:link,
.nav-links a:visited {
    color: var(--nav-text) !important;
}

/* ---------------------------------------------------------
   WATERMARK VISUALS
--------------------------------------------------------- */
.page-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 800px;
    opacity: 0.07;
    pointer-events: none;
    z-index: -1;
}

body.dark-mode .page-watermark {
    opacity: 0.04;
    filter: brightness(2);
}

.day-bg-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--fs-bg-num);
    font-weight: 900;
    color: rgba(0,0,0,0.06);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    text-align: center;
}

body.dark-mode .day-bg-num {
    color: rgba(255,255,255,0.08);
}

/* ---------------------------------------------------------
   STANDINGS DRAWER & OVERLAY MASK
--------------------------------------------------------- */
.overlay-mask {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2100;
}

.overlay-mask.visible {
    display: block;
}

.standings-overlay {
    position: fixed;
    top: 0px;
    left: -550px;
    width: 500px;
    height: 100%;
    background-color: var(--bg-card);
    z-index: 2200;
    transition-property: left;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0px 40px rgba(0,0,0,0.6);
    overflow-y: auto;
}

.standings-overlay.open {
    left: 0px;
}

.drawer-header {
    background-color: var(--ambl-blue);
    color: #ffffff;
    padding-top: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-brand h2 {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.drawer-logo {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.close-btn {
    background-color: transparent;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.drawer-body {
    padding-top: 25px;
    padding-right: 25px;
    padding-bottom: 25px;
    padding-left: 25px;
}

.standings-group {
    margin-bottom: 35px;
}

.div-head {
    background-color: rgba(0,0,0,0.05);
    padding-top: 10px;
    padding-right: 15px;
    padding-bottom: 10px;
    padding-left: 15px;
    font-weight: 900;
    border-left-width: 6px;
    border-left-style: solid;
    border-left-color: var(--ambl-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.standings-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.standings-data-table th {
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: var(--border-color);
    padding-top: 8px;
    padding-right: 4px;
    padding-bottom: 8px;
    padding-left: 4px;
    text-align: center;
    font-weight: bold;
}

.standings-data-table td {
    padding-top: 8px;
    padding-right: 4px;
    padding-bottom: 8px;
    padding-left: 4px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--border-color);
    text-align: center;
}

.standings-data-table th:first-child, 
.standings-data-table td:first-child {
    text-align: left;
    padding-left: 8px;
}

.pts-col {
    background-color: rgba(0,0,0,0.02);
    font-weight: 900;
    color: var(--text-main);
}

.active-team-row {
    background-color: rgba(186, 12, 47, 0.08);
}

body.dark-mode .standings-overlay {
    background-color: #161b22; 
}
body.dark-mode .div-head {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
}
body.dark-mode .standings-data-table th {
    color: #8b949e;
    border-bottom-color: #30363d;
}
body.dark-mode .standings-data-table td {
    color: #f0f6fc;
    border-bottom-color: #30363d;
}
body.dark-mode .pts-col {
    background-color: rgba(255,255,255,0.05);
    color: #ffc107;
}
body.dark-mode .active-team-row {
    background-color: rgba(255, 107, 129, 0.15); 
}

/* ---------------------------------------------------------
   HEADER & NAVIGATION CONTROLS
--------------------------------------------------------- */
.calendar-controls {
    background: linear-gradient(180deg, #002d62 0%, #001a3a 100%);
    padding-top: 12px;
    padding-right: 20px;
    padding-bottom: 12px;
    padding-left: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.4);
    color: #ffffff;
    position: relative;
    z-index: 90;
}

.header-logo {
    height: 48px;
    width: auto;
    margin-right: 15px;
    vertical-align: middle;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-group select {
    background-color: rgba(255,255,255,0.15);
    color: #ffffff;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: rgba(255,255,255,0.3);
    border-right-color: rgba(255,255,255,0.3);
    border-bottom-color: rgba(255,255,255,0.3);
    border-left-color: rgba(255,255,255,0.3);
    padding-top: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    border-radius: 4px;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.filter-group select option {
    color: #333333;
}

.nav-btn {
    background-color: var(--ambl-red);
    color: #ffffff;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    cursor: pointer;
}

.nav-btn.secondary {
    background-color: #4a4a4a;
}

.nav-dropdown {
    background-color: transparent !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 4px;
    padding: 6px 12px !important;
    margin: 0 10px;
    cursor: pointer;
    outline: none;
    text-align: center;
    transition: all 0.2s ease;
}

.nav-dropdown:hover {
    background-color: rgba(255,255,255,0.1) !important;
}

.nav-dropdown option {
    color: #333333 !important;
    text-align: center;
    font-weight: bold;
}

.standings-btn {
    background-color: var(--win-green);
    color: #ffffff;
    font-weight: 900;
    padding-top: 8px;
    padding-right: 14px;
    padding-bottom: 8px;
    padding-left: 14px;
    border-radius: 4px;
    cursor: pointer;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gn-toggle-btn {
    background-color: #555555;
    color: #ffffff;
    font-weight: 900;
    padding-top: 8px;
    padding-right: 10px;
    padding-bottom: 8px;
    padding-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    font-size: 0.75rem;
    transition-property: background-color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

.gn-toggle-btn.active {
    background-color: var(--mod-orange);
    box-shadow: inset 0px 2px 4px rgba(0,0,0,0.3);
}

.gn-mod-box {
    display: inline-block;
    background-color: var(--mod-orange);
    color: #ffffff !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85em;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ---------------------------------------------------------
   CALENDAR GRID SYSTEM
--------------------------------------------------------- */
.calendar-wrapper {
    max-width: 100%;
    margin-top: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    margin-left: 15px;
    background-color: var(--bg-card);
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: var(--border-color);
    border-right-color: var(--border-color);
    border-bottom-color: var(--border-color);
    border-left-color: var(--border-color);
    border-radius: 4px;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day-header {
    background-color: rgba(0,0,0,0.05);
    color: var(--text-muted);
    text-align: center;
    padding-top: var(--pad-day-head);
    padding-right: 15px;
    padding-bottom: var(--pad-day-head);
    padding-left: 15px;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 1.8px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--border-color);
    text-transform: uppercase;
}

.calendar-day {
    min-height: var(--cal-day-min-h);
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: var(--border-color);
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--border-color);
    padding-top: var(--pad-day-v);
    padding-right: var(--pad-day-h);
    padding-bottom: var(--pad-day-v);
    padding-left: var(--pad-day-h);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.day-label {
    font-weight: 900;
    font-size: var(--fs-day);
    color: var(--text-muted);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.today-box {
    outline-width: 3px;
    outline-style: solid;
    outline-color: var(--ambl-red);
    outline-offset: -3px;
    background-color: rgba(186, 12, 47, 0.04) !important;
}

.today-box .day-label {
    color: var(--ambl-red);
}

/* ---------------------------------------------------------
   GAME BLOCKS & STATUS
--------------------------------------------------------- */
.game-block {
    margin-bottom: var(--gap-blk);
    border-radius: var(--rad-blk);
    cursor: pointer;
    background-color: rgba(0,0,0,0.03);
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: var(--border-color);
    border-right-color: var(--border-color);
    border-bottom-color: var(--border-color);
    border-left-color: var(--border-color);
    padding-top: var(--pad-blk-v);
    padding-right: var(--pad-blk-h);
    padding-bottom: var(--pad-blk-v);
    padding-left: var(--pad-blk-h);
    line-height: var(--lh-blk);
    position: relative;
    z-index: 2;
}

/* FORCE FONT INHERITANCE THROUGH MAIN2.CSS */
.game-block .team-name,
.game-block .name-full,
.game-block .name-mobile,
.game-block .team-score {
    font-size: var(--fs-team) !important;
}

.game-block .game-meta-line,
.game-block .div-label,
.game-block .field-abb,
.game-block .field-full,
.game-block .rec-hide-mobile {
    font-size: var(--fs-meta) !important;
}


body.dark-mode .game-block {
    background-color: rgba(255,255,255,0.07);
}

.game-block.mod-future, 
.game-brick.mod-future {
    border-top-width: 2px !important;
    border-right-width: 2px !important;
    border-bottom-width: 2px !important;
    border-left-width: 2px !important;
    border-top-color: var(--mod-orange) !important;
    border-right-color: var(--mod-orange) !important;
    border-bottom-color: var(--mod-orange) !important;
    border-left-color: var(--mod-orange) !important;
}

.div-label {
    position: absolute;
    top: var(--div-pos-v);
    right: var(--div-pos-h);
    font-weight: 900;
    color: #1a1a1a;
}

body.dark-mode .div-label {
    color: #f0f6fc;
}

.game-meta-line { 
    font-weight: 700; 
    color: var(--ambl-blue); 
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--border-color);
    margin-bottom: 4px;
    padding-bottom: 3px;
}

.team-line {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-top: 2px;
    margin-right: 0px;
    margin-bottom: 2px;
    margin-left: 0px;
    /* Reserve space for winner borders to prevent layout shift */
    border-left-width: 3px;
    border-left-style: solid;
    border-left-color: transparent;
    border-right-width: 3px;
    border-right-style: solid;
    border-right-color: transparent;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 3px;
    transition-property: background-color, border-color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

.team-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.team-score {
    font-weight: 900;
    min-width: 20px;
    text-align: right;
}

/* ---------------------------------------------------------
   WINNER HIGHLIGHTING & STATUS BOXES
--------------------------------------------------------- */
.winner-highlight {
    color: var(--win-green) !important;
    font-weight: 900;
}

/* Grid View Winner Box */
.team-line.winner-highlight {
    border-left-color: var(--win-green);
    border-right-color: var(--win-green);
    background-color: rgba(40, 167, 69, 0.08);
}

body.dark-mode .team-line.winner-highlight {
    background-color: rgba(63, 185, 80, 0.12);
}

/* List View Winner Box (Table Cells) */
.schedule-list-table td.list-team-name.winner-highlight,
.schedule-list-table td.list-home-team.winner-highlight {
    border-left-width: 4px !important;
    border-left-style: solid !important;
    border-left-color: var(--win-green) !important;
    background-color: rgba(40, 167, 69, 0.06) !important;
}

.schedule-list-table td.list-score.winner-highlight {
    border-right-width: 4px !important;
    border-right-style: solid !important;
    border-right-color: var(--win-green) !important;
    background-color: rgba(40, 167, 69, 0.06) !important;
}

body.dark-mode .schedule-list-table td.list-team-name.winner-highlight,
body.dark-mode .schedule-list-table td.list-home-team.winner-highlight,
body.dark-mode .schedule-list-table td.list-score.winner-highlight {
    background-color: rgba(63, 185, 80, 0.08) !important;
}

/* ---------------------------------------------------------
   STATUS CLASSES (Left Edge Color Indicators)
--------------------------------------------------------- */
.status-rainout {
    background-color: rgba(0, 123, 255, 0.14) !important;
    border-left-width: 5px !important;
    border-left-style: solid !important;
    border-left-color: var(--status-rain) !important;
}

.status-postponed {
    background-color: rgba(142, 36, 170, 0.14) !important;
    border-left-width: 5px !important;
    border-left-style: solid !important;
    border-left-color: var(--status-ppd) !important;
}

.status-tbd {
    background-color: rgba(216, 27, 96, 0.14) !important;
    border-left-width: 5px !important;
    border-left-style: solid !important;
    border-left-color: var(--status-tbd) !important;
}

.status-tie {
    background-color: rgba(255, 193, 7, 0.14) !important;
    border-left-width: 5px !important;
    border-left-style: solid !important;
    border-left-color: var(--status-tie) !important;
}

/* ---------------------------------------------------------
   LIST VIEW CLASSES
--------------------------------------------------------- */
.list-view-wrapper {
    margin-top: 15px;
    margin-bottom: 30px;
    background-color: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.05);
    padding-top: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
    overflow-x: auto;
    border-top-width: 4px;
    border-top-style: solid;
    border-top-color: var(--ambl-red);
}

.schedule-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-list-base);
}

.schedule-list-table th {
    background-color: rgba(0,0,0,0.05);
    color: var(--text-muted);
    text-transform: uppercase;
    padding-top: var(--pad-list-v);
    padding-right: var(--pad-list-h);
    padding-bottom: var(--pad-list-v);
    padding-left: var(--pad-list-h);
    text-align: center;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: var(--border-color);
    font-weight: 900;
    letter-spacing: 1px;
}

.schedule-list-table td {
    padding-top: var(--pad-list-v);
    padding-right: var(--pad-list-h);
    padding-bottom: var(--pad-list-v);
    padding-left: var(--pad-list-h);
    text-align: center;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--border-color);
    vertical-align: middle;
}

/* Alternating Day Shading for List View */
.schedule-list-table tbody:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.025);
}

body.dark-mode .schedule-list-table tbody:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.025);
}

.schedule-list-table tbody.today-group {
    outline-width: 3px;
    outline-style: solid;
    outline-color: var(--ambl-red);
    outline-offset: -1px;
    background-color: rgba(186, 12, 47, 0.03) !important;
}

/* Time Divider for When "Today" Box is Missing */
.time-divider-row td {
    background-color: var(--ambl-red) !important;
    height: 4px !important;
    padding-top: 0px !important;
    padding-right: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 0px !important;
    border-top-width: 0px !important;
    border-bottom-width: 0px !important;
}

/* Status sidebars mapping to List View Rows */
.schedule-list-table tr.status-rainout td:first-child { border-left-width: 5px; border-left-style: solid; border-left-color: var(--status-rain); }
.schedule-list-table tr.status-postponed td:first-child { border-left-width: 5px; border-left-style: solid; border-left-color: var(--status-ppd); }
.schedule-list-table tr.status-tbd td:first-child { border-left-width: 5px; border-left-style: solid; border-left-color: var(--status-tbd); }
.schedule-list-table tr.status-tie td:first-child { border-left-width: 5px; border-left-style: solid; border-left-color: var(--status-tie); }

body.dark-mode .schedule-list-table th {
    background-color: #21262d;
    color: #f0f6fc;
    border-bottom-color: #30363d;
}

body.dark-mode .schedule-list-table td {
    border-bottom-color: #30363d;
    color: #f0f6fc;
}

body.dark-mode .schedule-list-table tbody.today-group {
    background-color: rgba(255, 107, 129, 0.05) !important;
}

.report-btn-small {
    background-color: var(--ambl-red);
    color: #ffffff !important;
    padding-top: var(--pad-rep-v);
    padding-right: var(--pad-rep-h);
    padding-bottom: var(--pad-rep-v);
    padding-left: var(--pad-rep-h);
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: var(--fs-list-base);
    display: inline-block;
    text-transform: uppercase;
}

.report-btn-small:hover {
    background-color: #8a0923;
}

.list-team-name {
    font-weight: 700;
    text-align: right;
}

.list-home-team {
    text-align: left;
}

.list-team-rec {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 5px;
}

.list-score {
    font-weight: 900;
    font-size: var(--fs-list-score);
}

/* ---------------------------------------------------------
   PANELS & OVERLAYS
--------------------------------------------------------- */
#day-expansion {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: var(--bg-body);
    z-index: 2100;
    padding-top: 25px;
    padding-right: 25px;
    padding-bottom: 25px;
    padding-left: 25px;
    overflow-y: auto;
    box-sizing: border-box;
}

.brick-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
}

.game-brick {
    background-color: var(--bg-card);
    border-top-width: 2px;
    border-right-width: 2px;
    border-bottom-width: 2px;
    border-left-width: 2px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: var(--border-color);
    border-right-color: var(--border-color);
    border-bottom-color: var(--border-color);
    border-left-color: var(--border-color);
    border-radius: 10px;
    padding-top: 25px;
    padding-right: 25px;
    padding-bottom: 25px;
    padding-left: 25px;
    box-shadow: 0px 5px 25px rgba(0,0,0,0.15);
    position: relative;
    font-size: var(--fs-brick);
    cursor: pointer;
}

.game-brick .div-label {
    font-size: 14px;
    top: 20px;
    right: 25px;
}

#flyout {
    position: fixed;
    right: -550px;
    top: 0px;
    width: 480px;
    height: 100%;
    background-color: var(--bg-card);
    box-shadow: -15px 0px 60px rgba(0,0,0,0.7);
    transition-property: right;
    transition-duration: 0.35s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2500;
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: var(--border-color);
}

#flyout.active {
    right: 0px;
}

.flyout-header {
    background-color: var(--ambl-blue);
    color: #ffffff;
    padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
}

.flyout-body {
    padding-top: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
    padding-left: 40px;
}

.report-btn { 
    background-color: var(--ambl-red) !important; 
    color: #ffffff !important; 
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    padding-top: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    width: 100%; 
    font-weight: 900; 
    border-radius: 8px; 
    cursor: pointer; 
    margin-top: 40px;
    font-size: 18px;
    text-transform: uppercase;
    display: block;
    text-align: center;
}

.overlay {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    z-index: 2200;
}

/* ---------------------------------------------------------
   RESPONSIVE DESIGN
--------------------------------------------------------- */
@media (max-width: 768px) {
    .calendar-controls {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }
    
    .nav-group {
        justify-content: center;
        margin-bottom: 12px;
    }
    
    .filter-group {
        justify-content: center;
    }
    
    .calendar-day {
        min-height: 100px !important;
    }
    
    .rec-hide-mobile, .div-label, .rain-text {
        display: none !important;
    }
    
    .ppd-text {
        font-size: 10px !important;
        font-weight: 900;
    }

    .name-full {
        display: none !important;
    }
    
    .name-mobile {
        display: inline !important;
        font-weight: 600;
        letter-spacing: normal;
        white-space: nowrap;
    }

    .field-full {
        display: none !important;
    }
    
    .field-abb {
        display: inline !important;
    }
    
    #flyout {
        width: 100%;
        right: -100%;
    }

    .standings-overlay {
        width: 100%;
        left: -100%;
    }
    
    .brick-container {
        grid-template-columns: 1fr;
    }
    
    .list-team-rec {
        display: none;
    }
}

/* ---------------------------------------------------------
   DESKTOP TOGGLES
--------------------------------------------------------- */
@media (min-width: 769px) {
    .field-abb, .name-mobile {
        display: none !important;
    }
    .field-full, .name-full {
        display: inline !important;
    }
}

/* --- FOOTER STYLES --- */
.site-footer {
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background-color: var(--bg-card);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 55px;
    height: 55px;
    display: block;
}

.site-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}