/* ═══ Radio La Caletta — On-Demand Player ═══ */

.od-player {
  display: none; position: fixed; bottom: calc(48px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0;
  z-index: 15; background: rgba(18,18,18,0.97);
  border-top: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 0; height: 64px;
  animation: fadeInUp 300ms ease both;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  transition: left 500ms;
}
/* Segue la sidebar su desktop */
@media (min-width: 769px) {
  #main:not(.full) .od-player { left: 250px; }
}
.od-player.show { display: flex; align-items: center; }
.od-player-inner {
  display: flex; align-items: center; gap: 12px;
  width: 100%; height: 100%; padding: 0 12px;
}
.od-player-art {
  width: 46px; height: 46px; border-radius: 6px;
  background: #333; flex-shrink: 0; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.od-player-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-player-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.od-player-title {
  font-size: 13px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.od-player-artist {
  font-size: 11px; color: rgba(255,255,255,0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.od-player-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(145,70,255,0.8);
}
.od-player-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
@media (max-width: 600px) {
  .od-player-controls { gap: 4px; }
  .od-player-btn { width: 32px; height: 32px; font-size: 14px; }
  .od-player-btn.od-repeat-btn { width: 28px; height: 28px; font-size: 11px; }
  .od-player-btn.od-close-btn { width: 28px; height: 28px; }
}
.od-player-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none;
  color: #fff; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms;
}
.od-player-btn:hover { background: rgba(255,255,255,0.2); transform: none !important; }
.od-player-btn.od-play-btn { background: rgba(145,70,255,0.3); font-size: 18px; }
.od-player-btn.od-play-btn:hover { background: rgba(145,70,255,0.5); }
.od-player-btn.od-close-btn { font-size: 14px; }
.od-player-progress {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.08);
}
.od-player-progress-fill {
  height: 100%; background: rgba(145,70,255,0.7);
  width: 0%; transition: width 0.3s linear;
}
body.od-active .tab-content { padding-bottom: 150px; }
body.od-active .tab-panel { bottom: 150px; }
body.od-active .tab-bar { padding-bottom: calc(env(safe-area-inset-bottom, 0px)); }
body.od-active #pwa-install-banner { bottom: calc(116px + env(safe-area-inset-bottom, 0px)); }

/* ── Prev/Next buttons ── */
.od-player-btn.od-prev-btn,
.od-player-btn.od-next-btn {
  width: 32px; height: 32px; font-size: 14px;
  background: rgba(255,255,255,0.06);
}
.od-player-btn.od-prev-btn:hover,
.od-player-btn.od-next-btn:hover { background: rgba(255,255,255,0.15); }
.od-player-btn.od-prev-btn:disabled,
.od-player-btn.od-next-btn:disabled { opacity: 0.25; cursor: default; }
.od-player-btn.od-repeat-btn {
  width: 32px; height: 32px; font-size: 12px;
  background: rgba(255,255,255,0.06);
  position: relative;
}
.od-player-btn.od-repeat-btn:hover { background: rgba(255,255,255,0.15); }
.od-player-btn.od-repeat-btn.active { color: #c8aaff; background: rgba(145,70,255,0.25); }
.od-player-btn.od-repeat-btn.repeat-one::after {
  content: '1'; position: absolute; bottom: 2px; right: 4px;
  font-size: 8px; font-weight: 800; line-height: 1; color: #c8aaff;
}
.od-player-queue-info {
  font-size: 9px; color: rgba(145,70,255,0.7); font-weight: 600;
  letter-spacing: 0.5px;
}
