:root {
  --bg: #0e0d12;
  --panel: #18161fcc;
  --panel-solid: #18161f;
  --panel-2: #221f2b;
  --line: #2e2a3a;
  --text: #f3f0f7;
  --muted: #9b95a8;
  --accent: #ffb020;
  --accent-2: #ff6a3d;
  --accent-ink: #1a1200;
  --pink: #ff5fa2;
  --red: #ff5a5f;
  --green: #3ddc97;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, sans-serif;
  overflow-x: clip;
}

a { color: var(--accent); }
button { font: inherit; }
[hidden] { display: none !important; }

/* ---------- Fond animé ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-blobs span {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .22;
  animation: drift 26s ease-in-out infinite alternate;
}
.bg-blobs span:nth-child(1) { background: var(--accent); top: -30vmax; left: -15vmax; }
.bg-blobs span:nth-child(2) { background: var(--accent-2); top: 20vmax; right: -30vmax; animation-delay: -8s; opacity: .14; }
.bg-blobs span:nth-child(3) { background: #7b5cff; bottom: -40vmax; left: 10vmax; animation-delay: -16s; opacity: .12; }

@keyframes drift {
  to { transform: translate(8vmax, 6vmax) scale(1.15); }
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.list-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, transform .15s var(--ease);
}
.list-btn:hover { border-color: var(--pink); transform: translateY(-1px); }
.list-btn > span:first-child { color: var(--pink); }
.count {
  min-width: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}
.count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 16px 34px;
  text-align: center;
  isolation: isolate;
}

.marquee {
  position: absolute;
  inset: 0 -20vw;
  z-index: -1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}
.marquee.ready { opacity: .18; }
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: scroll 70s linear infinite;
}
.marquee-track img {
  height: 85%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  transform: rotate(-4deg);
}
@keyframes scroll { to { transform: translateX(-50%); } }

h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 6.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.sub { color: var(--muted); margin: 0; font-size: 17px; }

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ---------- Tendances ---------- */
.trending-wrap { margin-bottom: 18px; }

.row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 18px;
  margin: 0 0 12px;
}
.row-hint { color: var(--muted); font-size: 13px; font-weight: 400; }

.trending {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.rail { position: relative; }

.rail-btn {
  position: absolute;
  top: calc(50% - 14px);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #18161fe6;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
  box-shadow: 0 8px 24px #000a;
  transform: translateY(-50%);
  transition: transform .15s var(--ease), border-color .2s, background .2s, opacity .2s;
}
.rail-btn:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.rail-btn:active { transform: translateY(-50%) scale(.92); }
.rail-btn.prev { left: -14px; }
.rail-btn.next { right: -14px; }

.trend {
  position: relative;
  flex: none;
  width: 128px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  animation: rise .5s var(--ease) both;
}
.trend img,
.trend .noimg {
  display: block;
  width: 128px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--panel-2);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.trend:hover img,
.trend:focus-visible img {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px #000a, 0 0 0 2px var(--accent);
}
.trend .plus {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  opacity: 0;
  transform: scale(.6);
  transition: .2s var(--ease);
}
.trend:hover .plus,
.trend:focus-visible .plus { opacity: 1; transform: none; }
.trend .t {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trend.added img { opacity: .45; }
.trend.added .plus { opacity: 1; transform: none; background: var(--green); }

.poster-skel {
  flex: none;
  width: 128px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}

/* ---------- Cartes étapes ---------- */
.card {
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  transition: border-color .3s;
}
.card:focus-within { border-color: #ffb02066; }

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.card-head h2 { margin: 0; }

.card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 14px;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 800;
}

.label { color: var(--muted); font-size: 14px; margin: 18px 0 8px; }

.owner-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* Recherche */
.search { position: relative; }

input[type="search"] {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px #ffb02022;
}

.tip { color: var(--muted); font-size: 13px; margin: 8px 2px 0; }

.suggestions {
  position: absolute;
  z-index: 15;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 50px #000b;
  max-height: 380px;
  overflow-y: auto;
  animation: rise .2s var(--ease);
}
.suggestions li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}
.suggestions li:hover,
.suggestions li.active { background: var(--line); }
.suggestions img,
.suggestions .noimg {
  width: 36px;
  height: 54px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--line);
  flex: none;
}
.meta { color: var(--muted); font-size: 13px; }

/* Exemples */
.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.examples button {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px dashed var(--line);
  background: none;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.examples button:hover { border-color: var(--accent); color: var(--accent); }

/* Listes "déjà vu" */
.lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
.lists.duo { grid-template-columns: 1fr 1fr; }

.list-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 6px;
}
.list-label.b { color: var(--pink); }

