/* User-created Muse AI neon art. Labels and native button semantics stay in HTML. */
[data-image-button="true"] {
  --button-rest-filter: brightness(1);
  background-color: transparent !important;
  background-image: var(--button-image) !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #f4f2ff !important;
  text-shadow: 0 1px 3px #08091c;
  filter: var(--button-rest-filter);
  transition:
    filter 0.12s,
    transform 0.12s !important;
  isolation: isolate;
}
/* The source artwork has dark centers, including its primary buttons. */
[data-image-button="true"].text-button {
  padding-inline: 12px;
}
[data-image-button="true"].avatar-art {
  padding: 8px;
}
html[data-button-skin="muse-neon-v1"] .track.selected {
  background: transparent;
  border-color: transparent;
}
[data-image-button="true"]:is(
  .active,
  .selected,
  [aria-pressed="true"],
  [aria-selected="true"]
),
.avatar-card.is-preview > [data-button-kind="tile"] {
  background-image: var(--button-selected-image) !important;
  color: #dcfbff !important;
}
/* The supplied normal/selected frames are close in color. Give selection a
   filled center and a separate marker, including on small monochrome screens. */
[data-button-kind="tab"] {
  position: relative;
  --button-rest-filter: saturate(0.15) brightness(0.9);
}
[data-button-kind="tab"]:is(
  .active,
  .selected,
  [aria-pressed="true"],
  [aria-selected="true"]
) {
  --button-rest-filter: brightness(1);
  background-image:
    linear-gradient(135deg, #1adbca7a, #06657694), var(--button-selected-image) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px #a6fff2,
    0 0 10px #24e6dc55 !important;
}
[data-button-kind="tab"]:is(
    .active,
    .selected,
    [aria-pressed="true"],
    [aria-selected="true"]
  ):not(:disabled):not([aria-disabled="true"])::after {
  content: "";
  position: absolute;
  left: calc(50% - 6px);
  bottom: 3px;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: #dffff8;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  [data-image-button="true"]:enabled:hover,
  a[data-image-button="true"]:hover {
    filter: var(--button-rest-filter) brightness(1.12);
  }
}
[data-image-button="true"]:active:not(:disabled):not([aria-disabled="true"]) {
  background-image: var(--button-pressed-image) !important;
  transform: translateY(1px);
}
[data-image-button="true"]:is(:disabled, [aria-disabled="true"]) {
  background-image: var(--button-disabled-image) !important;
  color: #b4b6cc !important;
  filter: none;
  opacity: 0.7;
}
/* These two families have no disabled file in the supplied pack. */
[data-button-kind="row"]:disabled,
[data-button-kind="tile"]:disabled {
  filter: saturate(0.35);
}
[data-image-button="true"][data-button-kind="icon"],
[data-image-button="true"][data-button-kind="circle"] {
  border-radius: 0 !important;
}
/* Stretch the middle of song frames, preserving the rounded end caps. A full
   background stretch moved the visible edge over the cover and BPM on phones. */
#song-list .track-select[data-button-kind="row"] {
  --row-frame-image: var(--button-image);
  position: relative;
  background-image: none !important;
  border-radius: 12px;
  padding: 10px 28px;
  gap: 10px;
}
#song-list .track-select[data-button-kind="row"]::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border: 0 solid transparent;
  border-image-source: var(--row-frame-image);
  border-image-slice: 90 160 fill;
  border-image-width: 6px 24px;
  border-image-repeat: stretch;
  filter: saturate(0.3) brightness(0.9);
  pointer-events: none;
}
#song-list .track-select[aria-pressed="true"] {
  --row-frame-image: var(--button-selected-image);
  background-image: linear-gradient(100deg, #12695cbb, #123947bb) !important;
  box-shadow: inset 0 0 0 2px #a6fff2 !important;
}
#song-list .track-select[aria-pressed="true"]::before {
  filter: none;
}
#song-list .track-select[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  left: 12px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #cafff2;
  color: #073b32;
  font:
    700 10px/1 system-ui,
    sans-serif;
  text-shadow: none;
  pointer-events: none;
}
#song-list .track-select:active:not(:disabled) {
  --row-frame-image: var(--button-pressed-image);
}
#song-list .track-select > img,
#song-list .track-index,
#song-list .track-time,
#song-list .favorite {
  flex-shrink: 0;
}
#song-list .track-bpm {
  flex: 0 0 44px;
  width: 44px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#song-list .track-name {
  flex: 1 1 0;
}
#song-list .track-name small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (orientation: landscape) and (max-height: 600px) {
  #song-list .track-select[data-button-kind="row"] {
    padding-block: 6px;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-image-button="true"] {
    transition: none !important;
  }
}
