/* v13.17 — continuous browse canvas and genuinely floating transport.
   Scoped to browse mode: full player and metadata layouts remain untouched. */
.app[data-mode="browse"] .library-view,
.app[data-mode="browse"] .library-shell,
.app[data-mode="browse"] .library-scroll {
  background: #050505 !important;
  background-image: none !important;
}
.app[data-mode="browse"] .library-shell {
  padding-bottom: 0 !important;
  min-height: 0;
}
.app[data-mode="browse"] .library-scroll {
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.app[data-mode="browse"] .library-scroll::-webkit-scrollbar { display:none; }
.app[data-mode="browse"] .track-list { padding-bottom: 8px !important; }
/* The transport is a single dark glass surface, never an opaque white shelf. */
.app[data-mode="browse"] .player-console {
  z-index: 40;
  border: 0 !important;
  outline: 0 !important;
  background: rgba(11,11,11,.91) !important;
  color: #f2f0eb;
  box-shadow: 0 8px 24px rgba(0,0,0,.22) !important;
  -webkit-backdrop-filter: blur(16px) saturate(105%);
  backdrop-filter: blur(16px) saturate(105%);
}
/* Pull tab uses the same surface as the transport, not a white sticker. */
.app[data-mode="browse"] .surface-handle,
.app[data-mode="browse"][data-gesture="true"] .surface-handle {
  background: rgba(11,11,11,.94) !important;
  color: #eeeae5 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
/* Explicitly avoid a separate white footer, including Safari safe-area. */
html, body { background: #050505; }
@media (max-width:720px) {
  .app[data-mode="browse"] .library-shell { padding-bottom:0 !important; }
  .app[data-mode="browse"] .player-console {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
  }
}

/* v13.33 — browser consistency. These are component-level corrections, not cascading redesign. */
html, body, #app, .library-view, .library-shell, .library-scroll,
.app[data-mode="browse"] .library-view, .app[data-mode="browse"] .library-shell,
.app[data-mode="browse"] .library-scroll { background-color:#050505 !important; }
html, body { max-width:100%; overflow-x:clip; color-scheme:dark; }
.app[data-mode="browse"] .library-scroll { scrollbar-width:none!important; overflow-x:clip!important; }
.app[data-mode="browse"] .library-scroll::-webkit-scrollbar,
.app[data-mode="browse"] .library-scroll::-webkit-scrollbar-track,
.app[data-mode="browse"] .library-scroll::-webkit-scrollbar-thumb {
  width:0!important; height:0!important; background:transparent!important; display:none!important;
}
/* No exposed white gutters at edge of catalog scroller in Chrome. */
.app[data-section="explore"] .library-view,
.app[data-section="saved"] .library-view { overflow-x:clip; }

/* Persistent failure-mode visual for browsers with no usable GPU renderer. */
body.gl-renderer-failed #stage:after {content:"GRIMLIFE";position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,255,255,.14);font:600 clamp(22px,4vw,52px)/1 sans-serif;letter-spacing:.24em;pointer-events:none;}
