/* ============================================================
   MOVIEFINDER — LIVE / DIRECT SPORT · NOIR
   Même langage que l'index. Données : SportSRC (live-fx.js / live.js).
   ============================================================ */

:root {
  --ink: #07080a;
  --ink-2: #0b0d11;
  --ash: #14161b;
  --smoke: #23262e;
  --silver: #c3c6ce;
  --paper: #e9e7e0;
  --glow: #f6f4ec;
  --dim: #777b86;
  --blood: #b21f2d;

  --glass-bg: rgba(16, 18, 23, 0.42);
  --glass-bg-strong: rgba(13, 15, 19, 0.82);
  --glass-border: rgba(233, 231, 224, 0.14);
  --glass-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(246, 244, 236, 0.08);

  --radius: 4px;
  --radius-lg: 10px;
  --maxw: 1340px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.no-scroll, body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
::selection { background: rgba(246, 244, 236, 0.85); color: #07080a; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(233,231,224,0.16); border: 3px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: rgba(233,231,224,0.3); }

.italic { font-family: "Playfair Display", serif; font-style: italic; font-weight: 600; }

/* ============================================================
   DÉCOR DE VILLE
   ============================================================ */
.cityscape { position: fixed; inset: 0; z-index: -3; overflow: hidden; background: radial-gradient(140% 100% at 24% 0%, #1b1e25 0%, #0c0e12 45%, #07080a 100%); }
.moon {
  position: absolute; top: 6%; left: 14%; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #f6f4ec, #cfd0cb 55%, #9a9c98 100%);
  box-shadow: 0 0 80px 24px rgba(246,244,236,0.16), 0 0 180px 60px rgba(246,244,236,0.07);
}
.moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset -16px -14px 26px rgba(10,12,15,0.35); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; }
.skyline-far { height: 44vh; opacity: 0.45; }
.skyline-far path { fill: #0e1014; }
.skyline-near { height: 38vh; opacity: 0.9; }
.skyline-near path:not(.bridge-cable) { fill: #060708; }
.bridge-cable { stroke: #1c1f26; }
.bridge-deck { fill: #060708; }
.city-haze { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,10,0) 36%, rgba(7,8,10,0.72) 76%, var(--ink) 100%); }

/* Pluie + grain + éclair + vignette + faisceau */
#rain { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0.45; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain { 0% { transform: translate(0,0); } 33% { transform: translate(-6%,4%); } 66% { transform: translate(4%,-5%); } 100% { transform: translate(0,0); } }
.lightning { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 80% at 60% -10%, rgba(246,244,236,0.9), rgba(246,244,236,0.2) 30%, transparent 60%); opacity: 0; }
.lightning.flash { animation: flash 0.7s ease; }
@keyframes flash { 0% { opacity: 0; } 6% { opacity: 0.9; } 12% { opacity: 0.1; } 18% { opacity: 0.75; } 30% { opacity: 0; } 100% { opacity: 0; } }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 120% at 50% 38%, transparent 40%, rgba(0,0,0,0.55) 100%); }
.spotlight { position: fixed; top: 0; left: 0; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(246,244,236,0.06), transparent 64%); transform: translate(-50%,-50%); pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.5s ease; mix-blend-mode: screen; }

/* ============================================================
   PRÉCHARGEUR + PROGRESSION
   ============================================================ */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--ink); transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease); }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preloader-word { font-family: "Oswald"; font-weight: 500; letter-spacing: 0.42em; font-size: 13px; color: var(--silver); padding-left: 0.42em; }
.preloader-bar { width: 220px; height: 2px; background: rgba(233,231,224,0.14); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 38%; background: var(--glow); animation: loadbar 1.1s var(--ease) infinite; }
@keyframes loadbar { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
.lenses { display: inline-flex; gap: 8px; align-items: center; }
.lenses span { width: 22px; height: 13px; background: var(--glow); border-radius: 60% 60% 55% 55% / 70% 70% 40% 40%; box-shadow: 0 0 14px rgba(246,244,236,0.7), 0 0 34px rgba(246,244,236,0.35); transform: rotate(-8deg); animation: blink 6s steps(1) infinite; }
.lenses span:last-child { transform: rotate(8deg) scaleX(-1); }
@keyframes blink { 0%, 94%, 100% { opacity: 1; } 96% { opacity: 0.15; } }
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 999; background: var(--glow); box-shadow: 0 0 12px rgba(246,244,236,0.6); }

