/* ===== 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;
}
.mob-nav-divider,
.mob-nav-lang,
.mob-nav-socials { display: none; }

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

.pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    margin-left: 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--orange), #e04a2f);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.pro-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(255, 149, 0, .35);
    color: #fff;
}
.get-pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    margin-left: 8px;
    margin-right: 4px;
    border-radius: 8px;
    border: 1.5px solid var(--orange);
    background: transparent;
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    cursor: pointer;
    transition: transform .15s, background .15s, color .15s;
}
.get-pro-badge:hover {
    background: linear-gradient(135deg, var(--orange), #e04a2f);
    color: #fff;
    transform: translateY(-1px);
    border-color: transparent;
}

.tz-switcher {
    display: none;
    align-items: center;
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    margin-left: 8px;
    gap: 0;
}
.tz-switcher.visible { display: flex; }
.tz-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: color 0.2s;
    white-space: nowrap;
}
.tz-btn:hover { color: var(--text-secondary); }
.tz-btn.active { color: var(--orange); }
.tz-indicator {
    position: absolute;
    top: 3px;
    left: 3px;
    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), width 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);
}
.chip-postponed {
    background: #fef3c7;
    color: #92400e;
}
.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;
    gap: 6px;
}

.game-weather {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted, #888);
    cursor: default;
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg, rgba(0,0,0,.02));
    flex-shrink: 1;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.game-weather svg {
    color: var(--text-muted, #888);
    opacity: .7;
    flex-shrink: 0;
}
.game-weather-temp {
    font-weight: 600;
    color: var(--text, #333);
}
.game-weather-sep {
    opacity: .35;
}
.game-weather-cond,
.game-weather-wind {
    white-space: nowrap;
}
.weather-badge-forecast {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: rgba(59, 130, 246, .1);
    color: rgba(59, 130, 246, .8);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
    line-height: 1.3;
}

.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;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.inning-arrow {
    font-size: 8px;
    line-height: 1;
}
.inning-top { color: #dc2626; }
.inning-bot { color: #2563eb; }
.inning-mid { color: #6b7280; }

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

.status-postponed {
    font-size: 11px;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    padding: 6px 14px 0;
}
.game-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg, rgba(0,0,0,.02));
    color: var(--text-muted, #888);
}
.game-meta-item svg {
    flex-shrink: 0;
    opacity: .7;
}
.game-meta-dh svg { color: #7c3aed; opacity: .9; }
.game-meta-makeup svg { color: #d97706; opacity: .9; }

.gd-dh-badge {
    font-size: 11px;
    font-weight: 700;
    color: #5b21b6;
    background: #ede9fe;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: inline-block;
}

.gd-makeup-badge {
    font-size: 11px;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 4px;
    display: inline-block;
}

/* 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;
    object-fit: contain;
    flex-shrink: 0;
}
.matchup-logo-ph {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    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-record {
    font-size: 10px;
    font-weight: 500;
    color: #888;
    line-height: 1;
}

.matchup-winner .matchup-name { color: var(--orange); }
.matchup-winner .matchup-logo { filter: drop-shadow(0 0 4px 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;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.matchup-pitcher-photo {
    width: 30px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
}

.matchup-pitcher-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* ===== LIVE PANEL ===== */
.live-panel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin: 0 12px 6px;
    background: var(--bg-secondary);
    border-radius: 8px;
}
.live-situation {
    display: flex;
    align-items: center;
    gap: 10px;
}
.live-diamond {
    position: relative;
    width: 30px;
    height: 24px;
}
.diamond-base {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--border);
    transform: rotate(45deg);
    border-radius: 2px;
}
.diamond-base.diamond-occupied {
    background: #f59e0b;
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
}
.diamond-second { top: 0; left: 10px; }
.diamond-third { top: 10px; left: 0; }
.diamond-first { top: 10px; left: 20px; }
.live-count {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.count-row {
    display: flex;
    align-items: center;
    gap: 3px;
}
.count-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    width: 10px;
}
.count-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}
.count-ball-active { background: #22c55e; }
.count-strike-active { background: #ef4444; }
.count-out-active { background: #6b7280; }
.live-player {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.live-panel > :first-child {
    justify-self: end;
}
.live-panel > :last-child {
    justify-self: start;
}
.live-player-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    flex-shrink: 0;
}
.live-player-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.live-player-label {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
}
.live-label-pitch {
    background: #dbeafe;
    color: #2563eb;
}
.live-label-bat {
    background: #fef2f2;
    color: #dc2626;
}
html.dark .live-label-pitch {
    background: #1e3a5f;
    color: #60a5fa;
}
html.dark .live-label-bat {
    background: #3b1111;
    color: #f87171;
}
.live-player-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 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;
    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: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--bg);
}
.news-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.news-list-thumb img.news-img-player {
    object-fit: cover;
    object-position: center top;
}
.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: 80px; }
}

