/* ==========================================================================
   STREAMEAST - CHAMPIONSHIP GOLD & OBSIDIAN VIP LUXURY SPORTS THEME
   Next-Gen Event Strip Cards • Ultra HD Streaming & Zero Lag
   100% Mobile Responsive • Google & Bing SEO Optimized
   ========================================================================== */

:root {
  /* --- Luxury Obsidian Black Foundation --- */
  --bg-main: #06080d;
  --bg-surface: #0b0f17;
  --bg-card: #0e131f;
  --bg-card-hover: #141a2a;
  --bg-card-live: #121626;
  --bg-glass: rgba(7, 10, 16, 0.88);
  --bg-glass-card: rgba(14, 19, 31, 0.92);

  /* --- Borders --- */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-card-hover: rgba(245, 158, 11, 0.45);
  --border-live: rgba(239, 68, 68, 0.6);
  --border-focus: #f59e0b;

  /* --- Championship Gold & Live Red Palette --- */
  --accent-gold: #f59e0b;
  --accent-gold-bright: #fbbf24;
  --accent-gold-gradient: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
  --accent-gold-glow: 0 0 20px rgba(245, 158, 11, 0.35);

  --accent-live: #ef4444;
  --accent-live-rgb: 239, 68, 68;
  --accent-live-glow: 0 0 16px rgba(239, 68, 68, 0.5);

  /* --- League Identity Accent Colors --- */
  --league-nfl-color: #3b82f6;
  --league-nba-color: #f97316;
  --league-nhl-color: #06b6d4;
  --league-mlb-color: #ef4444;
  --league-ufc-color: #dc2626;
  --league-soccer-color: #10b981;
  --league-cfb-color: #eab308;

  /* Clean Unified League Tokens */
  --league-badge-bg: rgba(255, 255, 255, 0.05);
  --league-badge-border: rgba(255, 255, 255, 0.1);
  --league-pill-bg: rgba(255, 255, 255, 0.06);
  --league-pill-border: rgba(255, 255, 255, 0.1);
  --league-pill-color: #cbd5e1;

  /* --- Typography Palette --- */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* --- Radii --- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-body);

  /* --- Shadows --- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 12px 32px -4px rgba(0, 0, 0, 0.75), 0 0 22px -2px rgba(245, 158, 11, 0.2);
  --shadow-live: 0 8px 26px -4px rgba(239, 68, 68, 0.35);
}

/* ---------------- CSS RESET & CORE ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% -120px, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 260px, rgba(59, 130, 246, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 420px, rgba(168, 85, 247, 0.04) 0%, transparent 40%),
    linear-gradient(180deg, rgba(245, 158, 11, 0.02) 0%, transparent 600px);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input {
  font-family: inherit;
  font-size: 16px;
}

/* ---------------- REDESIGNED LUXURY VIP NAVBAR ---------------- */
.main-header {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
  transition: all 0.25s ease;
}

.main-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.4) 50%, transparent 100%);
  pointer-events: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-bright);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.3);
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 70%);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.logo-text span,
.logo-gold {
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtext {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-gold-bright);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav Center Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--accent-gold-bright);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Nav Right Area */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.nav-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.775rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.3);
}

.nav-refresh-btn.spinning svg {
  animation: spin 0.8s linear infinite;
}

/* ---------------- HERO SECTION ---------------- */
.hero-section {
  padding: 38px 0 24px 0;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-gold-bright);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-title span.glow-word {
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.925rem, 1.8vw, 1.025rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 10px auto;
}

/* ---------------- SCHEDULE & FILTER SECTION ---------------- */
.schedule-section {
  padding: 14px 0 50px 0;
  flex: 1;
}

.schedule-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.schedule-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.schedule-title-row h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.schedule-title-row h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent-gold);
}

.schedule-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-live);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

/* Search Box (Onyx Background with Warm Gold Focus) */
.schedule-search-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0;
  align-self: flex-start;
}

.schedule-search-wrap input {
  width: 100%;
  padding: 11px 40px 11px 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.schedule-search-wrap input::placeholder {
  color: var(--text-muted);
}

.schedule-search-wrap input:focus {
  background: #141720;
  border-color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.schedule-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-gold);
  pointer-events: none;
  opacity: 0.9;
}

.schedule-search-wrap .clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  border: none;
  transition: color 0.18s;
}

.schedule-search-wrap .clear-search-btn:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .schedule-search-wrap {
    max-width: 100%;
  }
}

/* Category Filter Pills (Gold Glow on Active) */
.sports-pills-wrapper {
  margin-top: 2px;
  overflow-x: auto;
  padding: 2px 0 6px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sports-pills-wrapper::-webkit-scrollbar {
  height: 4px;
}

.sports-pills-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.sports-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.sport-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  min-height: 36px;
  transition: all 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.sport-pill .pill-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.sport-pill:hover {
  background: #171b26;
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.3);
}

