/* ==========================================================================
   STREAMEAST APP (streameastapp.best) - NEXT-GEN CYBER VIP BROADCAST THEME
   Elite Ultra-HD Sports Streaming • 100% Mobile Responsive • Zero Lag
   ========================================================================== */

:root {
  /* --- Deep Obsidian & Space Carbon Foundations --- */
  --bg-main: #06090f;
  --bg-surface: #0a0f1d;
  --bg-card: rgba(13, 19, 34, 0.85);
  --bg-card-hover: rgba(19, 28, 50, 0.95);
  --bg-card-live: rgba(26, 14, 24, 0.92);
  --bg-glass: rgba(8, 12, 22, 0.88);
  --bg-glass-card: rgba(14, 20, 36, 0.92);

  /* --- Borders & Hairline Highlights --- */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-card-hover: rgba(255, 42, 75, 0.55);
  --border-live: rgba(255, 42, 75, 0.8);
  --border-focus: #ff2a4b;

  /* --- Electric Flame Red & Cyber Neon Palette --- */
  --accent-red: #ff2a4b;
  --accent-red-bright: #ff4d6a;
  --accent-red-gradient: linear-gradient(135deg, #ff4d6a 0%, #ff2a4b 50%, #d80027 100%);
  --accent-red-glow: 0 0 24px rgba(255, 42, 75, 0.45);

  --accent-cyan: #00f0ff;
  --accent-cyan-bright: #38bdf8;
  --accent-cyan-gradient: linear-gradient(135deg, #38bdf8 0%, #00f0ff 100%);
  --accent-cyan-glow: 0 0 18px rgba(0, 240, 255, 0.35);

  --accent-white: #ffffff;
  --accent-white-gradient: linear-gradient(135deg, #ffffff 0%, #f1f5f9 60%, #cbd5e1 100%);

  /* Theme compatibility aliases */
  --accent-gold: #ff2a4b;
  --accent-gold-bright: #ff4d6a;
  --accent-gold-gradient: linear-gradient(135deg, #ff4d6a 0%, #ff2a4b 50%, #d80027 100%);
  --accent-gold-glow: 0 0 24px rgba(255, 42, 75, 0.45);

  --accent-live: #ff2a4b;
  --accent-live-rgb: 255, 42, 75;
  --accent-live-glow: 0 0 20px rgba(255, 42, 75, 0.6);

  /* --- League Identity Accent Colors --- */
  --league-nfl-color: #3b82f6;
  --league-nba-color: #ff6b00;
  --league-nhl-color: #00e5ff;
  --league-mlb-color: #ef4444;
  --league-ufc-color: #ff1744;
  --league-soccer-color: #10b981;
  --league-cfb-color: #f59e0b;
  --league-motorsport-color: #a855f7;

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

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

  /* --- Radii --- */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;

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

  /* --- Shadows & Atmospheric Glows --- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 14px 36px -4px rgba(0, 0, 0, 0.75), 0 0 26px -2px rgba(255, 42, 75, 0.3);
  --shadow-live: 0 8px 28px -4px rgba(255, 42, 75, 0.5);
}

/* ---------------- 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(ellipse 90% 60% at 50% -120px, rgba(255, 42, 75, 0.16) 0%, transparent 65%),
    radial-gradient(circle at 10% 320px, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 480px, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 860px, rgba(255, 107, 0, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, rgba(8, 12, 22, 0.5) 0%, rgba(6, 9, 15, 0.98) 100%);
  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(255, 43, 68, 0.55) 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: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #141926 0%, #080b11 100%);
  border: 1.5px solid rgba(255, 43, 68, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(255, 43, 68, 0.35);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.brand-logo:hover .logo-icon {
  box-shadow: 0 0 24px rgba(255, 43, 68, 0.6);
  border-color: #ff2b44;
}

.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-red,
.logo-gold {
  background: var(--accent-red-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: #ffffff;
  background: rgba(255, 43, 68, 0.14);
  border: 1px solid rgba(255, 43, 68, 0.35);
  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: #ffffff;
  background: rgba(255, 43, 68, 0.15);
  border: 1px solid rgba(255, 43, 68, 0.35);
  box-shadow: 0 0 12px rgba(255, 43, 68, 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(255, 43, 68, 0.14);
  border: 1px solid rgba(255, 43, 68, 0.4);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 14px rgba(255, 43, 68, 0.3);
}

.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(255, 43, 68, 0.4);
}

.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(255, 43, 68, 0.12);
  border: 1px solid rgba(255, 43, 68, 0.35);
  color: #ffffff;
  padding: 5px 16px;
  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-red-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-red);
  box-shadow: 0 0 10px rgba(255, 43, 68, 0.6);
}

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

/* Search Box (Onyx Background with Electric Red 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: #121724;
  border-color: var(--accent-red);
  box-shadow: 0 0 16px rgba(255, 43, 68, 0.3);
}

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

.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 (Red Glow on Active) */
.sports-pills-wrapper {
  margin-top: 2px;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

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

.sports-pills-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 43, 68, 0.25);
  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: 38px;
  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: #151a28;
  color: #ffffff;
  border-color: rgba(255, 43, 68, 0.35);
}

.sport-pill.active {
  background: rgba(255, 43, 68, 0.16);
  border-color: var(--accent-red);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255, 43, 68, 0.35);
}

.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-red);
  color: #ffffff;
}

/* ---------------- 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-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 14px rgba(255, 43, 68, 0.3);
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed rgba(255, 43, 68, 0.25);
  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-red-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  min-height: 42px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 43, 68, 0.4);
}

.btn-reset-filters:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

/* ==========================================================================
   LEAGUE TABLES & SLIM BROADCAST EVENTS (NBA, NFL, NHL, UFC SECTIONS)
   Redesigned Elite Cyber VIP Broadcast Event Cards & League Showcases
   ========================================================================== */
.events-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}