/* ===== 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: 60px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    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); }
.streak-hot { color: #dc2626; font-weight: 600; }
.streak-cold { color: #2563eb; font-weight: 600; }
.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-photo { width: 24px; height: 24px; }
    .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);
        z-index: 100;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }
    html.dark .main-nav {
        background: rgba(28,28,30,0.98);
    }
    .main-nav.open { display: flex; }
    .mobile-menu-btn { display: flex; }
    .nav-link {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 12px;
    }
    .mob-nav-divider,
    .mob-nav-lang,
    .mob-nav-socials { display: block; }
    .mob-nav-divider {
        height: 1px;
        background: var(--border);
        margin: 8px 0;
    }
    .mob-lang-select-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 12px;
        margin: 0 4px;
        position: relative;
        color: var(--text-secondary);
    }
    .mob-lang-select {
        flex: 1;
        appearance: none;
        border: none;
        background: transparent;
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
        cursor: pointer;
        padding-right: 20px;
    }
    .mob-lang-select:focus { outline: none; }
    .mob-lang-chevron {
        position: absolute;
        right: 14px;
        pointer-events: none;
        color: var(--text-muted);
    }
    .mob-nav-socials {
        display: flex;
        justify-content: center;
        gap: 16px;
        padding: 8px 0 4px;
    }
    .mob-nav-socials a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--bg);
        border: 1px solid var(--border);
        color: var(--text-secondary);
        transition: all .15s;
    }
    .mob-nav-socials a:hover { border-color: var(--orange); color: var(--orange); }
    .mob-nav-socials svg { fill: currentColor; }

    .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; }
    .lang-switcher { 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 .chip-postponed { background: #2a1f08; color: #fbbf24; }
html.dark .status-postponed { background: #2a1f08; color: #fbbf24; }
html.dark .gd-status-postponed { background: #2a1f08; color: #fbbf24; }
html.dark .game-meta-item { background: #141416; }
html.dark .game-meta-dh svg { color: #c4b5fd; }
html.dark .game-meta-makeup svg { color: #fbbf24; }
html.dark .gd-dh-badge { background: #1f1530; color: #c4b5fd; }
html.dark .gd-makeup-badge { background: #2a1f08; color: #fbbf24; }
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);
}
.gd-ai-confidence {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    flex-wrap: wrap;
}
.gd-ai-conf-bar {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.gd-ai-conf-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.gd-ai-conf-label {
    font-size: 13px;
    color: var(--text-secondary);
}
.gd-ai-conf-winner {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    background: rgba(34,197,94,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}
.gd-ai-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(37,99,235,0.08);
}
.gd-ai-dynamics { margin-top: 8px; }
.gd-ai-phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.gd-ai-phase {
    background: rgba(37,99,235,0.04);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.gd-ai-phase-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.gd-ai-phase-runs {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--blue);
}
.gd-ai-phase-note {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}
.gd-ai-teams-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.gd-ai-team-col h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.gd-ai-tag {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 2px 4px 2px 0;
    line-height: 1.4;
}
.gd-ai-tag-green {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
}
.gd-ai-tag-red {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}
.gd-ai-tag-yellow {
    background: rgba(245,158,11,0.1);
    color: #f59e0b;
}
.gd-ai-matchup-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(37,99,235,0.04);
    border-radius: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.gd-ai-mu-batter, .gd-ai-mu-pitcher {
    font-size: 13px;
    font-weight: 600;
}
.gd-ai-mu-vs {
    font-size: 11px;
    color: var(--text-secondary);
}
.gd-ai-mu-edge {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}
.gd-ai-mu-edge-bat {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}
.gd-ai-mu-edge-pit {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}
.gd-ai-mu-why {
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
    min-width: 150px;
}
.gd-ai-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.gd-ai-prop-card {
    text-align: center;
    background: rgba(37,99,235,0.04);
    border-radius: 8px;
    padding: 14px 10px;
}
.gd-ai-prop-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 4px;
}
.gd-ai-prop-val {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}
.gd-ai-prop-conf {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.gd-ai-narrative-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
    font-style: italic;
}
.gd-ai-conf-reason {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(37,99,235,0.08);
    font-style: italic;
}
@media (max-width: 480px) {
    .gd-ai-phases { grid-template-columns: 1fr; }
    .gd-ai-teams-grid { grid-template-columns: 1fr; }
}

@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.15));
}
.gd-team-logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    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-status-postponed {
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    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-section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.gd-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 10px 16px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
}
.gd-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.gd-info-item svg { opacity: 0.6; }
.gd-decision {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}
.gd-decision-w { background: #dcfce7; color: #16a34a; }
.gd-decision-l { background: #fee2e2; color: #dc2626; }
.gd-decision-s { background: #dbeafe; color: #2563eb; }
html.dark .gd-decision-w { background: #14532d; color: #4ade80; }
html.dark .gd-decision-l { background: #450a0a; color: #f87171; }
html.dark .gd-decision-s { background: #1e3a5f; color: #60a5fa; }
.gd-scoring-plays {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gd-scoring-play {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 12px;
}
.gd-sp-inning {
    font-weight: 700;
    min-width: 32px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.gd-sp-desc {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.4;
}
.gd-sp-score {
    font-weight: 700;
    white-space: nowrap;
}
.gd-boxscore-table { font-size: 12px; }
.gd-bs-player {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gd-bs-photo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    flex-shrink: 0;
}
.gd-bs-pos {
    font-size: 10px;
    color: var(--text-secondary);
    margin-left: 2px;
}
.tp-il-badge {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: #c53030;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    white-space: nowrap;
    vertical-align: middle;
}
.tp-il-note {
    font-size: 10px;
    color: var(--text-secondary);
    margin-left: 6px;
    font-style: italic;
}
.tp-il-date {
    font-size: 10px;
    color: #c53030;
    margin-left: 4px;
    font-weight: 600;
}
.tp-row-il {
    opacity: 0.55;
}
.gd-pp-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.gd-pp-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    min-width: 120px;
}
.gd-pp-photo {
    width: 80px;
    height: 100px;
    border-radius: 14px;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--border);
}
.gd-pp-name {
    font-size: 15px;
    font-weight: 700;
}
.gd-pp-meta {
    font-size: 11px;
    color: var(--text-secondary);
}
.gd-pp-stats {
    display: flex;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}
.gd-pp-era {
    color: var(--orange, #ea580c);
}
.gd-pp-detail {
    font-size: 12px;
    color: var(--blue, #2563eb);
    font-weight: 600;
}
.gd-pp-vs {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}
@media (max-width: 480px) {
    .gd-pp-matchup { gap: 12px; padding: 14px 10px; }
    .gd-pp-photo { width: 60px; height: 76px; }
    .gd-pp-player { min-width: 90px; }
}
.gd-bs-totals {
    border-top: 2px solid var(--border);
}
.gd-bs-note {
    font-size: 9px;
    color: var(--text-secondary);
    margin-left: 4px;
    font-weight: 400;
}
.gd-team-notes {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.gd-team-notes strong {
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}
.gd-note-line {
    padding-left: 4px;
}
.gd-game-info-detail {
    padding: 12px 14px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.gd-gi-row strong {
    color: var(--text);
}
.gd-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}
.gd-empty-state svg {
    margin-bottom: 12px;
    opacity: 0.4;
}
.gd-empty-state p {
    font-size: 14px;
}
.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: 110px;
    margin: 0 auto 12px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg);
    border: 2px solid var(--border);
}
.gd-pitcher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.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; }
}

/* Unlock AI Button */
.unlock-ai-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 16px 16px;
    padding: 10px 16px;
    width: calc(100% - 32px);
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--orange), #e04a2f);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.unlock-ai-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 149, 0, .35);
}
.unlock-ai-btn svg { flex-shrink: 0; }

