:root {
  --red: #e10600;
  --red-50: #fff0f0;
  --red-100: #ffe0e0;
  --bg: #ffffff;
  --text: #121212;
  --muted: #6b7280;
  --border: #e6e6e6;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 30px 0;
}

.section-title {
  margin: 0 0 20px;
  font-size: 28px;
  letter-spacing: 0.2px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.stack {
  display: grid;
  gap: 12px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-pad {
  padding: 18px;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  border: 1.5px solid var(--red);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s
      ease, color 0.15s ease;
  box-shadow: 0 6px 16px rgba(225, 6, 0, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  box-shadow: none;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 70px;
  height: 70px;
}

/* Burger */
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle .burger::before {
  position: absolute;
  transform: translateY(-6px);
}

.nav-toggle .burger::after {
  position: absolute;
  transform: translateY(6px);
}

/* Animate to "X" when open */
header.menu-open .nav-toggle .burger {
  transform: rotate(45deg);
}
header.menu-open .nav-toggle .burger::before {
  transform: rotate(90deg);
}
header.menu-open .nav-toggle .burger::after {
  opacity: 0;
}

/* Nav links */
nav.nav-links {
  display: flex;
  gap: 6px;
}

nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--red);
  font-weight: 700;
}

nav a:hover {
  background: var(--red-50);
}

nav a[aria-current='page'] {
  color: var(--red);
  background: var(--red-100);
}

/* Mobile nav */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  nav.nav-links {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px;
    display: none;
    gap: 8px;
  }

  header.menu-open nav.nav-links {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Hero */
.hero {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  width: min(900px, 92%);
}

.hero-glass {
  display: inline-block;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1px);
  padding: 16px 18px;
  border-radius: 14px;
}

.hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(26px, 4vw, 44px);
}

.hero p {
  margin: 0 0 14px;
  color: #eaeaea;
}

/* Value cards */
.value-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.value-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff5f5;
  color: var(--red);
  font-size: 26px;
  border: 1px solid #ffd6d6;
}

/* Events */
.event-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.event-card .card-pad {
  display: grid;
  gap: 6px;
}

.event-date {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff5f5;
  color: var(--red);
  border: 1px solid #ffd6d6;
  font-size: 12px;
  font-weight: 700;
}

/* Teams */
.team-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.team-card .card-pad {
  display: grid;
  gap: 6px;
}

/* Team hero */
.team-hero {
  display: grid;
  gap: 16px;
}

.team-banner {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.team-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.team-info {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.team-info .info-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.team-info h4 {
  margin: 0 0 6px;
}

/* Games */
/* Scrollable games box */
.games-box {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.games-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  scrollbar-gutter: stable;
}

@media (max-width: 720px) {
  .games-scroll {
    max-height: 60vh;
  }
}

/* Game row with right-aligned score */
.game {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

@media (max-width: 720px) {
  .game {
    grid-template-columns: 80px 1fr auto;
    align-items: start;
  }
}

.game + .game {
  margin-top: 10px;
}

.game .meta {
  color: var(--muted);
  font-size: 14px;
}

.game-score {
  white-space: nowrap;
  font-weight: 800;
  color: var(--red);
  background: var(--red-50);
  border: 1px solid #ffd6d6;
  border-radius: 999px;
  padding: 4px 10px;
  align-self: center;
}

.game strong {
  color: #222;
}

.game .meta {
  color: var(--muted);
  font-size: 14px;
}

/* Players */
.player-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.player-card img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

.player-card .card-pad {
  display: grid;
  gap: 4px;
}

.player-card small {
  color: var(--muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 40px;
}

.modal.hidden {
  display: none;
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.modal-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  padding: 18px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.modal-close {
  border: none;
  background: transparent;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close svg {
  width: 20px;
  height: 20px;
  display: block;
}

.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 10px;
  margin-top: 10px;
  font-size: 14px;
}

.kv b {
  color: #333;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-left: 56px;
  margin-bottom: 18px;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 10px;
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}

.timeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline-card img {
  width: 100%;
  height: auto;
  display: block;
}

.timeline-card .card-pad {
  padding: 14px;
}

/* Board */
.board-card img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 26px 0 14px;
}

.footer-section h4 {
  margin: 0 0 8px;
}

.footer-section .stack a {
  color: var(--red);
  font-weight: 600;
}

.footer-bottom {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  color: #555;
  font-size: 14px;
}

/* A11y helper */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

/* Contact page */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

/* Responsive */
@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .game {
    grid-template-columns: 1fr;
  }

  .hero {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .grid-4{
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
