@charset "UTF-8";
/* CSS Document */
/* layout-matchup.css */



/* INITIALIZATION */
.loading-state:disabled {
    background-color: var(--tmb-gray-100) !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.loading-state:disabled option {
    color: var(--tmb-gray-500);
}

.stats-visible {
  display: block !important;
}

/* Week selector styling */
#week-selector {
    min-width: 120px;
}

/* Optional loading spinner for dropdown */
#matchup-selector.loading-state:disabled {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"%3E%3Cstyle%3E@keyframes spin{to{transform:rotate(360deg)}}%3C/style%3E%3Ccircle cx="10" cy="10" r="8" stroke="%23ddd" stroke-width="2" fill="none"/%3E%3Cpath d="M10 2a8 8 0 018 8" stroke="%23007bff" stroke-width="2" fill="none" style="animation:spin 1s linear infinite;transform-origin:center"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    background-size: 20px;
}



/* SCROLL MARGIN SOLUTION - accounts for sticky headers automatically */
.game-container,
h3, h4, h5, h6 {
    scroll-margin-top: 165px !important;
}

/* RESTORED: Original content wrapper with proper padding for sticky header */
.content-wrapper {
    margin-left: 0;
    padding: 20px 25px;
    padding-top: 120px !important; /* RESTORED: Proper top padding to clear sticky headers */
}

/* Betting navigation header styling - RESTORED to not change font sizes */
.betting-navigation-header {
    /* Bar look (bg / padding / shadow / sticky / full-width / margins) now comes from
       the shared .tmb-sport-bar (front.css). Matchup-specific bits are kept below
       (the #betting-header -50px pull, the Bootstrap .row containment, mobile tweaks). */
    border: none !important;
    transition: none !important;
    transform: none !important;
}

/* Ensure content inside stays properly contained and aligned */
.betting-navigation-header .row {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.betting-navigation-header .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

/* Ensure no Bootstrap or other CSS overrides the margins */
#betting-header.betting-navigation-header {
    margin-top: -50px !important;
    margin-bottom: 1rem !important;
}

/* Override any potential Bootstrap mb- classes */
.betting-navigation-header.mb-4,
.betting-navigation-header[class*="mb-"] {
    margin-bottom: 1rem !important;
}

/* Force the margins to stay consistent after page load */
.betting-navigation-header,
.betting-navigation-header * {
    transition: none !important;
}

.btn-group .btn {
    /* No min-width — match /players default Bootstrap sizing */
}

/* Customize / My page (bet-header.php): the member's own Matchup page */
.betting-navigation-header .matchup-customize-btn {
    margin-left: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Pill-style selects and inputs for matchup header */
#matchup-selector,
#week-selector,
#datePicker,
.mlb-batting-hand-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 5px 34px 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tmb-gray-700);
    background-color: #fff;
    border: 1px solid var(--tmb-gray-300);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

#matchup-selector {
    margin-right: 12px !important;
}

/* initMatchupSearch() (matchup-navigation.js) wraps the select in
   .matchup-search (TMB.searchSelect); the wrapper is the flex item then. */
.matchup-search {
    flex: 0 1 375px;
    margin-right: 12px;
}
.matchup-search > #matchup-selector {
    margin-right: 0 !important;
}

#datePicker {
    background-image: none;
    padding-right: 14px;
}

#datePicker:hover,
#datePicker:focus {
    background-image: none;
}

.mlb-batting-hand-dropdown {
    background-image: none;
    padding-right: 14px;
}

.mlb-batting-hand-dropdown:hover,
.mlb-batting-hand-dropdown:focus {
    background-image: none;
}

#matchup-selector:hover,
.tmb-ss:hover > #matchup-selector:not(:disabled),
#week-selector:hover,
.mlb-batting-hand-dropdown:hover {
    border-color: var(--tmb-blue);
    color: var(--tmb-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23007bff'/%3E%3C/svg%3E");
}

#datePicker:hover {
    border-color: var(--tmb-blue);
    color: var(--tmb-blue);
}

#matchup-selector:focus,
.tmb-ss.is-open > #matchup-selector,
#week-selector:focus,
.mlb-batting-hand-dropdown:focus {
    outline: none;
    border-color: var(--tmb-blue);
    color: var(--tmb-blue);
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23007bff'/%3E%3C/svg%3E");
}

#datePicker:focus {
    outline: none;
    border-color: var(--tmb-blue);
    color: var(--tmb-blue);
    box-shadow: none;
}

