/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
.dark-mode-player {
  background-color: #1a1a1a !important;
  border-color: #333 !important;
}

.dark .player-control-highlight:active {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}

.dark #player-progress {
  box-shadow: 0 0 5px rgba(79, 209, 197, 0.5);
}

.dark #player-volume-level {
  box-shadow: 0 0 5px rgba(79, 209, 197, 0.5);
}

/* Increase touch targets for mobile */
@media (max-width: 767px) {
  #player-play-pause,
  #player-backward,
  #player-forward,
  #player-mini-play-pause,
  #player-expand-collapse {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #player-seek,
  #player-volume {
    height: 44px;
    opacity: 0.001; /* iOS needs some opacity */
  }

  .progress-container {
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
  }

  .progress-bar {
    position: absolute;
    height: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 0;
  }
}

.bookmarks-modal {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 999999 !important;
  backdrop-filter: blur(2px) !important;
}
.bookmarks-modal.hidden {
  display: none !important;
}
.bookmarks-modal-content {
  background: white !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  width: 100% !important;
  max-width: 28rem !important;
  margin: 0 1rem !important;
  position: relative !important;
  z-index: 1000000 !important;
}
.dark .bookmarks-modal-content {
  background: rgb(31, 41, 55) !important;
}
