
#content-wrapper.schedule .schedule-section {
    background: #fff;
    border: 1px solid #e2e6e8;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    padding: 16px 18px;
    margin: 20px 0;
}

#content-wrapper.schedule .schedule-section > h3 {
    margin: 0 0 10px 0;
}

/* One game is a small grid: the time on the left with the Game Lines /
   Player Props toggles (when any) on the same line, then the teams, then
   any opened odds panel. Keeping the toggles beside the time saves a full
   row per game on a phone. */
#content-wrapper.schedule .game {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "time toggles" "teams teams";
    align-items: center;
    column-gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e6e8;
}

#content-wrapper.schedule .game h3 {
    grid-area: time;
    color: inherit;
    font-size: 1em;
    font-weight: normal;
    margin: 0;
}

#content-wrapper.schedule .game .bl-toggle-row {
    grid-area: toggles;
    margin: 0;
    display: flex;
    gap: 6px;
}

#content-wrapper.schedule .game .game-teams { grid-area: teams; }

#content-wrapper.schedule .game .betting-lines,
#content-wrapper.schedule .game .props-panel {
    grid-column: 1 / -1;
}

#content-wrapper.schedule .game:first-of-type {
    padding-top: 0;
}

#content-wrapper.schedule .game:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

/* ── Teams row (schedule and team pages) ───────────────────────────────── */

.game-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
    column-gap: 6px;
    row-gap: 4px;
    align-items: center;
    margin: 6px 0 0;
}

.game-teams .game-team {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 6px;
    min-width: 0;
    line-height: 1.3;
}

.game-teams .team-color-emoji {
    width: 32px;
    height: auto;
    margin: 0;
    flex-shrink: 0;
}

.game-teams .game-team-name { font-weight: 600; }

/* The record never breaks in the middle of its numbers: it wraps whole. */
.game-teams .game-team-record {
    white-space: nowrap;
    font-size: 0.85em;
    color: #6b7280;
}

.game-teams .game-at {
    text-align: center;
    font-weight: 700;
    color: #d80000;
}


/* ── Betting Lines ─────────────────────────────────────────────────────── */

.bl-toggle-row {
    margin: 6px 0 2px;
}

.bl-toggle-btn {
    background: none;
    border: 1px solid #3a3f52;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    transition: border-color 0.15s, color 0.15s;
}

.bl-toggle-btn:hover,
.bl-toggle-btn[aria-expanded="true"] {
    border-color: #6b7280;
    color: #9ca3af;
}

.betting-lines {
    background: #181c26;
    border-radius: 6px;
    padding: 8px 12px 6px;
    margin: 4px 0 4px;
    border: 1px solid #2a2e3a;
}

.bl-projected-note {
    font-size: 11px;
    font-weight: 600;
    color: #d1d5db;
    background: #2a2e3a;
    border-radius: 4px;
    padding: 5px 8px;
    margin-bottom: 6px;
    text-align: center;
}

.bl-grid {
    display: grid;
    grid-template-columns: 130px 1fr 1fr 1fr;
    align-items: center;
    gap: 2px 8px;
}

.bl-header-row {
    margin-bottom: 3px;
}

.bl-col-label {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.bl-team-col {
    /* spacer */
}

.bl-team-row {
    padding: 4px 0;
    border-top: 1px solid #2a2e3a;
}

.bl-team-name {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bl-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #1e2230;
    border-radius: 4px;
    padding: 4px 6px;
    min-width: 0;
    cursor: default;
    transition: background 0.15s;
}

.bl-cell:hover {
    background: #252a3a;
}

.bl-main {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.2;
}

.bl-vig {
    font-size: 10px;
    color: #6b7280;
    line-height: 1.2;
    margin-top: 1px;
}

/* Favorite: spread cell gets green accent */
.bl-fav-spread .bl-main {
    color: #4ade80;
}

/* Favorite: moneyline cell gets red (negative number = you risk more) */
.bl-fav-ml .bl-main {
    color: #f87171;
}

.bl-disclaimer {
    font-size: 10px;
    color: #374151;
    text-align: right;
    margin-top: 5px;
    font-style: italic;
}

/* ── 60-min (3-way) line ───────────────────────────────────────────────── */

.bl-3way {
    padding: 6px 0 2px;
    border-top: 1px solid #2a2e3a;
    margin-top: 4px;
}

.bl-3way-header {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bl-3way-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px 8px;
}

.bl-3way-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #1e2230;
    border-radius: 4px;
    padding: 4px 6px;
    min-width: 0;
}

.bl-3way-team-label {
    font-size: 10px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
}

/* ── Player Props panel ────────────────────────────────────────────────── */

.props-panel {
    background: #181c26;
    border-radius: 6px;
    padding: 8px 12px 6px;
    margin: 4px 0 4px;
    border: 1px solid #2a2e3a;
}