.sport-pill.active {
  background: rgba(245, 158, 11, 0.14);
  border-color: var(--accent-gold);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.22);
}

.pill-title {
  letter-spacing: -0.01em;
}

.pill-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.sport-pill.active .pill-count {
  background: var(--accent-gold);
  color: #08090c;
}

/* ---------------- EVENTS GRID CONTAINER ---------------- */
.events-grid-wrap {
  min-height: 340px;
  position: relative;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 70px 20px;
  color: var(--text-secondary);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  max-width: 560px;
  margin: 20px auto;
}

.empty-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-reset-filters {
  background: var(--accent-gold-gradient);
  color: #08090c;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  min-height: 42px;
  transition: opacity 0.2s;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-reset-filters:hover {
  opacity: 0.92;
}

/* ==========================================================================
   LEAGUE TABLES & SLIM BROADCAST EVENTS (NBA, NFL, NHL, UFC SECTIONS)
   ========================================================================== */
.events-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Individual League Table Card */
.league-table-group {
  background: linear-gradient(180deg, rgba(14, 19, 31, 0.95) 0%, rgba(9, 13, 21, 0.98) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s ease;
}

.league-table-group:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.7);
}

/* League Table Header Bar */
.league-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  gap: 12px;
}

.league-table-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3.5px;
  background: var(--accent-gold);
}

