/* ============================================================
   SWISS JUNIORS CUP 2027 — Global Stylesheet
   Mobile-first • Pure CSS • No frameworks
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --red: #C0182D;
  --red-dark: #8B0000;
  --red-pale: #FBEAEC;
  --text: #1A1A1A;
  --text-secondary: #4A4A4A;
  --white: #FFFFFF;
  --black: #000000;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-300: #D0D0D0;
  --gray-800: #5C1A1A;
  --gray-900: #3D0C0C;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --container: 1200px;
  --container-narrow: 900px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol { list-style: none; }

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--red);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Focus Visible --- */
*:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-heading);
  flex-shrink: 0;
  overflow: hidden;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  transition: color var(--transition);
}

.header.scrolled .logo-title {
  color: var(--text);
}

.logo-sub {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.header.scrolled .logo-sub {
  color: var(--text-secondary);
}

/* Nav Links */
.nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--white);
  transition: all var(--transition);
  white-space: nowrap;
}

.header.scrolled .nav-link {
  color: var(--text);
}

.nav-link:hover {
  background: rgba(192, 24, 45, 0.1);
  color: var(--red);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-dropdown-item:hover {
  background: var(--red-pale);
  color: var(--red);
}

/* Sub-menu (Saison X > Phase Y) */
.nav-submenu {
  position: relative;
}

.nav-sub-trigger {
  cursor: pointer;
}

.nav-sub-panel {
  position: absolute;
  top: -8px;
  right: calc(100% + 4px);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all var(--transition);
  z-index: 1001;
}

.nav-submenu:hover .nav-sub-panel,
.nav-submenu:focus-within .nav-sub-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nav-sub-trigger::after {
  content: '\2039';
  margin-left: auto;
  padding-left: 8px;
  font-size: 18px;
  line-height: 1;
  color: var(--text-secondary);
  transition: transform var(--transition);
}

.nav-submenu:hover .nav-sub-trigger::after {
  transform: translateX(-3px);
  color: var(--red);
}

.nav-sub-trigger.active {
  background: var(--red-pale);
  color: var(--red);
}

/* When dropdown is too close to right edge, sub-panel might overflow.
   The right-side opening above mitigates this for "Editions" menu.
   For sub-menus without children (Saison 2026-2027), hide the chevron */
.nav-submenu:not(:has(.nav-sub-panel)) .nav-sub-trigger::after {
  display: none;
}

/* Touch / no-hover devices — sub-panel always visible inline */
@media (hover: none) and (pointer: coarse) {
  .nav-sub-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 4px 0 4px 16px;
    margin-top: 4px;
    border-left: 2px solid var(--red-pale);
    min-width: 0;
    background: transparent;
  }
  .nav-sub-trigger::after { display: none; }
}

/* "Coming Soon" badge */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(255,165,0,0.4);
  animation: badgeNewPulse 2s ease-in-out infinite;
}

@keyframes badgeNewPulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(255,165,0,0.4); }
  50% { box-shadow: 0 4px 14px rgba(255,165,0,0.7); }
}

.badge-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

/* Live Button */
.nav-live {
  background: var(--red);
  color: var(--white) !important;
  border-radius: 24px;
  padding: 8px 18px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-live:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.header.scrolled .hamburger span {
  background: var(--text);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 80px 40px 40px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .mobile-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  padding: 12px;
  transition: color var(--transition);
}

.mobile-menu .mobile-link:hover {
  color: var(--red);
}

.mobile-menu .mobile-sub {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
}

/* ============================================================
   HERO VIDEO FULLSCREEN
   ============================================================ */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-layer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-video-layer video.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.65));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(192, 24, 45, 0.25);
  border: 1px solid rgba(192, 24, 45, 0.5);
  backdrop-filter: blur(10px);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  transition: all 0.5s ease;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: livePulse 2s infinite;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--red);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(192, 24, 45, 0.4);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--text);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}

