/* ============================================
   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;
}

/* ============================================
   1. TOP TICKER
   ============================================ */

.top-ticker {
  background: linear-gradient(90deg, #00b848 0%, #00e676 50%, #00c853 100%);
  color: #04140a;
  padding: 5px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 100;
  font-family: var(--font-sports);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 230, 118, 0.25);
}

.ticker-content {
  display: flex;
  animation: tickerScroll 26s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-item::after {
  content: '•';
  margin-left: 2rem;
  opacity: 0.5;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 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 NAVIGATION HEADER
   ============================================ */

.site-header {
  position: static;
  width: 100%;
  z-index: 9999;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease-expo), backdrop-filter 300ms ease, 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.88);
  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.6);
  z-index: 9999;
}

.header-row-main {
  padding: 0.75rem 0;
}

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

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

.logo:hover img {
  transform: scale(1.04);
}

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

.search-bar {
  position: relative;
}

.search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.5rem 1.1rem 0.5rem 2.4rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  width: 220px;
  transition: all var(--duration-hover) var(--ease-expo);
  backdrop-filter: blur(8px);
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent-red);
  width: 275px;
  box-shadow: 0 0 18px rgba(255, 42, 58, 0.28);
}

.search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.6;
  pointer-events: none;
}

/* ============================================
   3. LIVE NOW BADGE & ANIMATED PULSE
   ============================================ */

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 42, 58, 0.12);
  border: 1px solid rgba(255, 42, 58, 0.35);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-badge);
  font-size: 0.74rem;
  font-weight: 800;
  color: #ff3b4b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 16px rgba(255, 42, 58, 0.18);
  min-height: 40px;
  user-select: none;
}

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

/* ============================================
   4. PREMIUM BUTTONS (Watch Live / CTAs)
   ============================================ */

.btn-primary, .btn-watch-live, .btn-hero {
  position: relative;
  background: linear-gradient(135deg, #ff2a3a 0%, #e01222 55%, #b80514 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  min-height: 46px;
  padding: 0 1.5rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--duration-hover) var(--ease-expo);
  box-shadow: var(--shadow-btn);
  max-width: 100%;
  overflow: hidden;
  user-select: none;
}

.btn-primary::before, .btn-watch-live::before, .btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover, .btn-watch-live:hover, .btn-hero:hover {
  background: linear-gradient(135deg, #ff4252 0%, #f01c2d 55%, #cc0818 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 26px rgba(255, 42, 58, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-primary:hover::before, .btn-watch-live:hover::before, .btn-hero:hover::before {
  left: 140%;
}

.btn-primary:active, .btn-watch-live:active, .btn-hero:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 10px rgba(255, 42, 58, 0.35);
}

.btn-play-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

/* Card Watch Button */
.btn-card-watch {
  position: relative;
  background: linear-gradient(135deg, #ff2a3a 0%, #d81220 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  min-height: 38px;
  padding: 0 1.2rem;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 200ms var(--ease-expo);
  box-shadow: 0 3px 12px rgba(255, 42, 58, 0.28);
  cursor: pointer;
}

.btn-card-watch:hover {
  background: linear-gradient(135deg, #ff4252 0%, #ee1a29 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 42, 58, 0.46);
  color: #fff;
}

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

/* ============================================
   5. SPORTS CATEGORY FILTERS
   ============================================ */

.header-row-categories {
  padding: 0.65rem 0;
  background: rgba(8, 9, 14, 0.72);
  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);
}

.category-filters {
  display: flex;
  gap: 0.75rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.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);
  min-height: 42px;
  padding: 0 1.15rem;
  border-radius: var(--radius-badge);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  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);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(255, 42, 58, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.category-count {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  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.32);
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
}

/* ============================================
   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 & EVENT CARDS
   ============================================ */

.section-editorial {
  width: 100%;
  max-width: 1320px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}

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

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

