/* ===== VARIABLES ===== */
:root {
    --white: #ffffff;
    --bg: #f5f5f7;
    --bg-alt: #ffffff;
    --card: #ffffff;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #aeaeb2;
    --orange: #f97316;
    --orange-light: #fff7ed;
    --orange-border: #fed7aa;
    --green: #16a34a;
    --red: #dc2626;
    --blue: #2563eb;
    --border: #e5e5ea;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
    --radius: 14px;
    --font: 'Montserrat Alternates', -apple-system, sans-serif;
}

html.dark {
    --white: #1c1c1e;
    --bg: #000000;
    --bg-alt: #1c1c1e;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #636366;
    --orange: #fb923c;
    --orange-light: #2a1a08;
    --orange-border: #5c3a14;
    --green: #22c55e;
    --red: #ef4444;
    --blue: #3b82f6;
    --border: #2c2c2e;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.4);
    color-scheme: dark;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

.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;
}

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

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

/* ===== HEADER ===== */
.site-header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.92);
}
html.dark .site-header { background: rgba(28,28,30,0.92); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo-link { display: flex; align-items: center; }
.header-logo { height: 30px; }

.main-nav {
    display: flex;
    gap: 4px;
    margin-left: 16px;
    margin-right: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.nav-link:hover { color: var(--text); background: var(--bg); }
.nav-link.active { color: var(--orange); background: var(--orange-light); }
.nav-link svg { opacity: 0.7; }
.nav-link.active svg { opacity: 1; stroke: var(--orange); }

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Language switcher */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
    letter-spacing: 0.3px;
}

.lang-current:hover {
    border-color: var(--orange);
}

.lang-chevron {
    transition: transform 0.2s;
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 200;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.lang-dropdown::-webkit-scrollbar {
    width: 5px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text);
    transition: background 0.1s;
}

.lang-option:hover {
    background: var(--bg);
}

.lang-option.active {
    color: var(--orange);
    font-weight: 700;
}

.lang-option-code {
    font-weight: 700;
    font-size: 11px;
    color: var(--text-muted);
    min-width: 22px;
}

.lang-option.active .lang-option-code {
    color: var(--orange);
}

.lang-option-name {
    font-weight: 500;
}

/* Header socials */
.header-socials {
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.header-socials a:hover {
    color: var(--orange);
    background: var(--orange-light);
}

/* Theme switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    margin-left: 8px;
    gap: 0;
}
.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    position: relative;
    z-index: 1;
}
.theme-btn:hover { color: var(--text-secondary); }
.theme-btn.active { color: var(--orange); }
.theme-indicator {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 30px;
    height: 28px;
    background: var(--card);
    border-radius: 7px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-btn span {
    display: block; width: 20px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== DATE PICKER ===== */
.date-picker {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.date-picker-inner {
    display: flex;
    align-items: center;
    gap: 4px;
}

.date-arrow {
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 34px;
    height: 34px;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.date-arrow:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--orange);
}

.date-strip {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
    overflow: hidden;
}

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 58px;
    text-decoration: none;
    font-family: var(--font);
}
.date-item:hover {
    background: var(--bg);
    border-color: var(--border);
}

.date-active {
    background: var(--orange) !important;
    border-color: var(--orange) !important;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}
.date-active .date-label,
.date-active .date-day,
.date-active .date-month {
    color: #fff !important;
}

.date-today:not(.date-active) {
    border-color: var(--orange);
}
.date-today:not(.date-active) .date-label {
    color: var(--orange);
}

.date-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    line-height: 1;
}
.date-day {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}
.date-month {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1;
}

