/* ============================================================
   Sports Bar AI — Frontpage Styles
   Dark theme, glassmorphism, neon accents, mobile-first
   ============================================================ */

/* --- Reset & Custom Properties --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #161622;
  --bg-glass: rgba(255,255,255,0.04);
  --bg-glass-hover: rgba(255,255,255,0.08);
  --border-glass: rgba(255,255,255,0.08);
  --border-glow: rgba(74,161,217,0.15);
  --brand-blue: #4aa1d9;
  --brand-blue-dim: rgba(74,161,217,0.15);
  --brand-blue-glow: rgba(74,161,217,0.25);
  --brand-orange: #f39322;
  --brand-orange-dim: rgba(243,147,34,0.15);
  --accent: #4aa1d9;
  --accent-dim: rgba(74,161,217,0.15);
  --accent2: #7c3aed;
  --accent2-dim: rgba(124,58,237,0.15);
  --live: #ff3b5c;
  --live-dim: rgba(255,59,92,0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --text: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-glow: 0 0 30px rgba(74,161,217,0.08);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --nav-height: 64px;
  --bottom-nav-height: 72px;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255,59,92,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255,59,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.06) 50%, var(--bg-card) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.85);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,15,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-brand .brand-logo {
  height: 28px;
  width: auto;
}

/* Nav buttons (Fixtures, Bookings, Locations, Login) */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  cursor: pointer;
}
.nav-btn:hover {
  color: var(--text);
  background: var(--bg-glass-hover);
  border-color: var(--accent);
}
.nav-btn svg { flex-shrink: 0; opacity: 0.7; }
.nav-btn:hover svg { opacity: 1; }
.nav-btn span { display: none; }
@media (min-width: 640px) {
  .nav-btn span { display: inline; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00c4cc);
  color: #000;
  box-shadow: 0 0 20px rgba(0,240,255,0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0,240,255,0.4);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 0 15px rgba(0,240,255,0.3);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent);
}
.btn-secondary:active {
  transform: scale(0.97);
  background: rgba(255,255,255,0.12);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--text);
}
.btn-ghost:active {
  opacity: 0.7;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* --- Nav User Button (logged in) --- */
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 500;
}
.nav-user-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent);
  color: var(--text);
}
.nav-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0f;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-user-name { display: none; }
@media (min-width: 640px) {
  .nav-user-name { display: inline; }
}

/* --- Nav Menu (Burger) Button --- */
.nav-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-menu-btn:hover { background: var(--bg-glass-hover); }
.nav-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--transition);
}
.nav-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   SITE MENU (Universal — right slide panel)
   ============================================================ */
.site-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.site-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 90vw;
  z-index: 1101;
  background: rgba(14,14,22,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-glass);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.site-menu.open {
  transform: translateX(0);
}

.site-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}
.site-menu-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.site-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.site-menu-close:hover {
  background: var(--bg-glass-hover);
  color: var(--text);
}

.site-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  -webkit-overflow-scrolling: touch;
}

/* Menu nav links */
.menu-nav-links {
  padding: 0 12px 8px;
}
.menu-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.menu-nav-links a:hover {
  color: var(--text);
  background: var(--bg-glass);
}
.menu-nav-links a svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Sports section divider */
.menu-sports-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.menu-sports-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-glass);
}

/* Sport item (accordion header) */
.menu-sport-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  transition: background var(--transition);
}
.menu-sport-item:hover {
  background: var(--bg-glass);
}
.menu-sport-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
.menu-sport-badge-fallback {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.menu-sport-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.menu-sport-item:hover .menu-sport-name {
  color: var(--text);
}
.menu-sport-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition);
}
.menu-sport-toggle:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}
.menu-sport-toggle:hover .menu-sport-chevron {
  color: #000;
}
.menu-sport-chevron {
  width: 16px;
  height: 16px;
  color: var(--brand-blue);
  transition: transform 0.25s ease, color 0.2s ease;
}
.menu-sport-item.open .menu-sport-chevron {
  transform: rotate(180deg);
}
.menu-sport-item.open .menu-sport-toggle {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}
.menu-sport-item.open .menu-sport-toggle .menu-sport-chevron {
  color: #000;
}

