/* ═══════════════════════════════════════════════════════════════════
   ANTIGRAVITY SPORTS HUB — Triunfobet Signature Theme v5.0
   Sportsbook Deep Midnight Navy & Electric Gold · HD Typography
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens — Triunfobet Gold & Midnight Navy Palette ─────── */
:root {
  /* Backgrounds — Deep Midnight Sportsbook Navy */
  --bg:           #0A1128; /* Azul Noche Profundo Triunfobet */
  --bg-2:         #101935; /* Navy Oscuro Elegante */
  --bg-3:         #1C2541; /* Contenedores y Tablas */
  --bg-card:      #131C38; /* Tarjetas de Partidos y Cuotas */
  --bg-hover:     #1E2B4F; /* Hover en Tarjetas */
  --glass:        rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 215, 0, 0.18); /* Borde Dorado Sutil */

  /* Brand Colors — Triunfobet Gold & Sports Neon */
  --primary:      #FFD700; /* Oro Triunfobet (Gold Eléctrico) */
  --primary-dim:  rgba(255, 215, 0, 0.14);
  --primary-glow: rgba(255, 215, 0, 0.35);
  --secondary:    #00E5FF; /* Cian Neón */
  --sec-dim:      rgba(0, 229, 255, 0.15);
  --accent:       #FF9F1C; /* Naranja Neón */
  --accent-dim:   rgba(255, 159, 28, 0.15);

  /* Status */
  --success:      #00E676; /* Verde Ganador */
  --danger:       #FF3D71; /* Rojo En Vivo */
  --warning:      #FFD700; /* Dorado Warning */
  --live:         #FF3D71;

  /* Text — Alta Nitidez Triunfobet (100% Nítido, Cero Borroso) */
  --text:         #FFFFFF; /* Blanco Puro Ultra Nítido */
  --text-muted:   #CBD5E1; /* Gris Claro Legible */
  --text-dim:     #94A3B8; /* Gris Secundario Legible */

  /* Sport Colors */
  --soccer:       #00E676;
  --baseball:     #FF9F1C;
  --basketball:   #FF8C00;
  --hockey:       #00E5FF;
  --tennis:       #ADFF2F;
  --golf:         #90EE90;
  --boxing:       #FF3D71;
  --football:     #D97706;
  --mma:          #DC143C;

  /* Layout & Typography */
  --font:         'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
  --mono:         'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-xs:    5px;
  --shadow:       0 10px 35px rgba(0, 0, 0, 0.5);
  --shadow-glow:  0 0 25px rgba(255, 215, 0, 0.25);
  --trans:        all .28s cubic-bezier(.4,0,.2,1);
  --trans-fast:   all .15s ease;
  --container:    1440px;
}