/* ============================================================
   GLASS
   ============================================================ */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(60%) brightness(0.9);
  -webkit-backdrop-filter: blur(14px) saturate(60%) brightness(0.9);
  box-shadow: var(--glass-shadow);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.45s var(--ease), border-color 0.45s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7,8,10,0.55); backdrop-filter: blur(16px) saturate(60%); -webkit-backdrop-filter: blur(16px) saturate(60%); border-bottom: 1px solid rgba(233,231,224,0.1); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 18px 30px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: "Oswald"; font-weight: 600; font-size: 18px; letter-spacing: 0.14em; color: var(--glow); }
.brand-lens { width: 16px; height: 16px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px rgba(246,244,236,0.7); position: relative; }
.brand-lens::after { content: ""; position: absolute; inset: 4px 3px; background: var(--ink); border-radius: 50%; }
.brand-noir { color: var(--dim); margin-left: 6px; font-weight: 300; }
.nav-links { display: flex; gap: 2px; margin-left: 14px; }
.nav-link { position: relative; padding: 9px 15px; font-family: "Oswald"; font-size: 14px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver); transition: color 0.25s ease; }
.nav-link::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 6px; height: 1px; background: var(--glow); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--glow); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius); background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--silver); transition: all 0.25s ease; backdrop-filter: blur(10px); }
.icon-btn:hover { color: var(--glow); border-color: rgba(233,231,224,0.34); transform: translateY(-2px); }

.btn { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: var(--radius); font-family: "Oswald"; font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid transparent; transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease; white-space: nowrap; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-primary { background: var(--paper); color: #07080a; }
.btn-primary:hover { transform: translateY(-3px); background: var(--glow); box-shadow: 0 14px 30px -12px rgba(246,244,236,0.5); }
.btn-glass { background: var(--glass-bg); border-color: var(--glass-border); color: var(--paper); backdrop-filter: blur(12px); }
.btn-glass:hover { transform: translateY(-3px); border-color: rgba(233,231,224,0.4); background: rgba(233,231,224,0.1); }
.btn-ghost { color: var(--silver); padding: 11px 16px; }
.btn-ghost:hover { color: var(--glow); }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border-radius: var(--radius); background: var(--glass-bg); border: 1px solid var(--glass-border); align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--paper); transition: all 0.3s var(--ease); }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.live-stage { position: relative; min-height: 64vh; display: flex; align-items: center; overflow: hidden; padding: 150px 0 40px; }
.live-stage-grid { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; padding: 0 30px; width: 100%; text-align: center; }
.live-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid rgba(178,31,45,0.5); border-radius: 100px; font-family: "Oswald"; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #f0b8be; background: rgba(178,31,45,0.12); backdrop-filter: blur(8px); margin: 0 auto 26px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blood); box-shadow: 0 0 0 0 rgba(178,31,45,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(178,31,45,0); } 100% { box-shadow: 0 0 0 0 rgba(178,31,45,0); } }

.live-pretitle { display: block; font-family: "Playfair Display", serif; font-style: italic; font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.7rem); color: var(--silver); margin: 0 0 0.15em; }
.live-title { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(2.8rem, 10vw, 7.5rem); line-height: 0.88; letter-spacing: 0.01em; margin: 0 0 0.1em; text-transform: uppercase; color: var(--glow); text-shadow: 0 0 50px rgba(0,0,0,0.7); }
.live-subtitle { display: block; font-family: "Playfair Display", serif; font-style: italic; font-weight: 600; font-size: clamp(1.4rem, 4vw, 2.8rem); line-height: 1; color: var(--paper); }
.live-lede { max-width: 600px; margin: 28px auto 30px; color: var(--silver); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.65; }
.live-disclaimer { max-width: 620px; margin: 0 auto; color: var(--dim); font-size: 12.5px; letter-spacing: 0.02em; }

.live-stats { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 28px; }
.live-stat { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.live-stat-num { font-family: "Oswald"; font-size: 2.2rem; font-weight: 600; color: var(--glow); }
.live-stat-label { font-family: "Oswald"; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.live-stat-sep { width: 1px; height: 40px; background: rgba(233,231,224,0.14); }

.live-scroll { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: none; color: var(--dim); font-family: "Oswald"; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.live-scroll-line { width: 1px; height: 42px; background: linear-gradient(var(--dim), transparent); position: relative; overflow: hidden; }
.live-scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--glow); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { top: -50%; } 100% { top: 120%; } }

/* ============================================================
   SECTIONS + FILTRES
   ============================================================ */
.live-section { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; padding: 20px 30px 40px; }
.live-section.last { padding-bottom: 110px; }
.live-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 22px; flex-wrap: wrap; }
.section-kicker { display: inline-block; font-family: "Oswald"; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.section-title { margin: 0; font-family: "Oswald"; font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; color: var(--glow); }
.section-title .live-pip { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--blood); margin-right: 12px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(178,31,45,0.6); animation: pulse 2s infinite; }

