/* 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}
.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 */
.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:24px}
.comments h3{color:#fff;font-size:18px;margin:0 0 16px}
.comment-form{display:flex;gap:12px;align-items:flex-start;margin-bottom:20px}
.comment-form textarea{flex:1;min-height:44px;max-height:160px;resize:vertical;background:#0f0f0f;border:1px solid #1f1f1f;border-radius:10px;color:#fff;padding:10px 12px;font:inherit;outline:none}
.comment-form textarea:focus{border-color:#facc15}
.comment-form .form-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;color:#8b8b8b;font-size:12px}
.comment{display:flex;gap:12px;margin-bottom:18px}
.comment img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none}
.comment .body{flex:1;min-width:0}
.comment .who{font-size:13px;color:#fff;font-weight:600}
.comment .who a{color:inherit;text-decoration:none}
.comment .who span{color:#8b8b8b;font-weight:400;margin-left:8px}
.comment .txt{margin-top:4px;color:#d4d4d4;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.comment .del{background:none;border:0;color:#8b8b8b;font-size:12px;cursor:pointer;padding:4px 0}
.comment .del:hover{color:#ef4444}

@media (max-width:640px){
  .sx-toast{left:12px;right:12px;bottom:12px}
  .controls{flex-direction:column;align-items:stretch}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