/* ── Reset & Sharp Anti-Aliasing ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Triunfobet Midnight mesh background layers */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 15% -5%, rgba(255, 215, 0, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 85% 105%, rgba(0, 229, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(255, 159, 28, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT BASE ─────────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 17, 40, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}
.header-inner {
  max-width: var(--container);
  margin: auto;
  padding: .45rem .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
}

/* Logo */
.logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: .4rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-main {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 2px;
  color: #FFFFFF;
  line-height: 1;
}
.logo-main span { color: var(--primary); text-shadow: 0 0 12px var(--primary-glow); }
.logo-sub {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
}

/* Nav — Compact Single Line (No Scroll) */
.nav {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-left: auto;
  flex-wrap: nowrap;
}
.nav a {
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 700;
  font-size: .78rem;
  padding: .32rem .52rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: var(--trans);
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.nav a:hover { color: #FFFFFF; background: var(--bg-3); border-color: rgba(255, 215, 0, 0.25); }
.nav a.active { color: var(--primary); background: var(--primary-dim); border-color: rgba(255, 215, 0, 0.35); text-shadow: 0 0 10px rgba(255,215,0,0.3); }

/* Header Navbar Dropdown Menu */
.nav-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.dropdown-arrow {
  font-size: .65rem;
  margin-left: .25rem;
  transition: transform .25s ease;
  display: inline-block;
}
.nav-dropdown-wrap:hover .dropdown-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background: rgba(10, 17, 40, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  border-radius: 14px;
  padding: .5rem 0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s cubic-bezier(0.4, 0, 0.2, 1), transform .25s cubic-bezier(0.4, 0, 0.2, 1), visibility .25s;
  z-index: 1000;
  margin-top: .4rem;
}
.nav-dropdown-wrap:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu .dropdown-item {
  display: flex !important;
  align-items: center;
  gap: .65rem;
  padding: .75rem 1.15rem;
  color: #CBD5E1;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, border-left .2s ease;
  border-left: 3px solid transparent;
  border-radius: 0;
}
.nav-dropdown-menu .dropdown-item:hover {
  background: rgba(255, 215, 0, 0.12);
  color: var(--primary);
  border-left-color: var(--primary);
}

/* Live & Engine pills hidden to prevent header overflow */
.live-pill, .engine-pill {
  display: none !important;
}

.engine-pill {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(0, 230, 118, .12);
  border: 1px solid rgba(0, 230, 118, .3);
  padding: .35rem .85rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--success);
  letter-spacing: .5px;
}

/* Pulse dot */
.pulse-dot {
  width: 7px; height: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:.6; transform:scale(.85); }
  50%      { opacity:1;  transform:scale(1.2); }
}

/* ── MAIN CONTENT ───────────────────────────────────────────────── */
.main-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ── HERO SECTION ───────────────────────────────────────────────── */
.hero-sports {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
  background: var(--bg-2);
}
.hero-sports-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 17, 40, 0) 0%, var(--bg) 100%),
    linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(0, 229, 255, 0.08) 50%, rgba(255, 159, 28, 0.06) 100%);
  z-index: 0;
}
.hero-sports-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
}
.hero-inner {
  max-width: var(--container);
  margin: auto;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary-dim);
  border: 1px solid rgba(255, 215, 0, .3);
  color: var(--primary);
  padding: .35rem 1rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  letter-spacing: 4px;
  line-height: .95;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}
.hero-title .hl {
  background: linear-gradient(90deg, #FFD700 0%, #FF9F1C 50%, #00E5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.hero-sub {
  color: #E2E8F0;
  font-size: 1.1rem;
  max-width: 550px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #0A1128;
  font-weight: 900;
  font-size: .95rem;
  padding: .85rem 2.2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  letter-spacing: .5px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.55);
}
.btn-ghost {
  background: var(--bg-3);
  color: #FFFFFF;
  font-weight: 700;
  font-size: .92rem;
  padding: .82rem 1.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
}
.btn-ghost:hover { background: var(--bg-hover); border-color: rgba(255, 215, 0, 0.35); }

/* Live ticker */
.live-ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(10, 17, 40, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4);
  padding: .75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  z-index: 3;
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--live);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  gap: 3rem;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .88rem;
  flex-shrink: 0;
}
.ticker-sport { font-size: 1rem; }
.ticker-teams { font-weight: 800; color: #FFFFFF; }
.ticker-score {
  font-family: var(--mono);
  font-weight: 800;
  color: #0A1128;
  background: var(--primary);
  padding: .15rem .55rem;
  border-radius: 4px;
}
.ticker-status-live {
  color: var(--live);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .5px;
}
.ticker-divider { color: var(--text-dim); }

/* ── SECTION FRAMEWORK ──────────────────────────────────────────── */
.section-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem;
}
.section-wrap.narrow { max-width: 1100px; }
.section-wrap + .section-wrap { padding-top: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .4rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: 2px;
  color: #FFFFFF;
  line-height: 1;
}
.view-all {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  font-size: .85rem;
  padding: .5rem 1.1rem;
  border: 1px solid rgba(255, 215, 0, .3);
  border-radius: var(--radius-sm);
  transition: var(--trans);
  white-space: nowrap;
  background: var(--bg-card);
}
.view-all:hover { background: var(--primary-dim); border-color: var(--primary); }

/* ── SPORTS CATEGORIES GRID ─────────────────────────────────────── */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.sport-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: #FFFFFF;
  overflow: hidden;
  transition: var(--trans);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 180px;
  box-shadow: var(--shadow);
}
.sport-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sport-color, var(--primary)) 0%, transparent 70%);
  opacity: 0;
  transition: var(--trans);
}
.sport-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 0, 0.2);
}
.sport-card:hover::before { opacity: .12; }
.sport-card:hover .sport-icon { transform: scale(1.15); }

