/**
 * ============================================================================
 * CHILLGAME.EU — L'HÔTEL
 * ============================================================================
 * Verre sombre, lumière d'ambiance, tuiles vivantes. Les couleurs viennent des
 * jetons du site (style.css) ; tout ce qui est propre à l'Hôtel est préfixé hx-.
 */

:root {
    --hx-bg: #07070d;
    --hx-panel: rgba(17, 17, 29, 0.72);
    --hx-panel-solid: #11111c;
    --hx-raise: rgba(255, 255, 255, 0.04);
    --hx-raise-2: rgba(255, 255, 255, 0.07);
    --hx-line: rgba(255, 255, 255, 0.08);
    --hx-line-2: rgba(255, 255, 255, 0.14);
    --hx-text: #ececf5;
    --hx-dim: #9d9db5;
    --hx-ok: #34d399;
    --hx-warn: #fbbf24;
    --hx-danger: #f43f5e;
    --hx-rose: #fb7185;
    --hx-violet: #a78bfa;
    --hx-r: 22px;
    --hx-r-sm: 14px;
    --hx-ease: cubic-bezier(.2, .8, .2, 1);
    --hx-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html.hx-locked, html.hx-locked body { overflow: hidden; }
body.hotel-body { background: var(--hx-bg); color: var(--hx-text); }
.hotel-body [hidden] { display: none !important; }
.hx-muted { color: var(--hx-dim); }
kbd { font-family: 'JetBrains Mono', monospace; font-size: .75em; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--hx-line-2); background: var(--hx-raise); color: #fff; }

/* ============================================================================
   CIEL D'AMBIANCE
   ============================================================================ */
.hx-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hx-sky-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: hxDrift 26s ease-in-out infinite alternate; }
.hx-sky-orb--a { width: 46vmax; height: 46vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle, rgba(168, 85, 247, .38), transparent 65%); }
.hx-sky-orb--b { width: 40vmax; height: 40vmax; right: -16vmax; top: 10vh; background: radial-gradient(circle, rgba(236, 72, 153, .26), transparent 65%); animation-delay: -9s; }
.hx-sky-orb--c { width: 38vmax; height: 38vmax; left: 25vw; bottom: -26vmax; background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 65%); animation-delay: -17s; }
.hx-sky-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); }
@keyframes hxDrift { to { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); } }

/* ============================================================================
   EN-TÊTE
   ============================================================================ */
.hx-hero { position: relative; z-index: 1; text-align: center; padding: calc(var(--chrome-h, 72px) + 56px) 20px 40px; max-width: 900px; margin: 0 auto; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--hx-line-2);
    background: rgba(255,255,255,.035); font: 600 .74rem/1 'JetBrains Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: #d9ccff; }
