/* ============================================================
   NOWEMBER BAND - player.css
   ============================================================ */

.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  height: var(--player-height);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: grid;
  grid-template-columns: 1fr auto 2fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

.player-track {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.player-thumb {
  width: 80px; height: 80px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0;
  background: var(--bg-overlay);
  display: flex; align-items: center; justify-content: center;
}
.player-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.player-info { min-width: 0; }
.player-title {
  font-size: 13px; font-weight: 700; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 180px;
}
.player-artist {
  font-size: 11px; color: var(--text-secondary); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 180px;
}

.player-controls {
  display: flex; align-items: center; gap: 8px;
}
.p-btn {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-secondary);
  transition: all var(--transition);
}
.p-btn:hover { color: var(--text-primary); }
.p-play {
  width: 38px; height: 38px;
  background: var(--accent); color: #000 !important;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(29,185,84,0.4);
}
.p-play:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.player-progress-wrap {
  display: flex; align-items: center; gap: 10px; flex: 1;
}
.p-time {
  font-family: var(--font-en); font-size: 11px;
  color: var(--text-secondary); flex-shrink: 0; min-width: 32px;
}
.player-progress {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--bg-overlay);
  cursor: pointer; position: relative;
  transition: height 0.1s;
}
.player-progress:hover { height: 6px; }
.progress-fill {
  height: 100%; border-radius: 2px;
  background: var(--text-secondary);
  transition: width 0.1s linear, background 0.2s;
  pointer-events: none;
}
.player-progress:hover .progress-fill { background: var(--accent); }
.progress-thumb {
  position: absolute; top: 50%; right: 0;
  transform: translate(50%, -50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-primary);
  opacity: 0; transition: opacity 0.15s;
  pointer-events: none;
}
.player-progress:hover .progress-thumb { opacity: 1; }

.player-extra {
  display: flex; align-items: center; gap: 8px;
}
.vol-slider {
  -webkit-appearance: none; appearance: none;
  width: 80px; height: 4px; border-radius: 2px;
  background: var(--bg-overlay); cursor: pointer;
  outline: none;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-primary); cursor: pointer;
}
.vol-slider::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-primary); cursor: pointer; border: none;
}

@media (max-width: 768px) {
  .player-bar {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding: 10px 16px 16px;
    gap: 10px;
  }
  .player-progress-wrap {
    grid-column: 1 / -1; order: -1;
  }
  .player-extra { display: none; }
  .p-time { display: none; }
}

@media (max-width: 480px) {
  .player-title, .player-artist { max-width: 120px; }
}

.now-playing-icon {
  display: flex; gap: 2px; align-items: flex-end; height: 14px;
}
.now-playing-icon span {
  display: block; width: 3px; background: var(--accent);
  border-radius: 1.5px;
}
.playing .now-playing-icon span {
  animation: np-bar 1s ease-in-out infinite;
}
.now-playing-icon span:nth-child(2) { animation-delay: 0.15s; }
.now-playing-icon span:nth-child(3) { animation-delay: 0.3s; }
@keyframes np-bar {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}