@media (max-width: 767px) {
    .betting-navigation-header {
        top: 60px !important;
        padding: 0.5rem 16px !important;
    }
    .betting-navigation-header .row {
        padding: 0 !important;
    }
    #betting-header .col-md-7 {
        padding-left: 0px;
    }
    #betting-header div {
        margin-left: 0px !important;
    }

    .betting-navigation-header .row > .col-md-5,
    .betting-navigation-header .row > .col-md-7 {
        margin-bottom: 0.25rem;
    }

    .betting-navigation-header .d-flex {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .betting-navigation-header .col-md-7 .d-flex {
        justify-content: flex-start !important;
    }

    .betting-navigation-header .btn-group {
        margin-right: 0.25rem !important;
    }

    /* Keep matchup selector + date/week picker on same row */
    .betting-navigation-header .col-md-5 .d-flex {
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }
    #matchup-selector,
    .matchup-search {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-right: 0 !important;
    }

    #datePicker {
        width: auto !important;
        min-width: 120px !important;
        flex-shrink: 0 !important;
    }

    #week-selector {
        width: auto !important;
        min-width: 110px !important;
        flex-shrink: 0 !important;
    }
    .last-updated-text {
        font-size: 0.65em !important;
        margin-left: 8px !important;
    }
    /* btn sizing handled by front.css */
}

/* ===== STATS FILTER STYLES - UNIFIED ===== */
/* Universal filter system for NFL, NBA, WNBA, and MLB */

/* ===== CONTAINER ===== */
.stats-filters {
    padding: 15px 15px 0 25px;
    background-color: var(--tmb-gray-100);
    border-bottom: 1px solid var(--tmb-gray-300);
    margin-bottom: 15px;
}

/* Simplified layout for single-dropdown filters (MLB) */
.stats-filters--simple {
    padding: 10px 15px;
}

/* ===== FILTER ROWS ===== */
/* Four across on desktop (2026-10-07, was three); each sport's panel groups
   its items into rows of four. Phones keep the two-column flow below. */
.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

/* Simple layout uses flexbox instead of grid */
.stats-filters--simple .filter-row {
    display: flex;
    margin-bottom: 0;
}

/* ===== FILTER ITEMS ===== */
.filter-item {
    display: flex;
    align-items: center;
    min-height: 38px;
}

.filter-item:has(.filter-dropdown) {
    margin-top: -10px;
}

/* Empty placeholder items (for grid spacing) */
.filter-item--empty {
    visibility: hidden;
}

/* ===== DROPDOWN STYLING ===== */
.filter-dropdown {
    width: auto;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tmb-gray-700);
    background-color: #fff;
    border: 1px solid var(--tmb-gray-300);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
}

/* Simple layout dropdowns can be narrower */
.stats-filters--simple .filter-dropdown {
    min-width: 150px;
    width: auto;
}

.filter-dropdown:hover {
    border-color: var(--tmb-blue);
    color: var(--tmb-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23007bff'/%3E%3C/svg%3E");
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--tmb-blue);
    color: var(--tmb-blue);
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23007bff'/%3E%3C/svg%3E");
}

/* ===== TOGGLE SWITCH ===== */
.filter-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.filter-switch input {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

/* Toggle slider track */
.filter-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: var(--tmb-gray-400);
    border-radius: 24px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

/* Toggle slider button */
.filter-slider:before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px var(--tmb-black-15);
}

/* Checked/Active state */
.filter-switch input:checked + .filter-slider {
    background-color: var(--tmb-switch-on);
}

.filter-switch input:checked + .filter-slider:before {
    transform: translateX(20px);
}

/* Hover effect */
.filter-switch:hover .filter-slider {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tmb-blue-alt-hover) 10%, transparent);
}

/* Label styling */
.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--tmb-gray-700);
    white-space: nowrap;
}

.filter-switch input:checked ~ .filter-label {
    color: var(--tmb-gray-900);
}

/* ===== DISABLED STATE ===== */
.filter-switch input:disabled + .filter-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-switch input:disabled ~ .filter-label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== INFO SECTION ===== */
.filter-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--tmb-gray-300);
}

.filter-info small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--tmb-gray-600);
}

