/* NPL Score Hub — floodlit stadium theme. Nepal crimson + blue, team colours via --c / --c1 / --c2. */
:root {
  --bg: #060a18;
  --bg-2: #0b1230;
  --card: #0f1838;
  --card-2: #152150;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef2fb;
  --muted: #98a3c4;
  --crimson: #e8173f;
  --crimson-2: #ff4d6d;
  --blue: #2152d9;
  --gold: #ffc53d;
  --win: #22c55e;
  --loss: #ef4444;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 400 16px/1.6 var(--sans);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(33, 82, 217, 0.35), transparent 60%),
    radial-gradient(800px 480px at 95% -8%, rgba(232, 23, 63, 0.28), transparent 60%),
    radial-gradient(1200px 600px at 50% 120%, rgba(16, 120, 70, 0.18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}
img {
  max-width: 100%;
}
a {
  color: #8fb3ff;
  text-decoration: none;
}
a:hover {
  color: #fff;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  text-transform: uppercase;
}
h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  text-transform: uppercase;
}
h3 {
  font-size: 1.15rem;
}
main h2 {
  position: relative;
  padding-left: 14px;
}
main h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(var(--crimson), var(--blue));
}
.prose h2::before,
.board h2::before,
.sp-head h2::before {
  display: none;
}
.prose h2 {
  padding-left: 0;
}
p {
  margin: 0 0 1em;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 700px) {
  .wrap {
    padding: 0 24px;
  }
}
main {
  padding-top: 20px;
  padding-bottom: 48px;
}
main > section,
main > div > section {
  margin-bottom: 40px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.lede {
  color: #c4cce4;
  font-size: 1.05rem;
  max-width: 70ch;
}
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.6em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 24, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson) 0 50%, var(--blue) 50% 100%);
  opacity: 0.85;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
}
.brand-mark {
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line-2);
}
.brand-text {
  font-family: var(--display);
  font-size: 1.2rem;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand-text b {
  color: var(--crimson-2);
}
.brand-text small {
  display: block;
  font-family: var(--sans);
  text-transform: none;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 4px;
}
.nav {
  display: none;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: #c8d0ea;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.15s;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.nav a[aria-current='page'] {
  color: #fff;
  background: rgba(232, 23, 63, 0.18);
  box-shadow: inset 0 0 0 1px rgba(232, 23, 63, 0.45);
}
@media (min-width: 980px) {
  .nav {
    display: flex;
  }
}
.live-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-2);
}
@media (min-width: 980px) {
  .live-btn {
    margin-left: 8px;
  }
}
.live-btn.is-live {
  background: var(--crimson);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(232, 23, 63, 0.55);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
  flex-shrink: 0;
}
.is-live .dot,
.live-h .dot,
.state-live .dot {
  background: #fff;
  animation: pulse 1.4s ease-out infinite;
}
.live-h .dot {
  background: var(--crimson-2);
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.8);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(255, 77, 109, 0);
  }
}
.live-h {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- ticker ---------- */
.ticker {
  background: linear-gradient(180deg, rgba(11, 18, 48, 0.95), rgba(6, 10, 24, 0.9));
  border-bottom: 1px solid var(--line);
}
.ticker-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.ticker-label {
  display: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  color: var(--gold);
  text-align: center;
}
@media (min-width: 700px) {
  .ticker-label {
    display: block;
  }
}
.ticker-list {
  list-style: none;
  margin: 0;
  padding: 0 0 2px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.ticker-list::-webkit-scrollbar {
  display: none;
}
.ticker-list li {
  scroll-snap-align: start;
  flex: 0 0 auto;
}
.chip {
  display: grid;
  gap: 3px;
  width: 196px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.chip:hover {
  color: var(--text);
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.chip.state-live {
  border-color: rgba(232, 23, 63, 0.6);
  box-shadow: 0 0 18px -6px rgba(232, 23, 63, 0.7);
}
.chip-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.live-tag {
  color: var(--crimson-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.live-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s infinite;
}
.chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip-team {
  font-weight: 600;
  flex: 1;
}
.chip-score {
  font-family: var(--display);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.chip-row.batting .chip-team::after,
.mc-row.batting .mc-team::after {
  content: ' \2022';
  color: var(--gold);
}
.chip-foot {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.crumbs a {
  color: var(--muted);
}
.crumbs > * + *::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.5;
}

/* ---------- buttons, pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: #fff;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  transition:
    transform 0.15s,
    background 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--crimson), #b0103a);
  box-shadow: 0 10px 30px -10px rgba(232, 23, 63, 0.8);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--crimson-2), var(--crimson));
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #dfe5f7;
  white-space: nowrap;
}
.pill-live {
  background: var(--crimson);
  color: #fff;
}
.pill-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}
.pill-result {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}
.pill-upcoming {
  background: rgba(33, 82, 217, 0.25);
  color: #a9c1ff;
}
.pill-pending {
  background: rgba(255, 197, 61, 0.16);
  color: var(--gold);
}

/* ---------- badges & avatars ---------- */
.badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.badge-xs {
  width: 20px;
  height: 20px;
}
.badge-sm {
  width: 28px;
  height: 28px;
}
.badge-md {
  width: 40px;
  height: 40px;
}
.badge-lg {
  width: 72px;
  height: 72px;
}
.badge-xl {
  width: 128px;
  height: 128px;
}
.badge-mono,
.badge-tbd {
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.7em;
  background: var(--c, #333);
  color: var(--a, #fff);
  border: 2px solid var(--a, #555);
}
.badge-tbd {
  background: var(--card-2);
  color: var(--muted);
  border-color: var(--line-2);
  font-size: 0.85rem;
}
.badge-xs.badge-tbd {
  font-size: 0.65rem;
  border-width: 1px;
}
.badge-lg.badge-tbd,
.badge-xl.badge-tbd {
  font-size: 2rem;
}
.avatar {
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-initials {
  display: inline-grid;
  place-items: center;
  width: var(--s, 36px);
  height: var(--s, 36px);
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
  color: var(--a);
  font-family: var(--display);
  font-size: calc(var(--s, 36px) * 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 28px 0 8px;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    padding: 44px 0 16px;
  }
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.02;
}
.hl {
  background: linear-gradient(90deg, var(--crimson-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}
.hero-logos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-logos a {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition:
    transform 0.2s,
    background 0.2s;
}
.hero-logos a:hover {
  transform: translateY(-3px) rotate(-3deg);
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- spotlight (match centre) ---------- */
.spotlight,
.scoreboard {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c1) 80%, transparent), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--c2) 80%, transparent), transparent 60%),
    linear-gradient(135deg, #0c1433, #0a0f26);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  isolation: isolate;
}
/* pitch stripes */
.spotlight::before,
.scoreboard::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 40px, transparent 40px 80px);
  mask-image: linear-gradient(180deg, transparent, #000 50%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 50%);
}
.spotlight.state-live,
.scoreboard.state-live {
  border-color: rgba(232, 23, 63, 0.6);
  box-shadow:
    0 0 0 1px rgba(232, 23, 63, 0.3),
    0 20px 60px -20px rgba(232, 23, 63, 0.6);
}
.sp-head,
.sb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #d5dcf0;
  margin: 0 0 14px;
}
.sp-teams,
.sb-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.sp-team,
.sb-team {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}
.sp-team .badge,
.sb-team .badge {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s;
}
.spotlight:hover .badge {
  transform: scale(1.05);
}
.sp-name {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  letter-spacing: 0.03em;
  line-height: 1.15;
}
.sp-score,
.sb-score {
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.sp-score small,
.sb-score small {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #c4cce4;
  margin-top: 4px;
}
.sp-team.batting .sp-score,
.sb-team.batting .sb-score {
  color: var(--gold);
}
.sp-vs,
.sb-vs {
  font-family: var(--display);
  font-size: 1.1rem;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-2);
  text-transform: uppercase;
}
.sp-status,
.sb-status {
  text-align: center;
  font-weight: 600;
  margin: 18px 0 4px;
  font-size: 1.02rem;
}
.sp-venue {
  text-align: center;
  font-size: 0.82rem;
  color: #b8c1de;
  margin: 0;
}
.countdown {
  font-family: var(--display);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.countdown small {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4cce4;
}
.stretched {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* scoreboard extras (match page) */
.scoreboard {
  padding: 24px 18px;
  margin-bottom: 32px;
}
@media (min-width: 700px) {
  .scoreboard {
    padding: 32px;
  }
}
.sb-team a {
  font-family: var(--display);
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(0.95rem, 2.6vw, 1.35rem);
}
.sb-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: #c4cce4;
  margin: 0;
}
.sb-meta .updated {
  color: var(--crimson-2);
}
@media (max-width: 520px) {
  .badge-xl {
    width: 84px;
    height: 84px;
  }
  .badge-lg {
    width: 60px;
    height: 60px;
  }
  .sp-vs,
  .sb-vs {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
}

/* ---------- section heads, grids ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
}
.section-head a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  white-space: nowrap;
}
.grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: thin;
}
.rail > * {
  scroll-snap-align: start;
}
@media (min-width: 1100px) {
  .rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}
.two-col {
  display: grid;
  gap: 32px;
}
.two-col > *,
.hero > * {
  min-width: 0;
}
@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1.3fr 1fr;
  }
}
.empty {
  padding: 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- match card ---------- */
.match-card {
  position: relative;
  padding: 14px 16px 12px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, var(--c1), var(--c2)) top / 100% 3px no-repeat,
    linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.match-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.match-card.state-live {
  border-color: rgba(232, 23, 63, 0.55);
  box-shadow: 0 0 30px -12px rgba(232, 23, 63, 0.8);
}
.mc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mc-title {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}
.mc-team {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-score {
  font-family: var(--display);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mc-score small {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
}
.mc-foot {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: #c4cce4;
}
.state-live .mc-foot {
  color: var(--crimson-2);
  font-weight: 600;
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), rgba(15, 24, 56, 0.7));
  margin-bottom: 14px;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.data caption {
  caption-side: bottom;
  text-align: left;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.82rem;
}
.data th,
.data td {
  padding: 11px 12px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.data thead th {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.data tbody tr:last-child > * {
  border-bottom: 0;
}
.data tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.data tbody th {
  font-weight: 600;
}
.data .left {
  text-align: left;
}
.points .pos {
  font-family: var(--display);
  color: var(--muted);
  width: 36px;
}
.points tr.qualify {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), transparent 50%);
}
.points tr.qualify .pos {
  color: var(--win);
  box-shadow: inset 3px 0 0 var(--win);
}
.points td strong {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--gold);
}
.team-cell,
.player-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.team-cell a,
.player-cell a {
  color: var(--text);
}
.team-cell a:hover,
.player-cell a:hover {
  color: var(--gold);
}
.form {
  white-space: nowrap;
}
.form span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0 1px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
}
.form .form-w {
  background: var(--win);
  color: #052e12;
}
.form .form-l {
  background: var(--loss);
  color: #fff;
}
.hide-sm {
  display: none;
}
.show-sm {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
}
@media (min-width: 700px) {
  .hide-sm {
    display: table-cell;
  }
  .show-sm {
    display: none;
  }
}

/* schedule */
.day h2 {
  font-size: 1.15rem;
}
.schedule td:first-child {
  font-family: var(--display);
  color: var(--gold);
  width: 1%;
}
.fx {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fx-logos {
  display: inline-flex;
  flex-shrink: 0;
}
.fx-logos .badge + .badge {
  margin-left: -8px;
}
.fx a {
  color: var(--text);
}

/* ---------- scorecard ---------- */
.innings h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-top: 1.4em;
}
.innings p.muted {
  font-size: 0.88rem;
}
.with-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- teams ---------- */
.teams-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.team-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  min-height: 112px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--c) 85%, transparent), transparent 70%),
    linear-gradient(135deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.team-tile::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 18px solid var(--a);
  opacity: 0.08;
}
.team-tile:hover {
  color: #fff;
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--a) 50%, transparent);
  box-shadow: 0 22px 40px -20px var(--c);
}
.team-tile:hover .badge {
  transform: scale(1.08) rotate(-4deg);
}
.tt-logo .badge {
  transition: transform 0.3s;
}
.tt-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.tt-body strong {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.tt-meta {
  font-size: 0.82rem;
  color: #d0d7ee;
}
.tt-stat {
  margin-left: auto;
  text-align: right;
  font-size: 0.75rem;
  color: #d0d7ee;
  display: grid;
}
.tt-stat b {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--a);
  line-height: 1;
}

.team-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 22px;
  border-radius: 24px;
  margin-bottom: 32px;
  background:
    radial-gradient(100% 140% at 0% 0%, color-mix(in srgb, var(--c) 95%, transparent), transparent 75%),
    linear-gradient(135deg, color-mix(in srgb, var(--c) 45%, #060a18), #0a0f26);
  border: 1px solid color-mix(in srgb, var(--a) 30%, transparent);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.team-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -60px;
  top: 50%;
  width: 360px;
  height: 360px;
  transform: translateY(-50%) rotate(-12deg);
  background: var(--logo) center / contain no-repeat;
  opacity: 0.12;
}
.team-hero h1 {
  margin-bottom: 0.2em;
}
.team-hero p {
  margin: 0;
  color: #e3e8f7;
}
.team-hero a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 700px) {
  .team-hero {
    padding: 40px;
  }
}
.player-hero .player-photo {
  margin: 0;
  width: 140px;
}
.player-photo img,
.player-photo-ph {
  width: 140px;
  aspect-ratio: 4/5;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}
.player-photo-ph {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 3rem;
  background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 40%, #000));
  color: var(--a);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.player-photo figcaption {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.facts > div {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
}
.facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.facts dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.2rem;
}

/* squads */
.squad-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.squad-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.squad-list a {
  color: var(--text);
  font-weight: 600;
}

/* ---------- leaders & stats ---------- */
.leaders,
.board {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
}
.leaders h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.leaders ol,
.board ol {
  list-style: none;
  counter-reset: r;
  padding: 0;
  margin: 0 0 18px;
}
.leaders li,
.board li {
  counter-increment: r;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.leaders li::before,
.board li::before {
  content: counter(r);
  font-family: var(--display);
  color: var(--muted);
  width: 18px;
}
.leaders li:first-child::before,
.board li:first-child::before {
  color: var(--gold);
}
.leaders li strong,
.board li strong {
  margin-left: auto;
  font-family: var(--display);
  font-size: 1.15rem;
}
.leader-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.leader-name a {
  color: var(--text);
  font-weight: 600;
}
.grow {
  flex: 1;
  min-width: 0;
}
.boards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.board h2 {
  font-size: 1.1rem;
  padding: 0;
}
.games {
  font-size: 0.92rem;
}
.plain {
  list-style: none;
  padding: 0;
}
.plain li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- news & blog ---------- */
.news {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 800px) {
  .news {
    grid-template-columns: 1fr 1fr;
  }
}
.news li {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--crimson);
}
.news a {
  color: var(--text);
  font-weight: 600;
  display: block;
}
.news a:hover {
  color: var(--gold);
}
.news time {
  font-size: 0.78rem;
  color: var(--muted);
}
.news p {
  font-size: 0.9rem;
  color: #c4cce4;
  margin: 6px 0 0;
}
.posts {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.post-card {
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 20px;
  border-radius: var(--radius);
  color: var(--text);
  background:
    linear-gradient(90deg, var(--crimson), var(--blue)) top / 100% 3px no-repeat,
    linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  transition: transform 0.2s;
}
.post-card:hover {
  color: var(--text);
  transform: translateY(-3px);
}
.post-card time {
  font-size: 0.75rem;
  color: var(--muted);
}
.post-card strong {
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
  line-height: 1.2;
}
.post-card span {
  font-size: 0.9rem;
  color: #c4cce4;
}
.post-card .more {
  color: var(--gold);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}
.prose {
  max-width: 760px;
}
.prose p,
.prose li {
  color: #d5dcf0;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose .table-wrap,
.prose table.data {
  margin: 16px 0;
}
.prose table.data {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: block;
  overflow-x: auto;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: 8px;
  padding: 12px 16px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq details p {
  margin: 8px 0 0;
}
.related ul {
  padding-left: 18px;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  font-size: 0.88rem;
  color: var(--muted);
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.foot-nav a {
  color: #c4cce4;
}
.foot-note {
  max-width: 90ch;
}

/* ---------- mobile tab bar ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(6, 10, 24, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-2);
}
.tabbar a {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 4px 0;
  font-size: 0.68rem;
  color: var(--muted);
  border-radius: 10px;
}
.tabbar svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tabbar a[aria-current='page'] {
  color: #fff;
}
.tabbar a[aria-current='page'] svg {
  stroke: var(--crimson-2);
}
@media (min-width: 900px) {
  .tabbar {
    display: none;
  }
}

/* ---------- live toast ---------- */
.live-toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 70;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px -8px rgba(232, 23, 63, 0.8);
  animation: rise 0.25s ease-out;
}
@media (min-width: 900px) {
  .live-toast {
    bottom: 24px;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- wordmark ---------- */
.brand-mark {
  box-shadow: none;
  border-radius: 0;
  filter: drop-shadow(0 4px 12px rgba(232, 23, 63, 0.35));
}
.wm {
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.wm i {
  font-style: normal;
  color: var(--gold);
}

/* ---------- "More" sheet in the tab bar ---------- */
.tabbar .more {
  position: static;
}
.tabbar summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 4px 0;
  font-size: 0.68rem;
  color: var(--muted);
}
.tabbar summary::-webkit-details-marker {
  display: none;
}
.tabbar summary[aria-current='page'],
.more[open] summary {
  color: #fff;
}
.tabbar summary[aria-current='page'] svg,
.more[open] summary svg {
  stroke: var(--crimson-2);
}
.more-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% + 10px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(15, 24, 56, 0.98);
  border: 1px solid var(--line-2);
  box-shadow: 0 -20px 50px -10px rgba(0, 0, 0, 0.8);
  animation: rise-sheet 0.18s ease-out;
}
@keyframes rise-sheet {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.more-sheet a {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--text);
}
.more-sheet a[aria-current='page'] {
  background: rgba(232, 23, 63, 0.22);
  box-shadow: inset 0 0 0 1px rgba(232, 23, 63, 0.5);
}
.tabbar a[aria-current='page'],
.tabbar summary[aria-current='page'] {
  position: relative;
}
.tabbar a[aria-current='page']::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 30%;
  right: 30%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--crimson-2);
}

/* ---------- phones ---------- */
@media (max-width: 699px) {
  body {
    font-size: 15px;
    background-attachment: scroll;
  }
  .header-row {
    height: 56px;
    gap: 10px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-text {
    font-size: 1rem;
  }
  .brand-text small {
    font-size: 0.66rem;
    margin-top: 3px;
  }
  .live-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .ticker-row {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .ticker-list {
    margin: 0 -16px;
    padding: 0 16px 2px;
    scroll-padding: 0 16px;
  }
  .chip {
    width: 168px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }
  .chip-score {
    font-size: 0.92rem;
  }
  main {
    padding-top: 14px;
  }
  main > section,
  main > div > section {
    margin-bottom: 30px;
  }
  h1 {
    font-size: clamp(1.45rem, 6.6vw, 1.9rem);
  }
  .hero {
    padding-top: 8px;
    gap: 22px;
  }
  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }
  .lede {
    font-size: 0.95rem;
  }
  .hero-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 18px 0;
  }
  .hero-links .btn-primary {
    grid-column: 1 / -1;
  }
  .btn {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.85rem;
  }
  .hero-logos {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 2px 16px;
  }
  .hero-logos::-webkit-scrollbar {
    display: none;
  }
  .hero-logos a {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .hero-logos .badge-md {
    width: 32px;
    height: 32px;
  }
  .spotlight,
  .scoreboard {
    padding: 16px 14px;
    border-radius: 20px;
  }
  .sp-head,
  .sb-top {
    font-size: 0.75rem;
  }
  .sp-teams,
  .sb-teams {
    gap: 6px;
  }
  .sp-status,
  .sb-status {
    font-size: 0.92rem;
    margin-top: 14px;
  }
  .crumbs {
    flex-wrap: nowrap;
    overflow: hidden;
    font-size: 0.78rem;
    margin-bottom: 10px;
  }
  .crumbs > :last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .rail {
    grid-auto-columns: 84%;
  }
  .section-head {
    margin-bottom: 10px;
  }
  .section-head a {
    font-size: 0.75rem;
  }
  .data th,
  .data td {
    padding: 9px 7px;
  }
  table.data {
    font-size: 0.85rem;
  }
  .team-cell {
    gap: 7px;
  }
  .team-tile {
    min-height: 92px;
    padding: 14px;
  }
  .team-tile .badge-lg {
    width: 56px;
    height: 56px;
  }
  .team-hero {
    padding: 22px 18px;
    gap: 14px;
    border-radius: 20px;
  }
  .team-hero .badge-xl {
    width: 88px;
    height: 88px;
  }
  .team-hero::after {
    width: 240px;
    height: 240px;
    right: -50px;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .facts > div {
    padding: 10px 12px;
  }
  .facts dd {
    font-size: 1rem;
  }
  .leaders,
  .board {
    padding: 14px;
  }
  .news li {
    padding: 14px;
  }
  .site-footer {
    padding-top: 28px;
  }
}
@media (max-width: 360px) {
  .brand-text small {
    display: none;
  }
  .brand-text {
    font-size: 0.92rem;
  }
}
@media (max-width: 699px) {
  .points .team-cell a {
    line-height: 1.25;
    font-size: 0.85rem;
  }
  .points .badge-sm {
    width: 24px;
    height: 24px;
  }
}