/* League sub-list */
.menu-league-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0,0,0,0.15);
}
.menu-sport-item.open + .menu-league-list {
  max-height: 2000px;
}
.menu-league-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px 8px 48px;
  transition: background var(--transition);
}
.menu-league-item:hover {
  background: var(--bg-glass);
}
.menu-league-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.menu-league-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.menu-league-item:hover .menu-league-name {
  color: var(--text);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0,240,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(124,58,237,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255,59,92,0.04) 0%, transparent 60%);
  animation: gradientShift 15s ease infinite;
  background-size: 200% 200%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--brand-blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Hero preview card */
.hero-preview {
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* ============================================================
   FIXTURE BROWSER (Date + Sport Filters + Fixtures)
   ============================================================ */
.fixture-browser {
  padding: 0 0 80px;
  position: relative;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title .accent {
  color: var(--accent);
}

.section-link {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.section-link:hover { gap: 8px; }

/* Date Ribbon */
.date-ribbon {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
  overflow: hidden;
  user-select: none;
}

.date-ribbon-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid rgba(74,161,217,0.15);
  color: var(--brand-blue);
  transition: all var(--transition);
  font-size: 1rem;
  cursor: pointer;
}

.date-ribbon-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--brand-blue);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .date-ribbon-arrow:hover {
    background: var(--brand-blue-dim);
    border-color: var(--brand-blue);
  }
}
.date-ribbon-arrow:active {
  transform: scale(0.93);
  background: var(--brand-blue-dim);
}

.date-ribbon-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 4px 2px;
  cursor: grab;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.date-ribbon-scroll.dragging {
  cursor: grabbing;
}

.date-ribbon-scroll::-webkit-scrollbar { display: none; }

.date-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 64px;
  width: 64px;
  height: 72px;
  justify-content: center;
}

.date-item-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.date-item-day {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.2;
}

.date-item-month {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (hover: hover) {
  .date-item:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255,255,255,0.12);
  }
}
.date-item:active {
  transform: scale(0.93);
}

/* Selected day - solid blue border, blue tinted bg */
.date-item.active {
  background: var(--brand-blue-dim);
  border-color: var(--brand-blue);
  box-shadow: 0 0 12px rgba(74,161,217,0.2);
}

.date-item.active .date-item-label { color: var(--brand-blue); }
.date-item.active .date-item-day { color: #fff; }
.date-item.active .date-item-month { color: var(--brand-blue); }

/* Today marker when not selected */
.date-item.today:not(.active) .date-item-label {
  color: var(--brand-blue);
  font-weight: 700;
}
.date-item.today:not(.active) {
  border-color: rgba(74,161,217,0.3);
}


@media (max-width: 768px) {
  .date-item {
    min-width: 52px;
    width: 52px;
    height: 60px;
    padding: 6px 6px;
  }
  .date-ribbon-arrow {
    width: 20px;
    height: 60px;
  }
  .date-item-day { font-size: 1rem; }
}

/* --- Sport & League Filter --- */
.sport-filter {
  margin-bottom: 16px;
}

/* Tier 1: Sport Rail */
.sport-rail {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.sport-rail::-webkit-scrollbar { display: none; }

.sport-rail-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: none;
  border: none;
  color: inherit;
}
.sport-rail-item:hover {
  background: var(--bg-glass-hover);
}
.sport-rail-item.active {
  background: var(--brand-blue-dim);
}
.sport-rail-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 2px;
}

.sport-rail-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1.5px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--transition);
}
.sport-rail-item.active .sport-rail-badge {
  border-color: var(--brand-blue);
  box-shadow: 0 0 12px var(--brand-blue-glow);
}
.sport-rail-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.sport-rail-badge svg {
  width: 18px;
  height: 18px;
}

/* Labels removed — icon-only rail */

