/* NFL Standings (D-029) — division + conference seeding views, bracket, badges. */

.nstd-wrap { max-width: 1080px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.nstd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.nstd-season { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.nstd-season select { background: var(--bg-raised); color: var(--text-primary); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 0.4rem 0.6rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; }

.nstd-controls { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.nstd-seg-group { display: inline-flex; background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: var(--radius-full); padding: 3px; }
.nstd-seg { border: none; background: none; color: var(--text-secondary); font: inherit; font-size: 0.82rem; font-weight: 600; padding: 0.4rem 0.95rem; border-radius: var(--radius-full); cursor: pointer; transition: color 0.15s, background 0.15s; }
.nstd-seg--on { background: var(--accent); color: #1a1205; }

.nstd-conf { margin-bottom: 1.6rem; }
.nstd-conf-title { font-size: 1rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin: 0 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--border-mid); }

/* Division view */
.nstd-div-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.nstd-div-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.nstd-div-head { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.8rem; background: var(--bg-raised); border-bottom: 1px solid var(--border-default); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-subtle); }
.nstd-div-head__cols { display: flex; gap: 0.9rem; }
.nstd-div-head__cols span { width: 2.4rem; text-align: right; }
.nstd-row { display: grid; grid-template-columns: 20px 1fr 2.9rem 2.6rem 4.7rem; align-items: center; gap: 0.55rem; padding: 0.5rem 0.8rem; cursor: pointer; border-bottom: 1px solid var(--border-subtle); transition: background 0.12s; }
.nstd-row:last-child { border-bottom: none; }
.nstd-row:hover { background: var(--bg-card-hover); }
.nstd-row--winner { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.nstd-row__logo img { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; }
.nstd-row__name { display: flex; align-items: center; gap: 0.3rem; font-weight: 700; font-size: 0.84rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nstd-row__rec { text-align: right; font-weight: 700; font-size: 0.82rem; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.nstd-row__pct { text-align: right; font-size: 0.78rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.nstd-row__diff { display: flex; align-items: center; justify-content: flex-end; gap: 0.35rem; font-size: 0.74rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.nstd-bar { position: relative; width: 28px; height: 6px; border-radius: 3px; background: var(--bg-raised); flex: none; }
.nstd-bar::before { content: ''; position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1px; background: var(--border-mid); }
.nstd-bar__fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; }

/* Badges */
.nstd-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.05rem; height: 1.05rem; padding: 0 0.2rem; border-radius: var(--radius-sm); font-size: 0.62rem; font-weight: 800; line-height: 1; }
.nstd-badge--div { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-light); }
.nstd-badge--wc { background: var(--bg-raised); color: var(--text-secondary); border: 1px solid var(--border-mid); }
.nstd-badge--champ, .nstd-badge--runner { background: none; font-size: 0.85rem; min-width: auto; }

/* Conference seeding view */
.nstd-conf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.nstd-tablewrap { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
.nstd-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.nstd-table thead th { position: sticky; top: 0; background: var(--bg-surface); color: var(--text-muted); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.5rem 0.4rem; text-align: center; border-bottom: 1px solid var(--border-default); }
.nstd-table td { padding: 0.45rem 0.4rem; text-align: center; font-variant-numeric: tabular-nums; color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); }
.nstd-trow { cursor: pointer; transition: background 0.12s; }
.nstd-trow:hover { background: var(--bg-card-hover); }
.nstd-trow--in { background: color-mix(in srgb, var(--color-win) 5%, transparent); }
.nstd-seedcell { font-weight: 800; }
.nstd-teamcell { text-align: left !important; }
.nstd-table td.nstd-teamcell { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.nstd-table td.nstd-teamcell img { width: 18px; height: 18px; object-fit: contain; }
.nstd-strong { font-weight: 700; color: var(--text-primary) !important; }
.nstd-pos { color: var(--color-win) !important; font-weight: 700; }
.nstd-neg { color: var(--color-loss) !important; }
.nstd-dim { color: var(--text-muted) !important; font-size: 0.74rem; }
.nstd-cutrow td { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-light); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; text-align: center; padding: 0.3rem; border-top: 2px dashed var(--accent-border); border-bottom: 2px dashed var(--accent-border); }

/* Bracket */
.nstd-bracket { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); margin-bottom: 1.4rem; }
.nstd-bracket__sum { cursor: pointer; padding: 0.7rem 1rem; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-primary); list-style: none; }
.nstd-bracket__sum::-webkit-details-marker { display: none; }
.nstd-bracket__hint { color: var(--text-subtle); font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: 0.4rem; }
.nstd-bracket__body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; padding: 0 1rem 1rem; align-items: start; }
.nstd-bk-col { display: flex; flex-direction: column; gap: 0.4rem; }
.nstd-bk-conf { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em; color: var(--accent); margin: 0 0 0.2rem; }
.nstd-bk-wc-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-subtle); margin-top: 0.3rem; }
.nstd-bk-game, .nstd-bk-bye { display: flex; align-items: center; gap: 0.4rem; background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 0.3rem 0.5rem; }
.nstd-bk-team { display: inline-flex; align-items: center; gap: 0.3rem; background: none; border: none; cursor: pointer; padding: 0; color: var(--text-primary); font: inherit; }
.nstd-bk-seed { font-size: 0.62rem; font-weight: 800; color: var(--text-subtle); min-width: 0.8rem; }
.nstd-bk-team img { width: 18px; height: 18px; object-fit: contain; }
.nstd-bk-abbr { font-size: 0.78rem; font-weight: 700; }
.nstd-bk-vs { font-size: 0.6rem; color: var(--text-subtle); }
.nstd-bk-tag { margin-left: auto; font-size: 0.55rem; font-weight: 800; color: var(--accent-light); letter-spacing: 0.06em; }
.nstd-bk-sb { align-self: center; text-align: center; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid var(--accent-border); border-radius: var(--radius-lg); padding: 0.7rem 0.9rem; min-width: 120px; }
.nstd-bk-sb-title { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.nstd-bk-champ { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; margin-top: 0.4rem; font-weight: 800; font-size: 0.82rem; color: var(--text-primary); }
.nstd-bk-champ img { width: 30px; height: 30px; object-fit: contain; }
.nstd-bk-trophy { font-size: 1rem; }
.nstd-bk-runner { font-size: 0.66rem; color: var(--text-muted); margin-top: 0.25rem; }

.nstd-empty, .nstd-loading { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .nstd-wrap { padding: 0.75rem 0.5rem 3rem; }
    .nstd-conf-cols { grid-template-columns: 1fr; }
    .nstd-bracket__body { grid-template-columns: 1fr; }
    .nstd-bk-sb { order: -1; }
}

/* Real playoff bracket (postseason results) */
.nstd-bracket__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nstd-bkr-body { display: flex; gap: 0.6rem; min-width: max-content; padding: 0 1rem 1rem; align-items: flex-start; }
.nstd-bkr-col { display: flex; flex-direction: column; gap: 0.5rem; min-width: 122px; }
.nstd-bkr-col--sb { align-self: center; justify-content: center; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid var(--accent-border); border-radius: var(--radius-lg); padding: 0.5rem; min-width: 146px; }
.nstd-bkr-rnd { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-subtle); }
.nstd-bkr-rnd--sb { color: var(--accent); text-align: center; }
.nstd-bkr-game { background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
.nstd-bkr-game--sb { background: transparent; border-color: var(--accent-border); }
.nstd-bkr-team { display: flex; align-items: center; gap: 0.35rem; padding: 0.32rem 0.45rem; cursor: pointer; border-bottom: 1px solid var(--border-subtle); }
.nstd-bkr-team:last-child { border-bottom: none; }
.nstd-bkr-team:hover { background: var(--bg-card-hover); }
.nstd-bkr-team img { width: 18px; height: 18px; object-fit: contain; }
.nstd-bkr-team .nstd-bk-abbr { font-size: 0.78rem; font-weight: 700; }
.nstd-bkr-team--win { background: color-mix(in srgb, var(--color-win) 9%, transparent); }
.nstd-bkr-team--win .nstd-bk-abbr { color: var(--text-primary); }
.nstd-bkr-team:not(.nstd-bkr-team--win) { opacity: 0.6; }
.nstd-bkr-score { margin-left: auto; font-size: 0.78rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.nstd-bkr-team--win .nstd-bkr-score { color: var(--color-win); }
.nstd-bkr-empty { font-size: 0.72rem; color: var(--text-subtle); padding: 0.4rem; text-align: center; }
.nstd-bkr-champtag { margin-top: 0.35rem; text-align: center; font-size: 0.66rem; font-weight: 800; color: var(--accent-light); letter-spacing: 0.03em; }
@media (max-width: 768px) { .nstd-bkr-col { min-width: 108px; } }
