/* Faixa de perfis oficiais: texto permanece visível se a fonte de ícones falhar. */
body:not(.instrumental-page):not(.rework-index) { --header-h: 120px; }
body:not(.instrumental-page):not(.rework-index) .site-header {
  grid-template-rows: 70px 50px;
  gap: 0 16px;
  padding-inline: clamp(18px, 2vw, 32px);
}
body:not(.instrumental-page) .desktop-nav ul { gap: 12px; }
body:not(.instrumental-page) .header-right { gap: 8px; }
.pacto-platforms--header {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  align-items: center;
  justify-self: center;
  max-width: 100%;
  gap: 6px;
}
.pacto-platforms--header a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 9px;
  color: #ead7ba;
  text-align: center;
  text-decoration: none;
}
.pacto-platforms--header i { font-size: 18px; line-height: 1; }
.pacto-platforms--header span {
  font: 600 .8125rem/1.2 Arial, sans-serif;
  white-space: nowrap;
}
.pacto-platforms--header a:hover { color: #fff1d7; }
.pacto-platforms--header a:focus-visible,
body .official-streaming-links--mobile a:focus-visible,
body .bandcamp-only-card .streaming-buttons a:focus-visible {
  outline: 2px solid #f2d49d;
  outline-offset: 2px;
}

/* Pseudo-elementos sobrevivem à troca de idioma feita com textContent. */
body .official-streaming-links--mobile a,
body .bandcamp-only-card .streaming-buttons a,
body .limited-banner .btn-group a[href*="themalefik.bandcamp.com"],
body .store-card-body a.btn[href*="themalefik.bandcamp.com"] {
  gap: .5em;
}
body .official-streaming-links--mobile a::before,
body .bandcamp-only-card .streaming-buttons a::before,
body .limited-banner .btn-group a[href*="themalefik.bandcamp.com"]::before,
body .store-card-body a.btn[href*="themalefik.bandcamp.com"]::before {
  display: inline-block;
  flex: 0 0 auto;
  font-family: "Font Awesome 6 Brands";
  font-size: 1.2em;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}
body .official-streaming-links--mobile a[href*="themalefik.bandcamp.com"]::before,
body .bandcamp-only-card .streaming-buttons a[href*="themalefik.bandcamp.com"]::before,
body .limited-banner .btn-group a[href*="themalefik.bandcamp.com"]::before,
body .store-card-body a.btn[href*="themalefik.bandcamp.com"]::before { content: "\f2d5"; }
body .official-streaming-links--mobile a[href*="open.spotify.com"]::before,
body .bandcamp-only-card .streaming-buttons a[href*="open.spotify.com"]::before { content: "\f1bc"; }
body .official-streaming-links--mobile a[href*="music.apple.com"]::before,
body .bandcamp-only-card .streaming-buttons a[href*="music.apple.com"]::before { content: "\f179"; }
body .official-streaming-links--mobile a[href*="music.amazon.com.br"]::before,
body .bandcamp-only-card .streaming-buttons a[href*="music.amazon.com.br"]::before { content: "\f270"; }
body .official-streaming-links--mobile a[href*="youtube.com"]::before { content: "\f167"; }
body .official-streaming-links--mobile a[href*="instagram.com"]::before { content: "\f16d"; }
body .official-streaming-links--mobile a[href*="facebook.com"]::before { content: "\f09a"; }

/* O menu existente também continua acessível, com todos os nomes por extenso. */
body .official-streaming-links--mobile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  width: min(100%, 440px);
  margin: .75rem auto;
}
body .official-streaming-links--mobile a {
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 6px;
  border: 1px solid rgba(202, 166, 105, .38);
  font-size: .875rem;
  text-align: center;
  white-space: normal;
}
body .official-streaming-links--mobile a:hover { background: rgba(128, 32, 24, .22); }