/* Tier 2: League Tray */
.league-tray {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
}
.league-tray.open {
  max-height: 56px;
  opacity: 1;
}

.league-tray-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0 4px;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.league-tray-scroll::-webkit-scrollbar { display: none; }

.league-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1.5px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.league-pill:hover {
  background: var(--bg-glass-hover);
}
.league-pill.active {
  background: var(--brand-blue-dim);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: 0 0 10px var(--brand-blue-glow);
}
.league-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.league-pill svg {
  width: 16px;
  height: 16px;
}
.league-pill-letter {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .sport-rail-item {
    width: 42px;
    height: 42px;
  }
  .sport-rail-badge {
    width: 32px;
    height: 32px;
  }
  .sport-rail-badge img {
    width: 20px;
    height: 20px;
  }
  .league-pill {
    width: 32px;
    height: 32px;
  }
  .league-pill img {
    width: 18px;
    height: 18px;
  }
}

/* Date Status Bar */
/* date-status removed — calendar icon now lives in day separator bars */

/* Calendar Popup */
.calendar-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  min-width: 280px;
  animation: fadeInUp 0.2s ease;
}

.calendar-popup.open { display: block; }

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: all var(--transition);
}

.calendar-nav button:hover {
  color: var(--text);
  border-color: var(--accent);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.calendar-dow {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
  text-transform: uppercase;
}

.calendar-day {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  margin: 0 auto;
}

.calendar-day:hover {
  background: var(--bg-glass);
  color: var(--text);
}

.calendar-day.today {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 700;
}

.calendar-day.selected {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

.calendar-day.other-month {
  color: var(--text-muted);
  opacity: 0.4;
}

/* ============================================================
   FIXTURE CARDS
   ============================================================ */
/* --- Date & Week Separators --- */
.date-separator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 0;
  background: none;
  border: none;
}
.date-separator:first-child { margin-top: 0; }

.date-separator-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #00c4cc);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  transition: all var(--transition);
}
.date-separator-btn:hover {
  box-shadow: 0 0 20px rgba(0,240,255,0.3);
  transform: translateY(-1px);
}
.date-separator-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 10px rgba(0,240,255,0.2);
}
.date-separator-btn svg { color: #000; }
.date-separator.today .date-separator-btn { color: #000; }
.date-separator.tomorrow .date-separator-btn { background: linear-gradient(135deg, var(--purple), #9333ea); color: #000; }
.date-separator-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 12px;
}

.week-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  margin-top: 12px;
}
.week-separator span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 16px;
  position: relative;
}
.week-separator span::before,
.week-separator span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--border-glass);
}
.week-separator span::before { right: 100%; }
.week-separator span::after { left: 100%; }

.fixture-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fixture-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  margin-bottom: 8px;
}

