:root {
  --bg: #0b1020;
  --panel: #11182a;
  --panel-soft: #182136;
  --text: #f4f7fb;
  --muted: #9ba8bd;
  --accent: #6ea8fe;
  --accent-strong: #8ab4ff;
  --border: rgba(255,255,255,0.08);
  --success: #54d49c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(46, 91, 173, 0.16), transparent 28%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 24px 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.date {
  color: var(--muted);
  font-size: 0.95rem;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 14px;
  display: flex;
  gap: 12px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 10px;
}

nav a:hover,
nav a.active {
  color: var(--text);
  background: var(--panel-soft);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

section {
  margin-bottom: 44px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-title span {
  color: var(--muted);
  font-size: 0.85rem;
}

.league,
.news-card,
.results {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.league {
  overflow: hidden;
  margin-bottom: 18px;
}

.league h3 {
  margin: 0;
  padding: 15px 18px;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}

.league.favourite {
  border-color: rgba(110, 168, 254, 0.35);
  box-shadow: 0 0 0 1px rgba(110, 168, 254, 0.08);
}

.match {
  display: grid;
  grid-template-columns: 80px 1fr 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.match:last-child {
  border-bottom: 0;
}

.time {
  color: var(--accent-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.home {
  text-align: right;
}

.away {
  text-align: left;
}

.versus {
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  padding: 22px;
}

.news-card .club {
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.news-card h3 {
  margin: 10px 0;
}

.news-card p {
  color: var(--muted);
  line-height: 1.6;
}

.news-card a {
  color: var(--accent-strong);
  text-decoration: none;
}

.results {
  overflow: hidden;
}

.result {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}

.result:last-child {
  border-bottom: 0;
}

.result span:first-child {
  text-align: right;
}

.result strong {
  text-align: center;
  font-size: 1.1rem;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .header-content {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    overflow-x: auto;
  }

  .match {
    grid-template-columns: 60px 1fr;
    gap: 6px 12px;
  }

  .home,
  .away {
    text-align: left;
  }

  .versus {
    display: none;
  }

  .away {
    grid-column: 2;
    color: var(--muted);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .result {
    grid-template-columns: 1fr 60px 1fr;
    font-size: 0.9rem;
  }
}
