/* ============================================
   FutMundial26 — Design System
   Premium Dark Mode Football Website
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---- CSS Variables / Design Tokens ---- */
:root {
  /* Colors - Dark Theme */
  --bg-primary: #050a15;
  --bg-secondary: #0b1120;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --bg-glass: rgba(17, 24, 39, 0.75);
  --bg-glass-light: rgba(30, 41, 59, 0.6);

  /* Accent Colors */
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #d97706;
  --green: #10b981;
  --green-light: #34d399;
  --green-dark: #059669;
  --red: #ef4444;
  --red-light: #f87171;
  --blue: #3b82f6;
  --blue-light: #60a5fa;

  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: var(--gold);

  /* Borders */
  --border-color: rgba(148, 163, 184, 0.1);
  --border-glow: rgba(245, 158, 11, 0.3);

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-hero: linear-gradient(135deg, #0b1120 0%, #1a0a2e 50%, #0b1120 100%);
  --gradient-card: linear-gradient(145deg, rgba(17,24,39,0.9) 0%, rgba(30,41,59,0.4) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.15);
  --shadow-glow-green: 0 0 20px rgba(16, 185, 129, 0.15);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1320px;
  --sidebar-width: 360px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* ---- Utility Classes ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title::after {
  content: '';
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: var(--radius-full);
  margin-left: var(--space-md);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: #000;
}

/* ---- Badge ---- */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--gradient-gold);
  color: #000;
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
  font-size: 0.8rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  flex: 1;
  overflow: hidden;
}

.trending-ticker {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.trending-ticker .label {
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}

.ticker-items {
  display: flex;
  gap: var(--space-xl);
  animation: ticker 30s linear infinite;
  color: var(--text-secondary);
}

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

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  color: var(--text-muted);
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-switch a {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.lang-switch a.active {
  background: var(--gold);
  color: #000;
}

/* ---- Navigation ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 10, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  height: var(--nav-height);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(5, 10, 21, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #000;
  box-shadow: var(--shadow-glow);
}

.nav-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.nav-brand .logo-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links a {
  position: relative;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--gold);
  border-radius: var(--radius-full);
}

.nav-links a .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-left: 4px;
  animation: pulse-badge 1.5s infinite;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-search {
  position: relative;
}

.nav-search input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 36px;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 200px;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
}

.nav-search input:focus {
  outline: none;
  border-color: var(--gold);
  width: 260px;
  box-shadow: var(--shadow-glow);
}

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

.nav-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero Section — Face-off Style ---- */
.hero {
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  min-height: 500px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
}

.hero-text {
  max-width: 550px;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
}

/* ---- Face-off Slider ---- */
.faceoff-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.faceoff-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faceoff-slide {
  min-width: 100%;
  position: relative;
}

.faceoff-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.faceoff-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.85);
  transition: filter var(--transition-slow);
}

.faceoff-card:hover img {
  filter: brightness(1);
}

.faceoff-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.faceoff-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.faceoff-team {
  text-align: center;
}

.faceoff-team .flag {
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
}

.faceoff-team .team-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.faceoff-vs {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.faceoff-info {
  text-align: center;
}

.faceoff-info .match-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.faceoff-info .match-venue {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}

.faceoff-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dots .dot.active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--gold);
  border-color: var(--gold);
}

/* ---- Countdown ---- */
.countdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.countdown-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.countdown-info .next-match {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.countdown-timer {
  display: flex;
  gap: var(--space-md);
}

.countdown-unit {
  text-align: center;
  min-width: 60px;
}

.countdown-unit .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-md);
  display: block;
}

.countdown-unit .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ---- Ad Zones ---- */
.ad-zone {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ad-banner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Main Content Layout ---- */
.main-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-2xl);
}
.main-layout > * { min-width: 0; }

/* ---- Article Cards ---- */
.articles-grid {
  display: grid;
  gap: var(--space-lg);
}

.article-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  max-width: 100%;
}

.article-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.article-card .thumb {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 200px;
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .thumb img {
  transform: scale(1.05);
}

.article-card .thumb .category-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}

.article-card .content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
}

.article-card .content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color var(--transition-fast);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-card:hover .content h3 {
  color: var(--gold);
}

.article-card .meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-card .meta i {
  margin-right: 4px;
  color: var(--text-muted);
}

.article-card .excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  transition: gap var(--transition-fast);
}

.article-card:hover .read-more {
  gap: var(--space-sm);
}

