:root {
  --bg: #070707;
  --panel: rgba(14, 14, 14, 0.94);
  --panel-2: rgba(18, 18, 18, 0.98);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --muted-2: #8f8f8f;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top, #151515 0%, #080808 35%, #040404 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
}

.bracket-page {
  width: 100%;
}

.bracket-hero {
  position: relative;
  padding: 28px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.72) 35%, rgba(0,0,0,0.88) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.65)),
    var(--banner-image) center center / cover no-repeat;
}

.bracket-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.bracket-eyebrow {
  margin: 0 0 8px;
  color: #d7d7d7;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
}

.bracket-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.03;
}

.bracket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: #f3f3f3;
  font-weight: 700;
  font-size: 0.95rem;
}

.bracket-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.bracket-board {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 26px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}

.round,
.champion-column {
  min-width: 220px;
}

.round-title {
  margin-bottom: 18px;
  color: #f3f3f3;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.match-card,
.champion-card {
  position: relative;
  background: linear-gradient(to bottom, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.match-card {
  min-height: 92px;
}

.team-row {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 700;
  color: var(--text);
}

.team-row + .team-row {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.team-row span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.final-card {
  border-color: rgba(255, 255, 255, 0.14);
}

.champion-card {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.14);
}

.champion-label {
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.champion-name {
  font-size: 1.45rem;
  font-weight: 800;
}

.match-spacer.small {
  height: 22px;
}

.top-gap {
  height: 8px;
}

.semi-gap-1 {
  height: 65px;
}

.semi-gap-2 {
  height: 136px;
}

.final-gap {
  height: 180px;
}

.champion-spacer {
  height: 180px;
}

@media (max-width: 1100px) {
  .bracket-board {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .bracket-hero {
    padding: 22px 14px 16px;
  }

  .bracket-wrap {
    padding: 20px 14px 36px;
  }

  .bracket-board {
    gap: 16px;
  }

  .round,
  .champion-column {
    min-width: 240px;
  }
}

.series-board {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.series-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.series-team-card {
  background: linear-gradient(to bottom, rgba(14, 14, 14, 0.94), rgba(18, 18, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  padding: 24px;
  text-align: center;
}

.series-team-card h2 {
  margin: 0;
  font-size: 1.6rem;
}

.series-vs {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f5f5f5;
  text-align: center;
}

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

.series-game-card {
  min-height: 92px;
}

.dynamic-board {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dynamic-board .round {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 768px) {
  .series-teams {
    grid-template-columns: 1fr;
  }

  .series-games {
    grid-template-columns: 1fr;
  }
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.member-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eaeaea;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.member-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.bracket-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.bracket-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}