/* Studio Saraiva — arquivo de cortes. Mobile-first, só modo escuro. */
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "InterUI"; src: url("/fonts/InterTight-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "InterUI"; src: url("/fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0D0D0D;
  --bg2: #151A17;
  --bg3: #1C221E;
  --ink: #F3F1EC;
  --ink2: rgba(243, 241, 236, .62);
  --ink3: rgba(243, 241, 236, .38);
  --line: rgba(243, 241, 236, .10);
  --line2: rgba(243, 241, 236, .18);
  --lime: #B8FF3D;
  --lime-dim: rgba(184, 255, 61, .14);
  --lime-glow: 0 0 24px rgba(184, 255, 61, .45);
  --paper: #EEEBE5;
  --red: #FF5A4E;
  --r: 14px;
  --gut: 16px;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --sl: env(safe-area-inset-left, 0px);
  --sr: env(safe-area-inset-right, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "JetBrains Mono", Consolas, monospace;
  --display: "Outfit", system-ui, sans-serif;
  --ui: "InterUI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100svh; background: var(--bg); color: var(--ink);
  font: 600 15px/1.45 var(--ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
/* chão do estúdio: grade fina em lima + vinheta (como nos motions aprovados) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(184, 255, 61, .07), transparent 60%),
    linear-gradient(rgba(184, 255, 61, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(184, 255, 61, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
  -webkit-mask-image: linear-gradient(#000 0%, #000 55%, rgba(0,0,0,.35) 100%);
          mask-image: linear-gradient(#000 0%, #000 55%, rgba(0,0,0,.35) 100%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: #0D0D0D; }

.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; }
.lime { color: var(--lime); }
.dim { color: var(--ink2); }
/* marca-texto lima atrás da palavra-chave */
.mk {
  color: #0D0D0D; padding: 0 .14em; margin: 0 -.04em;
  background: linear-gradient(100deg, transparent 0 .2%, var(--lime) .2% 99.4%, transparent 99.4%) no-repeat 0 55% / 100% 86%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- boot ---------- */
.boot { min-height: 100svh; display: grid; place-content: center; gap: 14px; justify-items: center; color: var(--ink2); }
.boot-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: var(--lime-glow); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.55); opacity: .5; } }

/* ---------- views ---------- */
.view { min-height: 100svh; animation: enter .42s var(--ease) both; }
.view[hidden] { display: none; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ================= LOGIN ================= */
.login {
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; gap: 24px;
  padding: calc(var(--st) + 22px) calc(var(--sr) + 22px) calc(var(--sb) + 22px) calc(var(--sl) + 22px);
  max-width: 560px; margin: 0 auto; position: relative; overflow: hidden;
}
.login-top { display: flex; justify-content: space-between; color: var(--ink2); }
.login-top .rec { display: inline-flex; align-items: center; gap: 7px; }
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
.login-hero { align-self: center; position: relative; }
.login-hero h1 {
  font: 700 clamp(56px, 19vw, 104px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.02em; margin: 0 0 22px;
}
.login-hero h1 .mk { display: inline-block; margin-top: .06em; }
.login-hero p { color: var(--ink2); font-size: 17px; max-width: 30ch; margin: 0; }
.metro { position: relative; height: 70px; margin: 34px 0 6px; }
.metro::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--lime) 0 var(--p, 62%), var(--line2) var(--p, 62%)); }
.metro i { position: absolute; top: 25px; width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--lime); background: var(--bg); transform: translateX(-50%); }
.metro i.on { background: var(--lime); box-shadow: var(--lime-glow); animation: glow 2.2s ease-in-out infinite; }
.metro b { position: absolute; top: 0; transform: translateX(-50%); font: 500 10px var(--mono); letter-spacing: .1em; color: var(--ink2); }
.metro b.on { color: var(--lime); }
@keyframes glow { 50% { box-shadow: 0 0 6px rgba(184,255,61,.3); } }
.login-act { display: grid; gap: 14px; }
.btn-xl {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 68px; border-radius: 18px;
  background: var(--lime); color: #0D0D0D; font: 700 17px/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 10px 40px rgba(184, 255, 61, .22), inset 0 -3px 0 rgba(0,0,0,.15); transition: transform .15s var(--ease), opacity .2s;
}
.btn-xl:active { transform: scale(.975); }
.btn-xl[disabled] { opacity: .55; }
.btn-xl svg { width: 24px; height: 24px; flex: none; }
.notice { border: 1px solid var(--line2); background: rgba(21, 26, 23, .8); border-radius: 14px; padding: 14px 16px; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.notice.ok { border-color: rgba(184,255,61,.5); background: var(--lime-dim); }
.notice.err { border-color: rgba(255,90,78,.45); background: rgba(255,90,78,.08); }
.notice .mono { display: block; margin-bottom: 3px; }
.notice.ok .mono { color: var(--lime); }
.notice.err .mono { color: var(--red); }
.login-foot { color: var(--ink3); display: flex; justify-content: space-between; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(0,0,0,.25); border-top-color: #0D0D0D; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(1turn); } }

/* ================= HOME ================= */
.top {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--st) + 10px) calc(var(--sr) + var(--gut)) 10px calc(var(--sl) + var(--gut));
  background: linear-gradient(rgba(13,13,13,.94), rgba(13,13,13,.82));
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: transform .35s var(--ease);
}
.top.away { transform: translateY(-100%); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand h1 { margin: 0; font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.brand .mono { display: none; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink2); border: 1px solid var(--line); flex: none; transition: background .2s, color .2s; }
.icon-btn:active { background: var(--bg3); }
.icon-btn svg { width: 20px; height: 20px; }

.hero {
  padding: 26px calc(var(--sr) + var(--gut)) 6px calc(var(--sl) + var(--gut));
}
.hero h2 { margin: 0; font: 700 clamp(38px, 11.5vw, 76px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.hero .stats { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.stat b { display: block; font: 700 30px/1 var(--display); }
.stat span { color: var(--ink3); }
.stat b.lime { text-shadow: 0 0 22px rgba(184,255,61,.35); }

.filters { display: grid; gap: 10px; margin-top: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; position: relative; }
.seg button { position: relative; z-index: 1; min-height: 40px; border-radius: 10px; font: 700 13px/1 var(--ui); letter-spacing: .03em; text-transform: uppercase; color: var(--ink2); display: flex; align-items: center; justify-content: center; gap: 7px; transition: color .25s; }
.seg button small { font: 500 10px var(--mono); color: var(--ink3); transition: color .25s; }
.seg button[aria-pressed="true"] { color: #0D0D0D; }
.seg button[aria-pressed="true"] small { color: rgba(13,13,13,.6); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 10px; background: var(--lime); transition: transform .35s var(--ease); box-shadow: 0 4px 18px rgba(184,255,61,.25); }

.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink3); pointer-events: none; }
.search input {
  width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink);
  font: 600 16px var(--ui); padding: 0 44px 0 42px; outline: none; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--ink3); }
.search input:focus { border-color: rgba(184,255,61,.55); background: var(--bg3); }
.search .clear { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; display: none; place-items: center; color: var(--ink2); border-radius: 10px; }
.search.has .clear { display: grid; }

.dates { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); scroll-padding: 0 var(--gut); -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gut), #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--gut), #000 calc(100% - 24px), transparent); }
.dates::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: all .2s; }
.chip em { font-style: normal; color: var(--ink3); }
.chip[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); background: var(--lime-dim); }
.chip[aria-pressed="true"] em { color: var(--lime); opacity: .7; }

