/* One persistent header and music player for every menu route. */
body.is-library-view > .shell > :not(.hero) { display: none !important; }
body.is-training:not(.is-playing) > .shell > :not(.hero):not(#entrenamiento) { display: none !important; }
body.is-library-view > .shell > .hero { z-index: 1001; }
body.is-library-view .library-surface { inset-block-start: var(--menu-header-offset, 70px); min-height: 0; }
body:is(.social-app-pending, .social-authenticated):not(.is-playing) > .shell > .hero { padding-inline-end: 60px; }

@media (max-width: 950px) {
  body:is(.social-app-pending, .social-authenticated):not(.is-playing) > .shell > .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding-inline-end: 0;
    min-height: 106px;
  }
  body:is(.social-app-pending, .social-authenticated):not(.is-playing) .hero > div { padding: 16px 60px 12px 0; }
  body:is(.social-app-pending, .social-authenticated):not(.is-playing) .library-entry {
    width: 100%;
    margin: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 12px;
  }
  body:is(.social-app-pending, .social-authenticated):not(.is-playing) .library-entry__link {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 4px;
    font-size: .76rem;
    white-space: nowrap;
  }
}
@media (max-width: 520px) {
  body:is(.social-app-pending, .social-authenticated):not(.is-playing) .library-entry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 8px;
    overflow: visible;
  }
  body:is(.social-app-pending, .social-authenticated):not(.is-playing) .library-entry__link {
    justify-content: center;
    padding: 0;
    font-size: .72rem;
  }
}
