/* CubshQ current-season MLB / NL / AL leaders. Bump cnet version_css_main after edits. */

.mlb-ld {
    --mlb-navy: #0E3386;
    --mlb-red: #D12325;
    --mlb-ink: #1d1d1f;
    --mlb-muted: #5a5a60;
    --mlb-line: rgba(14, 51, 134, 0.16);
    --mlb-card: #fff;
    --mlb-wash: #e8eef8;
    color: var(--mlb-ink);
    padding: 0 0 32px;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

html.dark-mode .mlb-ld {
    --mlb-ink: var(--dm-text-primary, #f1f5f9);
    --mlb-muted: var(--dm-text-secondary, #bbb);
    --mlb-line: rgba(255, 255, 255, 0.14);
    --mlb-card: var(--dm-bg-elevated, #1c1f25);
    --mlb-wash: rgba(14, 51, 134, 0.38);
    color: var(--dm-text-primary, #f1f5f9);
}

.mlb-ld__hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    background: linear-gradient(125deg, #0E3386 0%, #071a45 72%);
    color: #fff;
    border-radius: 12px;
    padding: 22px 20px 18px;
    margin-bottom: 18px;
}

.mlb-ld__kicker {
    margin: 0 0 6px;
    color: #ffb4b4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mlb-ld__hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font: 400 clamp(26px, 4vw, 40px)/1.15 Georgia, "Times New Roman", serif;
}

.mlb-ld__updated {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.mlb-ld__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.mlb-ld__pills--group {
    margin-bottom: 18px;
}

.mlb-ld__pill {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--mlb-line);
    background: var(--mlb-card);
    color: var(--mlb-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.mlb-ld__pill:hover {
    text-decoration: none;
}

.mlb-ld__pill.is-active {
    border-color: transparent;
    color: #fff;
}

html.dark-mode .mlb-ld__pill.is-active {
    color: #fff;
}

.mlb-ld__empty {
    margin: 0 0 12px;
    color: var(--mlb-muted);
    font-size: 14px;
}

html.dark-mode .mlb-ld__empty {
    color: var(--dm-text-secondary, #bbb);
}

.mlb-ld__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mlb-ld__card {
    background: var(--mlb-card);
    border: 1px solid var(--mlb-line);
    border-radius: 12px;
    padding: 14px 14px 10px;
    min-width: 0;
}

.mlb-ld__card h2 {
    margin: 0;
    color: #0E3386;
    font-size: 22px;
    font-weight: 800;
}

html.dark-mode .mlb-ld__card h2 {
    color: var(--dm-text-primary, #f1f5f9);
}

.mlb-ld__card-label {
    margin: 0 0 10px;
    color: var(--mlb-muted);
    font-size: 12px;
}

html.dark-mode .mlb-ld__card-label {
    color: var(--dm-text-secondary, #bbb);
}

.mlb-ld__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mlb-ld__table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mlb-muted);
    padding: 0 6px 6px 0;
    border-bottom: 1px solid var(--mlb-line);
}

html.dark-mode .mlb-ld__table th {
    color: var(--dm-text-secondary, #bbb);
}

.mlb-ld__table td {
    padding: 7px 6px 7px 0;
    border-bottom: 1px solid var(--mlb-line);
    color: var(--mlb-ink);
    vertical-align: middle;
}

html.dark-mode .mlb-ld__table td {
    color: var(--dm-text-primary, #f1f5f9);
}

.mlb-ld__table tr.is-cubs td {
    background: #fff2e8;
}

html.dark-mode .mlb-ld__table tr.is-cubs td {
    background: rgba(245, 102, 0, 0.18);
}

.mlb-ld__rank {
    width: 28px;
    font-weight: 800;
    color: #0E3386;
}

html.dark-mode .mlb-ld__rank {
    color: var(--dm-text-primary, #f1f5f9);
}

.mlb-ld__team {
    white-space: nowrap;
}

.mlb-ld__team img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}

.mlb-ld__value {
    text-align: right;
    font-weight: 800;
    white-space: nowrap;
}

.mlb-ld__table th.mlb-ld__value {
    text-align: right;
}

.mlb-ld__note {
    margin: 8px 0 0;
    color: var(--mlb-muted);
    font-size: 11px;
}

html.dark-mode .mlb-ld__note {
    color: var(--dm-text-muted, #a0a0a0);
}

@media (max-width: 768px) {
    .mlb-ld__grid {
        grid-template-columns: 1fr;
    }
}
