:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --panel: #101010;
  --panel-2: #161616;
  --border: #2a2a2a;
  --red: #d71920;
  --red-2: #ef233c;
  --red-3: #930d12;
  --white: #f4f4f4;
  --muted: #a6a6a6;
  --soft: #d7d7d7;
  --green: #29c270;
  --gold: #ffca55;
  --bad: #ff8d97;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(215, 25, 32, 0.16), transparent 24%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  font-family: Inter, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.container {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--red);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  display: inline-block;
  padding: 0 10px 4px;
  font-family: Oswald, Arial Narrow, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 2rem;
  text-transform: uppercase;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(239,35,60,.4);
}

.brand-copy small,
.section-kicker,
.card-eyebrow,
.stat-label,
.table-subtitle,
.team-meta,
.footer-note,
.filter-label,
.ticker-label {
  text-transform: uppercase;
  letter-spacing: .14em;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  margin-bottom: 4px;
}

.brand-copy strong {
  display: block;
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #303030;
  background: linear-gradient(180deg, #191919, #111111);
  color: var(--soft);
  font-size: .92rem;
  font-weight: 700;
  transition: .18s ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(180deg, var(--red), var(--red-3));
  color: #fff;
  transform: translateY(-1px);
}

.accent,
.rank-num {
  color: #ffd7db;
}

.results-ribbon {
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(90deg, rgba(215,25,32,.08), rgba(255,255,255,.015), rgba(215,25,32,.08));
}

.results-marquee {
  overflow: hidden;
  padding: 10px 0;
}

.results-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: bbzn-marquee 34s linear infinite;
}

.results-marquee:hover .results-track {
  animation-play-state: paused;
}

.recent-game-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #171717, #101010);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--soft);
  font-size: .84rem;
}

.recent-game-pill strong {
  color: var(--white);
  font-weight: 800;
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(215,25,32,.14);
  border: 1px solid rgba(215,25,32,.24);
  color: #ffd9db;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.recent-game-date {
  color: #ffd0d4;
  font-weight: 800;
}

@keyframes bbzn-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