.watched {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 8px;
}
.watched li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 5px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid #ffb02055;
  font-size: 14px;
  animation: pop .35s var(--ease);
}
.watched[data-owner="b"] li { border-color: #ff5fa255; }
.watched img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.watched button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.watched button:hover { color: var(--red); }

.hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* Plateformes */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.platforms label {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  transition: transform .15s var(--ease), background .2s, border-color .2s;
}
.platforms label:hover { transform: translateY(-1px); border-color: var(--muted); }
.platforms input { position: absolute; opacity: 0; pointer-events: none; }
.platforms label:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.platforms label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.toggle input { accent-color: var(--accent); width: 18px; height: 18px; }

/* Choix segmentés */
.segmented {
  display: inline-flex;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.segmented button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.segmented.small button { padding: 6px 14px; font-size: 13px; }
.segmented button.on {
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
#owner button.on[data-v="b"],
#mode button.on[data-v="duo"] { background: var(--pink); color: #fff; }

/* Humeurs */
.moods { display: flex; flex-wrap: wrap; gap: 8px; }
.moods button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s var(--ease), border-color .2s, background .2s;
}
.moods button:hover { transform: translateY(-2px); }
.moods button.on {
  border-color: var(--accent);
  background: #ffb0201f;
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.moods .emo { font-size: 18px; transition: transform .3s var(--ease); }
.moods button.on .emo { transform: scale(1.25) rotate(-8deg); }

/* Filtres */
.more { margin-top: 16px; }
.more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
  user-select: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "＋ "; color: var(--accent); }
.more[open] summary::before { content: "－ "; }
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 12px;
  animation: rise .3s var(--ease);
}
.filters label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.filters select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

/* Boutons principaux */
.actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 6px;
}

.go,
.surprise {
  position: relative;
  overflow: hidden;
  padding: 18px 22px;
  border: 0;
  border-radius: var(--radius);
  font: 700 18px "Bricolage Grotesque", sans-serif;
  cursor: pointer;
  transition: transform .15s var(--ease), opacity .2s, box-shadow .2s;
}
.go {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px #ff8a2a40;
}
.go::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, #fff6 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen 3.5s ease-in-out infinite;
}
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.surprise {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.go:hover:not(:disabled),
.surprise:hover:not(:disabled) { transform: translateY(-2px); }
.go:active:not(:disabled),
.surprise:active:not(:disabled) { transform: scale(.98); }
.go:disabled,
.surprise:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.go:disabled::after { display: none; }

.status {
  text-align: center;
  color: var(--muted);
  min-height: 24px;
  margin: 18px 0;
}

/* ---------- Résultats ---------- */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 14px;
}

.reco {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-solid);
  overflow: hidden;
  isolation: isolate;
  animation: rise .5s var(--ease) both;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.reco:hover {
  transform: translateY(-3px);
  border-color: #ffb02066;
  box-shadow: 0 18px 40px #0009;
}
.reco .backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: .16;
  filter: blur(2px) saturate(1.2);
  transition: opacity .3s;
}
.reco:hover .backdrop { opacity: .26; }
.reco .backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--panel-solid) 15%, #18161fcc 60%, #18161f88);
}
.reco.leaving { animation: leave .35s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(40px) scale(.96); } }

.reco .poster img,
.reco .poster .noimg {
  width: 112px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--panel-2);
  box-shadow: 0 8px 20px #0008;
}

.rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--accent);
  color: var(--accent-ink);
}

