/* SYLOX - styles partagés (ajouts communs à toutes les pages) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:2px solid #facc15;outline-offset:2px}

/* cartes vidéo */
.card{position:relative}
.card-link{display:block;color:inherit;text-decoration:none}
/* avatar + pseudo d'une carte : mène à la chaîne (invisible, juste un léger effet au survol) */
.chan-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;cursor:pointer;border-radius:6px;transition:color .15s}
.chan-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chan-chip:hover{color:#fff}
.chan-chip:hover>span{text-decoration:underline}
.thumb .duration{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,.78);color:#fff;font-size:12px;font-weight:600;padding:2px 6px;border-radius:6px}
.video-stats .stat:last-child{margin-left:auto}
.card.skeleton{pointer-events:none}
.card.skeleton .thumb{background:linear-gradient(90deg,#141414,#1e1e1e,#141414);background-size:200% 100%;animation:sx-shine 1.2s infinite}
.card.skeleton .content{height:78px}
@keyframes sx-shine{to{background-position:-200% 0}}

/* menu du compte */
.userbox .avatar-btn{background:none;border:0;padding:0;cursor:pointer;border-radius:999px;display:block}
.userbox .avatar{display:block}
.menu a{text-decoration:none}

/* résultats de recherche */
.search-results .group-title{padding:8px 12px 2px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#8b8b8b}
.search-results a.result-item{display:flex;align-items:center;gap:12px;padding:10px 12px;color:inherit;text-decoration:none}
.search-results a.result-item:hover,.search-results a.result-item:focus-visible{background:#1f1f1f}
.search-results a.result-item img{width:40px;height:40px;border-radius:999px;object-fit:cover}
.search-results a.result-item img.sq{border-radius:6px;width:56px;height:32px}
.search-results a.result-item .username{font-weight:600;color:#fff;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-results a.result-item.all{color:#facc15;font-size:13px;border-top:1px solid #1f1f1f;justify-content:center}
.search-results .no-results{padding:12px;text-align:center;color:#8b8b8b}

/* créateurs recommandés : la barre latérale défile seule, sans faire défiler la page */
aside{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#2a2a2a transparent}
.rec-item{display:flex;align-items:center;gap:12px;padding:8px;border-radius:8px;color:#fff;text-decoration:none;font-weight:600;font-size:14px}
.rec-item:hover,.rec-item:focus-visible{background:#1a1a1a}
.rec-item img{width:36px;height:36px;border-radius:999px;object-fit:cover}
.rec-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* filtres / onglets */
.controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:0 0 16px}
.seg,.chips{display:flex;flex-wrap:wrap;gap:8px}
.seg button,.chips button{background:#151515;border:1px solid #1f1f1f;color:#d4d4d4;border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer}
.seg button:hover,.chips button:hover{background:#1d1d1d;color:#fff}
.seg button[aria-pressed="true"],.chips button[aria-pressed="true"]{background:#facc15;border-color:#facc15;color:#000}
.load-more{display:block;margin:24px auto 0;padding:10px 22px;border-radius:999px;border:1px solid #1f1f1f;background:#151515;color:#fff;font-weight:600;cursor:pointer}
.load-more:hover{background:#1d1d1d}
.load-more[hidden]{display:none}
.empty-state{text-align:center;color:#8b8b8b;padding:80px 0;font-size:20px;font-weight:500;line-height:1.5;grid-column:1/-1}
.empty-state small{font-size:14px}

/* toast + dialogues */
.sx-toast{position:fixed;bottom:24px;right:24px;max-width:min(420px,calc(100vw - 32px));background:#22c55e;color:#000;padding:12px 18px;border-radius:10px;font-weight:600;font-size:14px;box-shadow:0 4px 20px rgba(0,0,0,.5);transform:translateY(80px);opacity:0;transition:all .3s ease;z-index:3000}
.sx-toast.error{background:#ef4444;color:#fff}
.sx-toast.show{transform:none;opacity:1}
.sx-overlay{position:fixed;inset:0;background:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center;z-index:2500;padding:16px}
.sx-dialog{background:#1a1a1a;border:1px solid #1f1f1f;border-radius:16px;padding:24px;width:100%;max-width:400px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.sx-dialog h3{margin:0 0 12px;font-size:20px;color:#fff}
.sx-dialog p{margin:0 0 20px;color:#a3a3a3;font-size:14px;line-height:1.5}
.sx-dialog.success{border-color:#22c55e}.sx-dialog.success h3{color:#22c55e}
.sx-dialog.error{border-color:#ef4444}.sx-dialog.error h3{color:#ef4444}
.sx-actions{display:flex;gap:12px;justify-content:flex-end}
.sx-btn{padding:10px 20px;border-radius:10px;font-weight:600;font-size:14px;border:1px solid #facc15;background:#facc15;color:#000;cursor:pointer}
.sx-btn.ghost{background:transparent;border-color:#1f1f1f;color:#fff}
.sx-btn.danger{background:#ef4444;border-color:#ef4444;color:#fff}

/* commentaires */
.comments{margin-top:28px;padding-top:24px;border-top:1px solid #1f1f1f}
.comments h3{color:#fff;font-size:19px;margin:0 0 20px}
.comment-form{display:flex;gap:14px;align-items:flex-start;margin:0 0 28px}
.c-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;background:#1a1a1a}
.c-field{flex:1;min-width:0}
.c-field textarea{display:block;width:100%;box-sizing:border-box;min-height:40px;max-height:220px;resize:none;overflow:auto;background:transparent;border:0;border-bottom:2px solid #2a2a2a;border-radius:0;color:#fff;padding:9px 2px;font:inherit;line-height:1.5;outline:none;transition:border-color .2s}
.c-field textarea::placeholder{color:#7a7a7a}
.c-field textarea:focus{border-bottom-color:#facc15}
.c-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;color:#8b8b8b;font-size:12px}
.c-actions[hidden]{display:none}
.c-buttons{display:flex;gap:8px}
.c-btn{padding:9px 20px;border-radius:999px;border:0;background:#facc15;color:#000;font:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:opacity .2s,background .2s}
.c-btn:hover:not(:disabled){background:#fde047}
.c-btn:disabled{opacity:.4;cursor:not-allowed}
.c-btn.ghost{background:transparent;color:#d4d4d4}
.c-btn.ghost:hover:not(:disabled){background:#1f1f1f}
.c-login{padding:16px 18px;margin:0 0 26px;background:#121212;border:1px solid #1f1f1f;border-radius:12px;color:#a3a3a3;font-size:14px}
.c-login a{color:#facc15;font-weight:600;text-decoration:none}
.c-login a:hover{text-decoration:underline}
.c-empty{margin:8px 0 0;padding:34px 16px;text-align:center;color:#8b8b8b;line-height:1.7;background:#101010;border:1px dashed #262626;border-radius:12px}
.c-empty[hidden]{display:none}
.comment{display:flex;gap:14px;margin-bottom:24px}
.comment .body{flex:1;min-width:0}
.comment .who{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:#fff;font-weight:700}
.comment .who a{color:inherit;text-decoration:none}
.comment .who a:hover{text-decoration:underline}
.comment .when{color:#7a7a7a;font-weight:400;font-size:12px}
.badge-creator{font-style:normal;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;background:#facc15;color:#000;border-radius:999px;padding:2px 8px}
.comment .txt{margin-top:5px;color:#e5e5e5;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.comment .del{background:none;border:0;color:#7a7a7a;font-size:12px;cursor:pointer;padding:6px 0 0;opacity:.0;transition:opacity .15s}
.comment:hover .del,.comment .del:focus-visible{opacity:1}
.comment .del:hover{color:#ef4444}
@media (hover:none){.comment .del{opacity:1}}

@media (max-width:640px){
  .sx-toast{left:12px;right:12px;bottom:12px}
  /* filtres : une seule ligne qu'on fait glisser au doigt (tri | thèmes), avec un fondu à droite */
  .controls{flex-wrap:nowrap;justify-content:flex-start;gap:8px;overflow-x:auto;margin:0 -16px 16px;padding:2px 16px;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
  .controls::-webkit-scrollbar{display:none}
  .controls::after{content:"";flex:0 0 12px}
  .controls .seg,.controls .chips{flex:none;flex-wrap:nowrap}
  .controls .chips{border-left:1px solid #2a2a2a;padding-left:8px}
  .controls button{white-space:nowrap}
  /* accueil : moins de vide sous la recherche */
  #liveSection{margin-top:4px!important}
  #liveSection[hidden] + #videosSection,main > #videosSection:first-child{margin-top:4px!important}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---- vidéo retirée par la modération (vue du propriétaire) ---- */
.card.removed{border-color:#4a1d1d;background:#140d0d}
.card.removed .thumb{filter:grayscale(1) brightness(.6)}
.removed-badge{position:absolute;top:8px;left:8px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border-radius:999px;padding:3px 10px}
.removed-info{color:#f87171;font-size:12px;margin:6px 0 10px;line-height:1.4}
.removed-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mini-btn{background:#facc15;color:#000;border:0;border-radius:8px;padding:7px 12px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.mini-btn:hover{background:#fde047}
.mini-btn.ghost{background:transparent;color:#d4d4d4;border:1px solid #333}
.mini-btn.ghost:hover{background:#1f1f1f}
.appeal-state{font-size:12px;color:#fde68a;font-weight:600}.appeal-state.bad{color:#f87171}

/* ---- bandeau "compte suspendu" ---- */
.suspend-bar{position:sticky;top:0;z-index:2000;background:#7f1d1d;color:#fecaca;padding:10px 16px;text-align:center;font-size:14px;line-height:1.4;display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap}
.suspend-bar button{background:#fecaca;color:#450a0a;border:0;border-radius:8px;padding:6px 12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.suspend-bar button:disabled{opacity:.7;cursor:default}

/* ---- boutons ronds à icône (page vidéo) ---- */
.like-btn.icon-btn{width:40px;height:40px;padding:0;justify-content:center;border-radius:50%;flex:none;cursor:pointer}
.like-btn.icon-btn svg{width:18px;height:18px}
.like-btn.icon-btn.liked{background:var(--brand,#facc15);border-color:var(--brand,#facc15);color:#000}
.like-btn.icon-btn:hover{border-color:#444}
#likeBtn{min-height:40px}

/* ---- menu du compte (avant : défini seulement dans certaines pages -> bug sur la page profil) ---- */
.userbox{position:relative}
.userbox .avatar{width:36px;height:36px;border-radius:999px;border:2px solid #facc15;cursor:pointer;object-fit:cover;background:#111}
.userbox .menu{position:absolute;right:0;top:46px;background:#111;border:1px solid #222;border-radius:12px;min-width:200px;display:none;box-shadow:0 10px 30px rgba(0,0,0,.5);overflow:hidden;z-index:1000}
.userbox .menu a,.userbox .menu button{all:unset;display:block;box-sizing:border-box;width:100%;padding:10px 12px;font-size:14px;color:#e5e5e5;cursor:pointer}
.userbox .menu a:hover,.userbox .menu button:hover,.userbox .menu a:focus-visible,.userbox .menu button:focus-visible{background:#171717}
.userbox .menu .danger{color:#ef4444}
.userbox.open .menu{display:block}
@media (max-width:640px){.userbox .menu{right:-8px;min-width:180px}}

/* ---- en-tête et navigation du bas sur téléphone / tablette (le menu de gauche y est masqué) ---- */
.mobile-nav{display:none}
@media (max-width:1024px){
  /* en-tête : logo à gauche, Publier + compte à DROITE, recherche sur toute la largeur en dessous */
  header .bar:has(> #auth-slot){display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:8px 12px}
  header .bar:has(> #auth-slot) > .brand{display:block!important;order:1;margin-right:auto;font-size:24px;font-weight:900;letter-spacing:-.5px;color:#fff;text-decoration:none;line-height:1;padding:6px 0;cursor:pointer}
  header .bar:has(> #auth-slot) > .brand span{color:#facc15}
  header .bar:has(> #auth-slot) > #publishBtn{display:none!important}   /* le bouton « Publier » est dans la barre du bas */
  header .bar:has(> #auth-slot) > #auth-slot{order:3;margin:0;display:flex;align-items:center}
  header .bar:has(> #auth-slot) > .search{order:4;flex:1 1 100%;max-width:none;min-width:0;margin:0}
  header .bar:has(> #auth-slot) .search input{font-size:16px;min-width:0}   /* 16 px : évite le zoom automatique sur iPhone */

  .mobile-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:900;background:rgba(10,10,10,.97);backdrop-filter:blur(10px);border-top:1px solid #1f1f1f;padding-bottom:env(safe-area-inset-bottom)}
  .mobile-nav a{flex:1;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 2px 7px!important;min-height:56px;margin:0;border-radius:0!important;background:none!important;color:#a3a3a3;text-decoration:none;font-size:11px;font-weight:600;line-height:1.1;-webkit-tap-highlight-color:transparent}
  .mobile-nav a span{white-space:nowrap}
  .mobile-nav svg{width:23px;height:23px;flex:none}
  .mobile-nav a.active{color:#facc15;box-shadow:inset 0 2px 0 #facc15}
  .mobile-nav a.pub{color:#facc15}
  .mobile-nav a.pub svg{width:30px;height:30px;padding:4px;border-radius:10px;background:#facc15;color:#000;stroke-width:2.4}
  body{padding-bottom:calc(60px + env(safe-area-inset-bottom));box-sizing:border-box}
  /* la barre du bas prend 56 px : on les retire de la hauteur minimale pour ne pas faire déborder la page */
  .shell,.shell > div:not([class]){min-height:calc(100vh - 56px)}
  body:has(> header + main){min-height:100vh}
  .sx-toast{bottom:72px}
}
@media (max-width:640px){
  /* fenêtres (publication, boîtes de dialogue) : jamais plus larges que l'écran */
  .sx-dialog{width:calc(100vw - 24px);max-width:420px}
  body{overflow-x:hidden}
}

/* ---- pied de page : toujours collé en bas de la fenêtre, même sur une page presque vide ---- */
.shell > div:not([class]){display:flex;flex-direction:column;min-height:100vh;min-width:0}
.shell > div:not([class]) > main{flex:1 0 auto;width:100%;display:flex;flex-direction:column}
body:has(> header + main){display:flex;flex-direction:column;min-height:100vh}
body > header + main{flex:1 0 auto;width:100%;display:flex;flex-direction:column}
.footer-spacer{flex:1 0 40px}
.site-footer{margin:0 0 8px;padding-top:16px;border-top:1px solid #1f1f1f;color:#6b6b6b;font-size:12px;text-align:center}
.site-footer a{color:#8b8b8b;text-decoration:none;margin:0 8px}
.site-footer a:hover{color:#fff;text-decoration:underline}

/* ---- boîte de choix (signalement) ---- */
.sx-dialog select,.sx-dialog textarea{width:100%;box-sizing:border-box;background:#0f0f0f;border:1px solid #1f1f1f;border-radius:10px;color:#fff;padding:10px 12px;font:inherit;margin:0 0 16px}
.sx-dialog textarea{min-height:70px;resize:vertical}
.sx-dialog input[type="password"]{width:100%;box-sizing:border-box;background:#0f0f0f;border:1px solid #1f1f1f;border-radius:10px;color:#fff;padding:10px 12px;font:inherit;margin:0 0 16px}

/* ---- zone dangereuse (paramètres) ---- */
.danger-zone{border-color:#5a1b1b!important}
.danger-zone .hd{color:#fca5a5}
.btn-danger-solid{background:#ef4444;border:1px solid #ef4444;color:#fff;padding:8px 14px;border-radius:10px;font-weight:600;cursor:pointer}
.btn-danger-solid:hover{background:#dc2626}
.btn-danger-solid:disabled{opacity:.6;cursor:wait}

/* ---- téléphone : confort de lecture et de saisie ---- */
@media (max-width:640px){
  /* 16 px minimum dans les champs : sinon l'iPhone zoome tout seul quand on tape dedans */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea{font-size:16px!important}
  /* zones tactiles d'au moins 40 px */
  .btn,button.btn,.tab,.mini-btn{min-height:40px}
  .tab{padding-top:9px;padding-bottom:9px}
  /* messages : au-dessus de la barre du bas */
  .toast{left:12px!important;right:12px!important;bottom:72px!important}
  /* fenêtre de publication : plein écran utile, bouton de validation toujours visible */
  .modal{width:100%!important;max-width:100%!important;max-height:100vh!important;height:100%;border-radius:0!important}
  .modal-overlay{align-items:stretch!important;padding:0!important}
  .modal{display:flex!important;flex-direction:column;overflow:hidden!important}
  .modal-header,.modal-footer{flex:none}
  .modal-body{flex:1 1 auto;min-height:0;overflow-y:auto}
  .modal-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom))!important}
  /* texte long (titres, liens PayPal, emails) : jamais de débordement */
  h1,h2,h3,.video-title,.who,.muted{overflow-wrap:anywhere}
}
@media (max-width:360px){
  .mobile-nav a{font-size:10px}
  header .bar:has(> #auth-slot) > .brand{font-size:21px}
}

/* ---- commentaires : réponses, j'aime, tri ---- */
.c-sort{display:flex;gap:6px;margin:-8px 0 18px}
.c-sort button{background:#151515;border:1px solid #232323;color:#bdbdbd;border-radius:999px;padding:6px 14px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.c-sort button:hover{color:#fff}
.c-sort button.on{background:#facc15;border-color:#facc15;color:#000}
.c-tools{display:flex;align-items:center;gap:16px;margin-top:4px;flex-wrap:wrap}
.c-tools button{background:none;border:0;color:#8b8b8b;font:inherit;font-size:13px;font-weight:600;cursor:pointer;padding:6px 0;display:inline-flex;align-items:center;gap:6px;min-height:32px}
.c-tools button:hover{color:#fff}
.c-tools .c-like.on{color:#facc15}
.c-tools .del{opacity:1}
.c-toggle{background:none;border:0;color:#facc15;font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:6px 0;margin-top:2px;min-height:32px}
.c-toggle[hidden],.c-replies[hidden]{display:none}
.c-toggle:hover{text-decoration:underline}
.c-replies{margin-top:10px}
.comment.reply{margin-bottom:16px}
.c-avatar.sm,.comment.reply .c-avatar{width:30px;height:30px}
.c-replyform{display:flex;gap:10px;margin:8px 0 6px;align-items:flex-start}
.c-replyform .c-field{flex:1;min-width:0}
@media (max-width:640px){.c-tools{gap:12px}.comment{gap:10px}}

/* ---- cloche des notifications ---- */
#auth-slot{display:flex;align-items:center;gap:10px}
.bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;color:#d4d4d4;text-decoration:none;flex:none;-webkit-tap-highlight-color:transparent}
.bell:hover{background:#171717;color:#fff}
.bell-n{position:absolute;top:2px;right:0;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center;border:2px solid #0a0a0a}
.bell-n[hidden]{display:none}
/* panneau de la cloche (s'ouvre sous la cloche, on reste sur la page) */
.bellbox{position:relative;display:flex}
.bellbox.open .bell{background:#171717;color:#fff}
.bell-panel{display:none;position:absolute;right:-6px;top:48px;width:380px;max-width:calc(100vw - 16px);background:#111;border:1px solid #222;border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.6);z-index:1000;overflow:hidden;text-align:left}
.bellbox.open .bell-panel{display:flex;flex-direction:column}
.bp-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid #1f1f1f}
.bp-head b{color:#fff;font-size:15px}
.bp-read{background:none;border:0;color:#facc15;font:inherit;font-size:12px;font-weight:600;cursor:pointer;padding:4px 6px;border-radius:6px}
.bp-read:hover:not(:disabled){background:#1a1a1a}.bp-read:disabled{color:#555;cursor:default}
.bp-list{max-height:min(420px,60vh);overflow-y:auto;overscroll-behavior:contain;padding:6px}
.bp-empty{color:#8b8b8b;text-align:center;padding:28px 12px;margin:0;font-size:14px}
.bp-list .n{display:flex;gap:10px;align-items:center;padding:9px 26px 9px 9px;border-radius:10px;text-decoration:none;color:#d4d4d4;position:relative}
.bp-list .n:hover{background:#181818}
.bp-list .n.new{background:#17130a}
.bp-list .n .dot{position:absolute;top:50%;right:10px;margin-top:-4px;width:8px;height:8px;border-radius:50%;background:#facc15}
.bp-list .n img.av{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none;background:#1a1a1a}
.bp-list .n .txt{flex:1;min-width:0;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.bp-list .n .txt b{color:#fff}
.bp-list .n .quote{display:block;margin-top:2px;color:#a3a3a3;font-size:12px;font-style:italic;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bp-list .n .when{display:block;margin-top:2px;color:#8b8b8b;font-size:11px}
.bp-list .n .th{flex:none;width:72px;aspect-ratio:16/9;border-radius:6px;background:#0d0d0d center/cover}
.bp-list .n .live-badge{font-size:9px;padding:2px 5px}
.bp-all{display:block;padding:12px;text-align:center;border-top:1px solid #1f1f1f;color:#facc15;font-size:14px;font-weight:700;text-decoration:none}
.bp-all:hover{background:#171717}
@media (max-width:640px){
  .bellbox{position:static}
  .bell-panel{position:fixed;left:8px;right:8px;top:calc(env(safe-area-inset-top) + 60px);width:auto;max-width:none}
  .bp-list{max-height:calc(100vh - 220px);max-height:calc(100dvh - 220px)}
  .bp-list .n .th{width:60px}
}

/* ---- qualité, partage, playlists (page vidéo) ---- */
.q-bar{display:flex;align-items:center;gap:10px;margin:10px 0 0;font-size:13px;color:#a3a3a3;flex-wrap:wrap}
.q-bar[hidden]{display:none}
.q-bar select{background:#151515;border:1px solid #2a2a2a;border-radius:8px;color:#fff;padding:6px 10px;font:inherit;font-size:13px}
.q-note{color:#facc15}
.sx-dialog.wide{max-width:460px}
.sx-body{margin:0 0 20px}
.share-input{width:100%;box-sizing:border-box;background:#0f0f0f;border:1px solid #2a2a2a;border-radius:10px;color:#fff;padding:11px 12px;font:inherit;font-size:14px;margin-bottom:12px}
.share-check{display:flex;align-items:center;gap:8px;color:#d4d4d4;font-size:14px;cursor:pointer}
.share-check input,.pl-row input{accent-color:#facc15;width:18px;height:18px;flex:none}
.pl-list{max-height:260px;overflow:auto;margin-bottom:14px;border:1px solid #262626;border-radius:12px}
.pl-row{display:flex;align-items:center;gap:12px;padding:12px 14px;color:#e5e5e5;font-size:14px;cursor:pointer;border-bottom:1px solid #1f1f1f}
.pl-row:last-child{border-bottom:0}
.pl-row:hover{background:#202020}
.pl-empty{margin:0;padding:16px;color:#8b8b8b;font-size:14px;text-align:center}
.pl-new{display:flex;gap:8px}
.pl-new input[type="text"]{flex:1;min-width:0;background:#0f0f0f;border:1px solid #2a2a2a;border-radius:10px;color:#fff;padding:10px 12px;font:inherit;font-size:14px}
.pl-new select{background:#0f0f0f;border:1px solid #2a2a2a;border-radius:10px;color:#fff;padding:10px;font:inherit;font-size:14px;margin:0;width:auto}
.ts{background:none;border:0;padding:0;margin:0;color:#facc15;font:inherit;font-weight:600;cursor:pointer}
.ts:hover{text-decoration:underline}
.list-panel{background:#121212;border:1px solid #1f1f1f;border-radius:14px;margin-bottom:16px;overflow:hidden}
.list-panel[hidden]{display:none}
.lp-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #1f1f1f;font-size:13px;color:#8b8b8b}
.lp-head a{color:#fff;font-weight:700;text-decoration:none;font-size:14px;overflow-wrap:anywhere}
.lp-items{max-height:300px;overflow:auto}
.lp-item{display:flex;gap:10px;align-items:center;padding:9px 14px;text-decoration:none;color:#d4d4d4;font-size:13px;line-height:1.35}
.lp-item b{width:20px;flex:none;text-align:center;color:#8b8b8b;font-size:12px}
.lp-item:hover{background:#1a1a1a}
.lp-item.now{background:#1c1805;color:#fff}.lp-item.now b{color:#facc15}

/* ---- page chaîne : onglets, playlists, à propos ---- */
.p-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 18px;border-bottom:1px solid #1f1f1f;padding-bottom:12px}
.p-tabs button{background:#151515;border:1px solid #1f1f1f;color:#cfcfcf;border-radius:999px;padding:8px 18px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.p-tabs button:hover{background:#1d1d1d;color:#fff}
.p-tabs button[aria-selected="true"]{background:#facc15;border-color:#facc15;color:#000}
.p-panel[hidden]{display:none}
.p-h{margin:0 0 14px;font-size:18px;color:#fff}
.p-empty{text-align:center;color:#8b8b8b;padding:40px 0;line-height:1.8}
.video-grid.one{grid-template-columns:minmax(0,420px)!important}
.p-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;flex-wrap:wrap}
.p-new{background:#facc15;border:0;border-radius:10px;padding:9px 16px;font:inherit;font-size:14px;font-weight:800;color:#000;cursor:pointer}
.p-new:hover{background:#fde047}
.pl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.pl-card{display:block;text-decoration:none;color:#fff}
.pl-cover{position:relative;aspect-ratio:16/9;border-radius:12px;background:#0f0f0f center/cover no-repeat;border:1px solid #1f1f1f}
.pl-n{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,.75);color:#fff;font-size:12px;font-weight:700;padding:3px 8px;border-radius:8px}
.pl-t{margin-top:8px;font-weight:600;font-size:15px;overflow-wrap:anywhere}
.pl-card:hover .pl-t{text-decoration:underline}
.pl-input{display:block;width:100%;box-sizing:border-box;background:#0f0f0f;border:1px solid #2a2a2a;border-radius:10px;color:#fff;padding:10px 12px;font:inherit;font-size:14px;margin:0 0 12px}
.ab-bio{color:#d4d4d4;font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 18px}
.ab-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-bottom:16px}
.ab-stat{background:#0d0d0d;border:1px solid #1c1c1c;border-radius:12px;padding:14px;text-align:center}
.ab-stat b{display:block;color:#fff;font-size:22px}.ab-stat span{color:#8b8b8b;font-size:13px}
.ab-date{color:#8b8b8b;font-size:14px;margin:0}

/* ---- lives ---- */
.live-badge{display:inline-flex;align-items:center;gap:6px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border-radius:6px;padding:3px 8px;line-height:1.2}
.live-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;animation:livepulse 1.4s ease-in-out infinite}
@keyframes livepulse{50%{opacity:.25}}
.live-badge.off{background:#2a2a2a;color:#cfcfcf}.live-badge.off::before{animation:none;background:#8b8b8b}
.live-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.live-card{display:block;text-decoration:none;color:#fff;background:#121212;border:1px solid #1f1f1f;border-radius:16px;overflow:hidden;transition:transform .2s,box-shadow .2s}
.live-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.4)}
.live-card .th{position:relative;aspect-ratio:16/9;background:#0f0f0f}
.live-card .th .live-badge{position:absolute;top:8px;left:8px}
.live-card .th .vw{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,.7);padding:3px 8px;border-radius:8px;font-size:12px;font-weight:700}
.live-card .in{display:flex;gap:10px;padding:12px}
.live-card img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none;background:#1a1a1a}
.live-card .t{font-weight:600;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.live-card .c{color:#8b8b8b;font-size:13px;margin-top:3px}

/* ---- bouton « Passer en live » ---- */
.golive-btn{display:inline-flex;align-items:center;gap:8px;background:#ef4444;color:#fff;border-radius:10px;padding:8px 14px;font-weight:700;font-size:14px;text-decoration:none;white-space:nowrap;border:1px solid #ef4444}
.golive-btn:hover{background:#dc2626;border-color:#dc2626}
.gl-dot{width:8px;height:8px;border-radius:50%;background:#fff;animation:livepulse 1.4s ease-in-out infinite}
.gl-short{display:none}
@media (max-width:640px){.gl-long{display:none}.gl-short{display:inline}.golive-btn{padding:8px 11px;gap:6px}}

/* ---- badges de chaîne ---- */
.sx-badges{display:inline-flex;gap:4px;margin-left:7px;vertical-align:middle;align-items:center;font-weight:400;letter-spacing:0;text-transform:none}
.sx-badge{position:relative;display:inline-flex;cursor:default;outline:none;-webkit-tap-highlight-color:transparent}
.sx-badge svg{width:22px;height:22px;display:block;transition:transform .15s}
.sx-badge.b-des_le_debut svg{filter:drop-shadow(0 0 5px rgba(245,158,11,.5))}
.sx-badge:hover svg,.sx-badge:focus svg{transform:scale(1.2)}
.sx-badge .tip{position:absolute;left:50%;bottom:calc(100% + 9px);transform:translate(-50%,5px);width:max-content;min-width:150px;max-width:230px;background:#08111d;border:1px solid #155e75;border-radius:10px;padding:8px 11px;box-shadow:0 10px 28px rgba(0,0,0,.6),0 0 0 1px rgba(34,211,238,.08);opacity:0;pointer-events:none;transition:opacity .16s,transform .16s;z-index:3000;text-align:left;white-space:normal;font-size:12px;line-height:1.35}
.sx-badge .tip::after{content:"";position:absolute;left:50%;top:100%;width:9px;height:9px;background:#08111d;border-right:1px solid #155e75;border-bottom:1px solid #155e75;transform:translate(-50%,-5px) rotate(45deg)}
.sx-badge .tip b{display:block;color:#67e8f9;font-size:13px;font-weight:800}
.sx-badge .tip small{display:block;color:#cbd5e1;font-size:12px;font-weight:400;margin-top:3px}
.sx-badge.b-des_le_debut .tip{border-color:#92400e;background:#170f05}.sx-badge.b-des_le_debut .tip::after{background:#170f05;border-color:#92400e}
.sx-badge.b-des_le_debut .tip b{color:#fbbf24}
.sx-badge:hover .tip,.sx-badge:focus .tip{opacity:1;transform:translate(-50%,0)}
.profile-header h2 .sx-badge svg{width:28px;height:28px}
.msg .sx-badges{margin:0 6px 0 0}.msg .sx-badge svg{width:16px;height:16px}
.msg .sx-badge .tip{left:0;transform:translate(0,5px)}.msg .sx-badge:hover .tip,.msg .sx-badge:focus .tip{transform:translate(0,0)}
.msg .sx-badge .tip::after{left:14px}

/* ---- lecteur vidéo SYLOX (js/player.js) ---- */
.sp{position:relative;user-select:none;-webkit-user-select:none}
.sp video{cursor:pointer}
.sp.sp-idle:not(.sp-paused){cursor:none}
.sp-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;transition:opacity .15s}
.sp-paused .sp-center{opacity:1}
.sp-big{pointer-events:auto;width:72px;height:72px;border-radius:50%;border:0;background:rgba(0,0,0,.62);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .15s,background .15s}
.sp-big:hover{background:#facc15;color:#000;transform:scale(1.06)}
.sp-big svg{width:38px;height:38px;fill:currentColor}
.sp-spin{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border:4px solid rgba(255,255,255,.25);border-top-color:#facc15;border-radius:50%;animation:spspin .8s linear infinite;pointer-events:none}
.sp-spin[hidden],.sp-msg[hidden],.sp-menu[hidden]{display:none}
@keyframes spspin{to{transform:rotate(360deg)}}
.sp-msg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(0,0,0,.72);text-align:center;padding:20px;font-size:15px;z-index:4}
.sp-bar{position:absolute;left:0;right:0;bottom:0;padding:34px 12px 8px;background:linear-gradient(to top,rgba(0,0,0,.85),transparent);transition:opacity .2s;z-index:3}
.sp-idle:not(.sp-paused) .sp-bar{opacity:0;pointer-events:none}
.sp-seek{position:relative;height:18px;display:flex;align-items:center;cursor:pointer;touch-action:none;outline:none}
.sp-track{position:relative;width:100%;height:4px;background:rgba(255,255,255,.28);border-radius:3px;transition:height .12s}
.sp-seek:hover .sp-track,.sp-drag .sp-track{height:6px}
.sp-buf,.sp-prog{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:3px}
.sp-buf{background:rgba(255,255,255,.36)}.sp-prog{background:#facc15}
.sp-knob{position:absolute;top:50%;left:0;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#facc15;transform:scale(0);transition:transform .12s}
.sp-seek:hover .sp-knob,.sp-drag .sp-knob,.sp-seek:focus-visible .sp-knob{transform:scale(1)}
.sp-tip{position:absolute;bottom:22px;left:0;transform:translateX(-50%);background:rgba(0,0,0,.88);color:#fff;font-size:12px;font-weight:700;padding:3px 7px;border-radius:6px;pointer-events:none;opacity:0;white-space:nowrap}
.sp-seek:hover .sp-tip,.sp-drag .sp-tip{opacity:1}
.sp-row{display:flex;align-items:center;gap:4px;margin-top:2px}
.sp-btn{background:none;border:0;color:#fff;cursor:pointer;width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}
.sp-btn:hover{background:rgba(255,255,255,.16)}
.sp-btn svg{width:24px;height:24px;fill:currentColor}
.sp-vol{-webkit-appearance:none;appearance:none;width:0;opacity:0;height:4px;border-radius:3px;background:linear-gradient(to right,#facc15 var(--v,100%),rgba(255,255,255,.3) var(--v,100%));cursor:pointer;transition:width .15s,opacity .15s,margin .15s;margin:0;outline:none}
.sp-row:hover .sp-vol,.sp-vol:focus{width:84px;opacity:1;margin:0 8px 0 2px}
.sp-vol::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#fff}
.sp-vol::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#fff}
.sp-time{color:#fff;font-size:13px;font-weight:600;margin-left:6px;font-variant-numeric:tabular-nums;white-space:nowrap}
.sp-sp{flex:1}
.sp-menu{position:absolute;right:12px;bottom:72px;min-width:250px;max-width:calc(100% - 24px);max-height:70%;overflow:auto;background:rgba(18,18,18,.97);border:1px solid #2a2a2a;border-radius:12px;padding:6px;z-index:5;box-shadow:0 10px 30px rgba(0,0,0,.6)}
.sp-item,.sp-head{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;color:#fff;font:inherit;font-size:14px;padding:10px 12px;border-radius:8px;cursor:pointer;text-align:left}
.sp-item:hover,.sp-head:hover{background:rgba(255,255,255,.1)}
.sp-head{font-weight:700;border-bottom:1px solid #2a2a2a;border-radius:8px 8px 0 0;margin-bottom:4px}
.sp-head svg,.sp-item svg{width:20px;height:20px;fill:currentColor;flex:none}
.sp-ck{width:20px;height:20px;display:inline-flex;color:#facc15}
.sp-lb{flex:1}.sp-val{color:#bdbdbd;font-size:13px}.sp-ch{display:inline-flex;color:#bdbdbd}
.sp-item.on .sp-lb{color:#facc15;font-weight:700}
.sp:fullscreen{width:100%;height:100%;aspect-ratio:auto!important;border-radius:0!important;background:#000}
.sp:fullscreen video{width:100%;height:100%}
@media (max-width:560px){.sp-vol{display:none}.sp-time{font-size:12px}.sp-btn{width:36px;height:36px}.sp-menu{bottom:62px;right:8px}.sp-big{width:60px;height:60px}}

/* ---- liste des abonnés d'une chaîne ---- */
.sub-open{background:none;border:0;padding:6px 10px;margin:-6px -10px;border-radius:10px;color:inherit;font:inherit;cursor:pointer;transition:background .15s}
.sub-open:hover,.sub-open:focus-visible{background:#1f1f1f}
.sub-open:hover .label{color:#facc15}
.sub-open .label{color:#a3a3a3;font-weight:500;transition:color .15s}
.sx-dialog.subs{max-width:480px;padding:22px 22px 18px}
.subs-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:-4px 0 14px}
.subs-total{color:#8b8b8b;font-size:13px}
.subs-tools{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.subs-search{flex:1 1 180px;display:flex;align-items:center;gap:8px;background:#0f0f0f;border:1px solid #2a2a2a;border-radius:10px;padding:0 10px}
.subs-search:focus-within{border-color:#facc15}
.subs-search input{flex:1;min-width:0;background:none;border:0;outline:0;color:#fff;font:inherit;font-size:14px;padding:10px 0}
.subs-sort{display:flex;background:#0f0f0f;border:1px solid #2a2a2a;border-radius:10px;padding:3px}
.subs-sort button{background:none;border:0;color:#a3a3a3;font:inherit;font-size:13px;font-weight:600;padding:7px 11px;border-radius:7px;cursor:pointer}
.subs-sort button[aria-pressed="true"]{background:#facc15;color:#000}
.subs-list{max-height:min(420px,55vh);overflow:auto;border:1px solid #262626;border-radius:12px;margin-bottom:14px}
.subs-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid #1f1f1f;color:#fff;text-decoration:none;transition:background .15s}
.subs-row:last-child{border-bottom:0}
.subs-row:hover{background:#202020}
.subs-row img{width:42px;height:42px;border-radius:50%;object-fit:cover;flex:none;background:#222}
.subs-who{flex:1;min-width:0}
.subs-name{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.subs-meta{color:#8b8b8b;font-size:12px;margin-top:2px}
.subs-since{color:#8b8b8b;font-size:12px;white-space:nowrap;flex:none}
.subs-empty{padding:28px 16px;color:#8b8b8b;font-size:14px;text-align:center}
.subs-more{display:block;width:100%;background:none;border:0;border-top:1px solid #1f1f1f;color:#facc15;font:inherit;font-weight:600;font-size:14px;padding:12px;cursor:pointer}
.subs-more:hover{background:#202020}
.subs-skel{height:62px;border-bottom:1px solid #1f1f1f;background:linear-gradient(90deg,#151515 0,#1d1d1d 50%,#151515 100%);background-size:200% 100%;animation:subsSk 1.1s infinite linear}
@keyframes subsSk{to{background-position:-200% 0}}
@media (max-width:640px){.subs-since{display:none}}

/* ===== Sélecteur de fichier (remplace le bouton gris « Choisir un fichier » du navigateur) — créé par shared.js ===== */
label.sx-file{position:relative;display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;margin:6px 0 0;padding:12px 14px;border:1.5px dashed #2c2c2c;border-radius:12px;background:#0e0e0e;color:#fff;font:inherit;font-size:14px;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
label.sx-file:hover{border-color:#4a4a4a;background:#131313}
label.sx-file:focus-within{border-color:#facc15;box-shadow:0 0 0 3px rgba(250,204,21,.15)}
label.sx-file.drag{border-color:#facc15;background:rgba(250,204,21,.06)}
label.sx-file.has-file{border-style:solid;border-color:rgba(250,204,21,.55);background:rgba(250,204,21,.05)}
label.sx-file input.sx-file-in{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;border:0!important;opacity:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;pointer-events:none}
.sx-file-ico{flex:none;width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:#1b1b1b;color:#facc15;overflow:hidden}
.sx-file-ico img{width:100%;height:100%;object-fit:cover;display:block}
label.sx-file.has-file .sx-file-ico{background:#facc15;color:#000}
.sx-file-txt{min-width:0;display:flex;flex-direction:column;gap:2px}
.sx-file-txt b{font-size:14px;color:#fff;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sx-file-txt small{font-size:12px;color:#8b8b8b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sx-file .sx-file-x{margin-left:auto;flex:none;width:28px;height:28px;padding:0;border-radius:999px;border:1px solid #2a2a2a;background:#151515;color:#bbb;cursor:pointer;display:grid;place-items:center;font-size:13px;font-weight:400;line-height:1}
.sx-file .sx-file-x:hover{color:#fff;border-color:#444;background:#1c1c1c}
.sx-file .sx-file-x[hidden]{display:none}

/* ===== Listes déroulantes : flèche jaune à la place de la flèche du navigateur ===== */
select:not([multiple]):not([size]){-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23facc15' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:12px 8px!important;padding-right:34px!important;cursor:pointer;text-overflow:ellipsis}
select option{background:#141414;color:#fff}

/* ---- pages Connexion / Inscription / Mot de passe oublié : logo au-dessus du cadre ---- */
body.auth{display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:22px}
/* centré verticalement, mais si la page est plus haute que l'écran elle commence en haut (rien de coupé) */
body.auth .auth-logo{margin-top:auto!important}
body.auth::after{content:"";margin-bottom:auto}
body.auth .auth-logo{display:block;margin:0;font-size:34px;font-weight:900;letter-spacing:-.5px;line-height:1;color:#fff;text-decoration:none;text-align:center}
body.auth .auth-logo span{color:#facc15}
body.auth .site-footer{margin:20px 0 0}

/* ---- bouton « Se connecter » de l'en-tête : texte centré et même taille sur toutes les pages ---- */
@media (max-width:1024px){
  #auth-slot > a.btn{display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;min-height:40px;padding:0 14px!important;
    font-size:16px!important;font-weight:600;line-height:1;white-space:nowrap;text-decoration:none;border-radius:10px}
}
/* ---- page d'une chaîne : les 4 onglets visibles sur une seule ligne (sans glisser), largeur partagée ---- */
@media (max-width:640px){
  .p-tabs{flex-wrap:nowrap;gap:6px}
  .p-tabs button{flex:1 1 0;min-width:0;padding:8px 4px;font-size:13px;white-space:nowrap;text-align:center}
}

/* ---- vidéo programmée (vue du créateur) ---- */
.sched-badge{position:absolute;top:8px;left:8px;background:#facc15;color:#000;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border-radius:999px;padding:3px 10px}
.sched-note{margin:16px 0 0;padding:12px 14px;border:1px solid #4d3f0a;background:#1a1606;color:#fde68a;border-radius:12px;font-size:14px;line-height:1.5}

/* ---- options d'envoi : « Chapitres » et « Publier plus tard » ---- */
.sx-opts{display:grid;gap:10px}
.sx-opt{border:1px solid #262626;border-radius:12px;background:#0d0d0d;padding:12px 14px}
.sx-check{display:flex!important;align-items:center!important;gap:14px;cursor:pointer;margin:0!important;justify-content:space-between!important;-webkit-tap-highlight-color:transparent}
/* bouton on/off : gris quand c'est non, jaune SYLOX quand c'est oui */
.sx-check input{order:2;flex:none;-webkit-appearance:none;appearance:none;position:relative;width:46px;height:26px;margin:0;border-radius:999px;background:#262626;border:1px solid #333;cursor:pointer;transition:background .2s,border-color .2s,box-shadow .2s}
.sx-check input::before{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#737373;box-shadow:0 1px 3px rgba(0,0,0,.5);transition:transform .2s cubic-bezier(.4,0,.2,1),background .2s}
.sx-check input:checked{background:#facc15;border-color:#facc15;box-shadow:0 0 12px rgba(250,204,21,.35)}
.sx-check input:checked::before{transform:translateX(20px);background:#0a0a0a}
.sx-check:hover input:not(:checked){border-color:#4a4a4a}
.sx-check:hover input:not(:checked)::before{background:#a3a3a3}
.sx-check input:focus-visible{outline:2px solid #facc15;outline-offset:3px}
.sx-check span{display:flex;flex-direction:column;gap:2px;min-width:0}
.sx-check b{color:#fff;font-size:14px;font-weight:700}
.sx-check small{color:#8b8b8b;font-size:12px;font-weight:400;line-height:1.4}
.sx-opt-body{margin-top:12px}
.sx-opt-body[hidden]{display:none}
.sx-input{width:100%;min-width:0;background:#0a0a0a;border:1px solid #2a2a2a;border-radius:10px;color:#fff;padding:10px 12px;font:inherit;font-size:14px;outline:none;color-scheme:dark}
.sx-input:focus{border-color:#facc15;box-shadow:0 0 0 3px rgba(250,204,21,.12)}
.sx-input[readonly]{color:#8b8b8b}
.sx-chaps{display:grid;gap:8px}
.sx-chap{display:flex;gap:6px;align-items:center}
.sx-chap .sx-t{width:78px;flex:none;text-align:center;font-variant-numeric:tabular-nums}
.sx-chap .sx-ti{flex:1}
.sx-del,.sx-now{flex:none;width:36px;height:38px;border-radius:10px;border:1px solid #2a2a2a;background:transparent;color:#8b8b8b;font-size:18px;line-height:1;cursor:pointer}
.sx-now{font-size:15px}
.sx-del:hover{color:#f87171;border-color:#5a1b1b}
.sx-now:hover{color:#facc15;border-color:#4d3f0a}
.sx-add{margin-top:10px;background:none;border:1px dashed #333;border-radius:10px;color:#facc15;font:inherit;font-size:13px;font-weight:700;padding:9px 12px;cursor:pointer;width:100%}
.sx-add:hover{border-color:#facc15}
.sx-help{margin:8px 0 0;color:#8b8b8b;font-size:12px;line-height:1.5}

/* ---- chapitres dans le lecteur et sous la vidéo ---- */
.sp-mark{position:absolute;top:-1px;bottom:-1px;width:3px;margin-left:-1px;background:#000;pointer-events:none;z-index:2}
.sp-chap{color:#e5e5e5;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:40%}
.sp-chap:empty{display:none}
.sp-chap::before{content:'•';margin:0 6px 0 2px;color:#8b8b8b}
.chapters-box{margin-top:14px;padding-top:12px;border-top:1px solid #1f1f1f}
/* en-tête « Chapitres » : clic = ouvrir / fermer la liste */
.chap-head{display:flex;align-items:center;gap:10px;width:100%;background:transparent;border:1px solid transparent;border-radius:12px;padding:8px 10px;margin:0 -10px;width:calc(100% + 20px);color:#fff;font:inherit;cursor:pointer;text-align:left;transition:background .15s,border-color .15s;-webkit-tap-highlight-color:transparent}
.chap-head:hover{background:#171717;border-color:#262626}
.chap-head:focus-visible{outline:2px solid #facc15;outline-offset:2px}
.chap-title{font-size:14px;font-weight:700;flex:none}
.chap-count{flex:none;min-width:22px;height:20px;padding:0 7px;border-radius:999px;background:rgba(250,204,21,.14);color:#facc15;font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center}
.chap-now{flex:1;min-width:0;color:#8b8b8b;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transform:translateX(-6px);transition:opacity .2s,transform .2s}
.chap-now:not(:empty)::before{content:'▶ ';color:#facc15;font-size:10px}
.chapters-box.closed .chap-now{opacity:1;transform:none}
.chap-chev{flex:none;margin-left:auto;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#1c1c1c;border:1px solid #2a2a2a;transition:background .2s,border-color .2s}
.chap-chev svg{width:16px;height:16px;fill:none;stroke:#facc15;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s cubic-bezier(.4,0,.2,1)}
.chap-head:hover .chap-chev{background:rgba(250,204,21,.12);border-color:#4d3f0a}
.chapters-box.closed .chap-chev svg{transform:rotate(-90deg)}
/* ouverture / fermeture en douceur */
.chap-body{display:grid;grid-template-rows:1fr;transition:grid-template-rows .28s cubic-bezier(.4,0,.2,1),opacity .2s;opacity:1}
.chap-body>div{overflow:hidden;min-height:0}
.chap-body .chapters-list{padding-top:6px}
.chapters-box.closed .chap-body{grid-template-rows:0fr;opacity:0}
.chapters-box.closed .chap-body>div{visibility:hidden;transition:visibility 0s .28s}

.chapters-list{display:flex;flex-direction:column;gap:4px;list-style:none;margin:0;padding:0}
.chapters-list button{display:flex;gap:12px;align-items:center;width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:10px;padding:8px 10px;color:#e5e5e5;font:inherit;font-size:14px;cursor:pointer}
.chapters-list button:hover{background:#171717}
.chapters-list button.on{background:rgba(250,204,21,.08);border-color:#4d3f0a}
.chapters-list .ct{color:#facc15;font-weight:700;font-variant-numeric:tabular-nums;min-width:52px}
.chapters-list .cn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---- mini-lecteur : la vidéo / le live continue en bas à gauche pendant qu'on visite d'autres pages (js/miniplayer.js) ---- */
html.sx-shell,html.sx-shell body{overflow:hidden!important;background:#0a0a0a}
#sx-frame{position:fixed;top:0;left:0;width:100%;height:100%;border:0;margin:0;padding:0;display:block;z-index:2147483000;background:#0a0a0a}
.sx-mini-ui{display:none}
.sx-mini{position:fixed!important;left:16px!important;bottom:16px!important;top:auto!important;right:auto!important;width:360px!important;max-width:calc(100vw - 24px);height:auto!important;aspect-ratio:16/9;margin:0!important;z-index:2147483600!important;border-radius:12px!important;overflow:hidden!important;background:#000;box-shadow:0 12px 40px rgba(0,0,0,.75),0 0 0 1px #2a2a2a;animation:sxMiniIn .25s ease-out}
@keyframes sxMiniIn{from{transform:translateY(20px);opacity:0}to{transform:none;opacity:1}}
.sx-mini > :not(video):not(.sx-mini-ui){display:none!important}
.sx-mini video{width:100%!important;height:100%!important;object-fit:contain;cursor:pointer}
.sx-mini .sx-mini-ui{display:block;position:absolute;inset:0;z-index:20;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sx-mini-ui::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.6),transparent 40%,transparent 60%,rgba(0,0,0,.7));opacity:0;transition:opacity .2s}
.sx-mini:hover .sx-mini-ui::before,.sx-mini-ui:focus-within::before{opacity:1}
.sx-m-btn{position:relative;background:rgba(0,0,0,.45);border:0;color:#fff;width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;opacity:0;transition:opacity .2s,background .15s;-webkit-tap-highlight-color:transparent}
.sx-m-btn svg{width:20px;height:20px;fill:currentColor}
.sx-m-btn:hover{background:rgba(0,0,0,.75)}
.sx-mini:hover .sx-m-btn,.sx-mini-ui:focus-within .sx-m-btn{opacity:1}
.sx-m-top{position:absolute;top:6px;left:6px;right:6px;display:flex;align-items:center}
.sx-m-sp{flex:1}
.sx-m-play{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px}
.sx-m-play svg{width:26px;height:26px}
.sx-m-bot{position:absolute;left:8px;right:6px;bottom:7px;display:flex;align-items:center;gap:6px}
.sx-m-title{flex:1;min-width:0;color:#fff;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .2s;text-shadow:0 1px 3px #000}
.sx-mini:hover .sx-m-title{opacity:1}
.sx-m-prog{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.2)}
.sx-m-prog i{display:block;height:100%;width:0;background:#facc15}
.sx-m-prog.live{background:#ef4444}
/* écrans tactiles (pas de survol) : les boutons restent visibles */
@media (hover:none){
  .sx-mini-ui::before{opacity:1}
  .sx-m-btn,.sx-m-title{opacity:1}
}
/* téléphone / tablette : plus petit, au-dessus de la barre de navigation du bas */
@media (max-width:1024px){
  .sx-mini{left:8px!important;bottom:calc(66px + env(safe-area-inset-bottom))!important;width:min(240px,58vw)!important;border-radius:10px!important}
  .sx-m-btn{width:30px;height:30px}
  .sx-m-btn svg{width:18px;height:18px}
  .sx-m-play{width:40px;height:40px;margin:-20px 0 0 -20px}
  .sx-m-title{display:none}
}
/* page affichée sous le mini-lecteur : de la place en bas pour ne rien cacher */
html.sx-in-shell body{padding-bottom:calc(220px + env(safe-area-inset-bottom))}
@media (min-width:1025px){html.sx-in-shell body{padding-bottom:230px}}

/* Avertissement de l'équipe (warn) : notification + grosse fenêtre */
.n.n-warn{border-color:#7c2d12 !important;background:linear-gradient(135deg,#2a1208,#121212) !important}
.bp-list .n.n-warn{background:#1f0e07 !important}
.n .warn-ic{flex:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#ea580c;color:#fff;font-size:22px;font-weight:900}
.bp-list .n .warn-ic{width:38px;height:38px;font-size:19px}
.n.n-warn .txt b{color:#fb923c}
.n .warn-next{display:block;margin-top:4px;color:#fca5a5;font-size:12px;font-weight:600}
.warn-ov{z-index:4000;background:rgba(0,0,0,.85);backdrop-filter:blur(4px)}
.warn-box{width:100%;max-width:520px;max-height:calc(100dvh - 32px);overflow-y:auto;background:linear-gradient(180deg,#2a0f0a,#141414 55%);border:2px solid #ea580c;border-radius:20px;padding:30px 26px 24px;text-align:center;box-shadow:0 0 0 6px rgba(234,88,12,.15),0 30px 80px rgba(0,0,0,.7);animation:warnIn .35s cubic-bezier(.2,1.4,.4,1)}
@keyframes warnIn{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}
.warn-icon{width:78px;height:78px;margin:0 auto 14px;border-radius:50%;background:#ea580c;color:#fff;font-size:42px;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 0 30px rgba(234,88,12,.6)}
.warn-kicker{color:#fb923c;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;margin-bottom:6px}
.warn-box h2{margin:0 0 18px;color:#fff;font-size:26px;letter-spacing:-.5px;line-height:1.2}
.warn-reason{background:#0d0d0d;border:1px solid #3a1d10;border-radius:14px;padding:14px 16px;text-align:left;margin-bottom:16px}
.warn-reason span{display:block;color:#8b8b8b;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}
.warn-reason b{color:#fff;font-size:17px}
.warn-reason p{margin:8px 0 0;color:#d4d4d4;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.warn-threat{margin:0 0 20px;color:#fecaca;font-size:14px;line-height:1.55}
.warn-threat b{color:#f87171}
.warn-ok{width:100%;padding:14px;border:0;border-radius:12px;background:#ea580c;color:#fff;font:inherit;font-size:16px;font-weight:800;cursor:pointer}
.warn-ok:hover:not(:disabled){background:#f97316}.warn-ok:disabled{opacity:.6;cursor:default}
@media (max-width:560px){.warn-box{padding:24px 18px 18px}.warn-box h2{font-size:22px}.warn-icon{width:64px;height:64px;font-size:34px}}
