/* Retro Wave pentru Windows — fila STUDIO (captură analogică, prelucrare video, unire) */
body.stuo #grid, body.stuo #empty, body.stuo #sub, body.stuo #lv, body.stuo #stage, body.stuo #nowbar, body.stuo #osd,
body.stuo #legend, body.stuo #t_cc, body.stuo #t_search, body.stuo #wfan, body.stuo #ssong { display: none !important; }
#t_studio.act { color: #1a0f00; background: linear-gradient(#ffd966, #e69a00); border-color: #5a3a00; text-shadow: 0 1px 0 rgba(255,255,255,.4); }

#stu { display: none; position: absolute; left: 0; top: 112px; width: 1920px; height: 968px; z-index: 13; background: linear-gradient(#0d0b1f, #04040a); color: var(--text); font-family: inherit; }
body.stuo #stu { display: block; }
#stu * { box-sizing: border-box; }
#stu .pn { position: absolute; background: linear-gradient(#171a27, #0e101a); border: 3px solid #2a2e3a; border-radius: 16px; box-shadow: inset 0 2px 0 rgba(255,255,255,.05); }
#stu h2 { margin: 0; font-size: 30px; letter-spacing: 2px; color: var(--gold); font-weight: bold; }
#stu .btn { display: inline-block; height: 56px; line-height: 50px; padding: 0 24px; font-size: 25px; font-weight: bold; color: #cfd3df; background: linear-gradient(#444a5c, #2b3040); border: 3px solid #14161e; border-radius: 12px; cursor: pointer; user-select: none; white-space: nowrap; }
#stu .btn:hover { filter: brightness(1.25); }
#stu .btn:active { transform: translateY(2px); }
#stu .btn.go { color: #1a0f00; background: linear-gradient(#ffd966, #e69a00); border-color: #5a3a00; }
#stu .btn.rec { color: #fff; background: linear-gradient(#ff5a5a, #c01818); border-color: #5a0a0a; }
#stu .btn.off { opacity: .4; pointer-events: none; }
#stu .btn.on { color: #06140a; background: linear-gradient(#7dff5f, #2fc30f); border-color: #0d3a05; }

/* sub-file */
#stuT { position: absolute; left: 28px; top: 14px; height: 64px; }
#stuT .btn { height: 60px; line-height: 54px; font-size: 28px; padding: 0 34px; margin-right: 12px; }
#stuInfo { position: absolute; right: 36px; top: 24px; height: 44px; line-height: 44px; font-size: 22px; color: var(--dim); text-align: right; max-width: 900px; white-space: nowrap; overflow: hidden; }
/* plasă de siguranță: oricât de lung ar fi folderul ales, numele lui nu trece de atâția pixeli,
 * ca să nu ajungă niciodată să se suprapună peste file-urile din stânga (Captură / Curăță / Unește) */
#stuInfo b[title] { display: inline-block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
#stuInfo b { color: var(--neon); }
#stuInfo .bad { color: #ff8a8a; }
#stuInfo .btn { height: 44px; line-height: 38px; font-size: 20px; padding: 0 16px; margin-left: 14px; }
.stp { display: none; }
.stp.on { display: block; }

