/* Studio de clips : liste des interviews, éditeur (aperçu 9:16 + onglets), sous-titres, musique, création */
:root { --st-chamois-text: #6f6c3f; } /* chamois text on light backgrounds, 5:1 contrast */
.studio { margin-top: -3.4rem; position: relative; padding-bottom: 4rem; }
.st-empty, .st-pick, .st-gate { padding: 1.8rem; }
.st-gate { max-width: 40rem; margin-inline: auto; }
.st-gate h2 { margin: 0 0 .6rem; }
.st-gate-msg { padding: .8rem 1rem; border-left: 4px solid var(--color-accent); background: var(--color-surface-alt); border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; }
.st-gate-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 .4rem; }
.st-member { color: var(--color-muted); text-transform: none; letter-spacing: 0; font-weight: 600; }
.st-logout { font: inherit; font-size: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-caps); background: none; border: 0; padding: 0; color: var(--color-primary); cursor: pointer; text-decoration: underline; }
.st-empty h2, .st-pick h2 { margin-top: 0; }
.st-legal { margin: 1.6rem .4rem 0; font-size: .8rem; line-height: 1.5; color: var(--color-muted); max-width: 46rem; }

#studio :is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid var(--color-ring); outline-offset: 2px; }
.st-opt:has(input:focus-visible) { outline: 3px solid var(--color-ring); outline-offset: 2px; }
.st-opt input:focus-visible { outline: none; }

/* liste des interviews */
.st-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.st-video { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--color-surface-alt); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.st-video:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.st-video img, .st-video .thumb-empty { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, var(--ne-blue-dark), var(--ne-blue)); color: var(--ne-chamois); font-size: 2rem; }
.st-video-info { display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem 1.1rem; }
.st-video-info strong { color: var(--color-primary); line-height: 1.3; }
.st-video-info small { color: var(--color-muted); }

