:root {
  --bg: #07140f;
  --bg-soft: #0b1c16;
  --panel: rgba(18, 42, 33, 0.78);
  --panel-solid: #10271e;
  --panel-bright: #17372a;
  --text: #f7fbf8;
  --muted: #91aa9d;
  --line: rgba(255, 255, 255, 0.09);
  --green: #9bf443;
  --green-dark: #6dc51f;
  --red: #ff625c;
  --gold: #f4c45d;
  --blue: #5db2ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --sidebar: 248px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 6%, rgba(93, 178, 255, 0.08), transparent 24rem),
    radial-gradient(circle at 10% 86%, rgba(155, 244, 67, 0.07), transparent 30rem),
    var(--bg);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.light {
  --bg: #eef3ef;
  --bg-soft: #e4ece6;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #fff;
  --panel-bright: #eaf2ec;
  --text: #102019;
  --muted: #607368;
  --line: rgba(14, 39, 28, 0.11);
  --shadow: 0 18px 60px rgba(25, 55, 41, 0.11);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--green);
  color: #11200f;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 28px 22px 20px;
  background: rgba(5, 17, 12, 0.76);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(24px);
  z-index: 30;
}

.light .sidebar {
  background: rgba(242, 247, 243, 0.82);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 6px 34px;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  overflow: hidden;
  border-radius: 15px;
  background: var(--green);
  color: #0c1a12;
  transform: rotate(-4deg);
  box-shadow: 0 10px 30px rgba(155, 244, 67, 0.18);
}

.brand-ball {
  position: absolute;
  width: 23px;
  height: 23px;
  top: 4px;
  left: 4px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.brand-ball::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px dotted currentColor;
  border-radius: 50%;
}

.brand-year {
  position: absolute;
  right: 4px;
  bottom: 0;
  font: 800 25px/1 "Barlow Condensed", sans-serif;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font: 800 19px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--green);
  font: 700 12px/1 "Inter", sans-serif;
  letter-spacing: 0.18em;
}

.nav-label {
  margin: 24px 12px 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  margin: 3px 0;
  padding: 0 13px;
  color: var(--muted);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
  transition: 180ms ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  right: -22px;
  width: 3px;
  height: 22px;
  border-radius: 4px 0 0 4px;
  background: transparent;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: rgba(155, 244, 67, 0.09);
}

.nav-item.active .nav-icon {
  color: var(--green);
}

.nav-item.active::after {
  background: var(--green);
}

.nav-icon {
  width: 22px;
  color: #789086;
  font-size: 20px;
  text-align: center;
}

.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(155, 244, 67, 0.13), transparent),
    var(--panel);
}

.sidebar-card strong,
.sidebar-card small {
  display: block;
}

.sidebar-card strong {
  margin: 6px 0 4px;
  font: 700 21px/1 "Barlow Condensed", sans-serif;
}

.sidebar-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.mini-progress {
  height: 4px;
  margin: 14px 0 8px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--line);
}

.mini-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  transition: 180ms ease;
}

.icon-button:hover {
  border-color: rgba(155, 244, 67, 0.35);
  transform: translateY(-2px);
}

.profile-button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.profile-button > span:last-child {
  min-width: 0;
  display: grid;
}

.profile-button strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-button small {
  color: var(--muted);
  font-size: 9px;
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--green), #3a8f27);
  color: #0a180f;
  font-size: 10px;
  font-weight: 900;
}

.main-column {
  margin-left: var(--sidebar);
  min-height: 100vh;
}

.score-ticker {
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 20, 15, 0.92);
}

.light .score-ticker {
  background: rgba(238, 243, 239, 0.94);
}

.live-pill {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 17px;
  background: var(--green);
  color: #102010;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse 1.6s infinite;
}

.ticker-viewport {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: ticker 28s linear infinite;
}

.ticker-track.paused {
  animation-play-state: paused;
}

.ticker-match {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  border-right: 1px solid var(--line);
  font-size: 11px;
  white-space: nowrap;
}

.ticker-match b {
  font-size: 12px;
}

.ticker-match .score {
  color: var(--green);
  font-weight: 900;
}

.ticker-match .minute {
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
}

.ticker-control {
  align-self: stretch;
  width: 44px;
  flex: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 104px;
  padding: 24px 38px 20px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 7px 0 0;
  font: 700 clamp(25px, 3vw, 34px)/1 "Barlow Condensed", sans-serif;
  letter-spacing: -0.01em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}