.sport-card.sport-soccer   { --sport-color: var(--soccer);     }
.sport-card.sport-baseball { --sport-color: var(--baseball);   }
.sport-card.sport-basketball { --sport-color: var(--basketball); }
.sport-card.sport-hockey   { --sport-color: var(--hockey);     }
.sport-card.sport-tennis   { --sport-color: var(--tennis);     }
.sport-card.sport-golf     { --sport-color: var(--golf);       }
.sport-card.sport-boxing   { --sport-color: var(--boxing);     }
.sport-card.sport-football { --sport-color: var(--football);   }
.sport-card.sport-mma      { --sport-color: var(--mma);        }

.sport-icon {
  font-size: 2.8rem;
  line-height: 1;
  transition: var(--trans);
}
.sport-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: #FFFFFF;
}
.sport-count {
  font-size: .78rem;
  color: #CBD5E1;
  font-weight: 600;
}
.sport-arrow {
  position: absolute;
  bottom: 1.25rem; right: 1.25rem;
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--trans);
}
.sport-card:hover .sport-arrow { opacity: 1; transform: translateX(0); }

/* ── LEAGUES SECTION ────────────────────────────────────────────── */
.leagues-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: none;
}
.leagues-tabs::-webkit-scrollbar { display: none; }
.league-tab {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: #CBD5E1;
  padding: .5rem 1.25rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font);
}
.league-tab:hover { color: #FFFFFF; background: var(--bg-3); }
.league-tab.active { background: var(--primary-dim); color: var(--primary); border-color: var(--primary); }

.leagues-panel { display: none; }
.leagues-panel.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }

.league-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #FFFFFF;
  transition: var(--trans);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.league-card:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 215, 0, 0.35);
  transform: translateX(4px);
}
.league-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}
.league-logo img {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 6px;
}
.league-info { flex: 1; min-width: 0; }
.league-name {
  font-weight: 800;
  font-size: .95rem;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.league-meta { font-size: .75rem; color: #CBD5E1; margin-top: .15rem; }
.league-badge {
  font-size: .65rem;
  font-weight: 800;
  padding: .2rem .5rem;
  border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.league-badge.active-season { background: rgba(0, 230, 118, .15); color: var(--success); border: 1px solid rgba(0, 230, 118, .3); }
.league-badge.off-season    { background: var(--bg-3); color: var(--text-dim); border: 1px solid var(--glass-border); }

/* ── LIVE RESULTS ────────────────────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.result-card:hover { border-color: rgba(255, 215, 0, 0.35); background: var(--bg-hover); }
.result-card.is-live { border-color: rgba(255, 61, 113, .4); }
.result-card.is-live::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 3px;
  background: linear-gradient(90deg, var(--live), transparent);
  animation: live-bar 2s linear infinite;
}
@keyframes live-bar {
  0%   { opacity: 1; }
  50%  { opacity: .4; }
  100% { opacity: 1; }
}
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.result-league { font-size: .75rem; color: #CBD5E1; font-weight: 700; }
.result-status {
  font-size: .72rem;
  font-weight: 800;
  padding: .2rem .6rem;
  border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.status-live    { background: rgba(255, 61, 113, .18); color: var(--live); border: 1px solid rgba(255, 61, 113, .3); }
.status-final   { background: var(--bg-3); color: var(--text-dim); border: 1px solid var(--glass-border); }
.status-soon    { background: var(--primary-dim); color: var(--primary); border: 1px solid rgba(255, 215, 0, .3); }

.matchup-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.team-block { display: flex; flex-direction: column; gap: .3rem; }
.team-block.away { text-align: right; align-items: flex-end; }
.team-flag {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.team-name-r { font-weight: 800; font-size: .98rem; color: #FFFFFF; }
.team-record { font-size: .72rem; color: #CBD5E1; }

.score-center { text-align: center; }
.score-display {
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.score-sep { color: var(--text-dim); font-size: 1.4rem; }
.score-time { font-size: .72rem; color: #CBD5E1; margin-top: .25rem; text-transform: uppercase; letter-spacing: .5px; }
.score-soon { font-size: 1.1rem; font-weight: 800; color: var(--primary); }

/* ── NEWS SECTION ───────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #FFFFFF;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.news-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 15px 35px rgba(0,0,0,0.6); }
.news-card.featured { grid-row: span 2; }
.news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}
.news-card.featured .news-thumb { aspect-ratio: 4/3; }
.news-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
}
.news-sport-tag {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--primary);
  color: #0A1128;
  font-size: .65rem;
  font-weight: 900;
  padding: .2rem .6rem;
  border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.news-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.news-title {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.35;
  color: #FFFFFF;
}
.news-card.featured .news-title { font-size: 1.2rem; }
.news-meta { font-size: .75rem; color: #CBD5E1; margin-top: auto; }

/* ── STATS KPI ROW ──────────────────────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  transition: var(--trans);
  box-shadow: var(--shadow);
}
.kpi-card:hover { border-color: var(--primary); }
.kpi-val {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  font-family: var(--mono);
}
.kpi-label {
  font-size: .72rem;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 700;
}

/* ── PREDICTION SECTION ─────────────────────────────────────────── */
.section-block {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-heading h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.icon-tag { font-size: 1.4rem; }

/* Buttons */
.btn-recalc {
  background: var(--primary-dim);
  border: 1px solid rgba(255, 215, 0, .3);
  color: var(--primary);
  padding: .55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .85rem;
  text-decoration: none;
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-recalc:hover { background: rgba(255, 215, 0, .22); transform: translateY(-1px); }

/* Empty State */
.empty-state {
  background: var(--bg-card);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: .5rem; color: #FFFFFF; }
.empty-state p { color: #CBD5E1; margin-bottom: 1.5rem; }
.n8n-hint {
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: .75rem 1.25rem;
  display: inline-block;
  text-align: left;
}
.n8n-hint strong { display: block; color: #CBD5E1; font-size: .8rem; margin-bottom: .35rem; }
.n8n-hint code { font-family: var(--mono); font-size: .85rem; color: var(--primary); }
.empty-state.compact { padding: 1.5rem; }

/* Ticket Cards */
.tickets-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}
.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--trans);
  box-shadow: var(--shadow);
}
.ticket-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 15px 35px rgba(0,0,0,0.6); }
.ticket-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, .04) 0%, rgba(0, 229, 255, .04) 100%);
  pointer-events: none;
}
.ticket-card.ticket-high::after { background: var(--primary); }
.ticket-card.ticket-mid::after  { background: var(--warning); }
.ticket-card.ticket-low::after  { background: var(--text-dim); }
.ticket-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
}
.ticket-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.ticket-id { font-family: var(--mono); font-size: .85rem; color: var(--primary); font-weight: 700; }
.prob-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 900;
  color: #FFFFFF;
}
.ticket-prob-circle { position: relative; width: 56px; height: 56px; }
.circular-chart { transform: rotate(-90deg); }
.circle-bg { fill: none; stroke: var(--bg-3); stroke-width: 3; }
.circle { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ticket-matches { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.25rem; }
.ticket-match-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .75rem;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}
.sport-dot { font-size: 1.1rem; }
.match-info { flex: 1; }
.team-names { display: block; font-weight: 800; font-size: .9rem; color: #FFFFFF; }
.team-names em { color: var(--primary); font-style: normal; margin: 0 .3rem; font-size: .8rem; }
.pick-label { font-size: .78rem; color: #CBD5E1; }
.pick-local     { color: var(--primary); }
.pick-empate    { color: #CBD5E1; }
.pick-visitante { color: var(--secondary); }
.match-odds { font-family: var(--mono); font-weight: 800; color: var(--primary); font-size: .95rem; }
.ticket-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.combo-odds { font-size: .85rem; color: #CBD5E1; }
.combo-odds strong { color: var(--primary); font-size: 1.15rem; }
.retorno-calc { font-size: .85rem; }
.retorno-val { color: var(--success); font-size: 1rem; font-weight: 800; }

/* Predictions Table */
.predictions-section .predictions-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.table-controls { display: flex; gap: .75rem; }
.search-box {
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  padding: .5rem 1rem;
  font-family: var(--font);
  font-size: .9rem;
  width: 220px;
  transition: var(--trans);
}
.search-box:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 12px var(--primary-glow); }
.sport-filter {
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  padding: .5rem .75rem;
  font-family: var(--font);
  font-size: .9rem;
}
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pred-table { width: 100%; border-collapse: collapse; }
.pred-table th {
  background: var(--bg-2);
  padding: .9rem 1.1rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--primary);
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}
.pred-table td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--glass-border); vertical-align: middle; color: #FFFFFF; }
.pred-table tr:last-child td { border-bottom: none; }
.pred-row { transition: var(--trans); }
.pred-row:hover { background: var(--bg-hover); }
.cell-match { min-width: 220px; }
.match-teams-cell { display: flex; align-items: center; gap: .4rem; font-weight: 800; flex-wrap: wrap; color: #FFFFFF; }
.team-home, .team-away { font-size: .95rem; color: #FFFFFF; }
.vs-tag { color: var(--primary); font-size: .75rem; font-weight: 800; }
.match-time { font-size: .75rem; color: #CBD5E1; margin-top: .15rem; }
.badge-sport { font-size: .75rem; font-weight: 800; padding: .25rem .6rem; border-radius: 6px; white-space: nowrap; }
.badge-futbol { background: var(--primary-dim); color: var(--primary); border: 1px solid rgba(255,215,0,.3); }
.badge-mlb    { background: var(--sec-dim); color: var(--secondary); border: 1px solid rgba(0,229,255,.3); }
.cell-dist { min-width: 180px; }
.dist-bars { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--bg-3); margin-bottom: .35rem; gap: 1px; }
.dist-bar { height: 100%; width: var(--w); background: var(--c); border-radius: 1px; transition: width .5s ease; }
.dist-nums { display: flex; gap: .6rem; font-size: .72rem; color: #CBD5E1; }
.pick-badge { display: inline-flex; flex-direction: column; padding: .35rem .7rem; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 800; }
.pick-badge .conf-pct { font-size: .72rem; font-weight: 600; opacity: .9; }
.pick-local     { background: var(--primary-dim); color: var(--primary); border: 1px solid rgba(255,215,0,.3); }
.pick-empate    { background: var(--bg-3); color: #CBD5E1; border: 1px solid var(--glass-border); }
.pick-visitante { background: var(--sec-dim); color: var(--secondary); border: 1px solid rgba(0,229,255,.3); }
.cell-odds { font-family: var(--mono); }
.odds-num { color: var(--primary); font-size: 1.05rem; font-weight: 800; }
.edge-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.edge-glow { background: linear-gradient(135deg, #FFD700, #FFA500); color: #0A1128; font-weight: 900; font-size: .72rem; padding: .25rem .6rem; border-radius: 4px; letter-spacing: 1px; box-shadow: 0 0 12px rgba(255,215,0,.4); }
.edge-sub { font-size: .65rem; color: var(--success); font-weight: 700; }
.no-edge { color: var(--text-dim); }
.btn-add {
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  color: #FFFFFF;
  padding: .4rem .8rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: .8rem;
  font-family: var(--font);
  transition: var(--trans);
  white-space: nowrap;
}
.btn-add:hover { background: var(--primary); color: #0A1128; border-color: var(--primary); }

/* Parlay Simulator */
.parlay-sim {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow);
}
.sim-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.sim-header h3 { font-size: 1.05rem; font-weight: 900; color: #FFFFFF; }
.btn-link-danger { background: none; border: none; color: var(--danger); cursor: pointer; font-size: .8rem; font-weight: 700; }
.sim-empty { color: #CBD5E1; font-size: .85rem; text-align: center; padding: 1.5rem 0; }
#simItems { display: flex; flex-direction: column; gap: .6rem; }
.sim-item { background: var(--bg-3); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: .65rem .9rem; }
.sim-item-top { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 800; color: #FFFFFF; }
.sim-remove { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 1rem; }
.sim-remove:hover { color: var(--danger); }
.sim-item-bot { font-size: .75rem; color: #CBD5E1; display: flex; justify-content: space-between; margin-top: .2rem; }
.sim-odds-tag { color: var(--primary); font-weight: 800; }
#simSummary { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); }
.sim-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-size: .88rem; color: #CBD5E1; }
.primary-val { color: var(--primary); font-size: 1.15rem; font-weight: 800; }
.bet-amount-row label { color: #CBD5E1; font-size: .85rem; }
.bet-input { background: var(--bg-3); border: 1px solid var(--glass-border); border-radius: 6px; color: var(--primary); padding: .3rem .6rem; width: 90px; text-align: right; font-family: var(--mono); font-weight: 800; }
.payout-line { margin-top: .5rem; background: rgba(0,230,118,.12); padding: .5rem .75rem; border-radius: var(--radius-sm); border: 1px solid rgba(0,230,118,.25); }
.payout-line span { color: var(--success); font-weight: 800; }
.payout-val { color: var(--success) !important; font-size: 1.15rem !important; }

/* ── STATS PAGE ──────────────────────────────────────────────────── */
.stats-wrapper { max-width: var(--container); margin: auto; padding: 2.5rem 2rem; }
.tabs-nav { display: flex; gap: .75rem; margin-bottom: 2rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; }
.tab-btn { background: var(--bg-card); border: 1px solid var(--glass-border); color: #CBD5E1; padding: .55rem 1.1rem; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font); font-weight: 800; font-size: .95rem; transition: var(--trans); }
.tab-btn:hover { color: #FFFFFF; background: var(--bg-3); }
.tab-btn.active { color: var(--primary); background: var(--primary-dim); border-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.form-strip { display: flex; gap: 3px; }
.fdot { width: 20px; height: 20px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 800; }
.fdot-W { background: var(--success); color: #0A1128; }
.fdot-D { background: var(--text-dim); color: #fff; }
.fdot-L { background: var(--danger);  color: #fff; }

/* ── SPORTS PAGE ─────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, rgba(255,215,0,.1) 0%, rgba(0,229,255,.06) 100%);
  border-bottom: 1px solid var(--glass-border);
  padding: 3rem 2rem 2.5rem;
}
.page-hero-inner { max-width: var(--container); margin: auto; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 3px; margin-bottom: .5rem; color: #FFFFFF; }
.page-hero p { color: #CBD5E1; font-size: 1rem; max-width: 500px; }

/* Sport detail section */
.sport-section {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
}
.sport-section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.sport-section-icon { font-size: 2.5rem; }
.sport-section-title { font-family: var(--font-display); font-size: 2rem; letter-spacing: 2px; color: #FFFFFF; }

/* ── RESULTS PAGE ────────────────────────────────────────────────── */
.results-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  color: #CBD5E1;
  padding: .45rem 1rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.filter-btn:hover { color: #FFFFFF; }
.filter-btn.active { background: var(--primary-dim); color: var(--primary); border-color: var(--primary); }

.results-date-group { margin-bottom: 2.5rem; }
.results-date-label {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .5rem 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.results-date-label::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.app-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}
.footer-main {
  max-width: var(--container);
  margin: auto;
  padding: 3.5rem 2rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .logo-main { font-size: 1.5rem; margin-bottom: .5rem; }
.footer-brand p { color: #CBD5E1; font-size: .85rem; line-height: 1.7; max-width: 260px; margin-top: .75rem; }

.footer-col h4 {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: .88rem;
  transition: var(--trans-fast);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem 2rem;
  max-width: var(--container);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: .78rem; color: #CBD5E1; }
.footer-copy strong { color: var(--primary); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .78rem; color: #CBD5E1; text-decoration: none; transition: var(--trans-fast); }
.footer-links a:hover { color: #FFFFFF; }

/* ── GRADIENT DIVIDERS ──────────────────────────────────────────── */
.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
  border: none;
  margin: 0;
}

/* ── SCROLL ANIMATIONS ──────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .sports-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}
@media (max-width: 1100px) {
  .predictions-section .predictions-grid { grid-template-columns: 1fr; }
  .parlay-sim { position: static; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-row: auto; }
}
@media (max-width: 900px) {
  .sports-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; padding: .75rem 1.25rem; }
  .hero-sports { min-height: 70vh; padding: 3rem 1.25rem 5rem; }
  .hero-title { font-size: clamp(3rem, 12vw, 5rem); }
  .section-wrap { padding: 2.5rem 1.25rem; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .sports-grid { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .tickets-container { grid-template-columns: 1fr; }
  .table-controls { flex-direction: column; width: 100%; }
  .search-box { width: 100%; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }
/* ── NEWS CARDS SECTION ───────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.15);
}

.news-card.featured {
  grid-row: span 2;
  border-color: rgba(255, 215, 0, 0.25);
  background: linear-gradient(180deg, rgba(15,23,42,0.8), rgba(10,17,40,0.95));
}

.news-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0A1128;
}

.news-card.featured .news-thumb {
  aspect-ratio: 16 / 10;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.news-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #0A1128, #1E293B);
}

.news-sport-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--primary);
  color: #0A1128;
  font-weight: 900;
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  z-index: 2;
}

.news-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.news-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}

.news-card.featured .news-title {
  font-size: 1.35rem;
}

.news-card:hover .news-title {
  color: var(--primary);
}

.news-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── MOBILE TOGGLE BUTTON ────────────────────────────────────────── */
.mobile-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
  transition: var(--trans-fast);
}
.mobile-toggle:active {
  transform: scale(0.95);
}

/* ── UNIVERSAL RESPONSIVE BREAKPOINTS ───────────────────────────── */

/* Laptops, Tablets & Compact Displays (<= 1240px) */
@media (max-width: 1366px) {
  .live-pill, .engine-pill {
    display: none !important;
  }
}

@media (max-width: 1240px) {
  .mobile-toggle {
    display: flex;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 1rem;
    background: rgba(10, 17, 40, 0.98);
    border: 1.5px solid rgba(255, 215, 0, 0.3);
    border-radius: 14px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
  }
  .nav.mobile-open {
    display: flex !important;
  }
  .nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
  .nav-dropdown-wrap {
    width: 100%;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 0.4rem;
    min-width: 100%;
    border-radius: 8px;
  }
  .nav-dropdown-menu .dropdown-item {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card.featured {
    grid-row: auto;
  }
  .predictions-grid {
    grid-template-columns: 1fr;
  }
  .parlay-sim {
    position: static;
    width: 100%;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .hero-sports {
    min-height: auto;
    padding: 2.5rem 1rem 3.5rem;
  }
  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.8rem);
  }
  .section-wrap {
    padding: 2rem 1rem;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .table-controls {
    flex-direction: column;
    width: 100%;
  }
  .search-box, select.sport-filter {
    width: 100%;
    font-size: 16px;
  }
  .table-wrap {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
  }
  .pred-table {
    min-width: 650px;
  }
  .sports-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .tickets-container {
    grid-template-columns: 1fr;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .sports-grid {
    grid-template-columns: 1fr;
  }
  .kpi-row {
    grid-template-columns: 1fr;
  }
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── DEEP RESPONSIVE OVERRIDES FOR ALL TABS ───────────────────────── */
@media (max-width: 992px) {
  /* Stats Tab Layout: Stack Sidebar above Main */
  #statsLayout {
    grid-template-columns: 1fr !important;
    padding: 0 1rem 3rem !important;
    gap: 1rem !important;
  }
  #statsSidebar {
    padding-top: 1rem !important;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
  }
  #statsMain {
    padding-top: 0.5rem !important;
  }

  /* Chat Tab Layout: Stack Chat above Sidebar */
  #chatMainGrid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Admin Layout: Single Column */
  #adminLayout, .admin-grid {
    grid-template-columns: 1fr !important;
  }

  /* Predictions & Parley Cards Container */
  #parleyCardsContainer {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  /* Global Page Containers padding on mobile */
  .page-hero-inner {
    padding: 1.25rem 1rem !important;
  }

  /* Sticky Navigation Bars on mobile */
  .results-filter-bar, #predNavTabs, #statsInnerTabs {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Controls & Selects */
  #statsViewSelect {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
  }
  #statsInnerTabs {
    width: 100% !important;
    justify-content: flex-start;
  }

  /* Parley Items & Cards */
  .parley-card-item {
    min-width: 100% !important;
  }

  /* Tables: Full Mobile Scroll */
  .table-wrap {
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
  }
  .pred-table {
    min-width: 580px !important;
  }
}