.date-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.today-btn {
    display: none;
    align-items: center;
    gap: 4px;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.today-btn:hover { background: var(--orange); color: #fff; }
.today-btn.visible { display: inline-flex; }

.date-info-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.date-info-ball {
    width: 28px;
    height: 28px;
    opacity: 0.8;
}
.date-full {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.date-league {
    font-size: 11px;
    font-weight: 600;
    color: var(--orange);
}

.date-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chip {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-secondary);
}
.chip-live {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fef2f2;
    color: var(--red);
}
.chip-scheduled {
    background: #eff6ff;
    color: var(--blue);
}
.chip-final {
    background: var(--bg);
    color: var(--text-muted);
}
.live-dot {
    width: 6px; height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== DASHBOARD ===== */
.dashboard {
    padding: 20px 0 8px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.dash-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dash-header {
    padding: 12px 14px 8px;
    border-bottom: 1px solid var(--border);
}

.dash-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.dash-body {
    padding: 8px 14px 12px;
}

.dash-empty {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 0;
}

/* Leader rows */
.leader-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.leader-row:last-child { border-bottom: none; }

.leader-pos {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 16px;
}

.leader-team {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.leader-logo { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }

.leader-team span {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-record {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.rec-w { color: var(--green); }
.rec-l { color: var(--red); }

/* Streak rows */
.streak-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.streak-row:last-child { border-bottom: none; }

.streak-team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.streak-logo { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.streak-team span {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.streak-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.streak-badge.hot { background: #fef2f2; color: #dc2626; }
.streak-badge.cold { background: #eff6ff; color: #2563eb; }

.streak-divider {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 8px 0 4px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
}

/* Stat rows */
.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.stat-row:last-child { border-bottom: none; }

.stat-team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.stat-logo { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.stat-team span {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}
.stat-value.orange { color: var(--orange); }
.stat-value.green { color: var(--green); }

/* Yesterday */
.yesterday-section {
    margin-bottom: 8px;
}

.yesterday-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.yesterday-date {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 12px;
}

.yesterday-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.yesterday-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px;
}

.yg-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.yg-team {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.yg-team-right { justify-content: flex-end; }

.yg-team span {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yg-logo { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }

.yg-score {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.yg-dash { color: var(--text-muted); font-size: 14px; }
.yg-score-winner { color: var(--orange); }
.yg-winner { font-weight: 700; }

.yg-total {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SECTIONS ===== */
.section { padding: 24px 0 32px; }
.section-alt { background: var(--bg-alt); }

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}
.section-icon { width: 22px; height: 22px; }

/* ===== GAME CARDS ===== */
.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 12px;
}

.game-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.game-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.game-live {
    border-color: rgba(220, 38, 38, 0.25);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.08), var(--shadow);
}

.game-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 0;
}

.status-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fef2f2;
    padding: 4px 10px;
    border-radius: 8px;
    animation: live-glow 2s ease-in-out infinite;
}

@keyframes live-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    50% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); }
}

.status-inning {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 8px;
}

.status-final {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 8px;
}

/* Matchup layout: away | score | home */
.matchup {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 14px 14px 10px;
}

.matchup-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    min-width: 0;
}

.matchup-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--bg);
    border: 2px solid var(--border);
    flex-shrink: 0;
}
.matchup-logo-ph {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
}

.matchup-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matchup-winner .matchup-name { color: var(--orange); }
.matchup-winner .matchup-logo { border-color: var(--orange); }

.matchup-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    flex-shrink: 0;
    position: relative;
}

.matchup-score {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.matchup-runs {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-secondary);
    min-width: 30px;
    text-align: center;
    line-height: 1;
}
.runs-winner { color: var(--green); }

.matchup-colon {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1;
}

.matchup-bat {
    position: absolute;
    top: 50%;
    left: calc(50% + 50px);
    transform: translateY(-50%) rotate(-30deg);
    width: 36px;
    height: 36px;
    opacity: 0.5;
    filter: invert(1);
}
html.dark .matchup-bat { filter: none; opacity: 0.5; }

.matchup-pitcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
    padding: 6px 8px;
    background: var(--bg);
    border-radius: 8px;
    max-width: 110px;
}

.matchup-pitcher-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border);
}

