/* ============================================
   SPORT4U.LIVE — 2026 PREMIUM SPORTS STREAMING UI/UX
   Aesthetic: Apple TV+ / DAZN / ESPN / Formula 1 Broadcast Quality
   ============================================ */

/* Core Design Tokens */
:root {
  --bg-primary: #07080b;
  --bg-secondary: #0c0e14;
  --bg-card: #12141c;
  --bg-card-hover: #171a24;
  --bg-glass: rgba(12, 14, 20, 0.85);
  --bg-glass-card: rgba(18, 20, 28, 0.72);

  --accent-red: #ff2a3a;
  --accent-red-hover: #ff4756;
  --accent-red-glow: rgba(255, 42, 58, 0.35);
  --accent-red-subtle: rgba(255, 42, 58, 0.12);
  --accent-green: #00e676;
  --accent-green-glow: rgba(0, 230, 118, 0.3);
  --accent-blue: #00b0ff;
  --accent-gold: #ffb300;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.45);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 42, 58, 0.45);

  --radius-btn: 10px;
  --radius-card: 16px;
  --radius-badge: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sports: 'Barlow Condensed', 'Bebas Neue', 'Oswald', sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 42, 58, 0.18);
  --shadow-btn: 0 4px 18px rgba(255, 42, 58, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-hover: 220ms;
}

/* Base Reset & Zero Overflow Containment */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 0;
}

body.header-fixed {
  padding-top: var(--header-height, 100px);
}

:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}


/* Advertising Containers (Zero Horizontal Overflow) */
.ad-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  overflow: hidden;
  box-sizing: border-box;
}

.ad-desktop {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin: 0 auto;
  overflow: hidden;
}

.ad-mobile {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 320px;
  min-height: 50px;
  margin: 0 auto;
  overflow: hidden;
}

.ad-wrapper iframe,
.ad-desktop iframe,
.ad-mobile iframe {
  display: block;
  margin: 0 auto;
  border: none;
  overflow: hidden;
  max-width: 100%;
}

@media (max-width: 768px) {
  .ad-desktop { display: none !important; }
  .ad-mobile { display: flex !important; }
}

/* ============================================
   2. DYNAMIC PREMIUM NAVIGATION HEADER
   ============================================ */

.site-header {
  position: relative;
  width: 100%;
  z-index: 9999;
  background: #07080c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 300ms var(--ease-expo), border-color 300ms ease, box-shadow 300ms ease;
}

body.header-fixed .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(7, 8, 12, 0.95);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.header-row-main {
  height: 76px;
  min-height: 72px;
  max-height: 82px;
  display: flex;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}

.header-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Left: Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
  transition: transform 220ms var(--ease-expo), filter 220ms ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.logo:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 2px 12px rgba(255, 42, 58, 0.35));
}

/* Center: Desktop Navigation Menu */
.nav-center-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: all 200ms var(--ease-expo);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}

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

.nav-link.active {
  color: #ffffff;
  font-weight: 800;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.6rem;
  right: 0.6rem;
  height: 2px;
  background: var(--accent-red);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-red);
}

.nav-link-live {
  color: #ff3b4b;
}

.live-dot-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2a3a;
  box-shadow: 0 0 6px #ff2a3a;
  animation: pulseGlow 1.8s infinite ease-in-out;
}

/* Right: Action Group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Live Now Badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 42, 58, 0.12);
  border: 1px solid rgba(255, 42, 58, 0.38);
  padding: 0 0.95rem;
  height: 38px;
  min-height: 38px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #ff3b4b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 14px rgba(255, 42, 58, 0.16);
  user-select: none;
  transition: all 200ms ease;
}

.live-badge:hover {
  background: rgba(255, 42, 58, 0.22);
  border-color: rgba(255, 42, 58, 0.6);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 42, 58, 0.35);
  transform: translateY(-1px);
}

.live-dot, .live-dot-inline {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
  flex-shrink: 0;
}

.live-dot::after, .live-dot-inline::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 42, 58, 0.8);
  animation: liveRadarPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes liveRadarPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Watch Live CTA */