/* mise en page de l'éditeur */
.st-top { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; color: #fff; }
.st-back { color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-caps); text-decoration: none; }
.st-back:hover { text-decoration: underline; }
.st-title { margin: 0; font-weight: 700; opacity: .95; overflow-wrap: anywhere; }
.st-grid { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.st-left { position: sticky; top: 1rem; }
.st-stage { padding: 0; overflow: hidden; }

/* aperçu 9:16 */
.phone { width: 100%; max-width: 21rem; margin: 0 auto; display: grid; gap: .6rem; }
.ph-screen { position: relative; aspect-ratio: 9 / 16; background: #111; border-radius: 1.4rem; overflow: hidden; box-shadow: var(--shadow-hover); border: 5px solid #0d0f2b; touch-action: pan-y; }
.ph-stage { position: absolute; inset: 0; will-change: transform; }
.ph-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111; }
.ph-video.panning { cursor: grab; touch-action: pan-y; }
.ph-video.panning:active { cursor: grabbing; }
.sub-box { position: absolute; transform: translate(-50%, -50%); cursor: grab; touch-action: none; padding: .2rem; border: 1px dashed transparent; border-radius: 6px; }
.sub-box:hover, .sub-box.dragging { border-color: rgba(255,255,255,.7); }
.sub-box.dragging { cursor: grabbing; }
.sub-box.ghost { opacity: .85; }
.sub-text { position: relative; text-wrap: balance; font-family: var(--ff); font-size: var(--fs); line-height: var(--lh); color: var(--c); width: var(--w); text-align: center; transform: scale(var(--k, 1)); transform-origin: center; user-select: none; -webkit-user-select: none; overflow-wrap: normal; }
.sub-text .w.on { color: var(--hl); }
.sub-fond { z-index: -1; position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.sub-text.pop { animation: st-pop .17s ease-out; }
@keyframes st-pop { 0% { transform: scale(calc(.72 * var(--k, 1))); } 52% { transform: scale(calc(1.06 * var(--k, 1))); } 100% { transform: scale(var(--k, 1)); } }
/* repères de centrage pendant le déplacement des sous-titres (pointillés ; pleins et colorés quand le bloc est exactement centré) */
.ph-guide { position: absolute; pointer-events: none; z-index: 2; }
.ph-guide[hidden] { display: none; }
.ph-guide.v { left: 50%; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed rgba(255,255,255,.85); filter: drop-shadow(0 0 1px rgba(0,0,0,.9)); }
.ph-guide.h { top: 50%; left: 0; right: 0; height: 0; border-top: 1.5px dashed rgba(255,255,255,.85); filter: drop-shadow(0 0 1px rgba(0,0,0,.9)); }
.ph-guide.on { border-color: #FF3D8B; border-style: solid; filter: drop-shadow(0 0 2px rgba(255,61,139,.85)); }
.ph-hint { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); padding: .4rem .8rem; border-radius: var(--radius-pill); background: rgba(13,15,43,.78); color: #fff; font-size: .72rem; font-weight: 700; white-space: nowrap; pointer-events: none; animation: st-fade 4.5s ease-out forwards; }
.ph-hint[hidden] { display: none; }
@keyframes st-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.ph-play { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); width: 3.2rem; height: 3.2rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--color-primary); font-size: 1.2rem; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ph-play[hidden] { display: none; }
.ph-busy { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; background: rgba(13,15,43,.72); color: #fff; font-weight: 700; font-size: .9rem; }
.ph-busy[hidden], .ph-guides[hidden] { display: none; }
.ph-guides { position: absolute; inset: 0; pointer-events: none; }
.ph-guides span { position: absolute; left: 0; right: 0; display: grid; place-items: center; font-size: .6rem; color: #fff; background: repeating-linear-gradient(135deg, rgba(254,44,85,.35) 0 6px, rgba(254,44,85,.2) 6px 12px); text-transform: uppercase; letter-spacing: .06em; }
.ph-guides .top { top: 0; height: 7%; }
.ph-guides .bottom { bottom: 0; height: 24%; text-align: center; padding: 0 1rem; }
.ph-bar { display: flex; align-items: center; gap: .7rem; }
.ph-range { flex: 1; accent-color: var(--color-primary); }
.ph-time { font-size: .75rem; color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-toggle { justify-self: center; display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--color-muted); cursor: pointer; }

/* onglets */
.st-tabs { display: flex; flex-wrap: wrap; background: var(--color-surface-alt); border-bottom: 1px solid var(--color-hairline); }
.st-tabs button { flex: 1 0 auto; font: inherit; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-caps); padding: 1rem 1.2rem; min-height: 2.75rem; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--color-muted); cursor: pointer; white-space: nowrap; }
.st-tabs button[aria-selected="true"] { color: var(--color-primary); border-bottom-color: var(--color-accent); background: var(--color-surface); }
.st-panel { padding: 1.3rem 1.5rem 1.6rem; }
.st-panel[hidden] { display: none; }
.st-panel h3 { margin: 1.6rem 0 .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--color-primary); }
.st-panel h3:first-child { margin-top: 0; }
.st-help { margin: .3rem 0 .8rem; font-size: .85rem; line-height: 1.5; color: var(--color-muted); }
.st-msg { margin: .6rem 0 0; font-size: .85rem; }
.st-msg.err, .st-total.err, .st-job-text.err { color: var(--color-danger); font-weight: 700; }
.st-total { margin: .6rem 0 0; font-size: .85rem; font-weight: 700; color: var(--color-primary); }
.st-mini { min-width: 2.2rem; height: 2.2rem; padding: 0 .6rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: #fff; color: var(--color-primary); font: inherit; font-weight: 800; cursor: pointer; }
.st-mini:hover:not(:disabled) { background: var(--color-primary); color: #fff; }
.st-mini:disabled { opacity: .4; cursor: default; }
.st-mini.wide { padding: 0 1rem; font-size: .8rem; }
.st-link { border: 0; background: none; color: var(--color-accent); font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; padding: .4rem; }

/* extraits */
.st-exlist, .st-sugg, .st-lines, .st-tracks, .st-sum { list-style: none; margin: 0; padding: 0; }
.st-ex, .st-card { border: 1px solid var(--color-hairline); border-radius: var(--radius); padding: .9rem 1rem; background: var(--color-surface-alt); }
.st-exlist, .st-sugg { display: grid; gap: .8rem; }
.st-ex-head, .st-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.st-edge { display: grid; gap: .25rem; margin-top: .6rem; font-size: .82rem; color: var(--color-text); }
.st-edge-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.st-edge-label { min-width: 3rem; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--st-chamois-text); }
.st-edge-text { min-width: 0; overflow-wrap: anywhere; color: var(--color-muted); }
.st-time { width: 6.2rem; height: 2.2rem; padding: 0 .5rem; text-align: center; font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: #fff; color: var(--color-text); }
.st-time:focus { outline: 3px solid var(--color-ring); outline-offset: 0; }
.st-time.short { width: 4.2rem; }
.st-time.on { border-color: var(--color-primary); background: var(--color-surface-alt); }
.st-stepbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: .2rem 0 .9rem; }
.st-step-label { font-size: .75rem; font-weight: 700; color: var(--color-muted); }
.st-stepchips { flex-wrap: wrap; }
.st-step-custom { display: inline-flex; align-items: center; gap: .3rem; }
.st-step-custom small { color: var(--color-muted); font-weight: 700; }
.st-ex-tools { display: flex; align-items: center; gap: .4rem; margin-top: .7rem; }
.st-ex-tools .st-link { margin-left: auto; }
.st-why { margin: .4rem 0 .2rem; font-size: .88rem; }
.st-meta { margin: 0 0 .5rem; font-size: .78rem; color: var(--color-muted); }
.st-text { margin: .5rem 0; font-size: .85rem; line-height: 1.55; color: var(--color-text); }
.st-card summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--color-primary); margin-bottom: .4rem; }
.st-search { width: 100%; font: inherit; padding: .75rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); margin-bottom: .6rem; }
.st-lines { max-height: 20rem; overflow-y: auto; border: 1px solid var(--color-hairline); border-radius: var(--radius); background: #fff; }
.st-lines button { display: flex; gap: .8rem; width: 100%; text-align: left; font: inherit; font-size: .85rem; line-height: 1.4; padding: .6rem .8rem; border: 0; border-bottom: 1px solid var(--color-hairline); background: transparent; cursor: pointer; }
.st-lines button:hover { background: var(--color-surface-alt); }
.st-t { flex: none; width: 2.8rem; font-weight: 800; color: var(--st-chamois-text); font-variant-numeric: tabular-nums; }
.st-more { justify-content: center; color: var(--color-primary); font-weight: 700; }
.st-none { padding: .8rem; color: var(--color-muted); font-size: .85rem; }

/* sous-titres */
.st-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.2rem, 1fr)); gap: .7rem; }
.st-preset { display: flex; flex-direction: column; gap: .3rem; padding: .6rem; text-align: left; font: inherit; border: 2px solid var(--color-hairline); border-radius: var(--radius); background: #fff; cursor: pointer; }
.st-preset.on { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(208,22,95,.15); }
.st-preset strong { font-size: .82rem; color: var(--color-primary); }
.st-preset small { font-size: .72rem; line-height: 1.35; color: var(--color-muted); }
.st-sample-box { display: grid; place-items: center; height: 3.6rem; border-radius: .5rem; background: linear-gradient(135deg, #2b2d42, #1a1b2e); overflow: hidden; }
.st-sample { white-space: nowrap; line-height: 1.1; }
.st-fonts { max-height: 15rem; overflow-y: auto; border: 1px solid var(--color-hairline); border-radius: var(--radius); padding: .6rem; background: #fff; }
.st-cat { margin: .5rem 0 .3rem; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--st-chamois-text); }
.st-cat:first-child { margin-top: 0; }
.st-font-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr)); gap: .4rem; }
.st-font { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem .3rem; border: 2px solid transparent; border-radius: .6rem; background: var(--color-surface-alt); cursor: pointer; font: inherit; }
.st-font > span { font-size: 1.35rem; line-height: 1.2; color: var(--color-primary); }
.st-font small { font-size: .62rem; color: var(--color-muted); white-space: nowrap; }
.st-font[aria-selected="true"] { border-color: var(--color-accent); background: #fff; }
.st-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .8rem; align-items: center; margin: .55rem 0; }
.st-row[hidden], .st-sub[hidden] { display: none; }
.st-row > label { font-size: .85rem; font-weight: 600; }
.st-row-ctl { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; min-width: 0; }
.st-row-ctl input[type="range"] { flex: 1; min-width: 7rem; accent-color: var(--color-primary); }
.st-row-ctl output { min-width: 3.4rem; text-align: right; font-size: .8rem; font-weight: 700; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.st-row-ctl input[type="color"] { width: 2.4rem; height: 2.2rem; padding: 0; border: 1px solid var(--color-border); border-radius: .5rem; background: none; cursor: pointer; }
.st-swatches { display: flex; gap: .3rem; flex-wrap: wrap; }
.st-sw { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; padding: 0; }
.st-sw span { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--color-border); }
.st-check { display: flex; align-items: center; gap: .6rem; margin: .7rem 0; font-size: .88rem; font-weight: 600; cursor: pointer; }
.st-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--color-primary); flex: none; }
.st-pos { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.st-end { font-size: .75rem; color: var(--color-muted); }
.st-sub-block { margin-top: .6rem; }

/* musique */
.st-tracks { display: grid; gap: .5rem; }
.st-track { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem; border: 2px solid var(--color-hairline); border-radius: var(--radius); background: #fff; }
.st-track.on { border-color: var(--color-accent); }
.st-playtrack { flex: none; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--color-primary); color: #fff; cursor: pointer; font-size: .85rem; }
.st-trackname { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; padding: .4rem .3rem; border: 0; background: none; font: inherit; cursor: pointer; }
.st-trackname strong { color: var(--color-primary); }
.st-trackname small { color: var(--color-muted); font-size: .75rem; }

/* cadrage et qualité */
.st-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .7rem; }
.st-opt { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1rem; border: 2px solid var(--color-hairline); border-radius: var(--radius); background: #fff; cursor: pointer; position: relative; }
.st-opt.on { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(208,22,95,.12); }
.st-opt input { position: absolute; opacity: 0; pointer-events: none; }
.st-opt strong { color: var(--color-primary); font-size: .9rem; }
.st-opt small { color: var(--color-muted); font-size: .78rem; line-height: 1.4; }

/* création */
.st-sum { display: grid; gap: .35rem; font-size: .9rem; }
.pledge { padding: .8rem 1rem; background: var(--color-surface-alt); border-radius: var(--radius); }
.st-job { margin-top: 1rem; }
.st-job progress { width: 100%; height: .7rem; accent-color: var(--color-accent); margin: .5rem 0 .8rem; }
.st-job-text { margin: 0; font-weight: 700; color: var(--color-primary); }
.st-job-text.ok { color: var(--color-success); }
.st-result { width: min(100%, 16rem); aspect-ratio: 9/16; margin: .8rem 0; border-radius: 1rem; background: #000; display: block; }
.st-job-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
#studio .btn:disabled { opacity: .5; cursor: default; }

/* en-tête : le titre de l'interview est dans le bandeau bleu (jamais coupé, même sur plusieurs lignes) */
.hero.editor { padding-bottom: 2.6rem; }
.hero.editor .st-top { margin: 1.4rem 0 0; }
.studio.editing { margin-top: -1.2rem; }
.ph-size { display: none; }

/* téléphone : l'aperçu reste visible en haut pendant qu'on règle ; « Agrandir » le montre presque plein écran */
@media (max-width: 900px) {
  .st-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .st-left { top: 0; z-index: 30; margin: 0 -1rem; padding: .5rem 1rem; background: rgba(249,249,249,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--color-hairline); }
  .phone { max-width: none; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; align-items: center; column-gap: .9rem; }
  .ph-screen { height: 35vh; height: min(35dvh, 24rem); width: auto; border-width: 3px; border-radius: 1rem; grid-row: 1 / span 3; }
  .ph-bar { grid-column: 2; grid-row: 1; align-self: end; flex-direction: column; align-items: stretch; gap: .3rem; }
  .ph-toggle { grid-column: 2; grid-row: 2; justify-self: start; align-self: start; }
  .ph-size { display: inline-flex; grid-column: 2; grid-row: 3; justify-self: start; align-self: start; align-items: center; gap: .3rem; font: inherit; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: var(--tracking-caps); padding: .55rem .9rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: #fff; color: var(--color-primary); cursor: pointer; }
  .ph-size[aria-pressed="true"] { background: var(--color-primary); color: #fff; }
  .ph-play { width: 2.6rem; height: 2.6rem; font-size: 1rem; }
  /* agrandi : l'aperçu occupe presque tout l'écran, centré, commandes dessous ; il défile avec la page (on remonte pour le revoir) */
  .st-left.big, .studio[data-tab="creer"] .st-left { position: static; }
  html { scroll-padding-top: 40vh; scroll-padding-top: 40dvh; }
  .phone.big { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; justify-items: center; }
  .phone.big .ph-screen { height: 72vh; height: min(72dvh, 44rem); grid-row: auto; }
  .studio[data-tab="creer"] .ph-screen { height: 28vh; height: min(28dvh, 18rem); }
  .phone.big .ph-bar, .phone.big .ph-toggle, .phone.big .ph-size { grid-column: 1; grid-row: auto; }
  .phone.big .ph-bar { align-self: stretch; width: 100%; flex-direction: row; align-items: center; gap: .7rem; }
  .phone.big .ph-toggle { justify-self: center; }
  .phone.big .ph-size { justify-self: center; }
  .st-panel { padding: 1.1rem 1rem 1.4rem; }
  .st-row { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
}
@media (max-width: 900px) {
  .st-tabs button { flex: 1 1 33.33%; white-space: normal; text-align: center; padding: .7rem .3rem; line-height: 1.2; }
}
@media (max-width: 480px) { .st-left { padding: .4rem 1rem; } }
@media (max-height: 560px) and (max-width: 900px) { .ph-screen { height: 30vh; height: 30dvh; } }
/* téléphone : une fois dans l'éditeur, le texte d'accueil ne sert plus et repousse l'aperçu hors de l'écran */
@media (max-width: 900px) {
  .hero.editor { padding-top: 1.4rem; }
  .hero.editor .wrap > p:not(.eyebrow) { display: none; }
  .hero.editor .st-top { margin-top: .9rem; }
}

/* texte des sous-titres */
.st-subnav { margin-bottom: 1.2rem; }
.st-line-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.st-line-head { margin-top: .6rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--st-chamois-text); }
.st-line { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .7rem; align-items: start; padding: .6rem .7rem; border: 1px solid var(--color-hairline); border-radius: var(--radius); background: #fff; }
.st-line.edited { border-color: var(--ne-chamois); background: #fffdf2; }
.st-line.far { border-color: var(--color-danger); background: #fff6f8; }
.st-seek { font: inherit; font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; padding: .55rem .5rem; border: 0; border-radius: var(--radius-pill); background: var(--color-surface-alt); color: var(--color-primary); cursor: pointer; white-space: nowrap; }
.st-seek:hover { background: var(--color-primary); color: #fff; }
.st-line-text { width: 100%; font: inherit; font-size: .92rem; line-height: 1.45; padding: .45rem .6rem; border: 1px solid var(--color-border); border-radius: .5rem; resize: none; overflow: hidden; background: #fff; color: var(--color-text); }
.st-line-text:focus { outline: 3px solid var(--color-ring); outline-offset: 0; }
.st-line-meta { display: flex; align-items: center; gap: .6rem; margin-top: .25rem; min-height: 1.2rem; }
.st-line-meta [hidden], .st-line-warn[hidden] { display: none; }
.st-line-warn { margin: .3rem 0 0; font-size: .78rem; font-weight: 700; color: var(--color-danger); }
@media (max-width: 480px) { .st-line { grid-template-columns: minmax(0, 1fr); } .st-seek { justify-self: start; } }
.st-badge { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: var(--tracking-label); padding: .15rem .55rem; border-radius: var(--radius-pill); background: var(--ne-chamois); color: var(--ne-ink, #1b1f5c); }
.st-line:not(.edited) .st-line-meta { display: none; }
.st-line-meta { min-height: 0; }
.st-source { display: grid; gap: .5rem; justify-items: start; }
.st-source-text { width: 100%; font: inherit; font-size: .9rem; line-height: 1.45; padding: .5rem .65rem; border: 1px solid var(--color-border); border-radius: .5rem; background: var(--color-surface-alt); color: var(--color-text); resize: none; }
.st-stepchips button { padding: .5rem .7rem; }

/* b-roll : image plein écran par-dessus la vidéo (le zoom ne la touche pas), sous les sous-titres */
.ph-broll { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform-origin: center; will-change: transform, opacity; }
.ph-broll[hidden] { display: none; }
.ph-pick { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: center; padding-top: .8rem; cursor: crosshair; background: rgba(13, 15, 43, .25); touch-action: none; }
.ph-pick[hidden], .ph-pickdot[hidden] { display: none; }
.ph-pick span { background: rgba(13, 15, 43, .85); color: #fff; font-size: .78rem; font-weight: 700; padding: .35rem .7rem; border-radius: var(--radius-pill); pointer-events: none; text-align: center; }
.ph-pickdot { position: absolute; z-index: 4; width: 1.6rem; height: 1.6rem; margin: -.8rem 0 0 -.8rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--color-accent), 0 0 8px rgba(0,0,0,.5); pointer-events: none; }

/* onglet B-roll */
.st-fxbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: .6rem 0; }
.st-help.inline { margin: 0; }
.st-fxlist { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.st-fxrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--color-hairline); border-radius: var(--radius); background: #fff; }
.st-fxword { flex: 1 1 5rem; min-width: 0; font-weight: 700; color: var(--color-primary); overflow-wrap: anywhere; }
.st-select { height: 2.2rem; padding: 0 .6rem; font: inherit; font-size: .85rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: #fff; color: var(--color-text); }
.st-searchbar { display: flex; gap: .5rem; margin: .6rem 0; }
.st-searchbar .st-search { flex: 1; min-width: 0; }
.st-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .2rem 0 .6rem; }
.st-chips small { color: var(--color-muted); font-weight: 700; }
.st-chip { font: inherit; font-size: .8rem; font-weight: 700; padding: .3rem .7rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface-alt); color: var(--color-primary); cursor: pointer; }
.st-chip:hover { background: var(--color-primary); color: #fff; }
.st-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: .4rem; margin: .5rem 0; }
.st-photo { padding: 0; border: 2px solid transparent; background-clip: padding-box; border-radius: .5rem; overflow: hidden; aspect-ratio: 3 / 4; cursor: pointer; }
.st-photo:hover, .st-photo:focus-visible { border-color: var(--color-accent); outline: none; }
.st-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-fxrow.broll { flex-wrap: wrap; }
.st-bthumb { width: 3.2rem; height: 4.2rem; object-fit: cover; border-radius: .4rem; flex: none; }
.st-bfields { display: grid; gap: .3rem; flex: 1 1 8rem; min-width: 0; }
.st-bfields label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .78rem; font-weight: 700; color: var(--color-muted); }
.st-bfields .st-time { width: 5.4rem; height: 2rem; }
@media (max-width: 480px) { .st-fxrow:not(.broll) .st-fxword { flex-basis: 100%; order: 5; } }

/* publier sur TikTok */
.btn.tiktok { background: #0d0f2b; color: #fff; box-shadow: 3px 3px 0 #25f4ee, -3px -3px 0 #fe2c55; }
.btn.tiktok:hover { background: #000; }
.st-source-text { resize: vertical; field-sizing: content; min-height: 4.5em; max-height: 22em; }
.st-chip.on { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.st-help.warn { color: var(--color-danger); font-weight: 700; }

@media (max-width: 900px), (pointer: coarse) {
  .st-mini { min-width: 2.75rem; height: 2.75rem; }
  .st-time, .st-select, .st-bfields .st-time { height: 2.75rem; }
  .st-link { min-height: 2.75rem; padding: .7rem .6rem; }
  .st-logout { min-height: 2.75rem; padding: .7rem .2rem; }
  .st-chip, .st-stepchips button, .st-seek, .ph-size { min-height: 2.75rem; }
  .st-check { min-height: 2.75rem; }
  .st-check input { width: 1.4rem; height: 1.4rem; }
  .ph-toggle { min-height: 2.75rem; }
  .ph-range { height: 2.75rem; }
  .st-row-ctl input[type="range"] { height: 2.75rem; }
  .st-playtrack { width: 2.75rem; height: 2.75rem; }
  .st-trackname { min-height: 2.75rem; }
  .st-preset, .st-font { min-height: 2.75rem; }
}
@media (max-width: 380px) {
  .st-time { width: 5rem; }
  .st-panel { padding-inline: .8rem; }
  .st-edge-label { min-width: 2.4rem; }
}

.badge { font-size: .72rem; font-weight: 700; padding: .12rem .55rem; border-radius: var(--radius-pill); background: var(--color-border); color: var(--color-muted); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.badge.ok { background: var(--color-success-bg); color: var(--color-success); }
.badge.warn { background: var(--ne-chamois-light); color: var(--ne-blue-dark); }

.st-toast { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 28rem); margin: 0; padding: .7rem 1.1rem; border-radius: var(--radius); background: var(--ne-blue-dark); color: #fff; font-size: .85rem; font-weight: 700; box-shadow: var(--shadow-hover); text-align: center; }
.st-toast:empty { display: none; }
.st-toast.err { background: var(--color-danger); }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.st-nextbar { padding: 0 1.5rem 1.6rem; display: flex; justify-content: flex-end; }
.st-nextbar[hidden] { display: none; }
.st-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ph-busy { display: grid; align-content: center; justify-items: center; gap: .8rem; }
.ph-busy.soft { inset: auto; left: .6rem; right: .6rem; top: .6rem; padding: .35rem .7rem; border-radius: var(--radius-pill); font-size: .72rem; pointer-events: none; }
.ph-play.playing { opacity: 0; }
.ph-play.playing:focus-visible, .ph-screen:hover .ph-play.playing { opacity: 1; }
@media (max-width: 900px) { .st-nextbar { padding: 0 1rem 1.4rem; } .st-nextbar .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ph-hint, .sub-text.pop { animation: none; } }