.props-panel-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
}

.props-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.props-section-count {
    font-size: 10px;
    color: #4b5563;
}

/* Each player row: name area + three odds columns (Goal / Assist / Point) */
.props-row {
    display: grid;
    grid-template-columns: 1fr 48px 48px 48px;
    align-items: center;
    padding: 4px 0;
    border-top: 1px solid #1e2230;
}

.props-player-info {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
}

.props-team-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    min-width: 28px;
    flex-shrink: 0;
}

#content a.props-name,
a.props-name,
.props-name {
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

#content a.props-name:hover,
a.props-name:hover,
.props-name:hover {
    color: #ffffff;
    text-decoration: underline;
}

.props-pos {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    flex-shrink: 0;
}

.props-odds {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
}

/* Assist odds use a green tint; point odds use a blue tint */
.props-assist-odds {
    color: #6ee7b7;
}

.props-point-odds {
    color: #93c5fd;
}

.props-legend {
    margin-left: auto;
    font-size: 10px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.props-legend-goal {
    color: #e2e8f0;
}

.props-legend-assist {
    color: #6ee7b7;
}

.props-legend-point {
    color: #93c5fd;
}

.props-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a3f52 transparent;
}

.props-list::-webkit-scrollbar {
    width: 4px;
}

.props-list::-webkit-scrollbar-track {
    background: transparent;
}

.props-list::-webkit-scrollbar-thumb {
    background-color: #3a3f52;
    border-radius: 2px;
}

/* ── Desktop: two-column props grid ───────────────────────────────────── */

@media (min-width: 769px) {
    .props-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
        max-height: 220px;
    }
}

/* ── Responsive betting lines ──────────────────────────────────────────── */

.bl-toggle-btn:focus-visible {
    outline: 2px solid #1a5276;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    /* 44px touch targets on phones */
    .bl-toggle-btn {
        min-height: 44px;
        padding: 0 14px;
        font-size: 13px;
    }

    .props-sort-col {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ── Home page: panels inside the narrow game-day columns ──────────────── */

.home-odds {
    margin-top: 6px;
    text-align: left;
    /* Lets the rules below react to the game column's width, which on
       tablets is far narrower than the viewport suggests. */
    container-type: inline-size;
}

.home-odds .bl-toggle-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.home-odds .betting-lines,
.home-odds .props-panel {
    padding: 8px;
}

.home-odds .bl-grid {
    grid-template-columns: 92px 1fr 1fr 1fr;
    gap: 2px 6px;
}

/* A home column is about a third of the desktop width, too narrow for the
   Schedule page's two-column props list. */
@media (min-width: 769px) {
    .home-odds .props-list {
        display: block;
    }
}

/* Tablet-width home columns are only ~260-300px wide. */
@container (max-width: 320px) {
    .home-odds .bl-grid {
        grid-template-columns: 58px repeat(3, minmax(0, 1fr));
        gap: 2px 4px;
    }

    .home-odds .bl-col-label {
        font-size: 9px;
        letter-spacing: 0;
    }

    .home-odds .bl-cell,
    .home-odds .bl-3way-cell {
        padding: 3px 2px;
    }

    .home-odds .bl-main {
        font-size: 13px;
    }

    .home-odds .bl-3way-grid {
        gap: 2px 4px;
    }

    .home-odds .props-row {
        grid-template-columns: minmax(0, 1fr) 40px 40px 40px;
    }

    .home-odds .props-team-tag {
        min-width: 20px;
    }
}

/* ── Matchup Detail Page ───────────────────────────────────────────────── */

.matchup-detail-card {
    background: #fff;
    border: 1px solid #e2e6e8;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    padding: 20px;
    margin-bottom: 16px;
}

.matchup-detail-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.matchup-detail-teams {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
}

.matchup-detail-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.matchup-detail-jersey {
    width: 56px;
    height: auto;
}

/* #content prefix beats the global `#content a` red rule so the team name
   reads as a dark heading, not a bright link. */
#content a.matchup-team-link {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
}

#content a.matchup-team-link:hover {
    text-decoration: underline;
    color: #1a5276;
}

.matchup-team-record {
    font-size: 13px;
    color: #6b7280;
}

.matchup-detail-vs {
    font-size: 22px;
    font-weight: 700;
    color: #374151;
    flex-shrink: 0;
    padding: 0 8px;
}

.matchup-detail-section {
    background: #fff;
    border: 1px solid #e2e6e8;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    padding: 16px;
    margin-bottom: 16px;
}

.matchup-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.props-sort-col {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px 2px;
    user-select: none;
    transition: color 0.15s;
}

.props-sort-col:hover {
    color: #9ca3af;
}

.props-sort-col.props-sort-active {
    color: #e2e8f0;
}

.matchup-props-list {
    max-height: none;
}

