/* =========================================================
   ViolãoAcordes – Chord Finder (CSS LIMPO + HEADER CORRIGIDO)
   Mantém fretboard/zoom/scroll e deixa tabs bonitas + alinhadas
   ========================================================= */

.va-chordfinder{
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   HEADER (TÍTULO + OUVIR AO LADO / META ABAIXO)
   ========================= */
.va-topline{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 0 12px;
}

/* linha: título + botão */
.va-title-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

#vaChordTitle{
  text-align:center;
  font-size: 30px;
  line-height: 1.2;
  color: #1f1f1f;
  font-weight: 800;
  margin: 14px 0 0;     /* sem margem embaixo pra não empurrar o meta */
}

@media (max-width: 500px){
  #vaChordTitle{ font-size: 24px; }
}

/* botão ouvir */
.va-audio-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin: 0;            /* garante que não desce */
  color: #555;
  transition: all 0.2s ease;
}

.va-audio-btn:hover {
  color: #000;
  transform: translateY(-1px);
}

.va-audio-icon {
  width: 18px;
  height: 18px;
}

.va-audio-text {
  font-size: 10px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* meta abaixo do título */
#vaChordMeta{
  margin-top: 6px;
  min-height: 18px;
}

#vaChordMeta .va-meta-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
}

#vaChordMeta .va-meta-grid{
  display: grid;
  grid-template-columns: auto auto;   /* <- troca max-content */
  column-gap: 8px;                    /* controla o espaço real */
  row-gap: 2px;
  justify-content: center;
  text-align: center;
}
/* fonte -4px */
#vaChordMeta .va-meta-item{
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  color: #333;
}

#vaChordMeta .va-meta-item strong{
  font-weight: 800;
}

/* classe antiga (se existir no HTML), neutraliza pra não brigar */


/* =========================
   FRETBOARD (ZOOM NO MOBILE) — NÃO MEXER NO QUE FUNCIONA
   ========================= */
.va-fretboard-wrap{
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.va-fretboard-wrap::-webkit-scrollbar{ height: 0; }

.va-fretboard{ width: 100%; }

.va-fretboard svg{
  display:block;
  height:auto;
  max-width:none; /* NÃO deixa o tema encolher */
}

@media (min-width: 900px){
  .va-fretboard svg{ width: 100%; }
}

@media (max-width: 899px){
  .va-fretboard svg{
    width: 1000px !important; /* zoom real */
  }
}

/* =========================
   PICKERS (mesma largura do fretboard)
   ========================= */
.va-pickers{
  width: 100%;
  margin: 10px auto 0;
}

/* =========================
   VARIAÇÕES (1..10)
   ========================= */
.va-variants{
  display:flex;
  justify-content:center;
  gap: 8px;
  margin: 10px 0 12px;
}

.va-varbtn{
  min-width: 32px;
  height: 22px;
  padding: 0 10px;
  border-radius: 3px;
  border: 0;
  background: #c8c8c8;
  color: #222;
  cursor: pointer;
  font-size: 12px;
  line-height: 22px;
}
.va-varbtn.is-active{
  background:#3f3f3f;
  color:#fff;
}

/* =========================
   NOTES / QUALITIES (barra contínua + divisória 2px)
   ========================= */
.va-notes,
.va-qualities{
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  gap: 0; /* sem gap: mantém barra */
}

.va-notes{
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.va-qualities{
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 8px;
}

.va-btn{
  height: 30px;
  line-height: 30px;
  padding: 0;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  border-radius: 0;
  position: relative;
}

/* divisória 2px entre botões */
.va-notes .va-btn:not(:last-child)::after,
.va-qualities .va-btn:not(:last-child)::after{
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  transform: translateY(-50%);
  width: 2px;
  height: 70%;
  background: rgba(255,255,255,0.14);
}

/* cores */
.va-notes .va-btn{ background:#4f4f4f; color:#fff; }
.va-notes .va-btn.is-active{ background:#1fdd2c; color:#111; }

.va-qualities .va-btn{ background:#c7c2c8; color:#111; }
.va-qualities .va-btn.is-active{ background:#6f8fc9; color:#111; }

/* =========================
   RESPONSIVO (fonte)
   ========================= */
@media (max-width: 1100px){
  .va-btn{ font-size: 12px; }
}
@media (max-width: 800px){
  .va-btn{ font-size: 11px; }
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 600px){

  /* variações 1..10 em 2 linhas */
  .va-variants{
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 8px;
    padding: 8px 0 10px;
    margin: 8px 0 10px;
  }

  .va-varbtn{
    width: 100%;
    min-width: 0;
    height: 22px;
    line-height: 22px;
    padding: 0;
    border-radius: 3px;
    font-size: 12px;
  }

  /* notes/qualities em 2 linhas */
  .va-notes{ grid-template-columns: repeat(6, minmax(0,1fr)); }
  .va-qualities{ grid-template-columns: repeat(6, minmax(0,1fr)); }

  .va-btn{
    height: 30px;
    line-height: 30px;
    font-size: 11px;
  }

  /* remove divisória no final de cada linha (coluna 6) */
  .va-notes .va-btn:nth-child(6n)::after,
  .va-qualities .va-btn:nth-child(6n)::after{
    display:none;
  }
}
#vaChordMeta,
#vaChordMeta.va-chord-meta{
  display: block !important;
}
#vaChordMeta .va-meta-item{
  white-space: nowrap;
  line-height: 1;
  text-align: left;
}

#vaChordMeta .va-meta-grid{
  display: inline-grid;
  grid-template-columns: max-content max-content;
  column-gap: 16px;
  row-gap: 5px;
  align-items: center;
}
/* esconde o botão até o app dizer que tá pronto */
#vaAudioBtn { display: none; }
.va-ready #vaAudioBtn { display: flex; }
/* esconde o topo (título/botão/meta) enquanto carrega: evita o losango no F5 */
.va-chordfinder:not(.va-ready) .va-topline{
  visibility: hidden;
}

.va-chordfinder.va-ready .va-topline{
  visibility: visible;
}

/* garante que o ícone do seu botão aparece */
.va-audio-icon{ display:block; }