/* Evita colisões antes que o cabeçalho com navegação extensa fique apertado. */
@media (max-width: 1240px) {
  body:not(.instrumental-page):not(.rework-index) { --header-h: 68px; }
  body:not(.instrumental-page):not(.rework-index) .site-header {
    display: flex;
    justify-content: space-between;
    padding: 0 18px;
  }
  body:not(.instrumental-page) .site-header .desktop-nav,
  body:not(.instrumental-page) .header-icon,
  body:not(.instrumental-page) .header-right .lang-selector,
  body .pacto-platforms--header,
  body .official-streaming-menu--classic { display: none !important; }
  body:not(.instrumental-page) .hamburger {
    display: flex;
    width: 44px;
    height: 44px;
  }
  body:not(.instrumental-page) .mobile-brand {
    display: block;
    color: #d8bd88;
    font-size: .95rem;
    letter-spacing: .18em;
  }
  body:not(.instrumental-page) .mobile-header-icon {
    display: flex !important;
    flex: 0 0 40px;
    align-items: center;
  }
  body:not(.instrumental-page) .mobile-header-icon img {
    width: 40px;
    height: 40px;
    border: 1px solid var(--rw-line);
    border-radius: 50%;
    object-fit: cover;
  }
  body:not(.instrumental-page) .mobile-nav {
    display: flex;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  body:not(.instrumental-page) .mobile-nav-inner { flex: 0 0 auto; }
  body:not(.instrumental-page) .mobile-nav:not(.open) { pointer-events: none; }
  body:not(.instrumental-page) .mobile-nav.open { pointer-events: auto; }
}
@media (max-width: 360px) {
  body:not(.instrumental-page) .mobile-brand { font-size: .75rem; letter-spacing: .1em; }
}
@media (max-width: 300px) {
  body .official-streaming-links--mobile { grid-template-columns: minmax(0, 1fr); }
}

/* Identidade comum dos cabeçalhos: marca central, quatro links por lado. */
@media (min-width: 1241px) {
  body:not(.instrumental-page):not(.rework-index) { --header-h: 138px; }
  body:not(.instrumental-page):not(.rework-index) .site-header {
    grid-template-columns: minmax(0, 1fr) 224px minmax(0, 1fr);
    grid-template-rows: 86px 52px;
    gap: 0;
    height: var(--header-h);
    padding: 0 clamp(18px, 2vw, 32px);
    border-bottom: 1px solid rgba(190, 151, 91, .52);
    background: linear-gradient(to bottom, transparent 85px, rgba(190,151,91,.28) 85px, rgba(190,151,91,.28) 86px, transparent 86px), linear-gradient(110deg, #0d0a09, #191715 50%, #0d0909);
  }
  body:not(.instrumental-page) .site-header .desktop-nav {
    grid-column: 1 / -1; grid-row: 1; justify-self: stretch; min-width: 0;
  }
  body:not(.instrumental-page) .desktop-nav ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 224px repeat(4, minmax(0, 1fr));
    align-items: center; gap: 0; width: 100%; margin: 0; padding: 0; list-style: none;
  }
  body:not(.instrumental-page) .desktop-nav li:nth-child(5) { grid-column: 6; }
  body:not(.instrumental-page) .desktop-nav li:nth-child(6) { grid-column: 7; }
  body:not(.instrumental-page) .desktop-nav li:nth-child(7) { grid-column: 8; }
  body:not(.instrumental-page) .desktop-nav li:nth-child(8) { grid-column: 9; }
  body:not(.instrumental-page) .desktop-nav ul li a {
    display: flex; min-height: 44px; align-items: center; justify-content: center;
    padding: 4px; color: #e2cfaa; font: 600 .7rem/1.25 Montserrat, Arial, sans-serif;
    letter-spacing: .08em; text-align: center; text-transform: uppercase; white-space: normal;
  }
  body:not(.instrumental-page) .header-icon {
    grid-column: 2; grid-row: 1; justify-self: center; z-index: 1;
    display: flex; width: 210px; height: 80px; align-items: center; justify-content: center;
  }
  body:not(.instrumental-page) .header-icon img {
    display: block; width: 100%; height: auto; max-height: 80px;
    border: 0; border-radius: 0; object-fit: contain;
  }
  body:not(.instrumental-page) .header-right {
    grid-column: 3; grid-row: 2; justify-self: end; z-index: 2;
  }
  body:not(.instrumental-page) .header-right .lang-btn { min-width: 44px; min-height: 44px; justify-content: center; }
  body .pacto-platforms--header { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (max-width: 1240px) {
  body:not(.instrumental-page):not(.rework-index) .site-header {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: 68px; gap: 0; padding: 0 18px;
    border-bottom: 1px solid rgba(190, 151, 91, .52);
    background: linear-gradient(110deg, #0d0a09, #191715 50%, #0d0909);
  }
  body:not(.instrumental-page) .hamburger { grid-column: 1; grid-row: 1; }
  body:not(.instrumental-page) .mobile-brand {
    position: static; grid-column: 2; grid-row: 1; justify-self: center;
    display: flex; width: min(100%, 172px); height: 62px; align-items: center;
    justify-content: center; transform: none; pointer-events: auto;
  }
  body:not(.instrumental-page) .mobile-brand img { display: block; width: 100%; height: auto; max-height: 62px; object-fit: contain; }
  body:not(.instrumental-page) .header-right { grid-column: 3; grid-row: 1; justify-self: end; }
  body .mobile-nav-inner img.mobile-logo {
    width: min(190px, 70vw); height: auto; max-height: 68px; object-fit: contain;
    border: 0; border-radius: 0; margin-bottom: 12px;
  }
  body .mobile-nav ul li { margin: 0; }
  body .mobile-nav ul li a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 5px 12px; }
  body .mobile-nav-inner > .mobile-nav-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 5px 12px; }
  body .mobile-lang .lang-btn { min-width: 44px; min-height: 44px; justify-content: center; }
}