.league-theme-nfl .league-table-header::before { background: #3b82f6; }
.league-theme-nba .league-table-header::before { background: #f97316; }
.league-theme-nhl .league-table-header::before { background: #06b6d4; }
.league-theme-mlb .league-table-header::before { background: #ef4444; }
.league-theme-ufc .league-table-header::before { background: #dc2626; }
.league-theme-cfb .league-table-header::before { background: #eab308; }
.league-theme-soccer .league-table-header::before { background: #10b981; }
.league-theme-motorsport .league-table-header::before { background: #a855f7; }

.league-table-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.league-heading-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.league-table-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
}

.league-sport-label {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.league-table-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.league-live-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-live);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.league-match-count {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Slim Matches Table Body */
.league-table-rows {
  display: flex;
  flex-direction: column;
}

.arena-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.arena-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

/* High-End League Badge Unit */
.event-league-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.league-avatar-disc {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.league-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.league-avatar-fallback {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.league-title-tag {
  font-family: var(--font-display);
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Distinct League Theming */
.league-theme-nfl {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}
.league-theme-nfl .league-title-tag { color: #60a5fa; }
.league-theme-nfl .league-avatar-disc { border-color: rgba(59, 130, 246, 0.4); }

.league-theme-nba {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
}
.league-theme-nba .league-title-tag { color: #fb923c; }
.league-theme-nba .league-avatar-disc { border-color: rgba(249, 115, 22, 0.4); }

.league-theme-nhl {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
}
.league-theme-nhl .league-title-tag { color: #38bdf8; }
.league-theme-nhl .league-avatar-disc { border-color: rgba(6, 182, 212, 0.4); }

.league-theme-mlb {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}
.league-theme-mlb .league-title-tag { color: #f87171; }
.league-theme-mlb .league-avatar-disc { border-color: rgba(239, 68, 68, 0.4); }

.league-theme-ufc {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(220, 38, 38, 0.4);
}
.league-theme-ufc .league-title-tag { color: #f87171; }
.league-theme-ufc .league-avatar-disc { border-color: rgba(220, 38, 38, 0.45); }

.league-theme-soccer {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}
.league-theme-soccer .league-title-tag { color: #34d399; }
.league-theme-soccer .league-avatar-disc { border-color: rgba(16, 185, 129, 0.4); }

.league-theme-cfb {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.35);
}
.league-theme-cfb .league-title-tag { color: #facc15; }
.league-theme-cfb .league-avatar-disc { border-color: rgba(234, 179, 8, 0.4); }

.card-sport-tag {
  color: var(--text-muted);
  font-size: 0.725rem;
  font-weight: 500;
}

.card-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* MATCH DATE & TIME */
.event-strip-time {
  color: var(--text-muted);
  font-size: 0.775rem;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.event-strip-time .meta-icon,
.event-tv-pill .meta-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* TV GUIDE PILL IN ROW 1 */
.event-tv-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

/* LIVE STATUS BADGES */
.live-strip-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-live);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.upcoming-strip-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  flex-shrink: 0;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulse-live 1.3s ease-in-out infinite;
}

.live-pulse-red {
  background: #ef4444;
}

@keyframes pulse-live {
  0% { transform: scale(0.85); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.4; }
  100% { transform: scale(0.85); opacity: 1; }
}

/* ==========================================================================
   SLIM MATCH ROW (COMPACT, HIGH-DENSITY, MODERN BROADCAST TABLE)
   ========================================================================== */
.slim-match-row {
  display: grid;
  grid-template-columns: 140px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.18s ease;
  cursor: pointer;
  text-decoration: none;
  min-height: 52px;
  position: relative;
}

.slim-match-row:last-child {
  border-bottom: none;
}

.slim-match-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.slim-match-row.is-live-row {
  background: rgba(239, 68, 68, 0.04);
  border-left: 3px solid var(--accent-live);
}

.slim-match-row.is-live-row:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* 1. Time Column */
.row-col-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.row-time-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.row-date-text {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 2. Matchup Column */
.row-col-matchup {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}

.row-team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.row-team.team-away {
  justify-content: flex-end;
  text-align: right;
}

.row-team.team-home {
  justify-content: flex-start;
  text-align: left;
}

.row-team-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.row-team-badge {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.slim-match-row:hover .row-team-badge {
  transform: scale(1.08);
}

.row-team-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.row-team-fallback {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
}

.row-vs-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.row-vs-badge {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.is-live-row .row-vs-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #ff6b6b;
  border-color: rgba(239, 68, 68, 0.35);
}

/* 3. TV Broadcast & HD Pill */
.row-col-tv {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.row-tv-pill {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-tv-pill svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.row-hd-pill {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-gold-bright);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* 4. Live / Scheduled Status */
.row-col-status {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.row-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-live);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.row-sched-badge {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* 5. Slim Action Button */
.row-col-action {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-watch-slim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent-gold-gradient);
  color: #06080d;
  font-family: var(--font-display);
  font-size: 0.775rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  min-height: 32px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
}

.btn-watch-slim .btn-play-icon {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform 0.15s ease;
}

.is-live-row .btn-watch-slim {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.4);
}

.slim-match-row:hover .btn-watch-slim {
  transform: scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.is-live-row:hover .btn-watch-slim {
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.55);
}

.btn-watch-slim:hover .btn-play-icon {
  transform: translateX(1px);
}

/* ==========================================================================
   EDITORIAL GUIDE & KNOWLEDGE SECTION (SEO & STREAMEAST AUTHORITY)
   ========================================================================== */
.guide-section {
  padding: 44px 0 54px 0;
  border-top: 1px solid var(--border-subtle);
  background: transparent;
}

.guide-intro-block {
  margin-bottom: 32px;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--accent-gold-bright);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.guide-h2-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.guide-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.guide-text strong {
  color: #ffffff;
}

/* Platform Metrics */
.fan-metrics-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.fan-metric-card {
  background: var(--bg-card);
  padding: 20px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  text-align: center;
  transition: all 0.18s ease;
}

.fan-metric-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.35);
}

.fan-metric-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold-bright);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.fan-metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Star Rating & Features Matrix */
.star-rating-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  padding: 22px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.star-rating-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.star-rating-score {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.star-rating-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.star-rating-stars {
  color: #f59e0b;
  font-size: 1.25rem;
  letter-spacing: 2px;
  line-height: 1;
}

.star-rating-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.star-rating-bars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.star-metric-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.775rem;
  color: var(--text-secondary);
}

.star-metric-pill strong {
  color: var(--accent-gold);
  margin-right: 4px;
}

/* League Article Boxes */
.league-articles-section {
  margin-bottom: 44px;
}

.league-section-headline {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.league-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.league-article-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.18s ease;
}

.league-article-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.league-article-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold-bright);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.league-article-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.league-article-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.league-article-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.league-article-bullets li {
  position: relative;
  padding-left: 16px;
  line-height: 1.5;
}

.league-article-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

.league-article-bullets strong {
  color: #cbd5e1;
}

.league-article-tip {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.775rem;
  color: var(--text-muted);
}

.league-article-tip strong {
  color: var(--accent-gold);
}

/* FAQ Table Section */
.faq-table-section {
  margin-bottom: 38px;
}

.faq-table-header {
  margin-bottom: 18px;
}

.faq-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-gold-bright);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.faq-table-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.faq-table-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.faq-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  -webkit-overflow-scrolling: touch;
}

.faq-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.faq-table th {
  background: #141722;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.faq-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  line-height: 1.6;
  vertical-align: top;
}

.faq-table td strong {
  color: #ffffff;
}

.faq-table tbody tr {
  transition: background 0.15s ease;
}

.faq-table tbody tr:last-child td {
  border-bottom: none;
}

.faq-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold-bright);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Conclusion Box */
.conclusion-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  padding: 30px 24px;
  margin-top: 32px;
  margin-bottom: 20px;
}

.conclusion-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.conclusion-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.conclusion-text:last-child {
  margin-bottom: 0;
}

/* ---------------- STREAM PLAYER MODAL ---------------- */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.player-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 940px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  max-height: 94vh;
}

.player-modal.active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(10, 12, 18, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.modal-match-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.modal-live-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-live);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-league-info {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s;
  border: none;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Video Container (16:9) */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-loader {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  z-index: 2;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.player-loader.hidden {
  opacity: 0;
}

/* Modal Footer & Controls */
.modal-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(10, 12, 18, 0.95);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.stream-server-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.server-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.server-pill {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-height: 32px;
  transition: all 0.18s;
  cursor: pointer;
}

.server-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.server-pill.active {
  background: var(--accent-gold-gradient);
  color: #08090c;
  font-weight: 800;
  border: none;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-player-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-height: 32px;
  transition: all 0.18s;
  cursor: pointer;
}

.btn-player-action:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.modal-tv-guide {
  padding: 10px 20px;
  background: rgba(6, 8, 12, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.tv-guide-label {
  color: var(--text-muted);
  font-weight: 600;
}

.tv-channels-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------------- TOAST NOTIFICATION ---------------- */
.toast-notice {
  position: fixed;
  bottom: 84px;
  right: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-gold);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 16px rgba(245, 158, 11, 0.2);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.22s ease;
}

.toast-notice.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------------- MOBILE STICKY BOTTOM NAVIGATION ---------------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 9, 12, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 200;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)) 12px;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  min-height: 48px;
  min-width: 54px;
  transition: color 0.18s;
  text-decoration: none;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--accent-gold);
}

.mobile-nav-item svg {
  stroke-width: 2.2;
}

/* ---------------- MAIN FOOTER ---------------- */
.main-footer {
  border-top: 1px solid var(--border-subtle);
  background: #050608;
  padding: 48px 0 calc(36px + env(safe-area-inset-bottom, 0px)) 0;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 34px;
}

.footer-brand {
  max-width: 380px;
}

.footer-logo {
  margin-bottom: 12px;
}

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

.footer-links-group h4 {
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-group a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.18s;
  padding: 3px 0;
  display: inline-block;
}

.footer-links-group a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 22px;
  gap: 20px;
  flex-wrap: wrap;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 700px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.safe-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ---------------- ADVERTISEMENT SPACES ---------------- */
.ad-slot-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  width: 100%;
  clear: both;
}

.ad-slot-wrapper.ad-top-leaderboard {
  margin-top: 14px;
  margin-bottom: 20px;
}

.ad-slot-wrapper.ad-mid-section {
  margin: 24px auto;
}

.ad-slot-wrapper.ad-bottom-leaderboard {
  margin: 28px auto 18px;
}

.ad-label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.ad-label::before,
.ad-label::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--border-subtle);
}

.ad-box {
  background: #06070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.ad-box iframe {
  display: block !important;
  max-width: 100% !important;
  border: none !important;
}

.ad-box-728x90 {
  width: 728px;
  height: 90px;
  max-width: 100%;
}

.ad-box-300x250 {
  width: 300px;
  height: 250px;
  max-width: 100%;
}

.ad-duo-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 64px;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .toast-notice {
    bottom: 74px;
    left: 20px;
    right: 20px;
    text-align: center;
  }

  .hero-section {
    padding: 26px 0 16px 0;
  }

  .slim-match-row {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 11px 14px;
    min-height: auto;
  }

  .row-col-time {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    flex-direction: row;
    gap: 6px;
    align-items: center;
  }

  .row-col-tv {
    display: none;
  }

  .row-col-status {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    justify-self: end;
  }

  .row-col-matchup {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    gap: 8px;
  }

  .row-team.team-away {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row-reverse;
  }

  .row-col-action {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    justify-self: end;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .modal-dialog {
    max-height: 98vh;
    border-radius: var(--radius-md);
  }

  .modal-header h3 {
    font-size: 1rem;
  }

  .ad-box-728x90 {
    width: 100%;
    max-width: 728px;
    height: auto;
    min-height: 90px;
    padding: 6px 0;
  }

  .ad-slot-wrapper {
    margin: 16px auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .brand-logo .brand-badge {
    display: none;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .nav-refresh-btn .refresh-btn-text {
    display: none;
  }

  .league-table-header {
    padding: 10px 14px;
  }

  .league-table-name {
    font-size: 0.875rem;
  }

  .league-sport-label {
    display: none;
  }

  .row-team-name {
    font-size: 0.8125rem;
    max-width: 105px;
  }

  .row-team-badge {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }

  .btn-watch-slim {
    font-size: 0.725rem;
    padding: 5px 11px;
    min-height: 28px;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }
}