.matchup-pitcher-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.matchup-pitcher-era {
    font-size: 10px;
    font-weight: 700;
    color: var(--orange);
}
.mp-label {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ===== SCOREBOARD ===== */
.scoreboard {
    margin: 0 12px;
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
}
.scoreboard-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.scoreboard-table {
    width: 100%;
    min-width: 420px;
    font-size: 11px;
    border-spacing: 0;
}

.scoreboard-table th,
.scoreboard-table td {
    text-align: center;
    padding: 6px 4px;
    font-weight: 600;
    min-width: 24px;
}

.scoreboard-table thead th {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.scoreboard-table tbody td {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.scoreboard-table tbody tr:last-child td { border-bottom: none; }

.sb-team-col {
    text-align: left !important;
    padding-left: 12px !important;
    min-width: 60px !important;
    max-width: 80px;
}

.sb-team-name {
    font-weight: 700 !important;
    color: var(--text) !important;
    font-size: 11px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 12px !important;
}

.sb-team-winner {
    color: var(--orange) !important;
    font-weight: 800 !important;
}

/* Active inning column header (live) */
thead .sb-active-inning {
    background: var(--orange) !important;
    color: #fff !important;
}

/* Active inning cell (fielding team) */
tbody .sb-active-inning {
    background: rgba(249, 115, 22, 0.06) !important;
}

/* Batting team in current inning */
.sb-batting {
    background: rgba(249, 115, 22, 0.15) !important;
    color: var(--orange) !important;
    font-weight: 800 !important;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.3);
    border-radius: 3px;
}

/* R column */
.sb-r {
    font-weight: 800 !important;
    color: var(--text) !important;
    border-left: 2px solid var(--border);
    background: rgba(0,0,0,0.03);
    min-width: 28px !important;
    font-size: 13px !important;
}

.sb-r-winner {
    color: #fff !important;
    background: var(--orange) !important;
    font-weight: 800 !important;
}

/* H and E columns */
.sb-stat {
    border-left: 1px solid var(--border);
    background: rgba(0,0,0,0.02);
    min-width: 26px !important;
    color: var(--text-muted) !important;
}

/* Countdown */
.status-countdown {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    background: #eff6ff;
    padding: 3px 8px;
    border-radius: 6px;
}
.status-countdown.warmup {
    color: var(--orange);
    background: var(--orange-light);
}

/* ===== CARD AI SCOREBOARD ===== */
.card-ai-scoreboard {
    margin: 6px 12px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.15);
    background: rgba(37, 99, 235, 0.02);
}
.card-ai-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.04));
    font-size: 9px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 0.5px;
}
.card-ai-header svg { flex-shrink: 0; stroke: var(--blue); }
.card-ai-badge {
    margin-left: auto;
    font-size: 8px;
    font-weight: 800;
    color: var(--blue);
    background: rgba(37, 99, 235, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}
.card-ai-table thead th {
    background: rgba(37, 99, 235, 0.06);
    color: var(--blue);
    border-bottom-color: rgba(37, 99, 235, 0.12);
}
.card-ai-cell {
    color: var(--blue) !important;
    font-weight: 700 !important;
}
.card-ai-table .sb-r {
    background: rgba(37, 99, 235, 0.06);
    border-left-color: rgba(37, 99, 235, 0.15);
    color: var(--text) !important;
    font-weight: 800 !important;
}
.card-ai-r-winner {
    background: var(--blue) !important;
    color: #fff !important;
    font-weight: 800 !important;
}

/* ===== STANDINGS ===== */
.standings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.league-header {
    font-size: 16px;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 10px 10px 0 0;
    color: var(--white);
    letter-spacing: 0.3px;
}
.league-al { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.league-nl { background: linear-gradient(135deg, #b91c1c, #ef4444); }

.division-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: none;
    overflow: hidden;
}
.division-card:last-child { border-radius: 0 0 10px 10px; }

.division-name {
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.standings-table { width: 100%; }
.standings-table th {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 6px 8px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.standings-table td {
    font-size: 13px;
    padding: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}
.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr:hover { background: rgba(249, 115, 22, 0.03); }

.st-team { text-align: left !important; }

.st-team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
.st-logo {
    width: 22px; height: 22px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
}
.pos-1 { background: #fef3c7; color: #b45309; }
.pos-2 { background: #fed7aa; color: #c2410c; }
.pos-3 { background: #dcfce7; color: #15803d; }

.st-w { color: var(--green); font-weight: 700; }
.st-l { color: var(--red); font-weight: 700; }
.st-pct { font-weight: 700; color: var(--text); }
.st-rf { color: var(--orange); font-weight: 600; }
.st-ra { color: var(--text-secondary); font-weight: 600; }
.st-form {
    display: flex;
    gap: 2px;
    justify-content: center;
}
.st-form span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
}
.form-W { background: #dcfce7; color: #15803d; }
.form-L { background: #fef2f2; color: #dc2626; }

/* ===== NEWS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.news-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.2s;
}
.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.news-image {
    height: 170px;
    overflow: hidden;
    position: relative;
    background: var(--bg);
}
.news-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.news-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange-light), var(--card));
}
.news-placeholder img { width: 40px; height: auto; object-fit: contain; opacity: 0.3; }

.importance-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--card);
    color: var(--orange);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.news-body {
    padding: 14px;
}
.news-body h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.news-author { color: var(--orange); font-weight: 600; }
.news-time { color: var(--text-muted); }

/* ===== EMPTY ===== */
.empty-state {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
    font-size: 14px;
}
.empty-icon { width: 40px; margin: 0 auto 8px; opacity: 0.3; }

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--bg);
    padding: 32px 0 24px;
    text-align: center;
}
.hero-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}
.hero-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== SECTION HEADER WITH LINK ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.section-header .section-title { margin-bottom: 0; }
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    white-space: nowrap;
    transition: gap 0.15s;
}
.section-link:hover { gap: 8px; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.breadcrumb a {
    color: var(--orange);
    font-weight: 600;
    transition: opacity 0.15s;
}
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb svg { color: var(--text-muted); flex-shrink: 0; }

/* ===== PAGE TITLES ===== */
.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}
.page-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 700px;
}
.games-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}
.games-page-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== MINI STANDINGS ===== */
.mini-standings {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ===== NEWS LIST COMPACT (homepage) ===== */
.news-list-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-list-item {
    display: flex;
    gap: 14px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px;
    transition: box-shadow 0.2s;
}
.news-list-item:hover { box-shadow: var(--shadow-hover); }

.news-list-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--bg);
}
.news-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-list-thumb-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}
.news-list-thumb-ph img {
    width: 32px;
    height: 32px;
    opacity: 0.15;
    flex-shrink: 0;
}
html.dark .news-list-thumb-ph img { filter: invert(1); }
.news-list-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: var(--orange);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.news-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.news-list-body h3 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-list-body p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

@media (max-width: 768px) {
    .news-list-thumb { width: 64px; height: 64px; }
}

/* ===== NEWS FEED PAGE ===== */
.news-page-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-feed-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.news-feed-item:hover {
    box-shadow: var(--shadow-hover);
}

.news-feed-image {
    position: relative;
    height: 100%;
    min-height: 140px;
}
.news-feed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-feed-body {
    padding: 16px 16px 16px 0;
    display: flex;
    flex-direction: column;
}

.news-feed-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-feed-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

/* ===== NEWS LOADER ===== */
.news-loader {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}
.loader-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.news-end {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-muted);
}

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

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.sidebar-header h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
}
.sidebar-header .section-link { font-size: 11px; }

