:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --surface: #17171b;
  --surface-2: #222228;
  --line: rgba(255, 255, 255, .08);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #e50914;
  --gold: #facc15;
  --nav-h: 84px;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
svg { display: block; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* =============== Navigation =============== */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; padding: 14px var(--gutter) 0; pointer-events: none; transition: padding .35s var(--ease); }
.nav.scrolled { padding-top: 8px; }
.nav-inner {
  pointer-events: auto;
  max-width: 1840px; margin: 0 auto; height: calc(var(--nav-h) - 14px);
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  padding: 0 14px 0 26px;
  background: linear-gradient(180deg, rgba(12, 12, 15, .72), rgba(12, 12, 15, .5));
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: background .4s;
}
.nav.scrolled .nav-inner { background: rgba(12, 12, 15, .92); }
.logo {
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.45rem; line-height: 1;
  letter-spacing: -.02em; color: #fff; background: none; border: 0; padding: 0;
  flex: 0 0 auto;
}
.logo { display: inline-flex; align-items: center; }
.logo img { width: 34px; height: 34px; margin-right: 10px; border-radius: 9px; box-shadow: 0 6px 20px rgba(229, 9, 20, .35); transition: transform .3s var(--ease); }
.logo:hover img { transform: rotate(-6deg) scale(1.05); }
.logo span { color: rgba(255, 255, 255, .45); font-weight: 700; }

/* Groupe de liens dans une pilule */
.nav-links {
  display: flex; align-items: center; gap: 2px; padding: 5px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .06); border-radius: 999px;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; color: rgba(255, 255, 255, .62); white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-link svg { width: 17px; height: 17px; }
