:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#ebf0f8;background:#101116}*{box-sizing:border-box}body{margin:0}header.top{height:76px;padding:0 max(4%,20px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #272a34;background:#17181d;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:8px;font-size:19px}.logo{display:inline-grid;place-items:center;border-radius:9px;width:36px;height:36px;background:#b7ff31;color:#111;font-size:16px}.accent{color:#b7ff31}.pill{font-size:9px;letter-spacing:.08em;border:1px solid #414751;border-radius:99px;padding:4px 8px;color:#aab3c3;margin-left:9px}main{max-width:1360px;margin:30px auto;padding:0 24px}.headline,.horizontal{display:flex;gap:14px;align-items:center}.between,.headline{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:200px}h1{font-size:32px;margin:6px 0 4px}h2{font-size:18px;margin:5px 0 15px}h3{font-size:16px;margin:22px 0 12px}p{color:#aab2c0}.panel{background:#1b1d24;border:1px solid #31343d;border-radius:16px;padding:22px;margin-top:24px}.importer{border-color:#39422e}label{display:block;color:#b5bdc8;font-size:13px;margin-bottom:12px}input{display:block;width:100%;margin-top:7px;border:1px solid #393d48;background:#111319;border-radius:8px;color:#eef1f7;padding:12px;font:inherit}input[type=checkbox]{width:auto;display:inline-block;margin:0 5px}.check{display:flex;align-items:center}.note{font-size:13px;color:#9ca6b5}button{font:inherit;cursor:pointer;border:0;border-radius:8px;padding:11px 17px;font-weight:700}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:#b8fc36;color:#121414}.primary:hover{background:#d2ff70}.secondary{background:#30333c;color:#eff1f4;border:1px solid #484b54}.secondary:hover{background:#3b3e47}details{border-top:1px solid #32353f;margin-top:18px;padding-top:15px}summary{cursor:pointer;color:#c8d0d8;margin-bottom:12px}.sectionTitle{margin-top:30px}.count{font-size:14px;color:#a2e933}.projectList{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:16px}.project{background:#1d1e25;border:1px solid #343740;border-radius:13px;padding:18px;min-height:175px;display:flex;flex-direction:column;gap:8px}.project:hover{border-color:#7da72d}.project h3{margin:5px 0;font-size:17px;word-break:break-word}.project small,.muted{color:#9ea7b5}.project footer{margin-top:auto}.status{display:inline-block;border-radius:99px;background:#29353c;color:#aac9e2;padding:5px 9px;font-size:11px}.status.ready,.status.complete{background:#304526;color:#b8ff73}.status.failed{background:#4d2626;color:#ffb1a9}.clips{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:12px}.clip{background:#14161c;border:1px solid #383b42;border-radius:10px;padding:12px}.clip h4{margin:4px 0;font-size:14px}.clip .poster{height:100px;display:grid;place-items:center;background:linear-gradient(145deg,#25302f,#343143);border-radius:8px;font-size:36px;margin-bottom:8px}.clip .score{font-size:19px;color:#b8ff36;font-weight:900}.clip .secondary{font-size:12px}.clip .horizontal{justify-content:space-between}.clip p{font-size:12px}.jobs{display:grid;gap:8px}.job{background:#12141a;padding:12px;border-radius:8px;font-size:13px;color:#afb7c5}.auth{max-width:520px;margin:11vh auto}.auth .panel{padding:30px}.auth h1{line-height:1.1}.auth p{line-height:1.5}.actions{margin-top:15px}.helper{margin-top:6px}#toast{position:fixed;bottom:20px;right:22px;background:#303b28;color:white;padding:14px 20px;border-radius:10px;opacity:0;transition:opacity .2s;pointer-events:none}#toast.show{opacity:1}@media(max-width:700px){header.top{height:64px}.pill{display:none}.headline,.horizontal{align-items:stretch;flex-direction:column}.headline{gap:8px}h1{font-size:26px}.clips{grid-template-columns:repeat(2,minmax(0,1fr))}.clip .horizontal{flex-direction:row}}


