/* =========================================================
   TRYHARD — ARTIST PAGES LANGUAGE SWITCH
   Shared by ZONE7 / SANTI KERN / AMCU
   Fixed-size slot so ES / ENG never shifts the header.
========================================================= */

.artist-language-switch {
  width: 58px;
  min-width: 58px;
  height: 32px;
  flex: 0 0 58px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  white-space: nowrap;
}

.artist-language-button {
  width: 20px;
  min-width: 20px;
  padding: 0;
  border: 0;
  background: transparent;

  color: rgba(255, 255, 255, 0.45);
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.artist-language-button.active {
  color: var(--red, #ef1726);
}

.artist-language-divider {
  width: 6px;
  min-width: 6px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* Desktop CTA gets a stable box in both languages. */
.header .join-btn {
  width: 190px;
  min-width: 190px;
  flex: 0 0 190px;
}

/* Do not allow translated nav labels to reflow into two lines. */
.header .nav-links a,
.header .join-btn,
.artist-language-switch {
  white-space: nowrap;
}

/* Responsive: selector stays visible beside the hamburger. */
@media (max-width: 1050px) {
  .artist-language-switch {
    margin-left: auto;
    margin-right: 10px;
  }

  .header .join-btn {
    width: 190px;
    min-width: 190px;
    flex-basis: 190px;
  }
}

@media (max-width: 700px) {
  .artist-language-switch {
    width: 58px;
    min-width: 58px;
    flex-basis: 58px;
    margin-right: 6px;
  }
}

@media (max-width: 390px) {
  .artist-language-switch {
    width: 54px;
    min-width: 54px;
    flex-basis: 54px;
    gap: 3px;
  }
}

/* Keep the desktop header inside the viewport in the narrow desktop band. */
@media (min-width: 1051px) and (max-width: 1220px) {
  .header .nav {
    gap: 14px;
  }

  .header .nav-links {
    gap: clamp(12px, 1.5vw, 22px);
    font-size: 11px;
  }

  .header .join-btn {
    width: 182px;
    min-width: 182px;
    flex-basis: 182px;
    font-size: 14px;
    gap: 12px;
    padding-left: 16px;
    padding-right: 14px;
  }
}