.feed { padding: 8px calc(var(--sr) + var(--gut)) calc(var(--sb) + 40px) calc(var(--sl) + var(--gut)); }
.roll { margin-top: 26px; }
.roll-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.roll-head h3 { margin: 0; font: 700 18px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.roll-head .mono { color: var(--ink3); white-space: nowrap; }
/* borda de filme com perfurações */
.sprocket { flex: 1; height: 12px; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(243,241,236,.16) 6px 12px, transparent 12px 18px) center / 100% 4px no-repeat; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; grid-auto-flow: row dense; align-items: start; }
@media (min-width: 700px) { .brand .mono { display: inline; } .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } :root { --gut: 28px; } }
@media (min-width: 700px) { .card.yt { grid-column: span 3; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .filters { grid-template-columns: minmax(340px, 420px) 1fr; align-items: center; }
  .filters .dates { grid-column: 1 / -1; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .hero { padding-top: 44px; }
}
@media (min-width: 1300px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- card / folha de contato ---------- */
.card { display: block; position: relative; contain: layout style; }
.card.yt { grid-column: span 2; }
.frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--bg2);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0,0,0,.45);
  transform: translateZ(0); transition: transform .35s var(--ease), box-shadow .35s;
  touch-action: pan-y;
}
.card.yt .frame { aspect-ratio: 16 / 9; }
/* camadas atrás = número de versões (pilha de cópias) */
.layers { position: relative; isolation: isolate; margin: 10px 0 0 0; }
.layers[data-n="2"], .layers[data-n="3"] { margin-right: 10px; }
.layers::before, .layers::after { content: ""; position: absolute; inset: 0; z-index: -1; display: none; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg3); }
.layers::before { transform: translate(5px, -5px); }
.layers::after { transform: translate(10px, -10px); opacity: .5; }
.layers[data-n="2"]::before, .layers[data-n="3"]::before, .layers[data-n="3"]::after { display: block; }
.card:active .frame { transform: scale(.98); }
@media (hover: hover) { .card:hover .frame { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(184,255,61,.5), 0 22px 50px rgba(0,0,0,.6); } }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.frame img.ok { opacity: 1; }
.frame .scrubimg { opacity: 0; transition: none; }
.frame.scrubbing .scrubimg.ok { opacity: 1; }
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,.45), transparent 22%, transparent 70%, rgba(0,0,0,.55)); }
.slate { position: absolute; z-index: 2; left: 8px; right: 8px; top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; pointer-events: none; }
.slate .no { color: rgba(243,241,236,.85); text-shadow: 0 1px 3px rgba(0,0,0,.6); font-size: 9.5px; }
.vtag { font: 700 10px/1 var(--mono); letter-spacing: .06em; padding: 5px 6px; border-radius: 6px; background: rgba(13,13,13,.72); color: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vtag.multi { background: var(--lime); color: #0D0D0D; }
.badges { position: absolute; z-index: 2; left: 8px; bottom: 8px; right: 8px; display: flex; gap: 4px; flex-wrap: wrap; pointer-events: none; }
.badge { font: 700 8.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 6px; border-radius: 5px; background: rgba(13,13,13,.75); border: 1px solid rgba(243,241,236,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.badge.pub { background: var(--lime); color: #0D0D0D; border-color: var(--lime); }
.ticks { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 6px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ticks i { height: 3px; border-radius: 2px; background: rgba(243,241,236,.35); }
.ticks i.on { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.frame.scrubbing .ticks { opacity: 1; }
.frame.scrubbing .badges { opacity: 0; }
.tc { position: absolute; z-index: 3; right: 8px; bottom: 14px; font: 700 10px var(--mono); color: var(--lime); opacity: 0; text-shadow: 0 1px 4px #000; }
.frame.scrubbing .tc { opacity: 1; }
/* sem mídia ainda: claquete tipográfica */
.poster { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center; padding: 14px; gap: 10px;
  background: linear-gradient(rgba(184,255,61,.05) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(184,255,61,.05) 1px, transparent 1px) 0 0 / 22px 22px, var(--bg2); }
.poster b { font: 700 clamp(15px, 4.8vw, 24px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere; }
.poster b .lime { color: var(--lime); }
.poster .mono { color: var(--ink3); font-size: 9px; }
.card.yt .poster b { font-size: clamp(20px, 6vw, 34px); }
.frame.nomedia .poster { display: flex; }
.cap { padding: 10px 2px 0; }
.cap h4 { margin: 0; font: 700 14px/1.08 var(--display); text-transform: uppercase; letter-spacing: .005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.yt .cap h4 { font-size: 17px; }
.cap .mono { display: block; margin-top: 6px; color: var(--ink3); font-size: 9.5px; }

.empty { text-align: center; padding: 70px 10px; color: var(--ink2); }
.empty b { display: block; font: 700 32px/1 var(--display); text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.foot { text-align: center; color: var(--ink3); padding: 40px 0 0; display: grid; gap: 12px; justify-items: center; }
.foot a { color: var(--ink2); border-bottom: 1px solid var(--line2); padding: 8px 2px; }

/* ================= PROJETO ================= */
.ptop {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(var(--st) + 8px) calc(var(--sr) + var(--gut)) 8px calc(var(--sl) + var(--gut));
  background: linear-gradient(rgba(13,13,13,.95), rgba(13,13,13,.8)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.ptop .crumbs { flex: 1; min-width: 0; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptop .crumbs b { color: var(--lime); font-weight: 700; }
.pwrap { padding: 0 calc(var(--sr) + var(--gut)) calc(var(--sb) + 60px) calc(var(--sl) + var(--gut)); max-width: 1320px; margin: 0 auto; }
.pgrid { display: grid; gap: 22px; }
@media (min-width: 980px) {
  .pgrid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: start; padding-top: 22px; }
  .pgrid.yt { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .stage-col { position: sticky; top: calc(var(--st) + 76px); }
}
.ptitle { margin: 20px 0 6px; font: 700 clamp(34px, 10vw, 64px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.02em; overflow-wrap: anywhere; }
.psub { color: var(--ink2); margin: 0 0 4px; }
@media (min-width: 980px) { .ptitle { margin-top: 0; } }

/* player */
.stage { position: relative; margin: 14px auto 0; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.6); }
.stage.reel { aspect-ratio: 9 / 16; width: min(100%, calc((100svh - var(--st) - 210px) * 9 / 16)); min-width: min(100%, 280px); }
.stage.yt { aspect-ratio: 16 / 9; width: 100%; }
@media (min-width: 980px) { .stage { margin-top: 0; } .stage.reel { width: min(100%, calc((100svh - var(--st) - 230px) * 9 / 16)); } }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.stage.started .cover { opacity: 0; pointer-events: none; }
.bigplay { position: absolute; z-index: 3; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0D0D0D; box-shadow: 0 0 0 10px rgba(184,255,61,.18), 0 12px 40px rgba(0,0,0,.5); transition: transform .25s var(--ease), opacity .25s; }
.bigplay svg { width: 34px; height: 34px; margin-left: 4px; }
.stage.playing .bigplay { opacity: 0; transform: scale(.7); pointer-events: none; }
.stage .hit { position: absolute; inset: 0 0 64px; z-index: 2; }
.vslate { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.vslate b { font: 700 120px/1 var(--display); color: var(--lime); text-shadow: 0 0 40px rgba(184,255,61,.5); }
.vslate.show { animation: slate .9s var(--ease); }
@keyframes slate { 0% { opacity: 0; transform: scale(1.3); } 25% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; } }
.nomedia-msg { position: absolute; inset: 0; z-index: 5; display: none; place-content: center; text-align: center; gap: 10px; padding: 20px; background: rgba(13,13,13,.86); }
.stage.missing .nomedia-msg { display: grid; }
.nomedia-msg b { font: 700 22px/1 var(--display); text-transform: uppercase; }
.loading-bar { position: absolute; z-index: 4; left: 0; top: 0; height: 3px; width: 30%; background: var(--lime); opacity: 0; }
.stage.waiting .loading-bar { opacity: 1; animation: load 1s linear infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

.ctrl { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,.8)); display: grid; gap: 8px; transition: opacity .3s; }
.stage.playing.idle .ctrl { opacity: 0; }
.ctrl-row { display: flex; align-items: center; gap: 6px; }
.ctrl-row .sp { flex: 1; }
.cbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); }
.cbtn svg { width: 22px; height: 22px; }
.cbtn:active { background: rgba(255,255,255,.12); }
.tcode { font: 600 11.5px var(--mono); letter-spacing: .05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tcode span { color: var(--ink3); }
/* barra de tempo = tira de filme com os 6 quadros */
.strip { position: relative; height: 34px; border-radius: 7px; overflow: hidden; background: #111; touch-action: none; cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.strip .frames { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; opacity: .55; }
.strip .frames img { width: 100%; height: 100%; object-fit: cover; }
.strip .done { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(184,255,61,.22); border-right: 2px solid var(--lime); box-shadow: 0 0 14px var(--lime); }
.strip .buf { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: rgba(243,241,236,.5); }

/* linha de versões (como a linha de metrô dos motions) */
.sec { margin-top: 30px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-h .mono { color: var(--ink3); }
.sec-h h3 { margin: 0; font: 700 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.sec-h h3::before { content: ""; width: 8px; height: 8px; background: var(--lime); border-radius: 2px; }
.vline { position: relative; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 6px var(--gut) 6px; scroll-snap-type: x proximity; }
.vline::-webkit-scrollbar { display: none; }
.vtrack { display: flex; gap: 0; position: relative; min-width: max-content; }
.station { position: relative; flex: none; width: 112px; padding-top: 44px; text-align: left; scroll-snap-align: center; display: grid; gap: 7px; }
.station::before { content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 4px; background: var(--line2); }
.station:first-child::before { left: 13px; }
.station:last-child::before { right: calc(100% - 15px); }
.station.past::before, .station.cur::before { background: var(--lime); }
.station.cur::before { right: calc(100% - 15px); }
.station.cur:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 15px; right: 0; height: 4px; background: var(--line2); }
.station .node { position: absolute; z-index: 1; top: 10px; left: 4px; width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--ink3); background: var(--bg); transition: all .3s var(--ease); }
.station.past .node { border-color: var(--lime); }
.station.cur .node { border-color: var(--lime); background: var(--lime); box-shadow: var(--lime-glow); transform: scale(1.18); }
.station .vn { position: absolute; top: 12px; left: 30px; padding: 0 7px 0 5px; background: var(--bg); font: 700 15px/1 var(--display); color: var(--ink2); }
.station.cur .vn { color: var(--lime); }
.station .vn small { font: 600 8.5px var(--mono); letter-spacing: .1em; margin-left: 4px; vertical-align: 2px; color: var(--lime); }
.station .th { width: 100px; aspect-ratio: 9 / 16; border-radius: 9px; overflow: hidden; background: var(--bg2); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s, transform .3s var(--ease); position: relative; }
.station.yt .th { aspect-ratio: 16 / 9; }
.station.yt { width: 150px; }
.station.yt .th { width: 138px; }
.station .th img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.station .th img.ok { opacity: 1; }
.station .th .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 700 26px var(--display); color: var(--ink3); }
.station .th img.ok + .ph { display: none; }
.station.cur .th { box-shadow: 0 0 0 2px var(--lime), 0 0 26px rgba(184,255,61,.25); }
.station:active .th { transform: scale(.96); }
.station .meta { font: 500 9.5px/1.45 var(--mono); letter-spacing: .06em; color: var(--ink3); }
.station .meta b { color: var(--ink2); font-weight: 600; }
.delta { color: var(--lime); }
.delta.neg { color: #FFB86B; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.btn {
  min-height: 52px; border-radius: 14px; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 700 13px/1 var(--ui); letter-spacing: .05em; text-transform: uppercase; padding: 0 14px; background: var(--bg2); transition: transform .15s var(--ease), background .2s, border-color .2s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--lime); color: #0D0D0D; border-color: var(--lime); }
.btn.ghost { background: transparent; }
.btn.full { grid-column: 1 / -1; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* brief */
.brief { display: grid; gap: 10px; }
.bcard { border: 1px solid var(--line); background: rgba(21,26,23,.72); border-radius: var(--r); padding: 16px; }
.bcard .mono { color: var(--ink3); display: block; margin-bottom: 8px; }
.bcard p { margin: 0; font-size: 16px; line-height: 1.45; }
.bcard.memo { background: transparent; border: 0; padding: 6px 0 10px; }
.bcard.memo p { font: 700 clamp(28px, 8.4vw, 44px)/1.04 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.bcard.memo.long p { font-size: clamp(22px, 6vw, 30px); line-height: 1.1; }
.shift { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.shift > div { padding: 16px; background: rgba(21,26,23,.72); }
.shift > div + div { border-top: 1px dashed var(--line2); background: var(--lime-dim); position: relative; }
.shift > div + div::before { content: "↓"; position: absolute; top: -14px; left: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0D0D0D; font: 700 14px var(--ui); }
.shift .mono { color: var(--ink3); display: block; margin-bottom: 6px; }
.shift > div + div .mono { color: var(--lime); }
.shift p { margin: 0; }
.shift .old p { color: var(--ink2); text-decoration: line-through; text-decoration-color: rgba(255,90,78,.6); text-decoration-thickness: 1.5px; }

/* legenda */
.caption { border: 1px solid var(--line); border-radius: var(--r); background: rgba(21,26,23,.72); overflow: hidden; }
.caption pre { margin: 0; padding: 16px; white-space: pre-wrap; word-break: break-word; font: 400 16px/1.5 var(--display); color: var(--ink); max-height: 300px; overflow: hidden; position: relative; transition: max-height .4s var(--ease); }
.caption.open pre { max-height: none; }
.caption:not(.open) pre::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, #141815); }
.caption .row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.caption .row .btn { flex: 1; min-height: 48px; white-space: nowrap; }
.caption .row .more { flex: 0 0 auto; padding: 0 18px; }

/* QA */
.qa { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.qa button { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg2); box-shadow: 0 0 0 1px var(--line); }
.qa img { width: 100%; height: 100%; object-fit: cover; }
.qa .mono { position: absolute; left: 8px; bottom: 8px; padding: 5px 7px; border-radius: 6px; background: rgba(13,13,13,.8); }
.qa .zoom { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(13,13,13,.8); color: var(--lime); }
.qa .zoom svg { width: 16px; height: 16px; }

/* ficha técnica */
.spec { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; font: 500 12px var(--mono); letter-spacing: .04em; }
.spec div + div { border-top: 1px solid var(--line); }
.spec dt, .spec span:first-child { color: var(--ink3); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; }
.spec span:last-child { text-align: right; word-break: break-all; }
.links { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .links { grid-template-columns: 1fr 1fr; } }
.link { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--bg2); transition: border-color .2s, transform .15s; }
.link:active { transform: scale(.98); }
.link.pub { border-color: rgba(184,255,61,.5); background: var(--lime-dim); }
.link .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg3); flex: none; }
.link.pub .ic { background: var(--lime); color: #0D0D0D; }
.link .ic svg { width: 20px; height: 20px; }
.link b { display: block; font: 700 15px/1.1 var(--display); text-transform: uppercase; }
.link .mono { color: var(--ink3); font-size: 9.5px; }
.link .arr { margin-left: auto; color: var(--ink3); }

/* ================= COMPARAR ================= */
.sheet { position: fixed; inset: 0; z-index: 40; background: #080808; display: grid; grid-template-rows: auto 1fr auto; animation: sheetIn .38s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px); } }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: calc(var(--st) + 8px) calc(var(--sr) + 12px) 8px calc(var(--sl) + 16px); border-bottom: 1px solid var(--line); }
.sheet-h h3 { margin: 0; flex: 1; font: 700 18px/1 var(--display); text-transform: uppercase; }
.sheet-h h3 .mono { display: block; color: var(--ink3); margin-top: 5px; font-size: 9.5px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px calc(var(--sr) + 10px) 0 calc(var(--sl) + 10px); min-height: 0; }
.cmp.yt { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
@media (min-width: 900px) { .cmp.yt { grid-template-columns: 1fr 1fr; grid-template-rows: none; } .cmp { gap: 16px; padding-top: 16px; } }
.pane { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; min-height: 0; }
.pane-h { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pane-h::-webkit-scrollbar { display: none; }
.pane-h .side { font: 700 18px/1 var(--display); color: var(--lime); width: 22px; flex: none; }
.vpick { flex: none; min-width: 40px; height: 34px; border-radius: 9px; border: 1px solid var(--line2); font: 700 12px var(--mono); color: var(--ink2); }
.vpick[aria-pressed="true"] { background: var(--ink); color: #0D0D0D; border-color: var(--ink); }
.pane[data-side="A"] .vpick[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); }
.pbox { position: relative; min-height: 0; container-type: size; display: grid; place-items: center; }
.pbox .vbox { position: relative; width: min(100cqw, 100cqh * 9 / 16); height: min(100cqh, 100cqw * 16 / 9); border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line2); }
.cmp.yt .pbox .vbox { width: min(100cqw, 100cqh * 16 / 9); height: min(100cqh, 100cqw * 9 / 16); }
.pbox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pbox .lab { position: absolute; z-index: 2; left: 8px; top: 8px; font: 700 11px/1 var(--mono); padding: 5px 7px; border-radius: 6px; background: rgba(13,13,13,.8); }
.pbox .aud { position: absolute; z-index: 2; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(13,13,13,.8); color: var(--ink3); }
.pbox .aud.on { background: var(--lime); color: #0D0D0D; }
.pbox .aud svg { width: 17px; height: 17px; }
.pbox .over { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 30px 8px 8px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font: 600 10px var(--mono); color: var(--ink2); display: none; }
.pbox.ended .over { display: block; }
.cmp-ctrl { padding: 12px calc(var(--sr) + 16px) calc(var(--sb) + 14px) calc(var(--sl) + 16px); display: grid; gap: 10px; border-top: 1px solid var(--line); }
.cmp-ctrl .strip { height: 30px; }
.cmp-row { display: flex; align-items: center; gap: 10px; }
.cmp-row .playbtn { width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: #0D0D0D; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 6px rgba(184,255,61,.14); }
.cmp-row .playbtn svg { width: 24px; height: 24px; }
.cmp-row .tcode { flex: 1; }
.cmp-row .btn { min-height: 44px; font-size: 11px; }

/* ================= LIGHTBOX QA ================= */
.lb { position: fixed; inset: 0; z-index: 45; background: #050505; touch-action: none; overflow: hidden; animation: sheetIn .3s var(--ease); }
.lb img { position: absolute; left: 50%; top: 50%; max-width: 100vw; max-height: 100svh; transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-drag: none; }
.lb-h { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: calc(var(--st) + 8px) calc(var(--sr) + 12px) 20px calc(var(--sl) + 16px); background: linear-gradient(rgba(0,0,0,.8), transparent); }
.lb-h .mono { flex: 1; color: var(--ink2); }
.lb-hint { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(var(--sb) + 18px); text-align: center; color: var(--ink3); pointer-events: none; transition: opacity .4s; }
.lb-nav { position: absolute; z-index: 2; bottom: calc(var(--sb) + 12px); display: flex; gap: 8px; right: calc(var(--sr) + 14px); }

/* toast */
#toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--sb) + 24px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--lime); color: #0D0D0D; font: 700 13px/1 var(--ui); letter-spacing: .04em; text-transform: uppercase; padding: 15px 20px; border-radius: 999px; box-shadow: 0 10px 40px rgba(0,0,0,.5); transition: all .35s var(--ease); white-space: nowrap; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* view transitions */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
.codigo{display:flex;gap:10px;margin-top:14px}
.codigo input{flex:1;min-width:0;height:56px;border-radius:14px;border:1.5px solid #2a312c;background:#0d0d0d;color:#f3f1ec;font:700 28px/1 ui-monospace,monospace;letter-spacing:.35em;text-align:center}
.codigo input:focus{outline:none;border-color:#b8ff3d}
.codigo .btn-xl{flex:0 0 auto;width:auto;padding:0 18px}

/* ================= STORYBOARD ================= */
.top-act { display: flex; gap: 8px; align-items: center; }
.sb-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; background: var(--lime); color: #0D0D0D; font: 700 12px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 22px rgba(184,255,61,.2); }
.sb-btn svg { width: 18px; height: 18px; }
.sb-btn:active { transform: scale(.97); }
.sbwrap { padding: 0 calc(var(--sr) + var(--gut)) calc(var(--sb) + 60px) calc(var(--sl) + var(--gut)); max-width: 1320px; margin: 0 auto; }
.sbhero { padding: 28px 0 18px; max-width: 640px; }
.sbhero h2, .sbproc h2, .sbhead h2 { font: 700 clamp(40px, 9vw, 76px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 14px; }
.sbhero p { font-size: 16px; margin: 0; }
.sbup { display: grid; gap: 12px; max-width: 640px; }
.drop { display: grid; place-items: center; gap: 8px; text-align: center; padding: 34px 16px; border: 1.5px dashed var(--line2); border-radius: 18px; background: rgba(21,26,23,.6); cursor: pointer; transition: border-color .2s, background .2s; }
.drop.over, .drop:hover { border-color: var(--lime); background: var(--lime-dim); }
.drop b { font: 700 22px/1 var(--display); text-transform: uppercase; }
.drop-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0D0D0D; }
.drop-ic svg { width: 26px; height: 26px; }
.picked { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line2); border-radius: 16px; background: var(--bg2); min-width: 0; }
.picked video { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #000; flex: none; }
.picked div { min-width: 0; display: grid; gap: 6px; }
.picked b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg.seg2 { grid-template-columns: 1fr 1fr; }
.seg.seg2 .thumb { width: calc((100% - 8px) / 2); }
.sbup textarea, .ajuste textarea { width: 100%; resize: vertical; min-height: 84px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); font: 600 15px/1.45 var(--ui); }
.sbup textarea:focus, .ajuste textarea:focus { outline: none; border-color: var(--lime); }
.upbar { position: relative; height: 34px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.upbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--lime-dim); border-right: 2px solid var(--lime); transition: width .3s; }
.upbar span { position: relative; display: grid; place-items: center; height: 100%; color: var(--lime); }
.sbh { margin: 36px 0 12px; color: var(--ink2); display: flex; align-items: center; gap: 10px; }
.sbh::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sblist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.sbcard { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(21,26,23,.7); min-width: 0; transition: border-color .2s; }
.sbcard:hover { border-color: var(--line2); }
.sbthumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--bg3); flex: none; }
.sbthumb img { width: 100%; height: 100%; object-fit: cover; }
.sbmeta { flex: 1; min-width: 0; display: grid; gap: 5px; }
.sbmeta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbst { font: 600 10px var(--mono); letter-spacing: .08em; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line2); color: var(--ink2); flex: none; }
.sbst.pronto { color: var(--lime); border-color: rgba(184,255,61,.4); }
.sbst.erro { color: var(--red); border-color: rgba(255,90,78,.4); }
.sbst:not(.pronto):not(.erro) { animation: pulse2 1.4s ease-in-out infinite; }
@keyframes pulse2 { 50% { opacity: .45; } }

.sbproc { max-width: 560px; margin: 40px auto; display: grid; gap: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--ink3); font-size: 16px; }
.steps li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.steps li.ok { color: var(--ink2); }
.steps li.ok i { background: var(--lime); border-color: var(--lime); }
.steps li.now { color: var(--ink); background: var(--bg2); border: 1px solid var(--line2); }
.steps li.now i { border-color: var(--lime); background: var(--lime); box-shadow: var(--lime-glow); animation: pulse 1.1s ease-in-out infinite; }
.steps li em { margin-left: auto; font-style: normal; color: var(--lime); }

/* categorias de efeito */
.c-gancho { --c: #B8FF3D; } .c-texto { --c: #EEEBE5; } .c-interface { --c: #4FD8FF; } .c-objeto { --c: #FFB547; }
.c-look { --c: #B58CFF; } .c-prova { --c: #6E9BFF; } .c-cta { --c: #FF6FA8; }
.sbhead { padding: 26px 0 8px; }
.sbhead > .mono { display: block; margin-bottom: 12px; }
.sbfacts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 6px; }
.sbfacts > div { padding: 14px 16px; border-radius: 14px; background: rgba(21,26,23,.75); border: 1px solid var(--line); }
.sbfacts .mono { color: var(--ink3); display: block; margin-bottom: 6px; }
.sbfacts p { margin: 0; font-size: 15.5px; }
.sbfacts .wide { grid-column: 1 / -1; display: grid; gap: 12px; }
.sbfacts .leg { white-space: pre-wrap; color: var(--ink2); }
.sbfacts .btn { justify-self: start; }
.capa-t { font: 700 26px/1.05 var(--display) !important; text-transform: uppercase; }

.sbgrid { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 900px) { .sbgrid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .sbgrid.v { grid-template-columns: minmax(0, 420px) 300px; justify-content: start; } }
.sbstage { display: grid; gap: 10px; position: sticky; top: 72px; }
@media (max-width: 899px) { .sbstage { position: static; } }
.sbplayer { position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.sbplayer video { width: 100%; display: block; max-height: 70svh; background: #000; }
.sbnow { position: absolute; left: 12px; top: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(13,13,13,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; gap: 3px; opacity: 0; transform: translateY(-6px); transition: all .25s var(--ease); pointer-events: none; }
.sbnow.show { opacity: 1; transform: none; }
.sbnow .mono { color: var(--lime); font-size: 9.5px; }
.sbnow b { font: 700 17px/1 var(--display); text-transform: uppercase; }
.sbtl { position: relative; height: 34px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.sbtl .cut { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(255,90,78,.35) 0 4px, transparent 4px 8px); }
.sbtl .seg-c { position: absolute; top: 5px; bottom: 5px; border-radius: 4px; background: var(--c); opacity: .55; border-right: 2px solid var(--bg2); transition: opacity .2s, transform .2s; }
.sbtl .seg-c:hover, .sbtl .seg-c.on { opacity: 1; }
.sbtl .seg-c.on { transform: scaleY(1.15); }
.sbtl .head { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; left: 0; pointer-events: none; }
.sblegend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink3); font-size: 9.5px; }
.sblegend span { display: inline-flex; align-items: center; gap: 6px; }
.sblegend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.sblegend i.cut { background: repeating-linear-gradient(135deg, var(--red) 0 2px, transparent 2px 4px); }

/* painel "NESTE VÍDEO" (como no print de referência) */
.neste { background: #151A17; border: 1px solid rgba(184,255,61,.14); border-radius: 18px; padding: 14px 10px 12px; position: sticky; top: 72px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
@media (max-width: 899px) { .neste { position: static; } .neste ol { max-height: 260px; } }
.neste-h { display: flex; justify-content: space-between; padding: 0 8px 10px; color: var(--ink2); letter-spacing: .22em; font-size: 10px; }
.neste-h b { color: var(--ink); }
.neste ol { list-style: none; margin: 0; padding: 0; max-height: min(62svh, 560px); overflow: auto; scrollbar-width: thin; }
.neste li button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink2); text-align: left; transition: background .2s, color .2s; }
.neste li button:hover { background: rgba(243,241,236,.05); color: var(--ink); }
.neste li em { font: 500 10px var(--mono); font-style: normal; color: var(--ink3); width: 18px; }
.neste li span { flex: 1; font-size: 14.5px; }
.neste li small { color: var(--ink3); font-size: 9.5px; }
.neste li.on button { background: var(--paper); color: #0D0D0D; }
.neste li.on em, .neste li.on small { color: rgba(13,13,13,.55); }
.neste-f { padding: 10px 10px 0; font: 700 13px var(--ui); color: var(--ink); border-top: 1px solid var(--line); margin-top: 8px; }

.gancho { margin-top: 22px; padding: 18px; border-radius: 18px; background: var(--lime-dim); border: 1px solid rgba(184,255,61,.35); display: grid; gap: 8px; }
.gancho .mono { color: var(--lime); }
.gancho b { font: 700 clamp(24px, 5vw, 36px)/1.05 var(--display); text-transform: uppercase; }
.gancho p { margin: 0; }

.cenas { display: grid; gap: 10px; }
.cena { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 16px; background: rgba(21,26,23,.7); border: 1px solid var(--line); transition: border-color .25s, background .25s; scroll-margin: 90px; }
.cena.on { border-color: rgba(184,255,61,.55); background: rgba(28,34,30,.9); }
.cthumb { position: relative; width: 92px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--bg3); align-self: start; }
.cthumb.h { aspect-ratio: 16 / 9; }
.cthumb img { width: 100%; height: 100%; object-fit: cover; }
.cthumb span { position: absolute; left: 4px; bottom: 4px; padding: 3px 5px; border-radius: 5px; background: rgba(0,0,0,.7); font-size: 9px; }
@media (min-width: 700px) { .cena { grid-template-columns: 132px minmax(0, 1fr); } .cthumb { width: 132px; } }
.cbody { display: grid; gap: 8px; min-width: 0; }
.cbody p { margin: 0; font-size: 14.5px; }
.cbody p .mono { color: var(--ink3); margin-right: 8px; font-size: 9.5px; }
.ctags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cn { font: 700 22px/1 var(--display); color: var(--ink3); }
.efx { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 700 12px/1 var(--ui); text-transform: uppercase; letter-spacing: .04em; color: #0D0D0D; background: var(--c); }
blockquote { margin: 0; padding-left: 12px; border-left: 2px solid var(--line2); color: var(--ink); font: 400 16px/1.4 var(--display); }
.cortes { display: flex; flex-wrap: wrap; gap: 8px; }
.corte { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,90,78,.35); background: rgba(255,90,78,.07); font-size: 13.5px; color: var(--ink2); text-align: left; }
.corte .mono { color: var(--red); }
.sbacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; align-items: flex-start; }
.ajuste { flex: 1 1 320px; }
.ajuste summary { list-style: none; cursor: pointer; }
.ajuste summary::-webkit-details-marker { display: none; }
.ajuste form { display: grid; gap: 10px; margin-top: 10px; }
.btn.ghost.del { color: var(--ink3); }
.sbup [hidden] { display: none !important; }
@media (max-width: 520px) { .sb-btn { width: 44px; padding: 0; justify-content: center; } .sb-btn span { display: none; } }

/* ---------- prévia da edição ---------- */
.pvmode { margin-bottom: 2px; }
.pv { position: relative; overflow: hidden; border-radius: 16px; background: #000; border: 1px solid var(--line); }
.pv.v { aspect-ratio: 9 / 16; max-height: 78svh; margin: 0 auto; width: 100%; }
.pv.h { aspect-ratio: 16 / 9; }
.pv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-height: none; cursor: pointer; transform-origin: 50% 40%; }
.pv.bruto video { object-fit: contain; }
.pv .sbnow { z-index: 4; }
.pv-play { position: absolute; z-index: 5; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px; border-radius: 50%; background: var(--lime); color: #0D0D0D; display: grid; place-items: center; box-shadow: var(--lime-glow); transition: opacity .2s, transform .2s; }
.pv-play svg { width: 30px; height: 30px; margin-left: 4px; }
.pv:not(.paused) .pv-play { opacity: 0; transform: scale(.7); pointer-events: none; }
.pvctrl { display: flex; align-items: center; gap: 8px; }
.pvb { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); display: grid; place-items: center; }
.pvb svg { width: 18px; height: 18px; }
.pvb.next svg { transform: scaleX(-1); }
.pvb.pp { background: var(--lime); color: #0D0D0D; border-color: var(--lime); }
.pvctrl .tcode { margin-left: auto; color: var(--ink2); }
.pvbar { position: relative; display: flex; gap: 2px; height: 30px; padding: 4px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.pvbar[hidden], .sbtl[hidden] { display: none; }
.pvbar button { min-width: 3px; border-radius: 3px; background: var(--c); opacity: .5; transition: opacity .2s; }
.pvbar button.on, .pvbar button:hover { opacity: 1; }
.pvbar .head { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; pointer-events: none; }
.cthumb { container-type: inline-size; }
.cthumb .fxl { z-index: 1; }
.cthumb > span { z-index: 2; }

/* ---------- catálogo de efeitos ---------- */
.catlink { display: grid; gap: 4px; max-width: 640px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(184,255,61,.3); background: var(--lime-dim); }
.catlink b { font: 700 20px/1.1 var(--display); text-transform: uppercase; }
.catf { display: grid; gap: 10px; margin-bottom: 16px; position: sticky; top: 60px; z-index: 10; padding: 10px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.catchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.catchips .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.catgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); }
.ecard { border-radius: 16px; overflow: hidden; background: rgba(21,26,23,.8); border: 1px solid var(--line); display: grid; align-content: start; cursor: pointer; transition: border-color .2s; }
.ecard.live, .ecard:hover { border-color: var(--c); }
.eprev { position: relative; aspect-ratio: 9 / 16; background: radial-gradient(90% 60% at 50% 35%, #3b4a40, #121614); overflow: hidden; }
.eprev .fxl { container-type: size; }
.ebody { padding: 10px 12px 12px; display: grid; gap: 6px; }
.ebody b { font: 700 17px/1.1 var(--display); text-transform: uppercase; }
.ebody p { margin: 0; font-size: 13px; color: var(--ink2); }
.ebody .efx { justify-self: start; font-size: 10px; padding: 4px 8px; }
.ebody small { font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.neste-f { display: block; color: var(--ink); }
a.neste-f:hover { color: var(--lime); }
.c-transicao { --c: #FFE14D; } .c-dados { --c: #3DDCB0; } .c-mapa { --c: #FF8A4C; }

/* ===TEMPLATES=== */
/* ================= TEMPLATES ================= */
.tpl-btn { height: 44px; padding: 0 14px 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; background: var(--lime); color: #0D0D0D; font: 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; box-shadow: var(--lime-glow); transition: transform .2s var(--ease); }
.tpl-btn svg { width: 18px; height: 18px; }
.tpl-btn:active { transform: scale(.96); }
.tpls .ptop, .tpl .ptop { position: sticky; top: 0; z-index: 20; background: linear-gradient(rgba(13,13,13,.94), rgba(13,13,13,.82)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.tlead { max-width: 560px; margin: 14px 0 0; color: var(--ink2); font-size: 15.5px; }
.tfilters { padding: 18px calc(var(--sr) + var(--gut)) 4px calc(var(--sl) + var(--gut)); }
.tfilters .dates { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tfilters .dates::-webkit-scrollbar { display: none; }
.tsep { flex: none; width: 1px; background: var(--line2); margin: 6px 4px; }
.tcard .cap .mono { text-transform: none; letter-spacing: .01em; font: 500 11.5px/1.35 var(--ui); color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge.st-ok { background: var(--lime); color: #0D0D0D; border-color: var(--lime); }
.badge.st-base { background: rgba(243,241,236,.92); color: #0D0D0D; border-color: transparent; }
.badge.st-novo { background: rgba(13,13,13,.75); color: var(--lime); border-color: rgba(184,255,61,.6); }
.marca { padding: 10px calc(var(--sr) + var(--gut)) calc(var(--sb) + 60px) calc(var(--sl) + var(--gut)); max-width: 1320px; }
.mgrid { display: grid; gap: 10px; }
@media (min-width: 760px) { .mgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .mgrid { grid-template-columns: repeat(3, 1fr); } }
.mgrid .bcard p { font-size: 14px; margin: 0 0 10px; }
.mgrid .bcard p b { font: 700 15px var(--display); text-transform: uppercase; letter-spacing: .01em; }
.mgrid .bcard .mono + p { margin-top: 2px; }
.mgrid .bcard .sw + .mono { margin-top: 14px; }
.sw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swc { display: grid; gap: 3px; text-align: left; }
.swc i { display: block; height: 38px; border-radius: 9px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(243,241,236,.16); }
.swc b { font: 600 11px var(--ui); text-transform: capitalize; }
.swc .mono { margin: 0 !important; font-size: 9px; color: var(--ink3); }
.bcard.nunca p { color: var(--ink2); font-size: 13.5px; }
.tshot { margin: 14px auto 0; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.6); background: var(--bg2); }
.tshot.reel { aspect-ratio: 9 / 16; width: min(100%, calc((100svh - var(--st) - 210px) * 9 / 16)); min-width: min(100%, 280px); }
.tshot.yt { aspect-ratio: 16 / 9; width: 100%; }
.tshot img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 980px) { .tshot { margin-top: 0; } }
.tstatus { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tstatus .badge { font-size: 10px; padding: 7px 9px; }
.tstatus .mono { color: var(--ink2); }
.tfrase { margin: 16px 0 0; font: 700 clamp(24px, 6.6vw, 34px)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.tres { margin: 14px 0 0; color: var(--ink2); font-size: 16px; line-height: 1.5; }
.tlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tlist li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.45; }
.tlist li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid var(--lime); }
.tpl .spec div { flex-direction: column; gap: 4px; }
.tpl .spec span:last-child { text-align: left; word-break: normal; overflow-wrap: anywhere; font: 600 13.5px/1.45 var(--ui); letter-spacing: 0; }
.sinais { display: flex; flex-wrap: wrap; gap: 6px; }
.sinal { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.sinal i { font-style: normal; font-size: 7px; letter-spacing: 2px; color: var(--lime); }
.sinal.w3 { border-color: var(--lime); color: var(--ink); background: var(--lime-dim); }
.empty.slim { padding: 34px 10px; border: 1px dashed var(--line2); border-radius: var(--r); }
.empty.slim b { font-size: 22px; }
.mgrid .bcard p .mono { display: inline; margin: 0; }
.frame video.pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.frame video.pv.ok { opacity: 1; }
.tshot { position: relative; }
.tshot video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.tpv { position: absolute; top: 12px; left: 12px; padding: 5px 8px; border-radius: 6px; background: rgba(13,13,13,.72); color: var(--lime); font-size: 9.5px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }

/* ---------- motion real escolhido pelo diretor ---------- */
.fxl video.mo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mot { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 12px; background: rgba(184,255,61,.07); border: 1px solid rgba(184,255,61,.3); }
.mot video { width: 92px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: repeating-conic-gradient(#222 0 25%, #2c2c2c 0 50%) 0 0 / 14px 14px; }
.mot > div { display: grid; gap: 4px; align-content: start; } .mot .mono { color: var(--lime); font-size: 9.5px; } .mot b { font: 700 16px/1.1 var(--display); text-transform: uppercase; }
.mot p { margin: 0; font-size: 13.5px; color: var(--ink2); } .mot small { font-size: 12px; color: var(--ink2); } .mot s { color: var(--ink3); }
.vot { display: flex; gap: 6px; margin-top: 4px; } .vot button { font-size: 18px; padding: 4px 10px; border-radius: 9px; border: 1px solid var(--line2); }
.vot button.on { background: var(--lime-dim); border-color: var(--lime); }
.alts { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.alts .mono { color: var(--ink3); font-size: 9px; flex: none; margin-right: 2px; }
.alts button { flex: none; display: grid; justify-items: center; gap: 3px; width: 64px; padding: 4px; border-radius: 8px; border: 1px solid var(--line); }
.alts button:hover { border-color: var(--lime); } .alts img { width: 54px; aspect-ratio: 9/16; object-fit: cover; border-radius: 5px; }
.alts em { font: 500 8.5px/1.1 var(--mono); font-style: normal; color: var(--ink2); text-align: center; text-transform: uppercase; }