/* Game Detail Unlock Card */
.gd-unlock-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}
.gd-unlock-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}
.gd-unlock-header svg { stroke: var(--orange); }
.gd-unlock-header h3 { font-size: 20px; margin: 0; }
.gd-unlock-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.gd-unlock-card .unlock-ai-btn {
    max-width: 400px;
    margin: 0 auto;
}
.gd-unlock-note {
    color: var(--text-muted);
    font-size: 12px;
    margin: 16px 0 0;
}

.gd-prediction-pending {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}
.gd-pending-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 149, 0, .1);
    margin-bottom: 16px;
}
.gd-prediction-pending h3 {
    font-size: 20px;
    margin: 0 0 10px;
}
.gd-prediction-pending p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto 20px;
}
.gd-pending-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}
.gd-pending-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Paywall Modal */
.paywall-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.paywall-overlay.active { display: flex; }

.paywall-modal {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px 32px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    animation: paywallIn .3s ease;
}
@keyframes paywallIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.paywall-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.paywall-close:hover { color: var(--text); }

.paywall-header { text-align: center; margin-bottom: 28px; }
.paywall-icon { display: block; margin: 0 auto 16px; }
.paywall-header h2 { font-size: 22px; margin: 0 0 6px; }
.paywall-subtitle { color: var(--text-secondary); font-size: 14px; margin: 0; }