.fixture-card:hover {
  border-color: var(--border-glow);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.fixture-card:active {
  transform: scale(0.985);
  box-shadow: none;
}

.fixture-card-main {
  display: grid;
  grid-template-columns: 60px 1fr auto 1fr 60px;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
}

/* Motorsport card: 3-column layout (league | event+info | status) */
.fixture-card-main.fixture-motorsport {
  grid-template-columns: 60px 1fr 60px;
}
.fixture-motor-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.fixture-motor-event {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.fixture-motor-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fixture-league {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fixture-league img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.fixture-league-name {
  display: none;
}

.fixture-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.fixture-team img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.fixture-team-name {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.2;
  max-width: 100px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.fixture-status-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  background: none;
}

.status-pill .status-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  position: relative;
}
.status-pill .status-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-pill .status-dot.live::after {
  background: #ef4444;
  animation: pulse-live 1.5s ease-in-out infinite;
}
.status-pill .status-dot.ft::after { background: var(--text-muted); }
.status-pill .status-dot.cancelled::after { background: var(--brand-orange); }

.status-pill .status-dot {
  transition: background 0.2s ease;
}
.status-pill .status-dot:hover {
  background: rgba(255,255,255,0.12);
}

.status-chevron-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  cursor: pointer;
}
.status-chevron-wrap:hover {
  background: var(--brand-blue);
}
.fixture-card.card-open .status-chevron-wrap {
  background: var(--brand-blue);
}

.status-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.status-chevron-wrap:hover .status-chevron {
  color: #000;
}

.fixture-card.card-open .status-chevron {
  transform: rotate(180deg);
  color: #000;
}

.fixture-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.fixture-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.fixture-date-sm {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.fixture-date {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.fixture-score {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.05em;
  display: block;
}

.fixture-score.live { color: var(--live); }

.fixture-status {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fixture-status.live { color: var(--live); }
.fixture-status.finished { color: var(--text-muted); }
.fixture-status.cancelled { color: var(--brand-orange); }

.fixture-period {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--live);
  letter-spacing: 0.04em;
}

.fixture-extra {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.status-dot.cancelled { background: var(--brand-orange); }

.fixture-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.fixture-status-badge.live {
  background: var(--live-dim);
  color: var(--live);
}

.fixture-status-badge.live .live-dot {
  width: 6px;
  height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}

.fixture-status-badge.ft {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.fixture-status-badge.upcoming {
  background: var(--accent-dim);
  color: var(--accent);
}

.fixture-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-left: 8px;
}

/* Fixture card bottom strip */
.fixture-card-footer {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 10px 20px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border-glass);
  cursor: pointer;
  font-size: 0.75rem;
}
.fixture-card.card-open .fixture-card-footer {
  display: flex;
}

.fixture-card-footer .footer-text {
  color: var(--text-muted);
  font-weight: 500;
  padding: 2px 0;
}

.fixture-card-footer.footer-bookable .footer-text {
  color: var(--accent);
}

.fixture-card-footer.footer-live .footer-text,
.fixture-card-footer.footer-starting .footer-text {
  color: var(--brand-orange);
}

.fixture-card-footer.footer-unavailable .footer-text {
  color: var(--text-muted);
  font-style: italic;
}

.footer-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--border-glass);
  margin-top: 6px;
}

.footer-location-row + .footer-location-row {
  margin-top: 0;
}

.footer-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.footer-loc svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background var(--transition);
}

.footer-action-btn:hover {
  background: rgba(74,161,217,0.25);
}

/* Fixture card state classes */
.fixture-card.card-past {
  opacity: 0.6;
}

.fixture-card.card-bookable {
  border-left-color: var(--accent);
}

.fixture-card.card-live,
.fixture-card.card-live-bookable {
  border-left-color: var(--live);
}

.fixture-card.card-starting,
.fixture-card.card-starting-bookable {
  border-left-color: var(--brand-orange);
}

.fixture-card.card-unavailable {
  border-left-color: var(--border-glass);
}

/* Empty state */
.fixture-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.fixture-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.fixture-empty-text {
  font-size: 1rem;
  font-weight: 500;
}

.fixture-empty-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.next-fixtures-section {
  margin-top: 8px;
}

.next-fixtures-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-glass);
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 1;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition);
  white-space: nowrap;
  min-width: fit-content;
}

.tab:hover {
  color: var(--text);
}
.tab:active {
  transform: scale(0.95);
}

.tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tab .tab-count {
  font-size: 0.7rem;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 100px;
  margin-left: 6px;
}

.tab.active .tab-count {
  background: var(--accent);
  color: #000;
}

.tab .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 4px;
  vertical-align: middle;
  animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   BROWSE SPORTS & LEAGUES
   ============================================================ */
.browse-section {
  padding: 60px 0;
  scroll-margin-top: var(--nav-height);
}

/* Browse groups (World Sports, Soccer Leagues, Made in the USA) */
.browse-group {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 16px 20px 20px;
  margin-bottom: 16px;
}

.browse-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.browse-group-header svg {
  flex-shrink: 0;
  background: var(--brand-blue-dim);
  border-radius: 50%;
  padding: 4px;
  width: 28px;
  height: 28px;
}