.live-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 0 30px 8px; position: relative; z-index: 3; }
.live-chip { font-family: "Oswald"; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; padding: 9px 16px; border-radius: 100px; border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--silver); backdrop-filter: blur(8px); transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.live-chip:hover { color: var(--glow); transform: translateY(-2px); border-color: rgba(233,231,224,0.34); }
.live-chip.active { color: #07080a; background: var(--glow); border-color: transparent; }

/* ============================================================
   GRILLE + CARTES MATCH
   ============================================================ */
.matches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.matches-empty { grid-column: 1 / -1; text-align: center; color: var(--dim); padding: 60px 0; font-family: "Oswald"; letter-spacing: 0.1em; text-transform: uppercase; font-size: 15px; }
.matches-skeleton { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.skel-card { height: 240px; border-radius: var(--radius-lg); background: linear-gradient(100deg, #101218 30%, #181b22 50%, #101218 70%); background-size: 220% 100%; animation: skel 1.3s linear infinite; }
@keyframes skel { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

.match-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ash); border: 1px solid rgba(233,231,224,0.08); text-align: left;
  opacity: 0; transform: translateY(26px);
  transition: transform 0.45s var(--ease), border-color 0.4s ease, box-shadow 0.4s var(--ease), opacity 0.6s var(--ease);
}
.matches-grid.in .match-card { opacity: 1; transform: none; }
.matches-grid.in .match-card:nth-child(2) { transition-delay: 0.05s; }
.matches-grid.in .match-card:nth-child(3) { transition-delay: 0.1s; }
.matches-grid.in .match-card:nth-child(4) { transition-delay: 0.15s; }
.matches-grid.in .match-card:nth-child(n+5) { transition-delay: 0.2s; }
.match-card:hover { transform: translateY(-7px); border-color: rgba(233,231,224,0.3); box-shadow: 0 34px 70px -28px rgba(0,0,0,0.95); }

.match-poster { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #101218; }
.match-poster-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6) contrast(1.1) brightness(0.82); transition: transform 0.6s var(--ease), filter 0.5s ease; }
.match-card:hover .match-poster-img { transform: scale(1.06); filter: grayscale(0) contrast(1.04) brightness(0.95); }
.match-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,6,8,0.85), transparent 55%); }

/* Fond "VS" quand aucun poster */
.match-vs { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(120% 120% at 50% 0%, #1a1d24 0%, #0b0d11 70%); }
.match-vs-team { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 38%; }
.match-vs-badge { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6)); }
.match-vs-name { font-family: "Oswald"; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--silver); text-align: center; line-height: 1.2; }
.match-vs-x { font-family: "Playfair Display", serif; font-style: italic; font-size: 1.6rem; color: var(--dim); }

.match-badge { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; font-family: "Oswald"; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; backdrop-filter: blur(6px); }
.match-badge-live { color: #fff; background: rgba(178,31,45,0.92); border: 1px solid rgba(255,140,150,0.5); }
.match-badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse-w 1.4s infinite; }
@keyframes pulse-w { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.match-badge-time { color: var(--paper); background: rgba(5,6,8,0.72); border: 1px solid rgba(233,231,224,0.22); }
.match-badge-pop { position: absolute; top: 12px; right: 12px; z-index: 3; color: var(--glow); background: rgba(5,6,8,0.55); border: 1px solid rgba(246,244,236,0.3); padding: 4px 7px; border-radius: 2px; font-size: 11px; backdrop-filter: blur(6px); }

.match-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.match-cat { font-family: "Oswald"; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.match-title { font-family: "Oswald"; font-weight: 600; font-size: 16px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--glow); line-height: 1.18; }
.match-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; font-size: 12.5px; color: var(--dim); }
.match-meta .hd { color: #07080a; background: var(--silver); padding: 2px 7px; border-radius: 2px; font-family: "Oswald"; font-size: 10px; letter-spacing: 0.08em; }
.match-play { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: "Oswald"; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--glow); }
.match-card:hover .match-play { color: #fff; }
.match-play svg { width: 16px; height: 16px; }

.tv-channel-poster {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(7,8,10,0.92));
  min-height: 170px;
}

.tv-channel-logo {
  width: min(72%, 140px);
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45));
}

.tv-channel-fallback {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  background: rgba(178, 31, 45, 0.28);
  border: 1px solid rgba(178, 31, 45, 0.45);
}

.tv-channel-logo.is-broken {
  display: none;
}

.tv-channel-poster .tv-channel-fallback[hidden] {
  display: none;
}

