﻿:root {
  --bg: #0a0e1a;
  --bg2: #111827;
  --surface: #161b2e;
  --surface2: #1e2540;
  --border: #2a3150;
  --txt: #e8ecf4;
  --muted: #8b93a8;
  --red: #c8102e;
  --red-soft: #e8455f;
  --blue: #17408b;
  --blue-soft: #3b6fd9;
  --gold: #f5b800;
  --green: #3ddc84;
  --green-soft: #5dffa2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--txt);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(23,64,139,.25) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(255,255,255,.03) 39px, rgba(255,255,255,.03) 40px),
    repeating-linear-gradient(90deg, transparent 0, transparent 39px, rgba(255,255,255,.03) 39px, rgba(255,255,255,.03) 40px);
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("https://upload.wikimedia.org/wikipedia/en/thumb/0/03/National_Basketball_Association_logo.svg/338px-National_Basketball_Association_logo.svg.png") no-repeat;
  background-size: min(28vw, 280px);
  background-position: 96% 92%;
  opacity: .06;
  filter: grayscale(1) brightness(2);
}

.noise { display: none; }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.topbar {
  margin: 0 0 .6rem; border-radius: 0;
  padding: .45rem 1rem;
  display: flex; justify-content: space-between;
  gap: 1rem; align-items: center;
  border-left: 4px solid var(--red);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.topbar.compact { margin: 0 0 .6rem; border-radius: 0; }
.topbar-left { display: flex; align-items: center; gap: .7rem; }
.brand {
  font-weight: 900; font-size: .95rem; letter-spacing: .1em;
  color: var(--red-soft); padding-right: .2rem;
  text-decoration: none; display: inline-block;
}
.brand:hover { color: var(--gold); }
.brand-nba { color: #fff; text-shadow: 0 0 14px rgba(255,255,255,.25); }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-meta { text-align: right; }
.topbar-meta .subline { margin: 0; line-height: 1.3; }
.nav-home {
  text-decoration: none; color: var(--txt); font-weight: 900; text-transform: uppercase;
  letter-spacing: .1em; font-size: .82rem; padding: .3rem .5rem; border-radius: 4px;
  border: 1px solid var(--border); background: var(--surface2);
}
.nav-home:hover { border-color: var(--red); color: var(--red-soft); }
.nav-sep { color: var(--muted); }
.nav-current { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
.btn-ghost {
  text-decoration: none; color: var(--txt); font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; font-size: .74rem; padding: .45rem .8rem; border-radius: 4px;
  border: 1px solid var(--border); background: var(--surface2); display: inline-block;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red-soft); }

/* ---- teams dropdown ---- */
.nav-teams { position: relative; }
.nav-teams-btn {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 4px;
  color: var(--txt); font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  font-size: .82rem; padding: .3rem .6rem; cursor: pointer;
  display: flex; align-items: center; gap: .35rem;
}
.nav-teams-btn:hover, .nav-teams.open .nav-teams-btn { border-color: var(--gold); color: var(--gold); }
.nav-teams-btn .caret { font-size: .6rem; transition: transform .2s ease; }
.nav-teams.open .nav-teams-btn .caret { transform: rotate(180deg); }
.teams-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  display: none; z-index: 950;
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--gold);
  border-radius: 4px; padding: .8rem; box-shadow: 0 12px 34px rgba(0,0,0,.6);
  width: min(94vw, 880px);
}
.nav-teams.open .teams-menu { display: block; }
.teams-menu-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: .3rem 1.4rem; align-items: start; }
.teams-div { margin-bottom: .9rem; }
.teams-div:last-child { margin-bottom: 0; }
.teams-div h4 {
  margin: 0 0 .45rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--div-color, var(--gold)); font-weight: 900;
  display: flex; align-items: center; gap: .45rem;
  padding: .22rem .5rem; border-radius: 3px;
  background: rgba(255,255,255,.03);
  border-left: 3px solid var(--div-color, var(--gold));
}
.teams-div h4 .cnt { margin-left: auto; color: var(--muted); font-weight: 700; letter-spacing: .04em; font-size: .66rem; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .3rem; }
.teams-link {
  display: flex; align-items: center; gap: .45rem; text-decoration: none;
  color: var(--txt); font-size: .8rem; font-weight: 600;
  padding: .32rem .4rem; border-radius: 4px; border: 1px solid transparent;
}
.teams-link:hover { background: var(--surface2); border-color: var(--div-color, var(--gold)); color: var(--div-color, var(--gold)); }
.teams-link img { width: 22px; height: 22px; object-fit: contain; flex: none; }

