#detail-object>.detail-motion-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:2;pointer-events:none}
#detail-object canvas[data-awaiting-artwork]{opacity:0}

.cover-autoplay-canvas{display:none;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.artifact.has-cover-autoplay .cover-autoplay-canvas{display:block}

/* These previews already use the camera and framing of the live model. */
.artifact.is-sculpture .artifact-face>.sculpture-preview{transform:none}
.artifact.is-sculpture:not(.has-live-model) .sculpture-canvas{visibility:hidden}

#detail .detail-cover>#detail-sequence{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;z-index:2;pointer-events:none}
#detail .detail-art #detail-tabs:has(#detail-sequence-toggle:not([hidden])){display:flex;gap:4px}

/* Match the footer controls to the dark Mixcloud widget. */
#universe-footer {
  --player-surface: #121212;
  --player-text: #e3e3e6;
  --player-muted: #a9a9af;
  --player-edge: rgb(244 244 245 / .30);
  --player-active-edge: rgb(244 244 245 / .50);
  --player-divider: rgb(244 244 245 / .15);
}

#universe-footer #music-slot {
  background: var(--player-surface);
}

#universe-footer :is(#music-transport button, #music-jump, #music-more) {
  color: var(--player-text);
  background: var(--player-surface);
  border-color: var(--player-edge);
  border-left-color: var(--player-divider);
  background-clip: padding-box;
}

#universe-footer #music-more {
  border-left-color: var(--player-edge);
}

#universe-footer #music-jump option {
  color: var(--player-text);
  background: var(--player-surface);
}

#universe-footer #music-transport button:disabled {
  color: #77777e;
}

#universe-footer :is(#music-transport button, #music-jump, #music-more):not(:disabled):hover,
#universe-footer #music-more[aria-expanded=true] {
  color: #fff;
  border-color: var(--player-active-edge);
}

#universe-footer .set-index .index-label {
  color: var(--player-muted);
}

#universe-footer #set-navigation button,
#universe-footer #set-navigation.scroll-rail.is-coasting button[aria-pressed=true]:not(.is-rail-target) {
  color: var(--player-muted);
  background-color: var(--player-surface);
  border-color: var(--player-divider);
}

#universe-footer #set-navigation button[aria-pressed=true],
#universe-footer #set-navigation.scroll-rail .is-rail-target,
html[data-scene] #universe-footer #set-navigation button:not(:disabled):hover {
  color: var(--player-text);
  background-color: var(--player-surface);
  border-color: var(--player-active-edge);
}

#universe-footer :is(#music-transport button, #music-jump, #music-more, #set-navigation button):focus-visible {
  outline-offset: -3px;
}

@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
  #universe-footer #music-transport {
    background: var(--player-surface);
    border-color: var(--player-edge);
    background-clip: padding-box;
  }
}

/* Each internal divider is drawn by the button to its right. */
#universe-footer #music-transport > button:not(:disabled):hover + button,
#universe-footer #music-jump:not(:disabled):hover + #music-jump-status + button {
  border-left-color: var(--player-active-edge);
}

#collection #close-collection {
  top: 15px;
}

@media (max-width: 599px), (max-height: 499px) and (max-width: 999px) {
  #collection #close-collection {
    /* Center the 34px button on the 27.3px heading line. */
    top: calc(max(16px, env(safe-area-inset-top, 0px)) - 3.35px);
  }
}

@supports (top: anchor(center)) {
  #collection-title {
    anchor-name: --collection-heading;
  }

  #collection #close-collection {
    position-anchor: --collection-heading;
    top: anchor(center);
    translate: 0 -50%;
  }
}