h1, h2, h3, h4, .headline, .subheadline {
  margin: 0;
  font-family: Oswald, Arial Narrow, sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.page {
  padding: 28px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .95fr;
  gap: 22px;
}

.hero-main,
.panel,
.feature-card,
.team-card,
.leader-card,
.stat-panel,
.quick-card {
  background: linear-gradient(180deg, rgba(22,22,22,.98), rgba(10,10,10,.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-main {
  min-height: 360px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.84)),
    radial-gradient(circle at top left, rgba(215, 25, 32, .34), transparent 36%),
    linear-gradient(135deg, #1f1f1f, #0d0d0d 65%);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd7db;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red-2);
  box-shadow: 0 0 18px rgba(239,35,60,.55);
}

.headline {
  font-size: clamp(2.3rem, 5.4vw, 5rem);
  line-height: .98;
  max-width: 10ch;
  margin-bottom: 14px;
}

.subheadline {
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-copy,
.panel-copy,
.feature-copy,
.team-copy,
.note-copy {
  color: var(--soft);
  line-height: 1.65;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.feature-card,
.quick-card,
.stat-panel,
.panel-body,
.team-card,
.leader-card {
  padding: 20px;
}

.card-eyebrow {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card strong,
.quick-card strong,
.note-title {
  display: block;
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: 1.08rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.quick-grid,
.feature-grid,
.stats-overview,
.cards-grid,
.leaders-grid,
.summary-grid {
  display: grid;
  gap: 18px;
}

.quick-grid.cols-3,
.stats-overview,
.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.cols-2,
.table-grid,
.leaders-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid.cols-2,
.cards-grid.cols-3,
.leaders-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 16px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-badge,
.record-pill,
.side-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  border: 1px solid rgba(215,25,32,.24);
  background: rgba(215,25,32,.14);
  color: #ffd9db;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.panel-title {
  font-size: 1.34rem;
}

.table-wrap { padding: 8px 12px 14px; }

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  padding: 12px 10px;
  text-align: left;
}

tbody td {
  padding: 13px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .96rem;
}

tbody tr:hover { background: rgba(255,255,255,.03); }

.standings-link {
  display: inline-block;
  min-width: 100%;
  color: inherit;
  font-weight: 800;
  transition: .16s ease;
}

.standings-link:hover {
  color: #ffd7db;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.record-good { color: var(--green); font-weight: 800; }
.record-mid { color: var(--gold); font-weight: 800; }
.record-bad { color: var(--bad); font-weight: 800; }
.record-even { color: var(--white); font-weight: 800; }

.team-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.team-name {
  font-size: 1.35rem;
}

.team-meta {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-box {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: #111;
  padding: 12px;
}

.stat-label {
  display: block;
  color: #ffd7db;
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-value {
  display: block;
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.stat-sub {
  color: var(--muted);
  font-size: .88rem;
}

.leader-card {
  position: relative;
  overflow: hidden;
}

.leader-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent 78%);
}

.leader-title {
  font-size: 1.28rem;
  margin-bottom: 8px;
}

.leader-name {
  font-size: 1.45rem;
  margin: 6px 0 4px;
}

.leader-meta,
.helper-text,
.table-subtitle,
.footer-note,
.filter-note {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-label {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}

.select {
  background: #121212;
  color: var(--white);
  border: 1px solid #343434;
  border-radius: 12px;
  padding: 11px 12px;
  min-width: 260px;
}

.note-list {
  display: grid;
  gap: 14px;
}

.team-history-box {
  margin-top: 2px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #151515, #0e0e0e);
  border: 1px solid rgba(255,255,255,.07);
}

.team-history-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.team-history-count,
.game-date {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.latest-game-line {
  margin-bottom: 10px;
}

.game-snippet-list {
  display: grid;
  gap: 8px;
}

.game-snippet {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: .9rem;
}

.game-snippet-link:hover {
  color: #ffd7db;
}

.game-snippet.empty {
  color: var(--muted);
}

.game-result-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #222;
  color: #fff;
}

.game-result-chip.win {
  background: rgba(41,194,112,.15);
  border: 1px solid rgba(41,194,112,.28);
  color: #9ff0bf;
}

.game-result-chip.loss {
  background: rgba(215,25,32,.16);
  border: 1px solid rgba(215,25,32,.28);
  color: #ffd0d4;
}

.games-list {
  display: grid;
  gap: 14px;
}

.game-card-link {
  display: block;
}

.game-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #171717, #101010);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  transition: .18s ease;
}

.game-card-link:hover .game-card {
  transform: translateY(-2px);
  border-color: rgba(215,25,32,.28);
}

.game-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.game-scoreline {
  display: grid;
  gap: 10px;
}

.game-card-footer {
  margin-top: 12px;
  color: #ffd7db;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.game-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: var(--soft);
}

.game-team-name-wrap,
.game-detail-team-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-team-row strong {
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: 1.2rem;
  color: var(--white);
}

.game-team-row.winner {
  outline: 1px solid rgba(41,194,112,.28);
  background: rgba(41,194,112,.08);
}

.note {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #171717, #101010);
  border: 1px solid rgba(255,255,255,.07);
}

.footer {
  padding: 20px 0 36px;
}

.footer-line {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.news-stack {
  display: grid;
  gap: 22px;
}

.news-hero-main {
  min-height: 340px;
}

.news-article .panel-body {
  padding: 24px;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(215,25,32,.14);
  border: 1px solid rgba(215,25,32,.28);
  color: #ffd9db;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
}

.news-title {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.02;
  margin-bottom: 10px;
}

.news-date {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.news-quote {
  margin: 18px 0;
  padding: 18px 18px 18px 20px;
  border-left: 4px solid var(--red);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border-radius: 14px;
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.65;
}

.news-quote span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.news-media {
  margin: 18px 0 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #141414, #0d0d0d);
}

.news-media img {
  width: 100%;
  height: auto;
  display: block;
}

.news-media figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,.06);
}

.news-signoff {
  margin-top: 18px;
  color: #ffd9db;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.news-link {
  display: inline-flex;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--red), var(--red-3));
  color: #fff;
  font-weight: 800;
}

.game-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.game-detail-date {
  color: #ffd7db;
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.game-detail-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.game-detail-team,
.leg-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #171717, #101010);
}

.game-detail-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.game-detail-team.score-left {
  display: grid;
  grid-template-columns: auto 1fr;
}

.game-detail-team strong {
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: 2rem;
}

.game-detail-team-text span:last-child {
  font-size: 1rem;
  font-weight: 700;
}

.game-detail-team-text.align-right {
  align-items: flex-end;
  text-align: right;
}

.game-detail-team.winner {
  outline: 1px solid rgba(41,194,112,.28);
  background: rgba(41,194,112,.08);
}

.game-detail-vs {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.legs-list {
  display: grid;
  gap: 14px;
}

.leg-card {
  padding: 18px;
}

.leg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.leg-scoreline {
  margin-bottom: 10px;
}

.leg-note {
  margin-top: 6px;
}

.empty-legs-box {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.15);
  background: linear-gradient(180deg, #151515, #0d0d0d);
}

.empty-legs-box strong {
  display: block;
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

@media (max-width: 1100px) {
  .hero-grid,
  .table-grid,
  .cards-grid.cols-2,
  .leaders-layout,
  .feature-grid.cols-2,
  .cards-grid.cols-3,
  .leaders-grid,
  .summary-grid,
  .quick-grid.cols-3,
  .stats-overview,
  .game-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1380px); }
  .topbar-inner { min-height: auto; padding: 14px 0; flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; }
  .nav-link { flex: 1 1 auto; text-align: center; }
  .headline { max-width: 100%; }
  .team-stats { grid-template-columns: 1fr; }
  .game-card-top,
  .team-history-head,
  .leg-card-top { align-items: flex-start; flex-direction: column; }
  .recent-game-pill { padding: 8px 12px; }
  .game-detail-scoreboard { grid-template-columns: 1fr; }
  .game-detail-team.score-left { grid-template-columns: 1fr auto; }
  .game-team-row { align-items: flex-start; flex-direction: column; }
}
