/* Preview-only music switcher (music-v3). Cream / grey / charcoal, to sit quietly on the hero. */
.hero-track-switch {
  position: absolute;
  /* Sit in a row with the Sound pill (bottom: 6.4rem), not under the chat launcher. */
  right: calc(var(--pad) + 6.55rem);
  bottom: 6.4rem;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.38rem;
  max-width: min(28rem, calc(100% - 2 * var(--pad)));
  padding: 0;
  background: none;
  border: none;
  color: #f6f5f2;
}
.hero-track-switch-kicker {
  margin: 0 0.55rem 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(246, 245, 242, 0.72);
}
.hero-track-switch-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(27, 27, 29, 0.42);
  border: 1px solid rgba(246, 245, 242, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-track-switch-btn {
  appearance: none;
  margin: 0;
  padding: 0.35rem 0.78rem;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(246, 245, 242, 0.86);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  cursor: pointer;
  white-space: nowrap;
}
.hero-track-switch-btn:hover,
.hero-track-switch-btn:focus-visible {
  color: #f6f5f2;
  background: rgba(246, 245, 242, 0.1);
}
.hero-track-switch-btn:focus-visible {
  outline: 2px solid #f6f5f2;
  outline-offset: 1px;
}
.hero-track-switch-btn[aria-pressed="true"] {
  background: #f6f5f2;
  color: #1b1b1d;
}
@media (max-width: 720px) {
  .hero-track-switch {
    /* Sound moves to the top; keep this clear of the chat launcher. */
    right: var(--pad);
    left: var(--pad);
    bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
    max-width: none;
    align-items: stretch;
  }
  .hero-track-switch-kicker {
    margin: 0 0 0 0.15rem;
  }
  .hero-track-switch-list {
    justify-content: flex-start;
    width: 100%;
    border-radius: 0.85rem;
  }
  .hero-track-switch-btn {
    font-size: 0.9rem;
    padding: 0.38rem 0.65rem;
  }
}

/* v8 mobile fix (26 Nov 2026): on phones the switcher sat at the bottom of the hero, on top of
   "Explore services" and beside the launcher, and fell below the fold when Safari's toolbar was shown.
   It now sits directly under the Sound pill at the top of the hero, clear of the headline and the launcher. */
@media (max-width: 720px) {
  .hero-track-switch {
    top: calc(var(--header-actual, 111px) + 0.85rem + 3.4rem);
    bottom: auto;
    left: auto;
    right: var(--pad);
    max-width: calc(100% - 2 * var(--pad));
    align-items: flex-end;
    gap: 0;
  }
  .hero-track-switch-kicker { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-track-switch-list { width: auto; justify-content: flex-end; border-radius: 1.1rem; gap: 0.1rem; padding: 0.18rem; }
  .hero-track-switch-btn { font-family: var(--sans); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.02em; padding: 0.3rem 0.62rem; min-height: 36px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
}
@media (max-width: 360px) {
  .hero-track-switch-btn { font-size: 0.7rem; padding: 0.28rem 0.5rem; }
}
