/* =====================================================================
   JM RADIO — ACCUEIL (index.html uniquement)
   Feuille dédiée : hero « en ce moment », à suivre, panneaux (titres,
   nouveautés, kiffés, actus, météo, affiches), colonne (Top 30, dédicaces,
   réseaux). Le menu latéral, le lecteur et les modales viennent de style.css.
   ===================================================================== */

:root {
    --hm-panel: rgba(12, 16, 27, 0.78);
    --hm-panel-border: rgba(255, 255, 255, 0.07);
    --hm-panel-hover: rgba(255, 255, 255, 0.14);
    --hm-radius: 22px;
    --hm-text: #F8FAFC;
    --hm-muted: #94A3B8;
    --hm-dim: #64748B;
}

body.page-accueil .container { max-width: 1500px; padding: 30px 36px 150px; }

/* ---------- Utilitaires ---------- */
.hm-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.hm-sec-head h2 { font-size: 0.86rem; font-weight: 800; color: #E2E8F0; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 0.9px; margin: 0; }
.hm-sec-head h2 i { color: var(--gold); }
.hm-sec-head a { color: var(--hm-muted); font-size: 0.84rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.hm-sec-head a:hover { color: var(--gold); }
.hm-sec-head a i { font-size: 0.7rem; transition: transform 0.2s; }
.hm-sec-head a:hover i { transform: translateX(3px); }

.hm-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--gold); background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.25); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.hm-chip.green { color: #34D399; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.3); }
.hm-chip.pink { color: #F9A8D4; background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.35); }
.hm-chip.red { color: #FCA5A5; background: rgba(231, 37, 53, 0.14); border-color: rgba(231, 37, 53, 0.4); }
.hm-chip.grey { color: #CBD5E1; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.12); }

.hm-nav-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: #E2E8F0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; transition: all 0.2s ease; flex-shrink: 0; }
.hm-nav-btn:hover { background: rgba(251, 191, 36, 0.18); border-color: rgba(251, 191, 36, 0.45); color: var(--gold); }
.hm-nav-btn:active { transform: scale(0.94); }

.hm-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.hm-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); cursor: pointer; transition: all 0.3s ease; }
.hm-dots span.active { width: 20px; border-radius: 4px; background: var(--gold); }

.hm-scroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hm-scroll::-webkit-scrollbar { display: none; }

.hm-empty { padding: 26px 16px; text-align: center; color: var(--hm-muted); font-size: 0.9rem; border: 1px dashed rgba(255, 255, 255, 0.1); border-radius: 14px; width: 100%; }
.hm-empty i { display: block; font-size: 1.4rem; margin-bottom: 8px; color: var(--hm-dim); }

/* ---------- Badges de rang : médailles or / argent / bronze ---------- */
.rank-badge, .top5-rank-bento {
    width: 36px; height: 36px; min-width: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums;
    color: #E2E8F0; background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 6px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}
.rank-badge.rank-1, .top5-item-bento.rank-1 .top5-rank-bento {
    background: linear-gradient(145deg, #FFF3B0 0%, #FBBF24 48%, #B45309 100%); color: #3B2300; border-color: #FDE68A;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 0 0 3px rgba(251, 191, 36, 0.18), 0 4px 14px rgba(251, 191, 36, 0.4);
}
.rank-badge.rank-2, .top5-item-bento.rank-2 .top5-rank-bento {
    background: linear-gradient(145deg, #FFFFFF 0%, #CBD5E1 48%, #64748B 100%); color: #0F172A; border-color: #F1F5F9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 0 3px rgba(203, 213, 225, 0.14), 0 4px 14px rgba(148, 163, 184, 0.3);
}
.rank-badge.rank-3, .top5-item-bento.rank-3 .top5-rank-bento {
    background: linear-gradient(145deg, #FFD9B3 0%, #F97316 48%, #7C2D12 100%); color: #FFF7ED; border-color: #FDBA74;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 3px rgba(249, 115, 22, 0.14), 0 4px 14px rgba(249, 115, 22, 0.3);
}

/* =====================================================================
   HERO — en ce moment
   ===================================================================== */
.hm-hero { position: relative; border-radius: var(--hm-radius); overflow: hidden; background: #070A12; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); min-height: 330px; display: flex; }
.hm-hero-bg { position: absolute; inset: 0; z-index: 0; }
.hm-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(1.4) brightness(0.5); transform: scale(1.2); transition: opacity 0.6s ease; }
.hm-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5, 8, 16, 0.96) 0%, rgba(5, 8, 16, 0.82) 45%, rgba(5, 8, 16, 0.3) 100%); }
.hm-hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 36px; padding: 34px 40px; width: 100%; min-width: 0; }
.hm-cover-wrap { position: relative; flex-shrink: 0; }
.hm-hero-cover { width: 230px; height: 230px; border-radius: 18px; object-fit: cover; display: block; background: #111827; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 0.4s ease; }
.hm-hero:hover .hm-hero-cover { transform: scale(1.02); }
.hm-eq { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 3px; align-items: flex-end; height: 18px; padding: 5px 6px; border-radius: 8px; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.3s; box-sizing: content-box; }
.hm-eq i { width: 4px; background: var(--gold); border-radius: 2px; height: 30%; animation: hmEq 1s ease-in-out infinite; }
.hm-eq i:nth-child(2) { animation-delay: 0.15s; } .hm-eq i:nth-child(3) { animation-delay: 0.3s; } .hm-eq i:nth-child(4) { animation-delay: 0.45s; }
.hm-hero.playing .hm-eq { opacity: 1; }
@keyframes hmEq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

.hm-hero-text { flex: 1; min-width: 0; }
.hm-badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.hm-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; }
.hm-live i { font-size: 0.5rem; color: #9CA3AF; }
.hm-live.on { background: var(--jmradio-red); border-color: transparent; box-shadow: 0 0 0 4px rgba(231, 37, 53, 0.2); }
.hm-live.on i { color: #fff; animation: hmBlink 1.2s infinite; }
@keyframes hmBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hm-show-label { font-size: 0.82rem; color: #CBD5E1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hm-show-label b { color: #fff; }
.hm-hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 900; line-height: 1.08; color: #fff; letter-spacing: -0.5px; margin: 0 0 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.hm-hero-artist { font-size: 1.15rem; color: var(--gold); font-weight: 600; margin: 0 0 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hm-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 800; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent; transition: all 0.2s ease; color: #fff; font-family: inherit; text-decoration: none; line-height: 1; }
.hm-btn-play { background: linear-gradient(135deg, #FF3B4E, #E72535); box-shadow: 0 10px 25px rgba(231, 37, 53, 0.35); text-transform: uppercase; letter-spacing: 0.4px; }
.hm-btn-play:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(231, 37, 53, 0.5); }
.hm-btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); }
.hm-btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.25); }

/* bouton « je kiffe » du hero : remet à plat le style générique .btn-kiffe de style.css */
.hm-hero .btn-kiffe { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px; font-weight: 800; font-size: 0.95rem; cursor: pointer; font-family: inherit; line-height: 1; margin: 0; width: auto; box-shadow: none; text-transform: none; letter-spacing: 0; background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.4); color: #FFB3C6; transition: all 0.2s ease; }
.hm-hero .btn-kiffe i { color: #EC4899; font-size: 0.95rem; }
.hm-hero .btn-kiffe:hover { background: rgba(236, 72, 153, 0.22); transform: translateY(-2px); }
.hm-hero .btn-kiffe.liked { background: linear-gradient(135deg, #EC4899, #E72535); border-color: transparent; color: #fff; box-shadow: 0 10px 25px rgba(236, 72, 153, 0.35); }
.hm-hero .btn-kiffe.liked i { color: #fff; }
.hm-hero .btn-kiffe .kiffe-count-val { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 0.85rem; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; }

.hm-hero-host { position: absolute; right: 0; top: 0; bottom: 0; width: 44%; display: none; z-index: 1; pointer-events: none; }
.hm-hero-host img { width: 100%; height: 100%; object-fit: cover; object-position: center; mask-image: linear-gradient(90deg, transparent 0%, #000 45%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.hm-hero.is-live .hm-hero-host { display: block; }
.hm-hero.is-live .hm-hero-inner { padding-right: 34%; }

/* =====================================================================
   À SUIVRE — prochaines émissions (cartes visuelles)
   ===================================================================== */
.hm-next { margin: 22px 0 28px; }
.hm-next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hm-next-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--hm-panel); border: 1px solid var(--hm-panel-border); text-decoration: none; color: inherit; transition: all 0.25s ease; min-width: 0; }
.hm-next-card:hover { border-color: rgba(251, 191, 36, 0.4); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4); }
.hm-next-card.is-placeholder { opacity: 0.8; }
.hm-next-media { position: relative; aspect-ratio: 16 / 7; background: linear-gradient(135deg, #1E293B, #0B1220); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hm-next-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.hm-next-card:hover .hm-next-media img { transform: scale(1.05); }
.hm-next-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 7, 18, 0.15) 0%, rgba(3, 7, 18, 0) 40%, rgba(3, 7, 18, 0.75) 100%); pointer-events: none; }
.hm-next-fallback { font-size: 1.6rem; color: #334155; }
.hm-next-media img + .hm-next-fallback { display: none; }
.hm-next-media .hm-chip { position: absolute; left: 10px; top: 10px; z-index: 2; backdrop-filter: blur(6px); }
.hm-next-time { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; background: rgba(8, 12, 22, 0.72); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.14); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.hm-next-time i { font-size: 0.7rem; color: var(--gold); }
.hm-next-body { padding: 12px 14px 14px; min-width: 0; }
.hm-next-title { font-weight: 800; color: #fff; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.hm-next-host { font-size: 0.8rem; color: var(--hm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.hm-next-host i { font-size: 0.72rem; color: var(--gold); }

/* =====================================================================
   GRILLE PRINCIPALE & PANNEAUX
   ===================================================================== */
.hm-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.hm-main, .hm-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hm-panel { background: var(--hm-panel); border: 1px solid var(--hm-panel-border); border-radius: var(--hm-radius); padding: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transition: border-color 0.3s ease; min-width: 0; }
.hm-panel:hover { border-color: var(--hm-panel-hover); }
.hm-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hm-ico { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; background: rgba(251, 191, 36, 0.12); color: var(--gold); border: 1px solid rgba(251, 191, 36, 0.2); }
.hm-ico.red { background: rgba(231, 37, 53, 0.14); color: #FF6B78; border-color: rgba(231, 37, 53, 0.3); }
.hm-ico.orange { background: rgba(249, 115, 22, 0.14); color: #FDBA74; border-color: rgba(249, 115, 22, 0.3); }
.hm-ico.pink { background: rgba(236, 72, 153, 0.14); color: #F9A8D4; border-color: rgba(236, 72, 153, 0.3); }
.hm-ico.blue { background: rgba(59, 130, 246, 0.14); color: #93C5FD; border-color: rgba(59, 130, 246, 0.3); }
.hm-ico.sky { background: rgba(14, 165, 233, 0.14); color: #7DD3FC; border-color: rgba(14, 165, 233, 0.3); }
.hm-ico.green { background: rgba(16, 185, 129, 0.14); color: #6EE7B7; border-color: rgba(16, 185, 129, 0.3); }
.hm-ico.purple { background: rgba(139, 92, 246, 0.14); color: #C4B5FD; border-color: rgba(139, 92, 246, 0.3); }
.hm-panel-head .hm-title { flex: 1; min-width: 0; }
.hm-panel-head h2 { font-size: 1.1rem; font-weight: 800; color: var(--hm-text); margin: 0; letter-spacing: -0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-panel-head .hm-sub { display: block; font-size: 0.76rem; font-weight: 500; color: var(--hm-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ---------- Derniers titres diffusés ---------- */
.hm-track { flex: 0 0 150px; scroll-snap-align: start; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px; overflow: hidden; transition: all 0.25s ease; min-width: 0; }
.hm-track:hover { transform: translateY(-4px); border-color: rgba(251, 191, 36, 0.4); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35); }
.hm-track-img { position: relative; aspect-ratio: 1; background: #0F172A; overflow: hidden; }
.hm-track-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.hm-track:hover .hm-track-img img { transform: scale(1.06); }
.hm-track-time { position: absolute; left: 8px; top: 8px; font-size: 0.68rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; background: rgba(0, 0, 0, 0.62); padding: 3px 7px; border-radius: 6px; backdrop-filter: blur(4px); }
.hm-track-info { padding: 10px 11px 12px; }
.hm-track-title { font-size: 0.88rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-track-artist { font-size: 0.76rem; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* ---------- Nouveautés ---------- */
.hm-new-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hm-new { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px; overflow: hidden; transition: all 0.25s ease; min-width: 0; position: relative; }
.hm-new:hover { transform: translateY(-4px); border-color: rgba(249, 115, 22, 0.45); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35); }
.hm-new-img { aspect-ratio: 1; background: #0F172A; overflow: hidden; position: relative; }
.hm-new-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.hm-new:hover .hm-new-img img { transform: scale(1.06); }
.hm-new-img .hm-chip { position: absolute; left: 8px; top: 8px; }
.hm-new-info { padding: 10px 12px 12px; text-align: center; }
.hm-new-title { font-size: 0.9rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-new-artist { font-size: 0.76rem; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* ---------- Top 9 des sons les plus kiffés (rendu par player-common.js) ---------- */
.top-kiffes-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.top-kiffe-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 14px; padding: 10px 12px; transition: all 0.25s ease; }
.top-kiffe-card:hover { transform: translateY(-2px); border-color: rgba(236, 72, 153, 0.4); background: rgba(236, 72, 153, 0.05); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.tk-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.tk-cover { width: 46px; height: 46px; min-width: 46px; border-radius: 10px; overflow: hidden; background: #0F172A; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); }
.tk-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-info { min-width: 0; flex: 1; }
.tk-title { font-weight: 800; font-size: 0.93rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.tk-artist { font-weight: 600; font-size: 0.78rem; color: var(--hm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-kiffe-card { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; cursor: pointer; outline: none; background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.4); border-radius: 20px; padding: 6px 12px; color: #FF6699; font-weight: 800; font-size: 0.85rem; transition: all 0.2s ease; font-variant-numeric: tabular-nums; font-family: inherit; }
.btn-kiffe-card i { color: #EC4899; }
.btn-kiffe-card span { color: #fff; font-weight: 900; }
.btn-kiffe-card:hover { background: rgba(236, 72, 153, 0.26); transform: scale(1.04); }
.btn-kiffe-card.liked { background: linear-gradient(135deg, #EC4899 0%, #E72535 100%); border-color: transparent; color: #fff; box-shadow: 0 0 14px rgba(236, 72, 153, 0.45); }
.btn-kiffe-card.liked i { color: #fff; }

/* ---------- JM vous informe ---------- */
.hm-news { gap: 14px; }
.hm-news-item { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; gap: 20px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); text-decoration: none; color: inherit; transition: all 0.25s ease; min-width: 0; }
.hm-news-item:hover { border-color: rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.05); }
.hm-news-img { width: 150px; height: 150px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: #0F172A; border: 1px solid rgba(255, 255, 255, 0.06); }
.hm-news-body { flex: 1; min-width: 0; }
.hm-news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hm-news-source { font-size: 0.74rem; color: var(--hm-dim); font-weight: 600; }
.hm-news-item h3 { font-size: 1.08rem; font-weight: 800; color: #fff; margin: 0 0 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-news-item p { font-size: 0.88rem; color: var(--hm-muted); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- JM Météo ---------- */
.hm-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); margin-right: 7px; vertical-align: middle; animation: hmLiveDot 1.6s infinite; }
@keyframes hmLiveDot { 0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); } 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.05); } }
.hm-meteo { gap: 14px; }
.hm-city { flex: 0 0 calc(33.333% - 10px); scroll-snap-align: start; position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); background: #0F172A; min-width: 0; }
.hm-city img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-city::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 7, 18, 0.1) 0%, rgba(3, 7, 18, 0.05) 40%, rgba(3, 7, 18, 0.85) 100%); }
.hm-city-info { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.hm-city-name { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.hm-city-extra { font-size: 0.74rem; color: #CBD5E1; margin-top: 3px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.hm-city-extra:empty { display: none; }
.hm-city-temp { display: inline-flex; align-items: center; gap: 8px; background: rgba(8, 12, 22, 0.72); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; padding: 7px 12px; color: #fff; font-size: 1.3rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.hm-city-temp .meteo-icon { font-size: 1.4rem; line-height: 1; }
.hm-city-temp .meteo-icon:empty { display: none; }
.hm-city.pending .hm-city-temp { color: var(--hm-muted); font-size: 1rem; }

/* ---------- Au plus proche de nos auditeurs ---------- */
.hm-une-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hm-une { border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); transition: all 0.25s ease; min-width: 0; }
.hm-une:hover { border-color: rgba(16, 185, 129, 0.45); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }
.hm-une img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hm-une-cap { padding: 14px 16px 16px; }
.hm-une-cap h3 { font-size: 1.05rem; font-weight: 800; color: var(--gold); margin: 0 0 4px; }
.hm-une-cap p { font-size: 0.86rem; color: var(--hm-muted); margin: 0; line-height: 1.45; }

/* =====================================================================
   COLONNE : Top 30 (markup généré par player-common.js)
   ===================================================================== */
.top5-bento .bento-header { gap: 10px; }
.top5-bento .bento-header .hm-title { flex: 1; min-width: 0; }
#topRankRangeBadge { font-size: 0.74rem !important; font-weight: 800 !important; white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; background: rgba(251, 191, 36, 0.12) !important; border: 1px solid rgba(251, 191, 36, 0.3) !important; color: var(--gold) !important; padding: 4px 10px !important; border-radius: 20px !important; }
.top5-list-bento { display: flex; flex-direction: column; gap: 8px; min-height: 330px; }
.top5-item-bento { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid transparent; transition: all 0.25s ease; min-width: 0; }
.top5-item-bento:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.top5-item-bento img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #0F172A; border: 1px solid rgba(255, 255, 255, 0.06); flex-shrink: 0; }
.top5-item-bento.rank-1 img { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45), 0 6px 14px rgba(0, 0, 0, 0.4); }
.top5-item-bento.rank-1 .top5-rank-bento { width: 40px; height: 40px; min-width: 40px; font-size: 1.05rem; }
.top5-details-bento { min-width: 0; flex: 1; }
.top5-title-bento { font-weight: 800; color: #fff; font-size: 0.95rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top5-artist-bento { font-size: 0.8rem; color: var(--hm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.top30-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.top30-nav .top30-arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: #CBD5E1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; transition: all 0.2s ease; }
.top30-nav .top30-arrow:hover { background: rgba(251, 191, 36, 0.18); color: var(--gold); border-color: rgba(251, 191, 36, 0.4); }
#top30DotsNav { margin: 0 !important; }
.btn-see-top30 { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 12px 16px; background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(245, 158, 11, 0.08)); border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 14px; color: var(--gold); font-weight: 800; font-size: 0.9rem; text-decoration: none; transition: all 0.25s ease; }
.btn-see-top30:hover { background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(245, 158, 11, 0.14)); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(251, 191, 36, 0.2); }
.btn-see-top30 i:last-child { transition: transform 0.25s ease; }
.btn-see-top30:hover i:last-child { transform: translateX(4px); }

/* ---------- Vos dédicaces (fil de messages) ---------- */
.hm-nav-wide { width: auto; padding: 0 12px; border-radius: 12px; gap: 6px; font-size: 0.78rem; font-weight: 700; }
.hm-dedi-wrap { max-height: 400px; overflow: hidden; position: relative; }
.hm-dedi-wrap.scrolling { mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); }
.hm-dedi-list { display: flex; flex-direction: column; gap: 12px; }
.hm-dedi-list.scrolling { animation: hmDediScroll var(--hm-dedi-duration, 40s) linear infinite; }
.hm-dedi-list.scrolling:hover { animation-play-state: paused; }
@keyframes hmDediScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hm-dedi { display: flex; gap: 10px; align-items: flex-end; }
.hm-dedi-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.82rem; color: #fff; background: linear-gradient(135deg, #E72535, #9F1239); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.hm-dedi-avatar.c2 { background: linear-gradient(135deg, #F59E0B, #B45309); }
.hm-dedi-avatar.c3 { background: linear-gradient(135deg, #3B82F6, #1E40AF); }
.hm-dedi-avatar.c4 { background: linear-gradient(135deg, #EC4899, #9D174D); }
.hm-dedi-avatar.c5 { background: linear-gradient(135deg, #10B981, #065F46); }
.hm-dedi-bubble { min-width: 0; flex: 1; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px 16px 16px 4px; padding: 10px 13px; }
.hm-dedi-name { font-size: 0.74rem; font-weight: 800; color: var(--gold); margin-bottom: 3px; letter-spacing: 0.2px; }
.hm-dedi-msg { font-size: 0.9rem; color: #E8EDF5; line-height: 1.45; word-break: break-word; }
.hm-dedi-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.hm-dedi-actions .hm-btn { justify-content: center; padding: 11px 8px; font-size: 0.8rem; gap: 7px; white-space: nowrap; }
.hm-dedi-actions .hm-btn i { color: var(--gold); }

/* ---------- JM Radio est partout ---------- */
.hm-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); text-decoration: none; color: inherit; transition: all 0.25s ease; min-width: 0; }
.hm-link:hover { transform: translateY(-2px); border-color: var(--c, rgba(255, 255, 255, 0.2)); background: rgba(255, 255, 255, 0.05); }
.hm-link i { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; background: rgba(255, 255, 255, 0.06); color: var(--c, #fff); }
.hm-link b { display: block; font-size: 0.88rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-link small { display: block; font-size: 0.74rem; color: var(--hm-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-link.wide { grid-column: 1 / -1; }
.hm-link.android { --c: #3DDC84; } .hm-link.windows { --c: #38BDF8; } .hm-link.insta { --c: #F472B6; } .hm-link.tiktok { --c: #F8FAFC; } .hm-link.discord { --c: #818CF8; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1280px) {
    .hm-grid { grid-template-columns: minmax(0, 1fr); }
    .hm-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
    .hm-side .hm-panel-links { grid-column: 1 / -1; }
    .hm-hero.is-live .hm-hero-inner { padding-right: 40px; }
    .hm-hero-host { width: 36%; opacity: 0.45; }
}
@media (max-width: 1100px) {
    .hm-next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-next-card:nth-child(3) { display: none; }
    .hm-new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    body.page-accueil .container { padding: 10px 14px 40px !important; }
    .hm-hero { min-height: 0; }
    .hm-hero-host { display: none !important; }
    .hm-hero-inner { flex-direction: column; text-align: center; gap: 20px; padding: 26px 18px 24px; }
    .hm-hero-cover { width: 170px; height: 170px; }
    .hm-badges { justify-content: center; }
    .hm-hero h1 { font-size: 1.75rem; }
    .hm-hero-artist { font-size: 1rem; white-space: normal; margin-bottom: 18px; }
    .hm-actions { justify-content: center; }
    .hm-actions .hm-btn, .hm-hero .btn-kiffe { padding: 12px 16px; font-size: 0.9rem; }
    .hm-next { margin: 16px 0 20px; }
    .hm-next-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 2px 2px 8px; scrollbar-width: none; }
    .hm-next-grid::-webkit-scrollbar { display: none; }
    .hm-next-card { flex: 0 0 78%; scroll-snap-align: start; }
    .hm-next-card:nth-child(3) { display: flex; }
    .hm-dedi-actions { grid-template-columns: 1fr; }
    .hm-dedi-actions .hm-btn { justify-content: flex-start; }
    .hm-grid, .hm-main, .hm-side { gap: 16px; }
    .hm-side { grid-template-columns: minmax(0, 1fr); display: flex; align-items: stretch; }
    .hm-panel { padding: 16px; border-radius: 18px; }
    .hm-panel-head { margin-bottom: 14px; }
    .hm-panel-head h2 { font-size: 1rem; white-space: normal; }
    .hm-panel-head > .hm-chip { display: none; }
    .hm-sec-head h2 { font-size: 0.78rem; letter-spacing: 0.6px; }
    .hm-sec-head a { font-size: 0.78rem; white-space: nowrap; }
    .hm-track { flex-basis: 136px; }
    .hm-city { flex-basis: 80%; }
    .hm-news-item { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
    .hm-news-img { width: 100%; height: 170px; }
    .hm-une-grid { grid-template-columns: 1fr; }
    .top-kiffes-container { grid-template-columns: 1fr; gap: 10px; }
    .hm-links { grid-template-columns: 1fr 1fr; }
    .hm-dedi-wrap { max-height: 360px; }
}
@media (max-width: 480px) {
    .hm-new-grid { gap: 10px; }
    .hm-hero-cover { width: 150px; height: 150px; }
    .hm-hero h1 { font-size: 1.55rem; }
    .hm-city { flex-basis: 92%; }
    .hm-links { grid-template-columns: 1fr; }
}

/* =====================================================================
   TCHAT EN DIRECT (colonne de droite)
   ===================================================================== */
@media (min-width: 1281px) {
    .hm-grid { align-items: stretch; }
    .hm-side { height: 100%; }
    .hm-side .hm-chat { flex: 1 1 auto; }
}
.hm-chat { display: flex; flex-direction: column; min-height: 520px; padding-bottom: 16px; }
.chat-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 0.64rem; font-weight: 900; letter-spacing: 1px; color: #FCA5A5; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); flex: none; }
.chat-live i { width: 7px; height: 7px; border-radius: 50%; background: #EF4444; animation: chatPulse 1.6s ease-out infinite; }
@keyframes chatPulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 100% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } }
.chat-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin: -4px 0 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.06); }
.chat-tabs[hidden] { display: none; }
.chat-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--hm-muted); font-family: inherit; font-size: 0.8rem; font-weight: 800; cursor: pointer; transition: all .15s ease; }
.chat-tabs button:hover { color: #fff; }
.chat-tabs button.active { background: rgba(16, 185, 129, 0.16); color: #6EE7B7; }
.chat-tabs button[data-room="adultes"].active { background: rgba(239, 68, 68, 0.16); color: #FCA5A5; }
.chat-box { position: relative; flex: 1 1 auto; min-height: 300px; border-radius: 16px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; }
.chat-msgs { position: absolute; inset: 0; overflow-y: auto; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.chat-msgs[hidden] { display: none; }
.chat-msg { position: relative; display: flex; gap: 9px; align-items: flex-start; max-width: 100%; }
.chat-av { width: 30px; height: 30px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 900; color: #0B0F17; }
.chat-bubble { min-width: 0; padding: 7px 11px 8px; border-radius: 4px 14px 14px 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.05); }
.chat-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 1px; }
.chat-meta b { font-size: 0.8rem; font-weight: 800; }
.chat-meta time { font-size: 0.66rem; color: var(--hm-dim); font-variant-numeric: tabular-nums; }
.chat-text { font-size: 0.86rem; color: #E2E8F0; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-msg.me { flex-direction: row-reverse; }
.chat-msg.me .chat-bubble { border-radius: 14px 4px 14px 14px; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.25); }
.chat-msg.me .chat-meta { justify-content: flex-end; }
.chat-msg.staff .chat-bubble { background: linear-gradient(135deg, rgba(231, 37, 53, 0.2), rgba(231, 37, 53, 0.06)); border-color: rgba(231, 37, 53, 0.35); }
.chat-msg.staff .chat-meta b { color: #FCA5A5 !important; }
.chat-msg.staff .chat-av { background: linear-gradient(135deg, #E72535, #B91C1C) !important; color: #fff; }
.chat-report { position: absolute; top: 2px; right: 0; width: 24px; height: 24px; border: 0; border-radius: 7px; background: rgba(8, 11, 19, 0.85); color: #64748B; font-size: 0.66rem; cursor: pointer; opacity: 0; transition: opacity .15s ease, color .15s ease; }
.chat-msg:hover .chat-report, .chat-report:focus-visible { opacity: 1; }
.chat-report:hover { color: #F87171; }
.chat-msg.me .chat-report { display: none; }
.chat-sys { align-self: center; font-size: 0.74rem; color: var(--hm-dim); text-align: center; padding: 2px 10px; }
.chat-empty { margin: auto; text-align: center; color: var(--hm-dim); font-size: 0.84rem; padding: 20px; }
.chat-empty i { display: block; font-size: 1.6rem; color: #34D399; margin-bottom: 8px; }
.chat-new { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--gradient-gold); color: #111; font-family: inherit; font-size: 0.76rem; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.chat-new[hidden] { display: none; }

.chat-join { position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 18px; }
.chat-join[hidden] { display: none; }
.chat-join-ico { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #10B981, #059669); box-shadow: 0 10px 24px rgba(16, 185, 129, 0.3); margin-bottom: 4px; }
.chat-join > b { font-size: 1.02rem; color: #fff; }
.chat-join > span { font-size: 0.8rem; color: var(--hm-muted); max-width: 280px; }
.chat-join-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 8px; width: 100%; max-width: 320px; margin-top: 6px; }
.chat-join input[type=text], .chat-join input[type=number] { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(7, 10, 18, 0.8); color: #fff; font-family: inherit; font-size: 0.9rem; outline: none; }
.chat-join input:focus { border-color: #34D399; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.chat-rules { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 0.76rem; color: var(--hm-muted); }
.chat-rules i { width: 16px; color: #34D399; margin-right: 6px; }
.chat-accept { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; color: var(--hm-muted); cursor: pointer; }
.chat-accept input { accent-color: #10B981; }
.chat-accept a { color: var(--gold); }
.chat-err { min-height: 1em; font-size: 0.78rem; font-weight: 700; color: #F87171; }
.chat-err:empty { display: none; }
.chat-join-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #10B981, #059669); color: #fff; font-family: inherit; font-weight: 800; font-size: 0.88rem; cursor: pointer; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }
.chat-join-btn:hover { filter: brightness(1.08); }
a.chat-join-btn { text-decoration: none; }
.chat-join-acc { margin-top: 4px; font-size: 0.76rem; color: var(--hm-muted); }
.chat-join-acc i { color: var(--gold); margin-right: 4px; }
.chat-join-acc a { color: var(--gold); font-weight: 700; }
.chat-tab-lock { display: inline-flex; font-size: 0.66rem; opacity: .75; }
.chat-tab-lock[hidden] { display: none; }
.chat-lvl { font-size: 0.66rem; }
.chat-msg.member .chat-av { color: #0B0F17; font-size: 0.74rem; }
.chat-ok { color: #34D399; }
.chat-locked { position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px; text-align: center; background: radial-gradient(circle at 50% 30%, rgba(239, 68, 68, 0.12), transparent 60%); }
.chat-locked[hidden] { display: none; }
.chat-locked-ico { width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff; background: linear-gradient(135deg, #EF4444, #B91C1C); box-shadow: 0 12px 26px rgba(239, 68, 68, 0.3); }
.chat-locked > b { font-size: 1.02rem; color: #fff; }
.chat-locked > span { max-width: 320px; font-size: 0.82rem; line-height: 1.55; color: var(--hm-muted); }
.chat-locked-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.chat-ghost-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); color: #fff; font-weight: 800; font-size: 0.85rem; text-decoration: none; }
.chat-ghost-btn:hover { border-color: rgba(251, 191, 36, 0.5); }

.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form[hidden] { display: none; }
.chat-banned { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); color: #FECACA; font-size: 0.82rem; font-weight: 700; line-height: 1.45; }
.chat-banned[hidden] { display: none; }
.chat-banned i { color: #F87171; margin-top: 2px; }
.chat-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(7, 10, 18, 0.8); color: #fff; font-family: inherit; font-size: 0.9rem; outline: none; }
.chat-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18); }
.chat-form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: var(--gradient-gold); color: #111; font-size: 0.95rem; cursor: pointer; }
.chat-form button:disabled { opacity: .5; cursor: wait; }
.chat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 0.74rem; color: var(--hm-dim); }
.chat-foot[hidden] { display: none; }
.chat-foot b { color: #CBD5E1; }
.chat-foot button { border: 0; background: none; color: var(--hm-muted); font-family: inherit; font-size: 0.74rem; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.chat-toast { position: absolute; left: 12px; right: 12px; bottom: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(239, 68, 68, 0.92); color: #fff; font-size: 0.8rem; font-weight: 700; text-align: center; z-index: 2; }

@media (max-width: 1280px) {
    .hm-side .hm-chat { grid-column: 1 / -1; height: 560px; }
}
@media (max-width: 992px) {
    .hm-side .hm-chat { height: 520px; min-height: 0; }
    .chat-report { opacity: 1; }
}

/* Station JM Classiks écoutée : badge doré dans le bandeau */
.hm-live.station { color: #FDE68A; background: rgba(251, 191, 36, 0.14); border-color: rgba(251, 191, 36, 0.4); }
.hm-live.station i { color: #FBBF24; }

/* Lien « Tout voir » vers la page Actus (06/10) */
.hm-all { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; color: var(--hm-muted, #94A3B8); font-size: 0.8rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color 0.2s ease; }
.hm-all i { font-size: 0.68rem; transition: transform 0.2s ease; }
.hm-all:hover { color: var(--gold); }
.hm-all:hover i { transform: translateX(3px); }

/* Actus de l'accueil : s'ouvrent sur le site (06/10) */
.hm-news-item { cursor: pointer; }
.hm-news-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Tchat : photo de profil des membres (l'icône reste dessous si la photo ne charge pas) */
.chat-av { position: relative; overflow: hidden; }
.chat-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* =====================================================================
   SONDAGE EXPRESS (lancé depuis /gestion, entre « À suivre » et la grille)
   ===================================================================== */
.hm-poll { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 28px; align-items: center; margin: 0 0 28px; padding: 28px 28px 24px; border-radius: var(--hm-radius); background: radial-gradient(120% 150% at 0% 0%, rgba(231, 37, 53, 0.18), rgba(231, 37, 53, 0) 55%), radial-gradient(90% 120% at 100% 100%, rgba(251, 191, 36, 0.07), rgba(251, 191, 36, 0) 60%), var(--hm-panel); border: 1px solid rgba(231, 37, 53, 0.3); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); overflow: hidden; animation: hmPollIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hm-poll[hidden] { display: none; }
.hm-poll-time { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 255, 255, 0.06); }
.hm-poll-time i { display: block; height: 100%; width: var(--left, 100%); background: linear-gradient(90deg, #E72535, #FF6B78); transition: width 1s linear; border-radius: 0 3px 3px 0; }
.hm-poll.is-ended .hm-poll-time { display: none; }
.hm-poll-top { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.hm-poll-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.9px; text-transform: uppercase; color: #FF8A94; background: rgba(231, 37, 53, 0.14); border: 1px solid rgba(231, 37, 53, 0.36); padding: 6px 12px; border-radius: 999px; }
.hm-poll-badge .fa-bolt { font-size: 0.72rem; }
.hm-poll-dot { width: 7px; height: 7px; border-radius: 50%; background: #FF4D5E; animation: hmPollPulse 1.6s infinite; }
.hm-poll.is-ended .hm-poll-dot { animation: none; background: #64748B; }
.hm-poll.is-ended .hm-poll-badge { color: #CBD5E1; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
.hm-poll-timer { font-size: 0.82rem; font-weight: 700; color: var(--hm-muted); display: inline-flex; gap: 7px; align-items: center; font-variant-numeric: tabular-nums; }
.hm-poll-timer b { color: #F8FAFC; font-weight: 800; }
.hm-poll-q { margin: 0 0 12px; font-size: clamp(1.18rem, 1.7vw, 1.5rem); line-height: 1.3; font-weight: 800; color: var(--hm-text); letter-spacing: -0.3px; overflow-wrap: anywhere; }
.hm-poll-foot { margin: 0; color: var(--hm-muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.hm-poll-foot span { display: inline-flex; align-items: center; gap: 6px; }
.hm-poll-foot b { color: #E2E8F0; font-variant-numeric: tabular-nums; }
.hm-poll-foot .ok { color: #6EE7B7; font-weight: 700; }
.hm-poll-opts { display: grid; gap: 10px; }
.hm-poll-opt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 11px 16px 11px 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: var(--hm-text); font: inherit; font-weight: 700; font-size: 0.95rem; text-align: left; cursor: pointer; overflow: hidden; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.hm-poll-opt:hover { border-color: rgba(231, 37, 53, 0.55); background: rgba(231, 37, 53, 0.08); transform: translateY(-1px); }
.hm-poll-opt:active { transform: scale(0.99); }
.hm-poll-opt:focus-visible { outline: 2px solid #FF6B78; outline-offset: 2px; }
.hm-poll-letter { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; color: #FF8A94; background: rgba(231, 37, 53, 0.14); border: 1px solid rgba(231, 37, 53, 0.3); position: relative; z-index: 1; transition: all 0.2s ease; }
.hm-poll-txt { flex: 1; min-width: 0; position: relative; z-index: 1; overflow-wrap: anywhere; line-height: 1.3; }
.hm-poll-go { color: var(--hm-dim); font-size: 0.8rem; position: relative; z-index: 1; transition: transform 0.2s ease, color 0.2s ease; }
.hm-poll-opt:hover .hm-poll-go { color: #FF6B78; transform: translateX(3px); }
.hm-poll-opt.picked { border-color: #E72535; background: rgba(231, 37, 53, 0.16); }
.hm-poll-opt.picked .hm-poll-letter { background: #E72535; color: #FFFFFF; border-color: #E72535; }
.hm-poll-opts.sending .hm-poll-opt:not(.picked) { opacity: 0.55; }
/* Résultats */
.hm-poll-opt.res, .hm-poll-opt.res:hover { cursor: default; transform: none; border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.035); }
.hm-poll-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: linear-gradient(90deg, rgba(231, 37, 53, 0.32), rgba(231, 37, 53, 0.12)); box-shadow: inset -2px 0 0 rgba(255, 107, 120, 0.55); transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hm-poll-fill.zero { box-shadow: none; }
.hm-poll-opt.lead .hm-poll-fill { background: linear-gradient(90deg, rgba(231, 37, 53, 0.52), rgba(231, 37, 53, 0.2)); }
.hm-poll-pct { position: relative; z-index: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: #F8FAFC; min-width: 46px; text-align: right; }
.hm-poll-opt.res.mine { border-color: rgba(231, 37, 53, 0.65); }
.hm-poll-opt.mine .hm-poll-letter { background: #E72535; color: #FFFFFF; border-color: #E72535; }
.hm-poll-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #FF8A94; vertical-align: 1px; }
.hm-poll-tag.win { color: #FBBF24; }
@keyframes hmPollPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }
@keyframes hmPollIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
    .hm-poll { grid-template-columns: 1fr; gap: 16px; padding: 24px 18px 18px; margin-bottom: 24px; }
    .hm-poll-q { margin-bottom: 8px; }
}

/* Tchat : date au-dessus du premier message de chaque jour */
.chat-day { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--hm-muted); }
.chat-day::before, .chat-day::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }
.chat-day span { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
/* Évolution dans le Top (▲ ▼ = NEW) — publiée depuis /gestion */
.top5-mv { flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; padding: 3px 7px; border-radius: 8px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.2px; line-height: 1; white-space: nowrap; }
.top5-mv i { font-size: 0.8rem; }
.top5-mv.up { color: #34D399; background: rgba(16, 185, 129, 0.13); }
.top5-mv.down { color: #F87171; background: rgba(239, 68, 68, 0.13); }
.top5-mv.same { color: #94A3B8; background: rgba(255, 255, 255, 0.06); }
.top5-mv.new { color: #111; background: linear-gradient(135deg, #FBBF24, #D97706); }
