/* Format du direct : Horizontal 16:9 / Vertical 9:16 */
.pf { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 8px; }
.pf-h { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9aa6b8; }
.pf-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-opts button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.12); background: #111823; width: auto !important; }
.pf-opts .ic { grid-row: 1 / span 2; font-size: 22px; }
.pf-opts b { font-size: 14px; } .pf-opts i { font-style: normal; font-weight: 800; color: #f3c24f; margin-left: 6px; font-size: 13px; }
.pf-opts b + i { grid-column: 2; grid-row: 1; justify-self: end; }
.pf-opts small { grid-column: 2; font-size: 10.5px; color: #8f9bb0; line-height: 1.3; }
.pf-opts button.sel { border-color: #f3c24f; background: linear-gradient(180deg, rgba(243,194,79,.16), rgba(243,194,79,.05)); box-shadow: 0 0 0 1px #f3c24f inset; }
.pf-opts button.sel b { color: #f6dd9c; }
.pf-now { font-size: 12px; letter-spacing: .04em; color: #c9d2de; padding: 6px 10px; border-radius: 8px; background: rgba(243,194,79,.08); border: 1px solid rgba(243,194,79,.25); }
.pf-now b { color: #f3c24f; } .pf-lock { color: #ff7b7b; font-weight: 700; }
.pf-adv { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); font-size: 12px; }
.pf-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .pf-row > span:first-child { min-width: 104px; color: #9aa6b8; } .pf-row input[type=range] { flex: 1; min-width: 80px; }
.pf-seg { display: inline-flex; gap: 4px; flex-wrap: wrap; } .pf-seg button { padding: 4px 10px; border-radius: 999px; font-size: 12px; width: auto !important; }
.pf-seg button.sel { background: #f3c24f; color: #1a1205; border-color: #f3c24f; font-weight: 700; }
.pf-tech { font-size: 11px; color: #8f9bb0; }
.pf-rec { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9aa6b8; margin-top: 6px; } .pf-rec[hidden] { display: none; }
/* écrans en vertical : Programme et aperçu au format 9:16, centrés, hauteur raisonnable */
body.fmt-v #pv { width: min(100%, calc(64vh * 9 / 16)); margin: 0 auto; }
body.fmt-v #pv iframe { aspect-ratio: 9 / 16; }
body.fmt-v .pvwbox { aspect-ratio: 9 / 16; width: min(100%, calc(40vh * 9 / 16)); margin: 0 auto; }
body.fmt-v:not([data-page="studio"]) #pgmCard { width: 170px !important; }
/* zones sûres (TikTok LIVE / Reels / Shorts) : affichées sur les écrans de la Régie seulement */
.pf-safe { position: absolute; inset: 0; pointer-events: none; z-index: 5; } .pf-safe[hidden] { display: none; }
.pfz { position: absolute; background: rgba(255,77,79,.16); border: 1px dashed rgba(255,120,120,.65); display: flex; align-items: center; justify-content: center; }
.pfz span { font-size: 10px; color: #ffd0d0; background: rgba(0,0,0,.45); padding: 1px 5px; border-radius: 4px; }
.pfz.top { left: 0; right: 0; top: 0; height: 12%; } .pfz.bottom { left: 0; right: 0; bottom: 0; height: 30%; } .pfz.right { right: 0; top: 40%; height: 30%; width: 15%; }
.pfz.right span { writing-mode: vertical-rl; }
/* partage d'écran : bouton direct sur l'Aperçu / le Programme, ligne claire dans les réglages de la scène */
.scr-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 800; background: #f3c24f; color: #1a1205; border: 0; box-shadow: 0 8px 26px rgba(0,0,0,.5); cursor: pointer; width: auto !important; white-space: nowrap; }
.scr-cta:hover { filter: brightness(1.08); }
.si-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .si-shared { color: #7ee2a8; font-weight: 700; font-size: 13px; }
.si-pick { background: #f3c24f !important; color: #1a1205 !important; border-color: #f3c24f !important; font-weight: 800; }
/* Que montrer ? — grandes cartes avec miniature de la composition */
.qs { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.qs-h, .pf-h { display: flex; align-items: center; gap: 7px; }
.step { display: none; width: 18px; height: 18px; border-radius: 50%; background: #f3c24f; color: #1a1205; font-size: 11px; font-weight: 900; align-items: center; justify-content: center; letter-spacing: 0; }
body.simple .step { display: inline-flex; }
.qs-h { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9aa6b8; }
.qs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qs-cards button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 6px 8px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.12); background: #111823; width: auto !important; font-size: 12px; }
.qs-cards button b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.qs-cards button.sel { border-color: #f3c24f; box-shadow: 0 0 0 1px #f3c24f inset; background: linear-gradient(180deg, rgba(243,194,79,.14), rgba(243,194,79,.03)); }
.qs-th { position: relative; display: block; width: 74px; aspect-ratio: 16 / 9; border-radius: 5px; background: #0a0e14; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.qs-th.v { width: 34px; aspect-ratio: 9 / 16; }
.qs-th i { position: absolute; display: block; border-radius: 2px; }
.qs-th .cam { background: linear-gradient(160deg, #3b6fd8, #1d3a7a); } .qs-th .cam2 { background: linear-gradient(160deg, #2bb673, #146b42); }
.qs-th .scr { background: linear-gradient(160deg, #8a96a8, #4b5566); } .qs-th .img { background: linear-gradient(160deg, #c9a64a, #7a5e1f); }
.qs-th .pip { box-shadow: 0 0 0 1px #0a0e14; } .qs-th .wave { background: repeating-linear-gradient(90deg, #f3c24f 0 2px, transparent 2px 4px); }
.qs-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #9aa6b8; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.qs-sub button { padding: 5px 10px; border-radius: 999px; font-size: 12px; width: auto !important; }
.qs-seg { display: inline-flex; gap: 4px; flex-wrap: wrap; } .qs-seg button.sel { background: #f3c24f; color: #1a1205; border-color: #f3c24f; font-weight: 700; }
.qs-on { color: #7ee2a8; } .qs-size { display: flex; align-items: center; gap: 6px; } .qs-size input { width: 120px; }
/* Mode simple : pas besoin des scènes ni de leurs réglages (le Mode avancé les garde) */
body.simple #scenesCard, body.simple #inspCard { display: none !important; }
/* les cartes tiennent dans la colonne de droite (jamais de défilement horizontal) */
#qsBox, #lfBox { min-width: 0; max-width: 100%; }
.qs-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qs-cards button { min-width: 0; }
.qs-sub .qs-seg button[data-stack] { flex-basis: 100%; border-radius: 10px; }
.qs-sub > button[data-qa] { font-weight: 700; }
.qs-cards button b { white-space: normal; text-align: center; line-height: 1.2; }
/* Que montrer ? : tuiles (Interview) et titre (Starting Soon) dans les miniatures */
.qs-th .tile { border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.qs-th .txt { background: #f3c24f; border-radius: 2px; opacity: .85; }
/* STYLE + HABILLAGES (js/looks.js) */
#lkBox { min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.lk-h { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8f9bb0); margin-top: 4px; }
.lk-packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
body:not(.simple) .lk-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lk-packs button { min-width: 0; width: auto !important; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 4px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.12); background: #111823; font-size: 11px; }
.lk-packs button b { font-size: 11px; line-height: 1.15; text-align: center; white-space: normal; }
.lk-packs button.sel { border-color: #f3c24f; box-shadow: 0 0 0 1px #f3c24f inset; background: linear-gradient(180deg, rgba(243,194,79,.14), rgba(243,194,79,.03)); }
/* aperçu de chaque style : cadre + petit bandeau */
.lk-sw { position: relative; width: 100%; max-width: 64px; aspect-ratio: 16 / 9; border-radius: 4px; background: linear-gradient(160deg, #3b6fd8, #1d3a7a); overflow: hidden; }
.lk-sw i { position: absolute; left: 10%; bottom: 14%; width: 46%; height: 18%; border-radius: 2px; }
.lk-sw-clean { box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); } .lk-sw-clean i { background: #f5f7fa; border-left: 3px solid #f3c24f; }
.lk-sw-gold { background-image: linear-gradient(#f3c24f,#f3c24f), linear-gradient(#f3c24f,#f3c24f), linear-gradient(#f3c24f,#f3c24f), linear-gradient(#f3c24f,#f3c24f), linear-gradient(160deg, #3b6fd8, #1d3a7a);
  background-size: 10px 2px, 2px 8px, 10px 2px, 2px 8px, auto; background-position: 3px 3px, 3px 3px, calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), 0 0; background-repeat: no-repeat; }
.lk-sw-gold i { background: #0b0f14; border-left: 3px solid #f3c24f; }
.lk-sw-dark { box-shadow: inset 0 0 0 4px #0b0f14, inset 0 0 0 5px #3a4656; } .lk-sw-dark i { background: #080a0e; border-left: 3px solid #fff; }
.lk-sw-minimal { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); } .lk-sw-minimal i { background: rgba(0,0,0,.5); border-left: 2px solid rgba(255,255,255,.85); }
.lk-sw-creator { box-shadow: inset 0 0 0 3px #7c3aed, inset 0 0 0 4px #eb88d5; } .lk-sw-creator i { background: linear-gradient(120deg,#291747,#683774); border-left: 3px solid #eb88d5; }
.lk-sw-corporate { box-shadow: inset 0 3px 0 #112743, inset 0 -3px 0 #112743; } .lk-sw-corporate i { background: linear-gradient(120deg,#112743,#205276); border-left: 3px solid #63d7ef; }
.lk-sw-royal { box-shadow: inset 0 0 0 2px #d4af37, inset 0 0 0 5px rgba(15,26,61,.35), inset 0 0 0 6px #d4af37; } .lk-sw-royal i { background: #0f1a3d; border: 1px solid #d4af37; border-left-width: 3px; }
.lk-sw-sunset { box-shadow: inset 0 0 10px 3px rgba(255,122,61,.75); } .lk-sw-sunset i { background: linear-gradient(120deg,#3b0d2a,#c2410c); border-left: 3px solid #ffb347; }
.lk-sw-emerald { background-image: linear-gradient(#d7ba78,#d7ba78), linear-gradient(#d7ba78,#d7ba78), linear-gradient(#d7ba78,#d7ba78), linear-gradient(#d7ba78,#d7ba78), linear-gradient(160deg, #3b6fd8, #1d3a7a);
  background-size: 9px 2px, 2px 9px, 9px 2px, 2px 9px, cover; background-position: 3px 3px, 3px 3px, calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), center; background-repeat: no-repeat; }
.lk-sw-emerald i { background: #103d33; border: 1px solid #d7ba78; }
.lk-sw-editorial { box-shadow: inset 0 0 0 4px #f4f0e8, inset 0 0 0 5px #bc8c38; } .lk-sw-editorial i { background: #f4f0e8; border-bottom: 2px solid #bc8c38; }
.lk-sw-neon { box-shadow: inset 0 0 0 1px #a78bfa, inset 0 0 9px 2px rgba(34,211,238,.85); } .lk-sw-neon i { background: linear-gradient(120deg,#0a0f1f,#1e1b4b); border-left: 3px solid #22d3ee; }
.lk-sw-cinema { box-shadow: inset 0 6px 0 #000, inset 0 -6px 0 #000; } .lk-sw-cinema i { background: rgba(8,10,14,.94); border-left: 3px solid #fff; bottom: 26%; }
/* interrupteurs ON / OFF */
.lk-list { display: flex; flex-direction: column; gap: 2px; }
.lk-r { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 2px 2px 2px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.lk-n { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; }
.lk-x { flex: 0 1 auto; min-width: 0; max-width: 46%; width: auto !important; padding: 3px 8px; font-size: 11px; color: var(--muted, #8f9bb0); background: transparent; border: 1px dashed rgba(255,255,255,.18); border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-tg { flex: none; width: 62px !important; height: 26px; padding: 0 8px 0 4px; display: inline-flex; align-items: center; justify-content: space-between; gap: 4px; border-radius: 13px; background: #222b37; border: 1px solid rgba(255,255,255,.14); font-size: 10.5px; font-weight: 800; color: #8f9bb0; }
.lk-tg i { width: 18px; height: 18px; border-radius: 50%; background: #5b6676; transition: transform .15s; }
.lk-tg.on { background: #f3c24f; border-color: #f3c24f; color: #1a1205; flex-direction: row-reverse; padding: 0 4px 0 8px; }
.lk-tg.on i { background: #1a1205; }
.lk-f { display: flex; gap: 6px; padding: 4px 0 8px; } .lk-f input { flex: 1; min-width: 0; font-size: 12px; }