.paywall-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}
.paywall-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}
.paywall-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}
.paywall-feature div {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.paywall-feature strong { font-size: 14px; }
.paywall-feature span { font-size: 12px; color: var(--text-secondary); }
.paywall-feature > svg { flex-shrink: 0; }

.paywall-plans {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.paywall-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, transform .15s, box-shadow .15s;
    position: relative;
}
.paywall-plan:hover {
    border-color: var(--orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 149, 0, .15);
}
.paywall-plan-best {
    border-color: var(--orange);
    background: linear-gradient(135deg, rgba(255,149,0,.06), rgba(52,199,89,.06));
    padding-top: 28px;
}
.paywall-plan-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--orange), #34c759);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 0 0 8px 8px;
    white-space: nowrap;
}
.paywall-plan-info { display: flex; flex-direction: column; gap: 2px; }
.paywall-plan-info strong { font-size: 16px; }
.paywall-plan-info span { font-size: 12px; color: var(--text-secondary); }
.paywall-plan-price { display: flex; align-items: baseline; gap: 3px; }
.paywall-plan-price strong { font-size: 24px; }
.paywall-plan-price span { font-size: 13px; color: var(--text-secondary); }

.paywall-restore {
    text-align: center;
    margin-bottom: 16px;
}
.paywall-restore-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.paywall-restore-toggle:hover { color: var(--orange); }
.paywall-restore-form {
    display: none;
    margin-top: 12px;
}
.paywall-restore.open .paywall-restore-form { display: block; }
.paywall-restore-input-wrap {
    display: flex;
    gap: 8px;
}
.paywall-restore-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: var(--bg);
    color: var(--text);
}
.paywall-restore-input:focus { outline: none; border-color: var(--orange); }
.paywall-restore-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s;
}
.paywall-restore-btn:disabled { opacity: .5; cursor: not-allowed; }
.paywall-restore-btn:hover:not(:disabled) { opacity: .9; }
.paywall-restore-msg {
    font-size: 12px;
    margin: 8px 0 0;
}
.paywall-restore-msg.success { color: var(--green); }
.paywall-restore-msg.error { color: #e04a2f; }

.paywall-footer {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
}
.paywall-note {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 10px;
}
.paywall-stores {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.paywall-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, transform .15s;
}
.paywall-store-btn:hover {
    border-color: var(--orange);
    transform: translateY(-1px);
}
.paywall-store-btn svg { flex-shrink: 0; }

@media (max-width: 480px) {
    .paywall-modal { padding: 32px 20px 24px; }
    .paywall-header h2 { font-size: 18px; }
    .paywall-plan-price strong { font-size: 20px; }
}

.pro-badge-warning {
    background: linear-gradient(135deg, #e04a2f, #b53a23) !important;
    position: relative;
}
.pro-badge-warning::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffcc00;
    border: 2px solid var(--card);
}

/* ===== SUBSCRIPTION PAGE ===== */
.subscription-page { padding: 32px 0 48px; }
.subscription-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
    padding: 32px;
}
.subscription-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.subscription-header-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 149, 0, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.subscription-header h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--text);
}
.subscription-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
.subscription-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.subscription-status strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}
.subscription-status span {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.subscription-status-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
}
.subscription-status-active {
    background: rgba(52, 199, 89, .1);
    border: 1px solid rgba(52, 199, 89, .25);
}
.subscription-status-active .subscription-status-dot {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(52, 199, 89, .2);
}
.subscription-status-active strong { color: var(--green); }
.subscription-status-warning {
    background: rgba(255, 204, 0, .1);
    border: 1px solid rgba(255, 204, 0, .3);
}
.subscription-status-warning .subscription-status-dot {
    background: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, .25);
}
.subscription-status-warning strong { color: #b8860b; }
.subscription-status-inactive {
    background: rgba(224, 74, 47, .08);
    border: 1px solid rgba(224, 74, 47, .25);
}
.subscription-status-inactive .subscription-status-dot {
    background: #e04a2f;
    box-shadow: 0 0 0 3px rgba(224, 74, 47, .2);
}
.subscription-status-inactive strong { color: #e04a2f; }
.subscription-details {
    margin: 0 0 24px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.subscription-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    margin: 0;
}
.subscription-detail-row:last-child { border-bottom: none; }
.subscription-detail-row dt {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}
.subscription-detail-row dd {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    margin: 0;
    text-align: right;
}
.subscription-detail-warning { color: #e04a2f !important; }
.subscription-actions {
    text-align: center;
    margin-bottom: 16px;
}
.subscription-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
}
.subscription-btn-primary {
    background: linear-gradient(135deg, var(--orange), #e04a2f);
    color: #fff;
}
.subscription-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 149, 0, .35);
    color: #fff;
}
.subscription-help {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 12px 0 0;
    line-height: 1.5;
}
.subscription-empty { text-align: center; }
.subscription-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 20px;
}
.subscription-plans {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.subscription-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    text-decoration: none;
    color: var(--text);
    position: relative;
    transition: border-color .2s, transform .15s;
}
.subscription-plan:hover {
    border-color: var(--orange);
    transform: translateY(-1px);
}
.subscription-plan-best { border-color: var(--orange); }
.subscription-plan-badge {
    position: absolute;
    top: -8px;
    right: 14px;
    background: linear-gradient(135deg, var(--orange), #e04a2f);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 3px 8px;
    border-radius: 6px;
}
.subscription-plan-info { text-align: left; }
.subscription-plan-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}
.subscription-plan-info span {
    font-size: 12px;
    color: var(--text-secondary);
}
.subscription-plan-price { text-align: right; }
.subscription-plan-price strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--orange);
}
.subscription-plan-price span {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: 2px;
}
.subscription-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.subscription-back {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}
.subscription-back:hover { color: var(--orange); }

