/* Éditeur de miniature (admins, thumb-edit.js) : app des membres et page admin « Vidéos ». */
html.tb-lock{ overflow:hidden; }
.tb-modal{ position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:12px; background:rgba(18,16,11,.62); }
.tb-box{ width:min(780px,100%); max-height:calc(100dvh - 24px); overflow:auto; padding:18px; border-radius:22px; background:var(--bg, #f8f3e9); color:var(--text, #2e261d);
  box-shadow:0 30px 80px -20px rgba(0,0,0,.55); }
.tb-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.tb-head h2{ margin:0; font-size:1.3rem; }
.tb-x{ flex:none; width:38px; height:38px; border:0; border-radius:50%; background:var(--line, #eee); color:inherit; font-size:1.5rem; line-height:1; cursor:pointer; }
.tb-vt{ margin:4px 0 12px; color:var(--muted, #6a604f); font-size:.92rem; }
.tb-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:start; }
.tb-stage{ position:relative; width:fit-content; max-width:100%; margin:0 auto; overflow:hidden; border-radius:12px; background:#111; direction:ltr;
  touch-action:none; cursor:grab; user-select:none; -webkit-user-select:none; outline-offset:3px; }
.tb-stage:active{ cursor:grabbing; }
.tb-full{ display:block; max-width:100%; max-height:46vh; pointer-events:none; }
.tb-win{ position:absolute; border:2px solid #fff; border-radius:6px; box-shadow:0 0 0 9999px rgba(0,0,0,.5); pointer-events:none; }
.tb-label, .tb-cap, .tb-help{ display:block; margin:6px 0; font-size:.86rem; color:var(--muted, #6a604f); }
.tb-label{ text-align:center; }
.tb-card{ aspect-ratio:16/9; margin-bottom:10px; border-radius:14px; overflow:hidden; background:linear-gradient(135deg,#d9bf8c,#7a5a3f); }
.tb-card img{ display:block; width:100%; height:100%; object-fit:cover; }
.tb-card img:not([src]){ visibility:hidden; }
.tb-range{ width:100%; margin:4px 0 12px; accent-color:var(--accent, #3f5a3a); }
.tb-row{ display:flex; flex-wrap:wrap; gap:8px; }
.tb-up{ cursor:pointer; }
.tb-status{ min-height:1.3em; margin:10px 0 0; font-size:.9rem; font-weight:600; }
.ve-thumb{ flex:none; width:64px; aspect-ratio:16/9; border-radius:6px; object-fit:cover; background:var(--line, #eee); }
@media (max-width:640px){
  .tb-grid{ grid-template-columns:1fr; gap:10px; }
  .tb-full{ max-height:38vh; }
  .tb-box{ padding:14px; border-radius:18px; }
  .tb-row .btn{ flex:1 1 auto; }
}