.btn-dark:hover {
  background: var(--text-secondary);
  transform: translateY(-2px);
}

/* Hero Video Indicators (Stories-style) */
.hero-indicators {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-indicator {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition);
}

.hero-indicator.active {
  width: 80px;
  background: rgba(255,255,255,0.4);
}

.hero-indicator-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.hero-indicator.active .hero-indicator-fill {
  background: var(--red);
}

/* Hero Sound Button */
.hero-sound-btn {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.hero-sound-btn:hover {
  background: rgba(0,0,0,0.7);
  transform: scale(1.1);
}

.hero-sound-btn svg {
  width: 22px;
  height: 22px;
}

/* Hero Play Button — visible on mobile */
.hero-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(192, 24, 45, 0.9);
  border: 3px solid rgba(255,255,255,0.6);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: playPulse 2s ease-in-out infinite;
  z-index: 3;
  position: relative;
}

.hero-play-btn svg {
  margin-left: 3px;
}

.hero-play-btn:hover {
  transform: scale(1.15);
  background: rgba(192, 24, 45, 1);
  border-color: #fff;
  box-shadow: 0 0 40px rgba(192, 24, 45, 0.5);
}

.hero-play-btn.playing {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
  animation: none;
  width: 48px;
  height: 48px;
}

@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 24, 45, 0.6); }
  50% { box-shadow: 0 0 0 16px rgba(192, 24, 45, 0); }
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--white);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ============================================================
   SECTIONS — Generic
   ============================================================ */
.section {
  padding: 60px 0;
}

.section-dark {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--red-dark) 100%);
  color: var(--white);
}

.section-red {
  background: var(--red);
  color: var(--white);
}

.section-pale {
  background: var(--red-pale);
}

.section-gray {
  background: var(--gray-100);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 12px;
}

.section-dark .section-label {
  color: rgba(255,255,255,0.6);
}

.section-red .section-label {
  color: rgba(255,255,255,0.7);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section-dark .section-desc {
  color: rgba(255,255,255,0.7);
}

.section-header {
  margin-bottom: 40px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 40px;
}

.section-header-center .section-desc {
  margin: 0 auto;
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.section-red .stat-item {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
}

.section-red .stat-number {
  color: var(--white);
}

.section-red .stat-label {
  color: rgba(255,255,255,0.8);
}

.section-red .stat-item:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
}

/* ============================================================
   EDITION CARDS
   ============================================================ */
.editions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.edition-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: all var(--transition);
}

.edition-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.edition-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease, opacity 0.6s ease;
  z-index: 0;
}

.edition-card-bg-hover {
  z-index: 1;
  opacity: 0;
}

.edition-card:hover .edition-card-bg:not(.edition-card-bg-hover) {
  transform: scale(1.05);
  opacity: 0;
}

.edition-card:hover .edition-card-bg-hover {
  opacity: 1;
  transform: scale(1.05);
}

.edition-card-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.edition-card-content {
  position: relative;
  z-index: 3;
  color: var(--white);
}

.edition-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 125, 50, 0.9);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.edition-card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  line-height: 1;
}

.edition-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.edition-card-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.edition-card .btn {
  align-self: flex-start;
}

/* ============================================================
   CLUBS GRID
   ============================================================ */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.club-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  text-align: center;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Shine sweep on hover */
.club-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.club-card:hover::after {
  left: 120%;
}

.club-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 16px 48px rgba(192, 24, 45, 0.18), 0 0 0 2px var(--red);
  border-color: var(--red);
  background: linear-gradient(180deg, var(--white) 60%, var(--red-pale) 100%);
}

.club-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-secondary);
  border: 3px solid var(--gray-200);
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* Logo glow ring on hover */
.club-card:hover .club-logo {
  transform: scale(1.18) rotate(3deg);
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(192, 24, 45, 0.15), 0 0 24px rgba(192, 24, 45, 0.2);
}