.browse-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.browse-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 52px;
  cursor: pointer;
  transition: transform var(--transition);
}
.browse-badge:hover {
  transform: translateY(-2px);
}
.browse-badge:active {
  transform: scale(0.92);
}

.browse-badge-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.browse-badge-img img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.browse-badge-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.browse-badge-name {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.15;
  max-width: 52px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .browse-section { padding: 40px 0; }
  .browse-group { padding: 12px 14px 16px; }
  .browse-group-header { font-size: 0.85rem; margin-bottom: 10px; }
  .browse-badges-row { gap: 8px; }
  .browse-badge { width: 46px; }
  .browse-badge-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .browse-badge-img img {
    width: 26px;
    height: 26px;
  }
  .browse-badge-name {
    font-size: 0.5rem;
    max-width: 46px;
  }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 80px 0;
  position: relative;
  scroll-margin-top: var(--nav-height);
}

.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,58,237,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.how-tracks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.how-track {
  position: relative;
}

.how-track-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-track-title .icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.how-track-title .icon.fans {
  background: var(--accent-dim);
}

.how-track-title .icon.bars {
  background: var(--accent2-dim);
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.how-step:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.how-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.fans .how-step-num {
  background: var(--accent-dim);
  color: var(--accent);
}

.bars .how-step-num {
  background: var(--accent2-dim);
  color: var(--accent2);
}

.how-step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.how-step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   FEATURED BARS
   ============================================================ */
.bars-section {
  padding: 60px 0;
  scroll-margin-top: var(--nav-height);
}

.bars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.bar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.bar-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.bar-card:active {
  transform: scale(0.98);
  box-shadow: none;
}

.bar-card-image {
  height: 160px;
  background: var(--bg-glass);
  position: relative;
  overflow: hidden;
}

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

.bar-card-image .bar-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-glow);
}

.bar-card-body {
  padding: 16px;
}

.bar-card-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.bar-card-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.bar-card-sports {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bar-card-sport-tag {
  padding: 3px 8px;
  background: var(--bg-glass);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.bar-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bar-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   FAVORITES TEASER
   ============================================================ */
.favorites-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--nav-height);
}

.favorites-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,240,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.favorites-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.favorites-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.favorites-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.favorites-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.favorites-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  animation: float 3s ease infinite;
}

.favorites-badge:nth-child(2) { animation-delay: 0.3s; }
.favorites-badge:nth-child(3) { animation-delay: 0.6s; }
.favorites-badge:nth-child(4) { animation-delay: 0.9s; }
.favorites-badge:nth-child(5) { animation-delay: 1.2s; }
.favorites-badge:nth-child(6) { animation-delay: 1.5s; }

.favorites-badge:hover {
  border-color: var(--accent);
  transform: scale(1.15);
}
.favorites-badge:active {
  transform: scale(0.9);
}

.favorites-badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 80px 0;
  scroll-margin-top: var(--nav-height);
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 0%, rgba(0,240,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 70% 100%, rgba(124,58,237,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box > * { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.social-logins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.social-btn:active {
  transform: scale(0.96);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.cta-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cta-divider::before,
.cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-glass);
}

.signup-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.signup-buttons .btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.signup-buttons .btn svg { flex-shrink: 0; }
.signup-buttons .btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}
.signup-buttons .btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px 0 24px;
  border-top: 1px solid var(--border-glass);
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { grid-column: 1 / -1; }
.footer-link-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  grid-column: 1 / -1;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.footer-col a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-brand-img {
  height: 24px;
  width: auto;
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   BOTTOM NAV (Mobile)
   ============================================================ */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  height: var(--bottom-nav-height);
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 0.65rem;
  font-size: 0.65rem;
  font-weight: 500;
}

.bottom-nav-item .nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--accent);
}
.bottom-nav-item:active {
  transform: scale(0.9);
}

.bottom-nav-item.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(0,240,255,0.4));
}

/* ============================================================
   FIXTURES PAGE
   ============================================================ */

