.topbar {
  position:sticky;
  top:0;
  z-index:1000;

  display:flex;
  justify-content:space-between;
  align-items:center;

  gap:20px;

  padding:14px 22px;

  background:rgba(5,8,20,0.88);
  backdrop-filter:blur(10px);

  border-bottom:1px solid rgba(255,255,255,0.08);
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;

  color:white;
  text-decoration:none;
  font-weight:bold;
}

.brand img {
  width:42px;
}

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

.nav a {
  padding:10px 14px;
  border-radius:999px;

  text-decoration:none;
  color:white;

  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);

  transition:0.2s;
}

.nav a:hover {
  background:rgba(255,255,255,0.14);
}

.nav a.active {
  background:var(--red);
}

.nav a.disabled {
  opacity:0.45;
}

.page-wrap {
  max-width:1100px;
  margin:auto;
  padding:30px 16px 80px;
}

.page-header {
  margin-bottom:28px;
}

.page-header h1 {
  margin-bottom:8px;
}

.page-header p {
  max-width:700px;
}

.footer {
  margin-top:40px;
  padding:30px 20px;
  text-align:center;
  color:rgba(255,255,255,0.5);
}

.data-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

@media(min-width:850px) {
  .data-grid {
    grid-template-columns:1fr 1fr;
  }
}

.data-card {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:24px;
  padding:20px;
  box-shadow:0 12px 35px rgba(0,0,0,0.28);
}

.data-card h2 {
  margin-top:0;
}

.match-list {
  display:flex;
  flex-direction:column;
}

.match-item {
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;

  padding:14px 0;

  border-bottom:1px solid rgba(255,255,255,0.08);
}

.match-item:last-child {
  border-bottom:none;
}

.match-meta {
  color:var(--muted);
  font-size:14px;
}

.match-score {
  font-size:22px;
  font-weight:bold;
  color:var(--gold);
}

.badge-small {
  display:inline-block;

  padding:5px 9px;
  border-radius:999px;

  font-size:12px;
  font-weight:bold;

  margin-top:6px;

  background:rgba(255,255,255,0.08);
}

.badge-small.live {
  background:rgba(215,25,32,0.22);
  color:#ffb4b4;
}

.badge-small.done {
  background:rgba(34,197,94,0.18);
  color:#bbf7d0;
}
