:root {
  --bg: #120904;
  --max-art-width: 1916px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: #f5e7cf;
  overflow-x: hidden;
}

.site-shell {
  width: 100%;
  background: var(--bg);
}

/* IMPORTANTE PARA A NITIDEZ:
   - não usar transform: scale()
   - não forçar 100vh
   - não ampliar acima dos 1916px originais
   - manter a proporção real do arquivo
*/
.art-section {
  position: relative;
  width: min(100%, var(--max-art-width));
  margin-inline: auto;
  line-height: 0;
  background: #120904;
  aspect-ratio: 1916 / 821;
}

.art-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: var(--max-art-width);
  margin: 0 auto;
  object-fit: contain;
}

/* A faixa não precisa mostrar os 821px inteiros da arte.
   Ela funciona como um divisor curto e elegante. */
.transition {
  width: 100%;
  height: clamp(105px, 10vw, 175px);
  background-image: url('assets/transicao.png');
  background-size: cover;
  background-position: center 47%;
  background-repeat: no-repeat;
}

/* Hotspots invisíveis sobre botões/áreas ainda desenhadas na arte
   (vídeos "ao vivo" e WhatsApp do Contato). Coordenadas via data-box,
   calculadas em pixels reais por site.js — ver positionOverlays(). */
.video-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-slot,
.whatsapp-hotspot {
  position: absolute;
  display: block;
  pointer-events: auto;
  text-decoration: none;
  border-radius: 999px;
}

.video-slot {
  border-radius: 0;
  object-fit: cover;
  background: #000;
}

.art-section.hero {
  aspect-ratio: 1912 / 823;
}

/* MENU DA HERO: áreas invisíveis por cima dos botões já desenhados na arte */
.hero-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  display: block;
  pointer-events: auto;
  text-decoration: none;
  border-radius: 999px;
}

/* Mantém o texto acessível sem duplicá-lo visualmente */
.hotspot span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   OUÇA NOSSAS MÚSICAS — seção reconstruída em código (não mais
   sobreposta em cima de uma imagem fixa), mesmo layout 2x2 e
   mesma estética rústica couro/madeira/dourado do resto do site.
   ============================================================ */
.music-section {
  width: min(100%, var(--max-art-width));
  margin-inline: auto;
  padding: 60px 24px 70px;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(10,6,2,0.55), rgba(10,6,2,0.75)),
    url('assets/wood-texture.png');
  background-size: auto, 500px;
  background-repeat: no-repeat, repeat;
  background-position: center, center;
}

.music-heading {
  text-align: center;
  margin-bottom: 44px;
}

.music-heading h2 {
  margin: 0 0 10px;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 56px);
  letter-spacing: 1px;
  color: #e8c87a;
  text-shadow: 0 2px 0 #3a2408, 0 4px 10px rgba(0,0,0,0.6);
}

.music-subtitle {
  margin: 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 20px);
  color: #cbb37e;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .music-grid { grid-template-columns: 1fr; }
}

.album-card {
  display: flex;
  gap: 18px;
  background: linear-gradient(160deg, #f3e7c9, #e3d1a5);
  border: 3px solid #b8873a;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

/* Sanfona da lista de faixas: fechada por padrão, abre com transição suave
   quando o botão "Ouvir músicas" é clicado (altura calculada via JS). */
.track-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.track-list {
  list-style: none;
  margin: 10px 0 6px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
}

.track-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 4px;
  padding: 5px 8px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  color: #3a2c17;
  cursor: pointer;
}

.track-item:hover {
  background: rgba(0,0,0,0.08);
}

.track-item[aria-current="true"] {
  background: #b8873a;
  color: #fff8e6;
  font-weight: 600;
}

.album-cover {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.album-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.album-info h3 {
  margin: 0 0 4px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(17px, 1.8vw, 22px);
  color: #201406;
}

.album-artist {
  margin: 0 0 12px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  line-height: 1.35;
  color: #4a3a22;
}

.album-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.listen-btn,
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  padding: 8px 16px;
  border: 2px solid #8a5a1e;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.listen-btn {
  background: #2f6b45;
  color: #f3e7c9;
}
.listen-btn:hover { background: #38804f; transform: translateY(-1px); }
.listen-btn[aria-expanded="true"] { background: #1f4d31; }

.download-btn {
  background: #3c2a15;
  color: #f0d9a0;
}
.download-btn:hover { background: #4c3620; transform: translateY(-1px); }

.album-audio {
  margin-top: 12px;
  width: 100%;
  max-width: 320px;
}

.music-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 56px;
}

.music-footer-logo {
  width: min(160px, 30%);
  height: auto;
}

.music-footer-lines {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.music-footer-line {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a2895f;
}

/* Texto real de contato, cobrindo o texto de exemplo da arte */
.contact-patches { position: absolute; inset: 0; pointer-events: none; }

.patch {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #140c07;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: Georgia, 'Times New Roman', serif;
  color: #f3e6c8;
  line-height: 1.25;
  font-size: clamp(9px, 1.15vw, 17px);
  white-space: nowrap;
}

.patch-label { opacity: 0.92; }
.patch-value { font-weight: 600; }

/* posição via data-box (site.js) */

/* Destaque apenas para quem navega por teclado */
.hotspot:focus-visible,
.video-slot:focus-visible,
.listen-btn:focus-visible,
.download-btn:focus-visible,
.whatsapp-hotspot:focus-visible {
  outline: 3px solid #f0c46a;
  outline-offset: -4px;
}

/* Tablets e celulares: preservar a imagem inteira em vez de recortar */
@media (max-width: 900px) {
  .transition {
    height: clamp(80px, 18vw, 130px);
    background-size: auto 220%;
    background-position: center 47%;
  }
}

@media (max-width: 600px) {
  .transition {
    height: 82px;
  }
}

/* Em monitores maiores que a arte, NÃO ampliar o PNG.
   O fundo preenche as sobras, evitando borrar texto e rostos. */
@media (min-width: 1917px) {
  .art-section {
    width: var(--max-art-width);
  }
}

/* ============================================================
   OTIMIZAÇÃO MOBILE — as seções "Ao Vivo" e "Contato" ainda
   dependem de elementos sobrepostos em cima de uma arte de largura
   fixa (1916px); em telas estreitas essas caixinhas ficavam
   minúsculas, com texto cortado ou torto. Abaixo de 640px, elas
   saem do modo "sobreposição" e passam a um layout normal, em
   coluna, abaixo da arte — sem depender de pixels da imagem.
   ============================================================ */
@media (max-width: 640px) {
  /* Vídeos "Ao Vivo": de 4 miniaturas coladas na arte para uma
     lista vertical de players em tamanho de tela cheia */
  #ao-vivo.art-section {
    aspect-ratio: auto;
    padding-bottom: 12px;
  }

  #ao-vivo .video-hotspots {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  #ao-vivo .video-slot {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  /* Contato: WhatsApp, e-mail e Instagram viram uma lista legível
     em vez de caixinhas de texto minúsculas sobre a arte */
  #contato.art-section {
    aspect-ratio: auto;
    padding-bottom: 16px;
  }

  #contato .whatsapp-hotspot {
    position: static !important;
    display: block;
    width: calc(100% - 24px) !important;
    height: 52px !important;
    margin: 12px auto 0;
  }

  #contato .contact-patches {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  #contato .patch {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    white-space: normal;
    font-size: 15px;
    padding: 10px 14px;
  }

  /* Discografia: capa acima do texto em telas bem estreitas */
  .album-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .album-cover {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .album-actions {
    justify-content: center;
  }

  .music-footer-lines {
    flex-direction: column;
    gap: 6px;
  }
}