@media (max-width: 480px) {
    .subscription-card { padding: 24px 20px; }
    .subscription-header h1 { font-size: 18px; }
    .subscription-detail-row { padding: 10px 12px; }
}

/* ===== PLAYER DETAIL PAGE ===== */
.pp-header { padding: 24px 0 0; }
.pp-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.pp-photo-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}
.pp-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.pp-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg);
}
.pp-hero-info { flex: 1; min-width: 0; }
.pp-hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.pp-team-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.pp-team-logo { width: 20px; height: 20px; }
.pp-jersey {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-muted);
}
.pp-name {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 4px;
}
.pp-nickname {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 8px;
}
.pp-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    margin-bottom: 4px;
}
.pp-meta-secondary { margin-top: 2px; }
.pp-bio {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.pp-bio p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}
.pp-pos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    background: var(--orange);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}
.pp-meta-item {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.pp-section { padding: 12px 0; }

.pp-stat-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}
.pp-stat-grid:last-child { margin-bottom: 0; }
.pp-stat-grid-5 { grid-template-columns: repeat(5, 1fr); }
.pp-stat-grid-6 { grid-template-columns: repeat(6, 1fr); }
.pp-stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pp-stat-box {
    text-align: center;
    padding: 14px 8px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.pp-stat-sm { padding: 10px 6px; }
.pp-stat-val {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}
.pp-stat-sm .pp-stat-val { font-size: 16px; }
.pp-stat-val.orange { color: var(--orange); }
.pp-stat-val.red { color: var(--red); }
.pp-stat-val.blue { color: var(--blue); }
.pp-stat-val.green { color: var(--green); }
.pp-stat-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.pp-pitch-bars { display: flex; flex-direction: column; gap: 10px; }
.pp-pitch-row {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 12px;
    align-items: center;
}
.pp-pitch-info { display: flex; align-items: baseline; gap: 8px; }
.pp-pitch-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.pp-pitch-code {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
}
.pp-pitch-bar-wrap {
    height: 22px;
    background: var(--bg);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.pp-pitch-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), #f59e0b);
    border-radius: 6px;
    min-width: 4px;
    transition: width 0.6s ease;
}
.pp-pitch-details {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}
.pp-pitch-pct {
    font-weight: 800;
    color: var(--text);
    min-width: 36px;
}

.pp-current-season { background: var(--orange-light); }
.pp-current-season td { font-weight: 700; }

a.pp-player-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
a.pp-player-link:hover { color: var(--orange); }

.matchup-pitcher-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.matchup-pitcher-link:hover .matchup-pitcher-name { color: var(--orange); }

.gd-pitcher-link {
    text-decoration: none;
    color: inherit;
    display: contents;
}
.gd-pitcher-link:hover .gd-pitcher-name { color: var(--orange); }

.gd-bs-player-link {
    text-decoration: none;
    color: inherit;
}
.gd-bs-player-link:hover span:first-of-type { color: var(--orange); }

.gd-player-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.gd-player-card-link:hover .gd-player-name { color: var(--orange); }

.gd-pp-player-link {
    text-decoration: none;
    color: inherit;
}
.gd-pp-player-link:hover .gd-pp-name { color: var(--orange); }

.live-player-link {
    text-decoration: none;
    color: inherit;
}
.live-player-link:hover .live-player-name { color: var(--orange); }

@media (max-width: 768px) {
    .pp-hero { gap: 16px; }
    .pp-photo-wrap { width: 100px; height: 125px; }
    .pp-name { font-size: 22px; }
    .pp-jersey { font-size: 18px; }
    .pp-stat-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .pp-stat-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .pp-stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pp-pitch-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
    }
    .pp-pitch-row:last-child { border-bottom: none; }
    .pp-pitch-details { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .pp-hero { flex-direction: column; align-items: center; text-align: center; }
    .pp-hero-top { justify-content: center; }
    .pp-meta-row { justify-content: center; }
    .pp-photo-wrap { width: 110px; height: 138px; }
}