.segmented button {
  min-width: 34px;
  height: 31px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.segmented button.active {
  background: var(--green);
  color: #14230f;
}

.notification-button {
  position: relative;
}

.notification-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  top: 7px;
  right: 7px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--red);
}

#main-content {
  padding: 0 38px 54px;
  outline: none;
}

.page {
  animation: page-in 360ms ease both;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 16px;
}

.section-heading:first-child {
  margin-top: 0;
}

.section-heading h2 {
  margin: 0;
  font: 700 24px/1 "Barlow Condensed", sans-serif;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 335px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(6, 22, 15, 0.97) 0%, rgba(6, 22, 15, 0.82) 48%, rgba(6, 22, 15, 0.1) 100%),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1800&q=85") center/cover;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -55% 34%;
  height: 280px;
  border: 1px solid rgba(155, 244, 67, 0.24);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
}

.hero-chip {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 8px 11px;
  border: 1px solid rgba(155, 244, 67, 0.28);
  border-radius: 999px;
  background: rgba(155, 244, 67, 0.11);
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero h2 {
  max-width: 600px;
  margin: 0;
  font: 800 clamp(43px, 6vw, 72px)/0.86 "Barlow Condensed", sans-serif;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero h2 span {
  color: var(--green);
}

.hero-sub {
  max-width: 510px;
  margin: 16px 0 24px;
  color: #b6c6be;
  font-size: 12px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 10px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 180ms ease;
}

.primary-button {
  border: 1px solid var(--green);
  background: var(--green);
  color: #102010;
  box-shadow: 0 8px 25px rgba(155, 244, 67, 0.14);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.countdown-card {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: end;
  width: min(320px, 86%);
  margin-right: 35px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(9, 27, 19, 0.68);
  backdrop-filter: blur(18px);
}

.countdown-card > p {
  margin: 0 0 15px;
  color: #a4b7ad;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.time-block {
  padding: 13px 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.time-block strong {
  display: block;
  font: 700 26px/1 "Barlow Condensed", sans-serif;
}

.time-block small {
  display: block;
  margin-top: 5px;
  color: #92a69b;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.opening-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.opening-match small,
.opening-match strong {
  display: block;
}

.opening-match small {
  margin-bottom: 4px;
  color: #92a69b;
  font-size: 8px;
}

.opening-match strong {
  font-size: 11px;
}

.flag-stack {
  display: flex;
}

.flag-stack .flag {
  margin-left: -7px;
  border: 2px solid #11271c;
}

.flag,
.team-flag {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--panel-bright);
}

.flag {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.team-flag {
  width: 44px;
  height: 44px;
  font-size: 24px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat-tile {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: 180ms ease;
}

.stat-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 244, 67, 0.25);
}

.stat-tile::after {
  content: attr(data-symbol);
  position: absolute;
  right: 10px;
  bottom: -16px;
  color: rgba(255, 255, 255, 0.035);
  font: 800 72px/1 "Barlow Condensed", sans-serif;
}

.light .stat-tile::after {
  color: rgba(12, 30, 21, 0.04);
}

.stat-tile small {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-tile strong {
  display: block;
  font: 700 25px/1 "Barlow Condensed", sans-serif;
}

.stat-tile span {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.match-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  cursor: pointer;
  transition: 180ms ease;
}

.match-card:hover {
  border-color: rgba(155, 244, 67, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.match-card.live {
  background:
    linear-gradient(145deg, rgba(255, 98, 92, 0.08), transparent),
    var(--panel);
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.match-status {
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(155, 244, 67, 0.1);
  color: var(--green);
}

.match-status.live {
  background: rgba(255, 98, 92, 0.13);
  color: var(--red);
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.match-team {
  min-width: 0;
  text-align: center;
}

.match-team .team-flag {
  margin: 0 auto 9px;
}

.match-team strong {
  display: block;
  overflow: hidden;
  font: 700 15px/1 "Barlow Condensed", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-score {
  min-width: 55px;
  text-align: center;
}

.match-score strong {
  display: block;
  font: 800 26px/1 "Barlow Condensed", sans-serif;
}

.match-score small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.favorite-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.favorite-button.active {
  color: var(--gold);
  border-color: rgba(244, 196, 93, 0.32);
  background: rgba(244, 196, 93, 0.08);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.65fr;
  grid-auto-rows: 210px;
  gap: 13px;
}

.news-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  cursor: pointer;
}

.news-card:first-child {
  grid-row: span 2;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 500ms ease;
}

.news-card:hover img {
  transform: scale(1.04);
}

.news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, rgba(4, 15, 10, 0.92));
}

.news-copy {
  position: absolute;
  z-index: 2;
  inset: auto 20px 19px;
}

.news-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--green);
  color: #102010;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-copy h3 {
  margin: 0;
  color: white;
  font: 700 19px/1.05 "Barlow Condensed", sans-serif;
}

.news-card:first-child .news-copy h3 {
  font-size: clamp(26px, 3vw, 36px);
}

.source-card {
  min-height: 210px;
}

.source-card-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(155, 244, 67, 0.22), transparent 35%),
    linear-gradient(145deg, #163528, #081710);
}

.source-card-art span {
  color: rgba(255, 255, 255, 0.12);
  font: 800 72px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
}

.source-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: 9px;
}

.source-note a {
  color: var(--green);
  font-weight: 800;
}

.news-copy p {
  margin: 8px 0 0;
  color: #bbc9c1;
  font-size: 9px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.search-field {
  min-width: 240px;
  flex: 1;
}

.search-field input,
.filter-select {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--panel);
  color: var(--text);
  font-size: 11px;
}

.filter-select {
  width: auto;
  min-width: 130px;
}

.search-field input:focus,
.filter-select:focus {
  border-color: rgba(155, 244, 67, 0.48);
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 95px minmax(230px, 1fr) 160px 150px auto;
  align-items: center;
  gap: 18px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  transition: 180ms ease;
}

.schedule-row:hover {
  border-color: rgba(155, 244, 67, 0.25);
}

.schedule-date strong,
.schedule-date small {
  display: block;
}

.schedule-date strong {
  font: 700 15px/1 "Barlow Condensed", sans-serif;
}

.schedule-date small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.schedule-teams {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  gap: 10px;
}

.schedule-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.schedule-team.away {
  justify-content: flex-end;
}

.schedule-team .flag {
  width: 27px;
  height: 27px;
  font-size: 15px;
}

.versus {
  color: var(--muted);
  font: 700 11px/1 "Barlow Condensed", sans-serif;
}

.schedule-venue,
.schedule-stage {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.schedule-stage span {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(93, 178, 255, 0.09);
  color: var(--blue);
  font-weight: 700;
}

.row-actions {
  display: flex;
  gap: 6px;
}

.small-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.group-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.group-header h3 {
  margin: 0;
  font: 700 19px/1 "Barlow Condensed", sans-serif;
}

.group-header small {
  color: var(--muted);
  font-size: 8px;
}

.standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.standings th {
  padding: 9px 7px;
  color: var(--muted);
  font-size: 7px;
  text-align: center;
}

.standings th:nth-child(2) {
  text-align: left;
}

.standings td {
  padding: 10px 7px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.standings td:nth-child(2) {
  text-align: left;
  font-weight: 700;
}

.standings tr td:first-child {
  border-left: 3px solid transparent;
}

.standings tr.qualified td:first-child {
  border-left-color: var(--green);
}

.standings tr.playoff td:first-child {
  border-left-color: var(--gold);
}

.standings .flag {
  width: 21px;
  height: 21px;
  margin-right: 7px;
  font-size: 12px;
  vertical-align: middle;
}

.bracket-shell {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(rgba(155, 244, 67, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 244, 67, 0.025) 1px, transparent 1px),
    var(--panel);
  background-size: 30px 30px;
}

.bracket {
  min-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 54px;
  align-items: center;
}

.bracket-column {
  display: grid;
  gap: 13px;
}

.bracket-column:nth-child(2) {
  gap: 54px;
}

.bracket-column:nth-child(3) {
  gap: 136px;
}

.bracket-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.bracket-match {
  position: relative;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-solid);
}

.bracket-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.bracket-team + .bracket-team {
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}

.bracket-team:hover,
.bracket-team.winner {
  background: rgba(155, 244, 67, 0.1);
  color: var(--text);
}

.bracket-team .flag {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.bracket-team b {
  margin-left: auto;
  color: var(--text);
}

.champion-card {
  padding: 23px 16px;
  border: 1px solid rgba(244, 196, 93, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 196, 93, 0.18), transparent 70%),
    var(--panel-solid);
  text-align: center;
}

.trophy {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 38px;
}

.champion-card .team-flag {
  width: 58px;
  height: 58px;
  margin: 12px auto 10px;
  font-size: 32px;
}

.champion-card strong {
  display: block;
  font: 700 22px/1 "Barlow Condensed", sans-serif;
}

.leader-grid,
.cities-grid,
.teams-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.leader-card,
.city-card,
.team-card,
.chart-card,
.fan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.leader-card,
.chart-card,
.fan-card {
  padding: 19px;
}

.leader-card h3,
.chart-card h3,
.fan-card h3 {
  margin: 0 0 17px;
  font: 700 19px/1 "Barlow Condensed", sans-serif;
}

.leader-row {
  display: grid;
  grid-template-columns: 24px 34px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.leader-row:first-of-type {
  border-top: 0;
}

.leader-row .flag {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.leader-row strong {
  display: block;
  font-size: 10px;
}

.leader-row small {
  color: var(--muted);
  font-size: 8px;
}

.leader-value {
  color: var(--green);
  font: 700 20px/1 "Barlow Condensed", sans-serif;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
  margin-top: 14px;
}

.bars {
  display: grid;
  gap: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 25px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  transform-origin: left;
  animation: grow 800ms ease both;
}

.donut-wrap {
  display: grid;
  place-items: center;
  min-height: 180px;
}

.donut {
  width: 145px;
  height: 145px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 36%, var(--blue) 36% 62%, var(--gold) 62% 83%, var(--line) 83%);
}

.donut::after {
  content: "104\\A MATCHES";
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-solid);
  color: var(--muted);
  font: 700 13px/1.4 "Barlow Condensed", sans-serif;
  white-space: pre;
  text-align: center;
}

.city-card {
  overflow: hidden;
  cursor: pointer;
  transition: 180ms ease;
}

.city-card:hover {
  transform: translateY(-3px);
}

.city-image {
  height: 145px;
  position: relative;
  overflow: hidden;
}

.city-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(5, 17, 11, 0.75));
}

.city-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(155, 244, 67, 0.16), transparent 32%),
    linear-gradient(145deg, #17372a, #0a1912);
}

.city-placeholder span {
  position: relative;
  z-index: 2;
  font-size: 54px;
}

.city-country {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(5, 17, 11, 0.72);
  color: white;
  font-size: 7px;
  font-weight: 800;
}

.city-copy {
  padding: 16px;
}

.city-copy h3 {
  margin: 0 0 6px;
  font: 700 20px/1 "Barlow Condensed", sans-serif;
}

.city-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.city-stats {
  display: flex;
  gap: 18px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.city-stats strong,
.city-stats small {
  display: block;
}

.city-stats strong {
  font: 700 16px/1 "Barlow Condensed", sans-serif;
}

.city-stats small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  cursor: pointer;
  transition: 180ms ease;
}

.team-card:hover {
  border-color: rgba(155, 244, 67, 0.3);
  transform: translateY(-2px);
}

.team-card .team-flag {
  width: 48px;
  height: 48px;
  font-size: 26px;
}

.team-card h3 {
  margin: 0;
  font: 700 18px/1 "Barlow Condensed", sans-serif;
}

.team-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.team-card .favorite-button {
  margin-left: auto;
}

.match-center-hero {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 120%, rgba(155, 244, 67, 0.15), transparent 45%),
    var(--panel);
}