/* Remove border when info is empty (like NFL badge) */
.filter-info:empty {
    margin: 0;
    padding: 0;
    border: none;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .stats-filters {
        padding: 6px 6px 0 6px;
        background-color: transparent;
        border-bottom: none;
        margin-bottom: 6px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .filter-row {
        display: contents;
    }

    .stats-filters--simple .filter-row {
        width: 100%;
    }

    .filter-item {
        width: 100%;
        min-height: 30px;
    }

    .filter-item--empty {
        display: none;
    }

    .filter-switch {
        width: 100%;
        font-size: 0.75rem;
    }

    .filter-slider {
        width: 34px;
        height: 18px;
        margin-right: 5px;
    }

    .filter-slider:before {
        height: 12px;
        width: 12px;
    }

    .filter-switch input:checked + .filter-slider:before {
        transform: translateX(16px);
    }

    .filter-dropdown {
        width: auto;
        padding: 4px 10px;
        padding-right: 28px;
        background-position: right 11px center;
        font-size: 0.72rem;
    }

    .stats-filters--simple .filter-dropdown {
        width: 100%;
    }

    .hide-on-mobile {
        display: none;
    }

    .stats-filters .btn-group .btn {
        min-width: 74px;
    }
}






/* Situational Systems Styling */
.systems-team-section {
    padding: 0.5rem;
    background-color: var(--tmb-gray-100);
    border-radius: 0.25rem;
    min-height: 60px;
}

.systems-category {
    margin-bottom: 0.5rem;
}

.systems-tier-group {
    margin-bottom: 0.5rem;
}

.system-line {
    padding: 2px 0;
    line-height: 1.4;
    font-size: 0.875rem;
}

.system-indicator {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    margin-right: 6px;
    font-size: 18px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.system-indicator.system-for {
    color: var(--tmb-green);
}

.system-indicator.system-for::before {
    content: "●";
}

.system-indicator.system-against {
    color: var(--tmb-red);
}

.system-indicator.system-against::before {
    content: "●";
}

.system-indicator.system-over {
    color: var(--tmb-info);
    font-size: 10px;
}

.system-indicator.system-over::before {
    content: "▲";
}

.system-indicator.system-under {
    color: var(--tmb-gray-600);
    font-size: 10px;
}

.system-indicator.system-under::before {
    content: "▼";
}

.system-description {
    font-size: 0.875rem;
    color: var(--tmb-gray-700);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .systems-team-section {
        margin-bottom: 0.5rem;
    }

    .system-indicator {
        width: 8px;
        height: 8px;
        line-height: 8px;
        font-size: 8px;
        margin-right: 4px;
        top: -1px;
    }

    .system-indicator.system-over,
    .system-indicator.system-under {
        font-size: 6px;
    }

    .system-line {
        font-size: 0.8rem;
    }

    .system-description {
        font-size: 0.8rem;
    }
}
    







/* ========================================
   MATCHUP PAGE - FULL WIDTH HEADER STYLING (FIXED)
   ======================================== */

/* Style game-container as main wrapper - respects container width */
.game-container {
    background: white !important;
    border: 1px solid var(--tmb-black-15) !important;
    border-radius: 0.25rem !important;
    overflow: hidden !important;
    box-shadow: 0 0.125rem 0.25rem var(--tmb-black-5) !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
    max-width: 100% !important; /* Respect parent container */
    position: relative !important;
    z-index: 1 !important; /* Keep below header */
}

/* Full-width game header: the site header's green, a shade lighter (Zach, 2026-10-19; grey until 10-17,
   then the tracking page's navy, then slate mixed with the green, all of which clashed with the header) */
.game-header {
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    border-bottom: 1px solid var(--tmb-black-15) !important;
    background-color: var(--tmb-game-header-bg) !important; /* tokens.css: this green blend; a partner site may set its own */
    position: relative !important;
    z-index: 1 !important; /* Keep below site header */
}

/* Override Bootstrap's bg-primary to use grey */
.game-container .bg-primary {
    background-color: var(--tmb-gray-600) !important; /* Grey instead of blue */
}

.game-header h5 {
    color: white !important;
    margin-bottom: 0.5rem !important;
}

/* NHL/MLB price grid (tmbTwoWayGrid, inline-styled in bet-game-header.php).
   With the Team Total column it is ~380px wide at full size, past a 375px
   phone's 333px of header; tighter gaps, smaller price parentheticals and
   wrapping team names bring "Blue Jackets / Golden Knights" to 333px.
   !important beats the cells' inline white-space. */
@media (max-width: 480px) {
    .game-header .tmb-two-way {
        column-gap: 8px !important;
    }
    .game-header .tmb-two-way span {
        font-size: 0.8em;
    }
    .game-header .tmb-two-way .tw-name {
        white-space: normal !important;
    }
}

/* Content area below header */
.game-content-area {
    padding: 1.25rem !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Keep game container within bounds */
.content-wrapper .container-fluid {
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure proper stacking - header should be on top */
.content-wrapper {
    position: relative !important;
    z-index: 1 !important;
}

/* Remove card styling from inner content */
.game-info-content {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}


/* Custom container padding override */
.container, 
.container-fluid, 
.container-lg, 
.container-md, 
.container-sm, 
.container-xl {
    padding-right: 0px !important;
    padding-left: 0px !important;
}
    
.sport-filter {
    margin-top: 25px;
    padding-top:20px;
}
    
.section-open .collapse-icon {
    transform: rotate(0deg) !important;
}
    
.collapsible-header {
    transition: color 0.3s;
    color: var(--tmb-gray-600); /* ADD THIS - Bootstrap secondary gray color */
    text-decoration: none; /* ADD THIS - Remove underline */
}

.collapsible-header:hover {
    color: var(--tmb-blue-alt-hover); /* You already have this - keep it as is (blue on hover) */
    text-decoration: none; /* ADD THIS - Keep no underline on hover */
}

.collapse-icon {
    transition: transform 0.3s;
    font-size: 0.8em;
    display: inline-block; /* ADD THIS - Important for transform to work properly */
}

.collapsible-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(90deg);
}

/* ADD THIS SECTION - Specific styling for algorithm and records sections */
.detailed-algorithms .collapsible-header,
.detailed-records .collapsible-header {
    color: var(--tmb-gray-600) !important; /* Ensure gray color */
    text-decoration: none !important; /* Ensure no underline */
}

/* Grey box styling like systems section */
.algo-recommendation-box {
    padding: 0.75rem;
    background-color: var(--tmb-gray-100);
    border-radius: 0.25rem;
    min-height: 80px;
}

/* Unified tier heading for both algorithms and systems */
.tier-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tmb-gray-600);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* My Systems section - attached to bottom with different background */
.my-systems-section {
    background: linear-gradient(135deg, var(--tmb-blue-50) 0%, var(--tmb-blue-200) 100%);
    border-radius: 0 0 0.25rem 0.25rem;
    padding: 0.5rem;
    margin-top: 0;
}

.my-systems-section .tier-heading {
    color: var(--tmb-blue-alt);
}

/* When my-systems-section follows systems-team-section, remove bottom radius from team section */
.systems-team-section + .my-systems-section {
    /* This section attaches directly below */
}

.systems-team-section:has(+ .my-systems-section) {
    border-radius: 0.25rem 0.25rem 0 0;
}

/* Bet recommendation - larger and green like system dots */
.algo-recommendation-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tmb-green);
    margin-bottom: 0.25rem;
}

