@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #06111f;
  --bg-deep: #040b14;
  --surface: #0b1d34;
  --surface-2: #0f2948;
  --surface-3: #123254;
  --text: #ffffff;
  --muted: #b8c7d8;
  --gold: #d4ad57;
  --gold-soft: #f0d79b;
  --red: #d34747;
  --green: #3ca979;
  --border: rgba(255, 255, 255, 0.09);
  --gold-border: rgba(212, 173, 87, 0.28);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, sans-serif;
  background:
    radial-gradient(circle at top, rgba(25, 62, 101, 0.22), transparent 34%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

button,
a,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 10, 20, 0.42), rgba(3, 10, 20, 0.9)),
    radial-gradient(circle at center, transparent 0%, rgba(3, 10, 20, 0.35) 70%);
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5vw;
  backdrop-filter: blur(8px);
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.02rem;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a,
.footer a {
  color: #dbe7f5;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--gold-soft);
}

.menu-button {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  max-width: 1000px;
}

.hero-logo {
  width: min(320px, 70vw);
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.76rem;
}

.hero h1,
.section h2,
.table-card h3,
.card h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  margin: 0.18em 0;
  line-height: 0.98;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #c8d4e2;
  margin: 0;
}

.hero-actions,
.info-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #e1c070, var(--gold));
  color: #071322;
  box-shadow: 0 14px 30px rgba(212, 173, 87, 0.2);
}

.button-secondary {
  border: 1px solid rgba(212, 173, 87, 0.68);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.section {
  padding: 88px 5vw;
  max-width: 1400px;
  margin: auto;
}

.section-heading {
  margin-bottom: 30px;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0.2em 0;
}

.live-grid,
.final-grid,
.info-grid,
.table-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.table-card {
  background: linear-gradient(180deg, rgba(15, 41, 72, 0.98), rgba(10, 29, 52, 0.98));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 173, 87, 0.42);
}

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

.live-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
}

.live-card-top,
.final-card-heading,
.game-row-status,
.live-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-badge,
.status-live {
  background: var(--red);
  color: #fff;
}

.status-finished {
  background: rgba(60, 169, 121, 0.16);
  color: #9ae3bf;
}

.status-upcoming,
.status-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #c9d7e6;
}

.live-timer,
.mini-live-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #fff;
}

.live-timer {
  font-size: 1.15rem;
}

.mini-live-timer {
  color: #ffb2b2;
}

.live-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 28px 0 16px;
  font-size: clamp(1.25rem, 3vw, 2.1rem);
  font-weight: 800;
}

.scoreline span:last-child {
  text-align: right;
}

.filters {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-button {
  background: #102947;
  color: #d8e3ef;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-button:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 173, 87, 0.35);
}

.filter-button.active {
  background: var(--gold);
  color: #071322;
  border-color: var(--gold);
}

.reset-filter {
  width: fit-content;
  background: transparent;
}

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

.game-row {
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, rgba(12, 33, 59, 0.98), rgba(9, 25, 45, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: opacity 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}

.game-row:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 173, 87, 0.24);
}

.game-row.live {
  border-color: rgba(211, 71, 71, 0.6);
  box-shadow: 0 0 0 1px rgba(211, 71, 71, 0.12);
}

.game-row.beendet {
  opacity: 0.82;
}

.game-row.dimmed {
  opacity: 0.14;
}

.game-row-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.game-row-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
}

.game-row-teams strong:last-child {
  text-align: right;
}

.game-score,
.final-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
}

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

.final-card.live {
  border-color: rgba(211, 71, 71, 0.58);
}

.final-card h3 {
  margin: 8px 0 0;
  font-size: 1.5rem;
}

.final-card-status {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.final-time {
  color: var(--muted);
  margin-top: 18px;
}

.final-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.final-team {
  display: grid;
  gap: 6px;
}

.final-team:last-child {
  text-align: right;
}

.final-team small {
  color: var(--gold);
  font-weight: 700;
}

.final-score {
  font-size: 1.7rem;
}

.table-card h3 {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
}

.standings {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.standings th,
.standings td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.standings th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.standings td {
  font-weight: 600;
}

.qualified-row {
  background: rgba(212, 173, 87, 0.06);
}

.info-card h3 {
  margin: 10px 0 8px;
  font-size: 1.2rem;
}

.info-card p,
.empty-card p,
.error-card p,
.loading-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.loading-card,
.error-card,
.empty-card {
  min-height: 120px;
  display: grid;
  align-content: center;
}

.error-card {
  border-color: rgba(211, 71, 71, 0.38);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 36px 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-deep);
}

.footer p {
  color: var(--muted);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .live-grid,
  .final-grid,
  .info-grid,
  .table-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .topbar {
    padding: 18px 5vw;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 5vw;
    right: 5vw;
    flex-direction: column;
    background: rgba(7, 26, 49, 0.98);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-button {
    display: block;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-top: 90px;
  }

  .section {
    padding: 64px 5vw;
  }

  .scoreline,
  .game-row-teams,
  .final-matchup {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .scoreline span:last-child,
  .game-row-teams strong:last-child,
  .final-team:last-child {
    text-align: center;
  }

  .final-card-heading,
  .live-card-top,
  .game-row-status {
    align-items: flex-start;
  }

  .final-card-heading {
    flex-direction: column;
  }

  .final-card-status {
    justify-items: start;
  }

  .game-row-status {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .filters {
    gap: 18px;
  }

  .filter-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-button {
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(2.4rem, 14vw, 4.2rem);
  }

  .hero-logo {
    width: min(260px, 72vw);
  }

  .card,
  .table-card {
    padding: 18px;
    border-radius: 20px;
  }

  .section h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .game-row {
    padding: 16px;
  }
}

.section-heading-secondary {
  margin-top: 72px;
}

.final-placement-card {
  padding: 0;
  overflow: hidden;
}

.placement-list {
  display: grid;
}

.placement-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.placement-row:last-child {
  border-bottom: 0;
}

.placement-rank {
  color: var(--gold-soft);
  font-size: 1.3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

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

.group-card h3 {
  margin: 8px 0 18px;
  font-size: 1.45rem;
}

.group-team-list {
  display: grid;
  gap: 10px;
}

.group-team-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.group-team-row span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.rules-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 41, 72, 0.98), rgba(10, 29, 52, 0.98));
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow);
}

.rules-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.rules-card-heading h3 {
  margin: 8px 0 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

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

.rule-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.rule-item h4 {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-size: 0.98rem;
}

.rule-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .group-grid,
  .rules-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .section-heading-secondary {
    margin-top: 56px;
  }

  .rules-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .rules-card-heading .button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .placement-row {
    grid-template-columns: 52px 1fr;
    padding: 15px 16px;
  }

  .rules-card {
    padding: 18px;
    border-radius: 20px;
  }
}