:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --panel: #111111;
  --panel-2: #171717;
  --panel-3: #1d1d1d;
  --text: #f5f5f5;
  --muted: #a1a1aa;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.12);
  --accent: #fafafa;
  --shadow: 0 20px 50px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #040404 0%, #0a0a0a 100%);
  color: var(--text);
}

button, input, select { font: inherit; }

.page-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.card-shell {
  background: linear-gradient(180deg, #121212, #0d0d0d);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 22px 18px;
  background: #080808;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-mark {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand-sub, .section-label, .eyebrow, .section-kicker, .hero-kicker {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-stack, .league-list {
  display: grid;
  gap: 10px;
}

.nav-link, .league-chip, .btn, .chip, .icon-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  transition: .18s ease;
}

.nav-link, .league-chip { text-align: left; }

.nav-link:hover, .league-chip:hover, .btn:hover, .chip:hover, .icon-btn:hover {
  background: var(--panel-2);
  transform: translateY(-1px);
}

.nav-link.active, .league-chip.active {
  background: var(--accent);
  color: #0a0a0a;
  border-color: transparent;
  font-weight: 800;
}

.sidebar-panel {
  margin-top: auto;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #151515, #101010);
  border: 1px solid var(--line);
}

.sidebar-panel-title { margin: 0 0 8px; font-weight: 800; }
.sidebar-panel-copy { margin: 0 0 16px; color: var(--muted); line-height: 1.6; font-size: 14px; }

.main-content {
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

h1, h2, h3 {
  font-family: Manrope, sans-serif;
}

h1 {
  margin: 6px 0 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.subtitle {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.topbar-tools {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.search-wrap {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

input[type="search"], select {
  width: 100%;
  min-width: 220px;
  background: #0b0b0b;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}

input[type="search"]::placeholder { color: #71717a; }

.icon-btn {
  width: 46px;
  height: 46px;
  padding: 0;
  font-size: 20px;
}

.btn.primary {
  background: #fafafa;
  color: #0a0a0a;
  border-color: transparent;
  font-weight: 800;
}

.btn.full { width: 100%; }

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  margin-bottom: 18px;
}

.hero-glow {
  position: absolute;
  inset: auto -40px -40px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: stretch;
}

.hero-card h2 {
  margin: 14px 0 8px;
  max-width: 700px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-stats {
  display: grid;
  gap: 12px;
}

.hero-stat-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}

.hero-stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.hero-stat-box strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.filters-panel,
.meta-panel,
.content-section {
  padding: 20px;
  margin-bottom: 18px;
}

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

.section-head.compact { margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 28px; }

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  border-radius: 999px;
}

.meta-panel p {
  margin: 0;
  color: var(--muted);
}

.list-grid, .grouped-list, .group-block {
  display: grid;
  gap: 14px;
}

.sport-block {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.sport-title {
  margin: 0;
  font-size: 18px;
  color: #f5f5f5;
}

.bucket-block {
  display: grid;
  gap: 10px;
}

.bucket-title {
  margin: 0;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.program-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}

.program-title {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.group-title {
  margin: 4px 0 0;
  font-size: 20px;
}

.match-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  transition: .18s ease;
}

.match-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--line-strong);
}

.match-main {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.event-time {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--muted);
}

.sport-icon {
  font-size: 16px;
  line-height: 1;
}

.match-copy {
  min-width: 0;
  width: 100%;
}

.match-topline {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.event-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  flex: 1;
  min-width: 220px;
}

.live-state {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fafafa;
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.event-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tag {
  background: rgba(255,255,255,0.04);
  color: #f4f4f5;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}

.tag.theme-ais {
  background: rgba(74, 222, 128, 0.10);
  border-color: rgba(74, 222, 128, 0.22);
  color: #d8ffe7;
}

.tag.theme-mono {
  background: rgba(244, 114, 182, 0.10);
  border-color: rgba(244, 114, 182, 0.22);
  color: #ffe0f0;
}

.tag.theme-true {
  background: rgba(248, 113, 113, 0.10);
  border-color: rgba(248, 113, 113, 0.22);
  color: #ffe0e0;
}

.tag.theme-bein {
  background: rgba(167, 139, 250, 0.10);
  border-color: rgba(167, 139, 250, 0.22);
  color: #f0e7ff;
}

.tag.theme-bg {
  background: rgba(96, 165, 250, 0.10);
  border-color: rgba(96, 165, 250, 0.22);
  color: #e1eeff;
}

.tag.theme-spotv {
  background: rgba(251, 191, 36, 0.10);
  border-color: rgba(251, 191, 36, 0.22);
  color: #fff1c7;
}

.tag.theme-youtube {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.22);
  color: #ffe1e1;
}

.tag.theme-facebook {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.22);
  color: #e1ebff;
}

.tag.theme-fifa {
  background: rgba(34, 211, 238, 0.10);
  border-color: rgba(34, 211, 238, 0.22);
  color: #dbfbff;
}

.tag.theme-dazn {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  color: #fafafa;
}

.tag.theme-uefa {
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.22);
  color: #dff6ff;
}

.empty {
  color: var(--muted);
  padding: 20px 4px;
}

@media (max-width: 1100px) {
  .page-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { grid-template-columns: 1fr; }
}

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

  .page-shell {
    grid-template-columns: 1fr;
  }

  .main-content { padding: 16px; }
  .topbar, .match-card, .match-main {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-tools { flex-direction: column; align-items: stretch; }
  .filter-grid { grid-template-columns: 1fr; }
  input[type="search"], select { min-width: 0; }
  .event-right { align-items: flex-start; }
  .channel-tags { justify-content: flex-start; }
  .event-title { font-size: 22px; }
}