.fixtures-page {
  padding-top: calc(var(--nav-height) + 16px);
  min-height: 100vh;
}

.page-header {
  margin-bottom: 16px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-page {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
}

.legal-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
}

.legal-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.legal-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.legal-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.legal-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.legal-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.legal-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

.legal-contact {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
}

.legal-contact a {
  color: var(--accent);
  text-decoration: underline;
}

/* Legal Policy Detail */
.container-narrow {
  max-width: 780px;
}

.legal-policy-nav {
  margin-bottom: 32px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity var(--transition);
}

.legal-back:hover { opacity: 0.7; }

/* Prose styles for markdown content */
.prose {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.9rem;
}

.prose h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}

.prose p { margin: 0 0 16px; }

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.prose li { margin-bottom: 6px; }

.prose strong { color: var(--text); font-weight: 600; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85rem;
}

.prose th, .prose td {
  padding: 10px 12px;
  border: 1px solid var(--border-glass);
  text-align: left;
}

.prose th {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 640px) {
  .legal-grid { grid-template-columns: 1fr 1fr; }
}

/* Legal Modal */
.legal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.legal-modal-overlay.open {
  display: flex;
}

.legal-modal {
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.legal-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.legal-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.legal-modal-close:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.legal-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.legal-modal-body .prose h1 {
  display: none;
}

/* ============================================================
   LOGIN MODAL
   ============================================================ */
.login-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-modal-overlay.open { display: flex; }

.login-modal {
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  animation: modalIn 0.2s ease;
  text-align: center;
}

.login-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.login-modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.login-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 4px;
}
.login-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.login-modal .social-logins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.login-modal .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.login-modal .social-btn:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.login-modal .social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-glass);
}

.login-method-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.login-method-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}
.login-method-btn.btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}
.login-method-btn.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
}
.login-method-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.login-method-btn.btn-whatsapp.active {
  border-color: #25D366;
  box-shadow: 0 0 0 1px #25D366;
}

/* Login form */
.login-form {
  text-align: left;
}
.login-form input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.15s;
}
.login-form input:focus { border-color: var(--accent); }
.login-form input::placeholder { color: var(--text-muted); }

/* Phone input with country code */
.phone-input-wrap {
  display: flex;
  position: relative;
  margin-bottom: 10px;
}
.phone-input-wrap input#phoneNumber {
  flex: 1;
  border-radius: 0 8px 8px 0;
  border-left: none;
  margin-bottom: 0;
}
.phone-code-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px 0 0 8px;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.phone-code-btn:hover { border-color: var(--accent); }
.phone-code-btn svg { stroke: var(--text-muted); flex-shrink: 0; }
.phone-code-btn img { flex-shrink: 0; }
.phone-code-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 220px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.phone-code-dropdown.open { display: block; }
.phone-code-search {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-glass);
  border: none;
  border-bottom: 1px solid var(--border-glass);
  border-radius: 8px 8px 0 0;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  margin-bottom: 0;
}
.phone-code-search::placeholder { color: var(--text-muted); }
.phone-code-list {
  max-height: 170px;
  overflow-y: auto;
}
.phone-code-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.1s;
}
.phone-code-item:hover { background: rgba(255,255,255,0.05); }
.phone-code-item.active { background: rgba(74,161,217,0.15); }
.phone-code-item img { flex-shrink: 0; }
.phone-code-item-name { flex: 1; }
.phone-code-item-dial { color: var(--text-muted); font-size: 0.8rem; }

.login-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.login-error {
  color: #ef4444;
  font-size: 0.8rem;
  min-height: 20px;
  margin-bottom: 6px;
}