/* Edição de clipes */
.clip-dialog{background:transparent;border:0;color:#ebf0f8;padding:0;width:min(680px,calc(100vw - 24px));max-height:90vh;overflow:auto}
.clip-dialog::backdrop{background:rgba(2,4,9,.8);backdrop-filter:blur(4px)}
.clip-dialog .panel{margin:0}
.clip-dialog label{flex:1}
.clip-dialog textarea,.clip-dialog select{display:block;width:100%;margin-top:7px;border:1px solid #393d48;background:#111319;border-radius:8px;color:#eef1f7;padding:12px;font:inherit}
.clip-dialog textarea{resize:vertical;min-height:100px}


/* Predefinições e opções de IA — tema escuro */
.studio-settings{margin-top:22px;padding:18px 0 2px;border-top:1px solid #30343c}
.studio-settings h3{font-size:17px;margin:6px 0}
.studio-settings p{line-height:1.45}
.studio-settings .segment-pills{display:inline-flex;gap:4px;background:#101218;border:1px solid #343842;border-radius:10px;padding:4px}
.segment-pills button{color:#aeb6c4;background:transparent;font-size:13px;padding:9px 13px;border:0;border-radius:7px}
.segment-pills button.selected{color:#e9f0f5;background:#303640}
.studio-settings select,.studio-settings textarea{display:block;width:100%;margin-top:7px;border:1px solid #393d48;background:#111319;border-radius:8px;color:#eef1f7;padding:12px;font:inherit}
.studio-settings textarea{resize:vertical;min-height:70px}
.studio-settings .options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:20px 0 14px}
.studio-settings .settings-label{display:block;margin:17px 0}
.studio-settings .settings-label strong{font-size:13px;font-weight:700;color:#bec8d4}
.soft-tag{font-size:11px;padding:4px 9px;border:1px solid #40464d;background:#23262d;border-radius:999px;color:#aab3c3;white-space:nowrap}
.option-toggles{margin:10px 0}
.studio-settings .option-check{display:inline-flex;align-items:center;gap:7px;background:#22262f;padding:11px;border:1px solid #3b3f48;border-radius:10px;margin:0}
.studio-settings .option-check input{width:17px;height:17px;margin:0;accent-color:#b7ff31}
.trim-inputs>label{min-width:130px;flex:1;margin:0}
.trim-inputs>div{flex:2;min-width:210px}
.trim-visual{display:flex;justify-content:space-between;color:#a7b3c4;font-size:12px;margin-top:13px}
.trim-track{position:relative;height:7px;background:#303741;border-radius:40px;margin:12px 0}
.trim-track span{position:absolute;left:0;right:0;height:100%;background:#b7ff31;border-radius:40px}
.preset-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(123px,1fr));gap:10px;margin-top:15px}
.caption-card{display:flex;flex-direction:column;gap:7px;align-items:stretch;background:transparent;border:2px solid transparent;color:#ccd3e0;padding:3px;border-radius:12px;font-size:13px;font-weight:500}
.caption-card[aria-checked="true"]{border-color:#b8fc36;color:#fff}
.caption-card:hover{border-color:#7c8a65}
.caption-preview{display:grid;place-items:center;height:90px;border-radius:8px;background:#393939;overflow:hidden;padding:7px}
.caption-example{color:white;font-size:12px;line-height:1.05;font-weight:900;letter-spacing:-.4px;text-align:center;text-transform:uppercase;text-shadow:0 2px 2px #000,-1px 0px #000}
.caption-example em{font-style:normal;color:#b7ff31}
.caption-example.deep{background:white;color:black;padding:5px;border-radius:4px;text-shadow:none}
.caption-example.deep em{color:#646b6b}
.caption-example.mozi em,.caption-example.green em{color:#18ff37;text-shadow:2px 2px 0 #000}
.caption-example.popline em,.caption-example.steps em{color:#d18aff}
.caption-example.karaoke em{color:#ffcc36}
.caption-example.think em,.caption-example.focus em{color:#ffde17}
.caption-example.beast{font-size:10px;font-style:italic;transform:rotate(-7deg)}
.caption-example.simple{color:white;text-shadow:2px 2px 0 #000}
.caption-example.soft{font-size:12px;text-shadow:none}
.caption-example.soft em{color:#36efff}
.caption-example.respire{font-size:11px;transform:rotate(8deg)}
.caption-example.glitch em{color:#ff42a8;text-shadow:2px 1px #00baff}
.caption-example.highlight{background:#ffb6ce;color:#222;padding:5px}
.caption-example.pod em{color:#ff89f7}
.caption-example.hard{font-size:15px}
.no-caption{font-size:28px;color:#9ea5b0}
.caption-card small{font-size:11px;line-height:1.3;font-weight:600;text-align:center}
.settings-footer{margin:22px 0 10px;align-items:start}
.saved-presets{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.saved-presets[hidden]{display:none}
@media(max-width:650px){.studio-settings .options-grid{grid-template-columns:1fr}.preset-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-footer{align-items:stretch}}


.trim-sliders{display:flex;flex-direction:column;gap:7px}
.trim-sliders input[type=range]{margin:0;padding:0;border:0;background:transparent;width:100%;accent-color:#b7ff31;cursor:pointer;height:16px}
.trim-sliders input[type=range]:disabled{opacity:.3;cursor:not-allowed}
#trimMetadataNotice{font-size:11px;margin:7px 0}


.caption-example.quake{transform:rotate(-9deg) scale(1.12);color:#fff53e}
.caption-example.you{font-size:11px;letter-spacing:1px;color:#aeb5b7;text-shadow:none}
.caption-example.blur{text-shadow:0 0 4px #fff,0 0 7px #d3d3d3}
.caption-example.growth em{display:inline-block;transform:scale(1.25);color:#df70ff}
.caption-example.background{background:#555;padding:5px;border-radius:4px;color:#ffe9a2}