.club-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.club-card:hover .club-logo img {
  transform: scale(1.1);
}

.club-card.pro .club-logo {
  border-color: var(--red);
  background: var(--red-pale);
  color: var(--red);
}

.club-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.club-card:hover .club-name {
  color: var(--red);
}

.club-country {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

/* "Voir" hint on hover */
.club-card .club-action-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
  margin-top: 2px;
}

.club-card:hover .club-action-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Qualified clubs highlight */
.club-card.qualified {
  border-color: #2E7D32;
  background: #F1F8E9;
}

.club-card.qualified:hover {
  box-shadow: 0 16px 48px rgba(46, 125, 50, 0.18), 0 0 0 2px #2E7D32;
  border-color: #2E7D32;
  background: linear-gradient(180deg, #F1F8E9 60%, #C8E6C9 100%);
}

.club-card.qualified:hover .club-logo {
  border-color: #2E7D32;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15), 0 0 24px rgba(46, 125, 50, 0.2);
}

.club-card.qualified:hover .club-name {
  color: #2E7D32;
}

.club-card.qualified .club-logo {
  border-color: #2E7D32;
  background: #E8F5E9;
  color: #2E7D32;
}

/* ============================================================
   HALL OF FAME
   ============================================================ */
.champions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.champion-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.champion-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(192, 24, 45, 0.5);
  transform: translateY(-4px);
}

.champion-trophy {
  font-size: 48px;
  margin-bottom: 16px;
}

.champion-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.champion-detail {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

/* ============================================================
   CHAMPIONS SECTION — Full-bleed background + framed palmares
   ============================================================ */
.champions-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.champions-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/photos/vainqueur_fina02l.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease;
  filter: brightness(0.45) saturate(1.05);
}

.champions-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(20,5,10,0.35) 0%, rgba(15,5,10,0.75) 70%, rgba(10,2,5,0.92) 100%);
  z-index: 1;
  transition: opacity 0.6s ease;
}

.champions-section .container {
  position: relative;
  z-index: 2;
}

/* When hovering the palmares card, brighten the background photo */
.champions-section:has(.champions-image-wrap:hover) .champions-bg {
  filter: brightness(0.7) saturate(1.1);
  transform: scale(1.03);
}

.champions-section:has(.champions-image-wrap:hover) .champions-bg-overlay {
  opacity: 0.6;
}

.champions-image-wrap {
  display: block;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,215,0,0.15);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  text-decoration: none;
  aspect-ratio: 3 / 2;
  background: #1a0a0a;
}

.champions-image-wrap:hover {
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,215,0,0.3);
}

.champions-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  backface-visibility: hidden;
}

.champions-image-back {
  opacity: 0;
  transform: scale(1.08);
  z-index: 1;
}

.champions-image-front {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.champions-image-wrap:hover .champions-image-front,
.champions-image-wrap:focus-visible .champions-image-front {
  opacity: 0;
  transform: scale(1.08);
  z-index: 1;
}

.champions-image-wrap:hover .champions-image-back,
.champions-image-wrap:focus-visible .champions-image-back {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* ============================================================
   STATS SECTION — Full-bleed background + framed stats image
   ============================================================ */
.stats-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/stats%20en%20arriere.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease;
  filter: brightness(0.45) saturate(1.05);
}

.stats-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(20,5,10,0.35) 0%, rgba(15,5,10,0.75) 70%, rgba(10,2,5,0.92) 100%);
  z-index: 1;
  transition: opacity 0.6s ease;
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stats-section:has(.stats-image-wrap:hover) .stats-bg {
  filter: brightness(0.7) saturate(1.1);
  transform: scale(1.03);
}

.stats-section:has(.stats-image-wrap:hover) .stats-bg-overlay {
  opacity: 0.6;
}

.stats-image-wrap {
  display: block;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,215,0,0.15);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  text-decoration: none;
  aspect-ratio: 19 / 10;
  background: #1a0a0a;
}

