/* ===================================
   FOOT HOLICS — Main Stylesheet
   Liquid Glass (iOS 26) Design
   =================================== */

/* === Design Tokens === */
:root {
  /* Colors */
  --bg: #071428;
  --panel: #0f2a44;
  --accent: #D4AF37;
  --accent-2: #7DE3E3;
  --text: #F5F7FA;
  --muted: #B9C3CF;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.15);

  /* Theme Support */
  --theme-bg: var(--bg);
  --theme-panel: var(--panel);
  --theme-text: var(--text);

  /* Radius */
  --radius-sm: 12px;
  --radius-lg: 24px;

  /* Shadows */
  --card-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
  --card-shadow-hover: 0 15px 40px rgba(2, 6, 23, 0.8);

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', 'Merriweather', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-2);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--space-2);
  color: var(--muted);
}

/* === Layout Container === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-2);
}

/* === Header & Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--bg) 0%, var(--panel) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: var(--space-1) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  color: var(--accent);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

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

.primary-nav a {
  color: var(--text);
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--accent);
  background: var(--glass);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.primary-nav a:hover::after {
  width: 80%;
}

/* === CTA Buttons === */
.cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--bg);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

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

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* === Mobile Menu === */
.mobile-menu-btn {
  display: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .primary-nav,
  .cta-group {
    display: none;
  }

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

  .primary-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    padding: var(--space-2);
    box-shadow: var(--card-shadow);
  }

  .cta-group.mobile-open {
    display: flex;
    flex-direction: column;
    margin-top: var(--space-2);
  }
}

/* === Hero Section === */
.hero {
  position: relative;
  padding: var(--space-5) 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, var(--panel) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: var(--space-3);
  color: var(--text);
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: var(--space-4);
}

/* === Search Box === */
.search-box {
  max-width: 600px;
  margin: 0 auto var(--space-3);
  position: relative;
}

.search-input {
  width: 100%;
  padding: var(--space-2) var(--space-5) var(--space-2) var(--space-2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

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

.search-btn {
  position: absolute;
  right: var(--space-1);
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* === Glass Card === */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  backdrop-filter: blur(6px);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(212, 175, 55, 0.3);
}

.glass-card:hover::before {
  opacity: 1;
}

/* === Match Cards === */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.match-card {
  position: relative;
  overflow: hidden;
}

.match-poster {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  filter: brightness(0.7);
  transition: all 0.3s ease;
}

.match-card:hover .match-poster {
  filter: brightness(1);
  transform: scale(1.05);
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  gap: var(--space-2);
}

.match-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text);
  flex: 1;
}

.league-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.league-badge.premier-league {
  background: #3d195b;
}

.league-badge.laliga {
  background: #ee8707;
}

.league-badge.serie-a {
  background: #024494;
}

.league-badge.bundesliga {
  background: #d20515;
}

.league-badge.champions-league {
  background: #00336a;
}

.match-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
  color: var(--muted);
}

.match-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

/* Make entire card clickable */
.match-card {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.match-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Premium Clean White Glass Button */
.match-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.match-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  border-radius: 16px;
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.match-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  pointer-events: none;
  border-radius: 50%;
}

.match-link:hover {
  gap: 12px;
  transform: translateY(-2px) scale(1.03);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
}

.match-link:hover::before {
  opacity: 1;
}

.match-link:hover::after {
  width: 200%;
  height: 200%;
}

.match-link:active {
  transform: translateY(0) scale(0.98);
}

/* === Live Badge === */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #dc2626;
  color: white;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* === Sidebar === */
.sidebar {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: var(--space-1);
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  margin-bottom: var(--space-1);
}

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
  color: var(--muted);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.sidebar-list a:hover,
.sidebar-list a.active {
  color: var(--accent);
  background: var(--glass);
  transform: translateX(4px);
}

/* === Footer === */
.site-footer {
  margin-top: var(--space-5);
  padding: var(--space-4) 0 var(--space-2);
  background: var(--panel);
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.footer-section h4 {
  color: var(--accent);
  margin-bottom: var(--space-2);
  font-size: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-1);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-credits {
  margin-top: var(--space-2);
  color: var(--muted);
}

.footer-credits a {
  color: var(--accent);
}

/* === Disclaimer Box === */
.disclaimer {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin: var(--space-4) 0;
}

.disclaimer-title {
  color: #fca5a5;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.disclaimer p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Breadcrumbs === */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  font-size: 0.875rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumb-separator {
  color: var(--muted);
}

/* === Pagination === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin: var(--space-4) 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.pagination .active {
  background: var(--accent);
  color: var(--bg);
}

/* === Event Detail Page === */
.event-hero {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.event-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.4);
}