.reco h3 {
  margin: 0 0 2px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.provider { color: var(--accent); border-color: #ffb02055; }
.badge.provider img { width: 16px; height: 16px; border-radius: 4px; }
.badge.match {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), #b14dff);
  font-weight: 600;
}

.because { font-size: 14px; margin: 0 0 8px; }
.because strong { color: var(--accent); font-weight: 600; }
.because .b { color: var(--pink); }

.overview {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reco-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, transform .15s var(--ease), background .2s;
}
.act:hover { border-color: var(--muted); transform: translateY(-1px); }
.act.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.act.fav.on { color: var(--pink); border-color: var(--pink); }
.act.fav.on .heart { animation: bump .45s var(--ease); }
.act.ghost { background: none; color: var(--muted); }

.more-btn {
  display: block;
  margin: 18px auto 0;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, transform .15s var(--ease);
}
.more-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

/* Squelettes de chargement */
.skel,
.poster-skel {
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--line) 50%, var(--panel-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.reco.loading { grid-template-columns: 112px 1fr; animation: none; }
.reco.loading .skel-poster { width: 112px; aspect-ratio: 2 / 3; border-radius: 12px; }
.reco.loading .skel-line { height: 14px; border-radius: 6px; margin-bottom: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Fenêtre ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop,
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: #000b;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade .25s ease;
}
.modal-box {
  position: relative;
  width: min(820px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  padding: 18px;
  animation: zoom .3s var(--ease);
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(.94) translateY(10px); } }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Tirage au sort */
.spot { text-align: center; padding: 18px 4px 6px; }
.spot-kicker { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.slot {
  width: 200px;
  aspect-ratio: 2 / 3;
  margin: 0 auto 16px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel-2);
  box-shadow: 0 20px 50px #000a, 0 0 0 3px var(--accent);
}
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot.spinning img { animation: flick .09s steps(1) infinite; filter: blur(1px); }
.slot.landed { animation: land .5s var(--ease); }
@keyframes flick { 50% { transform: translateY(-3%); } }
@keyframes land { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } }
.spot h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.spot .badges { justify-content: center; }
.spot .overview { -webkit-line-clamp: 5; max-width: 560px; margin: 0 auto 14px; }
.spot .reco-actions { justify-content: center; }

/* ---------- Tiroir ---------- */
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  padding: 18px;
  overflow-y: auto;
  background: var(--panel-solid);
  border-left: 1px solid var(--line);
  animation: slide .35s var(--ease);
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { position: relative; margin-bottom: 12px; }
.drawer-head h2 { margin: 6px 0 0; font-size: 20px; }
.drawer-head .modal-close { top: 0; right: 0; }
.drawer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.drawer-list li {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: var(--panel-2);
  animation: rise .3s var(--ease) both;
}
.drawer-list img,
.drawer-list .noimg { width: 54px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--line); }
.drawer-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.drawer-list a:hover { color: var(--accent); }
.drawer-list button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}
.drawer-list button:hover { color: var(--red); }
.drawer-empty { color: var(--muted); text-align: center; padding: 30px 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 40px #000a;
  transform: translate(-50%, 200%);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s var(--ease), opacity .25s, visibility .35s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Pied de page ---------- */
footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  border-top: 1px solid var(--line);
}
footer p { margin: 4px 0; }
.tmdb { display: inline-block; margin-bottom: 6px; color: var(--muted); font-weight: 700; text-decoration: none; }
.tmdb img { display: block; height: 14px; }

/* ---------- Animations communes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .lists.duo { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr; }
  .reco { grid-template-columns: 84px 1fr; gap: 12px; }
  .reco .poster img, .reco .poster .noimg { width: 84px; }
  .reco.loading .skel-poster { width: 84px; }
  .reco h3 { font-size: 17px; }
  .trend, .trend img, .trend .noimg, .poster-skel { width: 104px; }
  .slot { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Pages "Films comme…" ---------- */
a.logo { color: var(--text); text-decoration: none; }
a.list-btn { text-decoration: none; }

.seo {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}
.crumbs { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

.seo-hero {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  animation: rise .5s var(--ease) both;
}
.seo-hero h1 { text-align: left; font-size: clamp(28px, 5vw, 46px); }
.seo-hero .sub { font-size: 16px; }
.seo-poster {
  width: 150px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 40px #000a, 0 0 0 2px #ffb02055;
  transform: rotate(-3deg);
}
.seo-where { margin: 10px 0 0; font-size: 14px; color: var(--accent); }

.reco-title {
  margin: 0 0 2px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
  line-height: 1.15;
}
.reco-title a { color: var(--text); text-decoration: none; }
.reco-title a:hover { color: var(--accent); }
.reco-title .num { color: var(--accent); }

.seo-cta {
  margin-top: 28px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid #ffb02055;
  background: linear-gradient(135deg, #ffb02018, #ff6a3d14);
  text-align: center;
}
.seo-cta h2 { margin: 0 0 8px; font-family: "Bricolage Grotesque", sans-serif; font-size: 24px; }
.seo-cta p { color: var(--muted); margin: 0 auto 18px; max-width: 560px; }
.seo-cta .go { display: inline-block; width: auto; text-decoration: none; }

/* Liens "comme…" sur la page d'accueil */
.popular { margin-top: 34px; }
.popular-links { display: flex; flex-wrap: wrap; gap: 8px; }
.popular-links a {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.popular-links a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 600px) {
  .seo-hero { grid-template-columns: 1fr; text-align: center; }
  .seo-hero h1 { text-align: center; }
  .seo-poster { width: 120px; margin: 0 auto; }
}