.stats-image-wrap:hover {
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,215,0,0.3);
}

.stats-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  backface-visibility: hidden;
}

.stats-image-back {
  opacity: 0;
  transform: scale(1.08);
  z-index: 1;
}

.stats-image-front {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.stats-image-wrap:hover .stats-image-front,
.stats-image-wrap:focus-visible .stats-image-front {
  opacity: 0;
  transform: scale(1.08);
  z-index: 1;
}

.stats-image-wrap:hover .stats-image-back,
.stats-image-wrap:focus-visible .stats-image-back {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* ============================================================
   HALL OF FAME — Premium champions layout (legacy, kept for compat)
   ============================================================ */
.hof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .hof-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hof-main {
    grid-column: 1 / -1;
  }
}

/* MAIN CHAMPION CARD — Finale Internationale */
.hof-main {
  position: relative;
  background: linear-gradient(135deg, rgba(255,215,0,0.08) 0%, rgba(255,255,255,0.04) 50%, rgba(192,24,45,0.08) 100%);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 24px;
  padding: 48px 40px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hof-main::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,215,0,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hof-main::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #FFD700 20%, #FFA500 50%, #FFD700 80%, transparent 100%);
}

.hof-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
  border-color: rgba(255,215,0,0.5);
}

.hof-ribbon {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a1a;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 12px rgba(255,165,0,0.4);
  z-index: 2;
}

.hof-main-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

@media (min-width: 700px) {
  .hof-main-content {
    text-align: left;
    justify-content: flex-start;
  }
}

.hof-main-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hof-main-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
  filter: blur(20px);
  animation: hofGlow 3s ease-in-out infinite;
}

@keyframes hofGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hof-main-logo {
  position: relative;
  width: 130px;
  height: 130px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 0 4px rgba(255,215,0,0.3), 0 0 0 8px rgba(255,215,0,0.15);
  z-index: 1;
}

.hof-main-info {
  flex: 1;
  min-width: 250px;
}

.hof-event {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #FFD700;
  margin-bottom: 8px;
}

.hof-team-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 20px rgba(255,215,0,0.2);
}

.hof-country {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  margin: 0 0 20px 0;
}

.hof-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 700px) {
  .hof-meta {
    justify-content: flex-start;
  }
}

.hof-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.hof-meta-item svg {
  opacity: 0.6;
}

/* SUB CARDS — Qualificatifs */
.hof-sub {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.hof-sub::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #C0C0C0 0%, #808080 100%);
}

.hof-sub:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(192,192,192,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.hof-medal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hof-medal.silver {
  background: linear-gradient(135deg, #E5E5E5 0%, #A8A8A8 100%);
}

.hof-medal.gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.hof-sub-content {
  flex: 1;
  min-width: 0;
}

.hof-event-small {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.hof-sub-team {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hof-sub-team img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.hof-sub-team h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0 0 4px 0;
  line-height: 1.1;
}

.hof-sub-team p {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   SOCIAL STATS (Red section)
   ============================================================ */
.social-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.social-stat {
  text-align: center;
  padding: 28px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition);
}

.social-stat:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.social-stat-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.social-stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.social-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-level {
  margin-bottom: 40px;
}

.partners-level-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: all var(--transition);
}

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

.partner-placeholder {
  width: 80px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.partner-card img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
}

.partners-cta {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-secondary);
}

.partners-cta a {
  color: var(--red);
  font-weight: 600;
}

.partners-cta a:hover {
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo-title {
  color: var(--white);
}

.footer-brand .logo-sub {
  color: rgba(255,255,255,0.5);
}

.footer-brand-desc {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 300px;
}

.footer-nav-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--red);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   PAGE HERO (Compact — for sub-pages)
   ============================================================ */
.page-hero {
  background: var(--gray-900);
  color: var(--white);
  padding: 120px 0 60px;
  text-align: center;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192, 24, 45, 0.2);
  border: 1px solid rgba(192, 24, 45, 0.4);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 0.95;
  margin-bottom: 12px;
}