.sidebar-standings {
    padding: 8px 16px 12px;
}

.sidebar-team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}
.sidebar-team-row + .sidebar-team-row {
    border-top: 1px solid var(--border);
}
.sidebar-pos {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}
.sidebar-team {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}
.sidebar-team-logo { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-record {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sidebar-links {
    padding: 8px 16px 12px;
    display: flex;
    flex-direction: column;
}
.sidebar-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: color 0.15s;
}
.sidebar-links a:hover { color: var(--orange); }
.sidebar-links a + a { border-top: 1px solid var(--border); }

/* ===== STANDINGS PAGE LAYOUT ===== */
.standings-page-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}
.standings-main { min-width: 0; }

.dash-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

/* Sidebar news widget */
.sidebar-news { padding: 4px 0; }
.sidebar-news-item {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    align-items: flex-start;
}
.sidebar-news-item + .sidebar-news-item { border-top: 1px solid var(--border); }
.sidebar-news-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.sidebar-news-body { min-width: 0; }
.sidebar-news-body h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-news-time {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .dash-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .standings-page-layout { grid-template-columns: 1fr; }
    .standings-sidebar { order: -1; }
    .dash-grid-3 { grid-template-columns: 1fr; }
}

/* ===== STANDINGS TABS ===== */
.standings-tabs {
    display: inline-flex;
    background: var(--bg);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.standings-tab {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}
.standings-tab:hover { color: var(--text); }
.standings-tab.active {
    background: var(--card);
    color: var(--orange);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.wc-qualified td { font-weight: 600; }
.wc-cutline td { border-bottom: 2px dashed var(--orange); }

/* ===== STANDINGS TABLE FULL ===== */
.standings-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.standings-table-full th,
.standings-table-full td {
    white-space: nowrap;
}
.st-pct { font-weight: 600; }
.st-diff { font-weight: 700; font-size: 12px; }
.st-diff-pos { color: var(--green); }
.st-diff-neg { color: var(--red); }
.st-split {
    font-size: 11px;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .news-page-layout {
        grid-template-columns: 1fr;
    }
    .news-sidebar { order: -1; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 22px; }
    .hero-subtitle { font-size: 13px; }
    .page-title { font-size: 20px; }
    .games-page-title { font-size: 18px; }
    .section-header { flex-wrap: wrap; }
    .matchup-logo { width: 44px; height: 44px; }
    .matchup-runs { font-size: 24px; min-width: 26px; }
    .matchup-colon { font-size: 18px; }
    .matchup-pitcher { padding: 4px 6px; }
    .matchup-pitcher-photo { width: 28px; height: 28px; }
    .games-list { grid-template-columns: 1fr; }
    .news-feed-item {
        grid-template-columns: 1fr;
    }
    .news-feed-image {
        min-height: 160px;
        max-height: 200px;
    }
    .news-feed-body {
        padding: 12px 16px 16px;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 36px 0 20px;
    margin-top: 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-col a:not(.store-btn) {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color 0.15s;
}
.footer-col a:not(.store-btn):hover { color: var(--orange); }

.footer-logo { height: 26px; margin-bottom: 8px; }
.footer-tagline { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }

.footer-socials {
    display: flex;
    gap: 6px;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    padding: 0;
    transition: all 0.15s;
}
.footer-socials a:hover {
    background: var(--orange);
    color: #fff;
}

.footer-col .store-btn + .store-btn { margin-top: 8px; }

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    border-radius: 12px;
    background: var(--white);
    color: var(--text) !important;
    transition: all 0.2s;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    min-width: 170px;
}
.store-btn:hover {
    border-color: var(--orange) !important;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.12);
    transform: translateY(-1px);
    color: var(--text) !important;
}
.store-btn:hover .store-icon { color: var(--orange); }
.store-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--text);
    transition: color 0.15s;
}
.store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.store-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}
.store-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.footer-legal {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    flex-wrap: wrap;
}
.footer-legal a {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s;
}
.footer-legal a:hover { color: var(--orange); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 11px; color: var(--text-muted); }
.footer-rianon {
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-rianon span {
    font-size: 11px;
    color: var(--text-muted);
}
.rianon-logo {
    height: 22px;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.rianon-logo:hover { opacity: 1; }

/* ===== LEGAL PAGES ===== */
.legal-page {
    padding: 32px 0 48px;
}

.legal-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.legal-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border);
}

