@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap');

:root{
  --bg:#0f0f10;
  --card:#161617;
  --text:#f5f5f5;
  --muted:rgba(245,245,245,.7);
  --line:rgba(255,255,255,.10);
  --accent:#fc3d3d;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:"Sora",system-ui,-apple-system,Segoe UI,sans-serif;
}

body{
  background:var(--bg);
  color:var(--text);
}

.wrap{
  max-width:980px;
  margin:0 auto;
  padding:26px 18px 60px;
}

.top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

h1{
  font-size:1.8rem;
  letter-spacing:.01em;
}

.sub{
  margin-top:6px;
  color:var(--muted);
  line-height:1.5;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.btn{
  display:inline-block;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  text-decoration:none;
  color:var(--text);
  background:transparent;
  font-weight:600;
  font-size:.95rem;
}

.btn:hover{
  border-color:#fc3d3d;
}

.btn.primary{
  border-color:#fc3d3d;
  color:var(--accent);
}

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:14px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
}

.card-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.card-title h2{
  font-size:1.05rem;
}

.card-title a{
  color:var(--muted);
  text-decoration:none;
  font-size:.9rem;
}

.card-title a:hover{
  color:var(--text);
}

table{
  width:100%;
  border-collapse:collapse;
}

th,
td{
  padding:10px 8px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
}

th{
  color:var(--muted);
  font-weight:600;
  font-size:.85rem;
}

td{
  font-size:.95rem;
}

.pos{
  width:54px;
  color:var(--muted);
}

.pts{
  text-align:right;
  width:90px;
}

.team{
  color:var(--muted);
}

.empty{
  color:var(--muted);
  padding:10px 0;
}

footer{
  margin-top:18px;
  color:rgba(245,245,245,.55);
  font-size:.85rem;
}

@media (min-width: 820px){
  .grid{
    grid-template-columns:1fr 1fr;
  }
  h1{
    font-size:2rem;
  }
}