.matchup-no-lines {
    background: #f9fafb;
    border: 1px solid #e2e6e8;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}


@media (min-width: 769px) {
    .matchup-props-list {
        max-height: none;
    }
}

@media (max-width: 767px) {
    .matchup-team-link {
        font-size: 15px;
    }

    .matchup-detail-jersey {
        width: 40px;
    }

    .matchup-detail-vs {
        font-size: 16px;
        padding: 0 4px;
    }

}

/* ── end Matchup Detail ────────────────────────────────────────────────── */

@media (max-width: 768px) {
    #content-wrapper.schedule .schedule-section {
        padding: 12px 14px;
        margin: 14px 0;
    }

    .game-teams .team-color-emoji {
        width: 26px;
    }

    .game-teams .game-team {
        font-size: 0.95em;
    }

    .bl-grid {
        grid-template-columns: 100px 1fr 1fr 1fr;
        gap: 2px 4px;
    }

    .bl-team-name {
        font-size: 11px;
    }

    .bl-main {
        font-size: 13px;
    }

    .bl-cell {
        padding: 3px 4px;
    }

    .props-row {
        grid-template-columns: 1fr 40px 40px 40px;
    }

    .props-name {
        font-size: 12px;
    }

    .props-odds {
        font-size: 12px;
    }
}

/* ── Game center: final score hero & status notes ─────────────────────── */
.matchup-final-chip {
    display: inline-block;
    background: #1f3d2b;
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
}

.matchup-final-score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2.2em;
    font-weight: 700;
    color: #9aa3ab;
    flex-shrink: 0;
}

.matchup-score-winner { color: #1f1f1f; }
.matchup-score-dash { font-size: 0.6em; color: #b9c0c6; }

.matchup-team-won .matchup-team-link { font-weight: 700; }

.matchup-status-note {
    margin: 14px 0;
    padding: 12px 16px;
    background: #f6f8fa;
    border: 1px solid #dde3e8;
    border-left: 4px solid #8899a8;
    border-radius: 4px;
    color: #4a5560;
    font-size: 0.95em;
}

@media (max-width: 600px) {
    .matchup-final-score { font-size: 1.7em; gap: 6px; }
}

/* ── Goalie status chips (schedule + game pages) ───────────────────────── */

.goalie-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
}
.goalie-line-detail { justify-content: center; margin: 0 0 14px; }

/* A chip is a small pill so a game stays short on a phone; an invisible
   ::before pads its tap target out to 44px tall. */
#content a.goalie-chip,
.goalie-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 2px 10px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    justify-self: start;
}
.goalie-chip::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -9px;
    bottom: -9px;
}
#content a.goalie-chip:hover { text-decoration: underline; }
#content a.goalie-chip:focus-visible { outline: 2px solid #1a5276; outline-offset: 2px; }
.gc-team { font-weight: 500; opacity: 0.85; }
/* Under its team in the teams grid, a chip skips the "@" column. */
.game-teams .goalie-chip { grid-column: span 1; }
.game-teams .game-at-spacer { display: block; }
#content a.gc-confirmed, .gc-confirmed { background: #d4edda; border-color: #b7dfc0; color: #155724; }
#content a.gc-sub-needed, .gc-sub-needed { background: #f8d7da; border-color: #f1b0b7; color: #721c24; }
#content a.gc-unconfirmed, .gc-unconfirmed { background: #fff3cd; border-color: #f5e1a4; color: #856404; }

/* ── Games needing a sub (partials/goalie_needs_sub_list.html) ─────────── */
/* One row per game, each a link to its card on the Goalie Status Board.
   These are the light-background styles the Schedule page uses; goalie.css
   recolours them for the board's dark summary panel. */

.needs-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}
.needs-sub-list li + li { margin-top: 6px; }
#content .needs-sub-list a,
.needs-sub-list a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-left: 4px solid #dc3545;
    color: #721c24;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.35;
}
#content .needs-sub-list a:hover,
#content .needs-sub-list a:focus-visible { background: #fff; color: #721c24; text-decoration: underline; }
.needs-sub-when { font-weight: 700; white-space: nowrap; }
.needs-sub-who { font-weight: 700; }
.needs-sub-game { opacity: 0.75; font-size: 13px; }

/* Schedule page header strip */
.goalie-strip { margin: -4px 0 16px; display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.goalie-strip-alert {
    padding: 10px 12px 12px;
    border-radius: 8px;
    background: #f8d7da;
    border: 1px solid #f1b0b7;
    color: #721c24;
}
.goalie-strip-heading { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.goalie-strip-info { font-size: 13px; color: #666; }
.goalie-strip-info summary {
    cursor: pointer;
    color: #1a5276;
    font-weight: 600;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.goalie-strip-info p { margin: 4px 0 0; line-height: 1.5; max-width: 720px; }

@media (max-width: 767px) {
    .goalie-strip { max-width: none; }
}
