/* =====================================================================
   COURTSIDE — NBA Game Night Command Center
   Dark arena broadcast theme · glass panels · LED scoreboard
   ===================================================================== */
:root {
  --bg: #04060c;
  --bg-2: #0a0f1d;
  --panel: rgba(16, 22, 40, 0.62);
  --panel-solid: #0e1426;
  --panel-hi: rgba(28, 38, 66, 0.7);
  --line: rgba(160, 180, 230, 0.14);
  --line-strong: rgba(160, 180, 230, 0.26);
  --text: #f3f5fb;
  --muted: #a3acc2;
  --dim: #6f7a94;
  --orange: #ff6b1a;
  --orange-2: #ff9a3d;
  --red: #e5133a;
  --blue: #1d428a;
  --blue-2: #3d7bff;
  --green: #2bd67b;
  --amber: #ffc23d;
  --led: #ff4b2b;
  --team: var(--orange);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-led: 'Orbitron', 'Consolas', 'Courier New', monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1440px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(61, 123, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(229, 19, 58, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-2); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: .01em; line-height: .95; }
code { font-size: .9em; color: var(--orange-2); }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }

.glass {
  background: linear-gradient(160deg, rgba(30, 40, 70, 0.55), rgba(12, 16, 30, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* ------------------------------------------------------------ ticker + header */
.ticker-bar { background: linear-gradient(90deg, var(--blue), #0c1a3d 40%, #3a0a16 70%, var(--red)); font-size: 12px; letter-spacing: .04em; color: #dfe6ff; }
.ticker-inner { max-width: var(--maxw); margin: 0 auto; padding: 6px var(--gutter); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ticker-flag { background: #fff; color: var(--blue); font-weight: 800; padding: 1px 8px; border-radius: 4px; font-size: 11px; }
.ticker-tz { margin-left: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 12px var(--gutter);
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(4, 6, 12, 0.92); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--blue-2), var(--red) 50%, var(--orange)); opacity: .7; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; filter: drop-shadow(0 4px 14px rgba(255, 107, 26, .45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: .06em; font-style: italic; }
.brand-text small { font-size: 9.5px; letter-spacing: .2em; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { color: var(--muted); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.header-status { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.conn[data-state="ok"] i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.conn[data-state="warn"] i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.conn[data-state="error"] i { background: var(--red); box-shadow: 0 0 10px var(--red); }
.conn[data-state="loading"] i { background: var(--blue-2); animation: blink 1s infinite; }
.nav-clock { font-family: var(--font-led); font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: 10px; background: #000; border: 1px solid rgba(255, 75, 43, .3); white-space: nowrap; }
.nav-clock b { color: var(--led); text-shadow: 0 0 8px rgba(255, 75, 43, .7); font-weight: 800; }
.nav-clock-city { font-size: 10px; letter-spacing: .1em; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 6vw, 80px) var(--gutter) clamp(28px, 4vw, 48px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-arena { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 6, 12, .15) 0%, rgba(4, 6, 12, .35) 55%, var(--bg) 100%), linear-gradient(90deg, rgba(4, 6, 12, .85) 0%, rgba(4, 6, 12, .2) 55%, rgba(4, 6, 12, .55) 100%); }
.beam { position: absolute; top: -10%; width: 22vw; height: 120%; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(180, 200, 255, .04) 55%, transparent); filter: blur(28px); transform-origin: top center; mix-blend-mode: screen; animation: sweep 9s ease-in-out infinite alternate; }
.beam-1 { left: 18%; transform: rotate(16deg); }
.beam-2 { left: 50%; transform: rotate(-8deg); animation-delay: -3s; background: linear-gradient(180deg, rgba(255, 170, 100, .26), rgba(255, 107, 26, .05) 55%, transparent); }
.beam-3 { left: 76%; transform: rotate(-18deg); animation-delay: -6s; }
.hero-haze { position: absolute; inset: auto 0 0 0; height: 40%; background: radial-gradient(60% 100% at 60% 100%, rgba(255, 107, 26, .18), transparent 70%); }
@keyframes sweep { from { opacity: .55; translate: -2vw 0; } to { opacity: 1; translate: 2vw 0; } }

.hero-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "copy visual" "clock visual"; gap: 28px 40px; align-items: center; }
.hero-copy { grid-area: copy; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 107, 26, .12); border: 1px solid rgba(255, 107, 26, .35); color: var(--orange-2); font-weight: 800; font-size: 12px; letter-spacing: .16em; }
.kicker-dot, .led-live, .live-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229, 19, 58, .7); animation: pulse 1.6s infinite; display: inline-block; flex-shrink: 0; }
.hero h1 { display: flex; flex-direction: column; gap: 6px; }
.h1-top { font-size: clamp(64px, 11vw, 150px); font-weight: 900; font-style: italic; letter-spacing: .02em; background: linear-gradient(180deg, #fff 30%, #c9d3ee 70%, #8e9bbd); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 30px rgba(61, 123, 255, .35)); line-height: .86; }
.h1-bottom { font-size: clamp(24px, 3.4vw, 44px); font-weight: 800; letter-spacing: .12em; color: #e8ecf7; }
.h1-bottom em { font-style: normal; color: var(--orange); text-shadow: 0 0 24px rgba(255, 107, 26, .45); }
.hero-lede { max-width: 560px; color: #c8d0e4; font-size: clamp(15px, 1.4vw, 18px); margin: 20px 0 26px; }
.hero-lede strong { color: var(--orange-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: transform .18s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--orange), #ff3d2e); color: #fff; box-shadow: 0 10px 30px rgba(255, 107, 26, .4); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(255, 107, 26, .6); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { background: transparent; border-color: rgba(255, 107, 26, .55); color: var(--orange-2); }
.btn-outline:hover:not(:disabled) { background: rgba(255, 107, 26, .12); }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: 15px; }
.link-btn { background: none; border: 0; color: var(--orange-2); font-weight: 700; font-size: 13px; padding: 6px 10px; min-height: 40px; border-radius: 10px; }
.link-btn:hover { background: rgba(255, 107, 26, .1); }
.is-busy .spin-icon { display: inline-block; animation: spin 1s linear infinite; }

.hero-visual { grid-area: visual; position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-ball { width: min(100%, 440px); aspect-ratio: 1; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)) drop-shadow(0 0 50px rgba(255, 107, 26, .35)); animation: float 6s ease-in-out infinite; position: relative; z-index: 1; }
.ball-glow { position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 26, .45), rgba(255, 107, 26, .08) 45%, transparent 70%); filter: blur(10px); animation: glow 6s ease-in-out infinite; }
.ball-glow::before { content: ''; position: absolute; inset: -12%; border-radius: 50%; border: 1px solid rgba(255, 154, 61, .25); box-shadow: 0 0 40px rgba(61, 123, 255, .25), inset 0 0 40px rgba(61, 123, 255, .15); animation: spin 40s linear infinite; border-top-color: rgba(61, 123, 255, .6); }
.ball-shadow { position: absolute; bottom: 2%; width: 50%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); animation: shadow 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(8deg); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.8); opacity: .55; } }
@keyframes glow { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }

/* ------------------------------------------------------------ LED clock */
.led-clock {
  grid-area: clock; justify-self: start; width: min(100%, 560px);
  padding: 16px 20px 14px; border-radius: 18px;
  background: linear-gradient(180deg, #0b0b0f, #050507);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 4px #121218, 0 0 0 5px rgba(255, 75, 43, .25), 0 25px 60px rgba(0, 0, 0, .7), inset 0 0 40px rgba(255, 75, 43, .06);
  position: relative;
}
.led-clock::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); pointer-events: none; }
.led-top, .led-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.led-label { display: inline-flex; gap: 8px; align-items: center; }
.led-sync { padding: 3px 8px; border-radius: 6px; font-size: 10px; border: 1px solid currentColor; }
.led-sync[data-state="server"] { color: var(--green); }
.led-sync[data-state="held"] { color: var(--amber); }
.led-sync[data-state="device"] { color: var(--amber); }
.led-display { position: relative; display: flex; align-items: center; gap: 14px; margin: 8px 0; font-family: var(--font-led); }
.led-ghost, .led-digits { font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; letter-spacing: .04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.led-ghost { position: absolute; left: 0; top: 0; color: rgba(255, 75, 43, .07); pointer-events: none; }
.led-digits { position: relative; color: var(--led); text-shadow: 0 0 6px rgba(255, 75, 43, .9), 0 0 22px rgba(255, 75, 43, .55), 0 0 44px rgba(255, 40, 20, .3); }
.led-digits > span { display: inline-block; min-width: 1.32ch; text-align: center; }
.led-colon { min-width: auto !important; animation: colon 1s steps(1) infinite; }
.led-side { display: flex; flex-direction: column; gap: 4px; font-weight: 800; }
.led-ampm { color: var(--amber); font-size: 22px; text-shadow: 0 0 12px rgba(255, 194, 61, .7); }
.led-zone { font-size: 12px; color: #000; background: var(--amber); padding: 1px 6px; border-radius: 4px; text-align: center; letter-spacing: .1em; }
#clockDate { color: #e7ebf6; letter-spacing: .08em; }
@keyframes colon { 50% { opacity: .25; } }

/* ------------------------------------------------------------ featured matchup */
.featured {
  --tc-a: var(--blue-2); max-width: var(--maxw); margin: clamp(28px, 4vw, 44px) auto 0; position: relative; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line-strong);
  background:
    linear-gradient(115deg, rgba(29, 66, 138, .45), rgba(10, 14, 28, .85) 35%, rgba(10, 14, 28, .85) 65%, rgba(200, 16, 46, .4)),
    repeating-linear-gradient(90deg, rgba(120, 70, 30, .08) 0 46px, rgba(0, 0, 0, .08) 46px 48px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 80px rgba(255, 107, 26, .12);
  backdrop-filter: blur(12px);
}
.featured::before { content: ''; position: absolute; inset: -40% 30%; background: conic-gradient(from 180deg, transparent, rgba(255, 154, 61, .18), transparent 30%); animation: spin 14s linear infinite; z-index: 0; pointer-events: none; }
.featured::after { content: ''; position: absolute; left: 50%; top: 50%; width: 320px; height: 320px; translate: -50% -50%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .06); pointer-events: none; }
.featured > * { position: relative; z-index: 1; }
.featured-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.featured-kicker { font-family: var(--font-display); font-weight: 800; letter-spacing: .18em; font-size: 15px; color: var(--orange-2); }
.featured-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: clamp(18px, 3vw, 30px) clamp(16px, 3vw, 36px); min-height: 200px; }
.featured-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); display: grid; place-items: center; gap: 6px; }
.featured-empty strong { color: var(--text); }
.f-team { display: flex; align-items: center; gap: 18px; min-width: 0; }
.f-home { flex-direction: row-reverse; text-align: right; }
.f-logo-wrap { position: relative; width: clamp(76px, 10vw, 128px); aspect-ratio: 1; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tc) 35%, transparent), transparent 70%); }
.f-logo { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .55)); transition: transform .4s; }
.featured:hover .f-logo { transform: scale(1.06); }
.f-meta { display: flex; flex-direction: column; min-width: 0; }
.f-role { font-size: 11px; letter-spacing: .2em; color: var(--dim); font-weight: 800; }
.f-city { color: var(--muted); font-weight: 600; font-size: 14px; }
.f-name { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 52px); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: .02em; overflow-wrap: anywhere; }
.f-rec { font-family: var(--font-led); font-size: 15px; color: var(--amber); margin-top: 6px; }
.f-rec small { font-family: var(--font-body); color: var(--dim); font-size: 10px; letter-spacing: .1em; }
.f-score { font-family: var(--font-led); font-size: clamp(40px, 5vw, 64px); font-weight: 900; color: var(--led); text-shadow: 0 0 18px rgba(255, 75, 43, .6); margin-left: auto; }
.f-home .f-score { margin-left: 0; margin-right: auto; }
.f-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 6px; }
.f-vs { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--red), var(--blue)); padding: 2px 14px; border-radius: 6px; letter-spacing: .1em; }
.f-time { font-family: var(--font-led); font-weight: 900; font-size: clamp(30px, 4vw, 52px); color: #fff; text-shadow: 0 0 20px rgba(255, 255, 255, .35); white-space: nowrap; }
.f-time small { font-size: .38em; color: var(--amber); margin-left: 6px; vertical-align: super; }
.f-clock { font-family: var(--font-led); font-size: clamp(22px, 3vw, 34px); color: var(--green); text-shadow: 0 0 14px rgba(43, 214, 123, .6); }
.f-date { color: #dfe4f1; font-weight: 600; font-size: 14px; }
.f-countdown { font-family: var(--font-led); font-size: 12px; letter-spacing: .12em; color: var(--orange-2); min-height: 1.2em; }
.f-venue, .f-tv { color: var(--muted); font-size: 13px; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1em; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); color: var(--muted); white-space: nowrap; }
.pill[data-status="live"] { color: #fff; background: rgba(229, 19, 58, .85); border-color: var(--red); box-shadow: 0 0 18px rgba(229, 19, 58, .5); }
.pill[data-status="live"] i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
.pill[data-status="final"] { color: #d6dcef; background: rgba(255, 255, 255, .1); }
.pill[data-status="postponed"], .pill[data-status="cancelled"] { color: #111; background: var(--amber); border-color: var(--amber); }
.pill[data-status="scheduled"] { color: #9fc0ff; border-color: rgba(61, 123, 255, .45); background: rgba(61, 123, 255, .12); }

/* ------------------------------------------------------------ today strip */
.tonight { max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter) 6px; }
.tonight-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tonight-head h2 { font-size: 24px; font-weight: 800; letter-spacing: .12em; display: flex; align-items: center; gap: 10px; }
.tonight-head small { font-family: var(--font-body); font-size: 13px; color: var(--muted); letter-spacing: .04em; font-weight: 600; }
.tonight-meta { font-size: 12px; color: var(--dim); }
.tonight-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #2a3555 transparent; }
.tonight-empty { color: var(--muted); padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); width: 100%; text-align: center; }
.mini-game { flex: 0 0 auto; width: 200px; text-align: left; scroll-snap-align: start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(30, 40, 70, .6), rgba(10, 14, 26, .85)); transition: transform .2s, border-color .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 6px; }
.mini-game:hover, .mini-game.is-selected { transform: translateY(-3px); border-color: rgba(255, 107, 26, .6); box-shadow: 0 10px 30px rgba(255, 107, 26, .15); }
.mini-game[data-status="live"] { border-color: rgba(229, 19, 58, .7); box-shadow: 0 0 22px rgba(229, 19, 58, .2); }
.mini-status { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mini-game[data-status="live"] .mini-status { color: #ff8095; }
.mini-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; }
.mini-row { display: flex; align-items: center; gap: 8px; }
.mini-logo-wrap { width: 26px; height: 26px; flex-shrink: 0; position: relative; display: grid; place-items: center; }
.mini-logo { width: 26px; height: 26px; object-fit: contain; }
.mini-abbr { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: .04em; }
.mini-rec { font-size: 11px; color: var(--dim); }
.mini-row b { margin-left: auto; font-family: var(--font-led); font-size: 16px; color: var(--muted); }
.mini-row.win b, .mini-game[data-status="live"] .mini-row b { color: #fff; }
.mini-row.win .mini-abbr::after { content: ' ◂'; color: var(--orange); font-size: 12px; }

/* ------------------------------------------------------------ sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 0; }
.section-head, .schedule-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.eyebrow { margin: 0 0 6px; color: var(--orange); font-weight: 800; font-size: 12px; letter-spacing: .18em; }
.section h2 { font-size: clamp(40px, 5.5vw, 68px); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
.section h2 span { color: transparent; -webkit-text-stroke: 1.5px var(--orange); }
.section-sub { color: var(--muted); max-width: 640px; margin: 10px 0 0; }
.section-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.refresh-box { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.refresh-box small { color: var(--dim); font-size: 12px; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .08em; padding: 8px 13px; min-height: 38px; border-radius: 9px; transition: background .2s, color .2s; }
.seg button:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, .06); }
.seg button[aria-pressed="true"] { background: linear-gradient(135deg, var(--orange), #ff3d2e); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 26, .35); }
.seg-block { display: flex; width: 100%; }
.seg-block button { flex: 1; }

/* ------------------------------------------------------------ teams */
.team-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.team-groups[data-groups="1"] { grid-template-columns: 1fr; }
.team-groups[data-groups="1"] .team-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.group-title { font-size: 18px; letter-spacing: .2em; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.group-title::before { content: ''; width: 26px; height: 4px; border-radius: 2px; }
.conf-east::before { background: var(--blue-2); }
.conf-west::before { background: var(--red); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.team-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 8px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(30, 40, 70, .5), rgba(8, 12, 22, .9));
  overflow: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s;
}
.team-tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--tc) 40%, transparent), transparent 70%); opacity: .35; transition: opacity .3s; }
.team-tile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tc); opacity: .5; transition: opacity .3s; }
.team-tile > * { position: relative; }
.team-tile:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--tc) 60%, transparent); box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 24px color-mix(in srgb, var(--tc) 25%, transparent); }
.team-tile:hover::before { opacity: .8; }
.team-tile.is-selected { border-color: var(--tc); box-shadow: 0 0 0 2px var(--tc), 0 16px 40px color-mix(in srgb, var(--tc) 35%, transparent); transform: translateY(-3px); }
.team-tile.is-selected::before { opacity: 1; }
.team-tile.is-selected::after { opacity: 1; height: 5px; }
.tile-logo-wrap { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 6px; position: relative; }
.tile-logo { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); transition: transform .3s; }
.team-tile:hover .tile-logo { transform: scale(1.1) rotate(-3deg); }
.tile-city { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.tile-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; text-transform: uppercase; line-height: 1; text-align: center; }
.tile-rec { margin-top: 5px; font-family: var(--font-led); font-size: 13px; color: var(--amber); background: rgba(0, 0, 0, .45); padding: 2px 8px; border-radius: 6px; }