/* division accent colours */
.teams-div[data-div="Atlantic"]  { --div-color: #ff5a6e; }
.teams-div[data-div="Central"]   { --div-color: #4d8bff; }
.teams-div[data-div="Southeast"] { --div-color: #ffb020; }
.teams-div[data-div="Northwest"] { --div-color: #35d6d0; }
.teams-div[data-div="Pacific"]   { --div-color: #b48cff; }
.teams-div[data-div="Southwest"] { --div-color: #5ddb6e; }

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--red-soft);
  font-size: .72rem;
  font-weight: 800;
}

h1 { margin: .4rem 0 .2rem; font-size: clamp(1.2rem, 2.8vw, 2rem); font-weight: 900; letter-spacing: -.01em; }
.subline { margin: 0; color: var(--muted); font-size: .9rem; }

.btn-gmail {
  border: 0;
  border-radius: 4px;
  padding: .7rem 1.1rem;
  font-weight: 800;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
  transition: background .15s;
}
.btn-gmail:hover { background: var(--red-soft); }

.layout {
  padding: .3rem 1rem 1.2rem;
  display: grid;
  grid-template-columns: 290px 1fr 300px;
  gap: 1rem;
  align-items: start;
}

.panel {
  border-radius: 4px;
  padding: .9rem;
  height: fit-content;
  border-top: 3px solid var(--blue);
}
.panel h2, .panel h3 { margin: .3rem 0 .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--txt); }

.stack { display: grid; gap: .55rem; padding: 0; margin: 0; }
.stack > li, .chip-item {
  list-style: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .6rem;
  font-size: .86rem;
}

.filter-row { display: flex; gap: .45rem; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--txt);
  border-radius: 4px;
  padding: .45rem .8rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .15s, border-color .15s;
}
.chip.active { border-color: var(--red); background: var(--red); color: #fff; }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .55rem; align-items: start; align-content: start; align-self: start; }

.game-card {
  border-radius: 4px;
  padding: .6rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  cursor: pointer;
  transition: border-color .15s, transform .15s;
  display: flex;
  flex-direction: column;
}
.game-card:hover { border-top-color: var(--red); transform: translateY(-2px); }

.card-head { display: flex; justify-content: space-between; align-items: center; gap: .45rem; color: var(--muted); font-size: .72rem; margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .05em; }
.card-head .status { white-space: nowrap; }
.card-head .clock { white-space: nowrap; }
.card-head .date { white-space: nowrap; color: var(--muted); }
.pin-btn {
  background: transparent; border: 1px solid transparent; border-radius: 4px;
  color: var(--muted); cursor: pointer; font-size: .95rem; line-height: 1;
  padding: .18rem .3rem; transition: all .15s ease; flex: none; margin-left: auto;
}
.pin-btn:hover { color: var(--gold); border-color: var(--gold); background: rgba(245,184,0,.1); }
.pin-btn.pinned { color: var(--gold); border-color: var(--gold); background: rgba(245,184,0,.16); }
.game-card.is-pinned { border-top-color: var(--gold); }
.game-card.is-pinned:hover { border-top-color: var(--gold); }
.chip-pin { display: inline-flex; align-items: center; gap: .35rem; }
.chip-pin .pin-count {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 0 .4rem; font-size: .68rem; font-weight: 800; min-width: 18px; text-align: center;
}
.chip-pin.active .pin-count { background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.4); color: #fff; }
.status { color: var(--red-soft); font-weight: 800; text-transform: uppercase; }
.hidden { opacity: 0; }
.matchup {
  margin: .3rem 0 .4rem; font-size: .9rem; font-weight: 800; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.teams { display: grid; gap: .3rem; }

/* latest ESPN play line on live cards */
.game-live-line {
  display: flex; align-items: flex-start; gap: .4rem;
  margin: .4rem 0 0; padding: .38rem .55rem;
  background: rgba(61,220,132,.07);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  font-size: .7rem; line-height: 1.35; color: var(--txt);
}
.game-live-line::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: .3rem;
  border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(61,220,132,.6);
  animation: liveDot 1.8s ease-out infinite;
}
.game-live-line.hidden { display: none; }
@keyframes liveDot {
  0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); }
  70% { box-shadow: 0 0 0 6px rgba(61,220,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}
.team-row { display: grid; grid-template-columns: 38px 1fr auto; gap: .5rem; align-items: center; padding: .35rem .45rem; background: var(--surface2); border-radius: 4px; border-left: 3px solid var(--border); transition: border-color .3s; }
.team-row img { width: 38px; height: 38px; object-fit: contain; }

/* player headshots + stat line under each team */
.player-strip {
  display: flex; gap: .22rem; overflow-x: auto; overflow-y: hidden;
  padding: .05rem 0 .18rem; scrollbar-width: none; -ms-overflow-style: none;
  min-height: 21px; align-items: center;
}
.player-strip::-webkit-scrollbar { display: none; }
.player-strip:empty {
  display: none;
  padding: 0;
  margin: 0;
  min-height: 0;
}
.pchip {
  display: inline-flex; align-items: center; gap: .2rem; flex: none;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 999px;
  padding: .05rem .35rem .05rem .08rem; font-size: .58rem; white-space: nowrap; line-height: 1.3;
}
.pchip img { width: 15px; height: 15px; border-radius: 50%; object-fit: cover; flex: none; background: var(--border); }
.pchip-ph { width: 15px; height: 15px; border-radius: 50%; background: var(--border); flex: none; }
.pchip b { font-weight: 700; color: var(--txt); }
.pchip s { text-decoration: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.pchip.starter { border-color: var(--border); background: var(--surface); }
.pchip.starter b { color: var(--gold); }

/* jersey number badge — sits right after the headshot */
.pchip-num {
  font-style: normal; font-size: .52rem; font-weight: 900; line-height: 1;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  border-radius: 3px; padding: .12rem .2rem; min-width: 1.15rem; text-align: center;
  flex: none; font-variant-numeric: tabular-nums;
}
.pchip.starter .pchip-num { color: var(--gold); border-color: rgba(245,184,0,.45); }

/* salary — always last in the chip */
.pchip-sal {
  font-style: normal; font-size: .52rem; font-weight: 800; line-height: 1;
  color: var(--blue-soft); background: rgba(59,111,217,.12); border-radius: 3px;
  padding: .12rem .22rem; flex: none; font-variant-numeric: tabular-nums;
}
.pchip-sal.est { color: var(--muted); background: transparent; border: 1px dashed var(--border); }

/* live game rating badge (1-10 grade) */
.pchip-rt {
  font-style: normal; font-size: .52rem; font-weight: 900; line-height: 1;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  border-radius: 3px; padding: .12rem .22rem; flex: none;
  font-variant-numeric: tabular-nums; min-width: 1.35rem; text-align: center;
}
.pchip-rt.good, .motm-rt.good, .award-rt.good { color: var(--green); border-color: rgba(61,220,132,.4); background: rgba(61,220,132,.1); }
.pchip-rt.great, .motm-rt.great, .award-rt.great { color: var(--gold); border-color: rgba(245,184,0,.5); background: rgba(245,184,0,.12); }
.pchip-rt.elite, .motm-rt.elite, .award-rt.elite { color: #fff; border-color: var(--gold); background: linear-gradient(135deg, rgba(245,184,0,.85), rgba(245,184,0,.45)); }

/* fractional stars (grey base + gold overlay clipped to the rating) */
.rating-stars {
  position: relative; display: inline-block; line-height: 1;
  font-size: .78rem; letter-spacing: .06em; color: var(--border); vertical-align: middle;
}
.rating-stars b { position: relative; font-weight: normal; }
.rating-stars i {
  position: absolute; left: 0; top: 0; overflow: hidden;
  width: var(--pct, 0%); color: var(--gold); font-style: normal; white-space: nowrap;
}

/* rating column in the modal player table */
.pj-rt { min-width: 4.4rem; white-space: nowrap; }
.pj-rt em { font-style: normal; font-weight: 900; margin-left: .28rem; font-variant-numeric: tabular-nums; color: var(--txt); }

/* man of the match / flop row on the game cards */
.motm-row { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin: .5rem 0 .1rem; }
.motm-row.hidden { display: none; }
.motm-cell { display: flex; align-items: center; gap: .3rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: .2rem .4rem; min-width: 0; }
.motm-best { border-color: rgba(245,184,0,.45); background: rgba(245,184,0,.09); }
.motm-flop { border-color: rgba(139,147,168,.3); background: rgba(139,147,168,.07); }
.motm-tag { font-size: .54rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex: none; }
.motm-best .motm-tag { color: var(--gold); }
.motm-face { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; background: var(--border); }
.motm-face-ph { display: inline-block; border-radius: 50%; }
.motm-name { font-weight: 700; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.motm-rt { font-style: normal; font-size: .58rem; font-weight: 900; line-height: 1; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: .14rem .26rem; margin-left: auto; flex: none; font-variant-numeric: tabular-nums; min-width: 1.4rem; text-align: center; }

/* man of the match / flop tab in the detail modal */
.award-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); gap: .6rem; justify-content: center; align-items: start; }
.award { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: .45rem; min-height: 0; margin: .5rem 0; padding: .8rem .7rem .7rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); overflow: hidden; text-align: center; }
.award-art { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; background-size: cover; background-position: center bottom; background-repeat: no-repeat; opacity: .72; }
.award-motm { border-color: rgba(245,184,0,.45); }
.award-motm .award-art { background-image: url(/motm.jpg); }
.award-flop { border-color: rgba(220,70,70,.42); }
.award-flop .award-art { background-image: url(/flop.jpg); }
.award::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--surface2) 0%, rgba(30,37,64,.82) 32%, rgba(10,12,18,.42) 56%, rgba(10,12,18,.8) 78%, rgba(10,12,18,.94) 100%); }
.award-face-wrap { position: relative; z-index: 2; width: 100%; height: 138px; flex: none; display: flex; align-items: flex-end; justify-content: center; }
.award-face { width: 100%; height: 138px; object-fit: cover; object-position: center 6%; filter: drop-shadow(0 10px 16px rgba(0,0,0,.7)); }
.award-face-ph { display: block; border-radius: 50%; background: var(--border); width: 76px; height: 76px; margin: 0 auto; }
.award-info { position: relative; z-index: 2; min-width: 0; flex: none; display: grid; grid-template-columns: 1fr; justify-items: center; gap: .12rem; }
.award-tag { grid-column: 1 / -1; font-size: .62rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.award-motm .award-tag { color: var(--gold); }
.award-flop .award-tag { color: #e06a6a; }
.award-name { grid-column: 1 / -1; max-width: 100%; font-size: 1.05rem; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.award-team { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.award-rt { justify-self: center; font-style: normal; font-size: .82rem; font-weight: 900; line-height: 1; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: .22rem .4rem; font-variant-numeric: tabular-nums; min-width: 2.2rem; text-align: center; margin-top: .2rem; }
.award-line { grid-column: 1 / -1; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; margin-top: .12rem; }
.pj-rt.elite em, .pj-rt.great em { color: var(--gold); }
.pj-rt.good em { color: var(--green); }

.team-meta small { color: var(--muted); display: block; font-size: .68rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-meta strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stars { color: var(--gold); display: block; line-height: 1.2; }
.score { font-size: 1.12rem; font-weight: 900; transition: color .4s ease; }

.odds-grid { margin-top: .5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: .35rem; align-items: stretch; }
.odd { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: .35rem .4rem; display: flex; flex-direction: column; justify-content: center; }
.odd b { display: block; font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.odd span { font-weight: 900; font-size: .88rem; }

/* NBAinsight model tile (sits before the market odds) */
.odd-nbi {
  cursor: pointer;
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(245,184,0,.14), rgba(30,37,64,.7));
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.odd-nbi b { color: var(--gold); text-transform: none; letter-spacing: .06em; }
.odd-nbi:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(245,184,0,.22); border-color: var(--gold); }
.odd-nbi:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.odd-nbi .odd-val {
  font-size: .7rem; font-weight: 800; line-height: 1.2; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word; min-height: 2.4em;
}
.odd-nbi.odd-empty { border-color: var(--border); background: var(--surface2); opacity: .65; }
.odd-nbi.odd-empty b { color: var(--muted); }
.odd-nbi.odd-empty .odd-val { color: var(--muted); font-weight: 600; font-size: .75rem; }

/* win probability bar + sparkline on game cards */
.wp-wrap { display: flex; align-items: stretch; gap: .3rem; margin-top: .38rem; }
.wp-wrap.hidden { display: none; }
.wp-bar {
  display: flex; flex: 1; min-width: 0; height: 20px;
  border-radius: 3px; overflow: hidden; background: var(--surface2);
  border: 1px solid var(--border);
}
.wp-bar.hidden { display: none; }
.wp-sparkbox {
  width: 68px; height: 20px; flex: none; overflow: hidden;
  border: 1px solid var(--border); border-radius: 3px; background: var(--surface2);
}
.wp-sparkbox.hidden { display: none; }
.wp-svg-sm { display: block; width: 100%; height: 100%; }
.wp-svg-sm .wp-area { fill: rgba(245,184,0,.20); }
.wp-svg-sm .wp-line { stroke-width: 1.5; }
.wp-svg-sm .wp-mid { stroke-width: 1; }
.wp-seg {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; overflow: hidden; white-space: nowrap;
  font-size: .6rem; font-weight: 900; letter-spacing: .02em;
  font-variant-numeric: tabular-nums; transition: width .5s ease;
}
.wp-seg span { padding: 0 .3rem; }
.wp-seg.wp-away { background: rgba(59,111,217,.28); color: var(--blue-soft); border-right: 1px solid var(--border); }
.wp-seg.wp-home { background: rgba(61,220,132,.22); color: var(--green); }

/* consensus + ESPN win probability tiles */
.odd-espn { border-color: rgba(61,220,132,.35); }
.odd-espn b { color: var(--green); }
.odd-espn .odd-val { font-size: .74rem; font-weight: 800; line-height: 1.25; }
.odd-cons { border-color: rgba(245,184,0,.35); }
.odd-cons b { color: var(--gold); }
.odd-cons .odd-val { font-size: .74rem; font-weight: 800; line-height: 1.25; }

/* win probability sparkline (modal) */
.wp-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .6rem; margin-bottom: .45rem; flex-wrap: wrap;
}
.wp-side { font-size: .82rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.wp-side.wp-away { color: var(--blue-soft); }
.wp-side.wp-home { color: var(--green); }
.wp-cap { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wp-svg {
  display: block; width: 100%; height: 130px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 5px;
}
.wp-mid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 4 4; fill: none; }
.wp-area { fill: url(#wpFillGrad); stroke: none; }
.wp-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wp-axis { display: flex; justify-content: space-between; margin-top: .25rem; font-size: .6rem; color: var(--muted); }


/* NBAinsight dedicated panel */
.nbi-panel-card { max-width: 820px; }
.nbi-panel-title { font-size: 1.3rem; font-weight: 900; letter-spacing: .02em; color: var(--gold); }
.nbi-panel-sub { font-size: .85rem; color: var(--muted); margin: .1rem 0 .8rem; }
.nbi-panel-model { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.nbi-panel-h { margin: 1.1rem 0 .5rem; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }


.yourPrediction { margin: .4rem 0 .1rem; color: var(--gold); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.quote {
  margin: .35rem 0 0; border-left: 3px solid var(--red); padding-left: .5rem;
  color: var(--txt); font-size: .76rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.warn { color: var(--red-soft); font-weight: 700; }

.detail-btn {
  margin-top: .4rem;
  border: 0;
  border-radius: 4px;
  padding: .3rem .75rem; font-weight: 800;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .75rem;
}
.detail-btn:hover { background: var(--red-soft); }
.detail-btn.disabled,
.detail-btn:disabled {
  background: var(--surface2); color: var(--muted); border: 1px solid var(--border);
  cursor: not-allowed; opacity: .55; letter-spacing: .08em;
}
.detail-btn.disabled:hover,
.detail-btn:disabled:hover { background: var(--surface2); color: var(--muted); border-color: var(--border); transform: none; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: .75rem; overflow: hidden; }
.modal.hidden { display: none; }
.modal-card { position: relative; max-width: 900px; width: 100%; max-height: 90vh; overflow: auto; border-radius: 4px; padding: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--red); }
.modal-close { position: absolute; top: .6rem; right: .9rem; background: transparent; border: 0; color: var(--txt); font-size: 1.8rem; cursor: pointer; }
.modal-content { margin-top: .5rem; }

/* live-feed detail modal — panels get their space, the card itself never scrolls */
.detail-card {
  max-width: 1000px;
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.detail-card .modal-content { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.detail-card .detail-title, .detail-card .detail-meta, .detail-card .detail-tabs { flex: none; }
.detail-card .dt-panel { flex: 1; min-height: 0; overflow-x: auto; overflow-y: auto; }
.detail-title { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; font-size: 1.3rem; font-weight: 900; margin: .2rem 0 .8rem; letter-spacing: -.01em; }
.dt-team { display: inline-flex; align-items: center; gap: .5rem; color: var(--txt); text-decoration: none; padding: .28rem .6rem .28rem .3rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.dt-team:hover { border-color: var(--gold); background: var(--surface); transform: translateY(-1px); }
.dt-logo { width: 34px; height: 34px; object-fit: contain; flex: none; }
.dt-tname { font-weight: 800; white-space: nowrap; }
.dt-tscore { font-variant-numeric: tabular-nums; font-weight: 900; }
.dt-team.dt-leader { border-color: var(--green); background: rgba(61,220,132,.10); }
.dt-team.dt-leader .dt-tname, .dt-team.dt-leader .dt-tscore { color: var(--green-soft); }
.dt-team.dt-leader .dt-tscore { font-size: 1.5rem; text-shadow: 0 0 14px rgba(61,220,132,.45); }
.dt-team.dt-trailer .dt-tname, .dt-team.dt-trailer .dt-tscore { color: var(--muted); }
.dt-at { color: var(--muted); font-weight: 900; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: -.35rem 0 .85rem; }
.detail-status { padding: .28rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.detail-status.live { background: rgba(61,220,132,.18); color: var(--green); border: 1px solid var(--green); animation: livePulse 2s ease-in-out infinite; }
.detail-status.final { background: rgba(139,147,168,.16); color: var(--muted); border: 1px solid var(--border); }
.detail-status.upcoming { background: rgba(245,184,0,.14); color: var(--gold); border: 1px solid var(--gold); }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.detail-clock { font-variant-numeric: tabular-nums; font-weight: 900; font-size: 1.05rem; color: var(--txt); background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: .22rem .6rem; }
.detail-round { font-weight: 700; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: .28rem .6rem; }
.detail-note { font-size: .78rem; color: var(--muted); }
.detail-tabs { display: flex; gap: .5rem; margin: .6rem 0 1rem; flex-wrap: wrap; }
.dt-tab { border: 1px solid var(--border); background: var(--surface2); color: var(--txt); border-radius: 4px; padding: .4rem .9rem; cursor: pointer; font-weight: 700; text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; }
.dt-tab.active { border-color: var(--red); background: var(--red); color: #fff; }
.dt-tab[data-tab="nbipred"] { text-transform: none; letter-spacing: .02em; font-size: .78rem; }
.dt-panel.hidden { display: none; }

/* full ESPN play-by-play feed */
.live-feed-list { display: flex; flex-direction: column; gap: .35rem; max-height: 58vh; overflow-y: auto; padding-right: .25rem; }
.live-play { background: var(--surface2); border: 1px solid var(--border); border-left: 3px solid var(--border); border-radius: 4px; padding: .3rem .55rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .55rem; }
.live-play.scoring { border-left-color: var(--green); background: rgba(61,220,132,.07); }
.lp-clock { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--txt); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; flex: none; }
.lp-score { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--txt); font-size: .68rem; flex: none; }
.lp-badge { background: rgba(61,220,132,.16); border: 1px solid var(--green); color: var(--green); border-radius: 999px; padding: 0 .4rem; font-size: .58rem; font-weight: 900; flex: none; }
.lp-text { font-size: .8rem; line-height: 1.35; flex: 1 1 14rem; min-width: 0; }
.feed-empty { color: var(--muted); font-size: .82rem; }

.period-table { width: 100%; border-collapse: collapse; margin: .5rem 0 .7rem; font-size: .85rem; }
.period-table th, .period-table td { padding: .4rem .5rem; text-align: center; border-bottom: 1px solid var(--border); }
.period-table th:first-child, .period-table td:first-child { text-align: left; }
.period-table th { text-transform: uppercase; font-size: .75rem; color: var(--muted); letter-spacing: .05em; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .5rem 0 .7rem; }
.stat-box { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: .6rem; column-width: 11rem; column-gap: 1rem; }
.stat-box h4 { margin: 0 0 .4rem; font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; column-span: all; }
.stat-row { display: flex; justify-content: space-between; font-size: .76rem; padding: .12rem 0; border-bottom: 1px solid rgba(255,255,255,.04); break-inside: avoid; }
.stat-better { color: var(--green); font-weight: 700; }

.player-table { width: 100%; border-collapse: collapse; font-size: .74rem; margin: .6rem 0 1rem; }
.player-table th, .player-table td { position: relative; padding: .22rem .3rem; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.player-table th:first-child, .player-table td:first-child { text-align: left; }
.player-table th { cursor: pointer; text-transform: uppercase; font-size: .66rem; color: var(--muted); letter-spacing: .04em; user-select: none; }
.player-table th:hover { color: var(--red-soft); }
.player-name { font-weight: 600; }
a.player-name.player-link { color: var(--txt); text-decoration: none; }
a.player-name.player-link:hover { color: var(--gold); text-decoration: underline; }
.player-row { display: flex; align-items: center; gap: .5rem; }
.player-row img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }

/* jersey number badge next to the headshot in the modal player tables */
.pj-num {
  font-size: .62rem; font-weight: 900; line-height: 1; color: var(--muted);
  background: var(--surface2); border: 1px solid var(--border); border-radius: 3px;
  padding: .12rem .25rem; min-width: 1.35rem; text-align: center; flex: none;
  font-variant-numeric: tabular-nums;
}
.pj-sal { color: var(--blue-soft); font-weight: 800; font-variant-numeric: tabular-nums; }
.dt-panel { overflow-x: auto; }
.dnp { opacity: .5; font-style: italic; }
.pm-pos { color: var(--green); font-weight: 700; }
.pm-neg { color: var(--red-soft); font-weight: 700; }
.best-stat { background: rgba(93,255,162,.12); }

.score-flash {
  position: absolute;
  right: -2px;
  top: -6px;
  font-size: .75rem;
  font-weight: 900;
  animation: scoreFlash 2.6s ease-out forwards;
  pointer-events: none;
}
@keyframes scoreFlash {
  0% { opacity: 1; transform: translateY(0); }
  60% { opacity: 1; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(-18px); }
}
.team-row { position: relative; }
.score { transition: color .4s ease; }
.clock { transition: color .4s ease; }

.q-win { color: var(--green); font-weight: 700; }
.q-loss { color: var(--red-soft); font-weight: 700; }

/* score cell wraps the number + the margin badge */
.score-cell { display: flex; align-items: baseline; justify-content: flex-end; gap: .35rem; position: relative; }
.score-diff { color: var(--green); font-size: .68rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.score-diff.final { color: var(--gold); }

/* leader / trailing team rows — quick read at a glance */
.team-row.leading { border-left-color: var(--green); background: rgba(61,220,132,.09); }
.team-row.leading .score { color: var(--green-soft); font-size: 1.28rem; text-shadow: 0 0 14px rgba(61,220,132,.45); }
.team-row.leading .team-meta strong { color: var(--green-soft); }
.team-row.trailing .score { color: var(--muted); }
.team-row.trailing .team-meta strong { opacity: .7; }
.team-row.final-winner { border-left-color: var(--gold); background: rgba(245,184,0,.09); }
.team-row.final-winner .score { color: var(--gold); font-size: 1.28rem; }
.team-row.final-winner .team-meta strong { color: var(--gold); }

@media (max-width: 1200px) { .layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .stat-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: 1fr; }
  .rating-stars { display: none; }
  .player-table { font-size: .7rem; }
  .player-table th, .player-table td { padding: .16rem .2rem; }
  .player-table th { font-size: .62rem; letter-spacing: .02em; }
  .player-row { gap: .35rem; }
  .player-row img { width: 22px; height: 22px; }
  .pj-num { min-width: 1.15rem; }
  .award-grid { grid-template-columns: minmax(0, 230px); }
  .award { padding: .6rem .5rem .55rem; }
  .award-art { height: 58%; }
  .award-face-wrap { height: 116px; }
  .award-face { height: 116px; }
  .award-name { font-size: .92rem; }
}
.filter-bar { padding: .5rem 1rem; display: flex; justify-content: center; }
.pred-panel { border-top: 3px solid var(--gold); }
.predictions-panel { border-top: 3px solid var(--gold); }
.pred-item { position: relative; background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: .6rem; font-size: .85rem; margin-bottom: .5rem; transition: border-color .2s ease; }
.pred-item:hover { border-color: var(--gold); }
.pred-del {
  position: absolute; top: .3rem; right: .3rem;
  width: 20px; height: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 4px;
  color: var(--muted); font-size: .95rem; font-weight: 900; cursor: pointer;
  padding: 0; transition: all .15s ease;
}
.pred-del:hover { background: var(--red); border-color: var(--red); color: #fff; }
.pred-item.winning { border-left: 3px solid var(--green); }
.pred-item.losing { border-left: 3px solid var(--red-soft); }
.pred-item.pending { border-left: 3px solid var(--muted); }
.pred-item .pred-team { font-weight: 800; }
.pred-item .pred-state { font-weight: 900; text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; }
.pred-item.winning .pred-state { color: var(--green); }
.pred-item.losing .pred-state { color: var(--red-soft); }
.pred-item.pending .pred-state { color: var(--muted); }
.pred-box { display: flex; gap: .3rem; align-items: center; margin-top: .4rem; flex-wrap: wrap; }
.pred-box select, .pred-box input { background: var(--surface2); border: 1px solid var(--border); color: var(--txt); border-radius: 4px; padding: .25rem .4rem; font-size: .74rem; max-width: 44%; text-overflow: ellipsis; }
.pred-box input { max-width: 78px; }
.pred-box .pred-save { border: 0; border-radius: 4px; padding: .28rem .6rem; font-weight: 700; cursor: pointer; background: var(--blue); color: #fff; text-transform: uppercase; font-size: .7rem; }
.pred-box .pred-save:hover { background: var(--blue-soft); }
.pred-box .pred-status { flex: 1 0 100%; font-size: .7rem; font-weight: 700; min-height: 1em; line-height: 1.2; }

/* ---- NBAinsight admin prediction block ---- */
.nbipick { margin-top: .6rem; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: var(--surface2); }
.nbipick.hidden { display: none; }
.nbipick-body { display: none; padding: .6rem; font-size: .78rem; }
.nbipick.open .nbipick-body { display: block; }
.nbipick-row { margin-bottom: .55rem; }
.nbipick-row:last-child { margin-bottom: 0; }
.nbipick-row h5 { margin: 0 0 .3rem; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.nbipick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: .4rem; }
.nbipick-cell { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: .35rem .45rem; }
.nbipick-cell b { display: block; font-size: .86rem; font-weight: 900; }
.nbipick-cell span { font-size: .63rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.nbipick-cell.pos b { color: var(--green); }
.nbipick-cell.neg b { color: var(--red-soft); }
.nbipick-note { color: var(--muted); font-size: .74rem; line-height: 1.5; }
.nbipick-analysis {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 4px;
  padding: .5rem .6rem; color: var(--txt); font-size: .78rem; line-height: 1.55;
}
.nbipick-inj { display: flex; justify-content: space-between; gap: .5rem; font-size: .74rem; padding: .2rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.nbipick-inj .st { font-weight: 800; }
.nbipick-inj .st.Out { color: var(--red-soft); }
.nbipick-inj .st.Out, .nbipick-inj .st.Doubtful { color: var(--red-soft); }
.nbipick-inj .st.Questionable { color: var(--gold); }
.nbipick-inj .st.Day-to-Day, .nbipick-inj .st.Probable { color: var(--green); }
.nbipick-social { font-size: .74rem; color: var(--muted); }
.nbipick-social a { color: var(--blue-soft); }

/* ---- news feed ---- */
.news-item { background: var(--surface2); border: 1px solid var(--border); border-left: 3px solid var(--muted); border-radius: 4px; padding: .55rem .6rem; font-size: .82rem; }
.news-item.high { border-left-color: var(--red-soft); }
.news-item.medium { border-left-color: var(--gold); }
.news-item.low { border-left-color: var(--muted); }
.news-headline { font-weight: 700; }
.news-item a.news-headline { color: var(--txt); text-decoration: none; }
.news-item a.news-headline:hover { color: var(--gold); }
.news-meta { font-size: .68rem; color: var(--muted); margin-top: .2rem; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.news-body { font-size: .74rem; color: var(--muted); margin-top: .25rem; line-height: 1.45; }
.news-empty { color: var(--muted); font-size: .82rem; }

/* ---- injury feed ---- */
.injury-block { margin-bottom: .45rem; line-height: 1.5; }
.injury-block .warn { display: block; margin-bottom: .2rem; }
.muted-line { color: var(--muted); font-size: .76rem; }
.inj-row { font-size: .76rem; display: block; padding: .1rem 0; }
.inj-row b { font-weight: 800; letter-spacing: .03em; }
.inj-row.out b { color: var(--red-soft); }
.inj-row.doubtful b { color: var(--red-soft); }
.inj-row.questionable b { color: var(--gold); }
.inj-row.dtd b { color: var(--gold); }
.inj-row.probable b { color: var(--green); }
.inj-row i { color: var(--muted); font-style: normal; }
.inj-team { color: var(--muted); font-size: .7rem; }
.inj-team-head {
  display: flex; align-items: center; gap: .4rem; margin: .5rem 0 .25rem;
  padding-top: .35rem; border-top: 1px solid rgba(255,255,255,.07);
}
.inj-team-head:first-child { margin-top: .3rem; border-top: 0; padding-top: 0; }
.inj-team-head b { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.inj-team-head span { color: var(--muted); font-size: .68rem; margin-left: auto; }
.inj-logo { width: 20px; height: 20px; object-fit: contain; flex: none; }
.nbipick-inj .st.Out, .nbipick-inj .st.Doubtful { color: var(--red-soft); }
.nbipick-inj .st.Questionable, .nbipick-inj .st.Day-To-Day { color: var(--gold); }
.nbipick-inj .st.Probable { color: var(--green); }.plan-pill { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); }
.plan-pill.paid { background: rgba(61,220,132,.14); border-color: var(--green); color: var(--green); }
.plan-pill.paid.elite { background: rgba(245,184,0,.14); border-color: var(--gold); color: var(--gold); }
.plan-lock { padding: .8rem; border: 1px dashed var(--border); border-radius: 6px; background: var(--surface2); text-align: center; }
.plan-lock b { display: block; margin-bottom: .3rem; color: var(--gold); }
.plan-lock p { color: var(--muted); font-size: .82rem; margin: .2rem 0 .6rem; }
.plan-lock-btn { display: inline-block; padding: .45rem .9rem; background: var(--red); color: #fff; border-radius: 4px; text-decoration: none; font-weight: 800; font-size: .78rem; }
.plan-free-note { color: var(--muted); font-size: .76rem; margin: .4rem 0; padding: .4rem .6rem; border-left: 2px solid var(--gold); background: rgba(245,184,0,.06); }
.plan-free-note a { color: var(--gold); text-decoration: none; font-weight: 700; }
.feed-gate { padding: .5rem .7rem; margin-bottom: .5rem; border-radius: 4px; background: rgba(245,184,0,.1); border: 1px solid var(--gold); font-size: .78rem; color: var(--gold); }
.feed-gate a { color: var(--gold); font-weight: 800; text-decoration: none; }
.odd-locked .odd-val { color: var(--gold); }
.game-live-line { }
