/* ---------- Pyrion Video Studio ---------- */
.st-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: -6px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.st-brand { font-weight: 900; letter-spacing: .1em; font-size: 13px; color: var(--muted); white-space: nowrap; } .st-brand b { color: var(--acc); }
.st-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.st-tabs a { padding: 6px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.st-tabs a:hover { background: var(--surface-2); color: var(--text); } .st-tabs a.on { background: var(--acc); color: #fff; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.st-card { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.st-card:hover { border-color: var(--acc); transform: translateY(-1px); } .st-card h3 { margin: 0 0 6px; font-size: 17px; } .st-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.st-item { display: grid; gap: 6px; } .st-item a { color: var(--text); text-decoration: none; display: grid; gap: 6px; }
.st-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 8px; background: #1b2235; display: block; object-fit: cover; border: 1px solid var(--line); }
.st-job { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; width: 300px; box-shadow: 0 10px 30px rgba(0,0,0,.35); display: grid; gap: 8px; grid-template-columns: 1fr auto auto; align-items: center; font-size: 13px; }
.st-job .gauge { grid-column: 1 / -1; }
.st-hist { display: grid; gap: 6px; max-height: 50vh; overflow: auto; } .st-hist .row { justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
/* Éditeurs */
.st-ed { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
@media (max-width: 1250px) { .st-ed { grid-template-columns: 210px minmax(0, 1fr); } .st-ed .st-props { grid-column: 1 / -1; } }
.st-pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.st-pane h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.st-stagewrap { background: repeating-conic-gradient(#2a3147 0% 25%, #222839 0% 50%) 50% / 20px 20px; border-radius: var(--r-md); border: 1px solid var(--line); position: relative; overflow: hidden; user-select: none; }
.st-stage { display: block; width: 100%; height: auto; touch-action: none; }
.st-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.st-layers { display: grid; gap: 4px; max-height: 52vh; overflow: auto; }
.st-layer { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; border: 1px solid transparent; }
.st-layer:hover { background: var(--surface-2); } .st-layer.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.st-layer .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .st-layer button { padding: 2px 6px; font-size: 12px; }
.st-props .f { margin-bottom: 8px; } .st-props input, .st-props select, .st-props textarea { width: 100%; }
.st-props .g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .st-props .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.st-scrub { display: flex; align-items: center; gap: 8px; margin-top: 8px; } .st-scrub input[type=range] { flex: 1; }
.st-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.st-dirty { color: var(--onair); font-size: 12px; } .st-saved { color: #3DBE8B; font-size: 12px; }
/* Timeline */
.st-tl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 12px; user-select: none; }
.st-tl-head { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.st-tl-body { display: grid; grid-template-columns: 130px minmax(0, 1fr); }
.st-tl-names div { height: 46px; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; gap: 6px; }
.st-tl-names div:first-child, .st-ruler { height: 26px; }
.st-tl-scroll { overflow-x: auto; position: relative; }
.st-tl-inner { position: relative; min-width: 100%; }
.st-ruler { position: relative; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 10.5px; color: var(--muted); }
.st-ruler span { position: absolute; top: 4px; transform: translateX(2px); } .st-ruler i { position: absolute; bottom: 0; width: 1px; height: 7px; background: var(--line); }
.st-track { position: relative; height: 46px; border-bottom: 1px solid var(--line); }
.st-clip { position: absolute; top: 5px; height: 36px; border-radius: 6px; padding: 3px 8px; font-size: 12px; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: grab; border: 1px solid rgba(255,255,255,.25); box-sizing: border-box; }
.st-clip.video { background: #2F6BFF; } .st-clip.image { background: #7B4FD8; } .st-clip.graphic { background: #C9A227; color: #111; } .st-clip.text { background: #14A38B; } .st-clip.audio { background: #D2691E; }
.st-clip.on { outline: 2px solid #fff; outline-offset: 1px; z-index: 2; }
.st-clip .h { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; } .st-clip .h.l { left: 0; } .st-clip .h.r { right: 0; }
.st-clip .fi, .st-clip .fo { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), transparent); pointer-events: none; } .st-clip .fo { right: 0; background: linear-gradient(270deg, rgba(0,0,0,.45), transparent); }
.st-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #FF4D4F; pointer-events: none; z-index: 5; }
.st-bin { display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.st-binit { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; }
.st-binit img, .st-binit .ph { width: 64px; height: 36px; object-fit: cover; border-radius: 4px; background: #1b2235; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
/* Preview / Program */
.st-pp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 1100px) { .st-pp { grid-template-columns: 1fr; } }
.st-mon { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--r-md); overflow: hidden; border: 3px solid #2b3550; }
.st-mon.prv { border-color: #2F9E44; } .st-mon.pgm { border-color: #E03131; }
.st-mon .tag { position: absolute; left: 10px; top: 10px; z-index: 3; font-weight: 800; font-size: 12px; letter-spacing: .1em; padding: 3px 8px; border-radius: 4px; color: #fff; }
.st-mon.prv .tag { background: #2F9E44; } .st-mon.pgm .tag { background: #E03131; }
.st-mon img, .st-mon video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