.page-hero-title span {
  color: var(--red);
}

.page-hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
}

/* ============================================================
   FILTERS / TABS
   ============================================================ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--gray-100);
  color: var(--text-secondary);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-tab.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ============================================================
   MATCH CARDS
   ============================================================ */
.matches-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (min-width: 768px) {
  .matches-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (min-width: 1200px) {
  .matches-list { grid-template-columns: repeat(4, 1fr); }
}

.match-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  text-align: center;
  gap: 4px;
}

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

.match-time {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  color: var(--red);
  text-align: center;
}

.match-teams-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.match-team {
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  width: 100%;
}

.match-team.left {
  justify-content: center;
}

.match-team.right {
  justify-content: center;
}

.match-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}

.match-team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.match-score {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--red);
  text-align: center;
  padding: 2px 8px;
  background: var(--red-pale);
  border-radius: 6px;
  flex-shrink: 0;
}

.match-phase-tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Match card horizontal layout on tablet+ */
@media (min-width: 768px) {
  .match-teams-row {
    flex-direction: row;
    gap: 8px;
  }
  .match-team.left {
    justify-content: flex-end;
    flex: 1;
    text-align: right;
  }
  .match-team.right {
    justify-content: flex-start;
    flex: 1;
    text-align: left;
  }
  .match-team-name {
    max-width: 140px;
  }
  .match-card {
    padding: 14px;
  }
  .match-team { font-size: 13px; }
  .match-score { font-size: 18px; }
}

/* Filter row improvements */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}

.filter-select {
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-select:focus {
  border-color: var(--red);
  outline: none;
}

/* ============================================================
   TABLE (Standings)
   ============================================================ */
/* ============================================================
   GROUP HEADER — above each standings table
   ============================================================ */
.group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-200);
}

.group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(192,24,45,0.3);
}

.group-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  line-height: 1.1;
}

.group-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

/* Legend below tables */
.standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--gray-50, #fafafa);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 4px;
  border-radius: 4px;
}

/* ============================================================
   STANDINGS TABLE — Modern pro design (UEFA / L'Equipe style)
   ============================================================ */
.standings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
}

.standings-table thead {
  background: #0F1A2B;
  background: linear-gradient(135deg, #0F1A2B 0%, #1E2D44 100%);
}

.standings-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.95);
  padding: 16px 10px;
  text-align: center;
  border: none;
  white-space: nowrap;
}

.standings-table th:nth-child(1) { width: 56px; }
.standings-table th:nth-child(2) {
  text-align: left;
  padding-left: 18px;
}

.standings-table th:last-child {
  color: #FFD54F;
  font-weight: 800;
  background: rgba(255,255,255,0.04);
}

.standings-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #f1f1f1;
  text-align: center;
  vertical-align: middle;
  color: #2a2a2a;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease;
  font-weight: 500;
}

.standings-table tbody tr:last-child td {
  border-bottom: none;
}

.standings-table tbody tr {
  position: relative;
}

.standings-table tbody tr:hover td {
  background: #FAFBFC;
}

/* Rank cell with colored position indicator */
.standings-table .rank {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: #2a2a2a;
  position: relative;
  width: 56px;
}

.standings-table tbody tr .rank::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: transparent;
}

