/* SquashFit Replay — dark theme; the logo yellow (#f9dc0e) is the only accent. */
:root{--accent:#f9dc0e;--accent-2:#ffe95c;--muted-2:#8b8f98;--on-accent:#101010;--paper:#0f1012;--ink:#f2f3f5;--ink-2:#8b8f98;--white:#1a1c20;--line:#25282e;--ball:#000;--dot:#f9dc0e;--wa:#25d366;--shadow:0 8px 28px rgba(0,0,0,.5)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:var(--paper)}
body{margin:0;min-height:100vh;background:var(--paper);color:var(--ink);font:16px/1.4 Nunito,"Trebuchet MS",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-weight:700;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;font-weight:900}
img,video{display:block;max-width:100%}
.wrap{max-width:1040px;margin:0 auto;padding:0 16px}
/* pink header */
.bar{position:sticky;top:0;z-index:20;background:rgba(10,11,13,.92);backdrop-filter:saturate(160%) blur(14px);-webkit-backdrop-filter:saturate(160%) blur(14px);border-bottom:1px solid var(--line);padding:calc(10px + env(safe-area-inset-top)) 0 10px}
.bar .row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.hd{background:#0a0b0d;color:var(--ink);border-bottom:1px solid var(--line);padding:14px 0 20px}
.hd .row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px}
.brand .word{display:flex;flex-direction:column;line-height:1}
.brand .word b{font-size:21px;font-weight:900;letter-spacing:-.5px;color:#fff}
.brand .word b i{font-style:normal;color:var(--accent)}
.brand .mark{width:34px;height:34px;flex:none;display:block}
.brand .word small{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--ink-2)}
.ball{position:relative;display:inline-grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 35% 28%,#3a3a3a,#000 65%);color:#fff;font-weight:900;flex:none;box-shadow:0 0 0 1px #33383f}
.ball:before,.ball:after{content:"";position:absolute;border-radius:50%;background:var(--dot)}
.ball.s{width:34px;height:34px;font-size:9px}.ball.s:before,.ball.s:after{width:6px;height:6px;top:8px}.ball.s:before{left:9px}.ball.s:after{left:19px}.ball.s span{margin-top:8px}
.ball.m{width:46px;height:46px;font-size:19px}.ball.m:before,.ball.m:after{width:7px;height:7px;top:9px}.ball.m:before{left:13px}.ball.m:after{left:26px}.ball.m span{margin-top:9px}
.pill{display:inline-flex;align-items:center;gap:8px;background:#17191e;border:1px solid var(--line);border-radius:999px;padding:9px 13px;font-size:12px;font-weight:800;letter-spacing:1px;color:#fff}
.pill.off{color:var(--ink-2)}
.pill.off i{background:#6b7280;animation:none}
.pill i{width:8px;height:8px;border-radius:50%;background:#3ddc84;display:inline-block;box-shadow:0 0 0 0 rgba(124,255,155,.6);animation:pulse 1.8s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(124,255,155,.55)}70%{box-shadow:0 0 0 8px rgba(124,255,155,0)}100%{box-shadow:0 0 0 0 rgba(124,255,155,0)}}
.ib{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;background:#17191e;border:1px solid var(--line);color:var(--ink);cursor:pointer}
.ib svg{width:24px;height:24px}
.hd h1{margin:16px 0 0;font-size:34px;font-weight:900;letter-spacing:-1px;line-height:1;color:#fff}
.hd .sub{margin-top:6px;font-size:14px;font-weight:700;color:var(--ink-2)}
.hd .ttl{display:flex;flex-direction:column;align-items:center;line-height:1.1;text-align:center}
.hd .ttl b{font-size:20px;font-weight:900;color:#fff}.hd .ttl small{font-size:12px;font-weight:800;color:var(--ink-2);letter-spacing:1px}
/* day strip (date filter) */
.days{display:flex;gap:8px;overflow-x:auto;padding:16px 0 4px;margin:0 -16px;padding-left:16px;padding-right:16px;scrollbar-width:none}
.days::-webkit-scrollbar{display:none}
.day{flex:none;border:1px solid var(--line);font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:64px;padding:10px 12px;border-radius:16px;background:#17191e;border:1px solid var(--line);color:var(--ink);font-weight:900;font-size:14px}
.day small{font-size:11px;font-weight:800;color:var(--ink-2)}
.day.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.day.on small{color:rgba(16,16,16,.65)}

/* body */
main{padding:18px 0 40px}
.sect{font-size:13px;font-weight:900;letter-spacing:2px;color:var(--ink-2);text-transform:uppercase;margin:22px 0 10px}
.sect:first-child{margin-top:0}
.proc{display:flex;align-items:center;gap:14px;background:var(--white);border:1px solid var(--line);color:var(--ink);border-radius:18px;padding:14px 16px;margin-bottom:14px}
.proc .spin{width:38px;height:38px;border-radius:50%;border:4px solid #2c3038;border-top-color:var(--accent);animation:spin 1s linear infinite;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
.proc b{display:block;font-size:16px;font-weight:900}.proc small{color:var(--ink-2);font-size:13px}
.folder{display:flex;align-items:center;gap:14px;background:var(--white);border:1px solid var(--line);border-radius:22px;padding:12px;margin-bottom:10px;transition:transform .12s,border-color .12s}
.folder:active{transform:scale(.985)}
@media(hover:hover){.folder:hover{border-color:#39404a}}
.folder .th{width:96px;height:64px;border-radius:14px;overflow:hidden;background:#000;flex:none}
.folder .th img{width:100%;height:100%;object-fit:cover}
.folder .tx{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.folder .tx b{font-size:20px;font-weight:900;letter-spacing:-.5px}
.folder .tx span{font-size:13px;font-weight:700;color:var(--ink-2)}
@media(min-width:700px){.folders{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.folder{margin:0}}
.empty{text-align:center;color:var(--ink-2);padding:60px 20px}.empty b{display:block;color:var(--ink);font-size:18px;margin-bottom:6px}
/* folder page grid */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:700px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1000px){.grid{grid-template-columns:repeat(4,1fr)}}
.card{display:flex;flex-direction:column;gap:8px;background:var(--white);border:1px solid var(--line);border-radius:20px;padding:8px;transition:transform .12s,border-color .12s}
.card:active{transform:scale(.985)}
@media(hover:hover){.card:hover{border-color:#39404a}}
.card .th{position:relative;aspect-ratio:16/10;border-radius:14px;overflow:hidden;background:#000}
.card .th img,.card .th video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.card .th video{opacity:0;transition:opacity .2s}.card .th video.on{opacity:1}
.card .new{position:absolute;top:8px;left:8px;background:var(--accent);color:var(--on-accent);font-size:10px;font-weight:900;letter-spacing:1.5px;padding:4px 7px;border-radius:8px}
.card .play{position:absolute;right:8px;bottom:8px;width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.55);display:grid;place-items:center}
.card .play svg{width:14px;height:14px;fill:#fff;margin-left:2px}
.card .m{display:flex;align-items:baseline;justify-content:space-between;padding:0 4px 4px}
.card .m b{font-size:22px;font-weight:900;letter-spacing:-.5px}.card .m span{font-size:12px;font-weight:800;color:var(--ink-2)}
/* clip page */
.stage{background:#000;margin:0 -16px}
@media(min-width:900px){.stage{margin:16px 0 0;border-radius:22px;overflow:hidden}}
.player{position:relative;aspect-ratio:16/9;background:#000}
.player video{width:100%;height:100%;object-fit:contain}
.player .big{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;opacity:0;transition:opacity .15s}
.player[data-paused] .big{opacity:1}
.player .big span{width:72px;height:72px;border-radius:50%;background:var(--accent);display:grid;place-items:center;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.player .big svg{width:30px;height:30px;fill:#fff;margin-left:4px}
.tlw{padding:22px 4px 0}
.tl{position:relative;height:28px;cursor:pointer;touch-action:none}
.tl:before{content:"";position:absolute;left:0;right:0;top:11px;height:6px;border-radius:6px;background:#2c3038}
.tl-fill{position:absolute;left:0;top:11px;height:6px;border-radius:6px;background:#fff;width:0}
.tl-press{position:absolute;top:2px;width:4px;height:26px;border-radius:4px;background:var(--accent);transform:translateX(-2px)}
.tl-press:after{content:"MOMENTO";position:absolute;top:-16px;left:50%;transform:translateX(-50%);font-size:10px;font-weight:900;letter-spacing:1.5px;color:var(--accent)}
.tl-time{display:flex;justify-content:space-between;font-size:12px;font-weight:800;color:var(--ink-2);font-variant-numeric:tabular-nums;margin-top:2px}
.ctrls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0 0}
.ctrls button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:48px;min-width:48px;padding:0 12px;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);font-size:14px;cursor:pointer;white-space:nowrap}
.ctrls button svg{width:20px;height:20px;fill:currentColor}
.ctrls button.on{color:var(--accent)}
.ctrls .c-press{background:var(--accent);border-color:var(--accent);color:var(--on-accent);padding:0 16px}.ctrls .c-press svg{fill:var(--on-accent)}
.ctrls .c-play[data-state=playing] .i-play{display:none}.ctrls .c-play[data-state=paused] .i-pause{display:none}
@media(max-width:400px){.ctrls .c-back,.ctrls .c-fwd{display:none}}
.cta{display:flex;flex-direction:column;gap:10px;padding:22px 0 0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:58px;border:1px solid var(--line);border-radius:20px;background:var(--white);color:var(--ink);font-size:16px;font-weight:900;cursor:pointer}
.btn svg{width:22px;height:22px;fill:currentColor}
.btn.share{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-size:17px;box-shadow:0 10px 26px rgba(249,220,14,.22)}
.btn.share svg{stroke:var(--on-accent);fill:none}
.btn.share.busy{opacity:.75;pointer-events:none}.btn.share.busy span{display:none}.btn.share.busy:after{content:"preparando o vídeo…";font-size:14px;font-weight:700}

.btn.sec{height:50px;font-size:15px}.btn.sec.done{color:var(--accent)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.nav{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:6px 0 20px}
.nav a{display:flex;flex-direction:column;justify-content:center;height:56px;padding:0 14px;border-radius:16px;background:var(--white);border:1px solid var(--line)}
.nav a small{font-size:11px;font-weight:800;letter-spacing:1.5px;color:var(--ink-2)}.nav a b{font-size:18px;font-weight:900}
.nav a.next{align-items:flex-end}.nav a[aria-disabled]{background:transparent;border-style:dashed;color:#4a4f57}.nav a[aria-disabled] small{color:#4a4f57}
.info{padding:14px 0 0}.info h2{margin:0;font-size:22px;font-weight:900;letter-spacing:-.5px}.info .sub{font-size:13px;font-weight:700;color:var(--ink-2);margin-top:4px}
.expire{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:12px;font-weight:800;color:var(--accent);background:rgba(249,220,14,.12);border:1px solid rgba(249,220,14,.32);border-radius:999px;padding:6px 10px}
/* how */
.steps{display:flex;flex-direction:column;gap:12px}
.step{display:flex;gap:14px;background:var(--white);border:1px solid var(--line);border-radius:20px;padding:18px}
.step .n{width:36px;height:36px;border-radius:50%;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;font-weight:900;flex:none}
.step b{display:block;font-size:17px;font-weight:900;margin-bottom:4px}.step p{margin:0;font-size:14px;font-weight:700;color:var(--ink-2)}
/* install + footer */
.install{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));background:#1e2126;border:1px solid var(--line);color:#fff;border-radius:18px;padding:12px 14px;display:none;gap:12px;align-items:center;z-index:30;box-shadow:0 12px 40px rgba(0,0,0,.35)}
.install.show{display:flex}.install img{width:44px;height:44px;border-radius:11px}
.install .txt{flex:1;font-size:14px;line-height:1.3}.install .txt small{color:#bdbdbd;display:block}
.install .go{background:var(--accent);color:var(--on-accent);border:0;border-radius:12px;padding:10px 14px;cursor:pointer}
.install .x{background:none;border:0;color:#bdbdbd;font-size:22px;padding:4px 6px;cursor:pointer}
@media(display-mode:standalone){.install{display:none!important}}
.sheet{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.65);display:flex;align-items:flex-end;justify-content:center;padding:16px}
.sheet[hidden]{display:none}
.sheet-card{background:var(--white);border:1px solid var(--line);border-radius:22px;padding:22px;width:100%;max-width:420px;margin-bottom:env(safe-area-inset-bottom)}
.sheet-card strong{display:block;font-size:19px;margin-bottom:12px}
.sheet-card ol{margin:0 0 18px;padding-left:20px;color:var(--ink-2);font-size:15px;font-weight:700;line-height:1.9}
.sheet-card li b{color:var(--ink)}
.sheet-card svg{width:17px;height:17px;vertical-align:-3px;stroke:var(--accent)}
.sheet-card .btn{width:100%;height:50px}
footer{color:var(--ink-2);font-size:12px;font-weight:700;text-align:center;padding:24px 16px calc(24px + env(safe-area-inset-bottom))}
footer a{color:var(--ink);font-weight:900}

.sect[hidden],.folders[hidden]{display:none!important}

/* admin */
.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media(min-width:640px){.kpis{grid-template-columns:repeat(3,1fr)}}
.kpi{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:14px}
.kpi b{display:block;font-size:28px;line-height:1.1;letter-spacing:-1px}
.kpi span{font-size:12px;font-weight:700;color:var(--ink-2)}
.panel{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:14px 16px;margin-bottom:6px}
.line{display:flex;justify-content:space-between;gap:14px;padding:7px 0;font-size:14px;color:var(--ink-2);border-bottom:1px solid var(--line)}
.line:last-child{border-bottom:0}
.line b{color:var(--ink);text-align:right;font-weight:800}
.line b.good{color:#3ddc84}.line b.bad{color:#ff6b6b}
.meter{height:8px;border-radius:8px;background:#2c3038;overflow:hidden;margin-top:10px}
.meter i{display:block;height:100%;background:var(--accent)}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{text-align:right;font-size:11px;letter-spacing:1px;color:var(--ink-2);text-transform:uppercase;padding:4px 0;font-weight:800}
.tbl th:first-child,.tbl td:first-child{text-align:left}
.tbl td{text-align:right;padding:7px 0;border-top:1px solid var(--line);font-weight:700}
.tbl td a{color:var(--accent)}
.bars{display:flex;align-items:flex-end;gap:3px;height:140px;overflow-x:auto}
.bar{flex:1;min-width:20px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;gap:6px}
.bar i{display:block;width:100%;background:var(--accent);border-radius:4px 4px 0 0;min-height:3px}
.bar small{font-size:10px;color:var(--ink-2);font-weight:800}
.fail{padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}
.fail:last-child{border-bottom:0}
.fail b{font-weight:800}
.fail small{display:block;color:var(--ink-2);margin-top:3px;word-break:break-word}