/* logo fallback badge (shown only if both CDNs fail) */
.logo-abbr { display: none; }
.no-logo .logo-abbr { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--tc, var(--blue)), #111); font-family: var(--font-display); font-weight: 900; font-size: .9em; color: #fff; }

/* ------------------------------------------------------------ team focus */
.team-focus { --tc: var(--orange); margin-bottom: 22px; border-radius: 22px; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--tc) 28%, rgba(10, 14, 28, .9)), rgba(10, 14, 28, .92) 55%), repeating-linear-gradient(90deg, rgba(120, 70, 30, .1) 0 46px, rgba(0, 0, 0, .1) 46px 48px); box-shadow: var(--shadow), 0 0 50px color-mix(in srgb, var(--tc) 18%, transparent); animation: rise .45s ease both; }
.focus-id { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.focus-logo-wrap { width: 84px; height: 84px; display: grid; place-items: center; position: relative; }
.focus-logo { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6)); }
.focus-id h3 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; text-transform: uppercase; font-style: italic; }
.focus-rec { margin: 4px 0 0; color: #dfe4f1; }
.focus-rec b { font-family: var(--font-led); color: var(--amber); font-size: 18px; }
.focus-clear { margin-left: auto; }
.focus-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.focus-stat { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.focus-stat span { font-size: 10.5px; letter-spacing: .16em; color: var(--dim); font-weight: 800; }
.focus-stat strong { font-family: var(--font-display); font-size: 24px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.focus-stat small { color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------ schedule */
.schedule-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 86px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters h3 { font-size: 22px; letter-spacing: .14em; font-weight: 800; }
.field { display: flex; flex-direction: column; gap: 7px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 11px; letter-spacing: .14em; font-weight: 800; color: var(--muted); text-transform: uppercase; padding: 0; }
.field select, .field input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 11px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-strong); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field select:focus, .field input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 26, .25); outline: none; }
.field select option, .field select optgroup { background: var(--panel-solid); }
.field input[type="date"] { color-scheme: dark; }
.hint { color: var(--dim); font-size: 12px; }
.date-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.date-range legend { grid-column: 1 / -1; margin-bottom: 7px; }
.date-range label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--dim); min-width: 0; }
.date-range input { padding: 8px; font-size: 13px; }
.tz-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(255, 107, 26, .08); border: 1px solid rgba(255, 107, 26, .3); }
.tz-card p { margin: 0; font-size: 12.5px; color: #cdd3e3; }
.tz-badge { font-family: var(--font-led); font-weight: 900; font-size: 13px; background: var(--amber); color: #000; padding: 4px 7px; border-radius: 6px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.notice { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; border: 1px solid rgba(61, 123, 255, .4); background: rgba(61, 123, 255, .1); color: #d4e1ff; }
.notice[data-level="warn"] { border-color: rgba(255, 194, 61, .5); background: rgba(255, 194, 61, .1); color: #ffe6ad; }
.notice[data-level="error"] { border-color: rgba(229, 19, 58, .6); background: rgba(229, 19, 58, .12); color: #ffc2cc; }
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.result-count { color: var(--muted); }
.result-count b { color: var(--text); font-family: var(--font-led); }
.list-tools { display: flex; gap: 8px; flex-wrap: wrap; }

.games { display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.day-head { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; font-size: 18px; letter-spacing: .12em; font-weight: 800; color: #dfe4f1; text-transform: uppercase; }
.day-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.day-head em { font-style: normal; font-size: 12px; background: var(--red); color: #fff; padding: 2px 8px; border-radius: 6px; letter-spacing: .1em; }
.games > .day-head:first-child { margin-top: 0; }

.game-card {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "away center home" "foot foot foot"; align-items: center; gap: 8px 14px;
  padding: 14px 18px 10px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(26, 34, 60, .58), rgba(9, 12, 22, .9));
  overflow: hidden; transition: transform .22s, border-color .22s, box-shadow .22s;
  animation: rise .4s ease both;
}
.game-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--blue-2), var(--red)); opacity: .7; }
.game-card:hover { transform: translateY(-2px); border-color: rgba(255, 107, 26, .45); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.game-card[data-status="live"] { border-color: rgba(229, 19, 58, .6); box-shadow: 0 0 26px rgba(229, 19, 58, .18); }
.game-card[data-status="live"]::before { background: var(--red); opacity: 1; }
.game-card[data-status="final"] { background: linear-gradient(160deg, rgba(22, 26, 40, .6), rgba(8, 10, 18, .92)); }
.game-card[data-status="postponed"], .game-card[data-status="cancelled"] { opacity: .8; }
.g-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.g-away { grid-area: away; }
.g-home { grid-area: home; flex-direction: row-reverse; text-align: right; }
.g-logo-wrap { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; position: relative; }
.g-logo { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); transition: transform .25s; }
.game-card:hover .g-logo { transform: scale(1.08); }
.g-meta { display: flex; flex-direction: column; min-width: 0; }
.g-city { font-size: 11.5px; color: var(--muted); }
.g-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1.02; overflow-wrap: anywhere; }
.g-rec { font-size: 11.5px; color: var(--dim); font-weight: 600; letter-spacing: .04em; }
.g-team.is-mine .g-name { color: var(--team); }
.g-score { font-family: var(--font-led); font-weight: 800; font-size: 28px; color: var(--muted); margin-left: auto; }
.g-home .g-score { margin-left: 0; margin-right: auto; }
.g-team.is-winner .g-score { color: #fff; text-shadow: 0 0 14px rgba(255, 255, 255, .35); }
.game-card[data-status="live"] .g-score { color: var(--led); text-shadow: 0 0 12px rgba(255, 75, 43, .5); }
.g-center { grid-area: center; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; text-align: center; }
.g-at { font-family: var(--font-display); font-size: 12px; color: var(--dim); font-weight: 800; }
.g-time { font-family: var(--font-led); font-weight: 800; font-size: 22px; white-space: nowrap; }
.g-tz { font-size: 10px; letter-spacing: .16em; color: var(--amber); font-weight: 800; }
.g-tip { font-size: 11px; color: var(--dim); }
.g-foot { grid-area: foot; display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); padding-top: 8px; border-top: 1px dashed var(--line); }
.load-more { width: 100%; margin-top: 16px; }
.state-box { display: grid; place-items: center; gap: 8px; text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.state-box strong { color: var(--text); font-size: 17px; }
.state-box p { margin: 0; }

/* ------------------------------------------------------------ standings */
.standings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.conf { overflow: hidden; padding: 0; }
.conf-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.conf-east .conf-head { background: linear-gradient(90deg, rgba(29, 66, 138, .55), transparent); }
.conf-west .conf-head { background: linear-gradient(90deg, rgba(200, 16, 46, .45), transparent); }
.conf-head h3 { font-size: 22px; letter-spacing: .12em; font-weight: 800; }
.conf-order { font-size: 10px; letter-spacing: .12em; color: var(--muted); font-weight: 800; border: 1px solid var(--line-strong); padding: 3px 8px; border-radius: 999px; }
.table-wrap { overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.standings th { font-size: 11px; letter-spacing: .12em; color: var(--dim); font-weight: 800; text-align: right; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.standings th.c-team, .standings th.c-rank { text-align: left; }
.standings td { padding: 4px 10px; border-bottom: 1px solid rgba(160, 180, 230, .07); }
.standings tr { transition: background .2s; }
.standings tbody tr:hover { background: rgba(255, 255, 255, .04); }
.standings tr.is-selected { background: color-mix(in srgb, var(--tc) 20%, transparent); box-shadow: inset 4px 0 0 var(--tc); }
.standings tr.zone-line td { border-bottom: 1px dashed rgba(255, 194, 61, .45); }
.c-rank { width: 36px; font-family: var(--font-led); font-size: 13px; color: var(--muted); }
.zone-playoff .c-rank { color: var(--green); }
.zone-playin .c-rank { color: var(--amber); }
.c-num { text-align: right; font-weight: 600; white-space: nowrap; }
.c-pct { font-family: var(--font-led); font-size: 13px; color: var(--amber); }
.c-x { color: var(--muted); font-size: 13px; }
.c-x.up { color: var(--green); }
.c-x.down { color: #ff7a8d; }
.st-team { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 4px 6px; border: 0; background: none; text-align: left; border-radius: 10px; transition: background .2s; }
.st-team:hover { background: rgba(255, 255, 255, .06); }
.st-logo-wrap { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; position: relative; }
.st-logo { width: 34px; height: 34px; object-fit: contain; }
.st-name { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.st-name strong { font-family: var(--font-display); font-weight: 800; font-size: 18px; text-transform: uppercase; }
.st-name small { font-size: 11px; color: var(--dim); }
.fine-print { color: var(--dim); font-size: 12px; margin: 14px 0 0; }

/* ------------------------------------------------------------ footer + toast */
.site-footer { max-width: var(--maxw); margin: 70px auto 0; padding: 30px var(--gutter) 46px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.site-footer p { margin: 8px 0; max-width: 980px; }
.site-footer strong { color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand strong { font-family: var(--font-display); font-style: italic; font-size: 22px; letter-spacing: .06em; color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 80; background: #10182e; border: 1px solid rgba(255, 107, 26, .5); color: var(--text); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); animation: rise .3s ease; }

.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .1); border-top-color: var(--orange); animation: spin .9s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 19, 58, .7); } 70% { box-shadow: 0 0 0 10px rgba(229, 19, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 19, 58, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ responsive */
@media (min-width: 1800px) {
  :root { --maxw: 1680px; }
  body { font-size: 16px; }
}
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .focus-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schedule-layout { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "clock" "visual"; }
  .hero-visual { min-height: 0; position: absolute; right: -8%; top: 4%; width: 52%; opacity: .5; pointer-events: none; z-index: -1; }
  .led-clock { justify-self: stretch; width: 100%; }
  .team-groups { grid-template-columns: 1fr; }
  .schedule-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-head, .tz-card { grid-column: 1 / -1; }
  .standings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .ticker-tz { display: none; }
  .header-status .conn { display: none; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 22px; }
  .site-header { gap: 10px; padding: 10px 16px; }
  .featured-body { grid-template-columns: 1fr; gap: 14px; }
  .f-team, .f-home { flex-direction: row; text-align: left; }
  .f-home .f-score { margin-left: auto; margin-right: 0; }
  .f-center { order: -1; padding: 6px 0 12px; border-bottom: 1px solid var(--line); }
  .featured::after { display: none; }
  .focus-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-clear { margin-left: 0; width: 100%; }
  .filters { grid-template-columns: 1fr; }
  .toolbar .seg { width: 100%; }
  .toolbar .seg button { flex: 1 1 auto; padding: 8px 8px; font-size: 14px; }
  .game-card { grid-template-columns: 1fr auto; grid-template-areas: "away center" "home center" "foot foot"; padding: 12px 14px 10px; }
  .g-home { flex-direction: row; text-align: left; }
  .g-home .g-score { margin-left: auto; margin-right: 0; }
  .g-center { min-width: 92px; padding-left: 10px; border-left: 1px solid var(--line); }
  .g-logo-wrap, .g-logo { width: 40px; height: 40px; }
  .g-name { font-size: 19px; }
  .g-time { font-size: 17px; }
  .c-x { display: none; }
  .refresh-box { align-items: flex-start; }
  .section-head, .schedule-head { align-items: flex-start; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .tile-logo-wrap, .tile-logo { width: 50px; height: 50px; }
  .tile-name { font-size: 17px; }
}
@media (max-width: 420px) {
  .nav-clock-city { display: none; }
  .nav-clock { font-size: 12px; padding: 5px 8px; }
  .led-display { gap: 8px; }
  .led-ampm { font-size: 17px; }
  .f-logo-wrap { width: 64px; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .team-tile { padding: 10px 4px; }
  .tile-name { font-size: 15px; }
  .tile-city { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-ball { animation: none; }
}
@media (forced-colors: active) {
  .seg button[aria-pressed="true"] { outline: 2px solid ButtonText; }
}
@media print {
  .site-header, .ticker-bar, .hero-bg, .hero-visual, .filters, .toolbar, .list-tools, .load-more, .tonight { display: none !important; }
  body { background: #fff; color: #000; }
}