.legal-header h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.legal-updated {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.legal-body {
    padding: 24px 32px 32px;
}

.legal-body h2 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--text);
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
    font-size: 14px;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.legal-body p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-body ul, .legal-body ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.legal-body li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.legal-email {
    font-weight: 700;
    color: var(--orange);
    font-size: 15px;
}

/* Contact page */
.contact-intro {
    margin-bottom: 24px;
}

.contact-intro p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.contact-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-light);
    border-radius: 10px;
    color: var(--orange);
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: 0;
    color: var(--text) !important;
}

.contact-card p {
    font-size: 13px;
    margin-bottom: 8px;
}

.contact-social {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.contact-social h2 {
    margin-top: 0 !important;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.contact-social-links a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-secondary);
    transition: all 0.15s;
}

.contact-social-links a:hover {
    background: var(--orange);
    color: #fff;
}

/* Refund stores */
.refund-stores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.refund-store {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px;
}

.refund-store h3 {
    color: var(--text) !important;
    margin-top: 0 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .standings-grid { grid-template-columns: 1fr; }
    .dash-grid { grid-template-columns: repeat(2, 1fr); }
    .yesterday-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 56px; left: 0; right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 8px 16px 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    html.dark .main-nav {
        background: rgba(28,28,30,0.98);
    }
    .main-nav.open { display: flex; }
    .mobile-menu-btn { display: flex; }

    .games-list { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .dash-grid { grid-template-columns: 1fr; }
    .section { padding: 16px 0 24px; }
    .header-socials { display: none; }
    .header-actions { margin-left: auto; margin-right: 10px; }
    .theme-switcher { margin-left: 0; margin-right: 8px; }
    .footer-main { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; gap: 8px; align-items: center; }
    .legal-header, .legal-body { padding-left: 20px; padding-right: 20px; }
    .refund-stores { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .team-name { font-size: 13px; max-width: 140px; }
    .game-teams { padding: 10px 10px; }
    .st-team-cell { font-size: 12px; }
    .st-team-cell span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ===== DARK MODE OVERRIDES ===== */
/* Theme-aware image switching */
.ball-dark, .rianon-dark { display: none; }
html.dark .ball-light, html.dark .rianon-light { display: none; }
html.dark .ball-dark, html.dark .rianon-dark { display: block; }

/* Tinted backgrounds */
html.dark .chip-live { background: #3b1111; }
html.dark .chip-scheduled { background: #0f1a2e; }
html.dark .streak-badge.hot { background: #3b1111; }
html.dark .streak-badge.cold { background: #0f1a2e; }
html.dark .pos-1 { background: #2a2008; color: #fbbf24; }
html.dark .pos-2 { background: #2a1608; color: #fb923c; }
html.dark .pos-3 { background: #082a14; color: #4ade80; }
html.dark .form-W { background: #082a14; color: #4ade80; }
html.dark .form-L { background: #3b1111; color: #f87171; }

/* Scoreboard & tables */
html.dark .scoreboard { background: #141416; }
html.dark .scoreboard-table thead th { background: #1a1a1c; }
html.dark .scoreboard-table tbody td { border-bottom-color: var(--border); }
html.dark .standings-table td { border-bottom-color: var(--border); }
html.dark .standings-table tr:hover { background: rgba(249, 115, 22, 0.06); }

/* Status badges & tinted elements */
html.dark .status-live { background: #3b1111; }
html.dark .status-time { background: #0f1a2e; }
html.dark .status-countdown { background: #0f1a2e; }
html.dark .game-live { border-color: #5c1d1d; }
html.dark .game-scheduled { border-color: var(--border); }

/* ===== GAME DETAILS BUTTON (on game cards) ===== */
.game-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 16px 16px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    transition: all 0.2s;
    text-decoration: none;
}
.game-details-btn:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.game-details-btn svg { flex-shrink: 0; }
.game-details-btn svg:last-child { margin-left: auto; }

/* ===== PITCHER INFO ON GAME CARDS ===== */
.card-pitchers {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    margin: 0 12px;
    border-radius: 10px;
    background: var(--bg);
}
.card-pitcher {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    min-width: 0;
}
.card-pitcher-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border);
    background: var(--card);
}
.card-pitcher-name {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.card-pitcher-tbd {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 12px 0;
}
.card-pitcher-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}
.cps-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
}
.cps-label {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 9px;
}
.cps-val {
    font-weight: 700;
    font-size: 10px;
}
.cps-val.orange { color: var(--orange); }
.cps-val.blue { color: var(--blue); }
.card-pitchers-vs {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    align-self: center;
    padding: 0 2px;
}

/* ===== GAME DETAIL TABS ===== */
.gd-tabs-section {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 52px;
    z-index: 90;
}

.gd-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.gd-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}
.gd-tab:hover { color: var(--text); background: var(--bg); }
.gd-tab.active {
    color: var(--orange);
    background: var(--orange-light);
    font-weight: 700;
}
.gd-tab svg { flex-shrink: 0; }

/* App Promo */
.gd-app-promo {
    background: linear-gradient(135deg, var(--orange-light), var(--bg));
    border: 1px solid var(--orange-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
}

.gd-promo-app {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.gd-promo-appicon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.gd-promo-app-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.gd-promo-app-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}
.gd-promo-app-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.gd-app-promo h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.gd-app-promo p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.gd-ai-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    padding: 12px 16px;
    border-radius: var(--radius);
}
.gd-ai-hint svg { flex-shrink: 0; stroke: var(--blue); }
.gd-promo-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.gd-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}
.gd-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.gd-promo-ios { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.gd-promo-android { background: linear-gradient(135deg, #0f9d58, #0b8043); }

/* AI Prediction card */
.gd-card-ai {
    border-color: var(--blue);
    border-width: 1.5px;
    overflow: hidden;
}
.gd-card-header-ai {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
}
.gd-card-header-ai h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gd-ai-header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.gd-ai-header-sub {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}
.gd-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    color: var(--blue);
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.gd-ai-scoreboard {
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.15);
}
.gd-ai-table {
    background: rgba(37, 99, 235, 0.02);
}
.gd-ai-table thead th {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.06));
    color: var(--blue);
    font-size: 10px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}
.gd-ai-table tbody td {
    border-bottom-color: rgba(37, 99, 235, 0.08);
}
.gd-ai-cell {
    font-weight: 700;
    color: var(--blue);
}
.gd-ai-table .gd-sb-total {
    background: rgba(37, 99, 235, 0.06);
    border-left-color: rgba(37, 99, 235, 0.2);
    color: var(--text);
    font-weight: 800;
}
.gd-ai-table .gd-sb-total-winner {
    background: var(--blue);
    color: #fff;
    font-weight: 800;
}
.gd-ai-table .gd-sb-team span {
    color: var(--text);
}
.gd-prediction-comment {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(37, 99, 235, 0.12);
}

@media (max-width: 768px) {
    .gd-tabs-section { top: 48px; }
    .gd-tab { padding: 8px 14px; font-size: 12px; }
    .gd-tab svg { width: 14px; height: 14px; }
    .gd-app-promo { padding: 24px 16px; }
    .gd-promo-btn { padding: 10px 18px; font-size: 13px; }
}

/* ===== GAME DETAIL PAGE ===== */

/* Breadcrumb */
.gd-breadcrumb {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.gd-breadcrumb .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gd-back {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    transition: opacity 0.15s;
}
.gd-back:hover { opacity: 0.7; }
.gd-date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Game Header / Matchup */
.gd-header {
    padding: 32px 0 24px;
}
.gd-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.gd-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 200px;
}
.gd-team-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}
.gd-team-logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg);
}
.gd-team-info { text-align: center; }
.gd-team-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
.gd-team-record {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}
.gd-team-winner .gd-team-name { color: var(--orange); }

.gd-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 140px;
}
.gd-status-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    background: rgba(220, 38, 38, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}
.gd-status-scheduled {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}
.gd-status-final {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 20px;
}
.gd-scores {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gd-score {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}
.gd-score-winner { color: var(--orange); }
.gd-score-divider {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-muted);
}
.gd-vs {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-muted);
}

/* Section & Cards */
.gd-section {
    padding: 12px 0;
}
.gd-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}
.gd-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.gd-card-header h2 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gd-card-header-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.gd-card-body {
    padding: 20px;
}

/* Scoreboard */
.gd-scoreboard-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.gd-scoreboard-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 14px;
    font-weight: 600;
}
.gd-scoreboard-table thead th {
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg);
    border-bottom: 2px solid var(--border);
}
.gd-scoreboard-table tbody td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.gd-sb-team {
    text-align: left !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text) !important;
    min-width: 100px;
    white-space: nowrap;
}
th.gd-sb-team { display: table-cell; }
.gd-sb-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.gd-sb-total {
    font-weight: 800 !important;
    color: var(--text) !important;
    font-size: 15px;
}
.gd-sb-total-winner { color: var(--orange) !important; }
.gd-sb-stat { color: var(--text-muted) !important; }
.gd-sb-active {
    background: rgba(249, 115, 22, 0.1) !important;
    color: var(--orange) !important;
}
.gd-sb-batting {
    background: var(--orange) !important;
    color: #fff !important;
    border-radius: 4px;
}
.gd-sb-winner-row td { font-weight: 700; }

/* Pitchers */
.gd-pitchers {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
}
.gd-pitcher {
    flex: 1;
    max-width: 280px;
    text-align: center;
}
.gd-pitcher-photo-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg);
    border: 3px solid var(--border);
}
.gd-pitcher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gd-pitcher-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.gd-pitcher-team {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.gd-pitcher-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.gd-pitcher-hand {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.gd-pitcher-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.gd-pstat { text-align: center; }
.gd-pstat-val {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
.gd-pstat-val.orange { color: var(--orange); }
.gd-pstat-val.blue { color: var(--blue); }
.gd-pstat-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}
.gd-pitcher-vs {
    align-self: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-muted);
    padding: 0 8px;
}

/* Season Comparison */
.gd-compare { }
.gd-compare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.gd-compare-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}
.gd-compare-team-right { text-align: right; }
.gd-compare-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.gd-compare-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gd-compare-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.gd-compare-row:last-child { border-bottom: none; }
.gd-compare-val {
    font-size: 15px;
    font-weight: 700;
    min-width: 80px;
    color: var(--text-secondary);
}
.gd-compare-val:first-child { text-align: left; }
.gd-compare-val:last-child { text-align: right; }
.gd-compare-better { color: var(--orange) !important; }
.gd-compare-stat {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
}
.gd-compare-form {
    display: flex;
    gap: 3px;
    min-width: 80px;
}
.gd-compare-form:last-child { justify-content: flex-end; }
.gd-compare-form-row { align-items: center; }

/* Head to Head */
.gd-h2h-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.gd-h2h-team {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gd-h2h-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.gd-h2h-wins {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-secondary);
}
.gd-h2h-leader { color: var(--orange); }
.gd-h2h-bar-wrap {
    flex: 1;
    text-align: center;
}
.gd-h2h-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--bg);
    overflow: hidden;
    margin-bottom: 6px;
}
.gd-h2h-bar-away {
    height: 100%;
    background: var(--orange);
    border-radius: 4px;
    transition: width 0.6s ease;
}
.gd-h2h-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.gd-h2h-games { display: flex; flex-direction: column; gap: 8px; }
.gd-h2h-game {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg);
    font-size: 13px;
}
.gd-h2h-date {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 50px;
}
.gd-h2h-matchup {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.gd-h2h-game-score {
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
}
.gd-h2h-game-winner { color: var(--orange); font-weight: 700; }

/* Recent Form */
.gd-recent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.gd-recent-game {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.gd-recent-game:last-child { border-bottom: none; }
.gd-recent-date {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 50px;
}
.gd-recent-opponent {
    flex: 1;
    font-weight: 600;
}
.gd-recent-score {
    font-weight: 700;
    color: var(--text-secondary);
}
.gd-recent-result {
    font-size: 11px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.gd-recent-win {
    background: rgba(22, 163, 74, 0.15);
    color: var(--green);
}
.gd-recent-loss {
    background: rgba(220, 38, 38, 0.15);
    color: var(--red);
}

/* Roster Cards (Lineups) */
.gd-roster-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}
.gd-roster-col { }
.gd-roster-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.gd-roster-badge-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.gd-roster-away {
    color: var(--orange);
    background: rgba(249, 115, 22, 0.1);
}
.gd-roster-home {
    color: var(--blue);
    background: rgba(37, 99, 235, 0.1);
}
.gd-roster-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gd-player-card {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    transition: transform 0.15s;
}
.gd-player-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.gd-player-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.gd-player-photo-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    background: var(--bg);
}
.gd-player-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gd-player-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.gd-player-info {
    min-width: 0;
    flex: 1;
}
.gd-player-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gd-player-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.gd-player-jersey {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}
.gd-player-pos {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 1px 6px;
    border-radius: 4px;
}
.gd-player-bat {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}
.gd-player-stats { }
.gd-ps-row {
    display: flex;
    justify-content: space-around;
    gap: 4px;
    margin-bottom: 3px;
}
.gd-ps-row:last-child { margin-bottom: 0; }
.gd-ps {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
}
.gd-ps-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.gd-ps-val {
    font-size: 11px;
    font-weight: 700;
}
.gd-ps-val.orange { color: var(--orange); }
.gd-ps-val.blue { color: var(--blue); }
.gd-ps-val.red { color: var(--red); }
.gd-ps-val.green { color: var(--green); }

.gd-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 16px 0;
}