.tv-channel-poster .tv-channel-fallback:not([hidden]) {
  display: grid;
}

.tv-channels-grid.in .tv-channel-card { opacity: 1; transform: none; }

/* ============================================================
   LECTEUR (MODAL)
   ============================================================ */
.live-modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px; }
.live-modal.open { display: flex; }
.live-modal-bg { position: absolute; inset: 0; background: rgba(3,4,7,0.86); backdrop-filter: blur(8px); }
.live-modal-panel { position: relative; width: min(1100px, 100%); max-height: 92vh; overflow-y: auto; border-radius: var(--radius-lg); animation: pop 0.4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.live-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 24px 14px; }
.live-modal-titles { display: flex; flex-direction: column; gap: 4px; }
.live-modal-cat { font-family: "Oswald"; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.live-modal-title { font-family: "Oswald"; font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.8rem); text-transform: uppercase; letter-spacing: 0.01em; color: var(--glow); margin: 0; }
.live-modal-close { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(7,8,10,0.6); border: 1px solid var(--glass-border); color: var(--silver); font-size: 18px; transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.live-modal-close:hover { color: var(--glow); border-color: rgba(233,231,224,0.4); transform: rotate(90deg); }

.live-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.live-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-player-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-family: "Oswald"; letter-spacing: 0.12em; text-transform: uppercase; font-size: 14px; text-align: center; padding: 20px; }
.live-player-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(233,231,224,0.2); border-top-color: var(--glow); animation: spin 0.9s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.live-streams-wrap { padding: 16px 24px 24px; }
.live-streams-label { font-family: "Oswald"; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.live-streams { display: flex; gap: 9px; flex-wrap: wrap; }
.live-stream-btn { display: inline-flex; align-items: center; gap: 8px; font-family: "Oswald"; font-size: 12.5px; letter-spacing: 0.04em; padding: 9px 14px; border-radius: var(--radius); border: 1px solid var(--glass-border); background: rgba(7,8,10,0.5); color: var(--silver); transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.live-stream-btn:hover { color: var(--glow); transform: translateY(-2px); border-color: rgba(233,231,224,0.34); }
.live-stream-btn.active { color: #07080a; background: var(--glow); border-color: transparent; }
.live-stream-btn .s-hd { font-size: 9.5px; letter-spacing: 0.08em; padding: 1px 5px; border-radius: 2px; background: var(--blood); color: #fff; }
.live-stream-btn.active .s-hd { background: rgba(7,8,10,0.25); color: #07080a; }
.live-stream-btn .s-viewers { font-size: 11px; color: var(--dim); }
.live-stream-btn.active .s-viewers { color: rgba(7,8,10,0.6); }
.live-modal-note { padding: 0 24px 22px; color: var(--dim); font-size: 11.5px; line-height: 1.5; }

/* ============================================================
   CONTRÔLES FLOTTANTS (theme.js)
   ============================================================ */
.floating-controls { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.floating-control-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--glass-bg-strong); border: 1px solid var(--glass-border); color: var(--glow); font-size: 18px; backdrop-filter: blur(12px); box-shadow: 0 14px 30px -16px rgba(0,0,0,0.9); transition: transform 0.2s var(--ease), background 0.2s var(--ease); }
.floating-control-btn:hover { transform: translateY(-2px); background: rgba(35,38,46,0.9); }

/* ============================================================
   RÉVÉLATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-account { display: none; }
  .burger { display: flex; }
  .nav-links.mobile-open { display: flex; flex-direction: column; gap: 4px; position: fixed; top: 80px; left: 14px; right: 14px; background: rgba(11,13,17,0.97); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 16px; backdrop-filter: blur(20px); z-index: 120; }
  .nav-links.mobile-open .nav-link { padding: 14px 16px; font-size: 16px; }
  .moon { width: 88px; height: 88px; }
}
@media (max-width: 520px) {
  .nav-inner { padding: 14px 18px; }
  .live-stage-grid, .live-section, .live-filters { padding-left: 18px; padding-right: 18px; }
  .matches-grid { grid-template-columns: 1fr; }
  .live-modal { padding: 0; }
  .live-modal-panel { max-height: 100vh; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .match-card { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   COUPE DU MONDE 2026 (wcup2026.org)
   ============================================================ */
.wc-section {
  position: relative; z-index: 3;
  max-width: var(--maxw); margin: 0 auto;
  padding: 10px 30px 50px;
}
.wc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.wc-title { color: var(--glow); }
.wc-note { max-width: 340px; margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--dim); }

.wc-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.wc-panel { border-radius: var(--radius-lg); padding: 18px 18px 16px; min-height: 180px; }
.wc-panel-title {
  margin: 0 0 14px; font-family: "Oswald"; font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver);
  display: flex; align-items: center; gap: 8px;
}
#wc-live-panel { border-color: rgba(178,31,45,0.35); }

.wc-match-list { display: flex; flex-direction: column; gap: 10px; }
.wc-empty, .wc-loading { color: var(--dim); font-family: "Oswald"; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 0; }

.wc-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  background: rgba(7,8,10,0.35); border: 1px solid rgba(233,231,224,0.08);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.wc-row[role="button"] { cursor: pointer; }
.wc-row[role="button"]:hover { border-color: rgba(233,231,224,0.28); background: rgba(233,231,224,0.05); }
.wc-row.is-live { border-color: rgba(178,31,45,0.45); background: rgba(178,31,45,0.08); }

.wc-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wc-team.away { flex-direction: row-reverse; text-align: right; }
.wc-flag { width: 28px; height: 20px; object-fit: cover; border-radius: 2px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.wc-name { font-family: "Oswald"; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wc-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 72px; }
.wc-score { font-family: "Oswald"; font-weight: 700; font-size: 1.35rem; letter-spacing: 0.06em; color: var(--glow); }
.wc-score.pending { font-size: 0.95rem; color: var(--dim); font-weight: 400; }
.wc-meta { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-family: "Oswald"; text-align: center; }
.wc-meta .live-tag { color: #f0b8be; }

.wc-standings-wrap { margin-top: 8px; }
.wc-standings-title { margin-bottom: 16px; }
.wc-standings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.wc-knockout-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.wc-knockout-round { min-width: 0; }
.wc-knockout-list { gap: 8px; }
.wc-flag-empty {
  width: 28px;
  height: 20px;
  border-radius: 2px;
  background: rgba(233,231,224,0.08);
  flex-shrink: 0;
}
.wc-group { border-radius: var(--radius-lg); padding: 14px; background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
.wc-group-name { font-family: "Oswald"; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow); margin: 0 0 10px; }
.wc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wc-table th, .wc-table td { padding: 5px 4px; text-align: center; border-bottom: 1px solid rgba(233,231,224,0.06); }
.wc-table th { font-family: "Oswald"; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 400; }
.wc-table td.team { text-align: left; font-family: "Oswald"; font-size: 11.5px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--silver); max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-table tr.top td.team { color: var(--glow); }
.wc-table tr.top td.pts { color: var(--glow); font-weight: 600; }
.wc-table td.pts { font-family: "Oswald"; font-weight: 600; }

.wc-scorers-wrap { margin-top: 28px; }
.wc-scorers-title { margin-bottom: 16px; }
.wc-scorers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}

.wc-scorer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20,22,28,0.92) 0%, rgba(7,8,10,0.88) 100%);
  border: 1px solid rgba(233,231,224,0.1);
  box-shadow: inset 0 1px 0 rgba(246,244,236,0.05);
  text-align: center;
  overflow: hidden;
}
.wc-scorer-card.is-top {
  border-color: rgba(216,176,87,0.45);
  background: linear-gradient(180deg, rgba(44,36,18,0.55) 0%, rgba(7,8,10,0.92) 100%);
  box-shadow: 0 0 0 1px rgba(216,176,87,0.12), inset 0 1px 0 rgba(216,176,87,0.12);
}