.event-hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(7, 20, 40, 0.9) 0%, transparent 100%);
}

.event-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}

.event-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* === Teams Block === */
.teams-block {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--space-4);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(6px);
}

.team {
  text-align: center;
}

.team-crest {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-2);
  background: var(--glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text);
}

.vs {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

/* === Broadcast Table === */
.broadcast-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
}

.broadcast-table th,
.broadcast-table td {
  padding: var(--space-2);
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.broadcast-table th {
  background: var(--glass);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.broadcast-table td {
  color: var(--muted);
}

.broadcast-table tr:hover {
  background: var(--glass);
}

/* === Stream Links === */
.stream-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.stream-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stream-link-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: left 0.6s ease;
}

.stream-link-card:hover::before {
  left: 100%;
}

.stream-link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.stream-link-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.stream-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.quality-badge,
.lang-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.quality-badge.hd {
  background: #10b981;
  color: white;
}

.quality-badge.sd {
  background: #6b7280;
  color: white;
}

.lang-badge {
  background: var(--accent-2);
  color: var(--bg);
}

/* === Player Page === */
.player-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-3);
}

.player-header {
  text-align: center;
  margin-bottom: var(--space-3);
}

.player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: visible; /* Changed from hidden to visible */
  margin-bottom: var(--space-3);
  box-shadow: var(--card-shadow);
}

.player-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto; /* Ensure iframe is interactive */
  /* Add slight padding to prevent covering controls */
  transform: scale(0.98);
  transform-origin: center;
}

.player-alert {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.5);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  text-align: center;
  margin-bottom: var(--space-3);
  color: #fde047;
}

.alternate-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--accent);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mt-4 {
  margin-top: var(--space-4);
}

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-3);
  }

  .matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-4) 0;
  }

  .event-hero {
    height: 300px;
  }

  .event-title {
    font-size: 1.75rem;
  }

  .teams-block {
    flex-direction: column;
    gap: var(--space-3);
  }

  .vs {
    transform: none;
    font-size: 1.25rem;
    margin: var(--space-2) 0;
  }

  .broadcast-table {
    font-size: 0.875rem;
  }

  .broadcast-table th,
  .broadcast-table td {
    padding: var(--space-1);
  }

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

