:root {
  --ink: #111318;
  --muted: #5c6470;
  --line: #dfe3ea;
  --paper: #f7f8fb;
  --white: #ffffff;
  --red: #e63746;
  --gold: #ffb229;
  --green: #0f9f6e;
  --navy: #17233b;
  --shadow: 0 18px 55px rgba(17, 19, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a:hover {
  color: var(--red);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.9), rgba(17, 19, 24, 0.62), rgba(17, 19, 24, 0.28)),
    linear-gradient(0deg, rgba(17, 19, 24, 0.7), rgba(17, 19, 24, 0.12));
}

.hero-media img {
  width: 100%;
  height: 100%;
  padding: clamp(18px, 3vw, 46px);
  object-fit: contain;
  background: #0b0d12;
  filter: saturate(1.08) contrast(1.04);
}

.hero-content {
  position: relative;
  max-width: 820px;
  padding-bottom: 64px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.game-alert {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 28px;
  max-width: 390px;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.game-alert strong,
.game-alert span {
  display: block;
}

.game-alert span {
  color: var(--muted);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-links a {
  padding: 22px clamp(18px, 3vw, 38px);
  background: var(--white);
}

.quick-links span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quick-links strong {
  display: block;
  margin-top: 5px;
}

.section,
.contact-band {
  padding: clamp(50px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section p {
  color: var(--muted);
}

.news-stack,
.info-list,
.team-grid,
.standings-grid {
  display: grid;
  gap: 16px;
}

.info-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-item,
.info-list article,
.team-card,
.detail-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.countdown-card {
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.countdown-grid span {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 14px 8px;
  color: var(--muted);
  background: #f0f3f8;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.countdown-grid strong {
  display: block;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

#countdown-message {
  margin: 18px 0 0;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.league-notice {
  grid-column: 1 / -1;
  border-left: 6px solid var(--red);
}

.league-notice ul,
#league-format ul {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 700;
}

.notice-signoff {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 800;
}

.news-item time {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.helper-text {
  max-width: 420px;
  color: var(--muted);
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  background: #f0f3f8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  padding: 4px 9px;
  color: var(--green);
  background: rgba(15, 159, 110, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.standings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.standings-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.standings-table {
  min-width: 620px;
}

.standings-table th:not(:first-child),
.standings-table td:not(:first-child) {
  text-align: center;
}

.standings-team {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.standings-team img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.standings-team:hover {
  color: var(--red);
}

.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-card > a {
  display: block;
  width: min(100%, 150px);
  margin: 0 auto 16px;
}

.team-card > a img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.team-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  color: var(--red);
  background: rgba(230, 55, 70, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.team-card p {
  margin-bottom: 16px;
}

.table-link,
.team-card h3 a {
  color: inherit;
}

.table-link:hover,
.team-card h3 a:hover,
.mini-schedule a:hover {
  color: var(--red);
}

.roster-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--navy);
}

.page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 7vw, 84px);
}

.page-hero p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.team-page-hero > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.matchup-logos {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.matchup-logos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.matchup-logos span {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.detail-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-schedule {
  display: grid;
  gap: 10px;
}

.mini-schedule a {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #f0f3f8;
  border-radius: 8px;
}

.mini-schedule span,
.mini-schedule small,
.detail-list dd {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-list div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
}

.score-entry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.score-entry div {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #f0f3f8;
  border-radius: 8px;
  text-align: center;
}

.score-entry span {
  display: grid;
  min-height: 74px;
  place-items: center;
  color: var(--muted);
  background: var(--white);
  border: 2px dashed var(--line);
  border-radius: 8px;
  font-size: 42px;
  font-weight: 800;
}

.score-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.admin-intro {
  padding-bottom: 20px;
}

.admin-intro h1 {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 80px);
}

.admin-intro p {
  max-width: 760px;
  color: var(--muted);
}

.admin-panel {
  padding-top: 20px;
}

.locked {
  display: none;
}

.login-card {
  max-width: 520px;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 800;
}

.login-card input {
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #f0f3f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

#login-message {
  margin: 12px 0 0;
  color: var(--red);
  font-weight: 800;
}

.admin-actions {
  position: sticky;
  top: 72px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
  background: rgba(247, 248, 251, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.admin-actions p {
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.admin-games {
  display: grid;
  gap: 12px;
}

.admin-game {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px 160px 170px;
  gap: 14px;
  align-items: end;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-game span,
.admin-game p {
  color: var(--muted);
}

.admin-game h2 {
  margin-bottom: 4px;
  font-size: 20px;
}

.admin-game p {
  margin-bottom: 0;
}

.admin-game label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-game input,
.admin-game select {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  color: var(--ink);
  background: #f0f3f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--white);
  background: var(--navy);
}

.contact-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

footer a {
  font-weight: 800;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .quick-links,
  .standings-grid,
  .team-grid,
  .two-column {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .hero-media {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    padding-bottom: 160px;
  }

  .game-alert {
    right: 18px;
    left: 18px;
  }

  .quick-links,
  .standings-grid,
  .team-grid,
  .info-list,
  .detail-grid,
  .page-hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .roster-list {
    grid-template-columns: 1fr;
  }

  .score-entry {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .contact-band,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-game {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