/* ===== DOWNLOAD APP SECTION ===== */
.download-app {
    background: var(--bg-alt);
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

.download-app-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 960px;
    margin: 0 auto;
}

.download-app-content {
    flex: 1;
    min-width: 0;
}

.download-app-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 16px;
}

.download-app-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.download-app-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-bottom: 28px;
}

.download-app-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.download-app-feature svg {
    flex-shrink: 0;
}

.download-app-stores {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-btn-large {
    padding: 12px 24px !important;
    min-width: 190px !important;
    border-radius: 12px !important;
}

.store-btn-large .store-icon {
    width: 28px;
    height: 28px;
}

.store-btn-large .store-name {
    font-size: 16px;
}

.store-btn-large .store-label {
    font-size: 10px;
}

.download-app-image {
    flex-shrink: 0;
    width: 280px;
}

.download-app-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    .download-app {
        padding: 40px 0;
    }

    .download-app-inner {
        flex-direction: column-reverse;
        gap: 32px;
        text-align: center;
    }

    .download-app-title {
        font-size: 22px;
    }

    .download-app-features {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }

    .download-app-stores {
        justify-content: center;
    }

    .download-app-image {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .download-app-stores {
        flex-direction: column;
        align-items: center;
    }

    .store-btn-large {
        width: 100% !important;
        justify-content: center;
    }
}

/* ===== OTHER APPS SECTION ===== */
.other-apps {
    background: var(--bg);
    padding: 36px 0;
    border-top: 1px solid var(--border);
}

.other-apps-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 24px;
}

