:root{
  --bg:#151516;
  --card:#1f1f21;
  --card-odd:#252527;
  --muted:#bdbdbf;
  --accent: #e53935;
  --win-dot: #2ecc71;
}

*{box-sizing:border-box}
body{
  margin:0;
  background: linear-gradient(180deg,#1b1b1d 0%, #5b2b2b 100%);
  color:#fff;
  font-family: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

header{
  display:flex;
  justify-content: center;
  align-items:center;
  gap:16px;
  border-bottom:1px solid rgba(255,255,255,0.03);
}
.header-thumb{
  width:150px;height:56px;border-radius:8px;object-fit:cover;border:2px solid rgba(255,255,255,0.05)
}
.container{max-width:1500px;padding:0 18px 0 0}

/* Bracket wrapper */
.bracket{display:flex;flex-direction:column;gap:22px}

/* Each match card */
.match-card{
  width: 340px;
  display:flex;
  flex-direction: column;
  background:transparent;
  padding:2px 0;
  position:relative;
}

/* team block */
.team{
  display:flex;
  align-items:center;
  gap:12px;
  padding:6px;
  background:var(--card);
  min-height:72px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  border:1px solid rgba(255,255,255,0.03);
}

/* alternate background for top/bottom look like screenshot */
.team-top{ border-top-left-radius:20px; border-top-right-radius:20px; }
.team-bottom{ border-bottom-left-radius:20px; border-bottom-right-radius:20px; background:var(--card-odd); }

.flag{width:44px;height:44px;border-radius:50%;object-fit:cover}
.flag-emoji{font-size:28px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.02);border-radius:50%}

.team-info{flex:1}
.player{font-weight:500;font-size:14px;line-height:1.05}
div.seed{color:var(--muted);font-weight:600}

/* scores column */
.team-scores{display:flex;flex-direction:row;align-items:flex-end;gap:4px;min-width:84px}
.score{font-weight:800;font-size:20px;color:#ddd}
.winner .score{color:var(--accent)}

/* winner highlight */
.team.winner{
  box-shadow: 0 10px 28px rgba(229,57,53,0.06);
  border: 1px solid rgba(229,57,53,0.14);
}

/* connector SVG sits in center column */
.connector{
  display:flex;align-items:center;justify-content:center;height:100%;
}
.connector-svg{width:44px;height:100%;overflow:visible}
.connector-svg path{stroke:#ffffff;opacity:0.9}
@media (max-width:350px){
  .match-card{grid-template-columns:1fr 36px 1fr;padding:10px 0;gap:4px}
  .team{padding:10px;border-radius:14px;min-height:60px}
  .player{font-size:12px}
  .flag{width:36px;height:28px}
  .team-scores{min-width:40px}
}

/* small visual polish for multiple games */
.team-scores .score:nth-child(2){color:#ddd}
.team-scores .score:nth-child(3){color:#bbb}
@media (max-width:1280px) {
.bracket{
  max-width: 360px;
  display:flex;
  justify-content: center;
  align-items:center;
  gap:16px;
  border-bottom:1px solid rgba(255,255,255,0.03);  }
}