.section-desc {
  font-size: clamp(0.82rem, 2.5vw, 0.95rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.today-matches-grid, .matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
  gap: 1.35rem;
}

.match-card {
  background: linear-gradient(180deg, #13151c 0%, #0d0f14 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.25rem;
  min-height: 228px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: transform 260ms var(--ease-expo), border-color 260ms ease, box-shadow 260ms ease;
  box-shadow: var(--shadow-card);
}

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

.match-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 42, 58, 0.45);
  box-shadow: var(--shadow-hover);
}

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

/* Individual Sports Card Style */
.match-card.individual-sport {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-card);
  position: relative;
  color: #ffffff;
}

.match-card.individual-sport::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 14, 0.35) 0%, rgba(8, 9, 14, 0.75) 50%, rgba(8, 9, 14, 0.96) 100%),
              radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.match-card.individual-sport:hover::before {
  background: linear-gradient(180deg, rgba(8, 9, 14, 0.22) 0%, rgba(8, 9, 14, 0.65) 45%, rgba(8, 9, 14, 0.98) 100%),
              radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.5) 100%);
}

.match-card.individual-sport > * {
  position: relative;
  z-index: 2;
}

.individual-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  margin: auto 0;
  padding: 0.5rem 0;
}

.individual-comp {
  font-family: var(--font-sports);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-red);
}

.individual-title {
  font-family: var(--font-sports);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.flag-icon {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.match-league {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-hd {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  color: #00e676;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.match-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  transition: all 200ms ease;
  white-space: nowrap;
}

.match-status.live {
  background: rgba(255, 42, 58, 0.14);
  color: #ff3b4b;
  border: 1px solid rgba(255, 42, 58, 0.35);
  box-shadow: 0 0 12px rgba(255, 42, 58, 0.18);
}

.match-status.upcoming {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

.match-status.starting {
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.35);
  color: #ffb300;
}

.match-status.finished {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

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

.team-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
  transition: transform 260ms var(--ease-expo);
}

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

.team-initials-fallback {
  width: 56px;
  height: 56px;
  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);
}

.team-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.vs-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 45px;
}

.vs-text {
  font-family: var(--font-sports);
  font-size: 0.85rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
}

.match-score-h {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent-green);
  text-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
}

.match-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 500;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.card-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================
   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 ENGINE
   ============================================ */

@media (max-width: 768px) {
  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 {
    padding: 0.5rem 0;
  }

  .header-container {
    padding: 0 0.85rem;
    gap: 0.5rem;
  }

  .logo img {
    height: 28px;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .search-bar {
    max-width: 110px;
  }

  .search-input {
    width: 100%;
    padding: 0.35rem 0.5rem 0.35rem 1.8rem;
    font-size: 0.75rem;
  }

  .search-input:focus {
    width: 100%;
  }

  .search-icon {
    left: 0.5rem;
  }

  .live-badge {
    padding: 0.3rem 0.65rem;
    font-size: 0.68rem;
    min-height: 38px;
    white-space: nowrap;
  }

  .btn-primary, .btn-watch-live {
    padding: 0 0.85rem;
    font-size: 0.74rem;
    min-height: 44px;
    white-space: nowrap;
    max-width: 100%;
  }

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

  .category-btn {
    scroll-snap-align: center;
    padding: 0 0.95rem;
    font-size: 0.78rem;
    min-height: 40px;
  }

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

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

  .section-editorial {
    margin: 1.75rem auto;
    padding: 0 1rem;
  }

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

  .team-logo, .team-initials-fallback {
    width: 48px;
    height: 48px;
  }

  .team-name {
    font-size: 0.82rem;
  }

  .match-card {
    padding: 0.95rem 1rem;
  }
}

@media (max-width: 360px) {
  .search-bar { display: none; }
  .header-container { padding: 0 0.5rem; }
  .hero-content { padding: 1rem 0.75rem 1.8rem 0.75rem; }
  .hero-title { font-size: 1.35rem; }
  .team-logo, .team-initials-fallback { width: 42px; height: 42px; }
  .team-name { font-size: 0.75rem; }
}
