:root{
  --blau:#1d4ed8; --blau2:#1e40af; --verd:#15803d; --gris:#334155;
  --fons:#f1f5f9; --blanc:#fff; --vora:#cbd5e1;
}
*{box-sizing:border-box}
body{
  margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--fons); color:var(--gris); font-size:19px; line-height:1.45;
}
body.centrat{display:flex; align-items:center; justify-content:center; min-height:100vh; padding:20px}
.targeta{
  background:var(--blanc); border-radius:16px; padding:28px; width:100%; max-width:420px;
  box-shadow:0 8px 30px rgba(0,0,0,.10); text-align:center;
}
.targeta h1{margin:0 0 6px; font-size:30px}
.subtitol{color:#64748b; font-size:16px; margin:0 0 22px}
label{display:block; text-align:left; font-weight:600; margin-bottom:6px; font-size:16px}
input[type=password]{
  width:100%; padding:14px; font-size:19px; border:2px solid var(--vora);
  border-radius:10px; margin-bottom:16px;
}
.barra{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:var(--blau); color:#fff; padding:14px 18px; flex-wrap:wrap;
}
.barra .titol{font-size:22px; font-weight:700}
.barra .sortir{color:#fff; text-decoration:none; font-size:16px; opacity:.9; border:1px solid rgba(255,255,255,.5); padding:6px 12px; border-radius:8px}
.contingut{max-width:820px; margin:0 auto; padding:18px 16px 60px}
.pas{background:var(--blanc); border-radius:14px; padding:20px; margin-bottom:18px; box-shadow:0 2px 10px rgba(0,0,0,.06)}
.pas h2{margin:0 0 10px; font-size:22px; color:var(--blau2)}
.pas h2 small{font-size:15px; color:#64748b; font-weight:400}
.ajuda{font-size:15px; color:#64748b; margin:0 0 12px}
.info{font-size:16px; color:#475569}
input[type=file]{
  width:100%; padding:14px; font-size:17px; border:2px dashed var(--vora);
  border-radius:10px; background:#f8fafc;
}
.boto{
  display:inline-block; border:0; border-radius:12px; cursor:pointer;
  background:var(--verd); color:#fff; font-weight:700; font-family:inherit;
}
.boto.gran{width:100%; padding:20px; font-size:23px}
.boto:disabled{background:#94a3b8; cursor:not-allowed}
.boto.petit{padding:9px 14px; font-size:16px; background:var(--blau)}
.boto.vermell{background:#b91c1c}
.error{color:#b91c1c; font-weight:600; margin-top:14px}
.progres{margin-top:16px}
.progres.amagat{display:none}
.barraProgres{background:#e2e8f0; border-radius:10px; height:20px; overflow:hidden}
#barraFill{height:100%; width:0%; background:var(--blau); transition:width .3s}
#progresText{margin:10px 0 0; font-size:16px; text-align:center}
.llista{display:flex; flex-direction:column; gap:12px}
.item{
  border:1px solid var(--vora); border-radius:12px; padding:14px; background:#f8fafc;
  display:flex; flex-direction:column; gap:10px;
}
.item .cap{display:flex; justify-content:space-between; gap:10px; align-items:baseline; flex-wrap:wrap}
.item .nom{font-weight:700; word-break:break-all}
.estat{font-size:14px; padding:3px 10px; border-radius:999px; font-weight:700; white-space:nowrap}
.estat.cua{background:#fef3c7; color:#92400e}
.estat.fent{background:#dbeafe; color:#1e40af}
.estat.fet{background:#dcfce7; color:#166534}
.estat.error{background:#fee2e2; color:#991b1b}
.accions{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
audio{width:100%; margin-top:4px}
.resultat .cosa{background:#f0fdf4; border:1px solid #86efac; border-radius:12px; padding:16px}
@media(max-width:520px){ body{font-size:18px} .boto.gran{font-size:20px; padding:18px} }

/* --- enllaç de YouTube --- */
.separador{display:flex;align-items:center;gap:1rem;margin:1.4rem 0 1rem;color:#8a9bb0;font-size:.95rem}
.separador::before,.separador::after{content:"";flex:1;height:1px;background:#d7dee8}
.pas label{display:block;margin-bottom:.5rem;font-weight:600;font-size:1.05rem}
.pas input[type=url]{width:100%;padding:.9rem 1rem;font-size:1.05rem;border:2px solid #d7dee8;border-radius:10px;box-sizing:border-box}
.pas input[type=url]:focus{outline:none;border-color:#4a90d9}
.ajuda.petit{font-size:.9rem;margin-top:.5rem}
#btnYt{background:#b3261e}
#btnYt:disabled{opacity:.6}
