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

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

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

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

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

.live-pip { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--blood); box-shadow: 0 0 0 0 rgba(178,31,45,0.6); animation: pulse 2s infinite; vertical-align: middle; }
.dp-row-title .live-pip { width: 12px; height: 12px; margin-right: 10px; }
.dp-tag .live-pip, .dp-slide-tag .live-pip { width: 7px; height: 7px; margin-right: 5px; background: currentColor; animation: pulse-w 1.4s infinite; box-shadow: none; }
@keyframes pulse-w { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.dp-card-sub { font-family: "Oswald"; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver); opacity: 0.85; }

.dp-slide-cta .dp-btn { cursor: pointer; font-family: inherit; }

.dp-note { color: var(--dim); font-size: 12.5px; line-height: 1.6; max-width: 720px; letter-spacing: 0.02em; }

.live-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 0 0 10px; 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; }

.live-filters-comp { padding-bottom: 14px; }
.live-select-label { font-family: "Oswald"; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: var(--dim); }
.live-select { font-family: "Oswald"; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; padding: 9px 34px 9px 16px; border-radius: 100px; border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--silver); backdrop-filter: blur(8px); max-width: min(420px, 78vw); appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238a8a93'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
  transition: color 0.2s ease, border-color 0.2s ease; }
.live-select:hover, .live-select:focus { color: var(--glow); border-color: rgba(233,231,224,0.34); outline: none; }
.live-select option { background: #0d0f14; color: var(--silver); }

.dp-card { cursor: pointer; }

.matches-empty { flex: 0 0 100%; text-align: center; color: var(--dim); padding: 46px 0; font-family: "Oswald"; letter-spacing: 0.1em; text-transform: uppercase; font-size: 14px; }
.matches-skeleton { display: flex; gap: 14px; }
.skel-card { flex: 0 0 auto; width: clamp(240px, 23vw, 330px); aspect-ratio: 16 / 9; border-radius: 8px; 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-vs {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 8%, 44px);
  padding: 15% 8% 32%;
  background:
    radial-gradient(52% 70% at 24% 52%, rgba(233,231,224,0.11), transparent 72%),
    radial-gradient(52% 70% at 76% 52%, rgba(233,231,224,0.11), transparent 72%),
    linear-gradient(152deg, var(--ash) 0%, var(--ink-2) 58%, var(--ink) 100%);
}
.match-vs-ecu { display: block; width: clamp(38px, 23%, 62px); }
.match-vs-ecu img {
  width: 100%; height: auto; object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.65));
  transition: transform 0.4s var(--ease);
}
.match-card:hover .match-vs-ecu img { transform: translateY(-4px) scale(1.05); }
.match-vs-seul { background: radial-gradient(58% 76% at 50% 50%, rgba(233,231,224,0.12), transparent 72%), linear-gradient(152deg, var(--ash) 0%, var(--ink-2) 58%, var(--ink) 100%); }
.match-vs-seul .match-vs-ecu { width: clamp(46px, 30%, 80px); }
.match-vs-trait { width: 1px; height: 52%; background: linear-gradient(180deg, transparent, var(--glass-border), transparent); }
.match-vs-nu { background: linear-gradient(152deg, var(--ash) 0%, var(--ink) 100%); }
.match-vs-sport {
  font-family: "Oswald"; font-size: 12px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--dim);
}

.tv-channel-poster { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(7,8,10,0.92)); }
.tv-channel-logo { width: min(60%, 150px); height: 64px; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45)); }
.tv-channel-fallback { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; font-family: "Oswald", sans-serif; font-size: 26px; letter-spacing: 0.04em; color: var(--glow); background: rgba(178, 31, 45, 0.28); border: 1px solid rgba(178, 31, 45, 0.45); }
.tv-channel-fallback[hidden] { display: none; }

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

.live-hero-badges {
  position: absolute; inset: 0 0 0 auto; width: min(52%, 620px);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(18px, 4vw, 48px); pointer-events: none;
  background:
    radial-gradient(46% 58% at 32% 50%, rgba(233,231,224,0.10), transparent 72%),
    radial-gradient(46% 58% at 68% 50%, rgba(233,231,224,0.10), transparent 72%);
}
.live-hero-ecu { display: block; width: clamp(64px, 10vw, 124px); }
.live-hero-ecu img { width: 100%; height: auto; filter: drop-shadow(0 16px 28px rgba(0,0,0,0.6)); }
.live-hero-trait { width: 1px; height: 38%; background: linear-gradient(180deg, transparent, var(--glass-border), transparent); }
@media (max-width: 720px) {
  .live-hero-badges { inset: 16px 4% auto auto; width: auto; gap: 12px; opacity: 0.55; background: none; }
  .live-hero-ecu { width: 54px; }
  .live-hero-trait { display: none; }
}

.live-modal-alerte { margin: 0 24px 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,138,0,0.35); background: rgba(255,138,0,0.08); color: var(--text); font-size: 12px; line-height: 1.5; }
.live-modal-alerte[hidden] { display: none; }

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

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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