/* Individual League Table Card */
.league-table-group {
  background: linear-gradient(180deg, rgba(13, 19, 34, 0.9) 0%, rgba(8, 12, 22, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.league-table-group:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.8), 0 0 20px -4px rgba(255, 42, 75, 0.15);
}

/* League Table Header Bar */
.league-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  gap: 14px;
}

.league-table-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-red);
  box-shadow: 0 0 14px var(--accent-red);
}

.league-theme-nfl .league-table-header::before { background: var(--league-nfl-color); box-shadow: 0 0 14px rgba(59, 130, 246, 0.8); }
.league-theme-nba .league-table-header::before { background: var(--league-nba-color); box-shadow: 0 0 14px rgba(255, 107, 0, 0.8); }
.league-theme-nhl .league-table-header::before { background: var(--league-nhl-color); box-shadow: 0 0 14px rgba(0, 229, 255, 0.8); }
.league-theme-mlb .league-table-header::before { background: var(--league-mlb-color); box-shadow: 0 0 14px rgba(239, 68, 68, 0.8); }
.league-theme-ufc .league-table-header::before { background: var(--league-ufc-color); box-shadow: 0 0 14px rgba(255, 23, 68, 0.8); }
.league-theme-cfb .league-table-header::before { background: var(--league-cfb-color); box-shadow: 0 0 14px rgba(245, 158, 11, 0.8); }
.league-theme-soccer .league-table-header::before { background: var(--league-soccer-color); box-shadow: 0 0 14px rgba(16, 185, 129, 0.8); }
.league-theme-motorsport .league-table-header::before { background: var(--league-motorsport-color); box-shadow: 0 0 14px rgba(168, 85, 247, 0.8); }

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

.league-avatar-disc {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(15, 22, 38, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.league-table-group:hover .league-avatar-disc {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.3);
}

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

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

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

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

.league-sport-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

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

.league-live-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
  color: #ffffff;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(255, 23, 68, 0.6);
}

.league-match-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Distinct League Theming Accents */
.league-theme-nfl .league-avatar-disc { border-color: rgba(59, 130, 246, 0.45); box-shadow: 0 0 14px rgba(59, 130, 246, 0.3); }
.league-theme-nba .league-avatar-disc { border-color: rgba(255, 107, 0, 0.45); box-shadow: 0 0 14px rgba(255, 107, 0, 0.3); }
.league-theme-nhl .league-avatar-disc { border-color: rgba(0, 229, 255, 0.45); box-shadow: 0 0 14px rgba(0, 229, 255, 0.3); }
.league-theme-mlb .league-avatar-disc { border-color: rgba(239, 68, 68, 0.45); box-shadow: 0 0 14px rgba(239, 68, 68, 0.3); }
.league-theme-ufc .league-avatar-disc { border-color: rgba(255, 23, 68, 0.45); box-shadow: 0 0 14px rgba(255, 23, 68, 0.3); }
.league-theme-soccer .league-avatar-disc { border-color: rgba(16, 185, 129, 0.45); box-shadow: 0 0 14px rgba(16, 185, 129, 0.3); }
.league-theme-cfb .league-avatar-disc { border-color: rgba(245, 158, 11, 0.45); box-shadow: 0 0 14px rgba(245, 158, 11, 0.3); }
.league-theme-motorsport .league-avatar-disc { border-color: rgba(168, 85, 247, 0.45); box-shadow: 0 0 14px rgba(168, 85, 247, 0.3); }

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

/* ==========================================================================
   SLIM MATCH ROW (NEXT-GEN CYBER BROADCAST EVENT CARD)
   ========================================================================== */
.slim-match-row {
  display: grid;
  grid-template-columns: 145px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  background: transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  min-height: 58px;
  position: relative;
}

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

.slim-match-row:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  transform: translateY(-1.5px);
}

/* If the row is LIVE */
.slim-match-row.is-live-row {
  background: linear-gradient(90deg, rgba(255, 42, 75, 0.08) 0%, rgba(255, 42, 75, 0.02) 100%);
  border-left: 3.5px solid var(--accent-red);
}

