/* ─────────────────────────────────────────────────────────────
   Comprimir vídeo — Cidade PVC
   Paleta portada do portal (src/style.css)
   ───────────────────────────────────────────────────────────── */
:root {
  --blue900:#042C53; --blue800:#0C447C; --blue600:#185FA5; --blue400:#378ADD;
  --blue200:#85B7EB; --blue100:#B5D4F4; --blue50:#E6F1FB;
  --green600:#3B6D11; --green50:#EAF3DE;
  --red600:#A32D2D; --red50:#FCEBEB;
  --amber800:#633806; --amber600:#854F0B; --amber50:#FAEEDA;
  --gray800:#444441; --gray600:#5F5E5A; --gray400:#888780; --gray100:#D3D1C7; --gray50:#F1EFE8;
  --bg:#F8F8F7; --surface:#FFFFFF; --border:#E4E3DC;

  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-pill:100px;
  --shadow-sm:0 2px 8px rgba(4,44,83,.09), 0 0 0 1px rgba(4,44,83,.04);
  --shadow-md:0 6px 20px rgba(4,44,83,.1), 0 2px 6px rgba(4,44,83,.06);
  --t:.15s ease;
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
html, body { min-height:100%; }
body {
  font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--blue50), transparent 60%),
    var(--bg);
  color:var(--gray800); font-size:15px; line-height:1.45;
  -webkit-font-smoothing:antialiased;
}
svg { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.hidden { display:none !important; }

.wrap {
  min-height:100dvh; display:flex; flex-direction:column; align-items:center;
  padding:calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  gap:20px;
}

/* Cabeçalho / logo */
.top { width:100%; max-width:560px; display:flex; justify-content:center; }
.logo { height:34px; width:auto; }

/* Cartão principal */
.card {
  width:100%; max-width:560px; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--r-lg);
  box-shadow:var(--shadow-md); padding:24px; display:flex; flex-direction:column; gap:16px;
}
.title { font-size:22px; font-weight:800; color:var(--blue900); letter-spacing:-.01em; }
.lead { font-size:14px; color:var(--gray600); line-height:1.55; }
.lead strong { color:var(--gray800); }

.step { display:flex; flex-direction:column; gap:14px; }

/* Drop zone */
.drop {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  padding:34px 20px; border:2px dashed var(--blue200); border-radius:var(--r-md);
  background:var(--blue50); color:var(--blue600); cursor:pointer; text-align:center;
  transition:border-color var(--t), background var(--t), transform var(--t);
}
.drop:hover, .drop.is-drag { border-color:var(--blue600); background:#dcebfa; }
.drop.is-drag { transform:scale(1.01); }
.drop-ico { width:34px; height:34px; margin-bottom:2px; }
.drop-main { font-size:15px; font-weight:700; color:var(--blue800); }
.drop-sub { font-size:12px; color:var(--gray400); }

/* Ficheiro escolhido */
.fileinfo {
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; border:1px solid var(--border); border-radius:var(--r-md); background:var(--gray50);
}
.fileinfo-ico { width:22px; height:22px; color:var(--blue600); flex:0 0 auto; }
.fileinfo-txt { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.fileinfo-name { font-size:14px; font-weight:700; color:var(--gray800); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fileinfo-meta { font-size:12px; color:var(--gray400); }
.iconbtn {
  width:32px; height:32px; border-radius:50%; border:none; cursor:pointer; flex:0 0 auto;
  background:var(--surface); color:var(--gray600); display:flex; align-items:center; justify-content:center;
}
.iconbtn:hover { background:var(--red50); color:var(--red600); }
.iconbtn svg { width:16px; height:16px; }

/* Botões */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 18px; border-radius:var(--r-md); font-size:15px; font-weight:700;
  cursor:pointer; border:1px solid transparent; text-align:center; transition:background var(--t), border-color var(--t), opacity var(--t);
}
.btn:disabled { opacity:.5; cursor:default; }
.btn-primary { background:var(--blue600); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background:var(--blue800); }
.btn-ghost { background:var(--surface); color:var(--blue600); border-color:var(--blue200); }
.btn-ghost:hover { background:var(--blue50); }

.hint { font-size:12.5px; color:var(--gray400); line-height:1.5; }

/* Progresso */
.spinner {
  width:38px; height:38px; margin:4px auto 0; border-radius:50%;
  border:3px solid var(--blue50); border-top-color:var(--blue600); animation:spin .8s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }
.w-status { text-align:center; font-size:14px; font-weight:600; color:var(--gray800); }
.bar { width:100%; height:8px; border-radius:var(--r-pill); background:var(--gray50); overflow:hidden; }
.bar-fill { height:100%; width:0; border-radius:var(--r-pill); background:linear-gradient(90deg, var(--blue400), var(--blue600)); transition:width .3s ease; }

/* Resultado */
.result { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; }
.result-ico { width:44px; height:44px; }
.result-ico.ok { color:var(--green600); }
.result-ico.warn { color:var(--amber600); }
.result-ico.err { color:var(--red600); }
.result-title { font-size:17px; font-weight:800; color:var(--gray800); }
.result-sizes { font-size:14px; color:var(--gray600); }
.result-sizes b { color:var(--green600); }

.preview { width:100%; max-height:280px; border-radius:var(--r-md); background:#000; }

.next {
  font-size:13.5px; color:var(--blue800); background:var(--blue50);
  border:1px solid var(--blue100); border-radius:var(--r-md); padding:12px 14px; line-height:1.5;
}

/* Rodapé */
.foot { font-size:11.5px; color:var(--gray400); text-align:center; }

@media (max-width:420px) {
  .card { padding:20px 16px; }
  .title { font-size:20px; }
}
