/* ================================================
   MONEYBALL DESIGN SYSTEM
   Cream palette, Barlow Condensed + Source Sans 3
   ================================================ */

/* --- Custom Properties --- */
:root {
    --bg-page: #faf3e0;
    --bg-card: #ffffff;
    --bg-header: #f3e9d0;
    --bg-sidebar: #2c2416;
    --bg-sidebar-hover: #3d3322;
    --bg-sidebar-active: #4a3f2f;
    --bg-tag: #efe5cd;
    --border: #e4d8c0;
    --border-dark: #c9b896;
    --text-primary: #1a1208;
    --text-secondary: #5a4e3c;
    --text-muted: #8a7d6b;
    --text-sidebar: #d4c8ae;
    --text-sidebar-active: #faf3e0;
    --green: #1b6e20;
    --green-light: #c8e6c9;
    --green-bg: #e8f5e9;
    --red: #b71c1c;
    --red-light: #fde8e8;
    --red-bg: #fde8e8;
    --blue: #0d47a1;
    --blue-light: #e3f2fd;
    --gold: #a06800;
    --gold-light: #fff3cd;
    --orange: #e65100;
    --sidebar-width: 240px;
    --topbar-height: 56px;
    --bottomtab-height: 60px;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 3px rgba(44, 36, 22, 0.08);
    --shadow-md: 0 4px 12px rgba(44, 36, 22, 0.1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--bg-sidebar);
    color: var(--text-sidebar-active);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 8px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    font-family: 'Consolas', 'Courier New', monospace;
    background: var(--bg-tag);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Color Utilities --- */
.color-green { color: var(--green); }
.color-red { color: var(--red); }
.color-blue { color: var(--blue); }
.color-gold { color: var(--gold); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    color: var(--text-sidebar);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px 20px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 16px;
    border-radius: var(--radius);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.sidebar-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--text-sidebar-active);
}

.sidebar-nav {
    list-style: none;
    padding: 12px 0;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-sidebar);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: var(--bg-sidebar-hover);
    color: var(--text-sidebar-active);
    text-decoration: none;
}

.sidebar-link.active {
    background: var(--bg-sidebar-active);
    color: var(--text-sidebar-active);
    border-left-color: var(--gold);
    font-weight: 700;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-sub {
    list-style: none;
    padding: 0;
}

.sidebar-sublink {
    display: block;
    padding: 6px 20px 6px 56px;
    color: var(--text-sidebar);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.sidebar-sublink:hover {
    color: var(--text-sidebar-active);
    text-decoration: none;
}

.sidebar-sublink.active {
    color: var(--gold);
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-season {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* --- Topbar (mobile) --- */
.topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--bg-sidebar);
    color: var(--text-sidebar-active);
    align-items: center;
    padding: 0 16px;
    z-index: 90;
    gap: 12px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-sidebar-active);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.topbar-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 3px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 95;
}

/* --- Bottom Tabs (mobile) --- */
.bottom-tabs {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottomtab-height);
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    z-index: 90;
    justify-content: space-around;
    align-items: center;
}

.bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 8px;
    transition: color 0.15s;
}

.bottom-tab svg {
    width: 22px;
    height: 22px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-tab.active {
    color: var(--gold);
}

.bottom-tab:hover {
    color: var(--text-primary);
    text-decoration: none;
}

/* --- Main Content --- */
.content {
    margin-left: var(--sidebar-width);
    padding: 32px 40px 40px;
    max-width: 1200px;
}

/* --- Page Header --- */
.page-header {
    margin-bottom: 16px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* --- Stat Boxes --- */
.stat-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 130px;
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-align: center;
}

.stat-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-top: 4px;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-header);
    font-size: 12px;
    color: var(--text-muted);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* --- Top Pick Card --- */
.top-pick-card {
    background: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    overflow: hidden;
}

.top-pick-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--gold-light);
    border-bottom: 1px solid var(--border);
}

