/* 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}
