/* Separador de Voz e Instrumental
   Fundo branco, texto e títulos sem cor (preto/cinzento), responsivo a partir de ~4". */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111111;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3, p, span, a, button, label {
  color: #111111;
}

.topo {
  border-bottom: 1px solid #111111;
  padding: 1.5rem 1rem;
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 640px;
  margin: 0 auto;
}

.marca h1 {
  font-size: 1.25rem;
  margin: 0 0 0.2rem 0;
  font-weight: 700;
}

.subtitulo {
  margin: 0;
  font-size: 0.85rem;
  font-family: 'Courier New', Courier, monospace;
  color: #555555;
}

/* pequeno motivo de forma de onda, animado devagar, é a assinatura visual do sistema */
.onda {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.onda i {
  display: inline-block;
  width: 3px;
  background: #3a3a3a;
  border-radius: 2px;
  animation: respirar 1.8s ease-in-out infinite;
}
.onda i:nth-child(1) { height: 8px;  animation-delay: 0s; }
.onda i:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.onda i:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.onda i:nth-child(4) { height: 14px; animation-delay: 0.3s; }
.onda i:nth-child(5) { height: 24px; animation-delay: 0.4s; }
.onda i:nth-child(6) { height: 10px; animation-delay: 0.5s; }
.onda i:nth-child(7) { height: 20px; animation-delay: 0.6s; }

@keyframes respirar {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .onda i { animation: none; }
}

.conteudo {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem 1rem;
}

.aviso {
  border-left: 3px solid #111111;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  background: #fafafa;
  font-size: 0.92rem;
}
.aviso p { margin: 0; }

/* zona de carregamento de ficheiro */
.zona-carregamento {
  border: 1.5px dashed #444444;
  border-radius: 6px;
  padding: 1.75rem 1rem;
  text-align: center;
  margin: 1.5rem 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.zona-carregamento.sobre-arrasto {
  border-color: #111111;
  background: #f5f5f3;
}

.etiqueta-carregar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.icone-carregar {
  font-size: 1.3rem;
}

.detalhe {
  font-size: 0.8rem;
  color: #666666;
  font-family: 'Courier New', Courier, monospace;
}

.nome-ficheiro {
  margin: 0.6rem 0 0 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  word-break: break-word;
}

/* controlos */
.controlos {
  margin: 1.75rem 0;
  padding-top: 1rem;
  border-top: 1px solid #dddddd;
}

.tela-onda {
  width: 100%;
  height: 90px;
  display: block;
  background: #fafafa;
  border: 1px solid #dddddd;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.grelha-controlos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 480px) {
  .grelha-controlos { grid-template-columns: 1fr 1fr; }
}

.controlo-slider {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.controlo-slider input[type="range"] {
  width: 100%;
  accent-color: #3a3a3a;
}

.controlo-slider .valor {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  color: #555555;
}

.estado {
  min-height: 1.2em;
  font-size: 0.85rem;
  font-family: 'Courier New', Courier, monospace;
  color: #444444;
}

/* botões — sem gradiente, sem cor de marca, só contorno */
.botao {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border: 1.5px solid #111111;
  border-radius: 4px;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.botao-principal {
  background: #111111;
  color: #ffffff;
  width: 100%;
}
.botao-principal:hover { background: #333333; }

.botao-secundario:hover,
.botao-fantasma:hover {
  background: #f0f0ee;
}

.botao-fantasma {
  border-style: dashed;
}

/* resultados */
.resultados {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.faixa {
  border: 1px solid #dddddd;
  border-radius: 6px;
  padding: 1.1rem 1rem;
}

.faixa h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
}

.descricao-faixa {
  margin: 0 0 0.75rem 0;
  font-size: 0.85rem;
  color: #555555;
}

.faixa audio {
  width: 100%;
  margin-bottom: 0.75rem;
}

.acoes-faixa {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.acoes-faixa .botao { flex: 1 1 auto; }

/* histórico */
.historico {
  margin-top: 2.25rem;
  border-top: 1px solid #dddddd;
  padding-top: 1rem;
}
.historico h2 { font-size: 1rem; }

.lista-historico {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0;
  font-size: 0.85rem;
}
.lista-historico li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eeeeee;
}
.lista-historico a { text-decoration: underline; }

.rodape {
  text-align: center;
  font-size: 0.78rem;
  color: #777777;
  padding: 1.5rem 1rem 2.5rem 1rem;
  font-family: 'Courier New', Courier, monospace;
}

/* responsivo a partir de ecrãs muito pequenos (~4 polegadas) */
@media (max-width: 360px) {
  html, body { font-size: 15px; }
  .marca h1 { font-size: 1.1rem; }
  .conteudo { padding: 1rem 0.75rem 2.5rem 0.75rem; }
}