.wc-scorer-rank {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.wc-scorer-card.is-top .wc-scorer-rank { color: var(--gold); }

.wc-scorer-photo {
  width: 88px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(233,231,224,0.06);
  border: 1px solid rgba(233,231,224,0.12);
  box-shadow: 0 14px 28px -16px rgba(0,0,0,0.85);
}
.wc-scorer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.15) contrast(1.05);
}

.wc-scorer-body { min-width: 0; width: 100%; }
.wc-scorer-name {
  margin: 0 0 6px;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--glow);
  line-height: 1.15;
}
.wc-scorer-team {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--dim);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wc-scorer-flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.wc-scorer-goals {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: auto;
  padding-top: 4px;
}
.wc-scorer-goals-num {
  font-family: "Oswald", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  color: #7ec8e3;
}
.wc-scorer-card.is-top .wc-scorer-goals-num { color: var(--gold); }
.wc-scorer-goals-label {
  font-family: "Oswald", sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 980px) {
  .wc-panels { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wc-section { padding-left: 18px; padding-right: 18px; }
  .wc-name { font-size: 11px; }
  .wc-flag { width: 24px; height: 17px; }
  .wc-scorers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wc-scorer-photo { width: 72px; height: 90px; }
  .wc-scorer-name { font-size: 12px; }
}
