body .page-shell .category-button[data-fixed-category="music"]::before {
  content: "♫";
  font-family: inherit;
  font-size: 1em;
  font-weight: 900;
  line-height: 1;
}

/* Added only after a valid live-site config is available: three equal primary buttons
   stay on the first row and four equal secondary buttons stay below. */
body.ng-hot-music-enabled .page-shell .category-buttons {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

body.ng-hot-music-enabled .page-shell .category-button[data-fixed-category="trial"],
body.ng-hot-music-enabled .page-shell .category-button[data-fixed-category="music"],
body.ng-hot-music-enabled .page-shell .category-button[data-fixed-category="lottery"] {
  grid-column: span 4;
}

body.ng-hot-music-enabled .page-shell .category-button[data-fixed-category="recommendation"],
body.ng-hot-music-enabled .page-shell .category-button[data-fixed-category="movies"],
body.ng-hot-music-enabled .page-shell .category-button[data-fixed-category="adult"],
body.ng-hot-music-enabled .page-shell .category-button[data-fixed-category="tools"] {
  grid-column: span 3;
}

.page-shell .ng-music-inline-panel[hidden] { display: none !important; }

body.hot-music-inline-mode #cardsScroll,
body.hot-music-inline-mode .lottery-inline-panel,
body.hot-music-inline-mode .collector-catalog-panel,
body.hot-music-inline-mode .common-tools-panel,
body.hot-music-inline-mode .page-shell > .site-footer { display: none !important; }

.page-shell .ng-music-inline-panel.ng-music-page {
  width: 100%;
  max-width: 1200px;
  min-height: 0;
  margin: 0 auto;
  padding: 0 20px calc(40px + env(safe-area-inset-bottom));
  overflow: visible;
}

.page-shell .ng-music-inline-panel .ng-music-shell { padding: 0 0 26px; }
.page-shell .ng-music-inline-panel .ng-music-page-heading { margin-top: 0; }
.page-shell .ng-music-inline-panel .ng-music-content { width: 100%; }

/* The shared music runtime is independent from every inline content panel.
   Only this lightweight launcher is present before the player is requested. */
#hot-music-global-player.ng-music-global-player {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

#hot-music-global-player .ng-music-float-toggle {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: calc(204px + env(safe-area-inset-bottom));
  z-index: 84;
  display: grid;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, #fff 68%, var(--ng-accent-2, #20c4c9));
  border-radius: var(--ng-float-radius, 50%);
  color: var(--ng-on-accent, #fff);
  background-color: var(--ng-accent, #2f6bff);
  background-image: var(--ng-float-decoration, none), var(--ng-button, linear-gradient(135deg, var(--ng-accent, #2f6bff), var(--ng-accent-2, #20c4c9)));
  background-position: center;
  background-size: 100% 100%;
  box-shadow: var(--ng-float-shadow, 0 12px 30px color-mix(in srgb, var(--ng-accent, #2f6bff) 34%, transparent)), inset 0 1px rgba(255,255,255,.28);
  transition: filter .18s ease, transform .18s ease, opacity .18s ease;
}

#hot-music-global-player .ng-music-float-toggle:hover { filter: brightness(1.07); transform: translateY(-2px); }
#hot-music-global-player .ng-music-float-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--ng-accent, #2f6bff) 32%, transparent); outline-offset: 3px; }
#hot-music-global-player .ng-music-float-toggle[aria-busy="true"] { cursor: progress; opacity: .72; }
#hot-music-global-player .ng-music-float-icon { display: flex; height: 25px; align-items: center; justify-content: center; gap: 3px; }
#hot-music-global-player .ng-music-float-icon i { display: block; width: 3px; height: 10px; border-radius: 99px; background: currentColor; }
#hot-music-global-player .ng-music-float-icon i:nth-child(2) { height: 20px; }
#hot-music-global-player .ng-music-float-icon i:nth-child(3) { height: 15px; }
#hot-music-global-player .ng-music-float-icon i:nth-child(4) { height: 7px; }

@media (max-width: 420px) {
  body.ng-hot-music-enabled .page-shell .category-button {
    padding-inline: 3px;
    font-size: clamp(10px, 2.85vw, 12px);
  }
  body.ng-hot-music-enabled .page-shell .category-button::before {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
}

@media (max-width: 880px) {
  .page-shell .ng-music-inline-panel.ng-music-page {
    padding: 0 10px calc(40px + env(safe-area-inset-bottom));
  }
  .page-shell .ng-music-inline-panel .ng-music-content { width: 100%; }
}

@media (max-width: 768px) {
  body.ng-floating-hub-enabled #hot-music-global-player .ng-music-float-toggle {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(.84);
  }
  body.ng-floating-hub-enabled.ng-action-hub-open #hot-music-global-player .ng-music-float-toggle {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(254px + env(safe-area-inset-bottom));
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hot-music-global-player .ng-music-float-toggle { transition: none; }
}