.center-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 650px;
  gap: 28px;
  margin: 24px auto;
}

.center-team {
  text-align: center;
}

.center-team .team-flag {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  font-size: 42px;
}

.center-team strong {
  display: block;
  font: 700 24px/1 "Barlow Condensed", sans-serif;
}

.center-score {
  text-align: center;
}

.center-score strong {
  display: block;
  font: 800 52px/1 "Barlow Condensed", sans-serif;
}

.center-score span {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(255, 98, 92, 0.12);
  color: var(--red);
  font-size: 8px;
  font-weight: 900;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-top: 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  padding: 12px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.tab-panel {
  min-height: 210px;
  padding: 22px 0 5px;
}

.timeline {
  max-width: 620px;
  margin: auto;
}

.timeline-event {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 13px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.timeline-event:first-child {
  border-top: 0;
}

.timeline-event time {
  color: var(--green);
  font: 700 16px/1 "Barlow Condensed", sans-serif;
}

.timeline-event strong {
  display: block;
  font-size: 10px;
}

.timeline-event p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.empty-state {
  padding: 80px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font: 700 24px/1 "Barlow Condensed", sans-serif;
}

.bottom-nav {
  display: none;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  max-width: 320px;
  padding: 13px 16px;
  border: 1px solid rgba(155, 244, 67, 0.25);
  border-radius: 12px;
  background: #14291f;
  color: white;
  box-shadow: var(--shadow);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 220ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 8, 5, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: 220ms ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  transform: translateY(18px) scale(0.98);
  transition: 220ms ease;
}

.modal-backdrop.open .modal-card {
  transform: none;
}

.modal-close {
  position: absolute;
  z-index: 2;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
}

.modal-title {
  margin: 5px 45px 10px 0;
  font: 700 28px/1 "Barlow Condensed", sans-serif;
}

.modal-copy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

@media (max-width: 1120px) {
  :root {
    --sidebar: 214px;
  }

  .sidebar {
    padding-inline: 16px;
  }

  .nav-item::after {
    right: -16px;
  }

  .hero-content {
    padding-left: 34px;
  }

  .countdown-card {
    margin-right: 22px;
  }

  .match-grid,
  .groups-grid,
  .leader-grid,
  .cities-grid,
  .teams-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .news-card:nth-child(4) {
    display: none;
  }

  .schedule-row {
    grid-template-columns: 80px minmax(230px, 1fr) 140px auto;
  }

  .schedule-stage {
    display: none;
  }
}

@media (max-width: 820px) {
  .sidebar {
    display: none;
  }

  .main-column {
    margin-left: 0;
  }

  .score-ticker {
    height: 38px;
  }

  .topbar {
    min-height: 88px;
    padding: 20px 20px 16px;
  }

  .topbar-actions .language-switcher {
    display: none;
  }

  #main-content {
    padding: 0 20px 100px;
  }

  .bottom-nav {
    position: fixed;
    z-index: 50;
    inset: auto 12px 12px;
    height: 64px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: rgba(12, 31, 23, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
  }

  .light .bottom-nav {
    background: rgba(255, 255, 255, 0.92);
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    border-radius: 13px;
    color: var(--muted);
  }

  .bottom-nav a.active {
    background: rgba(155, 244, 67, 0.1);
    color: var(--green);
  }

  .bottom-nav span {
    font-size: 18px;
    line-height: 1;
  }

  .bottom-nav small {
    font-size: 7px;
    font-weight: 700;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 530px;
    background:
      linear-gradient(0deg, rgba(6, 22, 15, 0.98) 10%, rgba(6, 22, 15, 0.45) 100%),
      url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1200&q=85") center/cover;
  }

  .hero-content {
    justify-content: end;
    padding: 200px 25px 22px;
  }

  .hero h2 {
    font-size: 52px;
  }

  .hero-sub {
    margin-bottom: 17px;
  }

  .countdown-card {
    width: auto;
    align-self: auto;
    justify-self: stretch;
    margin: 0 20px 20px;
    padding: 18px;
  }

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

  .news-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 190px;
  }

  .news-card:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .schedule-row {
    grid-template-columns: 70px 1fr auto;
    gap: 10px;
  }

  .schedule-venue {
    display: none;
  }

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

@media (max-width: 560px) {
  .topbar h1 {
    font-size: 25px;
  }

  .search-toggle {
    display: none;
  }

  #main-content {
    padding-inline: 14px;
  }

  .topbar {
    padding-inline: 16px;
  }

  .hero {
    min-height: 550px;
    border-radius: 22px;
  }

  .hero-content {
    padding-inline: 20px;
  }

  .hero h2 {
    font-size: 45px;
  }

  .hero-sub {
    font-size: 10px;
  }

  .countdown-card {
    margin-inline: 14px;
  }

  .time-block strong {
    font-size: 22px;
  }

  .stats-row,
  .match-grid,
  .groups-grid,
  .leader-grid,
  .cities-grid,
  .teams-grid {
    grid-template-columns: 1fr;
  }

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

  .stat-tile {
    min-height: 95px;
    padding: 15px;
  }

  .news-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .news-card,
  .news-card:first-child {
    min-width: 86%;
    height: 250px;
    display: block;
    flex: none;
    scroll-snap-align: start;
  }

  .section-heading {
    margin-top: 28px;
  }

  .source-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-row {
    grid-template-columns: 1fr auto;
  }

  .schedule-date {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .schedule-date small {
    margin: 0;
  }

  .schedule-teams {
    grid-template-columns: minmax(75px, 1fr) auto minmax(75px, 1fr);
  }

  .schedule-team {
    display: grid;
    justify-items: start;
    font-size: 9px;
  }

  .schedule-team.away {
    justify-items: end;
  }

  .filter-select {
    flex: 1;
  }

  .center-scoreboard {
    gap: 10px;
  }

  .center-team .team-flag {
    width: 58px;
    height: 58px;
    font-size: 31px;
  }

  .center-team strong {
    font-size: 18px;
  }

  .center-score strong {
    font-size: 38px;
  }
}
