/* ============================================
   MINI PLAYER
   ============================================ */

.mini-player {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
  left: 8px;
  right: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-accent);
  border-radius: var(--radius2);
  padding: 10px var(--gap);
  display: flex;
  align-items: center;
  gap: var(--gap);
  z-index: 50;
  animation: fadeInUp 0.25s ease;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
  cursor: pointer;
  user-select: none;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mini-player__thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--c-surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 18px;
}
.mini-player__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-player__info {
  flex: 1;
  min-width: 0;
}
.mini-player__title {
  font-size: 12px;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-player__artist {
  font-size: 10px;
  color: var(--c-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player__controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.mini-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-text-dim);
  transition: var(--transition);
  background: none;
  cursor: pointer;
}
.mini-btn:hover,
.mini-btn.play {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.mini-player__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-border);
  border-radius: 0 0 var(--radius2) var(--radius2);
  overflow: hidden;
}
.mini-player__progress-fill {
  height: 100%;
  background: var(--c-accent);
  border-radius: inherit;
  transition: width 0.3s linear;
}
