:root {
  --bg: #071018;
  --bg-2: #0d1a24;
  --paper: #f4f7fb;
  --ink: #102033;
  --ink-soft: #e8eef6;
  --muted: #8ea0b5;
  --muted-dark: #5a6d82;
  --line: #d7e0ea;
  --nav: #0a1622;
  --accent: #ff5a1f;
  --accent-hover: #e64a14;
  --live: #ff2d55;
  --pitch: #0f6b45;
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 480px at 50% -10%, rgba(65, 121, 251, 0.22), transparent 55%),
    radial-gradient(900px 420px at 100% 12%, rgba(15, 107, 69, 0.18), transparent 50%),
    var(--bg);
  color: var(--ink-soft);
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 16, 24, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 16px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}

.brand-name {
  font-family: "Barlow Condensed", Manrope, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-name em {
  font-style: normal;
  color: var(--accent);
}

.header-cta,
.cta-download,
#player-close.player-close,
.watch-btn {
  font-family: inherit;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.header-cta:hover { background: var(--accent-hover); }

.hero {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 16px 18px;
  min-width: 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.12);
  border: 1px solid rgba(255, 45, 85, 0.28);
  color: #ffd0d8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 45, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: "Barlow Condensed", Manrope, sans-serif;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
  color: #fff;
}

.hero-verb {
  display: inline-block;
  padding: 0 0.18em;
  color: var(--accent);
}

.hero-copy {
  margin: 16px 0 0;
  max-width: 34rem;
  color: #b7c5d4;
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-pills li {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d5deea;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 22px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7a3d, var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 90, 31, 0.35);
}

.cta-download:hover { background: var(--accent-hover); }

.cta-download--player {
  width: 100%;
  margin-top: 16px;
}

.live-now[hidden] { display: none !important; }

.live-now-label {
  margin: 0 0 10px;
  color: #ffd0d8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-now-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.live-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 45, 85, 0.28);
  border-radius: 14px;
  background: rgba(255, 45, 85, 0.08);
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.live-card:hover {
  background: rgba(255, 45, 85, 0.14);
}

.live-card-comp {
  display: block;
  color: #ffb3bf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}

.live-card-team {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-card-team:last-child { text-align: right; }

.live-card-score {
  flex: 0 0 auto;
  font-family: "Barlow Condensed", Manrope, sans-serif;
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.board {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 16px 48px;
  min-width: 0;
}

.board-intro {
  margin: 0 0 14px;
}

.board-intro {
  margin: 0 0 14px;
}

.board-intro h2 {
  margin: 0;
  font-family: "Barlow Condensed", Manrope, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.board-intro p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.board-card {
  background: var(--paper);
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  min-width: 0;
  max-width: 100%;
}

.days-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 8px 8px;
  background: #fff;
  min-width: 0;
}

.nav-arrow {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-arrow:hover { background: rgba(16, 32, 51, 0.06); }

.day-track {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.day-track::-webkit-scrollbar { display: none; }

.day-chip {
  min-width: 58px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--muted-dark);
  cursor: pointer;
  font: inherit;
}

.day-chip .day-name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.day-chip .day-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Barlow Condensed", Manrope, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.day-chip.is-today:not(.is-active) .day-num {
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--accent);
}

.day-chip.is-active .day-num {
  background: var(--accent);
  color: #fff;
}

.day-chip.is-active { color: var(--accent); }

.filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

#filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
}

#filters::-webkit-scrollbar { display: none; }

.filter-chip {
  min-height: 34px;
  flex-shrink: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active {
  background: #102033;
  color: #fff;
}

#date-label {
  margin: 0;
  width: 100%;
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 700;
}

.league-block + .league-block { border-top: 8px solid #eef3f8; }

.league-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f7fafc;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--league, var(--accent));
}

.league-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.league-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.league-head p {
  margin: 2px 0 0;
  color: var(--muted-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted-dark);
}

.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 8px;
  padding: 16px 14px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.match-row:hover {
  background: #f8fbfd;
}

.match-row:first-of-type { border-top: 0; }

.match-actions { grid-column: 1 / -1; }

.name-full { display: none; }
.name-short { display: inline; }

.team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team--home { justify-content: flex-end; text-align: right; }
.team--away { justify-content: flex-start; }

.team img,
.team-fallback {
  width: 34px;
  height: 34px;
}

.team img {
  object-fit: contain;
  background: #eef3f8;
  border-radius: 50%;
  padding: 3px;
}

.team-fallback {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #102033;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.team-fallback[hidden] {
  display: none !important;
}

.team-name {
  font-weight: 800;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-center {
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.score,
.kickoff {
  font-family: "Barlow Condensed", Manrope, sans-serif;
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.channel-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.status-live {
  color: var(--live);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.6s infinite;
}

.status-finished,
.channel-pill {
  color: var(--muted-dark);
  font-size: 11px;
  font-weight: 700;
}

.watch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.watch-btn:hover,
.watch-btn.is-live:hover { background: var(--accent-hover); }

.watch-btn.is-live {
  background: var(--live);
  color: #fff;
}

.site-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 16px 36px;
  color: var(--muted);
  font-size: 13px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 8, 14, 0.72);
}

.modal-overlay.is-open { display: flex; }

.player-card {
  width: min(720px, calc(100vw - 32px));
  max-width: 100%;
  min-width: 0;
  background: #101a24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
}

.player-toolbar {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  min-width: 0;
}

.player-match { min-width: 0; flex: 1; }

#player-comp {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#player-title {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#player-meta {
  margin: 3px 0 0;
  color: #9aadc0;
  font-size: 13px;
}

#player-close.player-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  line-height: 1;
  cursor: pointer;
}

.player-stage {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background:
    linear-gradient(180deg, rgba(15, 107, 69, 0.18), transparent 40%),
    #071018;
}

.player-ready {
  width: 100%;
  max-width: 22rem;
  text-align: center;
  color: #f3f4f6;
}

.player-copy {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  padding: 0 8px;
}

.lock-orb {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 90, 31, 0.12);
  color: #ffd0c2;
}

@media (min-width: 640px) {
  .hero { padding: 52px 20px 22px; }
  .cta-extra { display: inline; }
  .name-full { display: inline; }
  .name-short { display: none; }
  .team-name { font-size: 15px; }
  .team img, .team-fallback { width: 40px; height: 40px; }
  .score, .kickoff { font-size: 32px; }
  .match-center { min-width: 128px; }
  .player-stage { aspect-ratio: 16 / 9; min-height: 0; }
  #date-label { width: auto; }
  .live-now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .live-card-team { font-size: 15px; }
  .live-card-score { font-size: 28px; }
}
