
body {
  padding-bottom: 85px !important;
}

.rpe-bar-wrapper {
  --bar-bg: #111625;
  --accent-color: #ff2a5f;
  --accent-hover: #e0204f;
  --text-main: #ffffff;
  --text-sub: #94a3b8;

  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 85px;
  background: var(--bar-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.8);
  z-index: 9999999;
  display: flex;
  align-items: center;
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.rpe-bar-wrapper.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.rpe-bar-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Izquierda: Imagen y Título */
.rpe-left-section {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 260px;
}

.rpe-artwork-container {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 2px;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(255, 42, 95, 0.6);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rpe-artwork-spinner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpe-artwork-spinner.spinning {
  animation: rpe-rotate 12s linear infinite;
}

.rpe-artwork-img, .rpe-artwork-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.rpe-info-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rpe-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rpe-radio-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff !important;
  line-height: 1.2;
}

.rpe-radio-subtitle {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin: 2px 0 0 0;
}

.rpe-live-badge {
  background: rgba(255, 42, 95, 0.25);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rpe-live-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  animation: rpe-blink 1.5s infinite;
}

/* Centro: Botón Play MÁS GRANDE */
.rpe-center-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.rpe-play-btn {
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(255, 42, 95, 0.6);
  transition: transform 0.2s, background-color 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.rpe-play-btn:hover {
  transform: scale(1.08);
  background-color: var(--accent-hover);
}

.rpe-play-btn svg {
  width: 40px;
  height: 40px;
  fill: #ffffff;
  display: block;
}

.rpe-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  opacity: 0.3;
}

.rpe-equalizer.active { opacity: 1; }

.rpe-bar {
  width: 4px;
  background-color: var(--accent-color);
  height: 4px;
  border-radius: 2px;
}

.rpe-equalizer.active .rpe-bar {
  animation: rpe-bounce 1.2s infinite ease-in-out alternate;
}

.rpe-equalizer.active .rpe-bar:nth-child(1) { animation-delay: 0.1s; }
.rpe-equalizer.active .rpe-bar:nth-child(2) { animation-delay: 0.4s; }
.rpe-equalizer.active .rpe-bar:nth-child(3) { animation-delay: 0.2s; }
.rpe-equalizer.active .rpe-bar:nth-child(4) { animation-delay: 0.5s; }
.rpe-equalizer.active .rpe-bar:nth-child(5) { animation-delay: 0.3s; }

/* Derecha: Volumen */
.rpe-right-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rpe-volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rpe-mute-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.rpe-volume-container svg {
  width: 24px;
  height: 24px;
  fill: var(--text-sub);
  transition: fill 0.2s;
}

.rpe-mute-btn:hover svg {
  fill: #ffffff;
}

.rpe-volume-slider {
  width: 90px;
  accent-color: var(--accent-color);
  cursor: pointer;
}

.rpe-close-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.rpe-close-btn:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .rpe-equalizer, .rpe-volume-container {
    display: none;
  }
  .rpe-left-section {
    min-width: auto;
  }
}

@keyframes rpe-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes rpe-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rpe-bounce { 0% { height: 4px; } 100% { height: 24px; } }