.slim-match-row.is-live-row:hover {
  background: linear-gradient(90deg, rgba(255, 42, 75, 0.13) 0%, rgba(255, 42, 75, 0.04) 100%);
}

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

.time-chip {
  display: inline-flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  width: fit-content;
  transition: all 0.2s ease;
}

.slim-match-row:hover .time-chip {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.is-live-row .time-chip {
  background: rgba(255, 42, 75, 0.1);
  border-color: rgba(255, 42, 75, 0.3);
}

.row-time-text {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.is-live-row .row-time-text {
  color: #ff4d6a;
}

.row-date-text {
  font-size: 0.675rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

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

.row-team {
  display: flex;
  align-items: center;
  gap: 11px;
  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.95rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}

.slim-match-row:hover .row-team-name {
  color: #ffffff;
}

.row-team-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.12) 0%, rgba(20, 26, 42, 0.8) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.slim-match-row:hover .row-team-badge {
  transform: scale(1.12);
  border-color: rgba(255, 42, 75, 0.5);
  box-shadow: 0 4px 16px rgba(255, 42, 75, 0.3);
}

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

.row-team-fallback {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: #f1f5f9;
  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.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.slim-match-row:hover .row-vs-badge {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.is-live-row .row-vs-badge {
  background: rgba(255, 42, 75, 0.18);
  color: #ff4d6a;
  border-color: rgba(255, 42, 75, 0.45);
}

/* 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: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

.slim-match-row:hover .row-tv-pill {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

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

.row-hd-pill {
  font-size: 0.65rem;
  font-weight: 800;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* 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: 6px;
  background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.675rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(255, 23, 68, 0.6);
}

.row-sched-badge {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 5. Watch 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: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.775rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  min-height: 36px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-watch-slim.is-live-btn,
.is-live-row .btn-watch-slim {
  background: var(--accent-red-gradient);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(255, 42, 75, 0.5);
}

.btn-watch-slim:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 22px rgba(255, 42, 75, 0.65);
}

.btn-watch-slim .btn-play-icon {
  width: 11px;
  height: 11px;
  fill: #ffffff;
  transition: transform 0.18s ease;
}

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

/* Shine overlay effect */
.btn-watch-slim::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  transition: left 0.6s ease;
}

.btn-watch-slim:hover::after {
  left: 130%;
}

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

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

@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; }
}

/* ==========================================================================
   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: #ffffff;
  background: rgba(255, 43, 68, 0.12);
  border: 1px solid rgba(255, 43, 68, 0.35);
  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.2s ease;
}

.fan-metric-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 43, 68, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 43, 68, 0.2);
}

.fan-metric-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 14px rgba(255, 43, 68, 0.4);
}

.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: #ff2b44;
  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-red);
  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.2s ease;
}

.league-article-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 43, 68, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 43, 68, 0.15);
}

.league-article-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 43, 68, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 43, 68, 0.35);
  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-red);
  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-red);
}

/* 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: #ffffff;
  background: rgba(255, 43, 68, 0.12);
  border: 1px solid rgba(255, 43, 68, 0.35);
  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(255, 43, 68, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 43, 68, 0.35);
  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 rgba(255, 43, 68, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 43, 68, 0.25);
  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, 43, 68, 0.2);
  color: #ffffff;
}

/* 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-red-gradient);
  color: #ffffff;
  font-weight: 800;
  border: none;
  box-shadow: 0 0 16px rgba(255, 43, 68, 0.45);
}

.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-red);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 18px rgba(255, 43, 68, 0.3);
  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, 11, 18, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 200;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)) 12px;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.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: all 0.18s ease;
  text-decoration: none;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: #ffffff;
  background: rgba(255, 43, 68, 0.12);
}

.mobile-nav-item.active svg {
  color: #ff2b44;
  filter: drop-shadow(0 0 6px rgba(255, 43, 68, 0.6));
}

.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: #ff2b44;
}

.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: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px 14px;
    padding: 13px 16px;
    min-height: auto;
    border-radius: var(--radius-sm);
  }

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

  .time-chip {
    flex-direction: row;
    gap: 8px;
    align-items: center;
    padding: 3px 8px;
  }

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

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

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

  .row-team {
    gap: 8px;
  }

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

  .row-team-name {
    font-size: 0.85rem;
    max-width: 130px;
  }

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

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

  .btn-watch-slim {
    padding: 7px 14px;
    font-size: 0.75rem;
    min-height: 34px;
  }

  .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 12px;
  }

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

  .logo-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
  }

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

  .logo-subtext {
    font-size: 0.55rem;
  }

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

  .nav-refresh-btn {
    padding: 6px 10px;
  }

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

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

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

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

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

  .btn-watch-slim {
    font-size: 0.725rem;
    padding: 6px 12px;
    min-height: 32px;
  }

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

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

  .fan-metric-card {
    padding: 16px 12px;
  }

  .star-rating-box {
    padding: 16px;
  }
}

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

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

  .row-team-name {
    max-width: 85px;
    font-size: 0.775rem;
  }

  .btn-watch-slim span {
    font-size: 0.7rem;
  }
}