/* ===== TEAM DETAIL PAGE ===== */
.tp-header { padding: 24px 0 0; }
.tp-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.tp-logo-wrap {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tp-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.tp-hero-info { flex: 1; min-width: 0; }
.tp-name {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 6px;
}
.tp-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    margin-bottom: 4px;
}
.tp-meta-secondary { margin-top: 2px; }
.tp-meta-item {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.tp-record-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 6px;
}
.tp-record {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}
.tp-pct {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue);
}
.tp-gb {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.tp-streak {
    font-size: 14px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg);
}
.tp-games-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.tp-game-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
}
.tp-game-row:last-child { border-bottom: none; }
.tp-game-row:hover { background: var(--bg); }
.tp-game-date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 50px;
}
.tp-game-loc {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}
.tp-game-opp {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}
.tp-game-score {
    font-size: 14px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}
.tp-game-time {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}
.tp-game-status {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.tp-news-list .sidebar-news-item { padding: 12px 0; }
.news-entities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.news-entities-compact { margin-top: 6px; }
.news-entity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}
.news-entity:hover {
    border-color: var(--orange);
    background: var(--orange-light);
}
.news-entity-img {
    width: 22px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
}
.news-entity-img.news-entity-player {
    object-fit: cover;
    object-position: center top;
}
.news-entity-img.news-entity-team {
    object-fit: contain;
    border-radius: 0;
    height: 22px;
}
.news-entity-sm {
    padding: 3px 8px 3px 3px;
    font-size: 11px;
}
.news-entity-sm .news-entity-img {
    width: 18px;
    height: 24px;
}
.news-entity-sm .news-entity-img.news-entity-team {
    height: 18px;
}
.news-img-player {
    object-fit: cover;
    object-position: center top;
}
.news-img-logo {
    object-fit: contain;
    padding: 8px;
    background: var(--bg);
}
.sidebar-news-img.news-img-logo {
    padding: 4px;
    border-radius: 6px;
    background: var(--bg);
}
.news-feed-image .news-img-player {
    object-fit: contain;
    object-position: center;
    padding: 8px;
    background: var(--bg);
}
.news-feed-image .news-img-logo {
    object-fit: contain;
    padding: 16px;
    background: var(--bg);
}
.news-list-thumb .news-img-logo {
    object-fit: contain;
    padding: 6px;
    background: var(--bg);
}
.tp-news-headline {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.tp-news-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 4px 0 0;
}
.matchup-team a.tp-team-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

a.tp-team-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s;
}
a.tp-team-link:hover { color: var(--orange); }

.st-team-link {
    text-decoration: none;
    color: inherit;
}
.st-team-link:hover .st-team-cell { color: var(--orange); }

@media (max-width: 768px) {
    .tp-hero { gap: 16px; }
    .tp-logo-wrap { width: 72px; height: 72px; }
    .tp-name { font-size: 22px; }
}
@media (max-width: 480px) {
    .tp-hero { flex-direction: column; align-items: center; text-align: center; }
    .tp-meta-row { justify-content: center; }
    .tp-record-row { justify-content: center; }
}

/* ===== SMART APP BANNER ===== */
.smart-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-family: var(--font);
    position: relative;
    z-index: 101;
    animation: smartBannerSlide 0.25s ease-out;
}
.smart-banner[hidden] { display: none; }
@keyframes smartBannerSlide {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
.smart-banner-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}
.smart-banner-close:hover {
    color: var(--text);
    background: var(--border);
}
.smart-banner-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    overflow: hidden;
    background: #3a4449;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}
.smart-banner-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.smart-banner-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.smart-banner-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.smart-banner-sub {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.smart-banner-btn {
    flex-shrink: 0;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: opacity 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}
.smart-banner-btn:hover { opacity: 0.92; }
.smart-banner-btn:active { transform: scale(0.97); }
.smart-banner .sb-btn-ios,
.smart-banner .sb-btn-android { display: none; }
.smart-banner--ios .sb-btn-ios { display: inline; }
.smart-banner--android .sb-btn-android { display: inline; }
@media (min-width: 768px) {
    .smart-banner { display: none !important; }
}

/* ===== BASKETBALL ADDITIONS ===== */
@font-face {
    font-family: 'Montserrat Alternates';
    src: url('../fonts/montserratalternates-regular-webfont.woff2') format('woff2'),
         url('../fonts/montserratalternates-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat Alternates';
    src: url('../fonts/montserratalternates-bold-webfont.woff2') format('woff2'),
         url('../fonts/montserratalternates-bold-webfont.woff') format('woff');
    font-weight: 500 800;
    font-style: normal;
    font-display: swap;
}

html.dark .header-logo,
html.dark .footer-logo {
    filter: invert(1) hue-rotate(180deg) saturate(1.6);
}
html.dark .rianon-logo {
    filter: invert(1) hue-rotate(180deg);
}

.ball-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.league-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 0;
}
.league-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}
.league-pill:hover {
    border-color: var(--orange);
    color: var(--text);
}
.league-pill.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}
.league-pill-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.league-pill.active .league-pill-logo {
    filter: brightness(0) invert(1);
}