.btn-watch-live, .btn-primary {
  background: linear-gradient(135deg, #ff2a3a 0%, #d81220 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  height: 40px;
  min-height: 40px;
  padding: 0 1.25rem;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 200ms var(--ease-expo);
  box-shadow: 0 4px 18px rgba(255, 42, 58, 0.35);
  white-space: nowrap;
  user-select: none;
}

.btn-watch-live:hover, .btn-primary:hover {
  background: linear-gradient(135deg, #ff4252 0%, #ee1a29 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(255, 42, 58, 0.52);
  color: #ffffff;
}

.btn-back-home {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 1rem !important;
  font-size: 0.78rem !important;
  box-shadow: none !important;
}

.btn-back-home:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 200ms ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.mobile-menu-btn.open .menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.open .menu-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open .menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  background: rgba(10, 12, 18, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms cubic-bezier(0.16, 1, 0.3, 1), padding 300ms ease;
}

.mobile-nav-drawer.open {
  max-height: 320px;
  padding: 1rem 1.25rem 1.25rem 1.25rem;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav-link {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(255, 42, 58, 0.15);
  border-color: rgba(255, 42, 58, 0.4);
  color: #ffffff;
}

.btn-mobile-watch {
  margin-top: 0.4rem;
  width: 100%;
  justify-content: center;
  min-height: 42px;
  font-size: 0.82rem;
}

/* ============================================
   3. SPORTS CATEGORY NAVIGATION
   ============================================ */

.header-row-categories {
  height: 60px;
  min-height: 58px;
  max-height: 66px;
  display: flex;
  align-items: center;
  padding: 0;
  background: rgba(10, 12, 17, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.category-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  height: 38px;
  min-height: 38px;
  padding: 0 1rem;
  border-radius: 9999px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  transition: all 200ms var(--ease-expo);
  user-select: none;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.category-btn.active {
  background: linear-gradient(135deg, #ff2a3a 0%, #d81220 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 42, 58, 0.35);
}

.category-count {
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.category-btn.active .category-count {
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.2);
}

.category-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.category-name-text {
  line-height: 1;
}

.sport-category-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  transition: transform 200ms var(--ease-expo), filter 200ms ease;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.category-btn:hover .sport-category-icon {
  transform: scale(1.12);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

.category-btn.active .sport-category-icon {
  transform: scale(1.06);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* Centralized Sports Icon System: Event Cards & Hero Section sizing */
.c-badge-sport .sport-category-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.c-badge-sport-text {
  line-height: 1;
}

.hero-competition .sport-category-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* ============================================
   6. HERO SECTION & MODERN COUNTDOWN
   ============================================ */

.hero-section {
  position: relative;
  width: 100%;
  min-height: 580px;
  height: 72vh;
  max-height: 760px;
  overflow: hidden;
  background: #000;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: var(--hero-desktop-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 8, 11, 0.0) 0%,
    rgba(7, 8, 11, 0.0) 28%,
    rgba(7, 8, 11, 0.25) 55%,
    rgba(7, 8, 11, 0.72) 80%,
    rgba(7, 8, 11, 0.92) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem 2.75rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-badges-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.hero-competition {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-badge);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-title {
  font-family: var(--font-sports);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  max-width: 820px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 1.15rem;
  line-height: 1.35;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Modern Glassmorphism Hero Countdown Component */
.hero-countdown-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(14, 16, 24, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.45rem 1.15rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 42, 58, 0.12);
  min-height: 48px;
}

.countdown-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.countdown-pulse-dot {
  width: 5px;
  height: 5px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
}

.countdown-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.countdown-digits {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.digit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 28px;
}

.digit-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(255, 42, 58, 0.3);
}

.digit-lbl {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.15rem;
}

.digit-colon {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 42, 58, 0.7);
  margin-bottom: 0.55rem;
  animation: colonBlink 2s infinite ease-in-out;
}

@keyframes colonBlink {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.4; }
}

.hero-slider-dots {
  position: absolute;
  bottom: 25px;
  right: 3rem;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 28px;
  height: 6px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s var(--ease-expo);
}

.slider-dot.active {
  background: var(--accent-red);
  width: 44px;
  box-shadow: 0 0 10px var(--accent-red);
}

/* ============================================
   7. SECTIONS & COMPACT EVENT CARDS SYSTEM
   ============================================ */

.section-editorial {
  width: 100%;
  max-width: 1360px;
  margin: 2.75rem auto;
  padding: 0 1.25rem;
}

.section-header-polished {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-family: var(--font-sports);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.section-desc {
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* 3-Column Desktop Grid with Equal Card Height */
.today-matches-grid, .matches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  width: 100%;
}

/* Base Compact Card */
.match-card {
  background: linear-gradient(180deg, #13151e 0%, #0b0c10 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 340px;
  max-height: 420px;
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--ease-expo), border-color 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
  z-index: 3;
}

.match-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 42, 58, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 0 18px rgba(255, 42, 58, 0.15);
}

.match-card:active {
  transform: translateY(-1px) scale(0.99);
}

/* Visual Media Header (~40-45% Height) */
.c-card-media {
  position: relative;
  width: 100%;
  height: 150px;
  min-height: 150px;
  overflow: hidden;
  background: #08090d;
  flex-shrink: 0;
}

.c-media-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.match-card:hover .c-media-bg {
  transform: scale(1.04);
}

.c-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,9,13,0.55) 0%, rgba(8,9,13,0.08) 40%, rgba(19,21,30,0.92) 88%, #13151e 100%);
  pointer-events: none;
}

/* ============================================
   TEMPLATE 1: TEAM VS TEAM (ACTUAL TEAM LOGOS)
   ============================================ */

.team-match-card {
  background: linear-gradient(180deg, #141722 0%, #0b0c10 100%);
}

.c-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.95rem 0.35rem 0.95rem;
  width: 100%;
  box-sizing: border-box;
}

.c-team-matchup-header {
  height: 110px;
  background: radial-gradient(circle at center, rgba(255, 42, 58, 0.08) 0%, rgba(20, 23, 34, 0.5) 60%, rgba(11, 12, 16, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1.25rem;
  box-sizing: border-box;
  position: relative;
}

.c-team-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  text-align: center;
}

.c-logo-container {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.c-match-team-logo {
  max-width: 54px;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85));
  transition: transform 0.25s ease;
}

.match-card:hover .c-match-team-logo {
  transform: scale(1.1);
}

.c-logo-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 42, 58, 0.2), rgba(255, 42, 58, 0.05));
  border: 1px solid rgba(255, 42, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-red);
}

.c-team-unit-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-vs-badge-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}