.other-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.other-app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.2s;
    text-decoration: none;
}
.other-app-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.other-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.other-app-info h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.other-app-info p {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .other-apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .other-app-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }
    .other-app-info h3 { font-size: 12px; }
    .other-app-info p { font-size: 10px; }
}

/* ===== SEO CONTENT BLOCK ===== */
.seo-content {
    padding: 32px 0;
}

.seo-block {
    max-width: 800px;
    margin: 0 auto;
}

.seo-block h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    text-align: center;
}

.seo-block p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.seo-block p:last-child {
    margin-bottom: 0;
}

/* ===== NEWS PAGINATION ===== */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
    margin-top: 16px;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
}

.news-pagination a {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
}

.news-pagination a:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.news-pagination .pagination-current {
    background: var(--orange);
    color: #fff;
    border: 1px solid var(--orange);
}

.news-pagination .pagination-dots {
    border: none;
    background: none;
    color: var(--text-muted);
}

/* ===== GAME DETAIL RESPONSIVE ===== */
@media (max-width: 768px) {
    .gd-matchup {
        flex-direction: column;
        gap: 16px;
    }
    .gd-team {
        flex-direction: row;
        max-width: none;
        gap: 12px;
    }
    .gd-team-logo { width: 48px; height: 48px; }
    .gd-team-info { text-align: left; }
    .gd-score-center { order: -1; }
    .gd-score { font-size: 32px; }
    .gd-pitchers { flex-direction: column; align-items: center; }
    .gd-pitcher { max-width: none; width: 100%; }
    .gd-pitcher-vs { padding: 8px 0; }
    .gd-recent-grid { grid-template-columns: 1fr; }
    .gd-compare-val { min-width: 60px; font-size: 13px; }
    .gd-roster-columns { grid-template-columns: 1fr; }
}
