/* Proposed additive patch. Review on staging; not deployed by this agent. */

/* The saved Music Hub HTML contains the invalid selector `. ncm-btn-primary`. */
body.page-id-223179 #page-container .ncm-btn-primary {
  background: #c72a25;
  color: #fff !important;
}

/* Retain the current button hierarchy and make dimensions predictable. */
body #page-container :is(.mbr-btn, .ncb-btn, .ncm-btn, .nc-ss-btn, .ncsh-btn) {
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.35;
  text-wrap: balance;
}

/* A dark inner ring stays visible on white cards; gold works on dark panels. */
body :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--nc-gold, #efbf71) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px var(--nc-ink, #080e23) !important;
}

/* Restrict hover motion to devices with a real hover pointer. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  body #page-container :is(.mbr-btn, .ncb-btn, .ncm-btn, .nc-ss-btn, .ncsh-btn):not(.nc-coming-soon):not([aria-disabled="true"]):not(:disabled) {
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }
  body #page-container :is(.mbr-btn, .ncb-btn, .ncm-btn, .nc-ss-btn, .ncsh-btn):not(.nc-coming-soon):not([aria-disabled="true"]):not(:disabled):hover {
    box-shadow: 0 4px 12px rgba(8, 14, 35, .18);
  }
}

@media (prefers-reduced-motion: reduce) {
  body #page-container :is(.mbr-btn, .ncb-btn, .ncm-btn, .nc-ss-btn, .ncsh-btn) {
    animation: none !important;
    transition: none !important;
  }
  body #page-container :is(.mbr-btn, .ncb-btn, .ncm-btn, .nc-ss-btn, .ncsh-btn):active {
    transform: none !important;
  }
}
