/* ==========================================================================
   ROFSS — Webamp player (js/player.js), copied from alyst-home's style.css.
   ========================================================================== */

/* Where it sits: right next to the 1022px page table (centred by
   align="center"), level with its top. */
.player {
  position: absolute;
  top: 8px;
  left: calc(50% + 511px + 16px);
  z-index: 5;
}
.player[hidden] { display: none; }

#winamp { width: 275px; height: 348px; position: relative; }
/* Webamp centres itself in this box; on big screens it is the 1x size in the slot's corner */
#winamp-anchor { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* Webamp, locked down (player.js lock()): the windows can be dragged as in
   Winamp, and only play, pause, stop, volume, balance, close, the EQ button
   and the equalizer's own controls respond. Everything else (prev, next,
   eject, shuffle, repeat, seek, the playlist, the other title-bar buttons,
   the O/A/I/D/V bar, the logo) does nothing: a click on it lands on the
   window frame behind, which only starts a drag. */
#webamp #main-window *,
#webamp #playlist-window *,
#webamp #equalizer-window * { pointer-events: none !important; }
/* the frames and title bars take the mouse, so Webamp can drag the windows */
#webamp :is(#main-window, #playlist-window, #equalizer-window),
#webamp #main-window .draggable, #webamp #playlist-window .draggable, #webamp #equalizer-window .draggable { pointer-events: auto !important; }
#webamp #main-window :is(#play, #pause, #stop, #close, #volume, #volume *, #balance, #equalizer-button),
#webamp #equalizer-window :is(#on, #auto, #presets, #preamp, #preamp *, [id^="band-"], [id^="band-"] *) { pointer-events: auto !important; }
#webamp #presets-context, #webamp #presets-context * { pointer-events: auto !important; }
.player-fallback { font-family: 'Courier New', monospace; font-size: 12px; color: #d1dcce; padding: 0 24px; }