@media (max-width: 480px) {
  .matches-grid {
    grid-template-columns: 1fr;
  }

  .stream-links {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   TELEGRAM POPUP MODAL
   =================================== */

.telegram-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 20, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.telegram-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.telegram-popup {
  position: relative;
  max-width: 400px;
  width: 100%;
  background: linear-gradient(135deg,
              rgba(15, 42, 68, 0.95) 0%,
              rgba(15, 42, 68, 0.85) 100%);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 24px;
  padding: var(--space-3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--glass-border),
    inset 0 1px 0 0 var(--glass-highlight);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.telegram-popup-overlay.show .telegram-popup {
  transform: scale(1) translateY(0);
}

.telegram-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.telegram-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.telegram-popup-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-2);
  background: linear-gradient(135deg, #229ED9 0%, #1E88E5 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.4);
  animation: popupIconFloat 3s ease-in-out infinite;
}

@keyframes popupIconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.telegram-popup-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-1);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.telegram-popup-description {
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.telegram-popup-benefits {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: var(--space-2);
  margin-bottom: var(--space-2);
}

.telegram-popup-benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.telegram-popup-benefits li {
  color: var(--text);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.85rem;
}

.telegram-popup-benefits li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(125, 227, 227, 0.2);
  border-radius: 50%;
  color: var(--accent-2);
  font-weight: bold;
  flex-shrink: 0;
  font-size: 12px;
}

.telegram-popup-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.telegram-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.telegram-popup-btn-primary {
  background: linear-gradient(135deg, #229ED9 0%, #1E88E5 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.4);
}

.telegram-popup-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(34, 158, 217, 0.6);
}

.telegram-popup-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.telegram-popup-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.telegram-icon-svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Enhanced Liquid Glass Effects for iOS 26 Style */

.glass-card,
.match-card,
.sidebar,
.player-container,
.player-alert {
  background: linear-gradient(135deg,
              rgba(255, 255, 255, 0.08) 0%,
              rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
}

.match-card:hover {
  background: linear-gradient(135deg,
              rgba(255, 255, 255, 0.12) 0%,
              rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

.site-header {
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow:
    0 2px 20px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .telegram-popup {
    padding: var(--space-2);
    border-radius: 20px;
    max-width: 90%;
  }

  .telegram-popup-title {
    font-size: 1.25rem;
  }

  .telegram-popup-icon {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .telegram-popup-description {
    font-size: 0.85rem;
  }

  .telegram-popup-benefits li {
    font-size: 0.8rem;
  }

  .telegram-popup-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ===================================
   SPLASH SCREEN / LOGO INTRO
   =================================== */

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg) 0%, var(--panel) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  animation: splashFadeOut 0.6s ease-out 2s forwards;
}

.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  animation: splashLogoIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.splash-logo-icon {
  width: 100px;
  height: 100px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.6);
  animation: splashIconPulse 2s ease-in-out infinite;
}

.splash-logo-text {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.splash-logo-tagline {
  color: var(--accent-2);
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0;
  animation: splashTaglineIn 0.6s ease-out 1s both;
}

@keyframes splashFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes splashLogoIn {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes splashIconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.6);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 80px rgba(212, 175, 55, 0.8);
  }
}

@keyframes splashTaglineIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Splash Screen Fixes */
@media (max-width: 768px) {
  .splash-screen {
    padding: var(--space-3);
  }

  .splash-logo {
    gap: var(--space-2);
  }

  .splash-logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }

  .splash-logo-text {
    font-size: 2rem;
  }

  .splash-logo-tagline {
    font-size: 1rem;
  }
}

/* ===================================
   ANIMATED GRADIENT BACKGROUNDS
   =================================== */

body {
  background: linear-gradient(135deg,
    var(--bg) 0%,
    var(--panel) 50%,
    var(--bg) 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero {
  background: linear-gradient(135deg,
    rgba(15, 42, 68, 0.8) 0%,
    rgba(7, 20, 40, 0.9) 100%);
  background-size: 200% 200%;
  animation: gradientShift 20s ease infinite;
  position: relative;
  overflow: hidden;
}

/* ===================================
   DARK / LIGHT THEME TOGGLE
   =================================== */

[data-theme="light"] {
  /* Light, fresh color scheme */
  --bg: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 50%, #FEF3C7 100%);
  --panel: rgba(255, 255, 255, 0.85);
  --accent: #0EA5E9; /* Sky Blue */
  --accent-2: #F59E0B; /* Amber */
  --text: #0F172A; /* Dark slate */
  --muted: #475569; /* Slate gray */
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.9);
}

/* Light theme specific overrides */
[data-theme="light"] body {
  background: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 50%, #FEF3C7 100%);
  background-attachment: fixed;
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .glass-card,
[data-theme="light"] .match-card,
[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .match-link {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
  color: #0EA5E9;
}

[data-theme="light"] .match-link:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.5);
  color: #0369A1;
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg,
    rgba(224, 242, 254, 0.95) 0%,
    rgba(240, 249, 255, 0.9) 100%);
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  color: white;
}

[data-theme="light"] .league-badge {
  color: white;
  font-weight: 600;
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 12px 48px rgba(212, 175, 55, 0.4);
}

.theme-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .theme-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* ===================================
   BLUR TEXT EFFECTS (LiquidEther-inspired)
   =================================== */

.blur-text {
  position: relative;
  color: var(--text);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.blur-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  filter: blur(12px);
  opacity: 0.7;
  animation: blurPulse 3s ease-in-out infinite;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes blurPulse {
  0%, 100% {
    filter: blur(12px);
    opacity: 0.7;
  }
  50% {
    filter: blur(8px);
    opacity: 0.9;
  }
}

/* Hero title clean design */
.hero-title {
  position: relative;
}

/* ===================================
   THREE.JS CANVAS CONTAINER
   =================================== */

#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

.hero,
main,
.site-header {
  position: relative;
  z-index: 1;
}

/* ===================================
   OTHERS LEAGUE BADGE
   =================================== */

.league-badge.others {
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* ===================================
   ENHANCED CARD INTERACTIONS
   =================================== */

.match-card {
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.match-card:hover::before {
  opacity: 1;
  animation: cardGlowPulse 2s ease-in-out infinite;
}

@keyframes cardGlowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Prevent button from catching all clicks */
.match-link {
  pointer-events: none;
}

.match-link:hover {
  pointer-events: auto;
}