.top-pick-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.top-pick-body {
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.top-pick-logo-bleed {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    object-fit: contain;
    opacity: 0.15;
    pointer-events: none;
}

.top-pick-team {
    position: relative;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.top-pick-vs {
    position: relative;
    font-size: 14px;
    color: var(--text-muted);
    margin: 4px 0 16px;
}

.top-pick-stats {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.top-pick-stat {
    text-align: center;
}

.top-pick-stat-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.top-pick-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- Tier Sections --- */
.tier-section {
    margin-bottom: 20px;
}

.tier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-radius: var(--radius) var(--radius) 0 0;
    font-family: 'Barlow Condensed', sans-serif;
}

.tier-header.tier-high {
    background: var(--green-bg);
    border: 1px solid var(--green-light);
    color: var(--green);
}

.tier-header.tier-med {
    background: var(--gold-light);
    border: 1px solid #ffe69c;
    color: var(--gold);
}

.tier-header.tier-low {
    background: #f5f0e6;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.tier-header-label {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tier-header-count {
    font-weight: 500;
    font-size: 12px;
    opacity: 0.8;
}

/* --- Tables --- */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table,
.picks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead th,
.picks-table thead th {
    background: var(--bg-header);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid var(--border-dark);
    white-space: nowrap;
    position: relative;
}

.data-table.sortable thead th[data-sort] {
    cursor: pointer;
    user-select: none;
    padding-right: 22px;
}

.data-table.sortable thead th[data-sort]::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-top-color: var(--text-muted);
    opacity: 0.3;
}

.data-table.sortable thead th.sort-asc::after {
    border-top-color: transparent;
    border-bottom-color: var(--text-primary);
    opacity: 1;
    transform: translateY(-80%);
}

.data-table.sortable thead th.sort-desc::after {
    border-top-color: var(--text-primary);
    opacity: 1;
}

.data-table tbody tr,
.picks-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.data-table tbody tr:nth-child(even),
.picks-table tbody tr:nth-child(even) {
    background: #faf7f0;
}

.data-table tbody tr:hover,
.picks-table tbody tr:hover {
    background: var(--bg-header);
}

.data-table tbody td,
.picks-table tbody td {
    padding: 10px 12px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.col-center {
    text-align: center;
}

.data-table.compact {
    font-size: 13px;
}

.data-table.compact tbody td {
    padding: 7px 10px;
}

.data-table.compact thead th {
    padding: 8px 10px;
    font-size: 10px;
}

/* --- Pick Rows --- */
.pick-row.pick-loss {
    background: var(--red-light) !important;
}

.picks-table tbody td {
    padding: 10px 12px;
}

.pick-vs {
    color: var(--text-muted);
    font-size: 11px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.pick-opponent {
    color: var(--text-secondary);
}

.pick-confidence {
    text-align: center;
}

.pick-score {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
}

.pick-rules {
    color: var(--text-muted);
    font-size: 12px;
}

.pick-result {
    text-align: center;
}

/* --- Confidence Values --- */
.conf-value {
    font-weight: 800;
    font-size: 15px;
}

.conf-high {
    color: var(--green);
}

.conf-med {
    color: var(--gold);
}

.conf-low {
    color: var(--text-muted);
}

/* --- Badges --- */
.tier-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tier-badge.tier-high {
    background: var(--green-light);
    color: var(--green);
}

.tier-badge.tier-med {
    background: var(--gold-light);
    color: var(--gold);
}

.tier-badge.tier-low {
    background: var(--bg-tag);
    color: var(--text-muted);
}

.result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 22px;
    border-radius: var(--radius-sm);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.result-badge.result-w {
    background: var(--green-light);
    color: var(--green);
}

.result-badge.result-l {
    background: var(--red-light);
    color: var(--red);
}

.result-badge.result-p {
    background: var(--bg-tag);
    color: var(--text-muted);
}

.result-badge.result-ppd {
    background: var(--gold-light);
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 0.5px;
}

.result-inline {
    font-weight: 800;
    font-size: 14px;
}

.result-w-text { color: var(--green); }
.result-l-text { color: var(--red); }

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-strong {
    background: var(--green-light);
    color: var(--green);
}

.status-ok {
    background: var(--gold-light);
    color: var(--gold);
}

.status-weak {
    background: #fff3e0;
    color: var(--orange);
}

.status-bad {
    background: var(--red-light);
    color: var(--red);
}

.status-lowdata {
    background: #eceff1;
    color: #607d8b;
}

/* --- Team Logos --- */
.team-logo {
    object-fit: contain;
    vertical-align: middle;
}

.team-logo-sm {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

.team-logo-md {
    width: 28px;
    height: 28px;
    margin-right: 6px;
}

.team-logo-lg {
    width: 40px;
    height: 40px;
    margin-right: 8px;
}

/* Bleed logo — oversized, transparent, clipped by row */
.pick-team {
    position: relative;
    overflow: hidden;
}

.pick-team .team-logo-bleed {
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    opacity: 0.20;
    pointer-events: none;
}

.pick-team .pick-team-name {
    position: relative;
    z-index: 1;
    padding-left: 28px;
}


/* --- Day Pills (daily table status) --- */
.day-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.day-pill-good {
    background: var(--green-light);
    color: var(--green);
}

.day-pill-bad {
    background: var(--red-light);
    color: var(--red);
}

.day-pill-mid {
    background: var(--bg-tag);
    color: var(--text-muted);
}

/* --- Row coloring for daily table --- */
.row-good {
    background: var(--green-bg) !important;
}

.row-bad {
    background: var(--red-bg) !important;
}

/* --- Date Navigation --- */
.date-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.date-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.date-nav-btn:hover {
    background: var(--bg-header);
    border-color: var(--border-dark);
    text-decoration: none;
}

.date-nav-btn.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.date-nav-current {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

/* --- Tier Cards (analysis page) --- */
.tier-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tier-card {
    flex: 1;
    min-width: 180px;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.tier-card-high {
    background: var(--green-bg);
    border-color: var(--green-light);
}

.tier-card-med {
    background: var(--gold-light);
    border-color: #ffe69c;
}

.tier-card-low {
    background: #f5f0e6;
    border-color: var(--border);
}

.tier-card-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tier-card-record {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.tier-card-pct {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
}

.tier-card-high .tier-card-pct { color: var(--green); }
.tier-card-med .tier-card-pct { color: var(--gold); }
.tier-card-low .tier-card-pct { color: var(--text-muted); }

.tier-card-total {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Split Tables (top picks) --- */
.split-tables {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.split-table-col {
    flex: 1;
    min-width: 0;
}

.split-table-col .table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

/* --- Rule Rows --- */
.rule-num {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.rule-name {
    font-weight: 600;
}

/* --- Links --- */
.link-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}

.link-more:hover {
    text-decoration: underline;
}

.date-link {
    color: var(--text-primary);
    font-weight: 500;
}

.date-link:hover {
    color: var(--blue);
}

.section-footer {
    margin-top: 16px;
    margin-bottom: 24px;
    text-align: center;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.empty-state-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state-hint {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Error Pages --- */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 96px;
    font-weight: 800;
    color: var(--border-dark);
    line-height: 1;
}

.error-title {
    font-size: 28px;
    margin-top: 8px;
}

.error-message {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 16px;
}

.error-link {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 24px;
    background: var(--bg-sidebar);
    color: var(--text-sidebar-active);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.error-link:hover {
    background: var(--bg-sidebar-hover);
    text-decoration: none;
}

/* --- Live pulse indicator --- */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--green);
    text-transform: uppercase;
}

.live-badge-lg {
    font-size: 13px;
    gap: 6px;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 1.5s ease-in-out infinite;
}

.live-badge-lg .pulse-dot {
    width: 10px;
    height: 10px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.live-mlb-link {
    font-size: 10px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    padding: 2px 6px;
    background: var(--blue-light);
    border-radius: 3px;
    margin-left: 2px;
}

.live-mlb-link:hover {
    background: var(--blue);
    color: #fff;
}

/* --- Clickable pick rows --- */
.pick-row-link { cursor: pointer; }
.pick-row-link:hover { background: var(--bg-header); }

/* --- Stat sub-label --- */
.stat-sub {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
}

/* --- Back link --- */
.link-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-decoration: none;
}
.link-back:hover { color: var(--text-primary); }

/* --- Game detail hero --- */
.detail-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.detail-hero-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.detail-hero-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.detail-hero-team {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
}

.detail-hero-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.detail-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.detail-hero-vs {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.detail-hero-conf {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 24px;
}

/* --- Score breakdown --- */
.detail-scores {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-score-box {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.detail-score-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 28px;
}

.detail-score-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Pitchers section --- */
.detail-pitchers {
    display: flex;
    gap: 24px;
    padding: 20px;
}

.detail-pitcher {
    flex: 1;
    text-align: center;
}

.detail-pitcher-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 2px;
}

.detail-pitcher-side {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.detail-pitcher-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-pitcher-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-pitcher-stat-val {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.detail-pitcher-stat-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* --- External links --- */
.detail-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.detail-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-sidebar);
    color: var(--text-sidebar-active);
    border-radius: var(--radius);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s;
}

.detail-link-btn:hover {
    background: var(--bg-sidebar-hover);
}

/* --- How It Works page --- */
.how-tiers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.how-tier {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

.how-tier-high { background: var(--green-bg); }
.how-tier-med { background: var(--blue-light); }
.how-tier-low { background: var(--bg-tag); }

.how-tier-badge {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    min-width: 48px;
    text-align: center;
}

.how-tier-high .how-tier-badge { color: var(--green); }
.how-tier-med .how-tier-badge { color: var(--blue); }
.how-tier-low .how-tier-badge { color: var(--text-muted); }

.how-tier-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.how-explainer {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.how-rules-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px 20px;
}

.how-rule-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-tag);
    border-radius: 20px;
    font-size: 13px;
}

.how-rule-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: var(--text-muted);
    min-width: 18px;
    text-align: center;
}

.how-rule-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* --- Accuracy chart --- */
.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    padding: 24px 20px 16px;
    min-height: 280px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 80px;
}

.chart-bar-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.chart-bar-track {
    width: 100%;
    height: 180px;
    background: var(--bg-tag);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.chart-bar-fill {
    width: 100%;
    border-radius: var(--radius-sm);
    transition: height 0.5s ease;
}

.bar-green { background: var(--green); }
.bar-blue { background: var(--blue); }
.bar-red { background: var(--red); }

.chart-bar-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
}

.chart-bar-count {
    font-size: 10px;
    color: var(--text-muted);
}

.chart-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 8px;
}