.c-vs-text {
  font-family: var(--font-sports);
  font-size: 0.95rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(255, 42, 58, 0.25);
}

.c-live-score {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent-green);
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

/* ============================================
   TEMPLATE 2: CINEMATIC IMAGE CARDS
   ============================================ */

.cinematic-image-card {
  background: linear-gradient(180deg, #13151e 0%, #0b0c10 100%);
}

.c-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 0.85rem;
  z-index: 2;
  box-sizing: border-box;
}

.c-badge-sport {
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ff3b4b;
  background: rgba(255, 42, 58, 0.15);
  border: 1px solid rgba(255, 42, 58, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.c-badges-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.c-badge-hd {
  font-family: var(--font-main);
  font-size: 0.62rem;
  font-weight: 800;
  color: #00e676;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.28);
  padding: 0.18rem 0.45rem;
  border-radius: 5px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.c-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.c-status-badge.live {
  background: rgba(255, 42, 58, 0.22);
  color: #ff3b4b;
  border: 1px solid rgba(255, 42, 58, 0.5);
  box-shadow: 0 0 10px rgba(255, 42, 58, 0.3);
}

.c-status-badge.upcoming {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

.c-status-badge.starting {
  background: rgba(255, 179, 0, 0.2);
  border: 1px solid rgba(255, 179, 0, 0.5);
  color: #ffb300;
}

.c-status-badge.finished {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
}

/* Compact Content Body */
.c-card-content {
  padding: 0.75rem 0.95rem 0.4rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  justify-content: flex-start;
}

.c-card-title {
  font-family: var(--font-sports);
  font-size: 1.12rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.36em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.c-card-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* Compact Countdown Strip (38px, within 40-55px specification) */
.c-countdown-strip {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
}

.c-cd-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.c-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2a3a;
  box-shadow: 0 0 6px #ff2a3a;
  animation: pulseGlow 1.8s infinite ease-in-out;
}

.c-cd-units {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

.c-unit-box {
  display: inline-flex;
  align-items: baseline;
}

.c-unit-box b {
  color: #ffffff;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

.c-unit-box small {
  font-size: 0.58rem;
  color: rgba(255, 42, 58, 0.85);
  font-weight: 800;
  margin-left: 1px;
}

.c-colon {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 1px;
}

.c-live-strip {
  background: rgba(255, 42, 58, 0.12);
  border: 1px solid rgba(255, 42, 58, 0.35);
  border-radius: 8px;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
}

.c-live-text {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ff3b4b;
  text-transform: uppercase;
}

/* Single-Row Compact Metadata */
.c-meta-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.c-meta-item {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  display: inline-flex;
  align-items: center;
}

.c-meta-sep {
  color: rgba(255, 255, 255, 0.25);
}

.c-meta-venue {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 135px;
}

/* Compact Footer Action (44-48px button height) */
.c-card-footer {
  padding: 0.75rem 0.95rem 0.85rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.c-stream-quality {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #00e676;
  letter-spacing: 0.03em;
}

.c-quality-dot {
  color: #00e676;
  text-shadow: 0 0 6px rgba(0, 230, 118, 0.5);
  font-size: 0.65rem;
}

.btn-compact-watch {
  background: linear-gradient(135deg, #ff2a3a 0%, #d81220 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  height: 44px;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 42, 58, 0.32);
  transition: all 180ms ease;
}

.btn-compact-watch:hover {
  background: linear-gradient(135deg, #ff4252 0%, #ee1a29 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 42, 58, 0.45);
  color: #ffffff;
}

.btn-compact-watch:active {
  transform: translateY(1px) scale(0.98);
}

/* Play Icon Styling — Small, White, Centered Vertically */
.btn-play-icon,
.btn-compact-watch svg,
.btn-watch-live svg,
.btn-primary svg,
.btn-hero svg,
.btn-mobile-watch svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  fill: #ffffff !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 4px 0 0 !important;
  pointer-events: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.btn-play-icon path,
.btn-compact-watch svg path,
.btn-watch-live svg path,
.btn-primary svg path,
.btn-hero svg path,
.btn-mobile-watch svg path {
  fill: #ffffff !important;
}

/* ============================================
   8. FOOTER
   ============================================ */

.site-footer {
  background: #040507;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4rem;
  padding: 3.5rem 2rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

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

.footer-section a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  transition: color 200ms ease;
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 2.5rem auto 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   9. DEDICATED RESPONSIVE MOBILE & TABLET ENGINE
   ============================================ */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .section-editorial {
    padding: 0 1.25rem;
    margin: 2.25rem auto;
  }

  .today-matches-grid, .matches-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .match-card {
    min-height: 340px;
    max-height: 410px;
  }

  .c-card-media {
    height: 150px;
    min-height: 150px;
  }

  .c-team-matchup-header {
    height: 110px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  html, body, .site-header, .hero-section, .section-editorial, .site-footer, .ad-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }


  .header-row-main {
    height: 60px;
    min-height: 58px;
    max-height: 64px;
    padding: 0;
  }

  .header-container {
    padding: 0 1rem;
    gap: 0.65rem;
    justify-content: space-between;
  }

  .logo img {
    height: 26px;
    max-width: 110px;
  }

  .nav-center-menu {
    display: none;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .live-badge {
    padding: 0 0.65rem;
    font-size: 0.68rem;
    height: 34px;
    min-height: 34px;
    gap: 0.35rem;
  }

  .btn-watch-live {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav-drawer {
    display: block;
  }

  .header-row-categories {
    height: 54px;
    min-height: 52px;
    max-height: 58px;
    padding: 0;
  }

  .category-filters {
    padding: 0 1rem;
    gap: 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  .category-btn {
    scroll-snap-align: start;
    height: 34px;
    min-height: 34px;
    padding: 0 0.85rem;
    font-size: 0.76rem;
    gap: 0.4rem;
  }

  .category-count {
    font-size: 0.64rem;
    padding: 1px 6px;
  }

  .sport-category-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
  }

  .c-badge-sport .sport-category-icon {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    min-height: 14px !important;
    max-height: 14px !important;
  }

  .hero-competition .sport-category-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
  }

  .hero-section {
    min-height: 560px;
    height: 580px;
    max-height: 620px;
  }

  .hero-bg {
    background-image: var(--hero-mobile-bg);
    background-position: center top;
    background-size: cover;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 8, 11, 0.0) 0%,
      rgba(7, 8, 11, 0.0) 32%,
      rgba(7, 8, 11, 0.25) 55%,
      rgba(7, 8, 11, 0.75) 78%,
      rgba(7, 8, 11, 0.95) 100%
    );
  }

  .hero-content {
    padding: 0.75rem 1rem 2rem 1rem;
    justify-content: flex-end;
    height: 100%;
    align-items: stretch;
  }

  .hero-badges-group {
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .hero-competition {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
  }

  .hero-title {
    font-size: clamp(1.4rem, 5vw, 1.85rem);
    line-height: 1.12;
    margin-bottom: 0.25rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    line-height: 1.25;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem 0.6rem;
    font-size: 0.72rem;
    margin-bottom: 0.75rem;
    width: 100%;
    background: rgba(10, 12, 18, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
  }

  .hero-meta-item:nth-child(3) {
    grid-column: span 2;
  }

  .hero-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 0.8rem;
  }

  .hero-countdown-card {
    width: 100%;
    min-height: 44px;
    padding: 0.4rem 0.6rem;
  }

  .hero-slider-dots {
    right: 50%;
    transform: translateX(50%);
    bottom: 10px;
  }

  /* Compact Mobile Cards (1 Column, ~380-430px) */
  .section-editorial {
    margin: 1.75rem auto;
    padding: 0 0.95rem;
  }

  .section-header-polished {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
  }

  .today-matches-grid, .matches-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .match-card {
    min-height: auto;
    max-height: none;
    border-radius: 11px;
  }

  .c-card-media {
    height: 190px;
    min-height: 190px;
  }

  .c-team-matchup-header {
    height: 125px;
    padding: 0.5rem 1rem;
  }

  .c-logo-container {
    width: 62px;
    height: 62px;
  }

  .c-match-team-logo {
    max-width: 58px;
    max-height: 58px;
  }

  .c-team-unit-name {
    font-size: 0.78rem;
  }

  .c-card-title {
    font-size: 1.1rem;
    line-height: 1.15;
    min-height: auto;
  }

  .c-card-content {
    padding: 0.7rem 0.9rem 0.35rem 0.9rem;
    gap: 0.45rem;
  }

  .c-meta-venue {
    max-width: 110px;
  }

  .c-card-footer {
    padding: 0.65rem 0.9rem 0.8rem 0.9rem;
  }

  .btn-compact-watch {
    height: 44px;
    min-height: 44px;
    padding: 0 1.15rem;
  }
}

/* Large Desktop (>= 1440px) */
@media (min-width: 1440px) {
  .section-editorial {
    max-width: 1420px;
  }

  .today-matches-grid, .matches-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.65rem;
  }

  .c-card-media {
    height: 155px;
    min-height: 155px;
  }

  .c-team-matchup-header {
    height: 115px;
  }

  .match-card {
    min-height: 350px;
    max-height: 420px;
  }
}

@media (max-width: 360px) {
  .header-container { padding: 0 0.5rem; gap: 0.35rem; }
  .logo img { height: 24px; max-width: 100px; }
  .live-badge { padding: 0.25rem 0.5rem; font-size: 0.62rem; min-height: 32px; }
  .btn-primary, .btn-watch-live { padding: 0 0.65rem; font-size: 0.68rem; min-height: 32px; }
  .hero-content { padding: 1rem 0.75rem 1.6rem 0.75rem; }
  .hero-title { font-size: 1.3rem; }
  .c-team-logo { width: 40px; height: 40px; }
  .c-team-name { font-size: 0.72rem; }
}
