:root {
  --bg: #14161b; --card: #1d2027; --card2: #252932; --linha: #2f3440;
  --txt: #f2f3f5; --muted: #a0a6b1; --accent: #ff5a1f; --accent2: #ffb08f;
  --ok: #3ecf8e; --raio: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
button, input { font: inherit; }

.topo { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: rgba(20,22,27,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); }
.marca { font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -.2px; }
.marca span { color: var(--accent); }
.selo { font-size: 12px; color: var(--muted); border: 1px solid var(--linha); border-radius: 99px; padding: 2px 10px; }

main { max-width: 640px; margin: 0 auto; padding: 16px 16px 96px; }
.carregando { color: var(--muted); }
h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 6px; letter-spacing: -.3px; }
h2 { font-size: 19px; margin: 26px 0 10px; }
p { margin: 0 0 12px; }
.sub { color: var(--muted); }
.voltar { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 6px; font-size: 15px; }

.card { background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; margin-bottom: 12px; }
a.card { display: block; text-decoration: none; }
a.card:active { transform: scale(.99); }
.card .titulo { font-weight: 700; font-size: 17px; }
.linha { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--card2); color: var(--muted); white-space: nowrap; }
.tag.atual { background: var(--accent); color: #fff; }
.tag.ok { background: rgba(62,207,142,.15); color: var(--ok); }
.bloqueada { opacity: .55; }
.barra { height: 6px; background: var(--card2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.barra i { display: block; height: 100%; background: var(--accent); }

.btn { display: block; width: 100%; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--accent);
  color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; text-align: center; text-decoration: none; }
.btn.sec { background: var(--card2); color: var(--txt); }
.btn:disabled { opacity: .5; }
label.campo { display: block; margin: 10px 0; color: var(--muted); font-size: 14px; }
label.campo input[type=date] { display: block; width: 100%; margin-top: 6px; padding: 12px; border-radius: 10px;
  border: 1px solid var(--linha); background: var(--card2); color: var(--txt); color-scheme: dark; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }

.alterna { display: flex; background: var(--card2); border-radius: 12px; padding: 4px; margin: 6px 0 16px; }
.alterna button { flex: 1; border: 0; background: none; color: var(--muted); padding: 10px; border-radius: 9px; font-weight: 700; cursor: pointer; }
.alterna button.on { background: var(--accent); color: #fff; }

.bloco { margin-bottom: 14px; }
.bloco.combo { border: 1px dashed var(--accent2); border-radius: var(--raio); padding: 10px; }
.bloco .rotulo { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--accent2); margin: 0 4px 8px; }
.ex { background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; margin-bottom: 10px; }
.bloco.combo .ex:last-child { margin-bottom: 0; }
.ex.feito { border-color: rgba(62,207,142,.6); }
.ex .midia { position: relative; background: #000; aspect-ratio: 16 / 9; }
.ex .midia img, .ex .midia video { width: 100%; height: 100%; object-fit: contain; display: block; }
.ex .play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgba(0,0,0,.25); cursor: pointer; }
.ex .play span { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,90,31,.92); display: grid; place-items: center; color: #fff; font-size: 22px; padding-left: 4px; }
.player { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; align-items: center; justify-content: center; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .fechar { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; cursor: pointer; }
.ex .corpo { padding: 12px 14px 14px; }
.ex .nome { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.ex .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ex .meta b { font-size: 13px; background: var(--card2); border-radius: 8px; padding: 3px 9px; font-weight: 600; }
.ex .obs { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.ex .carga { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linha); background: var(--card2); color: var(--txt); margin-bottom: 10px; }
.ex .marcar { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.ex .marcar input { width: 22px; height: 22px; accent-color: var(--ok); }

.fixo { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 30%); }
.fixo .btn { max-width: 608px; margin: 0 auto; }
.aviso { font-size: 13px; color: var(--muted); border-left: 3px solid var(--accent); padding: 6px 10px; margin: 16px 0; }
ul.dicas { padding-left: 20px; margin: 0 0 12px; }
ul.dicas li { margin-bottom: 6px; }