.game-card-league {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: auto;
}
.game-card-league img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}
.game-top .status-final ~ .game-card-league,
.game-card-league:last-child {
    margin-left: auto;
}

.status-timer {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--red);
}

.gd-league-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.gd-league-line img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.gd-stat-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gd-stat-bar-row {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    gap: 12px;
}
.gd-stat-bar-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    grid-column: 2;
}
.gd-stat-bar-vals {
    display: contents;
}
.gd-stat-bar-val {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.gd-stat-bar-val.gd-stat-better { color: var(--orange); }
.gd-stat-track {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--border);
}
.gd-stat-track-away { background: var(--orange); height: 100%; }
.gd-stat-track-home { background: var(--blue); height: 100%; }

.standings-league-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

/* ===== BASKETBALL IDENTITY (palette from the app icon: orange gradient + amber) ===== */
:root {
    --bg: #faf4ec;
    --bg-alt: #fdf9f3;
    --brand: #ea580c;
    --brand-2: #ff8c2e;
    --brand-deep: #b83f04;
    --amber: #ffb213;
    --orange: #e8590c;
    --orange-light: #fdeee2;
    --orange-border: #f3c9a8;
    --radius: 16px;
}
html.dark {
    --bg: #15100a;
    --bg-alt: #201812;
    --card: #201812;
    --white: #201812;
    --border: #3a2c1e;
    --brand: #c2490a;
    --brand-2: #e97622;
    --brand-deep: #8a3003;
    --orange: #ff8a3d;
    --orange-light: #2e1c0d;
    --orange-border: #5c3a1a;
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 4px 14px rgba(0,0,0,0.3);
}

.site-header {
    background: rgba(250,244,236,0.92);
    border-bottom: 1px solid var(--border);
}
html.dark .site-header { background: rgba(21,16,10,0.92); }
.site-header::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--brand) 45%, var(--brand-deep));
}

