/*
 * Los Archivos de Fifi - Sticky Audio Player Styles
 */

.sticky-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #141312;
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  border-top: 1px solid #2A2826;
}

.sticky-player-bar.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.player-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  max-width: 320px;
}

.player-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.player-titles {
  overflow: hidden;
}

.player-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.player-meta {
  font-size: 0.74rem;
  color: #8E8B82;
  font-family: var(--font-mono);
}

.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  max-width: 520px;
  gap: 5px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn-action {
  background: none;
  border: none;
  color: #A09E95;
  cursor: pointer;
  font-size: 0.84rem;
  font-family: var(--font-mono);
  padding: 4px 6px;
  transition: color 0.15s ease;
}

.player-btn-action:hover {
  color: #fff;
}

.player-btn-play {
  background: #FFFFFF;
  color: #141312;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

.player-btn-play:hover {
  transform: scale(1.06);
  background: #F4F3EE;
}

.progress-bar-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8E8B82;
}

.progress-track {
  flex-grow: 1;
  height: 6px;
  background: #2C2A28;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--accent-primary);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.player-extras {
  display: flex;
  align-items: center;
  gap: 12px;
}

.speed-btn {
  background: #22201E;
  border: 1px solid #363430;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.speed-btn:hover {
  background: #363430;
}

.download-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.player-btn-close {
  background: none;
  border: none;
  color: #666;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
}

.player-btn-close:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .player-inner {
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
  }
  .player-track-info {
    width: 100%;
    min-width: auto;
    max-width: none;
  }
  .player-controls {
    width: 100%;
    max-width: none;
  }
  .player-extras {
    align-self: flex-end;
    margin-top: -30px;
  }
}