.login-submit {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.login-toggle {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.login-toggle button {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  margin-left: 4px;
}
.login-toggle button:hover { text-decoration: underline; }

/* ============================================================
   NAVBAR AUTH (User Menu)
   ============================================================ */
.nav-user-menu {
  position: relative;
}

/* legacy .nav-avatar kept for reference, replaced by .nav-user-btn + .nav-avatar-circle */

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  min-width: 180px;
  padding: 6px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-dropdown.open { display: block; }

.nav-dropdown a,
.nav-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.85rem;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown a:hover,
.nav-dropdown button:hover {
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (min-width: 640px) {
  .bars-grid { grid-template-columns: repeat(2, 1fr); }
  .how-tracks { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .fixture-card-main { gap: 16px; }
}

/* Desktop */
@media (min-width: 768px) {
  .container { padding: 0 24px; }

  .hero .container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-content { text-align: left; }
  .hero-subtitle { margin: 0 0 32px; }
  .hero-cta { justify-content: flex-start; }
  .hero-stats { justify-content: flex-start; }


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

  .bottom-nav { display: none; }

  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: auto; }
  .footer-link-cols {
    grid-column: span 3;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .container { padding: 0 32px; }

  .fixture-card-main {
    padding: 18px 24px;
    gap: 20px;
  }

  .fixture-team-name { font-size: 0.6rem; }
  .fixture-time { font-size: 1.2rem; }

  .how-steps { flex-direction: row; gap: 16px; }
  .how-step { flex: 1; flex-direction: column; text-align: center; }
}

@media (min-width: 1440px) {
  :root { --container: 1320px; }
}

/* --- Mobile fixture card adaptation --- */
@media (max-width: 639px) {
  .fixture-card-main {
    grid-template-columns: 40px 1fr auto 1fr 40px;
    padding: 12px 12px;
    gap: 6px;
  }

  .fixture-league img { width: 32px; height: 32px; }

  .fixture-team img { width: 40px; height: 40px; }
  .fixture-team-name { font-size: 0.45rem; max-width: 70px; }
  .fixture-center { min-width: 60px; }
  .fixture-time { font-size: 0.9rem; }
  .fixture-score { font-size: 1rem; }
  .status-pill .status-dot { width: 24px; height: 24px; }
  .status-pill .status-dot::after { width: 6px; height: 6px; }
  .status-chevron-wrap { width: 24px; height: 24px; }
  .status-chevron { width: 12px; height: 12px; }
}

/* --- Loading States --- */
.loading-fixture {
  height: 80px;
  margin-bottom: 8px;
}

.loading-sport {
  height: 100px;
}

.loading-bar {
  height: 260px;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Events Page --- */
.events-page { padding-top: 24px; padding-bottom: 80px; }
.events-page .page-header { margin-bottom: 16px; }
.events-page .page-title { font-size: 1.5rem; font-weight: 700; }

.ev-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0;
}
.ev-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.ev-tab:hover { color: var(--text); }
.ev-tab.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ev-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.ev-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue-dim);
  box-shadow: var(--shadow-glow);
}

.ev-card-cover {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}
.ev-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ev-card-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.ev-card-cover-sports {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
}
.ev-sports-league-badge {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 8px;
  opacity: 0.6;
}
.ev-sports-teams {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ev-sports-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ev-sports-team img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.ev-sports-team span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  max-width: 80px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-sports-vs {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.ev-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ev-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ev-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
}
.ev-badge-sports {
  background: var(--brand-blue-dim);
  color: var(--brand-blue);
}
.ev-badge-general {
  background: var(--accent2-dim);
  color: var(--accent2);
}
.ev-league-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}
.ev-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ev-card-date, .ev-card-venue {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ev-card-date svg, .ev-card-venue svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.ev-card-org {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid var(--border-glass);
}

.ev-load-more {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}
.ev-load-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--brand-blue);
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.ev-load-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--brand-blue-dim);
}

.ev-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}
.ev-empty h3 { font-size: 1.1rem; color: var(--text-secondary); }
.ev-empty p { font-size: 0.85rem; }

@media (max-width: 900px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 600px) {
  .ev-grid { grid-template-columns: 1fr; gap: 12px; }
  .ev-sports-team img { width: 36px; height: 36px; }
  .ev-sports-teams { gap: 12px; }
}

.text-accent { color: var(--accent); }
.text-live { color: var(--live); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