.nav-link:hover { color: #fff; }
.nav-link.active { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.nav-sep { width: 1px; height: 20px; margin: 0 6px; background: rgba(255, 255, 255, .14); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.search {
  display: flex; align-items: center; height: 46px; width: 46px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .045); overflow: hidden;
  transition: width .35s var(--ease), background .3s, border-color .3s;
}
.search:focus-within { background: rgba(0, 0, 0, .55); border-color: rgba(255, 255, 255, .3); }
.search.open { width: min(300px, 60vw); }
.search button { flex: 0 0 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; color: rgba(255, 255, 255, .7); }
.search svg { width: 19px; height: 19px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: .95rem; padding-right: 16px; }
.search input::placeholder { color: rgba(255, 255, 255, .4); }
@media (min-width: 1101px) { .search { width: clamp(200px, 17vw, 290px); } .search.open { width: clamp(240px, 20vw, 320px); } }

/* Réseaux (Telegram, Discord) */
.social {
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px;
}
.social-link {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(255, 255, 255, .7); transition: color .2s, background .2s, transform .2s;
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { background: rgba(255, 255, 255, .08); transform: translateY(-1px); }
.social-link--telegram:hover { color: #2aabee; }
.social-link--discord:hover { color: #5865f2; }
.search input::-webkit-search-cancel-button { filter: invert(1); }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .35);
  display: grid; place-items: center; color: #fff;
  backdrop-filter: blur(6px); transition: border-color .2s, background .2s, transform .2s;
}
.icon-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.lg { width: 54px; height: 54px; }
.icon-btn.lg svg { width: 24px; height: 24px; }

/* =============== Boutons =============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 64px; padding: 0 40px; border-radius: 999px; border: 0;
  font-weight: 800; font-size: 1.12rem; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn:active { transform: scale(.97); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #e4e4e7; transform: scale(1.03); }
.btn-ghost {
  background: rgba(0, 0, 0, .3); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: scale(1.03); }

/* =============== Hero (carrousel) =============== */
.hero { position: relative; height: min(94vh, 1000px); min-height: 580px; overflow: hidden; background: var(--bg); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.active { opacity: 1; visibility: visible; }
.slide-bg {
  position: absolute; inset: 0;
  background: var(--bd) center 20% / cover no-repeat;
  transform: scale(1.1); transition: transform 10s linear;
}
.slide.active .slide-bg { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .7) 28%, rgba(0, 0, 0, .15) 58%, transparent 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 12, .7) 14%, transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 20%);
}
.slide-content {
  position: absolute; z-index: 1; left: var(--gutter); bottom: 24%;
  width: min(660px, calc(100% - 2 * var(--gutter)));
}
.slide.active .slide-content > * { animation: rise .9s var(--ease) both; }
.slide.active .slide-content > :nth-child(2) { animation-delay: .08s; }
.slide.active .slide-content > :nth-child(3) { animation-delay: .16s; }
.slide.active .slide-content > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.eyebrow {
  margin: 0 0 22px; font-size: .86rem; font-weight: 800;
  letter-spacing: .26em; text-transform: uppercase; color: #fff;
}
.eyebrow span { color: #d4d4d8; font-weight: 700; }
.eyebrow b { color: var(--accent); }
.logo-light { filter: brightness(0) invert(1) drop-shadow(0 4px 18px rgba(0, 0, 0, .8)) !important; }
.hero-logo {
  max-width: min(480px, 85%); max-height: 170px; object-fit: contain; object-position: left bottom;
  margin-bottom: 26px; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .7));
}
.hero-title { font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 0 0 22px; }
.hero-overview {
  margin: 0 0 36px; font-size: clamp(1rem, 1.25vw, 1.28rem); line-height: 1.6; color: #e4e4e7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-dots {
  position: absolute; z-index: 3; left: 50%; bottom: 12%; transform: translateX(-50%);
  display: flex; gap: 12px;
}
.dot {
  position: relative; width: 44px; height: 22px; padding: 0; border: 0; background: none;
  transition: width .5s var(--ease);
}
.dot::before, .dot::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px;
}
.dot::before { background: rgba(255, 255, 255, .3); }
.dot:hover::before { background: rgba(255, 255, 255, .55); }
.dot.active { width: 110px; }
.dot.active::after { background: #fff; transform-origin: left; animation: fill 8s linear forwards; }
.hero.paused .dot.active::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =============== Rangées =============== */
.rows { position: relative; z-index: 2; margin-top: -100px; padding-bottom: 80px; }
.row { margin-bottom: 40px; }
.row h2 {
  margin: 0 0 10px; padding: 0 var(--gutter);
  font-size: clamp(1.15rem, 1.6vw, 1.55rem); font-weight: 800; letter-spacing: -.01em;
}
.row-wrap { position: relative; }
.row-track {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter);
  padding: 12px var(--gutter) 16px; scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { flex: 0 0 auto; scroll-snap-align: start; }
.row .card { width: clamp(132px, 13vw, 214px); }
.row--wide .card { width: clamp(250px, 24vw, 420px); }
.row-arrow {
  position: absolute; top: 12px; bottom: 16px; z-index: 4; width: var(--gutter); min-width: 48px;
  border: 0; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .25s;
}
.row-arrow.prev { left: 0; background: linear-gradient(90deg, rgba(10, 10, 12, .95), transparent); }
.row-arrow.next { right: 0; background: linear-gradient(270deg, rgba(10, 10, 12, .95), transparent); }
.row-arrow svg { width: 34px; height: 34px; transition: transform .2s; }
.row-arrow:hover svg { transform: scale(1.25); }
.row-wrap:hover .row-arrow { opacity: 1; }
@media (hover: none) { .row-arrow { display: none; } }

/* =============== Cartes =============== */
.card { position: relative; background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.card:focus-visible { outline: none; }
.card-media {
  position: relative; z-index: 1; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden;
  background: var(--surface); box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-media, .card:focus-visible .card-media {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .65), 0 0 0 2px rgba(255, 255, 255, .9);
}
.card-hover {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.card:hover .card-hover, .card:focus-visible .card-hover { opacity: 1; }
.card-play {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #000;
  display: grid; place-items: center; transform: scale(.8); transition: transform .3s var(--ease);
}
.card:hover .card-play { transform: scale(1); }
.card-play svg { width: 18px; height: 18px; margin-left: 2px; }
.card-info { padding: 10px 2px 0; }
.card-title { margin: 0 0 5px; font-size: .93rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.tag {
  font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; padding: 1px 6px;
}
.rate { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); }
.rate svg { width: 12px; height: 12px; }
.noimg {
  width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 14px;
  font-weight: 800; font-size: 1.05rem; line-height: 1.2;
}

/* Carte paysage */
.card--wide .card-media { aspect-ratio: 16 / 9; }
.card--wide .wide-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .92), transparent);
}
.wide-logo { max-height: 54px; max-width: 70%; object-fit: contain; object-position: left bottom; }
.wide-title { margin: 0; font-size: 1.15rem; font-weight: 800; }
.card--wide .card-hover { align-items: center; justify-content: center; background: rgba(0, 0, 0, .25); }
.wide-sub { margin: 4px 0 0; font-size: .82rem; font-weight: 700; color: #d4d4d8; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.progress span { display: block; height: 100%; background: var(--accent); }
#row-resume .wide-info { padding-bottom: 18px; }

/* Top 10 */
.row .card--top10 { width: clamp(200px, 19vw, 300px); display: flex; align-items: flex-end; }
.rank {
  flex: 0 0 auto; margin-right: -22px; font-family: "Bebas Neue", sans-serif;
  font-size: clamp(7.5rem, 12vw, 12.5rem); line-height: .72; letter-spacing: -.05em;
  color: var(--bg); -webkit-text-stroke: 3px rgba(255, 255, 255, .5);
  transition: -webkit-text-stroke-color .3s;
}
.card--top10:hover .rank { -webkit-text-stroke-color: #fff; }
.card--top10 .card-media { flex: 1; }

/* Squelettes de chargement */
.skeleton {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 300% 100%; animation: shimmer 1.4s linear infinite;
}
.sk-card { width: clamp(132px, 13vw, 214px); aspect-ratio: 2 / 3; border-radius: 12px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* =============== Pages catalogue =============== */
.browse { max-width: 1840px; margin: 0 auto; padding: calc(var(--nav-h) + 52px) var(--gutter) 60px; }
.browse-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 32px; margin-bottom: 34px; }
.browse-head h1 { margin: 0; font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.count { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.filters { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.select {
  appearance: none; -webkit-appearance: none; height: 46px; padding: 0 44px 0 20px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); font-weight: 700; font-size: .92rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 16px;
  cursor: pointer; transition: border-color .2s;
}
.select:hover { border-color: rgba(255, 255, 255, .4); }
.select:disabled { opacity: .4; cursor: default; }
.select option { background: var(--surface); }
.grid { display: grid; gap: 30px 18px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.empty { text-align: center; color: var(--muted); padding: 80px 20px; font-size: 1.05rem; }
.sentinel { min-height: 90px; display: grid; place-items: center; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.notice {
  position: relative; z-index: 5; margin: calc(var(--nav-h) + 20px) var(--gutter) 0; padding: 14px 18px;
  background: var(--surface); border-left: 3px solid var(--accent); border-radius: 8px; color: var(--muted);
}

/* =============== Fiche détail =============== */
.modal {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  display: flex; justify-content: center; align-items: flex-start; padding: 44px 16px;
}
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .3s;
}
.modal-card {
  position: relative; width: min(1100px, 100%); background: var(--bg-2);
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .75); animation: pop .45s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.close { position: absolute; top: 18px; right: 18px; z-index: 10; width: 44px; height: 44px; background: rgba(0, 0, 0, .6); }
/* Pendant la lecture, le bouton fermer sort du lecteur pour ne pas masquer ses contrôles */
.modal-card:has(.m-media.playing) .close { position: fixed; top: 10px; right: 10px; z-index: 70; }
@media (max-width: 600px) {
  .modal-card:has(.m-media.playing) .m-media { margin-top: 64px; }
}

.m-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.m-backdrop { position: absolute; inset: 0; background: center 20% / cover no-repeat; }
.m-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg-2) 0%, rgba(17, 17, 20, .55) 26%, transparent 55%),
    linear-gradient(90deg, rgba(0, 0, 0, .7) 0%, transparent 55%);
}
.m-media-content { position: absolute; z-index: 2; left: 48px; right: 48px; bottom: 38px; }
.m-logo {
  max-width: min(400px, 60%); max-height: 150px; object-fit: contain; object-position: left bottom;
  margin-bottom: 26px; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .7));
}
.m-title { margin: 0 0 22px; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.m-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.m-actions .btn { height: 54px; padding: 0 30px; font-size: 1.02rem; }
#mList.on { background: #fff; color: #000; border-color: #fff; }
.m-player { position: absolute; inset: 0; z-index: 5; background: #000; }
.m-player { overflow: hidden; user-select: none; -webkit-user-select: none; }
.m-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s ease; }
.m-player iframe.ready { opacity: 1; }
.m-player:fullscreen, .m-player:-webkit-full-screen { position: fixed; inset: 0; width: 100%; height: 100%; }
/* Bouton plein écran du site */
.player-fs {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .5); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: .55; transition: opacity .2s, background .2s, transform .2s;
}
.player-fs svg { width: 20px; height: 20px; }
.player-fs:hover, .player-fs:focus-visible { opacity: 1; background: var(--accent); transform: scale(1.06); }
/* Écran de chargement du lecteur */
.player-loading {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 24px; color: #fff;
  background: radial-gradient(ellipse at center, rgba(10, 10, 12, .55), rgba(10, 10, 12, .92)), var(--bd, none) center / cover no-repeat, #000;
}
.player-loading .spinner { width: 46px; height: 46px; border-width: 3px; }
.player-loading strong { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: clamp(26px, 4vw, 44px); letter-spacing: .03em; line-height: 1; text-shadow: 0 4px 20px rgba(0,0,0,.8); }
.player-loading small { color: rgba(255, 255, 255, .7); font-weight: 600; letter-spacing: .04em; }
.m-media.playing .m-media-content, .m-media.playing .m-shade { display: none; }
.player-msg { height: 100%; margin: 0; padding: 24px; display: grid; place-items: center; text-align: center; color: var(--muted); }