.hx-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hx-ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: hxPing 2s infinite; flex: none; }
@keyframes hxPing { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hx-title { font-family: var(--font-display, 'Outfit'), sans-serif; font-weight: 900; font-size: clamp(3rem, 9vw, 6rem); line-height: .95; letter-spacing: -.04em; margin: 22px 0 18px; color: #fff; }
.hx-title em { font-style: normal; background: linear-gradient(110deg, #c4b5fd 0%, var(--accent, #a855f7) 40%, var(--magenta, #ec4899) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-lead { color: var(--hx-dim); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.7; max-width: 640px; margin: 0 auto 26px; }
.hx-stats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hx-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--hx-raise); border: 1px solid var(--hx-line); color: var(--hx-dim); font-size: .86rem; }
.hx-stat b { color: #fff; font-family: var(--font-display, 'Outfit'), sans-serif; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hx-stat-cap { opacity: .6; }

/* ============================================================================
   BRIQUES : boutons, puces, badges
   ============================================================================ */
.hx-main { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 24px 120px; }
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
    font: 700 .9rem/1 var(--font-display, 'Outfit'), sans-serif; letter-spacing: .01em; color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .25s var(--hx-ease), box-shadow .25s, background-color .25s, border-color .25s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.hx-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.hx-btn--primary { background: linear-gradient(135deg, var(--accent, #a855f7), var(--magenta, #ec4899)); box-shadow: 0 12px 34px -10px rgba(168, 85, 247, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.hx-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(168, 85, 247, .85), inset 0 1px 0 rgba(255,255,255,.3); }
.hx-btn--ghost { background: var(--hx-raise); border-color: var(--hx-line-2); }
.hx-btn--ghost:hover:not(:disabled) { background: rgba(168, 85, 247, .12); border-color: rgba(168, 85, 247, .45); }
.hx-btn--danger { background: linear-gradient(135deg, #f43f5e, #be123c); box-shadow: 0 12px 30px -12px rgba(244, 63, 94, .8); }
.hx-btn--lg { min-height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 16px; }
.hx-btn--sm { min-height: 38px; padding: 0 14px; font-size: .82rem; border-radius: 12px; }
.hx-btn--xs { min-height: 30px; padding: 0 11px; font-size: .74rem; border-radius: 10px; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hx-icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--hx-line-2); background: var(--hx-raise); color: #fff; cursor: pointer;
    transition: background-color .2s, border-color .2s, transform .2s; flex: none; }
.hx-icon-btn:hover { background: var(--hx-raise-2); border-color: rgba(168, 85, 247, .45); }
.hx-icon-btn.is-sm { width: 34px; height: 34px; border-radius: 10px; font-size: .85rem; }
.hx-icon-btn.is-danger:hover { background: rgba(244, 63, 94, .16); border-color: rgba(244, 63, 94, .5); color: #fecdd3; }
.hx-icon-btn.is-accent { background: linear-gradient(135deg, var(--accent, #a855f7), var(--magenta, #ec4899)); border-color: transparent; }
.hx-link-btn { background: none; border: 0; color: #c4b5fd; font: 600 .8rem var(--font, 'Inter'), sans-serif; cursor: pointer; padding: 6px 0; display: inline-flex; gap: 7px; align-items: center; }
.hx-link-btn:hover { color: #fff; }
.hx-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 .7rem/1 'JetBrains Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: #c4b5fd; }
.hx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hx-line-2); background: var(--hx-raise);
    color: var(--hx-text); font: 600 .82rem var(--font, 'Inter'), sans-serif; cursor: pointer; transition: all .2s var(--hx-ease); }
.hx-chip:hover { border-color: rgba(168, 85, 247, .5); }
.hx-chip[aria-pressed="true"] { background: linear-gradient(135deg, rgba(168, 85, 247, .35), rgba(236, 72, 153, .3)); border-color: rgba(236, 72, 153, .55); color: #fff; box-shadow: 0 6px 20px -8px rgba(236, 72, 153, .7); }
.hx-chip[aria-pressed="true"]::before { content: '✓'; font-size: .75rem; }
.hx-chip.is-static { cursor: default; min-height: 28px; padding: 0 11px; font-size: .76rem; }
.hx-chip.is-hot { border-color: rgba(236, 72, 153, .45); background: rgba(236, 72, 153, .14); color: #fbcfe8; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 .7rem/1.2 var(--font, 'Inter'), sans-serif; background: var(--hx-raise-2); color: var(--hx-dim); }
.hx-badge.is-staff { background: rgba(251, 191, 36, .14); color: #fde68a; }
.hx-badge.is-vibe { background: rgba(52, 211, 153, .14); color: #a7f3d0; }
.hx-mini { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 8px; font: 600 .7rem/1.3 var(--font, 'Inter'), sans-serif; background: var(--hx-raise-2); color: var(--hx-dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-mini.is-rose { background: rgba(251, 113, 133, .14); color: #fecdd3; }
.hx-mini.is-violet { background: rgba(167, 139, 250, .16); color: #ddd6fe; }
.hx-mini.is-ok { background: rgba(52, 211, 153, .14); color: #a7f3d0; }
.hx-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--hx-raise); border: 1px solid var(--hx-line); font: 600 .74rem/1 var(--font, 'Inter'), sans-serif; color: var(--hx-dim); }
.hx-pill.is-live { color: #a7f3d0; border-color: rgba(52, 211, 153, .3); }
.hx-pill.is-warn { color: #fde68a; border-color: rgba(251, 191, 36, .35); }
.hx-pill.is-warn .hx-live-dot { background: var(--hx-warn); }
.hx-avatar { position: relative; display: inline-block; width: 56px; height: 56px; border-radius: 50%; flex: none; }
.hx-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #222; }
.hx-avatar.is-online::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--hx-ok); border: 3px solid var(--hx-panel-solid); }
.hx-avatar.is-sm { width: 32px; height: 32px; }
.hx-faces { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 0; }
.hx-faces img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--hx-panel-solid); margin-right: -12px; background: #222; }
.hx-faces img:last-of-type { margin-right: 4px; }
.hx-faces.is-tight img { width: 26px; height: 26px; }
.hx-more { font: 700 .7rem var(--font, 'Inter'), sans-serif; color: var(--hx-dim); margin-left: 4px; }
.hx-dotcount { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--hx-danger); color: #fff; font: 800 .65rem/1 var(--font, 'Inter'), sans-serif; }

/* ============================================================================
   PORTE D'ENTRÉE (visiteur)
   ============================================================================ */
.hx-gate { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; max-width: 920px; margin: 0 auto 56px; padding: 40px;
    border-radius: 28px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--hx-line-2); box-shadow: var(--hx-shadow);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.hx-gate-art { aspect-ratio: 1; border-radius: 26px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgba(168,85,247,.45), rgba(236,72,153,.12) 60%, transparent 75%), #0d0d18; border: 1px solid rgba(168,85,247,.3); }
.hx-key { font-size: 4rem; color: #fff; filter: drop-shadow(0 10px 30px rgba(236,72,153,.6)); animation: hxFloat 5s ease-in-out infinite; }
@keyframes hxFloat { 50% { transform: translateY(-8px) rotate(-6deg); } }
.hx-gate h2 { font-family: var(--font-display, 'Outfit'), sans-serif; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; margin: 14px 0 12px; color: #fff; }
.hx-gate p { color: var(--hx-dim); line-height: 1.7; margin-bottom: 18px; }
.hx-gate-perks { list-style: none; display: grid; gap: 12px; margin: 0 0 24px; padding: 0; }
.hx-gate-perks li { display: flex; gap: 14px; align-items: flex-start; color: var(--hx-dim); font-size: .92rem; line-height: 1.5; }
.hx-gate-perks i { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(168, 85, 247, .14); color: #d8b4fe; }
.hx-gate-perks strong { display: block; color: #fff; }

/* Choix de connexion */
.hx-logins { display: grid; gap: 10px; margin-bottom: 14px; }
.hx-login { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 16px; border-radius: 16px; border: 1px solid var(--hx-line-2); background: var(--hx-raise);
    color: #fff; text-decoration: none; text-align: left; cursor: pointer; font: inherit; transition: transform .25s var(--hx-ease), border-color .2s, background-color .2s; }
.hx-login:hover { transform: translateY(-2px); border-color: rgba(168, 85, 247, .5); background: rgba(168, 85, 247, .1); }
.hx-login > i { width: 34px; text-align: center; font-size: 1.35rem; }
.hx-login strong { display: block; font: 700 .95rem var(--font-display, 'Outfit'), sans-serif; }
.hx-login small { display: block; color: var(--hx-dim); font-size: .76rem; margin-top: 2px; }
.hx-login.is-discord { background: linear-gradient(135deg, #5865f2, #7c3aed); border-color: transparent; box-shadow: 0 14px 34px -12px rgba(88, 101, 242, .8); }
.hx-login.is-discord small { color: rgba(255,255,255,.8); }
.hx-login.is-google > i { color: #fff; }
.hx-login.is-apple > i { font-size: 1.5rem; }
.hx-login.is-mail > i { color: #f9a8d4; }
.hx-login-note { display: flex; gap: 10px; font-size: .8rem !important; line-height: 1.55 !important; color: var(--hx-dim); margin: 0 0 12px !important; }
.hx-login-note i { color: #c4b5fd; margin-top: 3px; }
.hx-rules-link { color: #c4b5fd; font-size: .84rem; text-decoration: none; }
.hx-rules-link:hover { color: #fff; }
.hx-code-input { text-align: center; font: 800 1.8rem 'JetBrains Mono', monospace !important; letter-spacing: .5em; }
.hx-via { color: #f9a8d4; font-size: .72rem; }

/* ============================================================================
   BANDEAUX
   ============================================================================ */
.hx-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 18px; border-radius: 18px; border: 1px solid var(--hx-line-2); background: var(--hx-panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hx-banner > i { font-size: 1.2rem; }
.hx-banner p { flex: 1 1 260px; margin: 0; color: var(--hx-dim); line-height: 1.5; font-size: .92rem; }
.hx-banner p strong { color: #fff; }
.hx-banner.is-warn { border-color: rgba(251, 191, 36, .35); } .hx-banner.is-warn > i { color: var(--hx-warn); }
.hx-banner.is-danger { border-color: rgba(244, 63, 94, .4); background: rgba(80, 10, 25, .45); } .hx-banner.is-danger > i { color: #fda4af; }
.hx-banner.is-cinema { border-color: rgba(251, 113, 133, .45); background: linear-gradient(110deg, rgba(190, 18, 60, .28), rgba(17, 17, 29, .8)); }
.hx-banner-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(244, 63, 94, .2); color: #fecdd3; font: 700 .7rem/1 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.hx-banner-pill .hx-live-dot { background: var(--hx-danger); }

/* ============================================================================
   BENTO DU HALL
   ============================================================================ */
.hx-bento { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 18px; margin-bottom: 56px; }
.hx-tile { position: relative; border-radius: var(--hx-r); padding: 26px; background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); border: 1px solid var(--hx-line);
    box-shadow: var(--hx-shadow), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; }
.hx-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hx-tile-head h2 { display: flex; align-items: center; gap: 10px; font: 800 1.1rem var(--font-display, 'Outfit'), sans-serif; color: #fff; margin: 0; }
.hx-tile-head .hx-muted { font-size: .8rem; }

.hx-match { grid-row: span 2; display: grid; grid-template-columns: minmax(180px, 250px) 1fr; gap: 28px; align-items: center; padding: 34px;
    background: radial-gradient(120% 100% at 0% 0%, rgba(168, 85, 247, .22), transparent 55%), radial-gradient(90% 80% at 100% 100%, rgba(236, 72, 153, .16), transparent 60%), linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border-color: rgba(168, 85, 247, .28); }
.hx-match h2 { font: 900 clamp(1.6rem, 3vw, 2.3rem)/1.08 var(--font-display, 'Outfit'), sans-serif; letter-spacing: -.02em; color: #fff; margin: 12px 0 12px; }
.hx-match p { color: var(--hx-dim); line-height: 1.65; margin: 0 0 16px; }
.hx-match-interests { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; font-size: .84rem; }
.hx-match-block { margin-top: 14px !important; padding: 10px 12px; border-radius: 12px; background: rgba(244, 63, 94, .12); color: #fecdd3 !important; font-size: .85rem; }

/* Radar animé */
.hx-radar { position: relative; aspect-ratio: 1; width: 100%; max-width: 250px; margin: 0 auto; display: grid; place-items: center; }
.hx-radar-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(196, 181, 253, .22); }
.hx-radar-ring:nth-child(2) { inset: 17%; border-color: rgba(196, 181, 253, .3); }
.hx-radar-ring:nth-child(3) { inset: 34%; border-color: rgba(236, 72, 153, .4); }
.hx-radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(236, 72, 153, .35), transparent 22%); animation: hxSpin 3.2s linear infinite;
    mask: radial-gradient(circle, #000 0 69%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 0 69%, transparent 70%); }
@keyframes hxSpin { to { transform: rotate(360deg); } }
.hx-radar-core { position: relative; z-index: 2; width: 32%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff;
    background: linear-gradient(135deg, var(--accent, #a855f7), var(--magenta, #ec4899)); box-shadow: 0 0 0 8px rgba(168,85,247,.12), 0 18px 50px -10px rgba(236,72,153,.8); }
.hx-radar-core img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hx-radar-faces { position: absolute; inset: 0; z-index: 3; }
.hx-radar-faces img { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 2px solid #1a1a2a; object-fit: cover;
    transform: rotate(calc(360deg / var(--n) * var(--i))) translateY(-41%) rotate(calc(-360deg / var(--n) * var(--i))); transform: rotate(calc(360deg / var(--n) * var(--i))) translate(0, calc(-1 * min(125px, 41cqi))) rotate(calc(-360deg / var(--n) * var(--i)));
    animation: hxPop .5s var(--hx-ease) both; animation-delay: calc(var(--i) * 80ms); }
.hx-radar { container-type: inline-size; }
@keyframes hxPop { from { opacity: 0; scale: .4; } }
.hx-radar.is-big { max-width: 200px; margin-bottom: 18px; }

/* Passeport */
.hx-me-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hx-me-name { display: block; font: 800 1.25rem var(--font-display, 'Outfit'), sans-serif; color: #fff; margin: 6px 0; }
.hx-me-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-me-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hx-action { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 15px; border: 1px solid var(--hx-line); background: var(--hx-raise); color: #fff; text-align: left; cursor: pointer;
    transition: border-color .2s, background-color .2s, transform .2s var(--hx-ease); }
.hx-action:hover { border-color: rgba(168, 85, 247, .45); background: rgba(168, 85, 247, .1); transform: translateY(-2px); }
.hx-action > i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(168, 85, 247, .16); color: #d8b4fe; }
.hx-action strong { display: block; font: 700 .86rem var(--font-display, 'Outfit'), sans-serif; }
.hx-action small { display: block; color: var(--hx-dim); font-size: .74rem; margin-top: 2px; }

/* En ce moment */
.hx-live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hx-live-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--hx-raise); border: 1px solid var(--hx-line); }
.hx-live-row.is-match { grid-template-columns: 38px 1fr; border-style: dashed; }
.hx-live-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(52, 211, 153, .12); color: #6ee7b7; }
.hx-live-name { min-width: 0; }
.hx-live-name strong { display: block; color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-live-name small { color: var(--hx-dim); font-size: .74rem; }
.hx-live-empty { color: var(--hx-dim); font-size: .88rem; line-height: 1.6; padding: 14px; border-radius: 14px; border: 1px dashed var(--hx-line-2); }
.hx-live-empty i { margin-right: 6px; color: #c4b5fd; }

/* ============================================================================
   ÉTAGES : suites et chambres
   ============================================================================ */
.hx-floor { margin-bottom: 56px; }
.hx-floor-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hx-floor-head h2 { font: 900 clamp(1.4rem, 2.6vw, 1.9rem) var(--font-display, 'Outfit'), sans-serif; letter-spacing: -.02em; color: #fff; margin: 0; }
.hx-floor-head span { color: var(--hx-dim); font-size: .86rem; }
.hx-suites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hx-suite { --c: #a78bfa; --c2: rgba(167, 139, 250, .2); position: relative; display: flex; flex-direction: column; border-radius: var(--hx-r); overflow: hidden; background: var(--hx-panel); border: 1px solid var(--hx-line);
    box-shadow: var(--hx-shadow); transition: transform .35s var(--hx-ease), border-color .3s, box-shadow .35s; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hx-suite[data-theme="gold"] { --c: #fbbf24; --c2: rgba(251, 191, 36, .18); }
.hx-suite[data-theme="cyan"] { --c: #22d3ee; --c2: rgba(34, 211, 238, .16); }
.hx-suite[data-theme="rose"] { --c: #fb7185; --c2: rgba(251, 113, 133, .18); }
.hx-suite:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--c) 55%, transparent); }
.hx-suite-art { position: relative; height: 112px; display: grid; place-items: center; font-size: 2.3rem; color: var(--c); overflow: hidden;
    background: radial-gradient(90% 120% at 30% 0%, var(--c2), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.04), transparent); border-bottom: 1px solid var(--hx-line); }
.hx-suite-art > i { filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--c) 70%, transparent)); transition: transform .4s var(--hx-ease); }
.hx-suite:hover .hx-suite-art > i { transform: scale(1.12) rotate(-4deg); }
.hx-suite-num { position: absolute; left: 14px; top: 12px; font: 700 .7rem 'JetBrains Mono', monospace; letter-spacing: .14em; color: color-mix(in srgb, var(--c) 80%, #fff); opacity: .85; }
.hx-suite-num::before { content: 'SUITE '; }
.hx-suite-state { position: absolute; right: 12px; top: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.35); font: 600 .7rem var(--font, 'Inter'), sans-serif; color: var(--hx-dim); }
.hx-suite.is-busy .hx-suite-state { color: #a7f3d0; background: rgba(16, 80, 60, .55); }
.hx-suite.is-busy .hx-suite-state::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--hx-ok); margin-right: 6px; vertical-align: middle; animation: hxPing 2s infinite; }
.hx-suite-body { flex: 1; padding: 16px 18px 6px; display: flex; flex-direction: column; gap: 6px; }
.hx-suite-tag { font: 700 .66rem 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.hx-suite h3 { font: 800 1.12rem var(--font-display, 'Outfit'), sans-serif; color: #fff; margin: 0; }
.hx-suite p { color: var(--hx-dim); font-size: .86rem; line-height: 1.5; margin: 0; }
.hx-suite .hx-faces { margin-top: 6px; }
.hx-suite-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 18px; }
.hx-cap { font: 600 .78rem 'JetBrains Mono', monospace; color: var(--hx-dim); font-variant-numeric: tabular-nums; }

.hx-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hx-room-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--hx-r); background: var(--hx-panel); border: 1px solid var(--hx-line); box-shadow: var(--hx-shadow);
    transition: transform .3s var(--hx-ease), border-color .3s; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: hxPop .4s var(--hx-ease) both; }
.hx-room-card:hover { transform: translateY(-3px); border-color: rgba(168, 85, 247, .4); }
.hx-room-card.is-mine { border-color: rgba(251, 191, 36, .4); }
.hx-room-card.is-busy { border-color: rgba(52, 211, 153, .3); }
.hx-room-card-top { display: flex; gap: 14px; align-items: flex-start; }
.hx-room-card-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: rgba(168, 85, 247, .14); color: #d8b4fe; font-size: 1.1rem; }
.hx-room-card-num { font: 700 .66rem 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-dim); }
.hx-room-card h3 { font: 800 1.02rem var(--font-display, 'Outfit'), sans-serif; color: #fff; margin: 3px 0 2px; word-break: break-word; }
.hx-room-card p { color: var(--hx-dim); font-size: .8rem; margin: 0; }
.hx-room-card .hx-suite-foot { padding: 0; }
.hx-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 34px 20px; border-radius: var(--hx-r); border: 1px dashed var(--hx-line-2); color: var(--hx-dim); }
.hx-empty > i { font-size: 1.6rem; color: #c4b5fd; }
.hx-empty p { margin: 0; }

/* ============================================================================
   LA CHAMBRE (plein écran)
   ============================================================================ */
.hx-room { position: fixed; inset: 0; z-index: 9100; display: flex; flex-direction: column; background: radial-gradient(120% 80% at 50% -10%, rgba(88, 28, 135, .35), transparent 60%), #06060b;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) 0 env(safe-area-inset-left, 0); animation: hxRoomIn .35s var(--hx-ease) both; }
@keyframes hxRoomIn { from { opacity: 0; transform: scale(.985); } }
.hx-room-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--hx-line); background: rgba(8, 8, 14, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hx-room-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hx-room-num { flex: none; padding: 7px 11px; border-radius: 10px; background: linear-gradient(135deg, rgba(168,85,247,.3), rgba(236,72,153,.25)); border: 1px solid rgba(236,72,153,.35);
    font: 700 .7rem 'JetBrains Mono', monospace; letter-spacing: .12em; color: #fff; }
.hx-room-id h2 { font: 800 1.08rem var(--font-display, 'Outfit'), sans-serif; color: #fff; margin: 0 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-room-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-room-tools { display: flex; gap: 8px; flex: none; }
.hx-room-alert { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: rgba(251, 191, 36, .12); color: #fde68a; font-size: .88rem; }

.hx-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.hx-bars i { width: 3px; border-radius: 2px; background: rgba(255,255,255,.2); }
.hx-bars i:nth-child(1) { height: 5px; } .hx-bars i:nth-child(2) { height: 8px; } .hx-bars i:nth-child(3) { height: 12px; }
.hx-bars[data-q="excellent"] i { background: var(--hx-ok); }
.hx-bars[data-q="good"] i:nth-child(-n+2) { background: var(--hx-ok); }
.hx-bars[data-q="poor"] i:nth-child(1) { background: var(--hx-warn); }
.hx-bars[data-q="lost"] i:nth-child(1) { background: var(--hx-danger); }

.hx-room-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; transition: grid-template-columns .35s var(--hx-ease); }
.hx-room-body.side-closed { grid-template-columns: minmax(0, 1fr) 0; }
.hx-room-body.side-closed .hx-side { opacity: 0; pointer-events: none; }
.hx-stage-col { display: flex; flex-direction: column; gap: 14px; padding: 16px; min-height: 0; overflow: auto; scrollbar-width: thin; }

/* Scènes : ciné et partage d'écran */
.hx-stage { flex: none; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--hx-line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.hx-stage.is-cinema { border-color: rgba(251, 113, 133, .3); box-shadow: 0 0 0 1px rgba(251,113,133,.1), 0 40px 100px -30px rgba(190, 18, 60, .45); }
.hx-stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 16px; background: linear-gradient(180deg, rgba(20, 20, 32, .95), rgba(12, 12, 20, .95)); }
.hx-stage-label { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--hx-dim); font-size: .86rem; }
.hx-stage-label .hx-tag { white-space: nowrap; }
.hx-stage-label strong { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32ch; }
.hx-tag { padding: 3px 8px; border-radius: 7px; background: rgba(251, 113, 133, .18); color: #fecdd3; font: 700 .64rem 'JetBrains Mono', monospace; letter-spacing: .1em; }
.hx-stage-controls, .hx-stage-host { display: flex; align-items: center; gap: 6px; }
.hx-vol { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; height: 34px; border-radius: 10px; background: var(--hx-raise); border: 1px solid var(--hx-line); color: var(--hx-dim); }
.hx-vol input { width: 90px; accent-color: var(--magenta, #ec4899); }
.hx-stage-video { position: relative; aspect-ratio: 16 / 9; max-height: 62vh; width: 100%; background: #000; display: grid; place-items: center; }
.hx-stage-video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.hx-preshow { position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(16px, 4vw, 44px); padding: clamp(16px, 4vw, 48px);
    background: radial-gradient(80% 90% at 30% 50%, rgba(190, 18, 60, .35), transparent 70%), linear-gradient(180deg, #0b0710, #050308); overflow: hidden; }
.hx-preshow::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(120, 10, 30, .55) 0 18px, rgba(80, 6, 20, .55) 18px 36px);
    mask: linear-gradient(90deg, #000 0 7%, transparent 16% 84%, #000 93%); -webkit-mask: linear-gradient(90deg, #000 0 7%, transparent 16% 84%, #000 93%); pointer-events: none; }
.hx-preshow img { position: relative; height: min(46vh, 100%); max-height: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.hx-preshow-body { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hx-preshow-body strong { font: 900 clamp(1.2rem, 3vw, 2.2rem)/1.1 var(--font-display, 'Outfit'), sans-serif; color: #fff; }
.hx-preshow-lbl { color: #fecdd3; font: 600 .78rem 'JetBrains Mono', monospace; letter-spacing: .16em; text-transform: uppercase; }
.hx-preshow-clock { font: 900 clamp(2.4rem, 8vw, 5.4rem)/1 'JetBrains Mono', monospace; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.03em;
    text-shadow: 0 0 40px rgba(251, 113, 133, .55); }
.hx-preshow-body .hx-btn { align-self: flex-start; }

/* Carton d'ouverture « CHILL & FR présente » : les dernières secondes du compte à rebours */
.hx-intro { display: none; }
.hx-preshow.is-intro { grid-template-columns: 1fr; place-items: center; background: radial-gradient(60% 60% at 50% 50%, #1c0d30, #000 75%); }
.hx-preshow.is-intro::before, .hx-preshow.is-intro > img, .hx-preshow.is-intro > .hx-preshow-body { display: none; }
.hx-preshow.is-intro .hx-intro { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.hx-intro-brand { font: 900 clamp(1.7rem, 6vw, 4.2rem)/1 var(--font-display, 'Outfit'), sans-serif; letter-spacing: .14em; color: #fff; white-space: nowrap;
    text-shadow: 0 0 50px rgba(168, 85, 247, .6); animation: hx-intro-in 1.8s var(--hx-ease) both; }
.hx-intro-brand em, .hx-endscene-brand em { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; color: var(--hx-rose); -webkit-text-fill-color: var(--hx-rose); letter-spacing: 0; }
.hx-intro-pres { font: 600 clamp(.66rem, 1.6vw, .9rem) 'JetBrains Mono', monospace; letter-spacing: .5em; text-transform: uppercase; color: #c4b5fd; animation: hx-fade-up .9s 1.2s var(--hx-ease) both; }
.hx-intro-title { font: 800 clamp(1.05rem, 3vw, 2rem)/1.15 var(--font-display, 'Outfit'), sans-serif; color: #fecdd3; max-width: 26ch; animation: hx-fade-up 1s 2.3s var(--hx-ease) both; }
.hx-intro-age { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.08);
    font-size: clamp(.78rem, 1.8vw, 1rem); font-weight: 600; color: #fde68a; animation: hx-fade-up .8s 2.8s var(--hx-ease) both; }
.hx-intro-age[hidden] { display: none; }
.hx-intro-wish { font: 700 clamp(.9rem, 2.2vw, 1.3rem) var(--font-display, 'Outfit'), sans-serif; color: #c4b5fd; letter-spacing: .04em; animation: hx-fade-up .8s 3.5s var(--hx-ease) both; }
@keyframes hx-intro-in { from { opacity: 0; letter-spacing: .4em; filter: blur(10px); } to { opacity: 1; letter-spacing: .14em; filter: blur(0); } }
@keyframes hx-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Fin de séance : le rideau se ferme, « FIN », crédits, remerciements, puis le sondage */
.hx-stage-video { container-type: inline-size; }
.hx-stage-video.is-ended { aspect-ratio: auto; max-height: none; display: block; place-items: normal; min-height: clamp(320px, 54vh, 660px); }
.hx-stage-video.is-ended video { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.hx-endscene { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(22px, 4vw, 48px) clamp(14px, 4vw, 40px); overflow: hidden; text-align: center;
    background: radial-gradient(70% 60% at 50% 38%, rgba(88, 28, 135, .4), transparent 72%), #050308; }
.hx-stage-video.is-ended .hx-endscene { position: relative; inset: auto; min-height: inherit; }
.hx-endscene-curtain { position: absolute; inset: 0; place-self: stretch; display: flex; pointer-events: none; }
.hx-endscene-curtain span { flex: 1; opacity: .2; background: repeating-linear-gradient(90deg, rgba(130, 12, 34, .95) 0 18px, rgba(72, 6, 20, .95) 18px 36px);
    -webkit-mask: linear-gradient(180deg, #000 30%, transparent); mask: linear-gradient(180deg, #000 30%, transparent); }
.hx-endscene-body { position: relative; display: flex; flex-direction: column; align-items: center; width: min(100%, 600px); }
.hx-endscene-titles { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hx-endscene-fin { font: italic 400 clamp(2.6rem, 7vw, 4.8rem)/1 Georgia, 'Times New Roman', serif; color: #fff; letter-spacing: .04em; text-shadow: 0 0 44px rgba(251, 113, 133, .5); }
.hx-endscene-film { font: 700 clamp(.88rem, 2vw, 1.08rem)/1.3 var(--font-display, 'Outfit'), sans-serif; color: #fecdd3; }
.hx-endscene-credit { font: 500 .7rem/1.4 'JetBrains Mono', monospace; color: var(--hx-dim); letter-spacing: .04em; }
.hx-endscene-thanks { margin: 16px 0 0; font: 600 clamp(.98rem, 2.4vw, 1.3rem)/1.35 var(--font-display, 'Outfit'), sans-serif; color: var(--hx-text); }
.hx-endscene-brand { display: block; margin-bottom: 6px; font: 900 clamp(1.8rem, 5.4vw, 3.3rem)/1.05 var(--font-display, 'Outfit'), sans-serif; letter-spacing: .12em; white-space: nowrap;
    background: linear-gradient(90deg, #fff, #f5d0fe 45%, #fda4af); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 28px rgba(168, 85, 247, .45)); }
.hx-endscene-bye { margin: 4px 0 0; font: 600 clamp(.68rem, 1.6vw, .8rem)/1.5 'JetBrains Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: #c4b5fd; }
.hx-endscene-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.hx-endscene.is-playing .hx-endscene-curtain span:first-child { animation: hx-curtain-l 2.4s var(--hx-ease) both; }
.hx-endscene.is-playing .hx-endscene-curtain span:last-child { animation: hx-curtain-r 2.4s var(--hx-ease) both; }
.hx-endscene.is-playing .hx-endscene-fin { animation: hx-fade-up 1s .7s var(--hx-ease) both; }
.hx-endscene.is-playing .hx-endscene-film, .hx-endscene.is-playing .hx-endscene-credit { animation: hx-fade-up .9s 1.3s var(--hx-ease) both; }
.hx-endscene.is-playing .hx-endscene-thanks { animation: hx-fade-up 1.2s 2.2s var(--hx-ease) both; }
.hx-endscene.is-playing .hx-endscene-bye { animation: hx-fade-up 1s 3.4s var(--hx-ease) both; }
.hx-endscene.is-playing .hx-poll, .hx-endscene.is-playing .hx-endscene-actions { animation: hx-fade-up 1s 4.8s var(--hx-ease) both; }
.hx-endscene.is-late, .hx-endscene.is-late * { animation: none !important; }
@keyframes hx-curtain-l { 0% { transform: translateX(-100%); opacity: 1; } 40% { transform: none; opacity: 1; } 100% { transform: none; opacity: .2; } }
@keyframes hx-curtain-r { 0% { transform: translateX(100%); opacity: 1; } 40% { transform: none; opacity: 1; } 100% { transform: none; opacity: .2; } }
.hx-stage-video:fullscreen { display: grid; place-items: center; overflow: auto; }
.hx-stage-video.is-ended:fullscreen .hx-endscene { width: 100%; min-height: 100%; }

/* Sondage « prochaine séance » */
.hx-poll { width: 100%; margin-top: 20px; padding: 16px; border-radius: 18px; text-align: left; background: rgba(17, 17, 29, .8); border: 1px solid var(--hx-line-2);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.hx-poll-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.hx-poll-head strong { font: 800 1.04rem/1.25 var(--font-display, 'Outfit'), sans-serif; color: #fff; }
.hx-poll-opts { display: grid; gap: 8px; }
.hx-poll-opt { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; width: 100%; padding: 7px 12px 7px 7px;
    border-radius: 14px; border: 1px solid var(--hx-line-2); background: var(--hx-raise); color: var(--hx-text); font: inherit; text-align: left; cursor: pointer; overflow: hidden;
    transition: border-color .2s, background .2s, transform .2s var(--hx-ease); }
.hx-poll-opt:hover { border-color: rgba(168, 85, 247, .55); transform: translateY(-1px); }
.hx-poll-opt:focus-visible { outline: 2px solid var(--hx-violet); outline-offset: 2px; }
.hx-poll-opt[aria-pressed="true"] { border-color: rgba(236, 72, 153, .75); background: rgba(236, 72, 153, .1); }
.hx-poll-opt > :not(.hx-poll-fill) { position: relative; }
.hx-poll-fill { position: absolute; inset: 0 auto 0 0; width: 0; pointer-events: none; background: linear-gradient(90deg, rgba(168, 85, 247, .3), rgba(236, 72, 153, .22)); transition: width .9s var(--hx-ease); }
.hx-poll-opt.is-lead .hx-poll-fill { background: linear-gradient(90deg, rgba(168, 85, 247, .5), rgba(236, 72, 153, .42)); }
.hx-poll-thumb { width: 36px; height: 52px; border-radius: 8px; object-fit: cover; background: #1a1026; }
.hx-poll-thumb.is-empty { display: grid; place-items: center; color: #fda4af; font-size: .9rem; background: linear-gradient(160deg, rgba(190, 18, 60, .5), rgba(88, 28, 135, .5)); }
.hx-poll-title { font-weight: 700; font-size: .92rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-poll-opt.is-lead .hx-poll-title::after { content: ' 👑'; }
.hx-poll-pct { font: 700 .82rem 'JetBrains Mono', monospace; color: #f5d0fe; font-variant-numeric: tabular-nums; }
.hx-poll-pct:empty { display: none; }
.hx-poll-check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--hx-line-2); color: transparent; font-size: .62rem; transition: background .2s, border-color .2s, color .2s; }
.hx-poll-opt[aria-pressed="true"] .hx-poll-check { background: var(--hx-rose); border-color: var(--hx-rose); color: #fff; }
.hx-poll-meta { margin: 10px 0 0; font-size: .78rem; color: var(--hx-dim); }
/* Écran large : remerciements à gauche, sondage à droite, tout tient dans l'image */
@container (min-width: 760px) {
    .hx-endscene-body:has(.hx-poll:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 14px 48px; width: min(100%, 1040px); }
    .hx-endscene-body:has(.hx-poll:not([hidden])) .hx-poll { margin-top: 0; }
    .hx-endscene-body:has(.hx-poll:not([hidden])) .hx-endscene-actions { grid-column: 1 / -1; margin-top: 0; }
}
/* Téléphone : générique plus serré pour voir le sondage sans trop défiler */
@container (max-width: 480px) {
    .hx-endscene { padding: 18px 10px 14px; }
    .hx-endscene-titles { gap: 4px; }
    .hx-endscene-fin { font-size: 2rem; }
    .hx-endscene-film { font-size: .82rem; }
    .hx-endscene-credit { font-size: .6rem; }
    .hx-endscene-thanks { margin-top: 8px; font-size: .9rem; }
    .hx-endscene-brand { font-size: 1.55rem; margin-bottom: 2px; }
    .hx-endscene-bye { font-size: .6rem; letter-spacing: .14em; }
    .hx-poll { margin-top: 12px; padding: 10px; border-radius: 16px; }
    .hx-poll-head { margin-bottom: 8px; gap: 4px; }
    .hx-poll-head strong { font-size: .95rem; }
    .hx-poll-opts { gap: 6px; }
    .hx-poll-opt { grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 10px; padding: 5px 10px 5px 5px; border-radius: 12px; }
    .hx-poll-thumb { width: 28px; height: 40px; border-radius: 6px; }
    .hx-poll-title { font-size: .86rem; }
}

/* Régie : « Le public a voté », préparation du sondage */
.hx-public { display: grid; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(168, 85, 247, .08); border: 1px solid rgba(168, 85, 247, .3); }
.hx-public .hx-label i { color: #c4b5fd; }
.hx-public-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-public-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--hx-line-2); background: var(--hx-raise);
    color: var(--hx-text); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; text-align: left; }
.hx-public-opt small { color: var(--hx-dim); font-size: .74rem; font-weight: 500; }
.hx-public-opt.is-lead { border-color: rgba(251, 191, 36, .55); background: rgba(251, 191, 36, .08); }
.hx-public-opt.is-lead i { color: var(--hx-warn); }
.hx-public-opt[aria-pressed="true"] { border-color: var(--hx-rose); box-shadow: 0 0 0 3px rgba(251, 113, 133, .22); }
.hx-switch-row.is-static { cursor: default; }
.hx-switch-row.is-static .hx-btn { flex: none; }
.hx-poll-edit { display: grid; gap: 8px; }
.hx-poll-edit-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; align-items: center; }
.hx-poll-edit-n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--hx-raise-2); color: var(--hx-dim); font: 700 .75rem 'JetBrains Mono', monospace; }
.hx-dlg-foot .hx-btn.is-danger { margin-right: auto; color: #fda4af; }
.hx-play-tap { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hx-reel { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #0b0b13; font: 600 .76rem 'JetBrains Mono', monospace; color: var(--hx-dim); font-variant-numeric: tabular-nums; }
.hx-reel-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.hx-reel-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent, #a855f7), var(--hx-rose)); border-radius: 4px; transition: width .25s linear; }
#reelLeft { color: #fecdd3; }

/* Tuiles des résidents */
.hx-tiles { --cols: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px; align-content: start; }
.hx-tiles[data-count="1"] { --cols: 1; max-width: 860px; width: 100%; margin: 0 auto; }
.hx-tiles[data-count="2"] { --cols: 2; }
.hx-tiles[data-count="3"], .hx-tiles[data-count="4"] { --cols: 2; }
.hx-tiles[data-count="5"], .hx-tiles[data-count="6"] { --cols: 3; }
.hx-tiles[data-count="7"], .hx-tiles[data-count="8"], .hx-tiles[data-count="9"] { --cols: 3; }
@media (min-width: 1400px) { .hx-tiles[data-count="7"], .hx-tiles[data-count="8"], .hx-tiles[data-count="9"] { --cols: 4; } }
.hx-tiles.has-pin .hx-tp.is-pinned { grid-column: 1 / -1; order: -1; }
/* Sans film ni écran partagé, les tuiles remplissent toute la hauteur (comme un appel Discord) */
body:not(.has-stage) .hx-tiles { flex: 1; min-height: 0; grid-auto-rows: minmax(160px, 1fr); }
body:not(.has-stage) .hx-tiles .hx-tp { aspect-ratio: auto; }
body:not(.has-stage) .hx-tiles[data-count="1"] { max-width: 980px; }
body.has-stage .hx-tiles { --cols: 4; }
body.has-stage .hx-tiles .hx-tp { aspect-ratio: 16 / 10; }
body.has-stage .hx-tiles[data-count="1"] { --cols: 4; max-width: none; }

.hx-tp { --lvl: 0; position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, #1b1530, #0d0d17); border: 1px solid var(--hx-line);
    cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .3s var(--hx-ease); animation: hxPop .35s var(--hx-ease) both; }
.hx-tp:hover { border-color: var(--hx-line-2); }
.hx-tp.is-speaking { border-color: rgba(52, 211, 153, .9); box-shadow: 0 0 0 2px rgba(52, 211, 153, .55), 0 0 30px -4px rgba(52, 211, 153, .45); }
.hx-tp-media { position: absolute; inset: 0; display: grid; place-items: center; }
.hx-tp-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.hx-tp.is-local video { transform: scaleX(-1); }
.hx-tp-avatar { position: relative; width: clamp(64px, 22%, 120px); aspect-ratio: 1; }
.hx-tp-avatar img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #222; box-shadow: 0 12px 40px -10px rgba(0,0,0,.8); }
.hx-tp-ring { position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(circle, rgba(52, 211, 153, .55), transparent 70%); opacity: calc(var(--lvl) * 1.4);
    transform: scale(calc(1 + var(--lvl) * .45)); transition: transform .08s linear, opacity .08s linear; }
.hx-tp.has-video .hx-tp-avatar { display: none; }
.hx-tp-veil { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: .85rem; text-align: center;
    background: rgba(10, 10, 18, .35); backdrop-filter: blur(28px) saturate(.6); -webkit-backdrop-filter: blur(28px) saturate(.6); }
.hx-tp-veil > i { font-size: 1.3rem; opacity: .85; }
.hx-tp.is-veiled video { filter: blur(26px); }
.hx-tp-hand { position: absolute; z-index: 3; left: 12px; top: 10px; font-size: 1.5rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); animation: hxWave 1.2s ease-in-out infinite; transform-origin: 70% 90%; }
@keyframes hxWave { 25% { transform: rotate(-14deg); } 75% { transform: rotate(10deg); } }
.hx-tp.has-hand { border-color: rgba(251, 191, 36, .7); }
.hx-tp-foot { position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; }
.hx-tp-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 10px; border-radius: 10px; background: rgba(6, 6, 12, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font: 600 .8rem var(--font, 'Inter'), sans-serif; color: #fff; }
.hx-tp-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-tp-name small { color: var(--hx-dim); font-weight: 500; }
.hx-tp-name .fa-crown { color: #fbbf24; font-size: .72rem; } .hx-tp-name .fa-shield-halved { color: #a5b4fc; font-size: .72rem; }
.hx-tp-mic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px; background: rgba(244, 63, 94, .85); color: #fff; font-size: .72rem; }
.hx-tp-foot .hx-bars { margin-left: auto; padding: 6px 7px; border-radius: 8px; background: rgba(6, 6, 12, .55); height: 24px; box-sizing: border-box; }
.hx-tp-more { position: absolute; z-index: 4; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(6, 6, 12, .6); color: #fff; cursor: pointer;
    opacity: 0; transition: opacity .2s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hx-tp:hover .hx-tp-more, .hx-tp:focus-within .hx-tp-more { opacity: 1; }
@media (hover: none) { .hx-tp-more { opacity: 1; } }

/* Mode « salle obscure » : pendant le film, les tuiles se font discrètes */
body.hx-cinema-on .hx-tiles { --cols: 6; opacity: .55; transition: opacity .6s; }
body.hx-cinema-on .hx-tiles:hover { opacity: 1; }
body.hx-cinema-on .hx-tiles .hx-tp { aspect-ratio: 4 / 3; border-radius: 14px; }
body.hx-cinema-on .hx-tp-name small, body.hx-cinema-on .hx-tp-foot .hx-bars { display: none; }
body.hx-cinema-on .hx-room { background: #030305; }

/* Panneau latéral */
.hx-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-left: 1px solid var(--hx-line); background: rgba(10, 10, 17, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: opacity .25s; overflow: hidden; }
.hx-side-tabs { display: flex; align-items: center; gap: 4px; padding: 10px; border-bottom: 1px solid var(--hx-line); }
.hx-side-tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 11px; border: 0; background: transparent; color: var(--hx-dim); font: 700 .82rem var(--font, 'Inter'), sans-serif; cursor: pointer; }
.hx-side-tab[aria-selected="true"] { background: var(--hx-raise-2); color: #fff; }
.hx-side-close { margin-left: auto; display: none; }
.hx-side-panel { flex: 1; min-height: 0; overflow: auto; padding: 14px; scrollbar-width: thin; }

/* Rencontre */
.hx-peer { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 16px; margin-bottom: 12px; border-radius: 18px;
    background: radial-gradient(120% 120% at 0 0, rgba(236, 72, 153, .2), transparent 60%), var(--hx-raise); border: 1px solid rgba(236, 72, 153, .28); }
.hx-peer > img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(236,72,153,.35); }
.hx-peer-info strong { display: block; font: 800 1.1rem var(--font-display, 'Outfit'), sans-serif; color: #fff; margin-bottom: 6px; word-break: break-word; }
.hx-peer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hx-peer-time { font: 600 .75rem 'JetBrains Mono', monospace; color: var(--hx-dim); }
.hx-peer-common { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; }
.hx-step-card { padding: 14px; margin-bottom: 12px; border-radius: 16px; background: var(--hx-raise); border: 1px solid var(--hx-line); }
.hx-step-head { display: flex; align-items: center; gap: 8px; font: 700 .72rem 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: #c4b5fd; margin-bottom: 10px; }
.hx-ice { font: 700 1.02rem/1.45 var(--font-display, 'Outfit'), sans-serif; color: #fff; margin: 0 0 6px; }
.hx-wyr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; }
.hx-wyr-opt { padding: 12px 10px; border-radius: 13px; border: 1px solid var(--hx-line-2); background: rgba(255,255,255,.03); color: #fff; font: 600 .84rem/1.35 var(--font, 'Inter'), sans-serif; cursor: pointer; transition: all .2s; }
.hx-wyr-opt:hover { border-color: rgba(168, 85, 247, .5); }
.hx-wyr-opt.is-mine { background: rgba(168, 85, 247, .25); border-color: rgba(168, 85, 247, .7); }
.hx-wyr-opt.is-peer { box-shadow: inset 0 0 0 2px rgba(236, 72, 153, .8); }
.hx-wyr-or { align-self: center; font: 700 .7rem 'JetBrains Mono', monospace; color: var(--hx-dim); text-transform: uppercase; }
.hx-wyr-result { margin: 10px 0 2px; font-size: .82rem; color: var(--hx-dim); min-height: 1.2em; }
.hx-ladder { list-style: none; display: flex; gap: 6px; margin: 0 0 10px; padding: 0; }
.hx-ladder li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; border-radius: 11px; background: rgba(255,255,255,.03); border: 1px solid var(--hx-line); font: 600 .72rem var(--font, 'Inter'), sans-serif; color: var(--hx-dim); }
.hx-ladder li.is-done { color: #a7f3d0; border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.hx-ladder li.is-half { color: #fde68a; border-color: rgba(251, 191, 36, .4); }
.hx-step-card > p { font-size: .82rem; line-height: 1.5; margin: 0 0 10px; }
.hx-rate-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hx-safety-note { font-size: .74rem; color: var(--hx-dim); line-height: 1.5; padding: 0 4px; }
.hx-safety-note i { color: #f9a8d4; margin-right: 4px; }

/* Chat */
.hx-chat { display: flex; flex-direction: column; padding: 0; }
.hx-chat[hidden] { display: none !important; }
.hx-chat-log { flex: 1; min-height: 0; overflow: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.hx-msg { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 6px 6px; border-radius: 10px; animation: hxMsgIn .25s var(--hx-ease) both; }
.hx-msg:hover { background: rgba(255,255,255,.025); }
@keyframes hxMsgIn { from { opacity: 0; transform: translateY(6px); } }
.hx-msg:not(.is-grouped) { margin-top: 8px; }
.hx-msg.is-grouped { grid-template-columns: 1fr; padding: 1px 6px 1px 48px; }
.hx-msg-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.hx-msg-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.hx-msg-meta strong { color: #fff; font-size: .84rem; }
.hx-msg.is-self .hx-msg-meta strong { color: #d8b4fe; }
.hx-msg-meta time { font-size: .68rem; color: var(--hx-dim); }
.hx-msg-text { color: #dcdcea; font-size: .88rem; line-height: 1.45; word-break: break-word; white-space: pre-wrap; }
.hx-msg.is-system { display: block; text-align: center; color: var(--hx-dim); font-size: .76rem; padding: 6px 10px; margin: 6px 0; border-radius: 10px; background: rgba(255,255,255,.025); }
.hx-typing { min-height: 22px; padding: 0 16px; font-size: .74rem; color: var(--hx-dim); font-style: italic; }
.hx-reacts { display: flex; gap: 4px; padding: 6px 12px; overflow-x: auto; scrollbar-width: none; }
.hx-reacts button { flex: none; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--hx-line); background: var(--hx-raise); font-size: 1.15rem; cursor: pointer; transition: transform .15s var(--hx-ease), background-color .2s; }
.hx-reacts button:hover { transform: translateY(-3px) scale(1.08); background: var(--hx-raise-2); }
.hx-reacts button:active { transform: scale(.9); }
/* Anti-spoil : chat masqué chez soi ; spoilers ||…|| floutés */
.hx-chat-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 0; color: var(--hx-dim); font-size: .76rem; font-weight: 600; }
.hx-chat-tools > span i { color: #c4b5fd; margin-right: 4px; }
.hx-chat-tools .hx-chip { min-height: 30px; cursor: pointer; font-size: .74rem; }
.hx-chat-tools .hx-chip[aria-pressed="true"] { background: rgba(244, 63, 94, .18); border-color: rgba(244, 63, 94, .55); color: #fecdd3; box-shadow: none; }
.hx-chat-tools .hx-chip[aria-pressed="true"]::before { content: none; }
.hx-chat-veil { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px 20px; text-align: center; color: var(--hx-dim); }
.hx-chat-veil > i { font-size: 1.8rem; color: #fda4af; opacity: .8; }
.hx-chat-veil strong { color: #fff; font-size: 1rem; }
.hx-chat-veil p { margin: 0; max-width: 28ch; font-size: .82rem; line-height: 1.45; }
.hx-chat-veil-count { font: 600 .74rem 'JetBrains Mono', monospace; color: #c4b5fd; }
.hx-chat-veil-count:empty { display: none; }
.hx-chat.is-veiled .hx-chat-log, .hx-chat.is-veiled .hx-typing { display: none; }
.hx-spoiler { padding: 0 3px; border-radius: 4px; background: #3a3550; color: transparent; text-shadow: none; cursor: pointer; transition: background .2s, color .2s; user-select: none; -webkit-user-select: none; }
.hx-spoiler:hover { background: #4a4466; }
.hx-spoiler:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 1px; }
.hx-spoiler.is-revealed { background: rgba(255,255,255,.08); color: inherit; cursor: text; user-select: text; -webkit-user-select: text; }
.hx-chat-form .hx-icon-btn:not(.is-accent) { flex: none; }
.hx-chat-form { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0)); border-top: 1px solid var(--hx-line); }
.hx-chat-form input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--hx-line-2); background: rgba(255,255,255,.04); color: #fff; font: 500 .9rem var(--font, 'Inter'), sans-serif; }
.hx-chat-form input:focus { outline: none; border-color: rgba(168, 85, 247, .6); box-shadow: 0 0 0 3px rgba(168, 85, 247, .18); }

/* Membres */
.hx-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hx-person-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 0; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.hx-person-btn:hover { background: var(--hx-raise); }
.hx-person.is-speaking .hx-avatar img { box-shadow: 0 0 0 2px var(--hx-ok); }
.hx-person-name { flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-person-name small { color: var(--hx-dim); font-weight: 500; }
.hx-person-name i { font-size: .7rem; margin-left: 4px; color: #fbbf24; }
.hx-person-name .fa-shield-halved { color: #a5b4fc; }
.hx-person-icons { display: flex; gap: 8px; color: var(--hx-dim); font-size: .8rem; }
.hx-person-icons .is-off { color: #fda4af; }

/* Barre de contrôle */
.hx-dock { flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0)); border-top: 1px solid var(--hx-line);
    background: rgba(8, 8, 14, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hx-dock-group { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid var(--hx-line); }
.hx-dock-btn { --bg: rgba(255,255,255,.06); display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 64px; padding: 8px 8px 6px; border-radius: 15px; border: 0; background: transparent; color: #fff; cursor: pointer;
    transition: background-color .2s; -webkit-tap-highlight-color: transparent; }
.hx-dock-btn:hover { background: rgba(255,255,255,.05); }
.hx-dock-btn:disabled { opacity: .4; cursor: not-allowed; }
.hx-dock-ico { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); font-size: 1.02rem; transition: background-color .2s, transform .15s var(--hx-ease), box-shadow .2s; }
.hx-dock-btn:active .hx-dock-ico { transform: scale(.92); }
.hx-dock-lbl { font: 600 .68rem var(--font, 'Inter'), sans-serif; color: var(--hx-dim); }
.hx-dock-btn[aria-pressed="true"] { --bg: rgba(168, 85, 247, .35); }
#btnToggleMic[aria-pressed="false"] .hx-dock-ico, #btnToggleCam[aria-pressed="false"] .hx-dock-ico { --bg: rgba(244, 63, 94, .22); color: #fecdd3; }
#btnToggleMic[aria-pressed="true"] .hx-dock-ico, #btnToggleCam[aria-pressed="true"] .hx-dock-ico { --bg: rgba(255,255,255,.1); }
#btnToggleMic.is-ptt .hx-dock-ico { --bg: rgba(251, 191, 36, .2); color: #fde68a; }
#btnToggleDeafen[aria-pressed="true"] .hx-dock-ico { --bg: rgba(244, 63, 94, .35); }
#btnToggleHand[aria-pressed="true"] .hx-dock-ico { --bg: rgba(251, 191, 36, .3); color: #fde68a; }
#btnToggleScreen[aria-pressed="true"] .hx-dock-ico { --bg: linear-gradient(135deg, var(--accent, #a855f7), var(--magenta, #ec4899)); }
.hx-level { --lvl: 0; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 0 calc(var(--lvl) * 5px) rgba(52, 211, 153, .55); pointer-events: none; transition: box-shadow .08s linear; }
.hx-dock-btn.is-leave .hx-dock-ico { --bg: linear-gradient(135deg, #f43f5e, #be123c); box-shadow: 0 10px 26px -10px rgba(244, 63, 94, .9); }
.hx-dock-btn.is-next .hx-dock-ico { --bg: linear-gradient(135deg, var(--accent, #a855f7), var(--magenta, #ec4899)); box-shadow: 0 10px 26px -10px rgba(236, 72, 153, .9); }
.hx-dock-btn.is-report .hx-dock-ico { --bg: rgba(244, 63, 94, .18); color: #fecdd3; }
.hx-dock-ico .hx-dotcount { position: absolute; right: -4px; top: -4px; }
.hx-dock-match { border-color: rgba(236, 72, 153, .3); }

/* Réactions flottantes */
.hx-floaters { position: fixed; inset: 0; z-index: 9150; pointer-events: none; overflow: hidden; }
.hx-float { position: absolute; left: var(--x, 50%); bottom: 90px; font-size: 2.2rem; animation: hxFloatUp 2.5s cubic-bezier(.2, .7, .3, 1) forwards; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
@keyframes hxFloatUp { 0% { opacity: 0; transform: translate(0, 20px) scale(.6); } 12% { opacity: 1; transform: translate(0, 0) scale(1.15); } 100% { opacity: 0; transform: translate(var(--dx), -55vh) scale(.9); } }

/* Menu d'un résident */
.hx-menu { position: fixed; z-index: 9300; width: 260px; padding: 8px; border-radius: 16px; background: rgba(20, 20, 32, .97); border: 1px solid var(--hx-line-2); box-shadow: 0 30px 70px -20px rgba(0,0,0,.9);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: hxPop .18s var(--hx-ease) both; }
.hx-menu-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; }
.hx-menu-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hx-menu-head strong { color: #fff; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-menu-vol { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 8px 10px 10px; margin-bottom: 4px; border-radius: 12px; background: rgba(255,255,255,.04); font-size: .78rem; color: var(--hx-dim); }
.hx-menu-vol input { grid-column: 1; accent-color: var(--hx-ok); }
.hx-menu-vol output { font: 600 .74rem 'JetBrains Mono', monospace; color: #fff; }
.hx-menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; color: #e4e4f0; font: 600 .84rem var(--font, 'Inter'), sans-serif; text-decoration: none; cursor: pointer; text-align: left; }
.hx-menu-item:hover, .hx-menu-item:focus-visible { background: rgba(255,255,255,.06); outline: none; }
.hx-menu-item i { width: 18px; text-align: center; color: var(--hx-dim); }
.hx-menu-item.is-danger { color: #fda4af; } .hx-menu-item.is-danger i { color: #fda4af; }
.hx-menu hr { border: 0; border-top: 1px solid var(--hx-line); margin: 6px 4px; }

/* ============================================================================
   FENÊTRES
   ============================================================================ */
.hx-dialog { margin: auto; padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); border: 1px solid var(--hx-line-2); border-radius: 26px; background: #0f0f1a; color: var(--hx-text);
    box-shadow: 0 50px 120px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; }
.hx-dialog.is-narrow { width: min(440px, calc(100% - 24px)); }
.hx-dialog.is-wide { width: min(820px, calc(100% - 24px)); }
.hx-dialog.is-match { width: min(620px, calc(100% - 24px)); }
.hx-dialog[open] { animation: hxDlgIn .3s var(--hx-ease) both; }
@keyframes hxDlgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.hx-dialog::backdrop { background: rgba(4, 4, 10, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hx-dlg { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.hx-dlg.is-center { align-items: center; text-align: center; padding: 30px 26px 22px; gap: 8px; }
.hx-dlg.is-center h2 { font: 800 1.35rem var(--font-display, 'Outfit'), sans-serif; color: #fff; margin: 8px 0 0; }
.hx-dlg-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 22px 22px 16px; border-bottom: 1px solid var(--hx-line);
    background: radial-gradient(100% 140% at 0 0, rgba(168, 85, 247, .14), transparent 60%); }
.hx-dlg-head h2 { font: 800 1.25rem var(--font-display, 'Outfit'), sans-serif; color: #fff; margin: 2px 0 4px; }
.hx-dlg-head p { margin: 0; color: var(--hx-dim); font-size: .86rem; line-height: 1.5; }
.hx-dlg-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgba(168,85,247,.35), rgba(236,72,153,.25)); color: #fff; font-size: 1.1rem; }
.hx-dlg-ico.is-danger { background: rgba(244, 63, 94, .25); color: #fecdd3; }
.hx-dlg-ico.is-rose { background: linear-gradient(135deg, rgba(190, 18, 60, .55), rgba(251, 113, 133, .3)); }
.hx-dlg-body { padding: 18px 22px; overflow: auto; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; }
.hx-dlg-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 22px calc(18px + env(safe-area-inset-bottom, 0)); border-top: 1px solid var(--hx-line); }
.hx-dlg-foot.is-center { justify-content: center; border-top: 0; padding: 14px 0 0; }
.hx-match-step .hx-dlg-foot { padding: 14px 0 0; border-top: 0; }

.hx-field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.hx-field > label, .hx-field > legend, .hx-label { font: 700 .78rem var(--font, 'Inter'), sans-serif; color: #d4d4e4; padding: 0; }
.hx-field small, .hx-label small { color: var(--hx-dim); font-weight: 500; }
.hx-field input[type="text"], .hx-field input[type="url"], .hx-field input[type="password"], .hx-field input[type="email"], .hx-field input[type="number"], .hx-field select, .hx-field textarea, .hx-staff-cap input {
    width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 13px; border: 1px solid var(--hx-line-2); background: rgba(255,255,255,.04); color: #fff; font: 500 .92rem var(--font, 'Inter'), sans-serif; }
.hx-field textarea { resize: vertical; min-height: 84px; }
.hx-field select option { background: #15151f; }
.hx-field input:focus, .hx-field select:focus, .hx-field textarea:focus { outline: none; border-color: rgba(168, 85, 247, .65); box-shadow: 0 0 0 3px rgba(168, 85, 247, .2); }
.hx-hint { font-size: .76rem; color: var(--hx-dim); }
.hx-hint.is-error { color: #fda4af; }
.hx-inline { display: flex; gap: 8px; align-items: center; }
.hx-inline select, .hx-inline input { flex: 1; }

.hx-icons { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.hx-icon-choice input, .hx-seg input, .hx-reasons input { position: absolute; opacity: 0; pointer-events: none; }
.hx-icon-choice span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 13px; border: 1px solid var(--hx-line-2); background: var(--hx-raise); color: var(--hx-dim); font-size: 1.05rem; cursor: pointer; transition: all .2s; }
.hx-icon-choice input:checked + span { color: #fff; border-color: rgba(236, 72, 153, .6); background: linear-gradient(135deg, rgba(168,85,247,.35), rgba(236,72,153,.25)); }
.hx-icon-choice input:focus-visible + span, .hx-seg input:focus-visible + span, .hx-reasons input:focus-visible + span { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.hx-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.hx-seg.is-2 { grid-template-columns: 1fr 1fr; }
.hx-seg.is-wrap { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.hx-seg label { position: relative; }
.hx-seg span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 48px; height: 100%; padding: 8px 12px; border-radius: 13px; border: 1px solid var(--hx-line-2); background: var(--hx-raise);
    color: var(--hx-dim); font: 600 .8rem/1.3 var(--font, 'Inter'), sans-serif; cursor: pointer; transition: all .2s; }
.hx-seg span b { color: #fff; font-size: .92rem; }
.hx-seg input:checked + span { border-color: rgba(236, 72, 153, .6); background: linear-gradient(135deg, rgba(168,85,247,.25), rgba(236,72,153,.18)); color: #fff; }
.hx-seg span input[type="time"] { position: static; opacity: 1; pointer-events: auto; margin-top: 4px; width: 100%; min-height: 30px; padding: 2px 6px; border-radius: 8px; border: 1px solid var(--hx-line-2); background: rgba(0,0,0,.3); color: #fff; font: 600 .82rem 'JetBrains Mono', monospace; color-scheme: dark; }
.hx-reasons { display: grid; gap: 8px; }
.hx-reasons label { position: relative; }
.hx-reasons span { display: block; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--hx-line-2); background: var(--hx-raise); color: #e4e4f0; font-size: .88rem; cursor: pointer; transition: all .2s; }
.hx-reasons input:checked + span { border-color: rgba(244, 63, 94, .6); background: rgba(244, 63, 94, .14); color: #fff; }

.hx-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 14px; background: var(--hx-raise); border: 1px solid var(--hx-line); cursor: pointer; }
.hx-switch-row strong { display: block; color: #fff; font-size: .9rem; }
.hx-switch-row small { display: block; color: var(--hx-dim); font-size: .78rem; margin-top: 2px; line-height: 1.4; }
.hx-switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.14); cursor: pointer; transition: background-color .2s; margin: 0; }
.hx-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--hx-ease); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.hx-switch:checked { background: linear-gradient(135deg, var(--accent, #a855f7), var(--magenta, #ec4899)); }
.hx-switch:checked::after { transform: translateX(20px); }
.hx-switch:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.hx-check-row { display: flex; align-items: center; gap: 10px; color: #e4e4f0; font-size: .88rem; cursor: pointer; }
.hx-check-row input { width: 20px; height: 20px; accent-color: var(--magenta, #ec4899); }

/* Rencontre : préparation, recherche, trouvé */
.hx-match-step { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 16px; overflow: auto; }
.hx-match-step.is-center { align-items: center; text-align: center; gap: 6px; padding-top: 30px; }
.hx-match-step h3 { font: 800 1.3rem var(--font-display, 'Outfit'), sans-serif; color: #fff; margin: 0; }
.hx-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hx-rules li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--hx-raise); color: var(--hx-dim); font-size: .86rem; line-height: 1.45; }
.hx-rules i { color: #f9a8d4; margin-top: 3px; width: 16px; text-align: center; }
.hx-match-timer { font: 600 .8rem 'JetBrains Mono', monospace; color: var(--hx-dim); margin-top: 6px; }
.hx-found { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; margin: 10px 0 18px; }
.hx-found img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #0f0f1a; box-shadow: 0 20px 50px -14px rgba(236,72,153,.8); }
.hx-found-a { animation: hxSlideL .6s var(--hx-ease) both; margin-right: -14px; }
.hx-found-b { animation: hxSlideR .6s var(--hx-ease) both; margin-left: -14px; }
.hx-found-spark { position: relative; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent, #a855f7), var(--magenta, #ec4899)); color: #fff;
    box-shadow: 0 0 0 6px rgba(236,72,153,.2); animation: hxPop .5s .35s var(--hx-ease) both; }
@keyframes hxSlideL { from { opacity: 0; transform: translateX(-60px); } }
@keyframes hxSlideR { from { opacity: 0; transform: translateX(60px); } }
.hx-end-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(168, 85, 247, .3); }
.hx-spinner { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; font-size: 1.4rem; color: #fff; background: conic-gradient(from 0deg, var(--accent, #a855f7), var(--magenta, #ec4899), var(--accent, #a855f7)); animation: hxSpin 2s linear infinite; }

/* Ciné : affiches */
.hx-posters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hx-poster { position: relative; display: block; padding: 0; border-radius: 16px; overflow: hidden; border: 2px solid transparent; background: #000; cursor: pointer; aspect-ratio: 2 / 3; text-align: left;
    transition: transform .3s var(--hx-ease), border-color .2s, box-shadow .3s; }
.hx-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--hx-ease), filter .3s; }
.hx-poster:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -18px rgba(0,0,0,.9); }
.hx-poster:hover img { transform: scale(1.05); }
.hx-poster[aria-checked="true"] { border-color: var(--hx-rose); box-shadow: 0 0 0 4px rgba(251, 113, 133, .25), 0 24px 50px -18px rgba(190, 18, 60, .7); }
.hx-poster-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,.92)); }
.hx-poster-info strong { display: block; color: #fff; font: 700 .8rem/1.25 var(--font-display, 'Outfit'), sans-serif; }
.hx-poster-info small { display: block; color: #d4d4e4; font-size: .7rem; margin-top: 3px; }
.hx-poster-check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--hx-rose); color: #fff; font-size: .75rem; transform: scale(0); transition: transform .25s var(--hx-ease); }
.hx-poster[aria-checked="true"] .hx-poster-check { transform: scale(1); }

/* Âge conseillé : pastille façon signalétique française (TP, -10, -12, -16, -18), simple avertissement */
.hx-age { --age-bg: #16a34a; --age-ring: #fff; --age-ink: #fff; display: inline-grid; place-items: center; flex: none; min-width: 2.1em; height: 2.1em; padding: 0 .3em; border-radius: 999px;
    border: 2px solid var(--age-ring); font: 800 .72rem/1 'JetBrains Mono', monospace; letter-spacing: -.04em; color: var(--age-ink); background: var(--age-bg); box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.hx-age--10 { --age-bg: #ca8a04; }
.hx-age--12 { --age-bg: #ea580c; }
.hx-age--16 { --age-bg: #dc2626; }
.hx-age--18 { --age-bg: #111; --age-ring: #ef4444; --age-ink: #fecaca; }
.hx-age.is-unset { --age-bg: rgba(0,0,0,.55); --age-ring: rgba(255,255,255,.5); --age-ink: rgba(255,255,255,.75); border-style: dashed; }
.hx-age.is-corner { position: absolute; top: 8px; right: 8px; z-index: 1; transition: right .25s var(--hx-ease); }
.hx-poster[aria-checked="true"] .hx-age.is-corner { right: 40px; }
.hx-show-poster .hx-age.is-corner { top: 6px; right: 6px; font-size: .64rem; }
.hx-age-line { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: #fde68a; }
.hx-age-line[hidden] { display: none; }
.hx-program-title small .hx-age { font-size: .58rem; margin-right: 6px; vertical-align: middle; box-shadow: none; }
.hx-seg--age { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.hx-seg--age span { align-items: center; text-align: center; font-size: .8rem; }
.hx-seg .hx-age { display: inline-grid; min-height: 0; height: 2.1em; padding: 0 .3em; border: 2px solid var(--age-ring); border-radius: 999px; background: var(--age-bg); color: var(--age-ink); font-size: .8rem; }
.hx-credit { margin: -6px 0 0; font-size: .72rem; color: var(--hx-dim); }
/* Régie : jour et heure de la séance, programme de la salle */
.hx-when { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--hx-raise); border: 1px solid var(--hx-line); }
.hx-when .hx-chip { cursor: pointer; }
.hx-when .hx-chip[aria-checked="true"] { background: linear-gradient(135deg, rgba(168, 85, 247, .35), rgba(236, 72, 153, .3)); border-color: rgba(236, 72, 153, .55); color: #fff; }
.hx-when-row { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.hx-when-row label { display: inline-flex; align-items: center; gap: 8px; color: var(--hx-dim); font-size: .82rem; font-weight: 600; }
.hx-when-row input { height: 40px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--hx-line-2); background: rgba(255,255,255,.04); color: #fff; font: 600 .9rem var(--font, 'Inter'), sans-serif; color-scheme: dark; }
.hx-when-row input:focus { outline: none; border-color: rgba(168, 85, 247, .65); box-shadow: 0 0 0 3px rgba(168, 85, 247, .2); }
.hx-when-sum { margin: 0; font: 600 .84rem/1.4 var(--font, 'Inter'), sans-serif; color: #f5d0fe; }
.hx-when-sum.is-error { color: #fda4af; }
.hx-program { display: grid; gap: 8px; }
.hx-program-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hx-program-list li { display: grid; grid-template-columns: 34px 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 8px 6px 6px; border-radius: 12px; background: var(--hx-raise); border: 1px solid var(--hx-line); }
.hx-program-list img, .hx-program-list .hx-poster-ph { position: relative; width: 34px; height: 50px; border-radius: 6px; object-fit: cover; padding: 0; font-size: .9rem; }
.hx-program-when strong { display: block; font: 800 1rem 'JetBrains Mono', monospace; color: #fff; }
.hx-program-when small, .hx-program-title small { display: block; color: var(--hx-dim); font-size: .72rem; }
.hx-program-title { min-width: 0; }
.hx-program-title strong { display: block; color: #fff; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* L'affiche du Ciné-Club (Hall) et le programme de la salle */
.hx-marquee { position: relative; margin-bottom: 26px; padding: 20px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(251, 113, 133, .35);
    background: radial-gradient(90% 120% at 0% 0%, rgba(190, 18, 60, .28), transparent 60%), radial-gradient(70% 100% at 100% 100%, rgba(88, 28, 135, .3), transparent 60%), rgba(12, 10, 20, .88);
    box-shadow: 0 30px 80px -40px rgba(190, 18, 60, .6); }
.hx-marquee::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; pointer-events: none;
    background: radial-gradient(circle, #fde68a 0 2px, transparent 3px) 0 50% / 18px 6px repeat-x; opacity: .7; }
.hx-marquee-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hx-marquee-head h2 { margin: 6px 0 0; font: 900 clamp(1.3rem, 3vw, 1.8rem)/1.05 var(--font-display, 'Outfit'), sans-serif; color: #fff; letter-spacing: -.01em; }
.hx-marquee-count { font: 600 .74rem 'JetBrains Mono', monospace; color: var(--hx-dim); white-space: nowrap; }
.hx-showtimes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hx-show { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 18px; scroll-snap-align: start;
    background: rgba(255,255,255,.035); border: 1px solid var(--hx-line); }
.hx-show.is-next { grid-column: span 1; border-color: rgba(251, 113, 133, .45); background: linear-gradient(140deg, rgba(190, 18, 60, .2), rgba(255,255,255,.03)); }
.hx-show.is-live { border-color: rgba(244, 63, 94, .7); box-shadow: 0 0 0 1px rgba(244, 63, 94, .25), 0 20px 50px -24px rgba(244, 63, 94, .7); }
.hx-show-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: #120a1c; box-shadow: 0 16px 34px -16px rgba(0,0,0,.9); }
.hx-show-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-show-poster .hx-poster-ph { padding-bottom: 0; font-size: 1.6rem; }
.hx-show-live { position: absolute; left: 6px; right: 6px; bottom: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 6px; border-radius: 999px;
    background: rgba(190, 18, 60, .85); color: #fff; font: 700 .62rem 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.hx-show-live .hx-live-dot { background: #fff; }
.hx-show-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hx-show-day { font: 700 .66rem 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: #fda4af; }
.hx-show-time { font: 900 1.9rem/1 'JetBrains Mono', monospace; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hx-show-title { margin: 4px 0 0; font: 800 .98rem/1.2 var(--font-display, 'Outfit'), sans-serif; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-show-meta { font-size: .74rem; color: var(--hx-dim); line-height: 1.35; }
.hx-show-status { margin-top: 2px; font: 600 .74rem 'JetBrains Mono', monospace; color: #f5d0fe; font-variant-numeric: tabular-nums; }
.hx-show.is-live .hx-show-status { color: #fecdd3; }
.hx-show-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.hx-program-board { padding: 18px; border-radius: 20px; border: 1px solid rgba(251, 113, 133, .3); background: radial-gradient(90% 120% at 0% 0%, rgba(190, 18, 60, .22), transparent 60%), rgba(12, 10, 20, .9); }
@media (max-width: 720px) {
    .hx-marquee { padding: 16px 14px; border-radius: 20px; margin-bottom: 20px; }
    .hx-showtimes { grid-auto-columns: minmax(250px, 86%); }
    .hx-show { grid-template-columns: 84px minmax(0, 1fr); }
    .hx-show-time { font-size: 1.6rem; }
    .hx-program-list li { grid-template-columns: 30px 56px minmax(0, 1fr) auto; gap: 10px; }
}
/* Vidéothèque : cartes modifiables (nom + affiche) */
.hx-poster-slot { position: relative; min-width: 0; }
.hx-poster-slot .hx-poster { width: 100%; }
/* L'affiche porte déjà le titre : le bandeau texte n'apparaît qu'au survol */
.hx-poster-slot .hx-poster:has(img:not([hidden])) .hx-poster-info { opacity: 0; transition: opacity .2s; }
.hx-poster-slot .hx-poster:has(img:not([hidden])):is(:hover, :focus-visible, [aria-checked="true"]) .hx-poster-info { opacity: 1; }
.hx-poster-ph { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 40%; font-size: 2.2rem; color: rgba(255,255,255,.22);
    background: radial-gradient(80% 60% at 50% 30%, rgba(168, 85, 247, .35), transparent 70%), linear-gradient(160deg, #2a0f3d, #4c0519); }
.hx-poster-edit { position: absolute; top: 8px; left: 8px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
    background: rgba(10, 8, 16, .72); color: #fff; font-size: .78rem; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, transform .2s var(--hx-ease); }
.hx-poster-edit:hover { background: var(--hx-rose); transform: scale(1.08); }
.hx-poster-edit:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.hx-film-edit { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.hx-film-preview { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; }
.hx-film-preview canvas { width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 14px; background: #120a1c; box-shadow: 0 24px 50px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.hx-film-file { font: 500 .68rem/1.4 'JetBrains Mono', monospace; color: var(--hx-dim); word-break: break-all; }
.hx-frames-box { display: flex; flex-direction: column; gap: 8px; }
.hx-frames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hx-frame { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.hx-frame canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx-frame:hover { border-color: rgba(168, 85, 247, .6); }
.hx-frame[aria-checked="true"] { border-color: var(--hx-rose); box-shadow: 0 0 0 3px rgba(251, 113, 133, .25); }
.hx-frame.is-loading { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: hx-shimmer 1.2s linear infinite; cursor: default; }
@keyframes hx-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.hx-frames-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hx-file-btn { align-self: flex-start; cursor: pointer; }
.hx-suggest { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.hx-suggest > small { color: #c4b5fd; font-size: .74rem; font-weight: 600; }
.hx-suggest .hx-chip { min-height: 30px; padding: 0 12px; font-size: .8rem; }
@media (max-width: 720px) {
    .hx-film-edit { grid-template-columns: 1fr; }
    .hx-film-preview { position: static; width: min(200px, 60%); margin: 0 auto; }
    .hx-frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hx-or { display: flex; align-items: center; gap: 12px; color: var(--hx-dim); font: 600 .72rem 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.hx-or::before, .hx-or::after { content: ''; flex: 1; height: 1px; background: var(--hx-line); }

/* Réglages */
.hx-settings { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
.hx-preview-col { display: flex; flex-direction: column; gap: 10px; }
.hx-cam-preview { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1d1730, #0b0b13); border: 1px solid var(--hx-line); }
.hx-cam-preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.hx-cam-off { position: absolute; inset: 0; display: grid; place-items: center; color: var(--hx-dim); font-size: .85rem; }
.hx-cam-off i { margin-right: 6px; }
.hx-meter-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.hx-meter { height: 10px; border-radius: 10px; background: rgba(255,255,255,.08); overflow: hidden; }
.hx-meter span { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--hx-ok), #a3e635 70%, var(--hx-warn)); transition: width .06s linear; }
.hx-form-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hx-keys { font-size: .76rem; color: var(--hx-dim); line-height: 2; margin: 0; }

/* Conciergerie */
.hx-staff-cap { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--hx-raise); }
.hx-staff-cap label { font: 700 .8rem var(--font, 'Inter'), sans-serif; }
.hx-staff-cap input { max-width: 140px; }
.hx-staff-h { font: 800 .95rem var(--font-display, 'Outfit'), sans-serif; color: #fff; margin: 4px 0 -6px; }
.hx-staff-list { display: grid; gap: 8px; }
.hx-staff-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 13px; background: var(--hx-raise); border: 1px solid var(--hx-line); font-size: .86rem; }
.hx-staff-item small { display: block; color: var(--hx-dim); margin-top: 4px; }
.hx-staff-item p { margin: 6px 0 0; color: #d4d4e4; font-size: .82rem; }

/* Notifications */
.hx-toasts { position: fixed; z-index: 9500; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom, 0)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(520px, calc(100% - 24px)); pointer-events: none; }
.hx-toast { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 12px 16px; border-radius: 14px; background: rgba(22, 22, 36, .96); border: 1px solid var(--hx-line-2); color: #fff; font-size: .88rem; line-height: 1.4;
    box-shadow: 0 20px 50px -14px rgba(0,0,0,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: hxToastIn .35s var(--hx-ease) both; pointer-events: auto; }
.hx-toast i { flex: none; color: #c4b5fd; }
.hx-toast.is-ok i { color: var(--hx-ok); } .hx-toast.is-error { border-color: rgba(244, 63, 94, .45); } .hx-toast.is-error i { color: #fda4af; }
.hx-toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@keyframes hxToastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
body:not(.in-hotel-room) .hx-toasts { bottom: calc(24px + env(safe-area-inset-bottom, 0)); }

/* Dans une chambre : le reste du site s'efface (le Hall ne doit pas créer de calque qui retiendrait la chambre sous le menu) */
body.in-hotel-room .hx-main { position: static; z-index: auto; }
body.in-hotel-room .hx-hero, body.in-hotel-room .warden-hud { display: none; }

/* ============================================================================
   ÉCRANS MOYENS ET PETITS
   ============================================================================ */
@media (max-width: 1100px) {
    .hx-bento { grid-template-columns: 1fr 1fr; }
    .hx-match { grid-column: 1 / -1; grid-row: auto; }
    .hx-suites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hx-room-body { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
    .hx-room-body, .hx-room-body.side-closed { grid-template-columns: minmax(0, 1fr); }
    /* Le panneau monte au-dessus de la barre de contrôle, sans jamais la recouvrir */
    .hx-dock { position: relative; z-index: 9250; }
    .hx-side { position: fixed; z-index: 9200; left: 0; right: 0; bottom: var(--hx-dock-h, 70px); height: min(calc(100dvh - var(--hx-dock-h, 70px) - 64px), 620px); border-left: 0; border-top: 1px solid var(--hx-line-2);
        border-radius: 22px 22px 0 0; box-shadow: 0 -30px 80px -20px rgba(0,0,0,.9); transform: translateY(0); visibility: visible; transition: transform .35s var(--hx-ease), visibility 0s; background: rgba(12, 12, 20, .97); }
    .hx-room-body.side-closed .hx-side { transform: translateY(calc(100% + var(--hx-dock-h, 70px) + 24px)); opacity: 1; visibility: hidden; transition: transform .35s var(--hx-ease), visibility 0s .35s; }
    .hx-chat-form { padding-bottom: 12px; }
    .hx-side-close { display: inline-grid; }
    .hx-tiles, .hx-tiles[data-count="5"], .hx-tiles[data-count="6"], .hx-tiles[data-count="7"], .hx-tiles[data-count="8"], .hx-tiles[data-count="9"] { --cols: 2; }
    body.has-stage .hx-tiles, body.hx-cinema-on .hx-tiles { --cols: 3; }
    .hx-stage-video { max-height: 46vh; }
    .hx-settings { grid-template-columns: 1fr; }
    .hx-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .hx-main { padding: 0 14px 90px; }
    .hx-hero { padding: calc(var(--chrome-h, 64px) + 34px) 16px 28px; }
    .hx-bento { grid-template-columns: 1fr; }
    .hx-match { grid-template-columns: 1fr; padding: 24px 20px; text-align: left; }
    .hx-match .hx-radar { max-width: 170px; }
    .hx-tile { padding: 20px; }
    .hx-me-actions { grid-template-columns: 1fr; }
    .hx-suites { grid-template-columns: 1fr; }
    .hx-suite { flex-direction: row; flex-wrap: wrap; }
    .hx-suite-art { width: 96px; height: auto; min-height: 96px; border-bottom: 0; border-right: 1px solid var(--hx-line); font-size: 1.8rem; }
    .hx-suite-num { left: 0; right: 0; text-align: center; top: auto; bottom: 8px; font-size: .62rem; }
    .hx-suite-num::before { content: ''; }
    .hx-suite-state { right: auto; left: 50%; transform: translateX(-50%); top: 8px; white-space: nowrap; font-size: .62rem; }
    .hx-suite-body { flex: 1 1 0; min-width: 0; padding: 14px 14px 4px; }
    .hx-suite-foot { flex: 1 1 100%; padding: 10px 14px 14px; }
    .hx-gate { grid-template-columns: 1fr; padding: 26px 20px; gap: 18px; }
    .hx-gate-art { width: 110px; }
    .hx-key { font-size: 2.4rem; }
    .hx-live-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
    .hx-live-row .hx-faces { display: none; }
    .hx-room-top { padding: 10px 12px; }
    .hx-room-num { display: none; }
    .hx-room-meta .hx-pill:last-child { display: none; }
    .hx-room-tools .hx-icon-btn { width: 38px; height: 38px; }
    #btnRoomFullscreen { display: none; }
    .hx-stage-col { padding: 10px; gap: 10px; }
    .hx-tiles { gap: 8px; }
    .hx-tp { border-radius: 14px; }
    .hx-tiles[data-count="2"] { --cols: 1; }
    body:not(.has-stage) .hx-tiles { grid-auto-rows: minmax(120px, 1fr); }
    .hx-stage-label strong { max-width: 18ch; }
    .hx-vol { display: none; }
    .hx-dock { gap: 6px; flex-wrap: nowrap; justify-content: space-between; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0)); }
    .hx-dock-group { gap: 2px; padding: 0; border: 0; background: none; }
    .hx-dock-match { padding: 0 4px; border-left: 1px solid var(--hx-line); border-right: 1px solid var(--hx-line); border-radius: 0; }
    .hx-dock-btn { min-width: 0; padding: 3px; }
    .hx-dock-lbl { display: none; }
    .hx-dock-ico { width: 42px; height: 42px; }
    .hx-preshow { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .hx-preshow img { display: none; }
    .hx-preshow-body { align-items: center; }
    .hx-preshow-body .hx-btn { align-self: center; }
    .hx-stage-video.is-ended { min-height: 0; }
    .hx-poll-edit-row { grid-template-columns: 26px minmax(0, 1fr); }
    .hx-poll-edit-row .poll-url { grid-column: 2; }
    .hx-dlg-head { padding: 18px 16px 14px; gap: 12px; }
    .hx-dlg-body, .hx-match-step { padding: 16px; }
    .hx-dlg-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0)); }
    .hx-dlg-foot .hx-btn { flex: 1 1 auto; }
    .hx-icons { grid-template-columns: repeat(4, 1fr); }
    .hx-dialog { width: calc(100% - 16px) !important; border-radius: 22px; }
    .hx-toasts { bottom: calc(86px + env(safe-area-inset-bottom, 0)); }
}
@media (max-width: 400px) {
    .hx-dock { gap: 2px; padding-left: 4px; padding-right: 4px; }
    .hx-dock-btn { padding: 2px; }
    .hx-dock-ico { width: 38px; height: 38px; font-size: .9rem; }
    .hx-dock-match { padding: 0 2px; }
    .hx-title { font-size: 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hx-sky-orb, .hx-radar-sweep, .hx-live-dot, .hx-key, .hx-tp-hand, .hx-spinner { animation: none !important; }
    .hx-room, .hx-dialog[open], .hx-room-card, .hx-tp, .hx-msg, .hx-toast, .hx-found img, .hx-found-spark { animation: none !important; }
    .hx-float { display: none; }
    .hx-intro, .hx-intro *, .hx-endscene, .hx-endscene *, .hx-frame { animation: none !important; }
    .hx-poll-fill { transition: none; }
}

/* Pause de la régie : annonce pour toute la salle, comme au cinéma (incident technique, entracte, pause) */
.hx-notice { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: clamp(10px, 3cqi, 28px); text-align: center;
    background: rgba(6, 3, 10, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.hx-notice.is-incident { background: radial-gradient(70% 80% at 50% 45%, rgba(190, 18, 60, .3), transparent 70%), rgba(6, 3, 10, .9); }
.hx-notice.is-break { background: radial-gradient(70% 80% at 50% 45%, rgba(245, 158, 11, .24), transparent 70%), rgba(6, 3, 10, .9); }
.hx-notice-card { display: flex; flex-direction: column; align-items: center; gap: clamp(4px, 1.3cqi, 10px); max-width: min(560px, 100%); }
.hx-notice-ico { display: grid; place-items: center; width: clamp(34px, 8cqi, 62px); height: clamp(34px, 8cqi, 62px); border-radius: 50%; font-size: clamp(.95rem, 3.2cqi, 1.6rem); color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 0 0 6px rgba(245, 158, 11, .16), 0 12px 30px -10px rgba(239, 68, 68, .8); animation: hx-notice-pulse 2.2s ease-in-out infinite; }
.hx-notice.is-break .hx-notice-ico { background: linear-gradient(135deg, #fbbf24, #f97316); }
.hx-notice.is-pause .hx-notice-ico { background: rgba(255, 255, 255, .14); box-shadow: none; animation: none; }
.hx-notice .hx-kicker em { font-style: normal; color: var(--hx-rose); }
.hx-notice-title { font: 800 clamp(1rem, 4.4cqi, 2.1rem)/1.1 var(--font-display, 'Outfit'), sans-serif; color: #fff; }
.hx-notice-text { margin: 0; font-size: clamp(.78rem, 2.5cqi, 1.06rem); line-height: 1.4; color: #ece6f6; }
.hx-notice-msg { margin: 0; padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: clamp(.76rem, 2.3cqi, 1rem); color: #fff; }
.hx-notice-eta { font: 600 clamp(.64rem, 1.9cqi, .85rem) 'JetBrains Mono', monospace; letter-spacing: .05em; color: #fde68a; }
@keyframes hx-notice-pulse { 50% { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0), 0 12px 30px -10px rgba(239, 68, 68, .8); } }
@container (max-width: 440px) { .hx-notice .hx-kicker { display: none; } .hx-notice .hx-btn { min-height: 30px; } }

/* Régie : nombre de spectateurs qui signalent un souci */
.hx-has-badge { position: relative; }
.hx-btn-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff;
    font: 700 .66rem/18px 'JetBrains Mono', monospace; text-align: center; box-shadow: 0 0 0 2px #0b0710; }
.hx-incident-reports { margin: 0 0 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .12); color: #fecaca; font-size: .85rem; }
.hx-reasons.is-2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .hx-reasons.is-2col { grid-template-columns: 1fr; } }

/* Spectateur : « Un souci avec le film ? » */
.hx-issues { display: grid; gap: 8px; }
.hx-issue { display: block; width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--hx-line-2); background: var(--hx-raise); color: #e4e4f0;
    font: inherit; font-size: .93rem; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.hx-issue:hover, .hx-issue:focus-visible { border-color: rgba(236, 72, 153, .55); background: rgba(236, 72, 153, .1); color: #fff; }
@media (prefers-reduced-motion: reduce) { .hx-notice-ico { animation: none; } }

/* Régie : « En ce moment à l'écran » */
.hx-now { display: grid; gap: 6px; margin-bottom: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--hx-line-2); background: linear-gradient(135deg, rgba(168, 85, 247, .12), rgba(236, 72, 153, .07)); }
.hx-now-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.hx-now-top .hx-label { margin: 0; }
.hx-now-state { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .1); }
.hx-now-state.is-live { background: rgba(34, 197, 94, .2); color: #bbf7d0; }
.hx-now-state.is-incident { background: rgba(239, 68, 68, .22); color: #fecaca; }
.hx-now-state.is-pause, .hx-now-state.is-wait { background: rgba(245, 158, 11, .2); color: #fde68a; }
.hx-now-state.is-end { background: rgba(168, 85, 247, .22); color: #e9d5ff; }
.hx-now-title { font-size: 1rem; color: #fff; }
.hx-now-meta { font: 600 .78rem 'JetBrains Mono', monospace; color: var(--hx-dim); }
.hx-now .hx-incident-reports { margin: 2px 0 0; }
.hx-now-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
