/* Persistent bottom player bar — adapted from the original
   /riff/player/index.php minimalist skin */

.minimalist-player-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  width: 100vw;
  min-height: 68px;
  background: linear-gradient(90deg, #cc0000 0%, #7a0000 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-sizing: border-box;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
  font-family: var(--font-body, Arial, sans-serif);
}

.left-controls { display: flex; align-items: center; gap: 16px; flex-shrink: 0; height: 68px; }
.center-content { flex: 1; display: flex; justify-content: center; align-items: center; min-width: 0; height: 68px; }
.right-controls { display: flex; align-items: center; gap: 20px; flex-shrink: 0; height: 68px; }

#play-btn {
  background: none; border: none; outline: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  height: 38px; width: 38px;
}
#play-btn svg { display: block; }

.song-title-outer { overflow: hidden; max-width: 100%; position: relative; height: 2em; display: flex; align-items: center; }
.marquee-inner { display: flex; align-items: center; height: 100%; position: relative; left: 0; will-change: transform; }
.song-title { font-size: 1.1rem; font-weight: bold; color: #fff; white-space: nowrap; display: inline-block; padding-right: 48px; }
.marquee-animate { animation: marquee-loop 12s linear infinite; }
@keyframes marquee-loop { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.progress-section { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 68px; }
.progress-bar-container { width: 180px; position: relative; height: 22px; }
.progress-bar { background: rgba(255,255,255,0.15); border: 1px solid #fff; border-radius: 4px; height: 22px; position: relative; overflow: hidden; width: 100%; }
.progress-fill { position: absolute; background: linear-gradient(#fff, #ccc); height: 100%; border-radius: 4px; transition: width .2s ease-in; width: 0%; }
.time-elapsed { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #000; font-size: 0.75rem; font-weight: bold; z-index: 10; pointer-events: none; line-height: 1; }

.volume-section { display: flex; align-items: center; justify-content: center; gap: 10px; height: 68px; }
#mute-btn { background: none; border: none; cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center; height: 24px; width: 24px; }
#mute-btn svg { display: block; }
.volume-slider-container { width: 80px; padding: 8px 0; display: flex; align-items: center; height: 24px; }
.volume-slider {
  width: 100%; height: 8px; border-radius: 4px; outline: none; -webkit-appearance: none; cursor: pointer;
  padding: 4px 0; margin: 0; border: none;
  background: linear-gradient(to right, #fff 0%, #fff var(--volume-percent, 80%), rgba(255,255,255,.25) var(--volume-percent, 80%), rgba(255,255,255,.25) 100%);
}
.volume-slider::-webkit-slider-track { -webkit-appearance: none; appearance: none; background: transparent; border: none; height: 8px; border-radius: 4px; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 0; height: 0; background: transparent; cursor: pointer; border: none; }
.volume-slider::-moz-range-track { height: 8px; border-radius: 4px; background: transparent; border: none; }
.volume-slider::-moz-range-thumb { width: 0; height: 0; background: transparent; cursor: pointer; border: none; box-shadow: none; }

.status-pill {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.12); padding: 8px 12px; border-radius: 20px;
  min-width: 80px; cursor: pointer; height: 32px; border: none; color: #fff;
  font-family: var(--font-mono, monospace); font-size: 0.8rem;
}
.status-pill:hover { background: rgba(255,255,255,0.22); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #00ff00; box-shadow: 0 0 6px rgba(0,255,0,.6); animation: pulse-dot 2s infinite; }
.status-dot.offline { background: #ff4444; box-shadow: 0 0 6px rgba(255,68,68,.6); animation: none; }
@keyframes pulse-dot { 0%,100% { opacity: 1 } 50% { opacity: .5 } }

/* body padding for the fixed bar is handled per-context:
   see assets/shell.css (shell) and assets/content.css (standalone content pages) */

@media (max-width: 768px) {
  .minimalist-player-bar { padding: 0 12px; min-height: 60px; }
  .song-title-outer { max-width: 40vw; }
  .progress-bar-container { width: 130px; }
}
@media (max-width: 560px) {
  .progress-section { display: none; }
  .song-title-outer { max-width: 48vw; }
  .status-pill span.label { display: none; }
}