.m-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 44px; padding: 10px 48px 40px; }
.m-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; font-weight: 700; color: #e4e4e7; }
.m-meta .score { color: #4ade80; }
.pill { border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; padding: 2px 8px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.m-overview { margin: 0; font-size: 1.04rem; line-height: 1.75; color: #e4e4e7; }
.m-side p { margin: 0 0 14px; font-size: .92rem; line-height: 1.55; color: #e4e4e7; }
.m-side span { color: var(--dim); }

.m-section { padding: 0 48px 44px; }
.m-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.m-section h3 { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.episodes { list-style: none; margin: 0; padding: 0; }
.episode {
  width: 100%; display: grid; grid-template-columns: 44px 190px minmax(0, 1fr); gap: 22px; align-items: center;
  padding: 18px; background: none; border: 0; border-radius: 14px; text-align: left; transition: background .2s;
}
.episodes li + li { border-top: 1px solid var(--line); }
.episode:hover { background: var(--surface); }
.episode.active { background: var(--surface-2); }
.ep-num { font-size: 1.6rem; font-weight: 800; color: var(--dim); text-align: center; }
.episode.active .ep-num { color: var(--accent); }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .25s;
}
.episode:hover .ep-play, .episode.active .ep-play { opacity: 1; }
.ep-play svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid #fff; }
.ep-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ep-top h4 { margin: 0; font-size: 1rem; font-weight: 700; }
.ep-top span { flex: 0 0 auto; color: var(--muted); font-size: .85rem; font-weight: 600; }
.ep-text p {
  margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sk-ep { height: 110px; border-radius: 14px; margin-bottom: 10px; }
.similar-grid { display: grid; gap: 24px 16px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* Notification */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; pointer-events: none;
  transform: translate(-50%, 20px); opacity: 0;
  background: #fff; color: #000; font-weight: 800; padding: 13px 24px; border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5); transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =============== Responsive =============== */
@media (max-width: 1100px) {
  .nav-link { padding: 10px 14px; font-size: .95rem; }
}
@media (max-width: 900px) {
  :root { --nav-h: 124px; }
  .nav { padding: 10px 12px 0; }
  .nav.scrolled { padding-top: 6px; }
  .nav-inner { flex-wrap: wrap; height: auto; min-height: calc(var(--nav-h) - 10px); gap: 10px 12px; padding: 10px 10px 10px 18px; border-radius: 20px; }
  .logo { font-size: 1.3rem; }
  .logo img { width: 30px; height: 30px; margin-right: 8px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links { padding: 4px; gap: 0; }
  .nav-link { flex: 1 1 auto; justify-content: center; gap: 6px; padding: 8px 10px; font-size: .9rem; }
  .nav-link svg { width: 15px; height: 15px; }
  .nav-sep { display: none; }
  .search, .search button { height: 42px; }
  .search { width: 42px; }
  .search.open { width: min(220px, 52vw); }
  .search button { flex-basis: 40px; }
  .social { padding: 2px; }
  .social-link { width: 36px; height: 36px; }
  .hero { height: min(86vh, 760px); min-height: 540px; }
  .slide-content { bottom: 17%; }
  .slide::after {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 12, .85) 30%, rgba(0, 0, 0, .25) 65%, rgba(0, 0, 0, .5) 100%);
  }
  .hero-dots { bottom: 8%; }
  .btn { height: 54px; padding: 0 28px; font-size: 1rem; }
  .m-body { grid-template-columns: 1fr; gap: 18px; padding: 6px 22px 30px; }
  .m-media-content { left: 22px; right: 22px; bottom: 20px; }
  .m-section { padding: 0 22px 34px; }
  .episode { grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 12px 6px; }
  .ep-num { display: none; }
}
@media (max-width: 600px) {
  .slide-bg { background-position: 65% 20%; }
  .eyebrow { font-size: .72rem; letter-spacing: .18em; margin-bottom: 14px; }
  .hero-logo { max-height: 110px; margin-bottom: 18px; }
  .hero-overview { -webkit-line-clamp: 2; margin-bottom: 24px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1; padding: 0 18px; }
  .dot { width: 24px; }
  .dot.active { width: 56px; }
  .rows { margin-top: -50px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 22px 12px; }
  .filters { margin-left: 0; width: 100%; }
  .filters .select { flex: 1 1 140px; }
  .modal { padding: 0; }
  .modal-card { border-radius: 0; min-height: 100%; }
  .m-media { aspect-ratio: auto; }
  .m-backdrop { position: relative; aspect-ratio: 16 / 10; }
  .m-shade { background: linear-gradient(0deg, var(--bg-2) 0%, rgba(17, 17, 20, .6) 45%, transparent 70%); }
  .m-media-content { position: relative; left: auto; right: auto; bottom: auto; margin-top: -56px; padding: 0 16px 8px; }
  .m-media.playing { aspect-ratio: 16 / 9; }
  .m-actions { gap: 10px; }
  .m-actions .btn { flex: 1 1 auto; padding: 0 18px; }
  .m-actions #mPlay { flex-basis: 100%; }
  .m-actions .icon-btn.lg { flex: 0 0 auto; }
  .m-logo { max-height: 90px; margin-bottom: 16px; }
  .m-actions .btn { height: 48px; padding: 0 20px; font-size: .95rem; }
  .icon-btn.lg { width: 48px; height: 48px; }
  .episode { grid-template-columns: 112px minmax(0, 1fr); }
  .ep-text p { -webkit-line-clamp: 2; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .dot.active::after { animation-duration: 8s !important; } /* garde le minuteur du carrousel */
}