/* ---------- CAPTURĂ ---------- */
#scPrev { left: 28px; top: 96px; width: 1100px; height: 860px; overflow: hidden; background: #000; }
#scVid { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
#scEmpty { position: absolute; left: 0; right: 0; top: 330px; text-align: center; font-size: 30px; color: var(--dim); padding: 0 80px; line-height: 1.5; }
#scRecBadge { position: absolute; left: 24px; top: 20px; height: 54px; line-height: 54px; padding: 0 22px 0 52px; font-size: 30px; font-weight: bold; color: #fff; background: rgba(0,0,0,.6); border-radius: 27px; display: none; font-variant-numeric: tabular-nums; }
#scRecBadge::before { content: ''; position: absolute; left: 20px; top: 17px; width: 20px; height: 20px; border-radius: 50%; background: #ff2a2a; animation: scblink 1s infinite; }
@keyframes scblink { 50% { opacity: .2; } }
#scPrev.rec #scRecBadge { display: block; }
#scPrev.rec { border-color: #c01818; }
#scMeter { position: absolute; left: 24px; right: 24px; bottom: 18px; height: 16px; background: rgba(0,0,0,.55); border-radius: 8px; overflow: hidden; display: none; }
#scMeter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #39ff14, #ffd24a 75%, #ff3b3b); }
#scPrev.live #scMeter { display: block; }
#scCtl { left: 1148px; top: 96px; width: 744px; height: 860px; padding: 22px 26px; }
#scCtl .rw { margin-top: 12px; }
.stl { font-size: 22px; color: var(--dim); margin: 14px 0 6px; }
.stsel { width: 100%; height: 54px; font-size: 23px; color: #e6e9f2; background: #0a0c14; border: 3px solid #2a2e3a; border-radius: 10px; padding: 0 12px; font-family: inherit; }
.stsel:focus { border-color: var(--gold); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .btn { height: 48px; line-height: 42px; font-size: 21px; padding: 0 16px; }
#scBtns { margin-top: 20px; }
#scBtns .btn { margin: 0 10px 10px 0; }
#scMsg, .stmsg { margin-top: 10px; font-size: 22px; color: var(--dim); line-height: 1.4; min-height: 64px; }
.stmsg.err { color: #ff8a8a; } .stmsg.ok { color: var(--neon); }
.stmsg .btn { height: 44px; line-height: 38px; font-size: 20px; padding: 0 14px; margin: 8px 8px 0 0; }

/* ---------- PRELUCRARE ---------- */
#spL { left: 28px; top: 96px; width: 760px; height: 860px; padding: 22px 26px; overflow-y: auto; }
#spPrevWrap { margin-top: 14px; }
/* cadrul e mereu vizibil (nu doar după ce există o previzualizare), ca să se știe clar unde apare */
#spPrevBox { position: relative; width: 100%; height: 210px; background: #000; border-radius: 10px; border: 3px solid #2a2e3a; overflow: hidden; }
#spPrevVid { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; display: none; }
#spPrevVid[src] { display: block; }
#spPrevPh { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 26px; font-size: 18px; color: var(--dim); line-height: 1.45; }
#spPrevVid[src] + #spPrevPh { display: none; }
#spPrevNote { font-size: 18px; color: var(--dim); margin: 8px 0; min-height: 0; line-height: 1.35; }
#spPrevNote.err { color: #ff8a8a; }
#spPrevSeek { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
#spPrevSeek > span { font-size: 18px; color: var(--dim); flex-shrink: 0; }
#spPrevSeek > input[type=range] { flex: 1; height: 8px; accent-color: var(--gold); }
#spPrevSeek > b { width: 52px; text-align: right; font-size: 18px; color: var(--neon); font-variant-numeric: tabular-nums; flex-shrink: 0; }
#spPrevBtns { display: flex; gap: 8px; margin-top: 4px; }
#spPrevBtns .btn { height: 46px; line-height: 40px; font-size: 20px; padding: 0 16px; }
#spPrevBtns #spPrevB { flex: 1; text-align: center; }
/* glisoare continue (luminozitate, contrast, saturație, gamma) */
.stslide { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.stslide > span { width: 118px; font-size: 20px; color: #cfd3df; flex-shrink: 0; }
.stslide > input[type=range] { flex: 1; height: 8px; accent-color: var(--gold); }
.stslide > b { width: 58px; text-align: right; font-size: 19px; color: var(--neon); font-variant-numeric: tabular-nums; flex-shrink: 0; }
#spR { left: 808px; top: 96px; width: 1084px; height: 860px; padding: 22px 30px; overflow-y: auto; }
#spR::-webkit-scrollbar { width: 14px; } #spR::-webkit-scrollbar-thumb { background: #4a5166; border-radius: 7px; border: 3px solid #12141f; }
.stdrop { margin-top: 14px; height: 150px; border: 3px dashed #3a4054; border-radius: 14px; text-align: center; line-height: 1.35; padding-top: 34px; font-size: 24px; color: var(--dim); cursor: pointer; }
.stdrop:hover, body.stdrag .stdrop { border-color: var(--gold); color: var(--gold); }
.stfile { margin-top: 16px; font-size: 24px; word-break: break-all; color: #e6e9f2; }
.stfile i { display: block; font-style: normal; font-size: 21px; color: var(--dim); margin-top: 6px; line-height: 1.4; }
.stgrp { margin-bottom: 18px; }
.stgrp > b { display: block; font-size: 24px; color: var(--gold); margin-bottom: 8px; }
.stgrp > em { display: block; font-style: normal; font-size: 19px; color: var(--dim); margin: -2px 0 8px; }
.stbar { margin-top: 18px; height: 26px; border-radius: 13px; background: #0a0c14; border: 3px solid #2a2e3a; overflow: hidden; }
.stbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd966, #39ff14); transition: width .3s; }
.ststage { margin-top: 8px; font-size: 22px; color: var(--dim); min-height: 30px; }

/* ---------- UNEȘTE ---------- */
#suL { left: 28px; top: 96px; width: 1180px; height: 860px; padding: 22px 26px; }
#suR { left: 1228px; top: 96px; width: 664px; height: 860px; padding: 22px 26px; overflow-y: auto; }
#suList { position: absolute; left: 14px; top: 112px; right: 14px; bottom: 98px; overflow-y: auto; }
#suList::-webkit-scrollbar { width: 14px; } #suList::-webkit-scrollbar-thumb { background: #4a5166; border-radius: 7px; border: 3px solid #12141f; }
.sur { position: relative; height: 70px; line-height: 70px; padding: 0 252px 0 64px; margin-bottom: 6px; font-size: 24px; border-radius: 10px; background: #12162a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sur .no { position: absolute; left: 14px; color: var(--gold); font-weight: bold; }
.sur .du { position: absolute; right: 196px; top: 0; font-size: 20px; color: var(--dim); }
.sur .ac { position: absolute; right: 8px; top: 8px; }
.sur .ac span { display: inline-block; width: 52px; height: 54px; line-height: 50px; text-align: center; font-size: 28px; font-weight: bold; color: #cfd3df; background: #2b3040; border-radius: 8px; margin-left: 6px; cursor: pointer; }
.sur .ac span:hover { background: #4a5166; }
#suBot { position: absolute; left: 22px; right: 22px; bottom: 14px; height: 72px; line-height: 72px; font-size: 23px; color: var(--dim); }
#suBot .btn { float: right; margin-left: 10px; margin-top: 8px; }
#suEmp { position: absolute; left: 0; right: 0; top: 230px; text-align: center; font-size: 28px; color: var(--dim); line-height: 1.5; padding: 0 60px; }

#stuDrop { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 5; background: rgba(8,10,20,.86); border: 6px dashed var(--gold); font-size: 44px; color: var(--gold); text-align: center; padding-top: 400px; }
body.stdrag #stuDrop { display: block; }

/* panoul Unește: mai compact, ca să încapă și setarea pentru placa video */
#suR .stgrp { margin-bottom: 10px; }
#suR .stgrp > em { display: none; }
#suR .stgrp.gpug > em { display: block; font-size: 18px; }
#suR .stbar { margin-top: 10px; }
#spR .stgrp.gpug > em { font-size: 18px; }
#suR .chips .btn { height: 42px; line-height: 36px; font-size: 19px; padding: 0 12px; }
#suR .chips { gap: 6px; }
#stuInfo { font-size: 20px; }
#stuInfo .btn { height: 42px; line-height: 36px; font-size: 19px; padding: 0 14px; margin-left: 10px; }