.standings-table tbody tr:nth-child(1) .rank::before { background: #00C853; }
.standings-table tbody tr:nth-child(2) .rank::before { background: #66BB6A; }
.standings-table tbody tr:nth-child(3) .rank::before { background: #FFA726; }
.standings-table tbody tr:nth-child(4) .rank::before { background: #EF5350; }

/* Team name cell */
.standings-table .team-name {
  font-weight: 600;
  text-align: left;
  padding-left: 18px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.standings-table .team-name img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  background: #fff;
  padding: 2px;
  border: 1px solid #e8e8e8;
  margin: 0 !important;
  vertical-align: middle !important;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Points column — bold red, slight bg */
.standings-table td:last-child {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--red);
  background: rgba(192,24,45,0.03);
}

.standings-table tbody tr:hover td:last-child {
  background: rgba(192,24,45,0.06);
}

/* Goal diff — color coded weight */
.standings-table td:nth-last-child(2) {
  font-weight: 700;
}

/* Leader row — clearly green to match the rank bar */
.standings-table .qualified-row td {
  background: #E8F5E9;
  font-weight: 700;
  color: #1B5E20;
}

.standings-table .qualified-row .rank {
  color: #1B5E20;
}

.standings-table .qualified-row td:last-child {
  background: #C8E6C9;
  color: #1B5E20;
}

.standings-table .qualified-row .team-name {
  color: #1B5E20;
}

.standings-table .qualified-row:hover td {
  background: #DCEDC8;
}

.standings-table .qualified-row:hover td:last-child {
  background: #B5DCB6;
}

/* Trophy icon for leader */
.standings-table .qualified-row .rank::after {
  content: '\1F3C6';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.8;
}

/* Mobile responsive — hide secondary columns */
@media (max-width: 640px) {
  .standings-table {
    font-size: 13px;
  }
  .standings-table th,
  .standings-table td {
    padding: 10px 6px;
  }
  .standings-table th:nth-child(3),
  .standings-table td:nth-child(3),
  .standings-table th:nth-child(4),
  .standings-table td:nth-child(4),
  .standings-table th:nth-child(5),
  .standings-table td:nth-child(5),
  .standings-table th:nth-child(9),
  .standings-table td:nth-child(9) {
    display: none;
  }
  .standings-table .team-name {
    padding-left: 8px;
    gap: 6px;
  }
  .standings-table .team-name img {
    width: 22px !important;
    height: 22px !important;
  }
}

/* ============================================================
   BRACKET (Tournament)
   ============================================================ */
.bracket {
  overflow-x: auto;
  padding: 20px 0;
}

.bracket-grid {
  display: grid;
  grid-template-columns: repeat(3, 240px);
  gap: 40px;
  min-width: 800px;
  align-items: center;
}

.bracket-round-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  text-align: center;
}

.bracket-match {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.bracket-team {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text);
}

.bracket-team:last-child {
  border-bottom: none;
}

.bracket-team.winner {
  background: var(--red-pale);
  font-weight: 700;
  color: var(--red);
}

.bracket-team-score {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-placeholder {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  color: var(--white);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
}

/* Video Cards */
.video-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.video-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-900);
  cursor: pointer;
}

.video-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.video-card:hover .video-card-overlay {
  background: rgba(0,0,0,0.2);
}

.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
}

.video-card:hover .play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(192, 24, 45, 0.5);
}

.video-card-title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(192, 24, 45, 0.1);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================================
   GAME PAGE SPECIFIC
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  margin: 0 auto 16px;
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Leaderboard */
.leaderboard {
  max-width: 600px;
  margin: 0 auto;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  margin-bottom: 8px;
  transition: all var(--transition);
}

.leaderboard-item:hover {
  border-color: var(--red);
}

.leaderboard-rank {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--red);
  width: 32px;
  text-align: center;
}

.leaderboard-name {
  font-weight: 600;
  flex: 1;
}

.leaderboard-score {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-secondary);
}

.leaderboard-item:first-child {
  background: var(--red-pale);
  border-color: var(--red);
}

