:root {
  --bg: #07070a;
  --panel: rgba(255,255,255,.04);
  --line: rgba(255,255,255,.09);
  --text: #f3f3f6;
  --muted: #9a9aa8;
  --teal: #2de2d0;
  --violet: #8b5cf6;
  --pink: #ff3d8b;
  --live: #ff2d55;
  --grad: linear-gradient(100deg, var(--teal), var(--violet) 55%, var(--pink));
  --radius: 10px;
  --max: 1280px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 "Montserrat", system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* Fond : halos flous façon club */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at -10% 30%, rgba(45,226,208,.16), transparent 60%),
    radial-gradient(55vw 55vw at 110% 15%, rgba(255,61,139,.14), transparent 60%),
    radial-gradient(50vw 40vw at 50% 110%, rgba(139,92,246,.16), transparent 60%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,7,10,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo {
  font: 400 34px/1 "Anton", Impact, sans-serif; letter-spacing: .02em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: skew(-8deg) rotate(-3deg);
  filter: drop-shadow(0 0 14px rgba(139,92,246,.45));
  white-space: nowrap; display: inline-block; padding: 4px 2px;
}
.logo small { display: block; font: 700 9px/1 "Montserrat", sans-serif; letter-spacing: .5em; margin-bottom: 2px; -webkit-text-fill-color: var(--teal); }
nav.main { display: flex; align-items: center; gap: 34px; }
nav.main a {
  font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: #dcdce4;
  position: relative; padding: 6px 0; display: inline-flex; align-items: center; gap: 8px;
}
nav.main a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
nav.main a:hover::after, nav.main a.active::after { transform: scaleX(1); }
nav.main a.active { color: #fff; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,45,85,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,45,85,0); } 100% { box-shadow: 0 0 0 0 rgba(255,45,85,0); } }
.twitch-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  background: #9146ff; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.twitch-btn svg { width: 16px; height: 16px; }
.twitch-btn:hover { filter: brightness(1.12); }

/* ---------- Titres de section ---------- */
.section { padding-block: 64px 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-title {
  font: 400 clamp(38px, 6vw, 64px)/.95 "Anton", Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; margin: 0;
}
.section-title .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-weight: 700; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer; font: 700 13px/1 "Montserrat", sans-serif; letter-spacing: .2em; text-transform: uppercase;
  background: var(--grad); color: #0a0a0f; transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(40vw 30vw at 75% 40%, rgba(139,92,246,.35), transparent 70%), radial-gradient(30vw 25vw at 90% 70%, rgba(255,61,139,.25), transparent 70%); background-size: cover; background-position: center; transform: scale(1.04); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, rgba(7,7,10,.55) 45%, rgba(7,7,10,.25)), linear-gradient(90deg, rgba(7,7,10,.85), transparent 65%); }
.hero .wrap { position: relative; padding-bottom: 64px; width: 100%; }
.hero h1 { font: 400 clamp(46px, 9vw, 120px)/.9 "Anton", Impact, sans-serif; text-transform: uppercase; margin: 0 0 14px; max-width: 14ch; text-wrap: balance; }
.hero p.meta { color: #c9c9d3; margin: 0 0 28px; font-size: 15px; letter-spacing: .04em; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.badge-live {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; margin-bottom: 18px;
  background: var(--live); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}
.badge-live .live-dot { background: #fff; }

/* ---------- Live ---------- */
.live-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.live-grid.no-chat { grid-template-columns: 1fr; }
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(139,92,246,.45); }
.frame.ratio { aspect-ratio: 16/9; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chat { min-height: 420px; }

/* ---------- Grille vidéos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 30px 22px; }
.card { display: block; }
.card .thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #15151c; border: 1px solid var(--line); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%); opacity: .8; }
.card .play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.85); transition: .25s;
}
.card .play svg { width: 20px; height: 20px; margin-left: 3px; fill: #fff; }
.card:hover .thumb img { transform: scale(1.05); }
.card:hover .play { opacity: 1; transform: none; }
.card .dur { position: absolute; right: 10px; bottom: 10px; z-index: 2; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 4px; background: rgba(0,0,0,.7); letter-spacing: .05em; }
.card h3 { margin: 14px 0 4px; font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.card .pub { margin: 0; color: var(--muted); font-size: 13px; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

.toolbar { display: flex; gap: 12px; align-items: center; }
.search {
  height: 44px; width: min(320px, 100%); padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-size: 14px; outline: none;
}
.search:focus { border-color: var(--violet); }
.pager { display: flex; justify-content: center; gap: 6px; margin: 40px 0 0; flex-wrap: wrap; }
.pager button {
  min-width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font: 700 14px "Montserrat", sans-serif; cursor: pointer;
}
.pager button[aria-current="page"] { background: var(--grad); color: #0a0a0f; border-color: transparent; }
.pager button:disabled { opacity: .35; cursor: default; }

/* ---------- Page vidéo ---------- */
.watch { padding-top: 32px; }
.player-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 30px 90px -30px rgba(45,226,208,.35); }
.player-wrap video { width: 100%; aspect-ratio: 16/9; display: block; background: #000; }
.watch h1 { font: 400 clamp(30px, 4.5vw, 52px)/1 "Anton", Impact, sans-serif; text-transform: uppercase; margin: 28px 0 8px; }
.watch .pub { color: var(--muted); margin: 0 0 18px; }
.watch .desc { color: #cfcfd8; max-width: 75ch; white-space: pre-line; }
.plyr { --plyr-color-main: var(--violet); --plyr-video-background: #000; font-family: "Montserrat", sans-serif; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .logo { font-size: 24px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .live-grid { grid-template-columns: 1fr; }
  .chat { height: 460px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 64px; }
  .logo { font-size: 26px; }
  nav.main { gap: 18px; }
  nav.main a { font-size: 12px; letter-spacing: .12em; }
  .twitch-btn span { display: none; }
  .twitch-btn { padding: 0 11px; }
  .hero .wrap { padding-bottom: 40px; }
  .section { padding-top: 44px; }
  .grid { grid-template-columns: 1fr; }
}
