/* ============ HTS — Home Team Sports ============ */
:root {
  --bg: #0b0f17;
  --bg-2: #111725;
  --card: #151c2c;
  --card-2: #1b2437;
  --line: #243049;
  --text: #e9eef7;
  --muted: #93a0b8;
  --faint: #64718a;
  --accent: #ff5a36;
  --accent-2: #ffb627;
  --win: #2fd27a;
  --loss: #ff5d6c;
  --live: #ff3b4e;
  --local: #2fb5ff;
  --national: #b48cff;
  --teamc: #ffb627;
  --fan: #2fd27a;
  --other: #93a0b8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --team: #ff5a36;
  --team-2: #ffb627;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Oswald', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f3f5f9;
  --bg-2: #e9edf4;
  --card: #ffffff;
  --card-2: #f5f7fb;
  --line: #dfe4ee;
  --text: #121826;
  --muted: #5a6478;
  --faint: #8a93a6;
  --shadow: 0 8px 24px rgba(20, 30, 60, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
h1, h2, .display { font-family: var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }
main.container { flex: 1; padding-top: 20px; padding-bottom: 40px; outline: none; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1360px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--display); font-size: 22px; letter-spacing: 0.06em; }
.brand-text small { font-size: 10.5px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
.team-nav { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: none; padding: 2px 0; }
.team-nav::-webkit-scrollbar { display: none; }
.team-nav a {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.team-nav a.active { border-color: var(--accent); }
.team-nav img { width: 22px; height: 22px; object-fit: contain; }
.topbar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn { background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 7px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--card); }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #111; font-weight: 700; font-size: 14px;
}
.btn:hover { filter: brightness(1.07); color: #111; }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--text); font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.chip img { width: 18px; height: 18px; object-fit: contain; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .count { font-size: 11px; opacity: 0.7; }

.tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; display: inline-block; }
.tag-local { color: var(--local); background: color-mix(in srgb, var(--local) 14%, transparent); }
.tag-national { color: var(--national); background: color-mix(in srgb, var(--national) 14%, transparent); }
.tag-team { color: var(--teamc); background: color-mix(in srgb, var(--teamc) 14%, transparent); }
.tag-fan { color: var(--fan); background: color-mix(in srgb, var(--fan) 14%, transparent); }
.tag-other { color: var(--other); background: color-mix(in srgb, var(--other) 14%, transparent); }
.tag-live { color: #fff; background: var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

/* ---------- cards & sections ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 16px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 20px; }
.section-head h2 small { font-family: var(--font); text-transform: none; font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 8px; letter-spacing: 0; }
.section-head a.more { font-size: 13px; color: var(--muted); font-weight: 600; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
@media (max-width: 1080px) { .layout { grid-template-columns: 1fr; } }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.error { padding: 14px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--loss) 12%, transparent); color: var(--loss); font-size: 14px; }

.skeleton { position: relative; overflow: hidden; background: var(--card-2); border-radius: var(--radius-sm); min-height: 16px; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 6%, transparent), transparent);
  animation: shimmer 1.3s infinite; transform: translateX(-100%);
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- hero / dashboard ---------- */
.hero { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 6px 0 0; color: var(--muted); }

.bugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.bug {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card); padding: 14px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.15s, border-color 0.15s;
}
.bug:hover { transform: translateY(-2px); border-color: var(--tc, var(--accent)); color: inherit; }
.bug::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--tc, var(--accent)), var(--tc2, var(--accent-2))); }
.bug-head { display: flex; align-items: center; gap: 12px; }
.bug-head img { width: 46px; height: 46px; object-fit: contain; }
.bug-name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.bug-sub { font-size: 12.5px; color: var(--muted); }
.bug-game { background: var(--card-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; }
.bug-game .label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 700; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.bug-game .line { display: flex; align-items: center; gap: 8px; }
.bug-game .line img { width: 20px; height: 20px; object-fit: contain; }
.result-W { color: var(--win); font-weight: 800; }
.result-L { color: var(--loss); font-weight: 800; }
.result-T, .result-D { color: var(--accent-2); font-weight: 800; }
.score-live { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: 0.02em; }

/* ---------- articles ---------- */
.feed { display: flex; flex-direction: column; gap: 10px; }
.article {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 14px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); transition: border-color 0.15s;
}
.article:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--line)); color: inherit; }
.article h3 { font-size: 16px; font-weight: 700; margin: 6px 0 4px; line-height: 1.3; }
.article p { margin: 0; color: var(--muted); font-size: 13.5px; }
.article .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.article .meta .src { color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.article .meta .src img { width: 16px; height: 16px; border-radius: 4px; }
.article .thumb { width: 132px; height: 88px; border-radius: 10px; object-fit: cover; background: var(--card-2); }
.article .team-mini { width: 18px; height: 18px; object-fit: contain; }
@media (max-width: 560px) { .article .thumb { width: 92px; height: 70px; } }
.article.lead { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.article.lead .thumb { width: 100%; height: 260px; border-radius: 0; order: -1; }
.article.lead .body { padding: 0 16px 16px; }
.article.lead h3 { font-size: 21px; }

/* ---------- videos ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.video { cursor: pointer; display: flex; flex-direction: column; gap: 8px; text-align: left; background: none; border: 0; padding: 0; }
.video .frame { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: var(--card-2); }
.video .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.video:hover .frame img { transform: scale(1.04); }
.video .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, 0.8); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 0.2s; background: rgba(0,0,0,.25); }
.video:hover .play { opacity: 1; }
.video .play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.7); display: grid; place-items: center; color: #fff; font-size: 20px; }
.video .vtitle { font-weight: 700; font-size: 14px; line-height: 1.3; }
.video .vmeta { font-size: 12px; color: var(--faint); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.videos.compact { grid-template-columns: 1fr; gap: 10px; }
.videos.compact .video { flex-direction: row; }
.videos.compact .video .frame { width: 140px; flex-shrink: 0; }
.videos.compact .video .vtitle { font-size: 13px; }

/* ---------- podcasts ---------- */
.pods { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pod { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.pod-head { display: flex; gap: 12px; align-items: center; }
.pod-head img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pod-title { font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.ep { border-top: 1px solid var(--line); padding-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.ep-title { font-size: 13.5px; font-weight: 600; }
.ep audio { width: 100%; height: 34px; }

/* ---------- team page ---------- */
.team-hero {
  position: relative; border-radius: 20px; overflow: hidden; padding: 28px; margin-bottom: 18px;
  background:
    radial-gradient(1200px 400px at 0% 0%, color-mix(in srgb, var(--team) 70%, transparent), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--team) 85%, #000) 0%, color-mix(in srgb, var(--team) 35%, #05070c) 100%);
  color: #fff; border: 1px solid color-mix(in srgb, var(--team) 50%, var(--line));
}
.team-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; opacity: 0.12;
  background: var(--logo) center/contain no-repeat;
}
.team-hero .inner { position: relative; z-index: 1; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.team-hero .logo { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 6px 20px rgba(0,0,0,.4)); background: rgba(255,255,255,.08); border-radius: 22px; padding: 10px; }
.team-hero h1 { font-size: clamp(28px, 4.2vw, 46px); }
.team-hero .facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.team-hero .facts b { color: #fff; font-family: var(--display); font-size: 20px; margin-right: 4px; letter-spacing: .02em; }
.team-hero .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.team-hero .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }

.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; scrollbar-width: none; position: sticky; top: 57px; z-index: 20; background: var(--bg); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 11px 14px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--text); border-bottom-color: var(--team); }
.tabs a:hover { color: var(--text); }

/* games */
.game-card { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.game-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); font-weight: 800; display: flex; gap: 8px; align-items: center; }
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.matchup .side { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.matchup .side img { width: 64px; height: 64px; object-fit: contain; }
.matchup .side .nm { font-weight: 800; font-size: 14px; }
.matchup .side .rec { font-size: 12px; color: var(--muted); }
.matchup .mid { text-align: center; }
.matchup .mid .sc { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.matchup .mid .st { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.matchup .side.winner .nm { color: var(--win); }
.countdown { font-family: var(--display); font-size: 18px; letter-spacing: .04em; }

.sched { width: 100%; border-collapse: collapse; font-size: 14px; }
.sched th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sched td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sched tr:hover td { background: var(--card-2); }
.sched .opp { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.sched .opp img { width: 26px; height: 26px; object-fit: contain; }
.sched tr.next td { background: color-mix(in srgb, var(--team) 12%, transparent); }
.table-wrap { overflow-x: auto; }

/* stats tables */
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.data th { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; position: sticky; top: 0; background: var(--card); }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data tr.own td { background: color-mix(in srgb, var(--team) 14%, transparent); font-weight: 700; }
table.data td .tm { display: flex; align-items: center; gap: 8px; }
table.data td .tm img { width: 22px; height: 22px; object-fit: contain; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--card-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.stat .v { font-family: var(--display); font-size: 24px; font-weight: 600; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .r { font-size: 11px; color: var(--faint); }

.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.leader { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: var(--radius-sm); background: var(--card-2); }
.leader img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--card); flex-shrink: 0; }
.leader .cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; }
.leader .nm { font-weight: 800; font-size: 14px; }
.leader .val { font-size: 12.5px; color: var(--muted); }

/* roster */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.player { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); }
.player:hover { border-color: var(--team); color: inherit; }
.player img, .player .ph { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--card-2); flex-shrink: 0; }
.player .num { font-family: var(--display); font-size: 22px; color: var(--faint); width: 34px; text-align: center; flex-shrink: 0; }
.player .nm { font-weight: 800; font-size: 14px; }
.player .info { font-size: 12px; color: var(--muted); }

/* predictor */
.pbar { height: 12px; border-radius: 999px; overflow: hidden; display: flex; background: var(--card-2); }
.pbar span { display: block; height: 100%; }

/* media directory */
.outlets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.outlet { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); }
.outlet:hover { border-color: var(--accent); color: inherit; }
.outlet img { width: 28px; height: 28px; border-radius: 6px; background: #fff; padding: 2px; flex-shrink: 0; }
.outlet .ic { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--card-2); flex-shrink: 0; font-size: 15px; }
.outlet .nm { font-weight: 700; font-size: 14px; }
.outlet .sub { font-size: 12px; color: var(--muted); }

/* player page */
.player-hero { display: flex; gap: 24px; align-items: end; flex-wrap: wrap; }
.player-hero .shot { width: 180px; height: 132px; object-fit: cover; object-position: top; }
.bio { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.bio div { background: var(--card-2); padding: 10px 12px; border-radius: var(--radius-sm); }
.bio dt { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.bio dd { margin: 2px 0 0; font-weight: 600; }

/* setup */
.markets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.market { text-align: left; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.market:hover { border-color: var(--accent); }
.market.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.market .nm { font-weight: 800; }
.market .logos { display: flex; gap: 4px; flex-wrap: wrap; }
.market .logos img { width: 22px; height: 22px; object-fit: contain; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); text-align: left; width: 100%; }
.pick img { width: 36px; height: 36px; object-fit: contain; }
.pick .nm { font-weight: 700; }
.pick .lg { font-size: 12px; color: var(--muted); }
.pick .check { margin-left: auto; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 900; flex-shrink: 0; }
.pick.on { border-color: var(--accent); }
.pick.on .check { background: var(--accent); border-color: var(--accent); color: #111; }
.steps { display: flex; gap: 8px; margin: 6px 0 18px; }
.steps span { height: 4px; flex: 1; border-radius: 4px; background: var(--line); }
.steps span.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.input {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; outline: none;
}
.input:focus { border-color: var(--accent); }
.sticky-bar { position: sticky; bottom: 0; z-index: 30; margin-top: 20px; padding: 12px 16px; background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); }
.modal-body { position: relative; width: min(1000px, 100%); background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 8px; top: 6px; z-index: 2; background: rgba(0,0,0,.6); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; }
.embed { aspect-ratio: 16/9; width: 100%; border: 0; display: block; background: #000; }
.modal-cap { padding: 12px 16px; }

/* search popover */
.search-pop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); display: flex; justify-content: center; padding: 70px 16px 16px; }
.search-pop[hidden] { display: none; }
.search-box { width: min(640px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; align-self: flex-start; }
.search-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); padding: 16px 18px; font: inherit; font-size: 16px; outline: none; }
.search-results { max-height: 60vh; overflow-y: auto; }
.search-results .pick { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; }
.search-results .pick:hover, .search-results .pick.focus { background: var(--card-2); }

.footer { color: var(--faint); font-size: 12px; padding: 24px 16px 40px; border-top: 1px solid var(--line); text-align: center; }

.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }

.injury { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.injury:last-child { border-bottom: 0; }
.injury img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--card-2); }
.inj-status { margin-left: auto; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: color-mix(in srgb, var(--loss) 16%, transparent); color: var(--loss); white-space: nowrap; }
.inj-status.q { background: color-mix(in srgb, var(--accent-2) 16%, transparent); color: var(--accent-2); }

.form-dots { display: flex; gap: 4px; }
.form-dots span { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #111; }
.form-dots .W { background: var(--win); } .form-dots .L { background: var(--loss); } .form-dots .T, .form-dots .D { background: var(--accent-2); }