/* ============================================================
   GENEVE PAGE
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.info-card {
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.info-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.info-card-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.info-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.info-card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.venue-details {
  background: var(--red-pale);
  border: 1px solid rgba(192, 24, 45, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}

.venue-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.venue-address {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.venue-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.venue-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.venue-info-item strong {
  color: var(--red);
  min-width: 100px;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0;
  border: 1px solid var(--gray-200);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.hotels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hotel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.hotel-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.hotel-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--red-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hotel-info {
  flex: 1;
}

.hotel-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.hotel-distance {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.contact-value {
  font-weight: 600;
  font-size: 15px;
}

.contact-value a {
  color: var(--red);
}

.contact-value a:hover {
  text-decoration: underline;
}

/* ============================================================
   ANIMATIONS — Fade In on Scroll
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   RESPONSIVE — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  .section {
    padding: 80px 0;
  }

  .hero-cta {
    flex-direction: row;
  }

  .hero-indicators {
    bottom: 80px;
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .clubs-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .social-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

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

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

  .map-container iframe {
    height: 400px;
  }
}

/* ============================================================
   RESPONSIVE — Desktop (1200px+)
   ============================================================ */
@media (min-width: 1200px) {
  .nav {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .section {
    padding: 100px 0;
  }

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

  .clubs-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .info-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hotels-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .match-card {
    grid-template-columns: 80px 1fr 60px 1fr;
    padding: 16px 24px;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-white { color: var(--white); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }

/* ============================================================
   TEAMS TICKER — Infinite scrolling band
   ============================================================ */
.teams-ticker-section {
  background: var(--white);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--gray-200);
}

.teams-ticker {
  display: flex;
  width: max-content;
  animation: tickerScroll 40s linear infinite;
}

.teams-ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--gray-100);
  padding: 3px;
  flex-shrink: 0;
}

.ticker-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
}

.ticker-sep {
  color: var(--red);
  font-size: 6px;
  opacity: 0.3;
  flex-shrink: 0;
}

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

/* ============================================================
   CREATIVE SCROLL EFFECTS
   ============================================================ */

/* Staggered children animation */
.fade-in.visible .stat-item,
.fade-in.visible .club-card,
.fade-in.visible .partner-card,
.fade-in.visible .social-stat,
.fade-in.visible .champion-card {
  animation: popIn 0.5s ease forwards;
  opacity: 0;
}

.fade-in.visible .stat-item:nth-child(1),
.fade-in.visible .club-card:nth-child(1),
.fade-in.visible .social-stat:nth-child(1),
.fade-in.visible .champion-card:nth-child(1) { animation-delay: 0s; }

.fade-in.visible .stat-item:nth-child(2),
.fade-in.visible .club-card:nth-child(2),
.fade-in.visible .social-stat:nth-child(2),
.fade-in.visible .champion-card:nth-child(2) { animation-delay: 0.1s; }

.fade-in.visible .stat-item:nth-child(3),
.fade-in.visible .club-card:nth-child(3),
.fade-in.visible .social-stat:nth-child(3) { animation-delay: 0.2s; }

.fade-in.visible .stat-item:nth-child(4),
.fade-in.visible .club-card:nth-child(4),
.fade-in.visible .social-stat:nth-child(4) { animation-delay: 0.3s; }

.fade-in.visible .club-card:nth-child(5) { animation-delay: 0.4s; }
.fade-in.visible .club-card:nth-child(6) { animation-delay: 0.5s; }
.fade-in.visible .club-card:nth-child(7) { animation-delay: 0.55s; }
.fade-in.visible .club-card:nth-child(8) { animation-delay: 0.6s; }
.fade-in.visible .club-card:nth-child(9) { animation-delay: 0.65s; }
.fade-in.visible .club-card:nth-child(10) { animation-delay: 0.7s; }
.fade-in.visible .club-card:nth-child(n+11) { animation-delay: 0.75s; }

.fade-in.visible .partner-card:nth-child(n) {
  animation-delay: calc(var(--i, 0) * 0.05s);
}

@keyframes popIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Parallax-like diagonal stripe decoration */
.section-red::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
}

.section-red {
  position: relative;
}

/* Club card hover removed duplicate — main styles handle it */

