/* ==========================================================================
   MEEVO — « Meevo en action » : lecteur + films en motion design
   Le décor des films est dessiné sur un canevas fixe de 860 × 520 px.
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Hero centré                                                                */
/* -------------------------------------------------------------------------- */
.hero-center { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .hero-cta, .hero-center .hero-meta { justify-content: center; }
.hero.has-showcase { padding-bottom: 40px; }

/* -------------------------------------------------------------------------- */
/* Section et lecteur                                                         */
/* -------------------------------------------------------------------------- */
.showcase-sec { padding: 8px 0 72px; }
.showcase-sec .section-head { margin-bottom: 36px; }
#showcase { --c: #5865f2; }
.sh-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }

.sh-list { display: flex; flex-direction: column; gap: 8px; }
.sh-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  outline: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.sh-item:hover { border-color: rgba(255, 255, 255, 0.16); transform: translateX(2px); }
.sh-item:focus-visible { box-shadow: 0 0 0 3px var(--blurple-soft); }
.sh-item.active { border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 9%, var(--bg-1)); transform: none; }
.sh-ico { grid-row: span 1; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); }
.sh-ico img.emoji { width: 28px; height: 28px; }
.sh-txt { min-width: 0; }
.sh-txt b { display: block; color: #fff; font-size: 15px; line-height: 1.3; }
.sh-txt small { color: var(--muted); font-size: 12.5px; }
.sh-ch { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: none; gap: 7px; font-size: 13px; color: var(--faint); }
.sh-item.active .sh-ch { display: grid; margin-top: 10px; }
.sh-ch li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; transition: color 0.3s; }
.sh-ch li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--bg-4); transition: background 0.3s, box-shadow 0.3s; }
.sh-ch li.done { color: var(--muted); }
.sh-ch li.done::before { background: var(--c); }
.sh-ch li.cur { color: #fff; font-weight: 600; }
.sh-ch li.cur::before { background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }
.sh-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.sh-prog span { display: block; height: 100%; width: 0; background: var(--c); }
@keyframes sh-fill { to { width: 100%; } }

.sh-stage {
  position: relative;
  aspect-ratio: 860 / 520;
  border-radius: 22px;
  overflow: hidden;
  background: #121316;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.3);
  isolation: isolate;
}
.sh-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 70% 30%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%), radial-gradient(50% 60% at 15% 90%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%), linear-gradient(160deg, #1a1b1f, #111214); transition: background 0.8s ease; }
.sh-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent); }