/* ---- Sidebar ---- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-match {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  transition: background var(--transition-fast);
}

.sidebar-match:hover {
  background: var(--bg-card-hover);
}

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

.sidebar-match .time {
  color: var(--gold);
  font-weight: 700;
  min-width: 50px;
}

.trending-item {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  transition: background var(--transition-fast);
}

.trending-item:hover {
  background: var(--bg-card-hover);
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item .rank {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  min-width: 30px;
}

.trending-item .info h5 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2px;
}

.trending-item .info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Live Section ---- */
.live-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: var(--space-2xl) 0;
}

.live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(90deg, rgba(239,68,68,0.1), transparent);
}

.live-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.live-player-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

.live-player-container iframe,
.live-player-container .player-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e17, #1a0a2e);
  color: var(--text-secondary);
  gap: var(--space-md);
}

.player-placeholder i {
  font-size: 3rem;
  color: var(--gold);
}

.player-placeholder p {
  font-size: 1rem;
  font-weight: 500;
}

.live-channels {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  overflow-x: auto;
  border-top: 1px solid var(--border-color);
}

.channel-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.channel-btn:hover,
.channel-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* ---- Groups Section (Mini) ---- */
.groups-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.group-card-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.group-card-mini:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.group-card-mini .group-header {
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, rgba(245,158,11,0.1), transparent);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
}

.group-card-mini .team-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px var(--space-md);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.group-card-mini .team-row:last-child {
  border-bottom: none;
}

.group-card-mini .team-row .flag {
  font-size: 1rem;
}

.group-card-mini .team-row .pts {
  margin-left: auto;
  font-weight: 700;
  color: var(--gold);
}

/* ---- Match Ticker ---- */
.match-ticker {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-sm) 0;
  scroll-snap-type: x mandatory;
}

.match-card {
  min-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  scroll-snap-align: start;
  transition: all var(--transition-base);
}

.match-card:hover {
  border-color: var(--border-glow);
}

.match-card .match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: 0.75rem;
}

.match-card .match-header .group-tag {
  color: var(--gold);
  font-weight: 600;
}

.match-card .match-header .status {
  color: var(--text-muted);
}

.match-card .match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.match-card .match-teams .team-info {
  text-align: center;
  flex: 1;
}

.match-card .match-teams .team-flag {
  font-size: 2rem;
  margin-bottom: 4px;
}

.match-card .match-teams .team-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.match-card .match-teams .match-score {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  min-width: 60px;
  text-align: center;
}

.match-card .match-venue-info {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: var(--space-md);
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--gold);
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ---- Category Tabs ---- */
.category-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
}

.category-tabs .tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.category-tabs .tab:hover,
.category-tabs .tab.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   RESPONSIVE — Tablet (max 1200px)
   ============================================ */
@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .groups-mini {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE — Mobile Nav (max 900px)
   ============================================ */
@media (max-width: 900px) {
  .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--bg-primary) !important;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-primary);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-sm);
    z-index: 9999;
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .nav-hamburger {
    display: flex;
    z-index: 1001;
    position: relative;
  }

  .nav-search {
    display: none;
  }

  .top-bar {
    display: none;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card .thumb {
    min-height: 180px;
  }

  .faceoff-card img {
    height: 300px;
  }

  .countdown-card {
    flex-direction: column;
    text-align: center;
  }

  .countdown-timer {
    gap: var(--space-sm);
  }

  .countdown-unit .number {
    font-size: 1.5rem;
    padding: var(--space-xs) var(--space-sm);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .groups-mini {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .faceoff-teams .team-name {
    font-size: 1rem;
  }

  .faceoff-vs {
    font-size: 1.5rem;
  }
}

/* ============================================
   RESPONSIVE — Small Mobile (max 480px)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --space-lg: 1rem;
    --space-xl: 1.25rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .faceoff-card img {
    height: 280px;
  }

  .countdown-unit {
    min-width: 55px;
  }

  .countdown-unit .number {
    font-size: 1.3rem;
  }

  .groups-mini {
    grid-template-columns: 1fr 1fr;
  }

  .live-channels {
    padding: var(--space-sm) var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }

  .channel-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .category-tabs {
    flex-wrap: wrap;
    gap: 6px;
    overflow-x: visible;
  }

  .category-tabs .tab {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .content-col { min-width: 0; overflow: hidden; }
}

/* ============================================
   SUBPAGES — Page Header, Pagination
   ============================================ */

.page-header {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border-bottom: 1px solid var(--border-color);
  padding: 4rem 0 2.5rem;
  margin-top: 70px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.page-title i {
  -webkit-text-fill-color: var(--gold);
  margin-right: 0.5rem;
}
.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.pagination .active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
  color: #000;
}

/* Loading articles for subpages */
.loading-articles {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .page-header { padding: 3rem 0 1.5rem; }
  .page-title { font-size: 1.8rem; }
  .page-subtitle { font-size: 0.9rem; }
}
