/* ==========================================================================
 * MILLENOVA GLOBAL PLAYER — STAGE DESKTOP LAYOUT CONTRACT
 *
 * OWNER:
 * This file owns desktop-only expanded Stage composition: Stage grid, center media and black-cinema presentation, Home feed placement, Signal sidebar and desktop queue/sidebar composition.
 *
 * MUST NOT OWN:
 * Do not define mobile Stage behavior, queue-row internals, provider logic or reaction internals. The dated Wilder Ruiz black-cinema override must be preserved. Scrollbar chrome remains owned by
 * Styles/scrollbars.css. JavaScript state/queue/provider semantics stay
 * outside CSS.
 *
 * CASCADE CONTRACT:
 * Segment 4 of 6 for this owner. Phase 11A mechanical split: loaded at manifest position 22, after
 * 21-stage-mobile-layout--part-3-of-3.css. Rule order is unchanged from the former monolith (baseline
 * df93472, lines 3814–3891). New corrections go into the canonical owning
 * rule; never append dated Phase/fix blocks.
 *
 * DEPENDENCIES:
 * Depends on Stage state classes (has-stage-*, is-mplayer-stage-open) and the Home page markup.
 * ========================================================================== */


/* ==========================================================================
 * Phase 8 refinement 4 — headerless Stage + browser Back collapse
 *
 * Stage no longer renders its own title/minimize chrome. The media surface
 * starts at the top edge of Stage. Browser/system history owns collapse:
 * Android Back, iOS Safari Back/edge-swipe, desktop browser Back.
 * ========================================================================== */

.floating-playlist:not(.is-minimized) .floating-playlist__header {
  display: none !important;
}

@media (max-width: 900px) and (pointer: coarse) {
  .floating-playlist:not(.is-minimized) .floating-playlist__full {
    --mn-stage-mobile-header-height: 0px;
    scroll-padding-top: 56.25vw;
  }

  .floating-playlist:not(.is-minimized) .floating-playlist__video {
    top: 0;
  }
}

/* ==========================================================================
 * Phase 8 refinement 15 — full-width black cinema Stage correction
 *
 * The media itself fills the entire center Stage column at 16:9. The left
 * Millenova rail and right Signal rail define the center width; there is no
 * decorative artwork glow or artificial coloured background around the video.
 * ========================================================================== */

@media (min-width: 901px) {
  body.is-mplayer-stage-open
    .floating-playlist:not(.is-minimized)
    .floating-playlist__stage-focus {
    padding-top: clamp(16px, 2.2vh, 28px);
/*    
Wilder Ruiz Override: background removed to match full-width black cinema Stage correction
Date: 2026-10-01 22.11
background: #000; */
  }

  body.is-mplayer-stage-open
    .floating-playlist:not(.is-minimized)
    .floating-playlist__video:not([data-playback-adapter="spotify"]):not([data-playback-adapter="soundcloud"]) {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
    justify-self: stretch;
    align-self: start;
    overflow: hidden;
    border: 0;
    border-radius: clamp(12px, .85vw, 18px);
    background: #000;
    box-shadow: none;
  }

  body.is-mplayer-stage-open
    .floating-playlist:not(.is-minimized)
    .floating-playlist__video:not([data-playback-adapter="spotify"]):not([data-playback-adapter="soundcloud"])
    .floating-playlist__video-mount,
  body.is-mplayer-stage-open
    .floating-playlist:not(.is-minimized)
    .floating-playlist__video:not([data-playback-adapter="spotify"]):not([data-playback-adapter="soundcloud"])
    .floating-playlist__poster {
    overflow: hidden;
    border-radius: inherit;
    background: #000;
  }

  body.is-mplayer-stage-open
    .floating-playlist:not(.is-minimized)
    .floating-playlist__video:not([data-playback-adapter="spotify"]):not([data-playback-adapter="soundcloud"])::after {
    border-radius: inherit;
  }

  /* Signal rail stays visually separate, but the center viewing canvas is
   * pure black. */
  body.is-mplayer-stage-open
    .floating-playlist:not(.is-minimized)
    .floating-playlist__stage-rail {
    background: #050608;
  }
}