.hero-section {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 55%, var(--brand-deep) 100%);
    padding: 40px 0 32px;
}
.hero-title { color: #fff; }
.hero-subtitle { color: #ffe3cb; }

.league-header,
.league-al,
.league-nl { background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.league-nl { background: linear-gradient(135deg, #e79a10, #d97706); }

.matchup-score {
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    padding: 7px 14px;
    border-radius: 12px;
}
.matchup-score .matchup-runs { color: #fff; }
.matchup-score .runs-winner { color: #ffe08a; }
.matchup-score .matchup-colon { color: rgba(255,255,255,0.55); }

.matchup-ball {
    margin-top: 8px;
    opacity: 0.9;
    flex-shrink: 0;
}

.game-details-btn:hover {
    box-shadow: 0 4px 12px rgba(232, 89, 12, 0.3);
}

.sb-r-winner,
.gd-sb-total-winner { background: var(--brand) !important; color: #fff !important; }

.download-app { background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 55%, var(--brand-deep) 100%); }
.download-app .download-app-title { color: #fff; }
.download-app .download-app-text { color: #ffe3cb; }
.download-app .download-app-feature span { color: #fff1e3; }
.download-app .download-app-feature svg { stroke: var(--amber); }

.gd-header { background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 55%, var(--brand-deep) 100%); }
.gd-header .gd-team-name,
.gd-header .gd-score { color: #fff; }
.gd-header .gd-score-winner { color: #ffe08a; }
.gd-header .gd-score-divider { color: rgba(255,255,255,0.55); }
.gd-header .gd-team-record,
.gd-header .gd-status-final,
.gd-header .gd-status-scheduled,
.gd-header .gd-league-line { color: #ffe3cb; }
.gd-header .gd-vs { color: #ffe3cb; }
.gd-header .gd-status-live { color: #fff; }

.standings-league-select {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    cursor: pointer;
    max-width: 240px;
}
.standings-league-select:hover { border-color: var(--orange); color: var(--text); }

.league-header-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: filter .15s ease;
}
.league-header-link:hover { filter: brightness(1.08); }
.league-header-link svg { flex-shrink: 0; opacity: .8; }

.standings-more-link {
    display: block;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--orange);
    border-top: 1px solid var(--border);
}
.standings-more-link:hover { background: var(--orange-light); }

/* ===== LEAGUE DIVIDERS IN GAMES LIST ===== */
.league-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 2px 0;
    padding: 0 4px;
}
.league-divider:first-child { margin-top: 0; }
.league-divider-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}
.league-divider-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.league-divider-country {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}
.league-divider-line {
    flex: 1;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--orange-border), transparent);
}
.league-divider-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    white-space: nowrap;
}
.league-divider-link:hover { text-decoration: underline; }

/* ===== AI PREDICTION GENERATION ===== */
.ai-generate-card {
    background: var(--card);
    border: 1px solid var(--orange-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 26px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ai-generate-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--brand) 45%, var(--brand-deep));
}
.ai-generate-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}
.ai-generate-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 6px;
    line-height: 1.55;
}
.ai-generate-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #fff;
    box-shadow: 0 6px 18px rgba(232, 89, 12, 0.35);
}
.ai-generate-icon-muted {
    background: var(--orange-light);
    color: var(--orange);
    box-shadow: none;
}
.ai-generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 13px 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    color: #fff;
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(232, 89, 12, 0.35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.ai-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(232, 89, 12, 0.45);
}
.ai-generate-btn:active { transform: translateY(0); }
.ai-generate-note {
    margin-top: 12px !important;
    font-size: 12px !important;
    color: var(--text-muted) !important;
}
.ai-generate-error {
    margin-top: 10px !important;
    font-size: 13px !important;
    font-weight: 600;
    color: var(--red) !important;
}

/* working state */
.ai-gen-stage {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 6px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-gen-ball {
    color: var(--brand);
    animation: aiBallBounce 1.15s cubic-bezier(.45,0,.55,1) infinite alternate;
    z-index: 2;
}
@keyframes aiBallBounce {
    0%   { transform: translateY(-16px) rotate(-12deg); }
    100% { transform: translateY(12px) rotate(14deg); }
}
.ai-gen-ring {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--brand);
    border-right-color: var(--brand-2);
    animation: aiRingSpin 1.6s linear infinite;
}
.ai-gen-ring-2 {
    inset: 20px;
    border-top-color: var(--amber);
    border-right-color: transparent;
    border-left-color: rgba(232,89,12,0.25);
    animation: aiRingSpin 2.4s linear infinite reverse;
}
@keyframes aiRingSpin { to { transform: rotate(360deg); } }
.ai-gen-spark {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px 2px rgba(255, 178, 19, 0.55);
    animation: aiSpark 2.6s ease-in-out infinite;
}
.ai-gen-spark-1 { top: 8px; right: 14px; animation-delay: 0s; }
.ai-gen-spark-2 { bottom: 12px; left: 8px; animation-delay: .9s; }
.ai-gen-spark-3 { top: 46px; left: -4px; animation-delay: 1.7s; width: 4px; height: 4px; }
@keyframes aiSpark {
    0%, 100% { opacity: 0; transform: scale(.4); }
    50% { opacity: 1; transform: scale(1.25); }
}
.ai-gen-status {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    min-height: 22px;
    transition: opacity .25s ease;
}
.ai-gen-bar {
    width: min(340px, 80%);
    height: 5px;
    margin: 14px auto 0;
    border-radius: 3px;
    background: var(--orange-light);
    overflow: hidden;
    position: relative;
}
.ai-gen-bar-fill {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-2), var(--brand), transparent);
    background-size: 45% 100%;
    background-repeat: no-repeat;
    animation: aiBarSlide 1.4s ease-in-out infinite;
}
@keyframes aiBarSlide {
    0%   { background-position: -60% 0; }
    100% { background-position: 165% 0; }
}
.ai-gen-note {
    margin-top: 12px !important;
    font-size: 12px !important;
    color: var(--text-muted) !important;
}

/* countdown */
.ai-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.ai-countdown-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 74px;
    padding: 12px 10px 9px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
}
.ai-countdown-cell strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--orange);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.ai-countdown-cell span {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-top: 2px;
}
.ai-countdown-sep {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-muted);
}

/* ===== POPULAR LEAGUES ===== */
.league-pill-popular {
    border-color: var(--orange-border);
    background: var(--orange-light);
    color: var(--text);
}
.league-pill-popular:hover { border-color: var(--orange); }
.league-pill-popular.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}
.league-pill-star {
    width: 12px;
    height: 12px;
    color: var(--amber);
    flex-shrink: 0;
}
.league-pill-popular.active .league-pill-star { color: #fff; }
.league-picker-sep {
    width: 1px;
    align-self: stretch;
    margin: 3px 6px;
    background: var(--border);
}
.league-divider-star {
    width: 15px;
    height: 15px;
    color: var(--amber);
    flex-shrink: 0;
}
.league-divider-popular .league-divider-name { color: var(--orange); }

/* ===== TIMEZONE PICKER ===== */
.tz-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 5px 8px 5px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--card);
    color: var(--text-secondary);
}
.tz-picker:hover { border-color: var(--orange); }
.tz-picker svg { flex-shrink: 0; opacity: .75; }
.tz-select {
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    max-width: 190px;
    outline: none;
}
@media (max-width: 640px) {
    .tz-picker { margin-left: 0; margin-top: 8px; }
    .tz-select { max-width: 150px; }
}
