:root {
  --bg: #0e0e10;
  --bg-2: #18181b;
  --bg-3: #1f1f23;
  --bg-hover: #26262c;
  --line: #2f2f35;
  --text: #efeff1;
  --muted: #adadb8;
  --purple: #9147ff;
  --purple-2: #772ce8;
  --live: #eb0400;
  --qc: #2b6cff;      /* bleu fleurdelisé */
  --top-h: 50px;
  --side-w: 240px;
  --radius: 6px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ── Barre du haut ───────────────────────────── */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 12px; background: var(--bg-2); box-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.logo { display: flex; align-items: center; gap: 6px; color: var(--purple); font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.logo span { color: var(--text); }
.logo b { color: var(--purple); }
.topnav { display: flex; gap: 4px; margin-left: 14px; }
.topnav a { padding: 6px 10px; font-weight: 600; font-size: 15px; border-radius: 4px; color: var(--text); }
.topnav a:hover { color: #bf94ff; }
.topnav a.active { color: #bf94ff; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 4px; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--bg-hover); }

.search { position: relative; flex: 0 1 400px; }
.search input {
  width: 100%; height: 36px; padding: 0 40px 0 12px; border-radius: 6px;
  background: var(--bg-3); color: var(--text); border: 2px solid transparent; font: inherit;
}
.search input:hover { border-color: var(--line); }
.search input:focus { outline: none; border-color: var(--purple); background: var(--bg); }
.search-icon { position: absolute; right: 10px; top: 9px; color: var(--muted); pointer-events: none; }
.fleur { font-size: 20px; color: var(--qc); }
.pill { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--bg-3); color: var(--muted); white-space: nowrap; }
.pill.live { background: rgba(235,4,0,.15); color: #ff6b6b; }

/* ── Barre latérale ──────────────────────────── */
.sidebar {
  position: fixed; top: var(--top-h); bottom: 0; left: 0; width: var(--side-w); z-index: 10;
  background: var(--bg-2); overflow-y: auto; padding: 10px 0;
}
.side-title { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; margin: 4px 10px 8px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-item a { display: flex; align-items: center; gap: 10px; padding: 5px 10px; }
.side-item a:hover { background: var(--bg-hover); }
.side-item .meta { flex: 1; min-width: 0; }
.side-item .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item .game { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item .count { font-size: 13px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.side-item.offline .avatar { filter: grayscale(1); opacity: .6; }
.side-item.offline .count { color: var(--muted); }
body.side-collapsed .sidebar { width: 52px; }
body.side-collapsed .side-title, body.side-collapsed .side-item .meta, body.side-collapsed .side-item .count { display: none; }
body.side-collapsed .main { margin-left: 52px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }

.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar.md { width: 40px; height: 40px; font-size: 16px; }
.avatar.ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--live); }

/* ── Contenu ─────────────────────────────────── */
.main { margin: var(--top-h) 0 0 var(--side-w); padding: 24px 30px 60px; min-height: calc(100vh - var(--top-h)); outline: none; }
.section-title { font-size: 18px; font-weight: 700; margin: 30px 0 12px; }
.section-title .accent { color: #bf94ff; }
.hero-h { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin: 0 0 4px; }
.hero-sub { color: var(--muted); margin: 0 0 18px; }

.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 20px;
  border-radius: var(--radius); background: linear-gradient(90deg, rgba(43,108,255,.18), rgba(145,71,255,.14));
  border: 1px solid rgba(145,71,255,.35);
}
.banner code { background: rgba(0,0,0,.4); padding: 1px 5px; border-radius: 3px; }
.banner p { margin: 2px 0 0; color: var(--muted); }

/* Lecteur vedette */
.featured { display: grid; grid-template-columns: minmax(0, 1fr) 320px; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }
.player { position: relative; aspect-ratio: 16/9; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.featured-info { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.featured-info .who { display: flex; gap: 10px; align-items: center; }
.featured-info .who .name { font-size: 16px; font-weight: 700; }
.featured-info .title { color: var(--text); }
.featured-info .muted { color: var(--muted); }

/* Grille de chaînes */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 16px; }
.card { display: block; }
.thumb {
  position: relative; aspect-ratio: 16/9; border-radius: 0; overflow: visible;
  background: var(--bg-3); transition: transform .12s ease;
}
.thumb::before {   /* le décalage violet façon Twitch au survol */
  content: ""; position: absolute; inset: 0; background: var(--purple); z-index: -1;
}
.thumb-inner { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, #1b2a55, #2a1550); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; font-weight: 800; color: rgba(255,255,255,.18); }
.card:hover .thumb, .card:focus-visible .thumb { transform: translate(6px, -6px); }
.badge-live { position: absolute; top: 10px; left: 10px; background: var(--live); color: #fff; font-weight: 700; font-size: 12px; padding: 0 5px; border-radius: 4px; text-transform: uppercase; }
.badge-off { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.7); color: var(--muted); font-weight: 600; font-size: 12px; padding: 0 5px; border-radius: 4px; }
.badge-viewers { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,.65); font-size: 13px; padding: 0 5px; border-radius: 4px; }
.card-body { display: flex; gap: 10px; margin-top: 10px; }
.card-body .meta { min-width: 0; }
.card-body .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body .sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body .sub:hover { color: #bf94ff; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { background: var(--bg-3); color: var(--muted); font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.tag.qc { background: rgba(43,108,255,.22); color: #9dbbff; }

/* État du scan */
.scan-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: -8px 0 18px; }
.scan-line.err { color: #ff6b6b; }
.spin { width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.found { font-size: 13px; }
.found .tag { display: inline-block; margin: 2px 0; }
.side-more { background: none; border: 0; color: #bf94ff; font-weight: 600; font-size: 13px; padding: 6px 10px; cursor: pointer; }
.side-more:hover { text-decoration: underline; }
body.side-collapsed .side-more { display: none; }
@media (max-width: 900px) { .side-more { display: none; } }

/* Filtres */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.chip { background: var(--bg-3); border: 0; padding: 5px 12px; border-radius: 99px; font-weight: 600; cursor: pointer; }
.chip:hover { background: var(--bg-hover); }
.chip[aria-pressed="true"] { background: var(--purple); }

/* Page chaîne */
.channel { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; margin: -24px -30px -60px; height: calc(100vh - var(--top-h)); }
.channel-main { overflow-y: auto; }
.channel-head { display: flex; gap: 14px; align-items: center; padding: 16px 20px; }
.channel-head h1 { margin: 0; font-size: 20px; }
.channel-head .title { margin: 2px 0; }
.channel-head .game { color: #bf94ff; font-weight: 600; }
.channel-head .stats { margin-left: auto; text-align: right; color: var(--muted); white-space: nowrap; }
.channel-head .stats .viewers { color: #ff6b6b; font-weight: 700; font-size: 15px; }
.btn { background: var(--purple); border: 0; padding: 7px 14px; border-radius: 4px; font-weight: 600; cursor: pointer; display: inline-block; }
.btn:hover { background: var(--purple-2); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn[hidden] { display: none; }
.btn.ghost { background: var(--bg-3); }
.btn.ghost:hover { background: var(--bg-hover); }
.about { margin: 10px 20px 30px; padding: 18px; background: var(--bg-2); border-radius: var(--radius); color: var(--muted); }
.about h2 { color: var(--text); font-size: 16px; margin: 0 0 6px; }
.chat { background: var(--bg-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.chat-head { height: 50px; display: grid; place-items: center; font-size: 13px; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.chat iframe { flex: 1; width: 100%; border: 0; }

.empty { color: var(--muted); padding: 30px; text-align: center; background: var(--bg-2); border-radius: var(--radius); }
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: var(--radius); }
@keyframes sh { to { background-position: -200% 0; } }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1100px) {
  .featured { grid-template-columns: 1fr; }
  .channel { grid-template-columns: 1fr; height: auto; }
  .chat { height: 520px; border-left: 0; border-top: 1px solid var(--line); }
}
/* Liens du menu dans le tiroir (mobile / tablette seulement) */
.side-nav { display: none; }
@media (max-width: 1000px) {
  /* La barre latérale devient un tiroir qui s'ouvre avec ☰ */
  .topnav { display: none; }
  .sidebar { width: min(290px, 86vw); transform: translateX(-100%); transition: transform .2s ease; z-index: 40; box-shadow: 8px 0 30px rgba(0,0,0,.5); }
  body.side-open .sidebar { transform: none; }
  body.side-open::after { content: ""; position: fixed; inset: var(--top-h) 0 0 0; background: rgba(0,0,0,.55); z-index: 30; }
  .main, body.side-collapsed .main { margin-left: 0; }
  body.side-collapsed .sidebar { width: min(290px, 86vw); }
  body.side-collapsed .side-title, body.side-collapsed .side-item .meta, body.side-collapsed .side-item .count { display: revert; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 8px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .side-nav a { padding: 9px 10px; border-radius: 6px; font-weight: 700; font-size: 15px; }
  .side-nav a:hover, .side-nav a.active { background: var(--bg-hover); color: #bf94ff; }
  .side-more { display: block; }
  .search { flex: 1 1 auto; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
@media (max-width: 600px) {
  .main, body.side-collapsed .main { margin-left: 0; padding: 16px 16px 40px; }
  .topbar { gap: 8px; padding: 0 8px; }
  .search input { padding-right: 10px; }
  .search-icon, .dice + #help-keys, #admin-link { display: none; }
  .featured-info { padding: 14px; }
  .chat { height: 70vh; }
  .grid { grid-template-columns: 1fr; }
  .head-btns .btn { flex: 1 1 auto; text-align: center; }
  .channel { margin: -16px -16px -40px; }
  .logo span, .fleur, .pill { display: none; }
  .hero-h { font-size: 28px; }
  .channel-head { flex-wrap: wrap; }
  .channel-head .stats { margin-left: 0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .thumb { transition: none; } .skeleton { animation: none; } }

/* ── Non validés ─────────────────────────────── */
.badge-pending { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.75); color: #f5c451; border: 1px solid rgba(245,196,81,.5); font-weight: 700; font-size: 11px; padding: 0 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .3px; }
.pending-note .badge-pending, .side-item .badge-pending { position: static; }
.card.pending .thumb-inner { filter: saturate(.55) brightness(.85); }
.card.pending:hover .thumb-inner { filter: none; }
.card.pending .thumb::before { background: #f5c451; }
.section-help { color: var(--muted); margin: -6px 0 14px; font-size: 13px; }
.muted-n { color: var(--muted); font-weight: 600; font-size: .8em; margin-left: 4px; }
.side-sub { margin-top: 18px; color: #f5c451; }
.side-item.pending .avatar { box-shadow: 0 0 0 2px #f5c451; }
.pending-note { display: flex; gap: 10px; align-items: center; margin: 12px 20px 0; padding: 10px 14px; border-radius: var(--radius); background: rgba(245,196,81,.08); border: 1px solid rgba(245,196,81,.35); color: var(--muted); }

/* ── Multi-stream ────────────────────────────── */
.head-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.channel-head .head-btns { justify-content: flex-end; }
.multi { display: grid; grid-template-columns: minmax(0, 1fr) 340px; margin: -24px -30px -60px; height: calc(100vh - var(--top-h)); }
.multi.no-chat { grid-template-columns: minmax(0, 1fr); }
.multi.no-chat .multi-chat { display: none; }
.multi-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 10px; gap: 10px; }
.multi-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.multi-bar h1 { margin: 0; font-size: 18px; }
.multi-help { color: var(--muted); font-size: 13px; margin-right: auto; }
.multi-help kbd { background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 12px; }
.multi-grid { flex: 1; min-height: 0; display: grid; gap: 8px; grid-template-columns: 1fr; grid-auto-rows: minmax(0, 1fr); }
.multi-grid[data-n="2"] { grid-template-columns: 1fr 1fr; }
.multi-grid[data-n="3"], .multi-grid[data-n="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tile { position: relative; display: flex; flex-direction: column; background: #000; border-radius: 6px; overflow: hidden; border: 2px solid transparent; min-height: 0; transition: border-color .15s; }
.tile.active { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple), 0 0 18px rgba(145,71,255,.35); }
.tile-head { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: var(--bg-2); font-size: 13px; cursor: pointer; flex: none; }
.tile.active .tile-head { background: #2a1a4a; }
.tile-num { background: var(--bg-3); border-radius: 4px; padding: 0 6px; font-weight: 700; font-size: 12px; }
.tile-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-name:hover { color: #bf94ff; }
.tile-meta { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.tile.is-live .tile-meta { color: #ff8a8a; }
.tile-x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.tile-x:hover { background: var(--bg-hover); color: var(--text); }
.tile-body { position: relative; flex: 1; min-height: 0; }
.tile-player, .tile-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Fenêtres muettes : une couche cliquable par-dessus le lecteur pour choisir l'audio */
.tile-hit { position: absolute; inset: 0; background: transparent; border: 0; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.tile-hit span { opacity: 0; background: rgba(0,0,0,.7); padding: 8px 14px; border-radius: 99px; font-weight: 700; transition: opacity .15s; }
.tile-hit:hover span, .tile-hit:focus-visible span { opacity: 1; }
.tile.active .tile-hit { display: none; } /* la fenêtre écoutée garde les contrôles du lecteur */
.tile-add { background: var(--bg-2); border: 2px dashed var(--line); overflow: auto; }
.add-inner { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.add-title { font-weight: 700; }
.add-inner input { height: 34px; background: var(--bg-3); color: var(--text); border: 2px solid transparent; border-radius: 6px; padding: 0 10px; font: inherit; }
.add-inner input:focus { outline: none; border-color: var(--purple); }
.add-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.add-list button { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 5px 6px; border-radius: 4px; cursor: pointer; text-align: left; }
.add-list button:hover { background: var(--bg-hover); }
.add-list .an { font-weight: 600; white-space: nowrap; }
.add-list .ag { color: var(--muted); font-size: 12px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-list .av { color: #ff8a8a; font-size: 12px; white-space: nowrap; }
.add-list .av em { color: #f5c451; font-style: normal; }
.add-empty { color: var(--muted); font-size: 13px; padding: 6px; }
@media (max-width: 1100px) {
  .multi { grid-template-columns: 1fr; height: auto; }
  .multi-main { height: calc(100vh - var(--top-h)); }
  .multi-chat { height: 520px; }
}
@media (max-width: 700px) {
  .multi { margin: -16px -16px -40px; }
  .multi-grid[data-n] { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: minmax(200px, 1fr); }
  .multi-main { height: auto; }
  .multi-help { display: none; }
}

/* ── Connexion Twitch ────────────────────────── */
.user-area { display: flex; align-items: center; }
.btn-twitch { display: inline-flex; align-items: center; gap: 6px; background: var(--purple); color: #fff; }
.btn-twitch:hover { background: var(--purple-2); }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 3px; border-radius: 99px; font-weight: 700; }
.user-chip:hover { background: var(--bg-hover); }
.btn.ok { background: #00a35c; } .btn.ok:hover { background: #008f50; }
.btn.no { background: #c4282b; } .btn.no:hover { background: #a91f22; }
@media (max-width: 600px) { .btn-twitch .lbl, .user-chip span { display: none; } }

/* ── Chat QC Live ────────────────────────────── */
.qc-chat { display: flex; flex-direction: column; min-height: 0; position: relative; }
.qc-chat-head { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.qc-chat-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-chat-mode { background: var(--bg-3); border: 0; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.qc-chat-mode:hover { color: var(--text); }
.qc-chat-lines { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.qc-chat-lines .line { padding: 3px 12px; }
.qc-chat-lines .line:hover { background: rgba(255,255,255,.04); }
.qc-chat-lines .line.from-qc { background: linear-gradient(90deg, rgba(43,108,255,.38), rgba(43,108,255,.12) 60%, rgba(43,108,255,.04)); box-shadow: inset 3px 0 0 #3d7bff; }
.qc-chat-lines .line.from-qc:hover { background: linear-gradient(90deg, rgba(43,108,255,.48), rgba(43,108,255,.18) 60%, rgba(43,108,255,.06)); }
.qc-chat-lines .line.deleted .txt { opacity: .35; text-decoration: line-through; }
.qc-chat-lines .who { font-weight: 700; }
.qc-chat-lines .sys { color: var(--muted); font-style: italic; }
.qc-chat-lines .notice { border-left: 3px solid var(--purple); background: rgba(145,71,255,.08); margin: 3px 0; }
.qc-chat-lines a { color: #bf94ff; text-decoration: underline; }
.qc-chat-lines .badge { width: 18px; height: 18px; vertical-align: middle; position: relative; top: -1px; margin-right: 3px; display: inline-block; }
.qc-chat-lines .emote { height: 28px; vertical-align: middle; margin: -6px 0; display: inline-block; }
.mention { background: rgba(255,72,72,.25); color: #fff; border-radius: 3px; padding: 0 2px; }
.qc-badge { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; vertical-align: middle; position: relative; top: -1px; border-radius: 4px; background: linear-gradient(135deg, #2b6cff, #1a3fa8); color: #fff; font-size: 12px; line-height: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.qc-chat-resume { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); background: rgba(0,0,0,.85); border: 1px solid var(--line); color: var(--text); padding: 6px 12px; border-radius: 99px; cursor: pointer; font-size: 12px; z-index: 2; }
.qc-chat-official { flex: 1; width: 100%; border: 0; }
.qc-chat-form { flex: none; padding: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.qc-chat-form .btn-twitch { justify-content: center; }
.qc-chat-input { display: flex; gap: 6px; }
.qc-chat-input input { flex: 1; min-width: 0; height: 36px; background: var(--bg-3); color: var(--text); border: 2px solid transparent; border-radius: 6px; padding: 0 10px; font: inherit; }
.qc-chat-input input:focus { outline: none; border-color: var(--purple); background: var(--bg); }
.qc-chat-me { font-size: 12px; color: var(--muted); }
.qc-chat-me a { color: #bf94ff; margin-left: 6px; }
.chat.qc-chat { padding: 0; }
#page-chat { min-height: 0; }

/* ── Profil / couleurs ───────────────────────── */
.profil { max-width: 760px; }
.profil-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.profil-head h1 { margin: 0; }
.profil .about { margin: 10px 0; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0; }
.letter { position: relative; font-size: 40px; font-weight: 800; min-width: 38px; text-align: center; padding: 2px 6px; border-radius: 8px; background: var(--bg-3); cursor: pointer; line-height: 1.2; }
.letter:hover { outline: 2px solid var(--purple); }
.letter input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.presets .chip { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.presets .chip input[type=color] { width: 22px; height: 18px; border: 0; padding: 0; background: none; cursor: pointer; }
.chat-preview { background: var(--bg); border-radius: 6px; padding: 10px; margin-bottom: 14px; font-size: 14px; }
.chat-preview .who { font-weight: 700; }
.muted { color: var(--muted); }
.muted a { color: #bf94ff; }
.profil-empty { max-width: 560px; margin: 40px auto; }
.profil-empty h1 { color: var(--text); }

/* ── Signalement ─────────────────────────────── */
.signal-form input { width: 100%; height: 36px; background: var(--bg-3); color: var(--text); border: 2px solid transparent; border-radius: 6px; padding: 0 10px; font: inherit; margin: 8px 0; }
.signal-form input:focus { outline: none; border-color: var(--purple); }

/* ── Barres de défilement (fines et sombres, comme Twitch) ── */
* { scrollbar-width: thin; scrollbar-color: #3a3a42 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #3a3a42; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #55555f; background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }
.sidebar { scrollbar-color: transparent transparent; }
.sidebar:hover { scrollbar-color: #3a3a42 transparent; }

/* L’attribut hidden gagne toujours sur display */
[hidden] { display: none !important; }

/* ── Fenêtre de bienvenue ────────────────────── */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.65); display: grid; place-items: center; padding: 16px; animation: fadeIn .15s ease; }
.modal { width: min(480px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.modal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-head .qc-badge { width: 26px; height: 26px; font-size: 16px; top: 0; }
.modal p { color: var(--muted); margin: 8px 0; }
.modal .check { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 14px 0 10px; cursor: pointer; }
.modal .check input { width: 18px; height: 18px; accent-color: var(--purple); }
.modal .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.modal .field input { height: 36px; background: var(--bg-3); color: var(--text); border: 2px solid transparent; border-radius: 6px; padding: 0 10px; font: inherit; font-weight: 400; }
.modal .field input:focus { outline: none; border-color: var(--purple); }
.modal-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.modal-btns .btn:disabled { opacity: .45; cursor: default; }
.modal-err { color: #ff8a8a !important; }
.small { font-size: 12px; }
@keyframes fadeIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .modal-back { animation: none; } }

/* ── Favoris, alertes, filtres ───────────────── */
.side-fav { display: flex; align-items: center; justify-content: space-between; color: #ffd23f; }
.side-bell { background: none; border: 0; cursor: pointer; font-size: 14px; padding: 2px 4px; border-radius: 4px; opacity: .7; }
.side-bell:hover, .side-bell.on { opacity: 1; background: var(--bg-hover); }
body.side-collapsed .side-bell { display: none; }
.fav-btn.on { color: #ffd23f; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 18px 0 4px; padding: 12px; background: var(--bg-2); border-radius: var(--radius); }
.filter { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.filter select { height: 32px; min-width: 150px; max-width: 220px; background: var(--bg-3); color: var(--text); border: 2px solid transparent; border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; }
.filter select:focus { outline: none; border-color: var(--purple); }
.dice { font-size: 18px; }

/* ── Mode théâtre / chat replié ──────────────── */
body.theater .sidebar { display: none; }
body.theater .main { margin-left: 0; }
body.theater .channel .player { aspect-ratio: auto; height: calc(100vh - var(--top-h)); }
.channel.chat-off { grid-template-columns: minmax(0, 1fr) 0; }
.channel.chat-off .chat { display: none; }
#chan-player, #chan-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Aperçu au survol ────────────────────────── */
.hover-preview { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; pointer-events: none; background: #000; }

/* ── Message éclair & aide clavier ───────────── */
.flash { position: fixed; left: 50%; top: 70px; transform: translate(-50%, -10px); background: rgba(0,0,0,.85); border: 1px solid var(--line); padding: 8px 16px; border-radius: 99px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 60; }
.flash.show { opacity: 1; transform: translate(-50%, 0); }
.kbd-table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.kbd-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.kbd-table td:first-child { width: 90px; }
.kbd-table kbd { background: var(--bg-3); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 7px; font: 12px/1.6 inherit; font-weight: 700; }
@media (max-width: 600px) { #help-keys { display: none; } .filter select { min-width: 0; width: 100%; } .filter { flex: 1 1 45%; } }

/* ── Chat : réponses, @, filtre QC ───────────── */
.qc-chat-tools { display: flex; gap: 4px; }
.qc-chat-mode.on { background: rgba(43,108,255,.35); color: #fff; }
.qc-chat-lines.only-qc .line:not(.from-qc):not(.system) { display: none; }
.qc-chat-lines .line { position: relative; }
.reply-btn { position: absolute; right: 6px; top: 2px; display: none; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); border-radius: 4px; padding: 0 6px; cursor: pointer; font-size: 13px; }
.qc-chat-lines .line:hover .reply-btn, .reply-btn:focus-visible { display: block; }
.reply-ctx { font-size: 12px; color: var(--muted); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at { color: #bf94ff; font-weight: 600; }
.reply-bar { font-size: 12px; color: var(--muted); background: var(--bg-3); border-radius: 6px; padding: 5px 30px 5px 8px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar b { color: var(--text); }
.reply-x { position: absolute; right: 4px; top: 2px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.qc-chat-input { position: relative; }
.at-list { position: absolute; left: 0; right: 0; bottom: 42px; list-style: none; margin: 0; padding: 4px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.5); z-index: 5; }
.at-list li { padding: 4px 8px; border-radius: 4px; cursor: pointer; font-weight: 600; }
.at-list li.sel, .at-list li:hover { background: var(--purple); }

/* ── Classement ──────────────────────────────── */
.rank-table { display: flex; flex-direction: column; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }
.rank-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 140px 90px 130px; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); }
.rank-row.head { border-top: 0; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
a.rank-row:hover { background: var(--bg-hover); }
.rank-row.podium { background: linear-gradient(90deg, rgba(255,210,63,.10), transparent 60%); }
.rank { font-size: 22px; text-align: center; }
.rank-n { font-size: 14px; font-weight: 700; color: var(--muted); }
.rank-row .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank-row .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.live-dot { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: var(--live); padding: 0 5px; border-radius: 3px; }
@media (max-width: 700px) {
  .rank-row { grid-template-columns: 36px minmax(0, 1fr) 90px; }
  .rank-row > :nth-child(4), .rank-row > :nth-child(5) { display: none; }
}

/* ── Chaînes suivies ─────────────────────────── */
.side-follow { color: #bf94ff; display: flex; align-items: baseline; justify-content: space-between; }
.side-relogin { display: block; margin: 4px 10px 8px; padding: 8px 10px; border-radius: 6px; background: rgba(145,71,255,.15); color: #d9c4ff; font-size: 12.5px; font-weight: 600; }
.side-relogin:hover { background: rgba(145,71,255,.28); }
body.side-collapsed .side-relogin { display: none; }

/* ── Multi-stream : son sur la fenêtre choisie ───────────── */
.multi-sound-hint { background: rgba(255,72,72,.15); color: #ffb4b4; border: 1px solid rgba(255,72,72,.4); padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.tile:not(.active) .tile-head::after { content: '🔊 Écouter'; margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); opacity: 0; transition: opacity .15s; }
.tile:not(.active):hover .tile-head::after { opacity: 1; }
.tile:not(.active) .tile-x { order: 2; }

/* ── Raids / Discord ─────────────────────────── */
.raid h2 { color: var(--text); }
.raid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 8px; }
.raid-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--bg-3); border-radius: 8px; padding: 8px 10px; }
.raid-item a { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.raid-item a span { display: flex; flex-direction: column; min-width: 0; }
.raid-item b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.raid-item small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.raid-item a:hover b { color: #bf94ff; }
.discord-btn { color: #8c9eff; }
.discord-btn:hover { color: #fff; background: #5865f2; }

/* ── Clips / Horaire ─────────────────────────── */
.clip-card { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.clip-card .title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip-modal { width: min(960px, 100%); padding: 14px; }
.clip-modal .modal-head { justify-content: space-between; }
.clip-modal .modal-head h2 { font-size: 16px; }
.horaire { display: flex; flex-direction: column; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }
.horaire-row { display: grid; grid-template-columns: 90px auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); }
.horaire-row:first-child { border-top: 0; }
.horaire-row:hover { background: var(--bg-hover); }
.horaire-row.is-live { background: linear-gradient(90deg, rgba(235,4,0,.12), transparent 50%); }
.h-heure { font-weight: 800; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.h-heure small { color: var(--muted); font-weight: 500; font-size: 12px; }
.h-meta { display: flex; flex-direction: column; min-width: 0; }
.h-meta small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1280px) { .topnav a { padding: 6px 7px; font-size: 14px; } }
.h-meta .live-dot { align-self: flex-start; margin: 2px 0; }
.topnav a { white-space: nowrap; }

/* ── Points QC Live, niveaux, effets ─────────── */
.qc-tier { margin-right: 3px; font-size: 13px; vertical-align: middle; position: relative; top: -1px; }
.pts { font-style: normal; font-size: 11px; font-weight: 800; color: #ffd23f; background: rgba(255,210,63,.12); border-radius: 99px; padding: 0 6px; margin-left: 4px; }
.points-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 6px 0 12px; }
.points-n { font-size: 40px; font-weight: 800; color: #ffd23f; line-height: 1; }
.points-n small { font-size: 14px; color: var(--muted); font-weight: 600; }
.points-niv { display: flex; flex-direction: column; font-size: 16px; color: var(--text); }
.points-niv small { color: var(--muted); font-size: 12px; }
.progress { height: 10px; background: var(--bg-3); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #9147ff, #ffd23f); border-radius: 99px; }
.points-box h3 { color: var(--text); font-size: 15px; margin: 16px 0 8px; }
.effets { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.effet { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--bg-3); border: 2px solid transparent; border-radius: 8px; padding: 10px 12px; cursor: pointer; color: var(--text); text-align: left; }
.effet:hover:not(:disabled) { border-color: var(--line); }
.effet.on { border-color: var(--purple); background: rgba(145,71,255,.15); }
.effet:disabled { opacity: .5; cursor: not-allowed; }
.effet-apercu { font-weight: 800; font-size: 16px; }
.effet-nom { font-size: 12px; color: var(--muted); }
.rank-row.moi { background: rgba(145,71,255,.18); }
.rank-table.viewers .rank-row { grid-template-columns: 48px minmax(0, 1fr) 120px 130px 0; }

/* Effets animés des noms */
.fx { display: inline-block; }
.fx-lueur { text-shadow: 0 0 6px rgba(191,148,255,.9), 0 0 12px rgba(145,71,255,.6); }
.fx-brillance { animation: fx-shine 2.2s ease-in-out infinite; }
.fx-arcenciel span { animation: fx-hue 3s linear infinite; }
.fx-aurore { text-shadow: 0 0 8px rgba(63,212,108,.8), 0 0 16px rgba(43,108,255,.6); animation: fx-glow 3s ease-in-out infinite alternate; }
.fx-aurore span { animation: fx-hue 6s linear infinite; }
@keyframes fx-shine { 0%, 100% { filter: brightness(1); text-shadow: none; } 50% { filter: brightness(1.55); text-shadow: 0 0 8px rgba(255,255,255,.85), 0 0 14px rgba(255,210,63,.6); } }
@keyframes fx-hue { to { filter: hue-rotate(360deg); } }
@keyframes fx-glow { from { text-shadow: 0 0 6px rgba(63,212,108,.7), 0 0 12px rgba(43,108,255,.5); } to { text-shadow: 0 0 10px rgba(208,107,255,.9), 0 0 20px rgba(46,224,208,.6); } }
@media (prefers-reduced-motion: reduce) { .fx, .fx span { animation: none !important; } }

/* ── Parcourir : grille des catégories ───────── */
.browse-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 18px; }
.browse-search { flex: 1 1 260px; max-width: 420px; }
.browse-search input { width: 100%; height: 36px; background: var(--bg-3); color: var(--text); border: 2px solid transparent; border-radius: 6px; padding: 0 12px; font: inherit; }
.browse-search input:focus { outline: none; border-color: var(--purple); background: var(--bg); }
.browse-bar .chips { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 14px; }
.cat-card { display: flex; flex-direction: column; min-width: 0; }
.cat-art { position: relative; aspect-ratio: 3 / 4; background: var(--bg-3); overflow: hidden; display: grid; place-items: center; transition: transform .12s ease, box-shadow .12s ease; }
.cat-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-art span { font-size: 42px; font-weight: 800; color: var(--muted); }
.cat-card:hover .cat-art, .cat-card:focus-visible .cat-art { transform: translate(4px, -4px); box-shadow: -4px 4px 0 var(--purple); }
.cat-nom { font-weight: 700; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-card:hover .cat-nom { color: #bf94ff; }
.cat-meta { color: var(--muted); font-size: 13px; }
.cat-tags { margin-top: 4px; }
.back-link { display: inline-block; color: #bf94ff; font-weight: 600; margin-bottom: 12px; }
.cat-head { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 24px; }
.cat-art.big { width: 140px; flex: none; box-shadow: none; }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px 10px; } .cat-art.big { width: 96px; } }
@media (prefers-reduced-motion: reduce) { .cat-art { transition: none; } }

/* Carte de profil du chat (clic sur un nom) */
.qc-chat-lines .who { cursor: pointer; border-radius: 3px; }
.qc-chat-lines .who:hover { text-decoration: underline; text-underline-offset: 2px; }
.qc-chat-lines .who:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.qc-carte { position: absolute; left: 8px; right: 8px; top: 44px; z-index: 30; background: #18181b; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.6); padding: 14px; max-height: calc(100% - 60px); overflow-y: auto; animation: qcCarte .14s ease-out; }
@keyframes qcCarte { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.qc-carte-x { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.qc-carte-x:hover { background: var(--bg-hover); color: #fff; }
.qc-carte-load { color: var(--muted); padding: 16px 0; text-align: center; }
.qc-carte-head { display: flex; gap: 12px; align-items: center; padding-right: 22px; }
.qc-carte-av { width: 64px; height: 64px; border-radius: 50%; flex: none; background: #26262c; object-fit: cover; }
.qc-carte-nom { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.qc-carte-nom .badge { width: 18px; height: 18px; }
.qc-carte-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; }
.qc-carte-tags .tag.on { color: #3fd46c; }
.qc-carte-small { color: var(--muted); font-size: 12px; }
.qc-carte-pas { margin-top: 12px; }
.qc-carte-desc { margin: 10px 0 0; font-size: 13px; color: #dedee3; line-height: 1.45; overflow-wrap: anywhere; }
.qc-carte-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 8px; }
.qc-carte-stats div { background: #26262c; border-radius: 8px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; }
.qc-carte-stats b { font-size: 15px; }
.qc-carte-stats span { font-size: 11px; color: var(--muted); }
.qc-carte-prog { height: 6px; background: #26262c; border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.qc-carte-prog div { height: 100%; background: linear-gradient(90deg, #2b6cff, #9147ff); border-radius: 99px; }
.qc-carte-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
@media (max-width: 420px) { .qc-carte-stats { grid-template-columns: repeat(2, 1fr); } }

/* Émotes zero-width (7TV/BTTV/FFZ) empilées sur l'émote précédente */
.emote-pile { display: inline-grid; vertical-align: middle; margin: -6px 0; }
.emote-pile > .emote { grid-area: 1 / 1; margin: 0; justify-self: center; align-self: center; }
/* Sélecteur d'émotes du chat */
.emo-btn { flex: none; width: 36px; height: 36px; border: 0; border-radius: 6px; background: var(--bg-3); color: var(--muted); font-size: 19px; cursor: pointer; }
.emo-btn:hover, .emo-btn.on { color: #fff; background: var(--bg-hover); }
.emo-pick { position: absolute; left: 0; right: 0; bottom: 42px; z-index: 6; background: #18181b; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.6); padding: 8px; display: flex; flex-direction: column; gap: 6px; max-height: 320px; }
.emo-pick[hidden] { display: none; }
.emo-q { height: 32px; background: var(--bg-3); color: var(--text); border: 2px solid transparent; border-radius: 6px; padding: 0 8px; font: inherit; }
.emo-q:focus { outline: none; border-color: var(--purple); }
.emo-grid { overflow-y: auto; min-height: 0; }
.emo-grid h4 { margin: 8px 2px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.emo-liste { display: flex; flex-wrap: wrap; gap: 2px; }
.emo { width: 40px; height: 40px; border: 0; border-radius: 6px; background: none; cursor: pointer; display: grid; place-items: center; padding: 2px; }
.emo:hover, .emo:focus-visible { background: var(--bg-hover); outline: none; }
.emo img { max-width: 36px; max-height: 32px; }
.emo-vide { color: var(--muted); text-align: center; padding: 16px 0; margin: 0; }
.at-list li img { height: 22px; vertical-align: middle; margin-right: 4px; }
.at-list li small { color: var(--muted); font-weight: 400; margin-left: 4px; }

/* Bouton Suivre (lié à Twitch) */
.follow-btn { background: var(--purple); color: #fff; }
.follow-btn:hover { background: var(--purple-2); }
.follow-btn.on { background: var(--bg-3); color: #bf94ff; }
.follow-btn.on:hover { background: var(--bg-hover); }

/* Pages par jeu et répertoire des streamers */
.jeu-membres { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 8px; }
.jeu-membre { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2, #18181b); color: var(--text); text-decoration: none; min-width: 0; }
.jeu-membre:hover { background: var(--bg-hover); }
.jeu-membre span { display: flex; flex-direction: column; min-width: 0; }
.jeu-membre b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jeu-membre small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jeu-membre.live small { color: #3fd46c; }
.cat-tags .tag.on { color: #3fd46c; }

/* Régions */
.region-select { height: 34px; background: var(--bg-3); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font: inherit; max-width: 100%; }
.region-chips { flex-wrap: wrap; margin: 6px 0 14px; }
.region-chips .chip { text-decoration: none; }

/* Panneau Twitch (profil) */
.panneau-apercu { display: block; width: 320px; max-width: 100%; height: auto; margin: 10px 0; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.panneau-etapes { padding-left: 20px; line-height: 1.9; }
.panneau-etapes code { background: var(--bg-3); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

/* Carte de la semaine (profil) */
.carte-apercu { display: block; width: 320px; max-width: 100%; height: auto; margin: 10px 0; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.carte-box .head-btns { flex-wrap: wrap; }
