.rsp-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.rsp-player-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.rsp-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 40%;
  min-width: 0;
}

.rsp-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}

.rsp-title-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rsp-radio-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.rsp-live-pill {
  border: 1px solid rgba(255, 23, 68, 0.7);
  border-radius: 999px;
  padding: 2px 10px 3px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rsp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: rsp-pulse 1.2s infinite alternate;
}

@keyframes rsp-pulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.4); opacity: 1; }
}

.rsp-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
}

.rsp-btn {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.rsp-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.rsp-btn-play {
  font-size: 18px;
  padding: 6px 14px;
}

.rsp-btn-play.rsp-is-playing {
  background: rgba(0, 0, 0, 0.4);
}

.rsp-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 160px;
}

.rsp-volume-icon {
  font-size: 16px;
}

.rsp-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  cursor: pointer;
}

.rsp-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
}

.rsp-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
}

/* Toggle / collapse */
.rsp-toggle {
  position: absolute;
  right: 8px;
  top: -16px;
  width: 26px;
  height: 16px;
  border-radius: 12px 12px 0 0;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Collapsed state */
.rsp-player.rsp-collapsed {
  transform: translateY(calc(100% - 18px));
  transition: transform 0.18s ease-out;
}

.rsp-player:not(.rsp-collapsed) {
  transition: transform 0.18s ease-out;
}

/* Mobile layout */
@media (max-width: 768px) {
  .rsp-player-inner {
    flex-wrap: wrap;
    padding-bottom: 10px;
  }

  .rsp-left {
    flex: 1 1 100%;
  }

  .rsp-center {
    order: 3;
    width: 100%;
  }

  .rsp-right {
    order: 2;
    justify-content: flex-end;
  }
}
