/* ============================================================================
   COVER PREVIEW
   Styles for the "View cover" button in the WRLD Player's info panel.
   The preview itself reuses the site's existing #cover-lightbox, so none of its
   styling is duplicated here.
   ========================================================================== */

.cp-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px auto 0;
  padding: 7px 13px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #cbd5e1;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.cp-open:hover {
  background: rgba(56, 189, 248, .14);
  border-color: rgba(56, 189, 248, .38);
  color: #e0f2fe;
}

.cp-open:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.cp-open i { font-size: .95em; }

/* The View cover button used to be hidden on phones. The stated reason was that
   its label needs more width than the narrow player column has, and that it was
   wrapping onto two lines beside the artwork. That no longer applies: the button
   lives inside the info panel, which is a centred modal, in a flex column
   (.info-panel-cover-row) that centres its children, so the label fits at every
   width. Leaving the hide in place would have hidden the feature on phones for
   no remaining reason. */
/* The lightbox must sit ABOVE the info panel.
 *
 * #cover-lightbox and .info-panel were both z-index:10000 in player-settings.css.
 * Equal values stack in document order, and #cover-lightbox is written before
 * #info-panel, so the panel painted over the lightbox and the preview appeared to
 * open behind it. That never showed before this button moved into the panel: it
 * used to be opened from the player, where no panel was on screen to compete.
 *
 * 10003 puts it above the other overlay tier (10001 global search, 10002 gallery,
 * bans, playlists, mobile player) and still well below the ban screen (20000),
 * script.js's layers (20500-21000), player-settings' 99990 and security.js's
 * 2147483647 - this is transient UI, and nothing should outrank those.
 *
 * cover-preview.css is loaded after player-settings.css, so this same-specificity
 * id rule wins without !important. */
#cover-lightbox {
  z-index: 10003;
}

.cp-open {
  margin-top: 12px;
}
