:root {
  --bg: #0b1220;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f3f6fb;
  --muted: #b9c4d6;
  --accent: #f59e0b;
  --accent-2: #ef4444;
  --accent-3: #22c55e;
  --blue: #38bdf8;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  --radius: 20px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.16), transparent 28%),
    radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.09), transparent 26%),
    linear-gradient(180deg, #07101d 0%, #0b1220 100%);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 16, 29, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 900;
}

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

.nav-links a {
  color: var(--muted);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero {
  padding: 60px 0 28px;
}

.hero-card,
.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 30px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(239, 68, 68, 0.12)),
    rgba(255, 255, 255, 0.04);
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffe4a3;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
}

p {
  color: var(--muted);
}

.hero-stats,
.grid-2,
.grid-3,
.page-grid {
  display: grid;
  gap: 18px;
}

.hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-grid {
  grid-template-columns: 340px 1fr;
  padding: 26px 0 80px;
  align-items: start;
}

.panel {
  padding: 26px;
}

.panel.sticky {
  position: sticky;
  top: 92px;
}

.stat,
.info-box,
.match-card,
.table-wrap {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

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

.info-box.good {
  border-left: 4px solid var(--accent-3);
}

.info-box.warn {
  border-left: 4px solid var(--accent);
}

.info-box.alert {
  border-left: 4px solid var(--accent-2);
}

.info-box.blue {
  border-left: 4px solid var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.button.small {
  padding: 8px 12px;
  font-size: 0.9rem;
}

form {
  margin: 0;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

label {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
}

input::placeholder {
  color: rgba(185, 196, 214, 0.7);
}

.match-list {
  display: grid;
  gap: 14px;
}

.match-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
}

.match-date {
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 16px;
  min-height: 88px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.match-date strong {
  font-size: 1.35rem;
}

.match-date span {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 900;
}

.match-main {
  display: grid;
  gap: 12px;
}

.teams {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.team {
  font-size: 1.1rem;
  font-weight: 900;
}

.vs {
  color: var(--muted);
  font-weight: 900;
}

.prediction-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.score-input {
  width: 64px;
  text-align: center;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.badge.green {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
}

.badge.gold {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
}

.badge.red {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

th {
  color: white;
}

td {
  color: var(--muted);
}

td strong {
  color: white;
}

.flash {
  margin-top: 16px;
}

.site-footer {
  padding: 0 0 50px;
}

.footer-card {
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

@media (max-width: 980px) {
  .page-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .panel.sticky {
    position: static;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card {
    padding: 28px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .match-card {
    grid-template-columns: 1fr;
  }

  .teams {
    flex-direction: column;
    align-items: flex-start;
  }
}
.quick-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 4px;
}

.quick-jump .button {
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

#fixtures,
#leaderboard,
#tables {
  scroll-margin-top: 90px;
}