/* /boxscores/ (boxscores/index.php): a played game's box score. */
.bx-page { max-width: 1200px; margin: 0 auto; }
.bx-title { font-size: 18px; font-weight: 700; color: var(--tmb-gray-900); margin: 4px 0 16px; text-align: center; }
.bx-h2 { font-size: 15px; font-weight: 700; color: var(--tmb-gray-900); margin: 0 0 8px; }
.bx-note { font-size: 12px; color: var(--tmb-gray-600); margin: 12px 0; }

/* Header: away | final | home */
.bx-head { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 8px 0 4px; }
.bx-head-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bx-head-home { flex-direction: row-reverse; }
.bx-logo { width: 48px; height: 48px; object-fit: contain; }
.bx-head-name { font-size: 16px; font-weight: 600; color: var(--tmb-gray-700); }
.bx-head-score { font-size: 30px; font-weight: 700; color: var(--tmb-gray-600); }
.bx-won .bx-head-name, .bx-won .bx-head-score { color: var(--tmb-gray-900); }
.bx-head-mid { text-align: center; font-size: 12px; color: var(--tmb-gray-600); }
.bx-final { font-weight: 700; color: var(--tmb-gray-900); font-size: 13px; }
.bx-matchup-link { display: inline-block; margin-top: 2px; }

/* Line score + Four Factors side by side */
.bx-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; margin-bottom: 16px; }
.bx-card { background: #fff; border: 1px solid var(--tmb-gray-300); border-radius: 6px; padding: 12px; overflow-x: auto; min-width: 0; }
.bx-card .bx-small { width: 100%; }
/* MLB's line score (up to 12+ innings and R / H / E) takes two of the three columns. */
.bx-card-wide { grid-column: span 2; }
/* Three across down to tablet width; one column on a phone (below). */
/* The Game Info card: a label and its value (and how the line settled) a row. */
.bx-info { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.bx-info dt { font-weight: 600; color: var(--tmb-gray-700); }
.bx-info dd { margin: 0; color: var(--tmb-gray-900); }
.bx-info-result { display: block; font-size: 12px; color: var(--tmb-gray-600); }

.bx-switches { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 12px; }
.bx-game-info span { margin-right: 16px; }

/* Tables */
.bx-table { border-collapse: collapse; font-size: 13px; color: var(--tmb-gray-900); }
.bx-table th, .bx-table td { padding: 4px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--tmb-gray-300); }
.bx-table thead th { font-size: 12px; font-weight: 600; color: var(--tmb-gray-700); background: var(--tmb-gray-100); }
.bx-table thead th[title] { cursor: help; }
.bx-table .bx-rowhead, .bx-table .bx-name { text-align: left; font-weight: 600; }
.bx-table tbody .bx-name { font-weight: 500; }
.bx-table thead .bx-name { font-weight: 700; color: var(--tmb-gray-900); }
.bx-strong { font-weight: 700; }
.bx-table tfoot th, .bx-table tfoot td { font-weight: 700; border-top: 2px solid var(--tmb-gray-400); background: var(--tmb-gray-100); }
.bx-table tbody tr:hover td, .bx-table tbody tr:hover th { background: var(--tmb-blue-50); }
.bx-dnp td { text-align: left; color: var(--tmb-gray-600); font-style: italic; }

.bx-team { margin-bottom: 24px; }
.bx-scroll { border: 1px solid var(--tmb-gray-300); border-radius: 6px; background: #fff; }
.bx-box { width: 100%; }
/* The name column holds while the table scrolls sideways. */
.bx-box .bx-name { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 150px; }
.bx-box thead .bx-name, .bx-box tfoot .bx-name { background: var(--tmb-gray-100); }

.bx-inactive { font-size: 13px; color: var(--tmb-gray-700); }
.bx-inactive-team { margin-right: 14px; }

@media (max-width: 767px) {
    .bx-page { padding: 0 12px; }
    .bx-summary { grid-template-columns: 1fr; }
    .bx-card-wide { grid-column: auto; }
    .bx-head { gap: 10px; }
    .bx-logo { width: 32px; height: 32px; }
    .bx-head-name { display: none; }
    .bx-head-score { font-size: 24px; }
    .bx-box .bx-name { min-width: 120px; }
}

/* MLB (boxscores/mlb-body.php) */
.bx-table .bx-rhe-first { border-left: 2px solid var(--tmb-gray-400); }
.bx-box .bx-pos { text-align: left; color: var(--tmb-gray-600); }
.bx-box .bx-sub .bx-name { padding-left: 20px; font-weight: 400; color: var(--tmb-gray-700); }
.bx-dec { font-weight: 400; color: var(--tmb-gray-600); font-size: 12px; }
/* NHL (boxscores/nhl-body.php) */
.bx-goalies { margin-top: 10px; }
/* NFL (boxscores/nfl-body.php) */
.bx-nfl-group { margin-bottom: 10px; }
.bx-nfl-group .bx-box { width: auto; min-width: 100%; }
