/* TOPICAL Basketball - same look as football.topical.live and topical.live:
   navy-to-teal page gradient, gold #ffd166 pill tabs and buttons, off-white
   rounded cards. Cards stay light in dark mode, like topical.live. */

:root {
    --teal: #124e66;
    --navy: #12355b;
    --gold: #ffd166;
    --slate: #5b7480;
    --bg: #f7fbfc;
    --card: #ffffff;
    --text: #12242d;
    --muted: #5b7480;
    --line: #d5e5e0;
    --rowHover: #eef6f5;
    --mist: #d5e5e0;
    --pageText: #e8f1f4;
    --good: #1f8a70;
    --bad: #c0392b;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --bg: #f7fbfc; }
}
:root[data-theme="dark"] { --bg: #f7fbfc; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #0f2740 0%, #163a4f 25%, #24576a 55%, #3a7180 100%) fixed;
    background-color: #163a4f;
    color: var(--pageText);
    line-height: 1.5;
    min-height: 100vh;
}
a { color: var(--teal); }

/* Header */
.siteHeader { background: rgba(8, 31, 48, .92); border-bottom: 1px solid rgba(255, 209, 102, .25); color: #fff; }
.headerInner { max-width: 1240px; margin: 0 auto; padding: 12px 16px 6px; display: flex; align-items: center; gap: 12px; }
.backLink {
    color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem;
    border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.backLink:hover { background: rgba(255, 255, 255, .12); }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; flex-wrap: wrap; }
.brandLogo { width: 32px; height: 32px; }
.brandMark { font-weight: 900; font-size: 1.6rem; letter-spacing: .04em; }
.brandSub { font-weight: 700; font-size: 1rem; color: var(--gold); }
.tabs { max-width: 1240px; margin: 0 auto; padding: 0 16px 10px; display: flex; gap: 6px; overflow-x: auto; }
.tab {
    border: 1px solid rgba(255, 209, 102, .45); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem;
    color: var(--gold); background: rgba(255, 255, 255, .04); font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.tab:hover { background: rgba(255, 209, 102, .12); }
.tab.active { background: var(--gold); color: #081f30; border-color: var(--gold); box-shadow: 0 -3px 0 #fff0bd inset, 0 4px 14px rgba(255, 209, 102, .24); }

/* Page */
.page { max-width: 1240px; margin: 0 auto; padding: 20px 16px 40px; }
.view[hidden] { display: none; }
.intro { text-align: center; padding: 10px 0 6px; }
.intro h1 {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    color: #fff; font-size: clamp(1.5rem, 4.5vw, 2.4rem); font-weight: 900; letter-spacing: .06em;
    text-transform: uppercase; text-shadow: 0 3px 12px rgba(0, 0, 0, .4);
}
.intro h1::before, .intro h1::after { content: ''; flex: 0 0 clamp(24px, 7vw, 60px); height: 3px; border-radius: 2px; background: var(--gold); }
.asOf { color: #cfe3e8; display: inline-block; margin: 8px 0 12px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 700; font-size: .85rem; }
.lede { max-width: 780px; margin: 0 auto; color: var(--pageText); font-weight: 600; }
.lede a, .siteFooter a, .onGradient a { color: var(--gold); }
.note { max-width: 780px; margin: 12px auto 0; padding: 8px 12px; border-left: 4px solid #e9c46a; background: var(--card); color: var(--text); border-radius: 8px; font-size: .88rem; text-align: left; }
.small { font-size: .85rem; color: #cfe3e8; }

/* Controls */
.controls { display: flex; gap: 8px; margin: 18px 0 10px; flex-wrap: wrap; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.controls input, .controls select { font: inherit; padding: 9px 12px; color: var(--text); background: var(--card); border: 1px solid var(--line); }
.controls input { flex: 1 1 240px; border-radius: 10px; min-width: 0; }
.controls select { border-radius: 999px; border: 1px solid var(--gold); background: rgba(8, 31, 48, .6); color: var(--gold); font-weight: 700; }
.controls select option { color: #12242d; background: #fff; }

/* Cards and tables */
.card { background: var(--card); color: var(--text); border-radius: 16px; padding: 6px 10px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); border-top: 4px solid var(--gold); }
.tableWrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--text); }
.num { text-align: center; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; padding: 0 4px; }

.playerRow { cursor: pointer; }
.playerRow:hover, .playerRow.open { background: var(--rowHover); }
.playerCell { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.headshot { width: 40px; height: 30px; border-radius: 6px; object-fit: cover; object-position: top; background: var(--mist); flex: 0 0 auto; }
.playerName { font-weight: 700; }
.playerTeam { font-size: .8rem; color: var(--muted); }
.injury { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; }
.injury.out { background: #fbe1dd; color: var(--bad); }
.injury.dtd { background: #fff2cc; color: #8a6200; }

.ratingBadge { display: inline-block; min-width: 40px; text-align: center; font-weight: 900; font-size: 1rem; padding: 4px 8px; border-radius: 8px; color: #fff; }
.subValue { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.conf { font-size: .72rem; font-weight: 700; }
.conf.Low { color: #b5651d; }
.conf.Medium { color: var(--slate); }
.conf.High { color: var(--good); }
.mLabel { display: none; }
.phoneOnly { display: none; }

/* Player detail */
.detailRow td { background: var(--rowHover); padding: 14px 12px 18px; }
.detailGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.detailCard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.detailCard h4 { font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.detailCard .big { font-size: 1.4rem; font-weight: 900; color: var(--teal); }
.parts div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; font-size: .85rem; }
.parts .total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; font-weight: 700; }
.shareBar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 8px 0 4px; background: var(--line); }
.shareBar span { display: block; height: 100%; }
.legend { display: flex; flex-direction: column; gap: 2px; font-size: .72rem; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.statLine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.statLine div { background: var(--rowHover); border-radius: 8px; padding: 6px 2px; }
.statLine b { display: block; font-size: 1.05rem; }
.statLine span { font-size: .7rem; color: var(--muted); text-transform: uppercase; }
.detailNote { font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* Games */
.dayTitle { color: #fff; margin: 22px 0 8px; font-size: 1.05rem; }
.gamesGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gameCard { background: var(--card); color: var(--text); border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.gameTime { font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.gameTeams { margin: 8px 0 6px; }
.gameTeam { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.gameTeam img { width: 28px; height: 28px; }
.gameTeam .tName { flex: 1; font-weight: 700; }
.gameTeam .tPct { font-weight: 800; font-variant-numeric: tabular-nums; }
.gameTeam.fav .tPct { color: var(--good); }
.gameTeam.dog { color: var(--muted); }
.gameTeam.dog .tName { font-weight: 600; }
.probBar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); }
.probBar span { display: block; height: 100%; }
.gameLine { font-size: .85rem; margin-top: 8px; }
.gameWhy { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.gameMissing { font-size: .78rem; margin-top: 4px; color: var(--bad); }
.resultMark { font-weight: 800; }
.resultMark.right { color: var(--good); }
.resultMark.wrong { color: var(--bad); }

/* Teams */
.teamsLayout h2 { color: #fff; text-align: center; margin: 26px 0 6px; }
.teamRow { cursor: pointer; }
.teamRow:hover, .teamRow.open { background: var(--rowHover); }
.teamCell { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.teamCell img { width: 26px; height: 26px; }
.confRow td { background: var(--rowHover); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cutRow td { padding: 0; border-bottom: 2px dashed var(--gold); }
.teamDetail td { background: var(--rowHover); }
.rotation { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; margin: 6px 0; }
.rotation li { display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; border-bottom: 1px dotted var(--line); padding: 3px 0; }
.fav { color: var(--good); font-weight: 700; }
.dogText { color: var(--bad); font-weight: 700; }

/* Bracket */
.bracketConfs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 14px; }
.bracketConf h3 { color: var(--gold); text-align: center; margin: 0 0 8px; }
.rounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: center; }
.round { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.roundTitle { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #cfe3e8; font-weight: 700; text-align: center; }
.matchup { background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); color: var(--text); }
.matchupLabel { font-size: .7rem; text-align: center; color: var(--muted); padding: 4px 0 0; }
.side { display: flex; align-items: center; gap: 6px; padding: 7px 9px; color: var(--muted); font-size: .9rem; }
.side + .side { border-top: 1px solid var(--line); }
.side.winner { color: var(--text); font-weight: 800; }
.seed { display: inline-block; min-width: 18px; text-align: center; font-size: .72rem; font-weight: 800; color: #081f30; background: var(--gold); border-radius: 4px; padding: 1px 3px; }
.side .name { flex: 1; }
.side .chance { font-variant-numeric: tabular-nums; }
.finals { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }
.finals .matchup { border: 2px solid var(--gold); }
.champion { color: var(--gold); font-weight: 800; text-align: center; font-size: 1.1rem; }
.playIn { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 10px 0 4px; }

/* Record */
.recordStats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.recordStat { background: rgba(8, 31, 48, .92); border: 1px solid rgba(255, 209, 102, .5); border-radius: 12px; padding: 14px 16px; text-align: center; color: #fff; }
.recordStatLabel { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-weight: 700; }
.recordStatValue { font-size: 2.2rem; font-weight: 800; line-height: 1.15; margin: 4px 0; }
.recordStatNote { font-size: .8rem; color: #cfe3e8; margin-top: 4px; }

/* How it works */
.method { margin-top: 40px; background: var(--card); color: var(--text); border-radius: 16px; padding: 22px 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.method h2 { color: var(--navy); font-size: 1.5rem; margin-bottom: 8px; }
.method h3 { color: var(--navy); font-size: 1.05rem; margin: 22px 0 6px; padding-left: 10px; border-left: 4px solid var(--gold); }
.method p, .method ul, .method dl { max-width: 900px; margin-bottom: 8px; }
.method ul { padding-left: 20px; }
.method li { margin-bottom: 4px; }
.glossary dt { font-weight: 700; margin-top: 8px; }
.glossary dd { margin-left: 0; }
.methodTable { max-width: 640px; margin: 8px 0 12px; }
.methodTable td, .methodTable th { font-size: .88rem; padding: 6px 10px; }

.siteFooter { text-align: center; font-size: .8rem; color: #cfe3e8; padding: 24px 16px 40px; border-top: 1px solid rgba(255, 255, 255, .15); }
.siteFooter p { margin-bottom: 4px; }

@media (max-width: 1000px) {
    .bracketConfs { grid-template-columns: 1fr; }
    .finals { max-width: 280px; margin: 0 auto; width: 100%; }
}
@media (max-width: 700px) {
    .rounds { grid-template-columns: 1fr; }
    .hidePhone { display: none; }
    .phoneOnly { display: inline; }
    th, td { padding: 8px 5px; }
    th { white-space: normal; font-size: .66rem; letter-spacing: .02em; }
    .card { padding: 4px 6px 10px; }
    .page { padding-left: 10px; padding-right: 10px; }
    .playerCell { min-width: 0; gap: 5px; }
    .phoneOD { display: block; font-size: .72rem; color: var(--muted); margin-top: 1px; white-space: nowrap; }
    .phoneOD strong { color: var(--text); font-weight: 800; }
    .playerName { font-size: .92rem; }
    .teamCell { min-width: 0; }
    .teamCell strong { font-size: .88rem; }
    .ratingBadge { min-width: 34px; padding: 3px 6px; font-size: .92rem; }
    .headshot { width: 34px; height: 26px; }
    .controls select { flex: 1 1 45%; min-width: 0; }
    .brandSub { display: none; }
    .method { padding: 18px 16px; }
    .detailRow td { padding: 10px 4px 14px; }
    .detailCard { padding: 10px 8px; }
    .whySteps > li { padding-left: 26px; overflow-wrap: anywhere; }
    .whySteps .tableWrap { margin-left: -26px; }
    .partsTable td, .partsTable th { padding: 3px 6px 3px 0; overflow-wrap: normal; }
    .partsTable th, .partsTable td.num { white-space: nowrap; }
    .partsTable th { font-size: .62rem; }
}
@media (max-width: 420px) {
    .backLink { padding: 4px 9px; font-size: .78rem; }
    .brandMark { font-size: 1.3rem; }
    .tab { padding: 5px 11px; font-size: .85rem; }
}

/* Sign-in (shared TOPICAL account) */
.account { margin-left: auto; }
.accountLink { color: var(--gold); text-decoration: none; font-weight: 700; font-size: .85rem; border: 1px solid rgba(255, 209, 102, .6); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.accountLink:hover { background: rgba(255, 209, 102, .14); }

/* Position pills */
.posTabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.posTab { font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 999px; padding: 5px 14px; }
.posTab.active { background: #fff; color: #081f30; }
.posRank { display: block; font-size: .68rem; color: var(--muted); }

/* Why this rating */
.whyCard { grid-column: 1 / -1; }
.whySteps { list-style: none; counter-reset: step; display: grid; gap: 10px; }
.whySteps > li { counter-increment: step; padding-left: 30px; position: relative; font-size: .88rem; }
.whySteps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--gold); color: #081f30; font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; }
.whySteps strong { color: var(--navy); }
.partsTable { width: auto; min-width: 280px; margin: 6px 0 2px; background: transparent; }
.partsTable td, .partsTable th { padding: 3px 10px 3px 0; font-size: .82rem; border-bottom: 1px dotted var(--line); }
.pos { color: var(--good); font-weight: 700; }
.neg { color: var(--bad); font-weight: 700; }
@media (max-width: 700px) { .partsTable { min-width: 0; width: 100%; } }

/* Phones: the rank sits beside the player (the # column is hidden there) */
.rankInline { min-width: 16px; text-align: right; font-weight: 800; color: var(--muted); font-size: .85rem; flex: 0 0 auto; }

/* where a tapped player's row lands when scrolled into view */
.playerRow { scroll-margin-top: 10px; }
.partHint { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.blendTable tfoot td { border-top: 1px solid var(--line); font-weight: 700; }
.blendTable .totalRow td { font-size: 1.05rem; font-weight: 800; }
.followRow { grid-column: 1 / -1; }
.followButton { display: inline-block; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--teal); background: transparent; color: var(--teal); text-decoration: none; }
.followButton.following { background: var(--gold); border-color: var(--gold); color: #081f30; }
.followStar { color: #d99a00; }

.evidence { display: block; margin-top: 6px; padding: 6px 8px; border-left: 3px solid #2a9d8f; background: rgba(42, 157, 143, 0.08); font-size: 0.9em; line-height: 1.45; }

.missedNotice { grid-column: 1 / -1; padding: 8px 12px; border-left: 4px solid #d99a00; background: rgba(217, 154, 0, 0.1); border-radius: 4px; font-size: 0.9rem; line-height: 1.45; }

.statTable { border-collapse: collapse; width: 100%; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.statTable th, .statTable td { padding: 5px 6px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line, #dde7ea); }
.statTable th:first-child, .statTable td:first-child { text-align: left; }
.statTable th { font-size: 0.72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.statTable tr.current td { font-weight: 700; }
/* two short tables: side by side when there's room, stacked on phones */
.statTables { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.statTables .statTable { flex: 1 1 240px; width: auto; }
@media (min-width: 700px) { .statsCard { grid-column: span 2; } }

.depthChart { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: .84rem; margin: 4px 0; }
.depthChart th, .depthChart td { padding: 5px 6px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.depthChart thead th { font-size: .7rem; text-transform: uppercase; color: var(--muted); }
.depthChart tbody th { width: 46px; font-size: .7rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.depthChart a { color: var(--teal); text-decoration: none; }
.depthChart tr.starters a { font-weight: 800; }
.depthName { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.depthMeta { display: block; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.depthInj { color: #c0392b; font-weight: 800; margin-left: 2px; }
@media (max-width: 600px) {
    .depthChart { font-size: .74rem; }
    .depthChart th, .depthChart td { padding: 4px 2px; }
    .depthChart tbody th { width: 34px; font-size: .62rem; }
    .depthMeta { font-size: .64rem; }
}
.depthChart td.deep { opacity: .55; }
.confTypical { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); text-transform: none; letter-spacing: 0; margin-top: 2px; }

/* ==========================================================================
   Draft game (game.js, 2026-10-09) - football.topical.live's draft game
   styles, on this site's gradient.
   ========================================================================== */
.account { display: flex; align-items: center; gap: 8px; }
.draftGameButton {
    white-space: nowrap; text-decoration: none; font-weight: 900; font-size: .95rem; letter-spacing: .02em;
    padding: 7px 16px; border-radius: 999px; background: var(--gold); color: #081f30;
    box-shadow: 0 -3px 0 #fff0bd inset, 0 4px 14px rgba(255, 209, 102, .3);
}
.draftGameButton:hover { filter: brightness(1.05); }
/* Phones: the logo carries the brand so the Draft Game button and the
   account fit on one line (as on football.topical.live). */
@media (max-width: 520px) {
    .headerInner { gap: 8px; }
    .brandMark { display: none; }
    .account { gap: 6px; min-width: 0; }
    .draftGameButton { font-size: .8rem; padding: 6px 10px; }
    .accountLink { max-width: 26vw; overflow: hidden; text-overflow: ellipsis; padding: 5px 9px; }
}

.gameView { padding: 0 0 40px; color: var(--pageText); }
.gameIntro { text-align: center; padding: 10px 0 6px; }
.gameIntro h1 {
    display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 10px;
    color: #fff; font-size: clamp(1.5rem, 4.5vw, 2.4rem); font-weight: 900; letter-spacing: .06em;
    text-transform: uppercase; text-shadow: 0 3px 12px rgba(0, 0, 0, .4);
}
.gameIntro h1::before, .gameIntro h1::after { content: ''; flex: 0 0 clamp(24px, 7vw, 60px); height: 3px; border-radius: 2px; background: var(--gold); }
.gameIntro p { line-height: 1.55; max-width: 820px; margin: 0 auto 10px; color: var(--pageText); }
.gameSmall { color: #cfe3e8; font-size: .88rem; }
.gameIntro .gameSmall, .gameView > .gameSmall { color: #cfe3e8; }
.gameView a:not(.followButton):not(.teamListCard) { color: var(--gold); }
.gameCenter { text-align: center; margin: 12px 0; }
.gameView > h3 { color: #fff; margin-top: 18px; }
.gameView > p:not(.gameSmall) { color: var(--pageText); }
.gameView .followButton:not(.following) { border-color: var(--gold); color: var(--gold); background: rgba(8, 31, 48, .5); }
.gameView .tableWrap { background: var(--card); color: var(--text); border-radius: 14px; padding: 4px 8px; margin-bottom: 14px; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.gameView .methodTable { max-width: none; margin: 0; }
.up { color: var(--good) !important; }
.down { color: var(--bad) !important; }

.modeHeading { color: #fff; text-align: center; margin: 14px 0 10px; }
.modeChooser { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 820px; margin: 0 auto 16px; }
.modeCard { display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; cursor: pointer; padding: 16px; border-radius: 14px; border: 2px solid transparent; background: var(--card); color: var(--text); box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.modeCard strong { font-size: 1.15rem; color: var(--navy); }
.modeCard span { font-size: .9rem; color: var(--muted); }
.modeCard:hover, .modeCard.on { border-color: var(--gold); }
.modeBadge { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.modeBadge.mode-cap { background: #0f4c5c; color: var(--gold); }
.modeBadge.mode-xcap { background: #7a1f2b; color: var(--gold); }
.modeBadge.mode-open { background: var(--gold); color: #081f30; }
.linkButton { font: inherit; font-size: .8rem; background: none; border: 0; color: var(--gold); text-decoration: underline; cursor: pointer; }
.renameButton { font-size: .85rem; }

.draftSummary { position: sticky; top: 0; z-index: 5; display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 14px; margin: 12px 0; border-radius: 10px; background: rgba(8, 31, 48, .92); border: 1px solid rgba(255, 209, 102, .5); color: #fff; font-size: .95rem; }
.draftSummary strong { font-size: 1.1rem; color: var(--gold); }
.overBudget { color: #ff8f7a !important; }
.keepNote { font-size: .78rem; opacity: .85; }
.draftBoard { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.draftGroup h3 { margin: 6px 0 8px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.draftSlot { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; font: inherit; cursor: pointer; margin-bottom: 6px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.draftSlot.active { border-color: var(--good); box-shadow: 0 0 0 2px rgba(31, 138, 112, .35); }
.draftSlot.filled { background: #f1f8f5; }
.draftSlotName { min-width: 104px; font-weight: 800; display: flex; flex-direction: column; }
.draftSlotName small, .draftPick small, .pickerName small, .pickerNum small { font-weight: 400; font-size: .75rem; color: var(--muted); }
.draftPick { display: flex; flex-direction: column; }
.draftPick.empty { color: var(--muted); font-style: italic; }
.draftLock { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.draftLock input { flex: 1; min-width: 200px; padding: 8px 10px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.draftLock button[disabled] { opacity: .5; cursor: default; }

.draftPicker {
    position: fixed; z-index: 20; right: 16px; top: 120px; width: 400px; max-height: calc(100vh - 140px);
    display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--good); border-radius: 10px; background: #fff; color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.draftPicker h3 { margin: 6px 0 8px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.pickerHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pickerClose { font: inherit; font-size: 1.4rem; line-height: 1; border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 0 4px; }
.draftPicker input { width: 100%; padding: 8px 10px; margin-bottom: 8px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.tradeSums { color: var(--muted) !important; margin: 0 0 8px !important; }
.pickerSort { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; font-size: .85rem; }
.pickerSort button { font: inherit; font-size: .82rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--good); background: #fff; color: var(--good); cursor: pointer; }
.pickerSort button.on { background: var(--good); color: #fff; }
.pickerSort span { margin-left: auto; color: var(--muted); }
.pickerList { overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.pickerRow { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; font: inherit; cursor: pointer; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.pickerRow:hover { background: #f1f8f5; }
.pickerRow.dear, .pickerRow[aria-disabled="true"] { opacity: .45; cursor: default; }
.pickerRow.confirming { background: #f1f8f5; cursor: default; }
.pickerRow.confirming .tradeButton { flex: 0 0 auto; }
.pickerName { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pickerNum { min-width: 52px; text-align: center; display: flex; flex-direction: column; }
.infoButton { flex: 0 0 auto; color: var(--teal); font-size: 1.05rem; cursor: pointer; padding: 0 2px; }
.infoButton:hover { color: var(--good); }

.teamScore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px auto 18px; max-width: 640px; }
.teamScore5 { grid-template-columns: repeat(5, 1fr); max-width: 860px; }
.teamScore div { background: var(--card); border-radius: 10px; padding: 10px; text-align: center; display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.teamScore strong { font-size: 1.35rem; color: var(--navy); }
.teamScore small { color: var(--muted); }
.changeChart { width: 100%; max-width: 640px; height: auto; display: block; margin-bottom: 14px; background: var(--card); border-radius: 14px; padding: 8px; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.graphGrid { stroke: var(--line); }
.graphAxis { fill: var(--muted); font-size: 11px; }
.barUp { fill: var(--good); }
.barDown { fill: var(--bad); }
.teamTable td a { font-weight: 700; color: var(--teal) !important; }
.emptySpot td { background: #fff8e6; color: #7a5400; }
.tradeButton { font: inherit; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--good); background: #fff; color: var(--good); cursor: pointer; }
.tradeButton.buy, .tradeButton.confirm { background: var(--good); color: #fff; }
.tradeButton.cancel { border-color: var(--muted); color: var(--muted); }
.inlineConfirm { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .82rem; font-weight: 700; color: var(--navy); }
.lockNote { font-size: .78rem; font-weight: 700; color: #b9770e; white-space: nowrap; }
.lockBanner { background: #fff8e6; color: #7a5400 !important; border-left: 4px solid var(--gold); border-radius: 8px; padding: 10px 12px; max-width: 820px; }
.sellAllBox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 14px; }
.sellAllBox .gameSmall { flex-basis: 100%; margin: 0; }
.rebuildBoard { background: rgba(8, 31, 48, .55); border: 1px solid rgba(255, 209, 102, .4); border-radius: 14px; padding: 12px 14px; margin: 10px 0 18px; }
.rebuildBoard > h3 { color: #fff; margin: 0 0 6px; }

.teamList { display: grid; gap: 10px; max-width: 720px; margin: 0 auto; }
.myTeamsHeading { color: #fff; margin: 4px 0 8px; }
.teamListCard { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.teamListCard:hover { border-color: var(--good); }
.teamListCard strong { font-size: 1.05rem; color: #0f4c5c; }
.teamListCard span { color: var(--muted); font-size: .9rem; }
.teamListTop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Heat meter - same look as topical.live's (frontend/styles.css .heatMeter). */
.heatMeter { display: inline-flex; align-items: center; gap: 7px; min-width: 150px; padding: 5px 8px; border: 1px solid #d4e4e1; border-radius: 6px; background: #eef6f4; }
.heatMeterLabel { min-width: 58px; color: #315d68; font-size: .68rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.heatMeterTrack { display: block; flex: 1; height: 9px; overflow: hidden; border: 1px solid #b8ccc8; border-radius: 999px; background: #dce8e5; }
.heatMeterFill { display: block; height: 100%; border-radius: inherit; background: #6aa886; }
.heatMeterStageWarm .heatMeterFill { background: #2a9d67; }
.heatMeterStageHeatingUp .heatMeterFill { background: linear-gradient(90deg, #2a9d67, #e9c46a); }
.heatMeterStageHot .heatMeterFill { background: linear-gradient(90deg, #2a9d67, #e9c46a 55%, #f07f3c); }
.heatMeterStageOnFire .heatMeterFill { background: linear-gradient(90deg, #2a9d67, #e9c46a 42%, #ef6a32 70%, #c81d25); box-shadow: 0 0 8px rgba(200, 29, 37, .45); }
.heatMeterCompact { min-width: 130px; padding: 2px 6px; }
.heatBox { background: var(--card); color: var(--text); border-radius: 14px; padding: 14px 16px; margin: 6px 0 16px; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); max-width: 760px; }
.heatBoxHead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.heatBoxHead h3 { color: var(--navy); margin: 0; font-size: 1.05rem; }
.heatScore { font-size: 1.2rem; color: var(--navy); }
.heatBox .gameSmall { color: var(--muted); margin-bottom: 10px; }
.heatParts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.heatPart { background: #f1f7f8; border-radius: 10px; padding: 8px 10px; }
.heatPartTop { display: flex; justify-content: space-between; font-size: .85rem; }
.heatPartTop strong { color: var(--navy); }
.heatPartBar { height: 6px; border-radius: 999px; background: #dce8e5; margin: 5px 0; overflow: hidden; }
.heatPartBar span { display: block; height: 100%; background: linear-gradient(90deg, #2a9d67, #e9c46a, #ef6a32); border-radius: inherit; }
.heatPart small { color: var(--muted); font-size: .75rem; }

/* Player quick info pop-up */
.playerPop { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 16, 26, .6); }
.playerPopCard { position: relative; width: min(500px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px; border-radius: 16px; background: var(--card); color: var(--text); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.playerPopCard .gameSmall { color: var(--muted); }
.playerPopClose { position: absolute; top: 8px; right: 10px; }
.playerPopHead { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; padding-right: 28px; }
.playerPopHead h3 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.popHeadshot { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; object-position: top; background: var(--mist); }
.popInjury { font-size: .85rem; color: var(--bad); margin: 0 0 8px; }
.popBoxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.popBox { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; background: #f1f7f8; }
.popBox small { color: var(--muted); font-size: .75rem; }
.popFacts { display: grid; gap: 4px; margin-bottom: 10px; font-size: .88rem; }
.popFacts div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 3px 0; }
.popFacts span { color: var(--muted); }
.popFacts strong { text-align: right; }
.popActions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.popActions .followButton[disabled] { opacity: .5; cursor: default; }

@media (max-width: 700px) {
    .teamScore, .teamScore5 { grid-template-columns: repeat(2, 1fr); }
    .draftPicker { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 72vh; border-radius: 14px 14px 0 0; }
    /* The team table as one card per player - no sideways scrolling to Sell. */
    .gameView .tableWrap { padding: 4px 10px; }
    .teamTable, .teamTable tbody { display: block; }
    .teamTable thead tr { display: block; }
    .teamTable thead th { display: none; }
    .teamTable thead th:first-child { display: block; padding: 10px 0 6px; border: 0; }
    .teamTable tbody tr { display: grid; grid-template-columns: 38px repeat(5, minmax(0, 1fr)); align-items: center; column-gap: 6px; row-gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
    .teamTable tbody td { display: block; padding: 0; border: 0; background: none; }
    .teamTable .cSlot { grid-column: 1; grid-row: 1 / span 2; align-self: start; font-weight: 800; color: var(--muted); padding-top: 2px; }
    .teamTable .cPlayer { grid-column: 2 / 5; grid-row: 1; min-width: 0; }
    .teamTable .cAction { grid-column: 5 / -1; grid-row: 1; justify-self: end; text-align: right; }
    .teamTable .cNum { grid-row: 2; font-weight: 700; font-size: .9rem; }
    .teamTable .cNum::before { content: attr(data-label); display: block; font-size: .64rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
    .teamTable .cNum:nth-child(3) { grid-column: 2; }
    .teamTable .cNum:nth-child(4) { grid-column: 3; }
    .teamTable .cNum:nth-child(5) { grid-column: 4; }
    .teamTable .cNum:nth-child(6) { grid-column: 5; }
    .teamTable .cNum:nth-child(7) { grid-column: 6; }
    .teamTable .lockNote { white-space: normal; display: inline-block; max-width: 120px; font-size: .72rem; line-height: 1.25; }
    .teamTable tr.confirmingRow .cAction { grid-column: 2 / -1; grid-row: 3; justify-self: stretch; text-align: left; }
    .teamTable .inlineConfirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .teamTable .emptySpot { background: #fff8e6; border-radius: 8px; padding: 10px 6px; }
    .teamTable .emptySpot .cEmpty { grid-column: 2 / 5; grid-row: 1 / span 2; font-size: .85rem; }
    .popBoxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) { .longLabel { display: none; } }

/* ---- Awards odds (awards.js, 2026-10-10) - same block in football/site/styles.css ---- */
.awardsView { max-width: 900px; margin: 0 auto; padding: 0 12px 24px; }
.awardsIntro { text-align: center; margin: 18px auto 14px; color: var(--pageText); }
.awardsIntro h1 { margin: 0 0 8px; color: #fff; }
.awardsLede { max-width: 760px; margin: 0 auto; font-weight: 600; line-height: 1.5; }
.awardsAsOf { margin: 8px 0 0; opacity: .8; font-size: .9rem; }
.awardJump { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.awardJump a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-weight: 700; font-size: .85rem; text-decoration: none; }
.awardJump a:hover { background: var(--gold); color: #081f30; }
.awardCard { margin: 0 0 18px; padding: 12px 14px 14px; scroll-margin-top: 12px; }
.awardCard h2 { margin: 4px 0 4px; font-size: 1.25rem; }
.awardWhat { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.awardEarly { margin: 0 0 10px; font-size: .9rem; line-height: 1.45; padding: 8px 10px; border-left: 4px solid var(--gold); background: rgba(255, 209, 102, .12); border-radius: 6px; }
.awardTable { width: 100%; border-collapse: collapse; }
.awardTable th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); text-align: left; padding: 6px 6px; border-bottom: 2px solid var(--line); }
.awardTable td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.awardTable .num { text-align: right; white-space: nowrap; }
.awardRank { width: 22px; color: var(--muted); font-weight: 700; }
.awardName { font-weight: 800; }
.awardName a { color: inherit; text-decoration: none; }
.awardName a:hover { text-decoration: underline; }
.awardTeam { font-weight: 600; color: var(--muted); font-size: .85rem; margin-left: 4px; }
.awardInjury { font-size: .72rem; font-weight: 800; color: #fff; background: var(--bad, #c0392b); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.awardLine { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.awardChance { position: relative; display: inline-block; min-width: 92px; height: 24px; line-height: 24px; text-align: right; padding-right: 4px; }
.awardBar { position: absolute; right: 0; top: 2px; bottom: 2px; border-radius: 6px; background: rgba(42, 157, 143, .22); max-width: 100%; }
.awardChance b { position: relative; }
.awardSub { color: var(--muted); font-size: .78rem; }
.awardMore { margin-top: 10px; font: inherit; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--teal); background: transparent; color: var(--teal); cursor: pointer; }
.awardTest { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.awardsFoot { text-align: center; color: var(--pageText); font-size: .85rem; max-width: 720px; margin: 8px auto 0; opacity: .85; }
@media (max-width: 560px) {
    .awardsView { padding: 0 8px 20px; }
    .awardCard { padding: 10px 8px 12px; }
    .awardOddsCol { display: none; }
    .awardChance { min-width: 64px; }
    .awardTable td, .awardTable th { padding: 7px 4px; }
    .awardRank { width: 16px; }
}