/* Gradient text for section titles */
.section-title {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-dark .section-title,
.section-red .section-title {
  background: none;
  -webkit-text-fill-color: var(--white);
}

/* Footer gradient */
.footer {
  background: linear-gradient(180deg, var(--gray-900) 0%, var(--red-dark) 100%);
}

/* Page hero with video support */
.page-hero {
  background: linear-gradient(160deg, #1a0a0a 0%, #3D0C0C 40%, #6B1520 100%);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.page-hero-title span {
  color: #FF6B6B;
}

/* Page hero video background */
.page-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,10,10,0.7) 0%, rgba(61,12,12,0.85) 100%);
}

/* ============================================================
   COMPOSITION PITCH — Football field layout
   ============================================================ */
.compo-section {
  margin-top: 20px;
}

.compo-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compo-pitch {
  position: relative;
  background: linear-gradient(180deg, #1a5c2a 0%, #1e6b31 50%, #1a5c2a 100%);
  border-radius: var(--radius);
  height: 240px;
  overflow: hidden;
  border: 2px solid #2d8a41;
}

.compo-pitch::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255,255,255,0.25);
}

.compo-pitch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
}

.compo-player {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: translate(-50%, -50%);
}

.compo-player-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.compo-player-name {
  font-size: 9px;
  color: var(--white);
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.staff-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.staff-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.staff-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

.staff-name {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
}

.staff-role {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Roster list */
.roster-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.roster-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.roster-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}

.roster-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

/* Stat number count-up feel */
.stat-number {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   TEAM MODAL — Click to view team details
   ============================================================ */
.team-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9000;
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.team-modal.active {
  display: flex;
}

.team-modal-content {
  max-width: 550px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  animation: modalIn 0.35s ease;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
  max-height: 90vh;
  overflow-y: auto;
}

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

.team-modal-header {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.team-modal-header .tm-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-modal-header .tm-info h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-modal-header .tm-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.team-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}

.team-modal-close:hover {
  background: rgba(255,255,255,0.4);
}

.team-modal-photo {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.team-modal-photo:hover {
  transform: scale(1.03);
}

.team-modal-body {
  padding: 24px;
  background: var(--white);
}

.team-modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.team-modal-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.team-modal-stat {
  background: var(--red-pale);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

/* ============================================================
   SPONSOR CAROUSEL — Infinite scroll
   ============================================================ */
.sponsor-carousel {
  overflow: hidden;
  padding: 24px 0;
  position: relative;
}

.sponsor-carousel::before,
.sponsor-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
}

.sponsor-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.sponsor-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.sponsor-track {
  display: flex;
  gap: 48px;
  animation: scrollSponsors 30s linear infinite;
  width: max-content;
}

.sponsor-track img {
  height: 40px;
  opacity: 0.6;
  filter: grayscale(40%);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sponsor-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.15);
}

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

/* ============================================================
   KID-FRIENDLY ANIMATIONS
   ============================================================ */

/* Floating football decoration */
.floating-ball {
  position: fixed;
  width: 40px;
  height: 40px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  animation: floatBall 18s ease-in-out infinite;
}

@keyframes floatBall {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(90deg); }
  50% { transform: translateY(-50px) rotate(180deg); }
  75% { transform: translateY(-20px) rotate(270deg); }
}

/* Sparkle on trophies and badges */
.sparkle {
  position: relative;
}

.sparkle::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: #FFD700;
  border-radius: 50%;
  animation: sparkleAnim 2s ease-in-out infinite;
}

@keyframes sparkleAnim {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

/* Club card clickable — cursor set in main .club-card */

/* Shimmer effect on hero badge */
.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 4s infinite;
}

.hero-badge {
  position: relative;
  overflow: hidden;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Trophy bounce for champion section */
.champion-trophy svg {
  animation: trophyBounce 1.5s ease infinite alternate;
}

@keyframes trophyBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