/* Probability text - smaller and grey */
.algo-probability {
    font-size: 0.875rem;
    color: var(--tmb-gray-600);
}

/* No play text */
.algo-no-play {
    font-size: 1.1rem;
    color: var(--tmb-gray-600);
}

/* Additional styles for consistency */
.algorithm-summary {
    margin-bottom: 1rem;
}

.baller-index-open .collapse-icon {
    transform: rotate(0deg) !important;
}

    
.blue-heading {
    padding-bottom: 10px !important;
    margin-bottom: 0px !important;
    margin-top: 5px !important;
}


/* bet-games-display */
.schedule-hidden {
    display: none !important;
}
.schedule-header {
    padding-top: 0px !important; margin-top: 0px !important;
}


/* TOOLTIPS — .info-tooltip itself is defined once, in front.css. */

/* Algorithm info tooltips inside table cells */
.info-tooltip .tooltip-text.tooltip-algo {
    width: 300px;
    left: 0;
    margin-left: 0;
    top: 125%;
    white-space: normal;
}

/* tooltip-algo on mobile is handled by the general mobile tooltip rule in front.css */

/* Historical Matchups */
.venue-match {
    background-color: color-mix(in srgb, var(--tmb-yellow) 15%, transparent) !important; /* Light yellow highlight */
}
.venue-match td {
    font-weight: 500;
}
.overall-summary-row {
    background-color: var(--tmb-gray-100) !important;
}
.overall-summary-row td {
    border-top: 2px solid var(--tmb-gray-600) !important;
    font-weight: 600;
}
.venue-summary-row {
    background-color: var(--tmb-blue-100) !important;
}
.venue-summary-row td {
    border-top: 2px solid var(--tmb-blue) !important;
    font-weight: 600;
}

/* NFL forecast line in the game header (tmbNflWeatherForecastLine(), on
   /matchup/, admin/bet and the dashboard Game Info widget): three groups,
   each kept whole. One line with " · " between them; when that line would
   wrap, TMB.stackOnWrap (tmb-common.js) adds .tmb-wx-stacked and each group
   takes its own line. The 1ms animation is how tmb-common.js notices a line
   rendered after load (a dashboard widget); it changes nothing visible. */
@keyframes tmbStackOnWrap { from { opacity: 0.99; } to { opacity: 1; } }
.tmb-wx-line { display: block; animation: tmbStackOnWrap 1ms; }
.tmb-wx-part { display: inline-block; white-space: nowrap; }
.tmb-wx-line:not(.tmb-wx-stacked) .tmb-wx-part + .tmb-wx-part::before { content: '\00b7\00a0'; }
.tmb-wx-stacked .tmb-wx-part { display: block; white-space: normal; } /* a group wider than a phone still wraps */