:root {
  --card-bg: #ffffff;
  --card-border: #e0e0e0;
  --text-muted: #555;
  --panel: #0f172a;
  --accent: #ff9f1c;
}

body {
  margin: 0;
  padding: 28px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, #eef2ff 0, #e8eef9 45%, #e3e9f5 75%, #dce3f2 100%);
  color: #0b0f1a;
}

h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.note {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14px;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.filter-btn {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.filter-btn.secondary {
  background: #fff;
  color: #0f172a;
}
.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}
.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f172a;
}
.filter-status {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

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

.match-block {
  background: var(--card-bg);
  border: 1px solid #e3e6ef;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.match-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.match-head .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.competition {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.time {
  color: var(--text-muted);
  font-size: 13px;
  display: none;
}

.match {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 252, 245, 0.94), rgba(240, 244, 252, 0.92));
  border: 1px dashed rgba(12, 18, 33, 0.1);
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match + .match {
  margin-top: 6px;
}

.club-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}

.ko {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  display: none;
}

.sim-btn {
  margin-top: 6px;
  padding: 8px 16px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  align-self: flex-start;
}

.sim-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.flag-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d8dce4;
  flex-shrink: 0;
  display: inline-block;
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18),
    0 3px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.flag-round::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.08) 40%, rgba(0, 0, 0, 0.15) 65%, rgba(255, 255, 255, 0.2));
  pointer-events: none;
  mix-blend-mode: screen;
}

.flag-italy {
  background: linear-gradient(90deg, #009246 0 33%, #ffffff 33% 66%, #ce2b37 66%);
}

.flag-spain {
  background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.flag-germany {
  background: linear-gradient(#000000 0 33%, #dd0000 33% 66%, #ffce00 66% 100%);
}

.flag-france {
  background: linear-gradient(90deg, #0055a4 0 33%, #ffffff 33% 66%, #ef4135 66%);
}

.flag-portugal {
  background: linear-gradient(90deg, #006600 0 40%, #c0003c 40% 100%);
}

.flag-netherlands {
  background: linear-gradient(#ae1c28 0 33%, #ffffff 33% 66%, #21468b 66% 100%);
}

.flag-brazil {
  background:
    radial-gradient(circle at 50% 50%, #002776 0 35%, transparent 36%),
    linear-gradient(135deg, transparent 42%, #ffdf00 42% 58%, transparent 58%),
    linear-gradient(45deg, transparent 42%, #ffdf00 42% 58%, transparent 58%),
    linear-gradient(#009c3b 0 100%);
}

.flag-england {
  background:
    linear-gradient(90deg, #ffffff 0 37%, #ce1126 37% 63%, #ffffff 63% 100%),
    linear-gradient(#ffffff 0 45%, #ce1126 45% 55%, #ffffff 55% 100%);
}

.flag-mexico {
  background: linear-gradient(90deg, #006341 0 33%, #ffffff 33% 66%, #ce1126 66% 100%);
}

.flag-croatia {
  background: linear-gradient(#ff0000 0 33%, #ffffff 33% 66%, #171796 66% 100%);
}

.flag-usa {
  background:
    repeating-linear-gradient(#b22234 0 7.69%, #ffffff 7.69% 15.38%),
    linear-gradient(90deg, #3c3b6e 0 45%, transparent 45% 100%);
  background-size: 100% 100%, 100% 100%;
}

.flag-turkey {
  background: #e30a17;
}

.flag-belgium {
  background: linear-gradient(90deg, #000000 0 33%, #fdda24 33% 66%, #ef3340 66% 100%);
}

.flag-uruguay {
  background:
    repeating-linear-gradient(#ffffff 0 12.5%, #6cc6ff 12.5% 25%),
    radial-gradient(circle at 20% 30%, #ffca28 0 18%, transparent 19%),
    linear-gradient(#ffffff 0 100%);
}

.flag-argentina {
  background: linear-gradient(#75aadb 0 33%, #ffffff 33% 66%, #75aadb 66% 100%);
}

.flag-switzerland {
  background: linear-gradient(#d80027 0 100%);
}

.flag-colombia {
  background: linear-gradient(#fcd116 0 50%, #003893 50% 75%, #ce1126 75% 100%);
}

.flag-greece {
  background:
    repeating-linear-gradient(#0d5eaf 0 10%, #ffffff 10% 20%),
    linear-gradient(#0d5eaf 0 100%);
}

.flag-scotland {
  background:
    linear-gradient(45deg, transparent 46%, #ffffff 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, #ffffff 46% 54%, transparent 54%),
    linear-gradient(#0065bd 0 100%);
}

.flag-serbia {
  background: linear-gradient(#c6363c 0 33%, #0c4076 33% 66%, #ffffff 66% 100%);
}

.flag-conmebol {
  background: radial-gradient(circle at 40% 40%, #f8e3a1 0 45%, transparent 46%), linear-gradient(135deg, #caa34a 0 50%, #f4d77c 50% 100%);
}

.club-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--sub, #e5e7eb);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.08) 35%, rgba(0, 0, 0, 0.25) 65%, rgba(255, 255, 255, 0.25));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0b1020;
  flex-shrink: 0;
  position: relative;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.32),
    0 3px 8px rgba(0, 0, 0, 0.2);
}

.club-badge::after {
  content: "";
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background-color: var(--main, #0b1020);
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.05) 35%, rgba(0, 0, 0, 0.2) 65%, rgba(255, 255, 255, 0.2));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0, 0, 0, 0.25);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

footer {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 13px;
}

.no-matches {
  display: none;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
}