.sh-cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.sh-cap-t { display: flex; align-items: center; gap: 12px; min-height: 40px; color: #fff; font-weight: 600; font-size: 15.5px; flex: 1; min-width: 240px; }
.sh-n { flex-shrink: 0; font: 700 12px var(--mono); color: #fff; background: color-mix(in srgb, var(--c) 45%, transparent); padding: 4px 9px; border-radius: 999px; }
.sh-ctl { display: flex; align-items: center; gap: 6px; }
.sh-ctl button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-1); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background 0.15s; }
.sh-ctl button:hover { background: var(--bg-3); color: #fff; }
.sh-ctl button .lucide, .sh-ctl button [data-lucide] { width: 18px; height: 18px; }
.sh-doc { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; color: #8d96ff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.sh-doc:hover { text-decoration: underline; }
.sh-doc .lucide, .sh-doc [data-lucide] { width: 15px; height: 15px; }

@media (max-width: 1000px) {
  .sh-grid { grid-template-columns: 1fr; gap: 16px; }
  .sh-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .sh-list::-webkit-scrollbar { display: none; }
  .sh-item { grid-template-columns: 32px auto; flex-shrink: 0; padding: 8px 12px; }
  .sh-ico { width: 32px; height: 32px; border-radius: 9px; }
  .sh-ico img.emoji { width: 22px; height: 22px; }
  .sh-txt small, .sh-item.active .sh-ch { display: none; }
  .sh-txt b { font-size: 13.5px; white-space: nowrap; }
}
@media (max-width: 560px) {
  .sh-stage { border-radius: 14px; }
  .sh-doc { display: none; }
  .sh-cap-t { font-size: 14px; min-width: 0; }
}

/* ========================================================================== */
/* Canevas des films                                                          */
/* ========================================================================== */
.canvas {
  position: absolute; left: 0; top: 0;
  width: 860px; height: 520px;
  transform-origin: 0 0;
  font: 15px/1.4 var(--font);
  color: #dbdee1;
  text-align: left;
}
.sc { position: absolute; inset: 0; animation: sc-in 0.5s ease; }
@keyframes sc-in { from { opacity: 0; } }

/* Apparition / disparition pilotées par data-in / data-out */
[data-in] { opacity: 0; transform: var(--from, translateY(10px) scale(0.98)); transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-in].on { opacity: 1; transform: none; }
[data-out] { transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gone { opacity: 0 !important; transform: var(--to, scale(0.96)) !important; pointer-events: none; }
/* « grow » : l'élément prend sa place progressivement (listes, fils de messages) */
.grow { max-height: var(--mh, 220px); overflow: hidden; transition: opacity 0.4s ease 0.08s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s, max-height 0.45s ease, margin 0.45s ease; }
[data-in].grow:not(.on), .grow.gone { max-height: 0; margin-top: -10px !important; }
.big { --mh: 440px; }

/* Panneaux */
.pn { position: absolute; display: flex; flex-direction: column; background: rgba(30, 31, 35, 0.94); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.7); overflow: hidden; }
.pn-h { height: 40px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-weight: 700; font-size: 14px; color: #f2f3f5; white-space: nowrap; }
.pn-h .lucide, .pn-h [data-lucide] { width: 16px; height: 16px; color: #949ba4; flex-shrink: 0; }
.pn-h img.emoji { width: 18px; height: 18px; }
.pn-b { position: relative; flex: 1; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.feed { position: absolute; left: 14px; right: 14px; top: 12px; bottom: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.feed > * { flex-shrink: 0; }
.feed { transition: bottom 0.5s cubic-bezier(0.3, 0.7, 0.3, 1); }
.x-ban .feed.lift { bottom: 228px !important; }
.view { position: absolute; inset: 0; }

/* Avatars */
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--av, #5865f2); color: #fff; font-weight: 700; font-size: 15px; object-fit: cover; }
img.av { background: #5865f2; }
.av.xs { width: 22px; height: 22px; font-size: 10px; }
.av.sm { width: 28px; height: 28px; font-size: 12px; }
.av.lg { width: 46px; height: 46px; font-size: 18px; }
.av.xl { width: 64px; height: 64px; font-size: 26px; }
.talk { animation: talk 1.6s ease-in-out infinite; }
.talk.t2 { animation-delay: 0.55s; }
.talk.t3 { animation-delay: 1.1s; }
@keyframes talk { 0%, 100% { box-shadow: 0 0 0 0 rgba(35, 165, 89, 0); } 30%, 55% { box-shadow: 0 0 0 3px #23a559; } }

/* Messages */
.m { position: relative; display: flex; gap: 10px; align-items: flex-start; }
.mb { min-width: 0; flex: 1; }
.mb > b { display: flex; align-items: center; gap: 6px; color: #f2f3f5; font-size: 14px; }
.mt { margin-top: 2px; font-size: 14.5px; }
.mt p { margin: 0; }
.app { background: #5865f2; color: #fff; font-size: 9.5px; font-weight: 800; padding: 1px 5px; border-radius: 4px; letter-spacing: 0.02em; }
.men { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.men.role { background: rgba(240, 178, 50, 0.18); color: #f5c45e; }
.sys { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #b5bac1; padding-left: 46px; }
.sys .lucide, .sys [data-lucide] { width: 16px; height: 16px; color: #23a559; flex-shrink: 0; }
.sys b { color: #fff; }
.sys.red .lucide, .sys.red [data-lucide] { color: #f23f43; }
.typing { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #b5bac1; padding-left: 46px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #b5bac1; animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 30% { transform: translateY(-3px); background: #fff; } }

/* Cartes « Components V2 » */
.cv { border-left: 4px solid var(--ac, #5865f2); background: #2b2d31; border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.cv h4 { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 15px; color: #fff; }
.cv h4 img.emoji { width: 20px; height: 20px; }
.cv p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.cv.sm h4 { font-size: 13.5px; }
.cv.sm p { font-size: 12.5px; }
.cv.muted { opacity: 0.55; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

/* Boutons Discord */
.db { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: #4e5058; color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: transform 0.15s, filter 0.2s, background 0.35s; }
.db .lucide, .db [data-lucide] { width: 15px; height: 15px; }
.db.b { background: #5865f2; }
.db.g { background: #23a559; }
.db.r { background: #da373c; }
.db.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.15); color: #b5bac1; }
.press { transform: scale(0.92) !important; filter: brightness(1.25); }

/* Barre de saisie + autocomplétion */
.cb { position: absolute; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 10px; background: #383a40; color: #f2f3f5; font-size: 15px; white-space: nowrap; overflow: hidden; transition: box-shadow 0.3s; }
.cb .lucide, .cb [data-lucide] { width: 20px; height: 20px; color: #b5bac1; flex-shrink: 0; }
.cb-ph { color: #6d6f78; }
.cb-t:not(:empty) + .cb-ph { display: none; }
.cb-t:empty { display: none; }
.caret { width: 2px; height: 18px; background: #f2f3f5; animation: caret 1s steps(1) infinite; margin-left: -8px; }
@keyframes caret { 50% { opacity: 0; } }
.cb.send { box-shadow: 0 0 0 2px var(--c, #5865f2); }
.opt { background: rgba(88, 101, 242, 0.32); color: #dfe2ff; border-radius: 5px; padding: 1px 6px; }
.ac { position: absolute; background: #2b2d31; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.ac-t { font-size: 11px; font-weight: 800; color: #949ba4; letter-spacing: 0.05em; padding: 2px 8px 6px; }
.ac-i { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.ac-i b { color: #fff; }
.ac-i small { display: block; color: #949ba4; font-size: 12.5px; }
.ac-o { font-size: 12px; color: #b5bac1; background: rgba(255, 255, 255, 0.08); border-radius: 4px; padding: 0 5px; }
.who { position: absolute; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #b5bac1; }
.who span:nth-child(2) { color: #57f287; font-weight: 700; }
.tag-staff { background: rgba(35, 165, 89, 0.18); color: #57f287; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; }

/* Listes de membres / salons */
.mlist { gap: 8px; }
.mr { position: relative; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: #dbdee1; flex-shrink: 0; transition: background 0.3s, filter 0.3s, opacity 0.4s, transform 0.5s, max-height 0.45s, margin 0.45s; }
.mr .rt { margin-left: auto; font-size: 11px; font-weight: 700; color: #b5bac1; background: rgba(255, 255, 255, 0.07); padding: 2px 8px; border-radius: 999px; }
.mr .rt.new { color: #2dd4bf; background: rgba(20, 184, 166, 0.16); }
.mr .rt.role-m { color: #f5c45e; background: rgba(240, 178, 50, 0.18); }
.mr .swap { position: absolute; right: 10px; }
.chls { gap: 2px; }
.cat { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; color: #949ba4; padding: 10px 6px 4px; flex-shrink: 0; }
.chl { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 6px; color: #949ba4; font-weight: 600; font-size: 14px; flex-shrink: 0; transition: background 0.3s, color 0.3s, box-shadow 0.3s, opacity 0.4s, max-height 0.45s, margin 0.45s; }
.chl .lucide, .chl [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; }
.chl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chl img.emoji { width: 16px; height: 16px; margin-left: 2px; }
.chl.act { background: rgba(78, 80, 88, 0.6); color: #fff; }
.chl.alert { box-shadow: inset 0 0 0 2px #f0b232; color: #fff; animation: alert 0.5s ease 3; }
@keyframes alert { 50% { background: rgba(240, 178, 50, 0.25); } }
.chl .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #f23f43; box-shadow: 0 0 0 3px rgba(242, 63, 67, 0.25); }
.flash { animation: flash 0.9s ease; }
@keyframes flash { 0%, 30% { color: #fff; text-shadow: 0 0 14px var(--c, #5865f2); } }

/* Notifications, puces, tampons */
.nt { position: absolute; display: flex; gap: 10px; align-items: center; width: 280px; padding: 11px 14px; border-radius: 14px; background: rgba(17, 18, 20, 0.96); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55); font-size: 13px; color: #b5bac1; z-index: 20; --from: translateX(26px); }
.nt b { display: block; color: #fff; font-size: 13px; }
.nt img.emoji { width: 30px; height: 30px; }
.chp { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(17, 18, 20, 0.92); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); z-index: 15; }
.chp img.emoji { width: 20px; height: 20px; }
.stamp { position: absolute; z-index: 30; padding: 4px 14px; border: 3px solid var(--st, #f23f43); color: var(--st, #f23f43); border-radius: 10px; background: rgba(17, 18, 20, 0.55); font: 800 24px var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; --from: rotate(-12deg) scale(2.4); }
[data-in].stamp.on { transform: rotate(-12deg); transition: opacity 0.2s ease 0.45s, transform 0.3s cubic-bezier(0.5, 0, 0.75, 0) 0.45s; }
img.emoji.lg { width: 44px; height: 44px; }
img.emoji.xl { width: 96px; height: 96px; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.5)); }

/* Curseur animé */
.cur { position: absolute; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.25s; }
.cur.on { opacity: 1; }
.cur svg { position: absolute; left: -5px; top: -3px; width: 26px; height: 26px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); }
.cur .cl { position: absolute; left: 20px; top: 22px; background: var(--cc, #23a559); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
.cur.click::after { content: ""; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; animation: ripple 0.5s ease-out forwards; }
@keyframes ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.fly { position: absolute; left: 0; top: 0; z-index: 55; white-space: nowrap; color: #57f287; font: 800 15px var(--font-display); text-shadow: 0 2px 12px rgba(35, 165, 89, 0.7); transition: transform 0.8s cubic-bezier(0.5, 0, 0.25, 1), opacity 0.8s ease; pointer-events: none; }

/* -------------------------------------------------------------------------- */
/* Film 1 : bannir                                                            */
/* -------------------------------------------------------------------------- */
.x-ban .m.spam .mt { color: #f6a6a8; }
.x-ban .m.spam::after { content: ""; position: absolute; left: 46px; right: 0; top: 50%; height: 2px; background: #f23f43; transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.x-ban .m.spam.struck::after { transform: scaleX(1); }
.troll-row.hit { background: rgba(242, 63, 67, 0.22); filter: grayscale(0.7); animation: shake 0.4s ease; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.hammer { position: absolute; z-index: 25; --from: translate(60px, -60px) rotate(-40deg); }
.hammer.on img { animation: hammer 0.75s cubic-bezier(0.3, 0, 0.2, 1) forwards; transform-origin: 75% 80%; }
@keyframes hammer { 0% { transform: rotate(-55deg); } 45% { transform: rotate(-70deg); } 70% { transform: rotate(18deg); } 85% { transform: rotate(8deg); } 100% { transform: rotate(12deg); } }
.shock { position: absolute; width: 0; height: 0; z-index: 24; }
.shock::after { content: ""; position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 3px solid #f23f43; opacity: 0; }
.shock.on::after { animation: shock 0.7s ease-out 0.38s forwards; }
@keyframes shock { 0% { transform: scale(0.2); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* -------------------------------------------------------------------------- */
/* Film 2 : Honey Pot                                                         */
/* -------------------------------------------------------------------------- */
.warn { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #f5c45e; background: rgba(240, 178, 50, 0.14); padding: 3px 10px; border-radius: 999px; }
.warn .lucide, .warn [data-lucide] { width: 14px; height: 14px; color: #f5c45e; }
.spam-msg { padding: 6px; margin: -6px; border-radius: 10px; }
.honey { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(180deg, rgba(240, 178, 50, 0.92), rgba(245, 158, 11, 0.85)); transform-origin: top; --from: scaleY(0); transition: opacity 0.2s, transform 0.9s cubic-bezier(0.3, 0.7, 0.3, 1); box-shadow: 0 10px 0 -2px rgba(245, 158, 11, 0.7); }
.pot { position: absolute; z-index: 25; --from: translateY(-140px) rotate(-25deg) scale(0.6); transition: opacity 0.3s, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }
.pot.on img { animation: wobble 0.5s ease 0.6s 2; }
@keyframes wobble { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

/* -------------------------------------------------------------------------- */
/* Film 3 : tickets                                                           */
/* -------------------------------------------------------------------------- */
.badges { margin-left: auto; display: inline-flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge .lucide, .badge [data-lucide] { width: 13px; height: 13px; color: currentColor; }
.badge.claim-b { background: rgba(35, 165, 89, 0.18); color: #57f287; }
.badge.prio { background: rgba(242, 63, 67, 0.18); color: #ff8a8d; }
.tk-bar { position: absolute; left: 14px; right: 14px; top: 10px; display: flex; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.menu { position: absolute; z-index: 20; width: 210px; padding: 6px; border-radius: 10px; background: #111214; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); --from: translateY(-6px); }
.mi { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: #dbdee1; transition: background 0.2s, color 0.2s; }
.mi .lucide, .mi [data-lucide] { width: 16px; height: 16px; color: #949ba4; }
.mi.hl { background: #5865f2; color: #fff; }
.mi.hl .lucide, .mi.hl [data-lucide] { color: #fff; }
.modal-bg { position: absolute; inset: 0; z-index: 25; background: rgba(0, 0, 0, 0.55); --from: none; }
.modal { position: absolute; z-index: 26; width: 330px; padding: 18px; border-radius: 14px; background: #313338; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); display: grid; gap: 8px; --from: scale(0.9); }
.modal h4 { margin: 0; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 17px; }
.modal h4 img.emoji { width: 22px; height: 22px; }
.modal p { margin: 0 0 6px; font-size: 13.5px; color: #b5bac1; }
.file { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 8px 12px; border-radius: 8px; background: #1e1f22; border: 1px solid rgba(255, 255, 255, 0.08); font: 600 13px var(--mono); color: #00a8fc; justify-self: start; }
.file .lucide, .file [data-lucide] { width: 16px; height: 16px; color: #b5bac1; }

/* -------------------------------------------------------------------------- */
/* Film 4 : bienvenue                                                         */
/* -------------------------------------------------------------------------- */
.wcard {
  position: relative;
  margin-top: 10px;
  height: 230px;
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 35%),
    radial-gradient(circle at 90% 90%, rgba(88, 101, 242, 0.55), transparent 45%),
    linear-gradient(135deg, #0f766e, #14b8a6 45%, #5865f2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  --from: scale(0.94);
}
.wc-ring { position: relative; padding: 5px; border-radius: 50%; --from: scale(0.4); }
.wc-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, 0.85); animation: spin-ring 8s linear infinite; }
@keyframes spin-ring { to { transform: rotate(360deg); } }
.wc-ring .av { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.wc-title { font: 800 30px var(--font-display); letter-spacing: 0.22em; color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.3); --from: translateY(14px); }
.wc-name { font: 700 19px var(--font-display); color: #fff; }
.wc-sub { font-size: 13.5px; color: rgba(255, 255, 255, 0.85); }
.wc-sub b { color: #fff; }
.wc-spark { position: absolute; inset: 0; pointer-events: none; --from: scale(0.6); }
.wc-spark img.emoji { position: absolute; width: 30px; height: 30px; }
.wc-spark img:nth-child(1) { left: 14%; top: 18%; }
.wc-spark img:nth-child(2) { right: 14%; top: 26%; width: 24px; height: 24px; }
.wc-spark img:nth-child(3) { right: 22%; bottom: 14%; width: 34px; height: 34px; }
.wc-spark.on img { animation: twinkle 1.4s ease-in-out infinite; }
.wc-spark.on img:nth-child(2) { animation-delay: 0.4s; }
.wc-spark.on img:nth-child(3) { animation-delay: 0.8s; }
@keyframes twinkle { 50% { transform: scale(1.3) rotate(15deg); } }

/* -------------------------------------------------------------------------- */
/* Film 5 : niveaux                                                           */
/* -------------------------------------------------------------------------- */
.vc-rate { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #57f287; background: rgba(35, 165, 89, 0.14); padding: 3px 10px; border-radius: 999px; }
.vc-rate img.emoji { width: 15px; height: 15px; }
.vc-users { flex-direction: row; align-items: center; justify-content: space-around; }
.vu { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.rank { padding: 18px; display: block; }
.rk-top { display: flex; align-items: center; gap: 14px; }
.rk-top b { display: block; color: #fff; font-size: 18px; }
.rk-top span { color: #b5bac1; font-size: 13.5px; }
.rk-top .lvl { display: inline; font-size: 15px; color: #57f287; }
.rk-pos { margin-left: auto; font: 800 26px var(--font-display); color: #fff !important; }
.rk-pos b { display: inline !important; font-size: 26px !important; }
.xpbar { height: 14px; margin: 20px 0 9px; border-radius: 999px; background: #1e1f22; overflow: hidden; transition: box-shadow 0.2s; }
.xpbar.press { box-shadow: 0 0 0 2px rgba(87, 242, 135, 0.5); transform: none !important; filter: none; }
.xpf { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #23a559, #57f287); transition: width 0.55s cubic-bezier(0.3, 0.7, 0.3, 1); }
.xp-t { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #b5bac1; }
.xp-t b { color: #fff; }
.role-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #f5c45e; background: rgba(240, 178, 50, 0.18); padding: 3px 10px; border-radius: 999px; --from: scale(0.6); }
.role-pill img.emoji { width: 14px; height: 14px; }
.lv-up { position: absolute; left: 196px; top: 14px; --from: scale(0.3) translateY(20px); transition: opacity 0.3s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }
.lv-up img.emoji.xl { width: 64px; height: 64px; }
.rank.levelup { animation: lvl-glow 1.2s ease; }
@keyframes lvl-glow { 30% { box-shadow: 0 0 0 3px #57f287, 0 0 60px rgba(87, 242, 135, 0.45); } }
.lb-b { padding: 0; }
.lr { position: absolute; left: 12px; right: 12px; top: calc(6px + var(--r) * 34px); height: 30px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; transition: top 0.7s cubic-bezier(0.5, 0, 0.2, 1), background 0.3s; }
.lr-n { width: 24px; font: 700 12px var(--mono); color: #949ba4; }
.lr-name { font-weight: 600; }
.lr-x { margin-left: auto; font-size: 12.5px; color: #b5bac1; }
.lr.me { background: rgba(35, 165, 89, 0.16); box-shadow: inset 0 0 0 1px rgba(35, 165, 89, 0.4); }
.lr.me .lr-name, .lr.me .lr-x { color: #fff; }

/* -------------------------------------------------------------------------- */
/* Film 6 : giveaway                                                          */
/* -------------------------------------------------------------------------- */
.gv-card { gap: 10px; }
.gv-head { display: flex; align-items: center; gap: 12px; }
.gv-head small { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: #eb459e; }
.gv-head h4 { font-size: 17px; }
.gv-gift { display: inline-flex; }
.gv-gift.open img { animation: gift-open 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes gift-open { 0% { transform: scale(1); } 30% { transform: scale(1.35) rotate(-10deg); } 60% { transform: scale(0.9) rotate(6deg); } 100% { transform: scale(1); } }
.gv-end { margin-left: auto; font-size: 11.5px; font-weight: 800; color: #fff; background: #da373c; padding: 3px 10px; border-radius: 999px; --from: scale(0.6); }
.gv-lines { display: grid; gap: 5px; font-size: 13.5px; }
.gv-lines span { display: flex; align-items: center; gap: 8px; }
.gv-lines .lucide, .gv-lines [data-lucide] { width: 15px; height: 15px; color: #eb459e; }
.gv-lines b { color: #fff; font-family: var(--mono); }
.host { font-size: 12.5px; color: #949ba4; }
.gv-grid { display: grid; grid-template-columns: repeat(5, 34px); gap: 10px; justify-content: center; padding-top: 6px; }
.gv-p { display: grid; place-items: center; --from: scale(0.2); transition: opacity 0.3s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }
.reel-win { position: relative; height: 132px; margin-top: 10px; overflow: hidden; border-radius: 10px; background: #1e1f22; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.reel { transition: transform 2.4s cubic-bezier(0.12, 0.7, 0.12, 1); }
.reel.spin { transform: translateY(var(--end)); }
.rl { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-weight: 600; font-size: 14px; }
.rl.final.hit { color: #fff; }
.rl.final.hit .av { box-shadow: 0 0 0 3px #eb459e; }
.reel-frame { position: absolute; left: 6px; right: 6px; top: 44px; height: 44px; border-radius: 8px; border: 2px solid #eb459e; box-shadow: 0 0 24px rgba(235, 69, 158, 0.45); pointer-events: none; }
.burst { position: absolute; width: 0; height: 0; z-index: 30; --from: none; }
.cf { position: absolute; width: 9px; height: 13px; border-radius: 2px; background: var(--c); opacity: 0; }
.burst.on .cf { animation: confetti 1.4s cubic-bezier(0.1, 0.7, 0.3, 1) var(--d) forwards; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 70px)) rotate(calc(var(--r) + 540deg)); } }

/* -------------------------------------------------------------------------- */
/* Film 7 : musique                                                           */
/* -------------------------------------------------------------------------- */
.vlist { gap: 6px; }
.vrow { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border-radius: 8px; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.vrow small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: #c084fc; }
.vrow small img.emoji { width: 13px; height: 13px; }
.listeners { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 10px; background: rgba(168, 85, 247, 0.14); color: #e9d5ff; font-size: 13px; }
.listeners img.emoji { width: 18px; height: 18px; }
.np { flex-direction: row; gap: 18px; padding: 18px; }
.np-cover { position: relative; width: 210px; height: 210px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 30% 25%, #c084fc, transparent 55%), linear-gradient(140deg, #7c3aed, #db2777); display: grid; place-items: center; }
.vinyl { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: repeating-radial-gradient(circle, #121214 0 3px, #222228 3px 5px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.vinyl span { position: absolute; inset: 36%; border-radius: 50%; background: conic-gradient(#a855f7, #eb459e, #5865f2, #a855f7); }
.vinyl span::after { content: ""; position: absolute; inset: 40%; border-radius: 50%; background: #111; }
.np.playing .vinyl { animation: vinyl 3.2s linear infinite; }
@keyframes vinyl { to { transform: rotate(360deg); } }
.np-note { position: absolute; right: 10px; top: 8px; }
.np.playing .np-note img { animation: note-float 2s ease-in-out infinite; }
@keyframes note-float { 50% { transform: translateY(-8px) rotate(8deg); } }
.np-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.np-info small { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: #c084fc; }
.np-t { margin: 4px 0 0; color: #fff; font: 800 21px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-a { color: #b5bac1; font-size: 14px; }
.np-bar { height: 6px; margin-top: 14px; border-radius: 999px; background: #4e5058; overflow: hidden; }
.np-p { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #a855f7, #eb459e); transition: width 14s linear; }
.np-p.snap { transition: none; }
.np-time { display: flex; justify-content: space-between; margin-top: 5px; font: 12px var(--mono); color: #949ba4; }
.np-ctl { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #dbdee1; transition: background 0.2s, transform 0.15s; }
.ic .lucide, .ic [data-lucide] { width: 18px; height: 18px; }
.ic.big { width: 40px; height: 40px; background: #fff; color: #111214; }
.ic.press { background: rgba(168, 85, 247, 0.35); }
.vol { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #b5bac1; }
.vol .lucide, .vol [data-lucide] { width: 17px; height: 17px; }
.vol-bar { position: relative; width: 88px; height: 5px; border-radius: 999px; background: #4e5058; }
.vol-f { position: absolute; left: 0; top: 0; bottom: 0; width: 55%; border-radius: inherit; background: #fff; transition: width 0.6s cubic-bezier(0.3, 0.7, 0.3, 1); }
.vol-k { position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); transition: transform 0.2s; }
.vol.drag .vol-k { transform: scale(1.35); }
.np-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.eq i { width: 6px; height: 100%; border-radius: 3px; background: linear-gradient(#eb459e, #a855f7); transform-origin: bottom; transform: scaleY(0.12); transition: transform 0.4s; }
.np.playing .eq i { animation: eq 0.85s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.11s); }
.np.bass .eq i { animation-duration: 0.42s; filter: brightness(1.25) saturate(1.3); }
@keyframes eq { 0% { transform: scaleY(0.15); } 100% { transform: scaleY(var(--h)); } }
.fx { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); font-size: 12.5px; font-weight: 700; color: #b5bac1; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.fx img.emoji { width: 16px; height: 16px; }
.fx.on { background: linear-gradient(90deg, #a855f7, #eb459e); color: #fff; border-color: transparent; box-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }
.q-n { margin-left: auto; font-size: 12px; font-weight: 600; color: #949ba4; }
.q-b { padding: 0; }
.qi { position: absolute; left: 12px; right: 12px; top: calc(4px + var(--r) * 29px); height: 27px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 7px; font-size: 13px; }
.qi[data-in] { transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.55s cubic-bezier(0.5, 0, 0.2, 1); --from: translateX(30px); }
.qi:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.qi-n { width: 16px; font: 700 12px var(--mono); color: #c084fc; }
.qi b { color: #fff; font-weight: 600; }
.qi span:not(.qi-n):not(.qi-d) { color: #949ba4; }
.qi-d { margin-left: auto; font: 12px var(--mono); color: #949ba4; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: spinner 0.8s linear infinite; }
@keyframes spinner { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------------------- */
/* Mouvement réduit : pas d'animation, les étapes s'affichent directement     */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .canvas *, .canvas *::before, .canvas *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .cur { display: none; }
}
