/* ══════════════════════════════════════════
   RELAY — Player bar
   ══════════════════════════════════════════ */

.player-bar {
  position: fixed;
  bottom: 0;
  left: var(--relay-sidebar-w);
  right: 0;
  height: var(--relay-player-h);
  background: rgba(13, 21, 32, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--relay-border);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  z-index: 50;
}

/* ── Station info ── */
.player-station {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.station-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--relay-radius-sm);
  background: var(--relay-surface-2);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.station-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station-logo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--relay-cyan);
  font-size: 1.1rem;
}

.station-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.station-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--relay-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-genre {
  font-size: 0.78rem;
  color: var(--relay-text-muted);
}

/* ── Live badge ── */
.live-badge {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--relay-cyan-dim);
  border: 1px solid var(--relay-border-active);
  color: var(--relay-cyan);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.live-badge.visible {
  display: flex;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--relay-cyan);
  border-radius: 50%;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%   { opacity: 1; }
  50%  { opacity: 0.3; }
  100% { opacity: 1; }
}

/* ── Controls ── */
.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--relay-surface);
  color: var(--relay-text-dim);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--relay-transition);
}

.ctrl-btn:hover:not(:disabled) {
  background: var(--relay-cyan-dim);
  color: var(--relay-cyan);
}

.ctrl-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ctrl-btn#playBtn {
  width: 46px;
  height: 46px;
  background: var(--relay-gradient);
  color: #fff;
  font-size: 1.1rem;
}

.ctrl-btn#playBtn:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: scale(1.05);
}

.ctrl-btn#playBtn:disabled {
  background: var(--relay-surface-2);
  filter: none;
  transform: none;
}

/* ── Volume ── */
.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 90px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--relay-cyan);
  border-radius: 50%;
}

/* ── Buffering animation ── */
.player-bar.buffering #playIcon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .player-bar {
    left: 0;
    gap: 10px;
    padding: 0 12px;
  }

  .volume-slider {
    width: 60px;
  }

  .live-badge {
    display: none !important;
  }
}
