/* Kings Industry (from the Kings brand kit), subset to Latin. */
@font-face { font-family: "Kings Industry"; src: url("assets/fonts/kings-industry-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Kings Industry"; src: url("assets/fonts/kings-industry-demi.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Kings Industry"; src: url("assets/fonts/kings-industry-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Kings Industry"; src: url("assets/fonts/kings-industry-black.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Kings Industry"; src: url("assets/fonts/kings-industry-ultra.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
/* Beam HQ · NBA Hub. Tokens first, dark is the default (arena lights down). */
:root {
  --purple: #5b2b82;       /* Royal Purple, PMS 268 */
  --purple-2: #7b4bb0;
  --granite: #707372;      /* PMS 424 */
  --kgray: #b1b3b3;        /* Cool Gray 5 */
  --beam: #b48cff;
  --silver: #b1b3b3;
  --win: #33d17a;
  --loss: #ff5d6c;
  --live: #ff3b4e;
  --gold: #ffcc4d;
  --radius: 16px;
  --radius-s: 10px;
  --display: "Kings Industry", "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
}
:root, :root[data-theme="dark"] {
  --bg: #0b0812;
  --bg-2: #120d1c;
  --panel: rgba(27, 20, 39, 0.82);
  --panel-solid: #1b1427;
  --panel-2: #241a34;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3eefb;
  --muted: #a99fbb;
  --faint: #6f6582;
  --court: rgba(180, 140, 255, 0.07);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --chip: rgba(255, 255, 255, 0.06);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #efe6d6;
  --bg-2: #e6d8c0;
  --panel: rgba(255, 252, 247, 0.92);
  --panel-solid: #fffcf7;
  --panel-2: #f4ece0;
  --line: rgba(40, 20, 60, 0.1);
  --line-2: rgba(40, 20, 60, 0.18);
  --text: #1d1428;
  --muted: #6b5f7a;
  --faint: #9a8fa8;
  --court: rgba(120, 70, 20, 0.12);
  --shadow: 0 8px 24px rgba(60, 30, 10, 0.12);
  --chip: rgba(90, 45, 129, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--body);
  min-height: 100vh;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: inherit; }
small { color: var(--muted); }
code { background: var(--chip); padding: 1px 6px; border-radius: 6px; }

/* ---------- arena background ---------- */
.arena-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, rgba(90, 45, 129, 0.55), transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg) 60%); }
:root[data-theme="light"] .arena-bg {
  background:
    repeating-linear-gradient(90deg, rgba(150, 95, 40, 0.07) 0 2px, transparent 2px 92px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 46px, rgba(170, 110, 50, 0.05) 46px 92px),
    linear-gradient(180deg, #f3e8d4, #e7d6bb);
}
.court-lines { position: absolute; inset: 8% -5% auto; width: 110%; height: 84%; fill: none; stroke: var(--court); stroke-width: 3; }
.spot { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(80px); opacity: 0.35; }
.spot.s1 { background: #5a2d81; left: -20vw; top: -25vw; animation: drift 22s ease-in-out infinite alternate; }
.spot.s2 { background: #3b2a6b; right: -25vw; top: 10vh; animation: drift 28s ease-in-out infinite alternate-reverse; }
:root[data-theme="light"] .spot { opacity: 0.12; }
@keyframes drift { to { transform: translate(8vw, 6vh) scale(1.1); } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 10px max(16px, calc((100vw - 1400px) / 2));
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #7b4bb0, #3d1d5c); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 4px 18px rgba(123, 75, 176, 0.5); }
.brand-mark svg { width: 26px; fill: #fff; filter: drop-shadow(0 0 6px rgba(200, 170, 255, 0.8)); }
.brand:hover .brand-mark svg { animation: crown-bob 0.6s ease; }
@keyframes crown-bob { 40% { transform: translateY(-3px) rotate(-6deg); } 70% { transform: translateY(1px) rotate(3deg); } }
.brand-text { white-space: nowrap; }
.brand-text b { display: block; font: 800 24px/0.95 var(--display); letter-spacing: 0.06em; }
.brand-text small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.top-mid { flex: 1; display: flex; justify-content: center; }
.rec-pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line); font: 600 15px var(--display); letter-spacing: 0.04em; }
.rec-pill img { width: 24px; height: 24px; }
.rec-pill em { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 99px; }
.rec-pill em.w, .streak.w { background: color-mix(in srgb, var(--win) 22%, transparent); color: var(--win); }
.rec-pill em.l, .streak.l { background: color-mix(in srgb, var(--loss) 20%, transparent); color: var(--loss); }
.top-tools { display: flex; align-items: center; gap: 6px; }
.clock { font: 16px var(--mono); color: var(--muted); margin-right: 6px; }
.tool { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); border: 1px solid var(--line); position: relative; font-size: 16px; transition: transform 0.15s; }
.tool:hover { transform: translateY(-1px); border-color: var(--line-2); }
.tool svg { width: 18px; fill: currentColor; }
.tool.ring svg { animation: ring 0.5s ease; transform-origin: 50% 10%; }
@keyframes ring { 20% { transform: rotate(18deg); } 45% { transform: rotate(-14deg); } 70% { transform: rotate(8deg); } }
.cb-count { position: absolute; top: -6px; right: -6px; font: 600 10px var(--body); background: var(--purple-2); color: #fff; border-radius: 99px; padding: 0 5px; }
.cb-count:empty { display: none; }
:root[data-fx="off"] #fxToggle { opacity: 0.45; }

/* ---------- ticker ---------- */
.ticker { display: flex; align-items: stretch; height: 38px; background: linear-gradient(90deg, #2c1442, #1a0f28); color: #f2ecfa; border-bottom: 1px solid rgba(180, 140, 255, 0.25); position: relative; overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; font: 800 14px var(--display); letter-spacing: 0.12em; background: var(--live); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); padding-right: 24px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.ticker-window { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; animation: tick var(--tk-dur, 60s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(var(--tk-dist, -50%)); } }
.tk { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px; text-decoration: none; font-weight: 500; }
a.tk:hover { color: var(--beam); }
.tk i { font: 700 11px var(--display); font-style: normal; letter-spacing: 0.1em; padding: 2px 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.tk-live i { background: var(--live); }
.tk-kings i { background: var(--purple-2); }
.tk-kings { color: #e2d2ff; }
.tk small { color: #c9bdda; }
.tk-sep { opacity: 0.6; padding: 0 12px; font-size: 12px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 14px max(16px, calc((100vw - 1400px) / 2)) 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 9px 16px; border-radius: 99px; font: 700 16px var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: 0.2s; }
.tabs button:hover { color: var(--text); background: var(--chip); }
.tabs button.on { color: #fff; background: linear-gradient(135deg, var(--purple-2), var(--purple)); box-shadow: 0 4px 18px rgba(123, 75, 176, 0.45); }

main { padding: 16px max(16px, calc((100vw - 1400px) / 2)) 40px; }
.view { display: none; animation: rise 0.35s ease; }
.view.on { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.sec-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font: 800 26px var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.sec-title small { font: 500 13px var(--body); letter-spacing: 0; text-transform: none; }
.sec-ico { font-size: 22px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.panel-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 700 18px var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.panel-title small { font: 500 12px var(--body); letter-spacing: 0; text-transform: none; }
.panel-title .link { margin-left: auto; }
.link { color: var(--beam); font: 600 13px var(--body); text-transform: none; letter-spacing: 0; }
:root[data-theme="light"] .link { color: var(--purple); }
.link:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 99px; background: linear-gradient(135deg, var(--purple-2), var(--purple)); color: #fff; font: 700 15px var(--display); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(123, 75, 176, 0.5); }
.btn.ghost { background: var(--chip); color: var(--text); border: 1px solid var(--line-2); }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 12px; grid-column: 1 / -1; }
.empty.small { padding: 12px; }
.muted { color: var(--muted); }
.lede { color: var(--muted); margin: 4px 0 16px; }
.pos { color: var(--win); }
.neg { color: var(--loss); }
.mini-logo { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; }

/* bouncing basketball loader */
.ball-loader { width: 34px; height: 34px; border-radius: 50%; position: relative; margin: 8px auto;
  background: radial-gradient(circle at 35% 30%, #ffb267, #e8752a 55%, #b5521a); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.15);
  animation: bounce 0.7s cubic-bezier(0.5, 0.05, 0.5, 1) infinite alternate; }
.ball-loader::before, .ball-loader::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(60, 25, 5, 0.7); }
.ball-loader::before { clip-path: inset(0 48% 0 48%); }
.ball-loader::after { clip-path: inset(48% 0 48% 0); }
.ball-loader.sm { width: 22px; height: 22px; }
@keyframes bounce { from { transform: translateY(-12px); } to { transform: translateY(6px) scaleX(1.08) scaleY(0.92); } }

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 59, 78, 0.7); animation: livepulse 1.4s infinite; vertical-align: 1px; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(255, 59, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0); } }
@keyframes pulse { 50% { opacity: 0.3; } }
.clutch { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font: 800 12px var(--display); letter-spacing: 0.1em;
  background: linear-gradient(90deg, #ff6a00, #ff2d55); color: #fff; animation: clutch 0.9s ease-in-out infinite alternate; }
@keyframes clutch { to { box-shadow: 0 0 14px rgba(255, 90, 40, 0.8); transform: scale(1.04); } }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; padding: 22px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgba(90, 45, 129, 0.9), rgba(30, 16, 46, 0.95) 60%), #1c1029; color: #f4efff; border: 1px solid rgba(180, 140, 255, 0.3); box-shadow: 0 20px 50px rgba(40, 10, 70, 0.45); min-height: 290px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.25;
  background: radial-gradient(circle at 18% 120%, transparent 0 90px, rgba(255, 255, 255, 0.5) 91px 93px, transparent 94px), radial-gradient(circle at 18% 120%, transparent 0 230px, rgba(255, 255, 255, 0.3) 231px 233px, transparent 234px); }
.hero small { color: #cbbde0; }
.hero-beam { position: absolute; left: 50%; bottom: 0; width: 70px; height: 140%; transform: translateX(-50%); z-index: -1; opacity: 0;
  background: linear-gradient(0deg, rgba(200, 170, 255, 0.95), rgba(180, 140, 255, 0.35) 40%, transparent); filter: blur(10px); transition: opacity 1s; }
.hero.beam-lit .hero-beam { opacity: 0.5; animation: beamsway 6s ease-in-out infinite alternate; }
@keyframes beamsway { from { transform: translateX(-50%) skewX(-4deg); } to { transform: translateX(-50%) skewX(4deg); } }
.hero.is-live { border-color: rgba(255, 59, 78, 0.5); }

.hn-kicker, .hl-kicker { font: 700 15px var(--display); letter-spacing: 0.14em; color: #d8c8f2; }
.hn-match { display: flex; align-items: center; gap: 24px; margin: 14px 0 6px; }
.hn-logo { width: 104px; height: 104px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45)); animation: float 5s ease-in-out infinite; }
.hn-logo:not(.me) { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--glow) 70%, transparent)); animation-delay: -2.5s; }
.hn-logo.me { filter: drop-shadow(0 0 24px rgba(180, 140, 255, 0.75)); }
@keyframes float { 50% { transform: translateY(-6px); } }
.hn-vs { font: 800 34px var(--display); color: rgba(255, 255, 255, 0.55); }
.hn-opp { font: 700 24px var(--display); letter-spacing: 0.03em; }
.hn-opp small { font: 500 14px var(--body); margin-left: 6px; }
.hn-meta { color: #d6cae8; margin-top: 8px; }
.hn-pred { margin-top: 8px; font-size: 13px; color: #d6cae8; }
.hn-pred b { color: #fff; font: 700 16px var(--display); }
.pred { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.pred span { display: flex; align-items: center; gap: 8px; }
.pred img { width: 36px; height: 36px; }
.pred b { font: 800 26px var(--display); }
.pred-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.shotclock { display: inline-flex; gap: 6px; margin-top: 14px; }
.shotclock span { display: grid; justify-items: center; min-width: 62px; padding: 6px 8px 4px; border-radius: 10px; background: #0b0710; border: 1px solid #2a1f37; box-shadow: inset 0 0 14px rgba(255, 45, 70, 0.15); }
.shotclock b { font: 34px/1 var(--mono); color: #ff3b4e; text-shadow: 0 0 10px rgba(255, 50, 70, 0.75); }
.shotclock i { font: 600 9px var(--body); font-style: normal; letter-spacing: 0.15em; color: #8a7f99; margin-top: 3px; }
.sc-tip { font: 800 30px var(--display); color: #ff3b4e; letter-spacing: 0.1em; padding: 6px 12px; }

.hl-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 14px 0 10px; }
.hl-side { display: grid; justify-items: center; gap: 4px; }
.hl-side img { width: 76px; height: 76px; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--tc) 70%, transparent)); }
.hl-side b { font: 700 18px var(--display); letter-spacing: 0.1em; }
.hl-score { font: 800 64px/1 var(--display); text-shadow: 0 0 18px rgba(255, 255, 255, 0.25); }
.hl-side.me .hl-score { color: #e3d3ff; }
.hl-mid { text-align: center; }
.hl-clock { font: 38px var(--mono); color: #ff3b4e; text-shadow: 0 0 10px rgba(255, 50, 70, 0.7); }
.hl-q { font: 700 16px var(--display); letter-spacing: 0.16em; color: #d8c8f2; }
.hl-lead { font: 700 18px var(--display); letter-spacing: 0.06em; margin-bottom: 8px; }
.hl-lead.up { color: #9cffc4; }
.hl-lead.down { color: #ffb3ba; }
.wp-meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-bottom: 14px; }
.wp-meter i { display: block; height: 100%; background: linear-gradient(90deg, #7b4bb0, #c7a6ff); transition: width 0.8s; }

.hero-right { display: grid; gap: 10px; align-content: start; }
.hr-team { display: flex; align-items: center; gap: 12px; }
.hr-team > img { width: 46px; height: 46px; }
.hr-team b { font: 800 24px var(--display); letter-spacing: 0.04em; display: block; line-height: 1; }
.beam-status { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.08); }
.beam-status b { font: 800 17px var(--display); letter-spacing: 0.08em; display: block; }
.bs-icon { width: 14px; height: 40px; border-radius: 99px; background: linear-gradient(0deg, #3a2d4a, #241a2f); }
.beam-status.lit { border-color: rgba(200, 170, 255, 0.5); box-shadow: 0 0 30px rgba(160, 110, 255, 0.35) inset; }
.beam-status.lit .bs-icon { background: linear-gradient(0deg, #fff, #c7a6ff 50%, rgba(180, 140, 255, 0)); box-shadow: 0 0 18px #b48cff; animation: flicker 2s infinite; }
@keyframes flicker { 50% { opacity: 0.8; } 52% { opacity: 1; } }
.beam-status .btn { padding: 6px 12px; font-size: 13px; color: #fff; }
.hero-last { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); cursor: pointer; transition: background 0.2s; }
.hero-last:hover { background: rgba(0, 0, 0, 0.35); }
.hero-last b { display: block; font: 700 20px var(--display); letter-spacing: 0.04em; }
.hero-last small { display: block; }
.hl-tag { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 22px var(--display); }
.hero-last.win .hl-tag { background: var(--win); color: #062a15; }
.hero-last.loss .hl-tag { background: var(--loss); color: #3a0510; }
.form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pips { display: flex; gap: 4px; }
.pips i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 700 11px var(--display); font-style: normal; }
.pips i.w { background: color-mix(in srgb, var(--win) 75%, transparent); color: #052513; }
.pips i.l { background: rgba(255, 93, 108, 0.35); color: #ffd1d6; }
.pips em { color: #cbbde0; font-size: 12px; }
.streak { font: 700 13px var(--display); padding: 2px 9px; border-radius: 99px; letter-spacing: 0.06em; }
.hero-next, .hero-live { cursor: pointer; }

/* ---------- date strip + games ---------- */
.scores-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.date-strip { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ds-day { display: grid; justify-items: center; padding: 6px 10px; border-radius: 10px; min-width: 58px; transition: 0.2s; }
.ds-day b { font: 700 14px var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.ds-day small { font-size: 11px; }
.ds-day:hover { background: var(--chip); }
.ds-day.on { background: var(--purple); color: #fff; }
.ds-day.on small { color: #e3d6f5; }
.ds-arrow { padding: 0 10px; font-size: 22px; color: var(--muted); border-radius: 10px; }
.ds-arrow:hover { background: var(--chip); color: var(--text); }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.game { position: relative; border-radius: var(--radius); padding: 12px 14px 10px; cursor: pointer; overflow: hidden; isolation: isolate;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.game::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.16;
  background: linear-gradient(90deg, var(--ac) 0%, transparent 45%, transparent 55%, var(--hc) 100%); }
.game:hover { transform: translateY(-3px); border-color: var(--line-2); }
.game:hover .g-more { opacity: 1; transform: none; }
.game.kings { border-color: rgba(180, 140, 255, 0.55); box-shadow: 0 0 0 1px rgba(180, 140, 255, 0.25), 0 10px 30px rgba(90, 45, 129, 0.4); }
.game.in { border-color: rgba(255, 59, 78, 0.4); }
.game.is-clutch { animation: clutchcard 1.6s ease-in-out infinite alternate; }
@keyframes clutchcard { to { box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.6), 0 0 26px rgba(255, 70, 40, 0.35); } }
.g-crown { position: absolute; top: -2px; right: 10px; font-size: 18px; filter: drop-shadow(0 2px 6px rgba(180, 140, 255, 0.8)); animation: float 3s ease-in-out infinite; }
.g-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 22px; margin-bottom: 4px; padding-right: 22px; }
.g-status { display: flex; align-items: center; gap: 6px; font: 600 14px var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.g-status .warn { color: var(--gold); }
.soon { font: 500 12px var(--body); color: var(--beam); text-transform: none; letter-spacing: 0; }
.g-note { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.g-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 5px 12px 5px 0; }
.g-logo { width: 34px; height: 34px; }
.g-team b { font: 700 19px/1 var(--display); letter-spacing: 0.03em; display: block; }
.g-team small { font-size: 11px; }
.g-row.mine .g-team b { color: var(--beam); }
:root[data-theme="light"] .g-row.mine .g-team b { color: var(--purple); }
.g-score { position: relative; font: 800 30px/1 var(--display); min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.g-row.lost { opacity: 0.55; }
.g-row.won .g-score::after { content: "◂"; position: absolute; right: -14px; top: 6px; font-size: 14px; color: var(--muted); }
.g-score.bump { animation: bump 1.2s ease; }
@keyframes bump { 0% { color: var(--gold); transform: scale(1.25); text-shadow: 0 0 14px var(--gold); } 100% { transform: none; } }
.plus { position: absolute; right: 0; top: -6px; font: 700 13px var(--display); color: var(--gold); animation: floatup 1.4s ease forwards; }
@keyframes floatup { to { transform: translateY(-18px); opacity: 0; } }
.g-bar { display: flex; height: 3px; border-radius: 99px; background: var(--hc); margin: 6px 0 8px; overflow: hidden; opacity: 0.8; }
.g-bar i { background: var(--ac); transition: width 0.8s; }
.game.pre .g-bar { opacity: 0.35; }
.g-foot { font-size: 12px; color: var(--muted); min-height: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.g-foot .sep { opacity: 0.5; margin: 0 6px; }
.g-leaders { display: flex; justify-content: space-between; width: 100%; gap: 6px; }
.g-leaders span { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-leaders img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--chip); }
.g-leaders b { color: var(--text); }
.g-more { position: absolute; right: 12px; bottom: 8px; font: 600 12px var(--body); color: var(--beam); opacity: 0; transform: translateX(-4px); transition: 0.2s; background: var(--panel-solid); padding-left: 6px; }

.tonight-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.tonight-lower .prime-panel { grid-column: 1 / -1; }
.mini-news { display: grid; gap: 8px; }
.mini-news a { display: flex; gap: 10px; text-decoration: none; padding: 6px; border-radius: 10px; transition: background 0.2s; }
.mini-news a:hover { background: var(--chip); }
.mini-news img { width: 84px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.mini-news b { display: block; font-weight: 600; line-height: 1.3; }
.mini-news a.kings b { color: var(--beam); }
:root[data-theme="light"] .mini-news a.kings b { color: var(--purple); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { font: 600 11px var(--body); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; padding: 6px 6px; text-align: center; white-space: nowrap; }
td { padding: 7px 6px; text-align: center; border-top: 1px solid var(--line); white-space: nowrap; }
.tl { text-align: left; }
.stand td.team { font-weight: 600; }
.stand td.team img { display: inline-block; width: 24px; height: 24px; vertical-align: middle; margin-right: 8px; }
.stand td.team span { vertical-align: middle; }
.stand .seed { color: var(--muted); font-weight: 600; width: 28px; }
.stand tr { transition: background 0.2s; }
.stand tbody tr:hover { background: var(--chip); }
.stand tr.mine { background: linear-gradient(90deg, rgba(123, 75, 176, 0.45), rgba(123, 75, 176, 0.08)); }
.stand tr.mine td { font-weight: 700; }
.stand tr.follow td.team span { color: var(--beam); }
.stand tr.cut-po td { border-bottom: 2px solid var(--win); }
.stand tr.cut-pi td { border-bottom: 2px dashed var(--gold); }
.stand.compact td { padding: 6px 4px; }
.stand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stand-key { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.stand-key i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--win); vertical-align: 3px; margin-right: 6px; }
.stand-key i.k-pi { border-top: 2px dashed var(--gold); }

/* ---------- Kings tab ---------- */
.k-banner { display: flex; align-items: center; gap: 20px; padding: 22px; border-radius: 22px; color: #f4efff;
  background: linear-gradient(120deg, #5a2d81, #2b1540 70%); border: 1px solid rgba(180, 140, 255, 0.3); box-shadow: 0 20px 50px rgba(40, 10, 70, 0.4); }
.k-banner > img { width: 110px; height: 110px; filter: drop-shadow(0 0 26px rgba(200, 170, 255, 0.6)); }
.k-banner h2 { margin: 0; font: 800 40px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.k-banner p { margin: 6px 0 10px; color: #d8c8f2; }
.k-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.k-stats span { display: grid; padding: 6px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); font-size: 11px; letter-spacing: 0.1em; color: #cbbde0; text-align: center; }
.k-stats b { font: 700 20px var(--display); color: #fff; letter-spacing: 0.02em; }
.k-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-top: 14px; }
.lead-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lead { display: grid; justify-items: center; text-align: center; padding: 10px 6px; border-radius: 14px; background: var(--chip); transition: transform 0.2s; }
.lead:hover { transform: translateY(-3px); }
.lead img { width: 72px; height: 54px; object-fit: cover; object-position: top; border-radius: 10px; }
.lead small { font: 600 11px var(--body); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; }
.lead b { font: 800 30px/1 var(--display); color: var(--beam); }
:root[data-theme="light"] .lead b { color: var(--purple); }
.lead span { font-size: 12px; font-weight: 600; }
.inj { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.inj:first-of-type { border-top: 0; }
.inj img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--chip); }
.inj p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.inj small { display: block; }
.inj-st { display: inline-block; font: 700 11px var(--display); letter-spacing: 0.08em; padding: 1px 7px; border-radius: 99px; text-transform: uppercase; }
.inj-st.out { background: rgba(255, 93, 108, 0.2); color: var(--loss); }
.inj-st.dtd { background: rgba(255, 204, 77, 0.2); color: var(--gold); }

.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pcard { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 14px 10px 12px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(90, 45, 129, 0.35), var(--panel) 65%); border: 1px solid var(--line); transition: transform 0.2s, border-color 0.2s; }
.pcard:hover { transform: translateY(-4px) rotate(-0.4deg); border-color: rgba(180, 140, 255, 0.5); }
.pc-num { position: absolute; top: -8px; right: 6px; z-index: -1; font: 800 86px/1 var(--display); color: rgba(180, 140, 255, 0.14); }
.pcard img { width: 120px; height: 88px; object-fit: cover; object-position: top; transition: transform 0.3s; }
.pcard:hover img { transform: scale(1.06); }
.pcard b { font: 700 18px/1.1 var(--display); letter-spacing: 0.03em; margin-top: 4px; }
.pcard small { font-size: 11px; }
.pc-line { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pc-line b { font: 700 15px var(--display); color: var(--text); }

.sched { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-behavior: smooth; }
.sc-chip { display: grid; justify-items: center; gap: 2px; width: 92px; padding: 8px 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-bottom: 3px solid var(--tc); transition: transform 0.2s; }
.sc-chip:hover { transform: translateY(-2px); }
.sc-chip img { width: 30px; height: 30px; }
.sc-chip span { font: 600 13px var(--display); letter-spacing: 0.04em; }
.sc-chip b { font: 700 12px var(--display); letter-spacing: 0.04em; }
.sc-chip b.w { color: var(--win); }
.sc-chip b.l { color: var(--loss); }
.sc-chip b.live { color: var(--live); }
.sc-chip.post:not(.win) { opacity: 0.75; }
.sc-chip.next { border-color: rgba(180, 140, 255, 0.7); box-shadow: 0 0 18px rgba(160, 110, 255, 0.4); background: linear-gradient(180deg, rgba(123, 75, 176, 0.35), var(--panel)); }
.sc-chip.next::before { content: "NEXT"; font: 800 10px var(--display); letter-spacing: 0.14em; color: var(--beam); }

/* ---------- watchlist ---------- */
.watch { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.wcard { position: relative; display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; isolation: isolate; transition: transform 0.2s, border-color 0.2s; }
.wcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 90px; z-index: -1; background: linear-gradient(135deg, color-mix(in srgb, var(--tc, #5a2d81) 55%, transparent), transparent); }
.wcard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.wcard.loading { min-height: 200px; }
.wc-head { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: end; }
.wc-head > img { width: 96px; height: 70px; object-fit: cover; object-position: top; }
.wc-head b { font: 800 22px/1 var(--display); letter-spacing: 0.02em; display: block; }
.wc-head small { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.wc-head em { font-size: 12px; color: var(--muted); }
.wc-tonight { position: absolute; top: 10px; right: 10px; font: 700 11px var(--display); letter-spacing: 0.08em; padding: 3px 9px; border-radius: 99px; background: var(--chip); text-transform: uppercase; }
.wc-tonight.in { background: var(--live); color: #fff; animation: pulse 1.6s infinite; }
.wc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wc-stats span { display: grid; justify-items: center; padding: 6px 2px; border-radius: 10px; background: var(--chip); }
.wc-stats b { font: 800 22px/1 var(--display); }
.wc-stats i { font: 600 10px var(--body); font-style: normal; letter-spacing: 0.1em; color: var(--muted); margin-top: 3px; }
.wc-ranks { display: flex; gap: 6px; flex-wrap: wrap; }
.wc-ranks span { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 204, 77, 0.12); color: var(--gold); }
.wc-ranks span i { font-style: normal; opacity: 0.8; }
:root[data-theme="light"] .wc-ranks span { color: #8a5d00; }
.wc-recent { display: flex; gap: 6px; }
.wc-recent span { flex: 1; display: grid; justify-items: center; font-size: 11px; color: var(--muted); padding: 4px; border-radius: 8px; border: 1px solid var(--line); }
.wc-recent span b { font: 700 18px/1 var(--display); color: var(--text); }
.wc-recent span.w { border-color: color-mix(in srgb, var(--win) 40%, transparent); }
.wc-recent span.l { border-color: color-mix(in srgb, var(--loss) 35%, transparent); }
.wc-news { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- news ---------- */
.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line); font-weight: 600; font-size: 13px; transition: 0.2s; }
.chip-btn img { width: 20px; height: 20px; border-radius: 50%; }
.chip-btn:hover { border-color: var(--line-2); }
.chip-btn.on { background: var(--purple); color: #fff; border-color: transparent; }
.chip-btn.bad { opacity: 0.5; }
.chips .muted { margin-left: auto; }
.chip { font: 700 10px var(--display); letter-spacing: 0.1em; padding: 2px 7px; border-radius: 4px; background: var(--chip); text-transform: uppercase; }
.chip.kings { background: var(--purple); color: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ncard { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s; }
.ncard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.ncard.kings { border-color: rgba(180, 140, 255, 0.45); }
.nc-img { aspect-ratio: 16 / 9; background: center / cover no-repeat var(--panel-2); transition: transform 0.4s; }
.nc-img.none { display: grid; place-items: center; font-size: 40px; }
.ncard:hover .nc-img { transform: scale(1.03); }
.nc-body { padding: 12px 14px 14px; display: grid; gap: 6px; align-content: start; }
.nc-meta { display: flex; align-items: center; gap: 6px; }
.nc-body b { font: 700 19px/1.15 var(--display); letter-spacing: 0.02em; }
.nc-body p { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard.big { grid-column: span 2; grid-template-columns: 1.3fr 1fr; grid-template-rows: none; }
.ncard.big .nc-img { aspect-ratio: auto; min-height: 240px; }
.ncard.big .nc-body b { font-size: 28px; }

/* ---------- content ---------- */
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ytcard { display: grid; gap: 8px; border-radius: var(--radius); padding: 0 0 10px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s; }
.ytcard:hover { transform: translateY(-3px); }
.yt-thumb { position: relative; aspect-ratio: 16 / 9; background: center / cover no-repeat #000; }
.yt-dur { position: absolute; right: 8px; bottom: 8px; font: 600 11px var(--body); background: rgba(0, 0, 0, 0.8); color: #fff; padding: 1px 6px; border-radius: 4px; }
.yt-dur.short { left: 8px; right: auto; background: #ff0033; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(90, 45, 129, 0.85); color: #fff; font-size: 20px; opacity: 0; transform: scale(0.8); transition: 0.2s; }
.ytcard:hover .yt-play { opacity: 1; transform: none; }
.yt-body { display: flex; gap: 10px; padding: 0 12px; }
.yt-body img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.yt-body b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; line-height: 1.3; }
.yt-body small { font-size: 12px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.switch input { display: none; }
.switch span { width: 34px; height: 20px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line-2); position: relative; transition: 0.2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: 0.2s; }
.switch input:checked + span { background: var(--purple); }
.switch input:checked + span::after { left: 16px; background: #fff; }
.yt-player { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 12px; }
.yt-player.short { aspect-ratio: 9 / 16; max-height: 75vh; margin: 0 auto 12px; }
.yt-player iframe { width: 100%; height: 100%; border: 0; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(5, 2, 10, 0.7); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.18s; }
.modal-card { position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 22px; padding: 20px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); transform: translateY(20px) scale(0.98); opacity: 0; transition: 0.18s; }
.modal.show .modal-back { opacity: 1; }
.modal.show .modal-card { transform: none; opacity: 1; }
.modal-x { position: sticky; top: 0; float: right; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: var(--chip); font-size: 22px; line-height: 1; display: grid; place-items: center; margin: -6px -6px 0 0; }
.modal-x:hover { background: var(--purple); color: #fff; }

.gm-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ac) 45%, transparent), transparent 45%, transparent 55%, color-mix(in srgb, var(--hc) 45%, transparent)), var(--panel-2); }
.gm-side { display: flex; align-items: center; gap: 10px; }
.gm-side:last-child { flex-direction: row-reverse; text-align: right; }
.gm-side img { width: 64px; height: 64px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)); }
.gm-side b { font: 800 22px/1 var(--display); letter-spacing: 0.02em; display: block; }
.gm-score { font: 800 54px/1 var(--display); margin: 0 6px; font-variant-numeric: tabular-nums; }
.gm-side:first-child .gm-score { margin-left: auto; }
.gm-side:last-child .gm-score { margin-right: auto; }
.gm-side.lost { opacity: 0.6; }
.gm-mid { text-align: center; display: grid; gap: 4px; justify-items: center; }
.gm-status { font: 700 18px var(--display); letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.gm-tabs { display: flex; gap: 4px; margin: 14px 0; align-items: center; overflow-x: auto; scrollbar-width: none; }
.gm-tabs button { white-space: nowrap; }
.gm-tabs button { padding: 7px 14px; border-radius: 99px; font: 700 14px var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.gm-tabs button.on { background: var(--purple); color: #fff; }
.gm-auto { white-space: nowrap; margin-left: auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.gm-auto::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--win); animation: pulse 1.2s infinite; }
.gm-over { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gm-over > .panel { box-shadow: none; }
.gm-over > .gm-video, .gm-over > .wp, .gm-over > .gm-info, .gm-over > .panel:first-child:has(.linescore) { grid-column: 1 / -1; }
.gm-video { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.gm-video video { width: 100%; max-height: 420px; display: block; }
.gm-vcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent); color: #fff; font: 700 17px var(--display); letter-spacing: 0.03em; pointer-events: none; transition: opacity 0.3s; }
.gm-video.playing .gm-vcap { opacity: 0; }
.linescore img { display: inline-block; width: 22px; height: 22px; vertical-align: -6px; margin-right: 6px; }
.linescore .tot { font: 800 20px var(--display); }
.linescore tr.mine td { color: var(--beam); }
.wp-svg { width: 100%; height: 150px; display: block; border-radius: 10px; background: var(--chip); }
.wp-line { fill: none; stroke: var(--text); stroke-width: 2; vector-effect: non-scaling-stroke; }
.wp-mid { stroke: var(--line-2); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.wp-div { stroke: var(--line); vector-effect: non-scaling-stroke; }
.wp-q { fill: var(--muted); font: 600 10px var(--body); }
.wp-legend { display: flex; gap: 16px; font-size: 12px; margin-top: 6px; }
.wp-legend span { color: var(--tc); font-weight: 700; filter: brightness(1.4); }
.gl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gl-col h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; font: 700 15px var(--display); letter-spacing: 0.1em; }
.gl-col h4 img { width: 22px; height: 22px; }
.gl { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px; border-radius: 10px; border-left: 3px solid var(--tc); background: var(--chip); margin-bottom: 6px; }
.gl:hover { background: var(--line-2); }
.gl img { width: 44px; height: 33px; object-fit: cover; object-position: top; }
.gl small { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.gl b { display: block; font-size: 13px; }
.gl span { font-size: 12px; color: var(--muted); }
.cmp { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; gap: 8px; padding: 4px 0; }
.cmp > b { font: 700 16px var(--display); text-align: center; color: var(--muted); }
.cmp > b.lead { color: var(--text); }
.cmp-mid small { display: block; text-align: center; font-size: 11px; letter-spacing: 0.06em; }
.cmp-bar { display: flex; gap: 2px; height: 6px; }
.cmp-bar i { border-radius: 99px; }
.cmp-bar .a { background: var(--ac); filter: brightness(1.2); }
.cmp-bar .h { background: var(--hc); filter: brightness(1.2); }
.odds { display: flex; gap: 8px; flex-wrap: wrap; }
.odds span { padding: 6px 10px; border-radius: 10px; background: var(--chip); font-size: 13px; }
.gi-team { padding: 4px 0; font-size: 13px; }
.gm-info { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.recap { text-decoration: none; }
.recap b { font: 700 20px var(--display); }
.recap p { color: var(--muted); margin: 4px 0 0; }
.box-panel { margin-bottom: 12px; box-shadow: none; border-top: 3px solid var(--tc); }
.box td.tl { min-width: 150px; }
.box .link-plain { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.box .link-plain:hover { color: var(--beam); }
.box .link-plain img { width: 28px; height: 21px; object-fit: cover; object-position: top; }
.box td.pts { font-weight: 700; }
.box td.hot { color: var(--gold); }
.box tr.dnp td { color: var(--faint); font-size: 12px; }
.box tr.bench-sep td { text-align: left; font: 700 11px var(--display); letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; background: var(--chip); padding: 4px 8px; }
.box tr.totals td { font-weight: 700; border-top: 2px solid var(--line-2); }
.box tr.click { cursor: pointer; }
.box tr.click:hover { background: var(--chip); }
.plays { list-style: none; margin: 0; padding: 0; }
.plays li { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-left: 3px solid transparent; border-top: 1px solid var(--line); font-size: 13px; }
.plays li.score { border-left-color: var(--tc); background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 14%, transparent), transparent 60%); font-weight: 600; }
.pl-t { font: 13px var(--mono); color: var(--muted); }
.pl-x { display: flex; align-items: center; gap: 6px; }
.pl-x img { width: 18px; height: 18px; flex: none; }
.pl-s { font: 700 14px var(--display); white-space: nowrap; }
.pl-s em { font-style: normal; color: var(--gold); margin-left: 4px; }
.pl-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; }

.pm-head { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: end; padding: 16px 16px 0; border-radius: 16px; margin-bottom: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 50%, transparent), var(--panel-2)); }
.pm-shot { width: 200px; height: 146px; object-fit: cover; object-position: top; }
.pm-head h2 { margin: 2px 0 4px; font: 800 38px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.pm-head p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.pm-head .wc-ranks { margin-bottom: 14px; }
.pm .panel-title { margin-top: 16px; }
.pm-news { display: grid; gap: 6px; margin-bottom: 14px; }
.pm-news a { text-decoration: none; padding: 8px 10px; border-radius: 10px; background: var(--chip); font-weight: 600; }
.pm-news a:hover { color: var(--beam); }

/* ---------- beam + fx ---------- */
.beam-stage { position: fixed; inset: 0; z-index: 70; pointer-events: none; display: none; }
.beam-stage.go { display: block; }
.beam-core, .beam-glow { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) scaleY(0); transform-origin: bottom; }
.beam-core { width: 46px; height: 110vh; background: linear-gradient(0deg, #fff, #e6d8ff 30%, rgba(200, 170, 255, 0.6) 70%, rgba(180, 140, 255, 0)); filter: blur(3px); }
.beam-glow { width: 260px; height: 110vh; background: radial-gradient(50% 100% at 50% 100%, rgba(160, 110, 255, 0.7), transparent 70%); filter: blur(24px); }
.beam-stage.go .beam-core, .beam-stage.go .beam-glow { animation: beamup 4.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.beam-stage.go::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 100%, rgba(90, 45, 129, 0.55), transparent); animation: beamfade 4.2s ease forwards; }
.beam-text { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(0.6); font: 800 clamp(40px, 9vw, 120px)/1 var(--display); letter-spacing: 0.08em; color: #fff; white-space: nowrap; opacity: 0;
  text-shadow: 0 0 20px #b48cff, 0 0 60px #7b4bb0, 0 0 100px #5a2d81; }
.beam-stage.go .beam-text { animation: beamtext 4.2s ease forwards; }
@keyframes beamup { 0% { transform: translateX(-50%) scaleY(0); opacity: 1; } 18% { transform: translateX(-50%) scaleY(1); } 75% { opacity: 1; } 100% { transform: translateX(-50%) scaleY(1); opacity: 0; } }
@keyframes beamfade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes beamtext { 0%, 12% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1.02); } }
#fxCanvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 71; pointer-events: none; display: none; }
#fxCanvas.on { display: block; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 30px); opacity: 0; padding: 12px 20px; border-radius: 99px; background: linear-gradient(135deg, var(--purple-2), var(--purple)); color: #fff; font: 700 16px var(--display); letter-spacing: 0.06em; box-shadow: 0 10px 30px rgba(90, 45, 129, 0.6); transition: 0.3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

:root[data-fx="off"] *, :root[data-fx="off"] *::before, :root[data-fx="off"] *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition: none !important; }
:root[data-fx="off"] .ticker-track { animation: tick var(--tk-dur, 60s) linear infinite !important; }
@media (prefers-reduced-motion: reduce) { .spot, .hn-logo, .g-crown { animation: none; } }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 20px max(16px, calc((100vw - 1400px) / 2)) 30px; color: var(--faint); font-size: 12px; border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .stand-grid, .tonight-lower, .k-grid { grid-template-columns: 1fr; }
  .gm-over { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 13px; }
  .top { gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .brand-text small, .clock { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text b { font-size: 20px; }
  .top-mid { justify-content: flex-end; }
  .rec-pill { font-size: 13px; }
  .rec-pill em { display: none; }
  .top-tools { gap: 4px; }
  .tool { width: 32px; height: 32px; }
  .tabs button { padding: 8px 12px; font-size: 15px; }
  .hero { padding: 16px; }
  .hn-logo { width: 72px; height: 72px; }
  .hn-match { gap: 14px; }
  .shotclock span { min-width: 50px; }
  .shotclock b { font-size: 26px; }
  .hl-score { font-size: 46px; }
  .hl-side img { width: 54px; height: 54px; }
  .games { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .ncard.big { grid-column: auto; grid-template-columns: none; grid-template-rows: auto 1fr; }
  .ncard.big .nc-img { min-height: 0; aspect-ratio: 16 / 9; }
  .ncard.big .nc-body b { font-size: 21px; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .lead-grid { grid-template-columns: repeat(2, 1fr); }
  .k-banner { flex-direction: column; text-align: center; }
  .k-banner > img { width: 80px; height: 80px; }
  .k-banner h2 { font-size: 30px; }
  .k-stats { justify-content: center; }
  .modal { padding: 0; align-items: end; }
  .modal-card { max-height: 92vh; border-radius: 22px 22px 0 0; padding: 14px; }
  .gm-head { grid-template-columns: 1fr; gap: 6px; }
  .gm-side, .gm-side:last-child { flex-direction: row; text-align: left; }
  .gm-side .gm-score, .gm-side:last-child .gm-score { margin: 0 0 0 auto; font-size: 40px; }
  .gm-mid { order: -1; }
  .gm-side img { width: 44px; height: 44px; }
  .gl-grid { grid-template-columns: 1fr; }
  .pm-head { grid-template-columns: 1fr; }
  .pm-shot { width: 160px; height: 117px; }
  .plays li { grid-template-columns: 58px 1fr auto; }
  .chips .muted { margin-left: 0; width: 100%; }
  .wc-head { grid-template-columns: 80px 1fr; }
  .wc-head > img { width: 80px; height: 58px; }
}

/* ---------- Prime Video ---------- */
:root { --prime: #1a98ff; }
.prime { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 6px; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #0f79d0, #1a98ff); color: #fff; font: 700 12px/1 var(--body); letter-spacing: 0.01em; text-transform: lowercase;
  box-shadow: 0 2px 10px rgba(26, 152, 255, 0.35); transition: transform 0.15s, box-shadow 0.15s; }
.prime svg { width: 12px; height: 12px; fill: #fff; }
.prime:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26, 152, 255, 0.6); }
.prime.sm { font-size: 11px; padding: 2px 7px 2px 5px; }
.prime.sm svg { width: 10px; height: 10px; }
.game.on-prime { border-color: rgba(26, 152, 255, 0.55); }
.game.on-prime::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--prime), transparent); }
.game.kings.on-prime { border-color: rgba(180, 140, 255, 0.55); }
.hn-prime { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #d6eaff; }
.scores-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 100%; }
.prime-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; font: 700 13px var(--body); color: var(--prime); background: rgba(26, 152, 255, 0.1); border: 1px solid rgba(26, 152, 255, 0.4); white-space: nowrap; }
.prime-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.prime-toggle.on { background: var(--prime); color: #fff; }
.sc-prime { font: 700 9px var(--body); font-style: normal; color: #fff; background: var(--prime); border-radius: 4px; padding: 1px 5px; text-transform: lowercase; }
.gm-mid .prime { margin-top: 2px; }
.prime-panel .panel-title { flex-wrap: wrap; }
.prime-panel .panel-title small { margin-left: auto; }
.pn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pn { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--chip); border: 1px solid var(--line); border-left: 3px solid var(--prime); transition: transform 0.2s, border-color 0.2s; }
.pn:hover { transform: translateY(-2px); border-color: rgba(26, 152, 255, 0.5); }
.pn.kings { border-left-color: var(--beam); background: linear-gradient(90deg, rgba(123, 75, 176, 0.25), var(--chip)); }
.pn-when { display: flex; align-items: baseline; gap: 6px; font: 600 15px var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.pn-when small { margin-left: auto; font: 500 12px var(--body); text-transform: none; letter-spacing: 0; }
.pn-teams { display: flex; align-items: center; gap: 5px; font: 700 17px var(--display); letter-spacing: 0.04em; }
.pn-teams img { width: 22px; height: 22px; }
.pn-teams i { font-style: normal; color: var(--muted); font-size: 13px; margin: 0 2px; }
@media (max-width: 640px) { .scores-tools { width: 100%; } }

/* ---------- Kings brand kit ---------- */
.hr-wordmark { display: block; height: 30px; width: auto; margin-bottom: 4px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35)); }
.kb-wordmark { display: block; height: 64px; width: auto; max-width: 100%; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.4)); }
.k-banner h2 { line-height: 0; margin-bottom: 4px; }
.k-banner { background: linear-gradient(120deg, #5b2b82 0%, #3a1a57 55%, #111 100%); position: relative; overflow: hidden; isolation: isolate; }
.k-banner::after { content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 179, 179, 0.18), transparent 65%); }
.hero { background: linear-gradient(135deg, rgba(91, 43, 130, 0.92), rgba(26, 14, 38, 0.96) 60%, rgba(10, 10, 10, 0.98)), #1c1029; }
.hero .form small, .hr-team small { color: var(--kgray); }
.beam-text { font-weight: 900; letter-spacing: 0.04em; }
.brand-text b { font-weight: 800; letter-spacing: 0.04em; }
.foot span:first-child { width: 100%; }
@media (max-width: 640px) { .kb-wordmark { height: 44px; margin: 0 auto; } .hr-wordmark { height: 24px; } }

/* ---------- Beam Log ---------- */
.bl-hero { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 26px 28px; border-radius: 22px; overflow: hidden; isolation: isolate; color: #f4efff;
  background: radial-gradient(60% 140% at 8% 100%, rgba(180, 140, 255, 0.35), transparent 60%), linear-gradient(120deg, #3a1a57, #12091c 70%, #000); border: 1px solid rgba(180, 140, 255, 0.35); margin-bottom: 14px; }
.bl-hero small { color: #cbbde0; }
.bl-shaft { position: absolute; left: 92px; bottom: 0; width: 40px; height: 160%; z-index: -1; background: linear-gradient(0deg, #fff, #c7a6ff 25%, rgba(180, 140, 255, 0)); filter: blur(8px); opacity: 0.75; animation: beamsway 6s ease-in-out infinite alternate; }
.bl-hero.unlit .bl-shaft { opacity: 0.12; }
.bl-count { display: grid; justify-items: start; }
.bl-count small { font: 700 13px var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
.bl-count b { font: 900 120px/0.9 var(--display); text-shadow: 0 0 30px rgba(200, 170, 255, 0.8); }
.bl-count span { font: 600 15px var(--display); letter-spacing: 0.08em; color: #d8c8f2; }
.bl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bl-stats div { padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.07); }
.bl-stats small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.bl-stats b { font: 700 19px var(--display); letter-spacing: 0.02em; }
.sky { display: flex; align-items: flex-end; gap: 2px; height: 170px; padding: 0 2px; border-bottom: 1px solid var(--line-2); }
.sky i { flex: 1 1 0; min-width: 2px; max-width: 28px; height: var(--h); border-radius: 3px 3px 0 0; transform-origin: bottom; animation: skyrise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: var(--d); }
.sky i.lit { background: linear-gradient(0deg, #7b4bb0, #c7a6ff 70%, #fff); box-shadow: 0 0 10px rgba(180, 140, 255, 0.55); cursor: pointer; }
.sky i.lit:hover { filter: brightness(1.3); }
.sky i.dark { background: var(--line-2); cursor: pointer; }
.sky i.fut { background: transparent; border: 1px dashed var(--line-2); border-bottom: 0; }
@keyframes skyrise { from { transform: scaleY(0); } }
.bl-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 14px; }
.bcal { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.bcal-m b { display: block; font: 700 14px var(--display); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; color: var(--muted); }
.bcal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.bcal-g span { aspect-ratio: 1; display: grid; place-items: center; font-size: 10px; color: var(--faint); border-radius: 5px; }
.bcal-g span.lit { background: linear-gradient(135deg, #9b6bd6, #5b2b82); color: #fff; font-weight: 700; box-shadow: 0 0 10px rgba(160, 110, 255, 0.5); cursor: pointer; }
.bcal-g span.dark { background: var(--line-2); color: var(--muted); cursor: pointer; }
.bcal-g span.gd { border: 1px solid rgba(180, 140, 255, 0.45); color: var(--text); }
.bcal-key { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.bcal-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.bcal-key i.lit { background: #7b4bb0; } .bcal-key i.dark { background: var(--line-2); } .bcal-key i.gd { border: 1px solid rgba(180, 140, 255, 0.6); }
.bl-total { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.bl-total b { font: 900 56px/1 var(--display); color: var(--beam); text-shadow: 0 0 20px rgba(180, 140, 255, 0.5); }
:root[data-theme="light"] .bl-total b { color: var(--purple); }
.bl-total span { font: 700 16px var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bl-seasons { display: grid; gap: 10px; }
.bls { display: grid; grid-template-columns: 62px 1fr 34px; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.bls > span { font: 700 14px var(--display); letter-spacing: 0.04em; }
.bls-bar { height: 12px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.bls-bar i { display: block; height: 100%; background: linear-gradient(90deg, #5b2b82, #b48cff); border-radius: 99px; }
.bls.cur .bls-bar i { box-shadow: 0 0 12px #b48cff; }
.bls > b { font: 800 20px var(--display); text-align: right; }
.bls > small { grid-column: 2 / 4; font-size: 11px; }
.bl-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.blr { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #9b6bd6; transition: transform 0.2s; }
.blr:hover { transform: translateY(-2px); }
.blr img { width: 40px; height: 40px; }
.blr small { display: block; font-size: 11px; }
.blr b { display: block; font: 700 18px var(--display); letter-spacing: 0.03em; }
.blr span { font: 700 14px var(--display); color: var(--win); }

/* ---------- Ex-Kings ---------- */
.fk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.fk { position: relative; display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; isolation: isolate; transition: transform 0.2s, border-color 0.2s; }
.fk::before { content: ""; position: absolute; inset: 0 0 auto; height: 96px; z-index: -1; background: linear-gradient(110deg, rgba(91, 43, 130, 0.55), color-mix(in srgb, var(--tc) 45%, transparent) 70%); }
.fk:hover { transform: translateY(-3px); border-color: var(--line-2); }
.fk.vs-kings { border-color: rgba(180, 140, 255, 0.6); box-shadow: 0 0 0 1px rgba(180, 140, 255, 0.3), 0 10px 30px rgba(90, 45, 129, 0.4); }
.fk-head { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: end; }
.fk-head .wc-tonight { position: static; display: inline-block; margin-bottom: 4px; }
.fk-shot { width: 96px; height: 70px; object-fit: cover; object-position: top; }
.fk-head b { display: block; font: 800 22px/1 var(--display); letter-spacing: 0.02em; }
.fk-path { display: flex; align-items: center; gap: 4px; margin: 5px 0 2px; font-weight: 600; color: var(--text); }
.fk-path img { width: 18px; height: 18px; }
.fk-path span { color: var(--muted); margin: 0 2px; }
.fk-head em { font-size: 12px; color: var(--muted); }
.fk-last small { display: block; margin-bottom: 4px; }
.fk-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fk-line span { display: grid; justify-items: center; padding: 6px 2px; border-radius: 10px; background: var(--chip); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }
.fk-line b { font: 800 22px/1 var(--display); color: var(--text); }
.fk-season { font-size: 12px; color: var(--muted); }
.fk-season b { color: var(--text); }
.fk-season i { font-style: normal; }
.fk-next { font-size: 12px; padding: 7px 10px; border-radius: 10px; background: var(--chip); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.fk-next.kings { background: linear-gradient(90deg, rgba(123, 75, 176, 0.45), rgba(123, 75, 176, 0.1)); color: var(--text); font-weight: 600; }
.fk-body { min-height: 60px; display: grid; gap: 8px; }

/* ---------- TV mode ---------- */
#tv { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; color: #f4efff; overflow: hidden;
  background: radial-gradient(90% 70% at 50% -10%, rgba(91, 43, 130, 0.7), transparent 60%), linear-gradient(180deg, #120a1c, #050308); font-size: clamp(14px, 1.15vw, 26px); }
#tv[hidden] { display: none; }
body.tv-on { overflow: hidden; }
body.tv-idle, body.tv-idle * { cursor: none !important; }
body.tv-idle .tv-btn { opacity: 0; }
.tv-top { display: flex; align-items: center; justify-content: space-between; padding: 1.1vh 2vw; }
.tv-brand { display: flex; align-items: center; gap: 0.6em; font: 800 1.5em var(--display); letter-spacing: 0.08em; }
.tv-brand .brand-mark { width: 1.8em; height: 1.8em; }
.tv-brand .brand-mark svg { width: 1.2em; }
.tv-dots { display: flex; gap: 0.5em; }
.tv-dots i { width: 0.6em; height: 0.6em; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.tv-dots i.on { background: #b48cff; box-shadow: 0 0 10px #b48cff; }
.tv-livetag { font: 800 1.2em var(--display); letter-spacing: 0.14em; color: #ff8a96; display: flex; align-items: center; gap: 0.5em; }
.tv-right { display: flex; align-items: center; gap: 0.6em; }
.tv-clock { font: 1.6em var(--mono); color: #cbbde0; margin-right: 0.4em; }
.tv-btn { color: #fff; transition: opacity 0.3s; font-size: 18px; }
.tv-prog { height: 3px; background: rgba(255, 255, 255, 0.06); }
.tv-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5b2b82, #b48cff); transition: width 1s linear; }
.tv-body { flex: 1; min-height: 0; padding: 2.5vh 3vw 3vh; display: flex; flex-direction: column; animation: rise 0.6s ease; }
.tv-h { margin: 0 0 1.6vh; font: 800 2.6em var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.tv-empty { margin: auto; font: 700 2em var(--display); color: #a99fbb; }
.tv-panel { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 1.4em; min-height: 0; overflow: hidden; }
.tv-panel h3 { margin: 0 0 0.6em; font: 700 1.3em var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: #cbbde0; }
#tv .prime { font-size: 0.8em; }
.tv-prompt { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(5, 2, 10, 0.75); backdrop-filter: blur(6px); }
.tv-prompt .btn { font-size: 28px; padding: 18px 34px; }
/* live */
.tvl { display: flex; flex-direction: column; height: 100%; gap: 1.6vh; }
.tvl-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2vw; }
.tvl-side { display: grid; justify-items: center; gap: 0.2em; }
.tvl-side img { width: 9vw; max-width: 180px; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--tc) 70%, transparent)); }
.tvl-side b { font: 800 2.2em var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.tvl-side small { color: #a99fbb; }
.tvl-score { font: 900 9em/0.9 var(--display); text-shadow: 0 0 30px rgba(255, 255, 255, 0.25); font-variant-numeric: tabular-nums; }
.tvl-side.me .tvl-score { color: #e3d3ff; text-shadow: 0 0 40px rgba(180, 140, 255, 0.6); }
.tvl-mid { display: grid; justify-items: center; gap: 0.4em; }
.tvl-clock { font: 5em/1 var(--mono); color: #ff3b4e; text-shadow: 0 0 18px rgba(255, 50, 70, 0.8); }
.tvl-q { font: 800 2em var(--display); letter-spacing: 0.2em; color: #d8c8f2; }
.tvl-lead { text-align: center; font: 800 2em var(--display); letter-spacing: 0.06em; }
.tvl-lead.up { color: #9cffc4; } .tvl-lead.down { color: #ffb3ba; }
.wp-meter.tv { height: 1.2vh; margin: 0 10vw; }
.tvl-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5vw; }
.tvl-grid .plays li { font-size: 1em; padding: 0.5em; border-color: rgba(255, 255, 255, 0.06); }
.tvl-grid .pl-x img { width: 1.4em; height: 1.4em; }
.tvl-leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.tvl-leaders h4 { margin: 0 0 0.4em; display: flex; align-items: center; gap: 0.4em; font: 700 1.2em var(--display); letter-spacing: 0.1em; }
.tvl-leaders h4 img { width: 1.5em; }
.tvl-ld { display: grid; grid-template-columns: 3.2em 1fr auto; align-items: center; gap: 0.5em; padding: 0.35em 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.tvl-ld img { width: 3.2em; height: 2.4em; object-fit: cover; object-position: top; }
.tvl-ld small { display: block; font-size: 0.7em; letter-spacing: 0.1em; text-transform: uppercase; color: #a99fbb; }
.tvl-ld b { font-size: 0.95em; }
.tvl-ld em { font: 800 1.5em var(--display); font-style: normal; color: #e3d3ff; }
/* kings next */
.tvk { margin: auto; display: grid; justify-items: center; text-align: center; gap: 1.6vh; }
.tvk-mark { height: 9vh; width: auto; filter: drop-shadow(0 0 30px rgba(180, 140, 255, 0.5)); }
.tvk-kicker { font: 700 1.5em var(--display); letter-spacing: 0.18em; color: #d8c8f2; }
.tvk-match { display: flex; align-items: center; gap: 4vw; }
.tvk-match img { width: 13vw; max-width: 240px; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(180, 140, 255, 0.5)); }
.tvk-match span { font: 900 4em var(--display); color: rgba(255, 255, 255, 0.5); }
.tvk-opp { font: 800 2.4em var(--display); letter-spacing: 0.04em; }
.tvk-opp small { font: 500 0.5em var(--body); color: #a99fbb; }
.shotclock.tv span { min-width: 6.5vw; padding: 1vh 1vw; }
.shotclock.tv b { font-size: 4.5em; }
.shotclock.tv i { font-size: 0.7em; }
.tvk-tv { font-size: 1.3em; color: #d6cae8; display: flex; align-items: center; gap: 0.6em; }
.tvk-foot { display: flex; gap: 2.5vw; font: 600 1.4em var(--display); letter-spacing: 0.08em; color: #cbbde0; margin-top: 1vh; }
.tvk-foot b { color: #fff; font-weight: 800; }
/* scores */
.tvs { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16vw, 1fr)); grid-auto-rows: minmax(12vh, 25vh); align-content: center; gap: 1.2vw; }
.tvs-g { position: relative; display: grid; align-content: center; gap: 0.3em; padding: 1em 1.2em; border-radius: 18px; background: linear-gradient(90deg, color-mix(in srgb, var(--ac) 22%, transparent), transparent 45%, transparent 55%, color-mix(in srgb, var(--hc) 22%, transparent)), rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.tvs-g.in { border-color: rgba(255, 59, 78, 0.5); }
.tvs-g.kings { border-color: rgba(180, 140, 255, 0.7); box-shadow: 0 0 30px rgba(123, 75, 176, 0.4); }
.tvs-st { display: flex; align-items: center; gap: 0.5em; font: 700 1.1em var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #d8c8f2; }
.tvs-row { display: grid; grid-template-columns: 2.6em 1fr auto; align-items: center; gap: 0.6em; }
.tvs-row img { width: 2.6em; height: 2.6em; }
.tvs-row b { font: 800 1.8em var(--display); letter-spacing: 0.04em; }
.tvs-row span { font: 900 2.4em var(--display); font-variant-numeric: tabular-nums; }
.tvs-row.lost { opacity: 0.5; }
.tvs-row.mine b { color: #d8c0ff; }
/* standings */
.tv-stand { flex: 1; min-height: 0; }
.tv-stand .stand { font-size: 1.15em; }
.tv-stand .stand td { padding: 0.42em 0.6em; border-color: rgba(255, 255, 255, 0.07); }
.tv-stand .stand th { font-size: 0.75em; color: #a99fbb; }
.tv-stand .stand td.team img { width: 1.6em; height: 1.6em; }
/* beam */
.tvb { display: flex; flex-direction: column; gap: 2vh; height: 100%; }
.tvb-top { position: relative; display: flex; align-items: center; gap: 5vw; padding: 2vh 2vw; isolation: isolate; }
.bl-shaft.tv { left: 4vw; width: 3vw; height: 200%; }
.tvb-top small { display: block; font: 700 1.3em var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: #cbbde0; }
.tvb-top b[data-countup] { font: 900 10em/0.9 var(--display); text-shadow: 0 0 40px rgba(200, 170, 255, 0.85); }
.tvb-side { display: grid; gap: 1vh; font: 600 1.6em var(--display); letter-spacing: 0.06em; color: #cbbde0; }
.tvb-side b { color: #fff; }
.tvb .tv-panel { flex: 1; display: flex; }
.tvb .sky { flex: 1; height: auto; gap: 0.25vw; }
/* former */
.tvf { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 17vh; align-content: start; gap: 1.2vw; }
.tvf-p { display: flex; align-items: center; gap: 1em; padding: 1em; border-radius: 18px; background: linear-gradient(110deg, rgba(91, 43, 130, 0.45), color-mix(in srgb, var(--tc) 30%, transparent)); border: 1px solid rgba(255, 255, 255, 0.08); }
.tvf-shot { width: 6em; height: 4.4em; object-fit: cover; object-position: top; }
.tvf-p b { display: block; font: 800 1.5em/1.05 var(--display); }
.tvf-p small { display: flex; align-items: center; gap: 0.3em; color: #cbbde0; margin-top: 0.3em; }
.tvf-p small img { width: 1.3em; height: 1.3em; }
/* news */
.tvn { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 1.2vw; }
.tvn-i { display: flex; gap: 1em; padding: 1em; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.tvn-i.big { grid-row: span 3; flex-direction: column; }
.tvn-i.kings { border-color: rgba(180, 140, 255, 0.55); }
.tvn-img { flex: 0 0 30%; border-radius: 12px; background: center / cover no-repeat #222; }
.tvn-i.big .tvn-img { flex: 1; }
.tvn-i small { display: block; color: #cbbde0; font-size: 0.85em; margin-bottom: 0.3em; }
.tvn-i b { font: 800 1.6em/1.1 var(--display); }
.tvn-i.big b { font-size: 2.4em; }
@media (max-width: 900px) {
  .bl-hero { grid-template-columns: 1fr; }
  .bl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-grid { grid-template-columns: 1fr; }
  .bl-count b { font-size: 88px; }
  .fk-grid { grid-template-columns: 1fr; }
  #tv { font-size: 13px; }
  .tvf { grid-template-columns: repeat(2, 1fr); }
  .tvl-grid { grid-template-columns: 1fr; }
}

/* ---------- TV v2: home + game focus ---------- */
.tv-hint { font: 600 0.95em var(--body); color: #a99fbb; display: flex; align-items: center; gap: 0.5em; }
.tv-back { width: auto; padding: 0 12px; font: 700 15px var(--display); letter-spacing: 0.06em; }
.tv-back[hidden] { display: none; }
.tvh { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 520px); gap: 1.6vw; }
.tvh-main { display: flex; flex-direction: column; min-height: 0; }
.tvh-main .tv-h { font-size: 2em; margin-bottom: 1.2vh; }
.tvh .tvs { flex: 1; min-height: 0; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 24vh)); grid-auto-rows: unset; align-content: start; gap: 1vw; }
.tvs-g { text-align: left; color: inherit; cursor: pointer; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; outline: none; align-content: center; }
.tvs-g:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.25); }
.tvs-g.sel { border-color: #c7a6ff; box-shadow: 0 0 0 2px rgba(199, 166, 255, 0.6), 0 0 30px rgba(160, 110, 255, 0.35); }
.tvs-g.is-clutch { animation: clutchcard 1.6s ease-in-out infinite alternate; }
.tvs-crown { margin-left: auto; }
.tvs-row small { font: 600 0.45em var(--body); color: #a99fbb; }
.tvs-last { font-size: 0.82em; color: #cbbde0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.2em; }
.tvs-wp { display: flex; height: 4px; border-radius: 99px; background: var(--hc); overflow: hidden; margin-top: 0.4em; }
.tvs-wp i { background: var(--ac); transition: width 1s; }
.tvh-side { display: flex; flex-direction: column; gap: 1.2vw; min-height: 0; }
.tvkp { display: grid; justify-items: center; text-align: center; gap: 0.6em; color: inherit; cursor: pointer; background: linear-gradient(160deg, rgba(91, 43, 130, 0.55), rgba(20, 10, 30, 0.6)); border-color: rgba(180, 140, 255, 0.35); }
.tvkp.live { border-color: rgba(255, 59, 78, 0.6); }
.tvkp.won { box-shadow: 0 0 40px rgba(160, 110, 255, 0.45) inset; }
.tvkp-mark { height: 3.2em; width: auto; }
.tvkp-kick { font: 700 0.95em var(--display); letter-spacing: 0.14em; color: #d8c8f2; display: flex; align-items: center; gap: 0.4em; }
.tvkp-match { display: flex; align-items: center; gap: 1.2em; }
.tvkp-match img { width: 5em; height: 5em; filter: drop-shadow(0 0 16px rgba(180, 140, 255, 0.5)); }
.tvkp-match span { font: 900 1.8em var(--display); color: rgba(255, 255, 255, 0.5); }
.tvkp-opp { font: 800 1.35em var(--display); }
.tvkp-opp small { font: 500 0.6em var(--body); color: #a99fbb; }
.tvkp-score { display: flex; align-items: center; gap: 0.5em; }
.tvkp-score img { width: 3em; height: 3em; }
.tvkp-score b { font: 900 3.4em/1 var(--display); }
.tvkp-score span { font-size: 2em; color: #a99fbb; }
.tvkp-cta, .tvkp-next { font-size: 0.9em; color: #cbbde0; }
.tvkp-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4em 1em; font-size: 0.85em; color: #cbbde0; }
.shotclock.tvsm { gap: 0.4em; margin: 0; }
.shotclock.tvsm span { min-width: 3.4em; padding: 0.35em 0.4em 0.25em; }
.shotclock.tvsm b { font-size: 2.1em; }
.shotclock.tvsm i { font-size: 0.55em; }
.tvh-rot { flex: 1; min-height: 0; overflow: hidden; }
.tvh-rot.swap > * { animation: rise 0.5s ease both; }
.tvside-stand div { display: grid; grid-template-columns: 1.6em 1.7em 1fr auto 2.2em; align-items: center; gap: 0.5em; padding: 0.28em 0.3em; border-radius: 8px; font-size: 0.95em; }
.tvside-stand div.mine { background: linear-gradient(90deg, rgba(123, 75, 176, 0.55), transparent); font-weight: 700; }
.tvside-stand div.cut { border-bottom: 2px solid var(--win); border-radius: 0; }
.tvside-stand i { font-style: normal; color: #a99fbb; text-align: right; }
.tvside-stand img { width: 1.6em; height: 1.6em; }
.tvside-stand b { font: 700 1.1em var(--display); letter-spacing: 0.04em; }
.tvside-stand em { font-style: normal; color: #a99fbb; text-align: right; }
.tvside-beam { position: relative; display: grid; justify-items: center; text-align: center; padding: 0.4em 0 1em; isolation: isolate; }
.bl-shaft.tvx { left: 50%; transform: translateX(-50%); width: 2.4em; height: 150%; bottom: 20%; }
.tvside-beam b { font: 900 5em/0.9 var(--display); text-shadow: 0 0 30px rgba(200, 170, 255, 0.85); }
.tvside-beam span { font: 700 1em var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: #d8c8f2; }
.tvside-beam small { color: #a99fbb; margin-top: 0.3em; }
.tvh-rot .sky { height: 9vh; }
.tvside-fk { display: grid; grid-template-columns: 3.4em 1fr auto; align-items: center; gap: 0.6em; padding: 0.35em 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.tvside-fk > img { width: 3.4em; height: 2.5em; object-fit: cover; object-position: top; }
.tvside-fk b { font: 700 1.05em var(--display); }
.tvside-fk span { display: flex; align-items: center; gap: 0.3em; color: #cbbde0; font-size: 0.9em; }
.tvside-fk span img { width: 1.4em; height: 1.4em; }
.tvside-news .tvn-img { height: 16vh; border-radius: 12px; margin-bottom: 0.6em; }
.tvside-news b { display: block; font: 800 1.35em/1.15 var(--display); }
.tvside-news small { color: #a99fbb; }
/* focus */
.scene-focus { padding-top: 1.6vh; }
.tvg { display: flex; flex-direction: column; gap: 1.2vh; height: 100%; min-height: 0; }
.tvg-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2vw; padding: 1vh 1.5vw; border-radius: 18px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ac) 35%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--hc) 35%, transparent)), rgba(255, 255, 255, 0.03); }
.tvg-side { display: flex; align-items: center; gap: 1em; }
.tvg-side:last-child { flex-direction: row-reverse; text-align: right; }
.tvg-side img { width: 5.2em; height: 5.2em; filter: drop-shadow(0 0 20px color-mix(in srgb, var(--tc) 70%, transparent)); }
.tvg-side b { display: block; font: 800 1.9em/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.tvg-side small { color: #a99fbb; }
.tvg-score { font: 900 6em/0.9 var(--display); margin: 0 0.3em 0 auto; font-variant-numeric: tabular-nums; }
.tvg-side:last-child .tvg-score { margin: 0 auto 0 0.3em; }
.tvg-side.me .tvg-score { color: #e3d3ff; text-shadow: 0 0 30px rgba(180, 140, 255, 0.6); }
.tvg-side.lost { opacity: 0.55; }
.tvg-mid { display: grid; justify-items: center; gap: 0.3em; }
.tvg-mid .tvl-clock { font-size: 3.6em; }
.tvg-mid .tvl-q { font-size: 1.5em; }
.tvg-wp { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1em; font: 700 1em var(--display); letter-spacing: 0.06em; color: #cbbde0; padding: 0 1vw; }
.tvg-wp div { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.tvg-wp .a { background: var(--ac); filter: brightness(1.25); transition: width 1s; }
.tvg-wp .h { background: var(--hc); filter: brightness(1.25); transition: width 1s; }
.tvg-latest { display: flex; align-items: center; gap: 0.8em; padding: 0.8em 1.2em; border-radius: 14px; font: 700 1.5em var(--display); letter-spacing: 0.02em;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 40%, transparent), rgba(255, 255, 255, 0.03)); border-left: 5px solid var(--tc); animation: latestin 0.5s ease; }
.tvg-latest img { width: 1.6em; height: 1.6em; }
.tvg-latest.score { box-shadow: 0 0 26px color-mix(in srgb, var(--tc) 45%, transparent); }
@keyframes latestin { from { opacity: 0; transform: translateY(-8px); } }
.tvg-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.4vw; }
.tvg-pbp { display: flex; flex-direction: column; min-height: 0; }
.tvplays { flex: 1; min-height: 0; overflow: hidden; }
.tvplays li { grid-template-columns: 4.6em 2.6em 1fr auto; font-size: 1.02em; padding: 0.42em 0.6em; border-color: rgba(255, 255, 255, 0.06); }
.tvplays li.new { animation: playin 1.6s ease; }
@keyframes playin { 0% { background: rgba(199, 166, 255, 0.35); transform: translateX(-10px); } 100% { transform: none; } }
.tvplays li.period { background: rgba(255, 255, 255, 0.05); font-weight: 700; }
.tvplays li.muted { color: #a99fbb; }
.pl-shot { width: 2.6em; height: 1.95em; object-fit: cover; object-position: top; }
.pl-tag { font: 800 0.72em var(--display); font-style: normal; letter-spacing: 0.1em; padding: 0.1em 0.5em; border-radius: 6px; margin-left: 0.5em; background: rgba(255, 255, 255, 0.12); }
.pl-tag.three { background: linear-gradient(90deg, #7b4bb0, #b48cff); color: #fff; }
.pl-tag.dunk { background: linear-gradient(90deg, #ff6a00, #ff2d55); color: #fff; }
.pl-tag.block, .pl-tag.steal { background: #1a98ff; color: #fff; }
.tvg-right { display: flex; flex-direction: column; gap: 1.2vh; min-height: 0; overflow: hidden; }
.tvg-right .panel { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); box-shadow: none; padding: 1em; color: #f4efff; }
.tvg-right .panel .panel-title { font-size: 1.2em; color: #cbbde0; margin-bottom: 0.5em; }
.tvg-right .wp-svg { height: 13vh; background: rgba(255, 255, 255, 0.04); }
.tvg-right .cmp { padding: 0.15em 0; }
.tvg-right .cmp > b { font-size: 1.1em; color: #a99fbb; }
.tvg-right .cmp > b.lead { color: #fff; }
.tvg-right .cmp small { color: #a99fbb; }
.tvg-right .gl { background: rgba(255, 255, 255, 0.05); }
.tvg-perf { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.tvg-perf h4 { margin: 0 0 0.3em; display: flex; align-items: center; gap: 0.4em; font: 700 1.1em var(--display); letter-spacing: 0.1em; }
.tvg-perf h4 img { width: 1.4em; }
.tvg-p { display: grid; grid-template-columns: 3.4em 1fr; grid-template-rows: auto auto; column-gap: 0.5em; padding: 0.25em 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.tvg-p img { grid-row: span 2; width: 3.4em; height: 2.5em; object-fit: cover; object-position: top; }
.tvg-p b { font-size: 0.95em; }
.tvg-p span { font-size: 0.85em; color: #a99fbb; }
.tvg-p em { font: 800 1.3em var(--display); font-style: normal; color: #e3d3ff; }
.tvg-pre { display: grid; gap: 1em; align-content: start; }
.tvg-pre small { color: #a99fbb; }
.tvg-line { font-size: 1.2em; color: #cbbde0; }
.tv-empty.sm { font-size: 1.2em; margin: 1em auto; }
@media (max-width: 900px) {
  .tvh { grid-template-columns: 1fr; overflow-y: auto; }
  .tvg-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .tvh .tvs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; }
}

/* ---------- Ex-Kings card header: fixed band, photo anchored to its bottom edge ---------- */
.fk::before { height: 116px; }
.fk-head { position: relative; height: 116px; margin: -14px -14px 0; padding: 0 14px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: end; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.fk-shot { display: block; align-self: end; width: 112px; height: 82px; object-fit: cover; object-position: center top; }
.fk-head > div { align-self: center; min-width: 0; padding-top: 18px; }
.fk-head b { font-size: 20px; line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fk-head em { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fk-head .wc-tonight { position: absolute; top: 10px; left: 138px; right: auto; margin: 0; }
.tvg-right > * { flex-shrink: 0; }
.tvg-right > *:last-child { flex-shrink: 1; min-height: 0; overflow: hidden; }
.tvg-right .cmp:nth-of-type(n+6) { display: none; }

/* ---------- TV / companion mode on phones ---------- */
@media (max-width: 760px) {
  #tv { font-size: 14px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .tv-top { position: sticky; top: 0; z-index: 2; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(18, 10, 28, 0.92); backdrop-filter: blur(10px); gap: 8px; }
  .tv-brand { font-size: 17px; white-space: nowrap; }
  .tv-brand .brand-mark { width: 32px; height: 32px; }
  .tv-dots, .tv-hint { display: none; }
  .tv-clock { font-size: 16px; white-space: nowrap; margin-right: 0; }
  .tv-right { gap: 6px; }
  .tv-btn { width: 34px; height: 34px; }
  .tv-back { width: auto; font-size: 13px; white-space: nowrap; padding: 0 10px; }
  #tvFull { display: none; }
  .tv-prog { display: none; }
  .tv-body { flex: none; min-height: auto; padding: 14px 14px max(24px, env(safe-area-inset-bottom)); }
  .tv-h, .tvh-main .tv-h { font-size: 22px; margin-bottom: 10px; }
  /* home */
  .tvh { display: flex; flex-direction: column; gap: 14px; min-height: auto; overflow: visible; }
  .tvh-main { min-height: auto; }
  .tvh .tvs { flex: none; display: grid; grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 10px; min-height: auto; }
  .tvs-g { padding: 12px 14px; border-radius: 14px; gap: 4px; }
  .tvs-st { font-size: 13px; flex-wrap: wrap; }
  .tvs-row { grid-template-columns: 30px 1fr auto; gap: 10px; }
  .tvs-row img { width: 30px; height: 30px; }
  .tvs-row b { font-size: 22px; }
  .tvs-row span { font-size: 28px; }
  .tvs-row small { font-size: 12px; }
  .tvs-last { font-size: 12px; white-space: normal; }
  .tvh-side { gap: 14px; min-height: auto; }
  .tvkp { font-size: 13px; padding: 16px; }
  .tvkp-match img { width: 64px; height: 64px; }
  .tvh-rot { flex: none; min-height: auto; overflow: visible; }
  .tvh-rot h3 { font-size: 16px; }
  .tvside-news .tvn-img { height: 160px; }
  /* game focus */
  .scene-focus { padding-top: 12px; }
  .tvg { gap: 10px; height: auto; min-height: auto; }
  .tvg-board { grid-template-columns: 1fr; gap: 6px; padding: 12px 14px; border-radius: 14px; }
  .tvg-mid { order: -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
  .tvg-mid .tvl-clock { font-size: 30px; }
  .tvg-mid .tvl-q { font-size: 16px; }
  .tvg-mid .shotclock.tvsm { font-size: 11px; }
  .tvg-side, .tvg-side:last-child { flex-direction: row; text-align: left; gap: 10px; }
  .tvg-side img { width: 44px; height: 44px; }
  .tvg-side b { font-size: 20px; }
  .tvg-side small { font-size: 12px; }
  .tvg-score, .tvg-side:last-child .tvg-score { font-size: 46px; margin: 0 0 0 auto; }
  .tvg-wp { font-size: 12px; gap: 8px; padding: 0 2px; }
  .tvg-wp div { height: 8px; }
  .tvg-latest { font-size: 16px; padding: 10px 12px; gap: 8px; border-radius: 12px; }
  .tvg-latest img { width: 24px; height: 24px; }
  .tvg-grid { display: flex; flex-direction: column; gap: 10px; min-height: auto; overflow: visible; }
  .tvg-pbp, .tvg-right { min-height: auto; overflow: visible; }
  .tv-panel { padding: 12px; border-radius: 14px; }
  .tv-panel h3 { font-size: 15px; }
  .tvplays { overflow: visible; }
  .tvplays li { grid-template-columns: 52px 30px minmax(0, 1fr) auto; gap: 8px; font-size: 13px; padding: 7px 6px; }
  .tvplays .pl-t { font-size: 11px; }
  .tvplays .pl-shot { width: 30px; height: 22px; }
  .tvplays .pl-x { display: block; }
  .tvplays .pl-x img { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
  .tvplays .pl-tag { font-size: 10px; }
  .tvplays .pl-s { font-size: 13px; }
  .tvg-right .wp-svg { height: 110px; }
  .tvg-perf { grid-template-columns: 1fr; gap: 10px; }
  .tvg-right > *:last-child { overflow: visible; }
}
@media (max-width: 760px) {
  .tvh-side { display: contents; }
  .tvh .tvkp { order: -1; }
  .tvh-main { order: 0; }
  .tvh .tvh-rot { order: 1; }
}
/* Phone: Kings panel collapses to a slim banner so more games fit on screen */
@media (max-width: 760px) {
  .tvh .tvkp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "match kick kick" "match opp clock"; align-items: center; justify-items: start; text-align: left; gap: 2px 12px; padding: 10px 12px; font-size: 13px; }
  .tvh .tvkp-mark, .tvh .tvkp-foot, .tvh .tvkp-cta, .tvh .tvkp-next, .tvh .tvkp-opp small { display: none; }
  .tvh .tvkp-match, .tvh .tvkp-score { grid-area: match; gap: 6px; }
  .tvh .tvkp-match img { width: 34px; height: 34px; }
  .tvh .tvkp-match span { font-size: 14px; }
  .tvh .tvkp-score img { width: 26px; height: 26px; }
  .tvh .tvkp-score b { font-size: 26px; }
  .tvh .tvkp-score span { font-size: 16px; }
  .tvh .tvkp-kick { grid-area: kick; font-size: 11px; letter-spacing: 0.1em; }
  .tvh .tvkp-opp { grid-area: opp; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tvh .tvkp .shotclock.tvsm { grid-area: clock; justify-self: end; font-size: 8.5px; gap: 3px; }
  .tvh .tvkp .shotclock.tvsm span { min-width: 3.2em; padding: 0.3em 0.3em 0.2em; }
}

/* ---------- Followed teams ---------- */
.g-star { color: #ffcc4d; font-size: 16px; filter: drop-shadow(0 2px 6px rgba(255, 204, 77, 0.5)); }
.g-row.followed .g-team b { color: #ffd98a; }
:root[data-theme="light"] .g-row.followed .g-team b { color: #8a5d00; }
.tvs-star { color: #ffcc4d; }

/* ---------- Rookies ---------- */
.rk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.rk-head .sec-title { margin-top: 4px; }
.rk-head .lede { margin: 0 0 12px; }
.rk-sort { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.rk-sort small { margin-right: 4px; }
.rk-leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.rk-lead { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: linear-gradient(110deg, color-mix(in srgb, var(--tc) 40%, transparent), var(--panel) 70%); border: 1px solid var(--line); text-align: left; transition: transform 0.2s; overflow: hidden; }
.rk-lead:hover { transform: translateY(-2px); }
.rk-lead img { width: 84px; height: 61px; object-fit: cover; object-position: top; flex: none; }
.rk-lead small { display: block; font: 700 11px var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.rk-lead b { display: block; font: 800 20px/1.05 var(--display); }
.rk-lead span { font-size: 12px; color: var(--muted); }
.rk-lead em { font: 800 18px var(--display); font-style: normal; color: var(--text); }
.rk-panel { padding: 8px; }
.rk-table { min-width: 980px; }
.rk-table thead th { position: sticky; top: 0; background: var(--panel-solid); z-index: 1; }
.rk-table th.sorted { color: var(--beam); }
.rk-table tbody tr { cursor: pointer; transition: background 0.2s; }
.rk-table tbody tr:hover { background: var(--chip); }
.rk-table tr.mine { background: linear-gradient(90deg, rgba(123, 75, 176, 0.4), transparent 70%); }
.rk-pick { width: 44px; }
.rk-pick b { font: 800 20px var(--display); }
.rk-pick small { display: block; font-size: 10px; }
.rk-name { min-width: 220px; position: sticky; left: 0; background: var(--panel-solid); z-index: 1; }
.rk-table tr.mine .rk-name { background: color-mix(in srgb, #7b4bb0 30%, var(--panel-solid)); }
.rk-name { display: table-cell; }
.rk-name img { float: left; width: 58px; height: 42px; object-fit: cover; object-position: top; margin-right: 10px; }
.rk-name b { display: block; font: 700 16px/1.1 var(--display); letter-spacing: 0.02em; padding-top: 4px; }
.rk-name small { font-size: 11px; }
.rk-live { font-weight: 700; color: var(--beam); }
.rk-live.in { color: var(--live); }
.rk-team img { width: 30px; height: 30px; margin: 0 auto; }
.rk-team small { display: block; font-size: 10px; }
.rk-stat { position: relative; min-width: 54px; }
.rk-stat span { position: relative; z-index: 1; font-weight: 600; }
.rk-stat i { position: absolute; left: 6px; bottom: 5px; height: 3px; max-width: calc(100% - 12px); border-radius: 99px; background: linear-gradient(90deg, #5b2b82, #b48cff); opacity: 0.75; }
.rk-stat.sorted span { color: var(--beam); font-weight: 800; }
:root[data-theme="light"] .rk-stat.sorted span, :root[data-theme="light"] .rk-table th.sorted { color: var(--purple); }
.rk-last { font-size: 12px; white-space: nowrap; }
@media (max-width: 900px) { .rk-leaders { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .rk-name { min-width: 170px; } .rk-name img { width: 44px; height: 32px; } .rk-name b { font-size: 14px; } }
@media (max-width: 900px) {
  .rk-leaders { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 4px; scrollbar-width: none; }
  .rk-lead { flex: 0 0 78%; scroll-snap-align: start; padding: 10px 12px; }
  .rk-lead img { width: 60px; height: 44px; }
  .rk-lead b { font-size: 17px; }
}
@media (max-width: 640px) {
  .rk-head .sec-title { font-size: 22px; }
  .rk-head .lede { font-size: 12px; }
  .rk-sort { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .rk-sort .chip-btn { white-space: nowrap; padding: 6px 12px; }
}

/* ---------- Milestones ---------- */
.g-status, .g-status b { white-space: nowrap; }
.clutch { white-space: nowrap; }
.g-top .g-note { min-width: 0; }
.ms-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 6px; }
.ms { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 99px; font-size: 12px; white-space: nowrap; max-width: 100%; overflow: hidden;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.ms i { font-style: normal; font-size: 13px; }
.ms em { font: 800 10px var(--display); font-style: normal; letter-spacing: 0.1em; opacity: 0.85; }
.ms b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.ms small { font-size: 10px; color: inherit; opacity: 0.75; }
.ms-p30 { background: rgba(255, 138, 40, 0.16); border-color: rgba(255, 138, 40, 0.5); color: #ffb26b; }
.ms-p40 { background: linear-gradient(90deg, rgba(255, 70, 70, 0.28), rgba(255, 45, 120, 0.2)); border-color: rgba(255, 80, 110, 0.65); color: #ffb0bf; box-shadow: 0 0 12px rgba(255, 60, 100, 0.3); }
.ms-p50, .ms-p60 { color: #241400; border-color: transparent; background: linear-gradient(110deg, #ffcc4d, #fff1b8 40%, #ffb800 60%, #ffcc4d); background-size: 200% 100%; animation: msshine 2.4s linear infinite; box-shadow: 0 0 16px rgba(255, 204, 77, 0.55); }
.ms-p60 { background: linear-gradient(110deg, #ff5d6c, #ffcc4d, #33d17a, #1a98ff, #b48cff, #ff5d6c); background-size: 300% 100%; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.ms-td, .ms-qd { color: #fff; border-color: rgba(199, 166, 255, 0.8); background: linear-gradient(110deg, #5b2b82, #9b6bd6 50%, #5b2b82); background-size: 200% 100%; animation: msshine 3s linear infinite; box-shadow: 0 0 14px rgba(160, 110, 255, 0.5); }
.ms-qd { background: linear-gradient(110deg, #5b2b82, #ffcc4d 50%, #5b2b82); background-size: 200% 100%; }
.ms-tdw { color: #d8c8f2; border-style: dashed; border-color: rgba(199, 166, 255, 0.6); background: rgba(123, 75, 176, 0.15); animation: pulse 2s infinite; }
.ms-r20, .ms-a15 { color: #9fd8ff; border-color: rgba(26, 152, 255, 0.55); background: rgba(26, 152, 255, 0.14); }
.ms-more { color: var(--muted); }
@keyframes msshine { to { background-position: -200% 0; } }
:root[data-theme="light"] .ms-p30 { color: #a14d00; }
:root[data-theme="light"] .ms-p40 { color: #b0123c; }
:root[data-theme="light"] .ms-r20, :root[data-theme="light"] .ms-a15 { color: #0b5ea8; }
:root[data-theme="light"] .ms-tdw { color: var(--purple); }
.gm-ms { justify-content: center; margin: 10px 0 0; }
.gm-ms .ms { font-size: 13px; padding: 5px 12px 5px 8px; }
.tv-ms { margin: 0.2em 0 0; }
.tv-ms .ms { font-size: 0.78em; }
.tvg-ms { justify-content: center; margin: 0; }
.tvg-ms .ms { font-size: 1.05em; padding: 0.35em 0.9em 0.35em 0.6em; }
.tk-ms i { background: linear-gradient(90deg, #ff8a28, #ff2d55) !important; }

/* ---------- Scoreboard event pops ---------- */
.game, .tvs-g { position: relative; }
.g-fx { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; border-radius: inherit; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--fx) 55%, transparent), color-mix(in srgb, var(--fx) 15%, rgba(8, 4, 14, 0.75)) 70%);
  animation: fxbg 3.6s ease forwards; }
.g-fx span { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: rgba(10, 6, 16, 0.75); border: 1px solid color-mix(in srgb, var(--fx) 70%, white 10%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--fx) 60%, transparent); animation: fxpop 3.6s cubic-bezier(0.2, 1.4, 0.3, 1) forwards; }
.g-fx img { width: 24px; height: 24px; }
.g-fx i { font-style: normal; font-size: 20px; }
.g-fx b { font: 800 20px var(--display); letter-spacing: 0.1em; color: #fff; white-space: nowrap; }
@keyframes fxbg { 0% { opacity: 0; } 8% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes fxpop { 0% { transform: scale(0.4); opacity: 0; } 12% { transform: scale(1.08); opacity: 1; } 20% { transform: scale(1); } 75% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.92); opacity: 0; } }
.fx-timeout b, .fx-break b { letter-spacing: 0.16em; }
.fx-timeout span i, .fx-break span i { animation: tick 1s steps(2) infinite; }
@keyframes tick { 50% { opacity: 0.35; } }
.fx-dunk span { animation: fxpop 3.6s cubic-bezier(0.2, 1.4, 0.3, 1) forwards, fxshake 0.5s 0.15s 2; }
@keyframes fxshake { 25% { translate: -4px 2px; } 50% { translate: 4px -2px; } 75% { translate: -3px -1px; } }
.fx-three::after { content: ""; position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--fx); animation: fxring 1.2s ease-out 2; }
@keyframes fxring { from { transform: scale(0.5); opacity: 1; } to { transform: scale(6); opacity: 0; } }
.fx-lead { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fx) 60%, transparent), transparent); background-size: 200% 100%; animation: fxbg 3.6s ease forwards, fxsweep 1.2s linear 2; }
@keyframes fxsweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.fx-run span { box-shadow: 0 0 30px rgba(255, 106, 0, 0.7); border-color: #ff8a28; }
.fx-run b { background: linear-gradient(90deg, #ffcc4d, #ff6a00, #ff2d55); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-tech span { border-color: #ff3b4e; box-shadow: 0 0 26px rgba(255, 59, 78, 0.7); }
.fx-final span { padding: 10px 20px; }
.fx-final b { font-size: 24px; }
.fx-ot { background: radial-gradient(circle, rgba(255, 204, 77, 0.5), rgba(8, 4, 14, 0.8) 70%); }
.fx-ot b { color: #ffcc4d; }
.run-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font: 700 12px var(--body); color: #ffb26b; background: rgba(255, 106, 0, 0.14); border: 1px solid rgba(255, 138, 40, 0.5); animation: pulse 2.4s infinite; }
#tv .g-fx b { font-size: 1.5em; }
#tv .g-fx i { font-size: 1.5em; }
#tv .g-fx img { width: 1.8em; height: 1.8em; }

/* ---------- Watch away from home (Xfinity Stream / Peacock) ---------- */
:root { --xf: #2bd47d; --pk: #c9a6ff; }
.g-badges { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.xf, .pk, .homeonly { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 6px; text-decoration: none; white-space: nowrap; font: 700 12px var(--body); letter-spacing: 0.02em; }
.xf { color: #06210f; background: var(--xf); box-shadow: 0 2px 10px rgba(43, 212, 125, 0.35); transition: transform 0.2s, box-shadow 0.2s; }
.pk { color: #1b0b33; background: var(--pk); box-shadow: 0 2px 10px rgba(201, 166, 255, 0.35); transition: transform 0.2s, box-shadow 0.2s; }
.xf svg, .pk svg { width: 12px; height: 12px; fill: currentColor; }
.xf:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(43, 212, 125, 0.6); }
.pk:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201, 166, 255, 0.6); }
.xf.sm, .pk.sm, .homeonly.sm { font-size: 11px; padding: 2px 7px 2px 5px; }
.xf.sm svg, .pk.sm svg { width: 10px; height: 10px; }
.xf.live, .pk.live { animation: awayPulse 1.6s ease-in-out infinite; }
@keyframes awayPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(43, 212, 125, 0.7); } 50% { box-shadow: 0 0 0 6px rgba(43, 212, 125, 0); } }
.homeonly { color: var(--muted); background: var(--chip); border: 1px solid var(--line); font-weight: 600; }
.game.on-away { border-color: rgba(43, 212, 125, 0.5); }
.game.on-away { box-shadow: inset 0 2px 0 rgba(43, 212, 125, 0.75), var(--shadow); }
.game.kings.on-away { border-color: rgba(180, 140, 255, 0.55); }
.hn-away { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: #d9ffe9; }
.hn-away.home { color: var(--muted); }
.hn-away b[data-game] { color: var(--xf); cursor: pointer; }
.away-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; font: 700 13px var(--body); color: var(--xf); background: rgba(43, 212, 125, 0.1); border: 1px solid rgba(43, 212, 125, 0.4); white-space: nowrap; }
.away-toggle.on { background: var(--xf); color: #06210f; }
.scores-tools #awayFilter:empty, .scores-tools #primeFilter:empty { display: none; }
.sc-xf, .sc-home { font: 700 9px var(--body); font-style: normal; border-radius: 4px; padding: 1px 5px; }
.sc-xf { color: #06210f; background: var(--xf); }
.sc-home { background: var(--chip); }
.tonight-lower .away-panel { grid-column: 1 / -1; }
.away-panel .panel-title { flex-wrap: wrap; }
.away-panel .panel-title small { margin-left: auto; }
.away-live { color: var(--xf); }
.away-note { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.away-note b { color: var(--text, inherit); }
.pn.away { border-left-color: var(--xf); }
.pn.away:hover { border-color: rgba(43, 212, 125, 0.5); }
.pn.away.kings { border-left-color: var(--beam); }
.pn.away.in, .pn.away.soon { border-color: rgba(43, 212, 125, 0.6); box-shadow: 0 0 16px rgba(43, 212, 125, 0.25); }
.pn-svc { font: 600 11px var(--body); color: var(--xf); letter-spacing: 0.04em; }
.live-dot.soon { background: var(--xf); }
#tv .xf, #tv .pk { font-size: 0.8em; }
