/* Radio.co Player — radio-co-player.css */

.radio-co-player {
  --rcp-color: #e05c2a;
  --rcp-bg: #1a1a2e;
  --rcp-surface: #16213e;
  --rcp-text: #ffffff;
  --rcp-muted: rgba(255,255,255,0.55);
  --rcp-radius: 16px;

  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--rcp-bg);
  border-radius: var(--rcp-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s;
}

.radio-co-player::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rcp-color) 0%, transparent 60%);
  opacity: .08;
  pointer-events: none;
}

/* Artwork */
.rcp-artwork-wrap {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.rcp-artwork {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* Equalizer animation */
.rcp-equalizer {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
}

.rcp-equalizer span {
  flex: 1;
  background: var(--rcp-color);
  border-radius: 2px;
  animation: rcp-bar 0.9s ease-in-out infinite alternate;
}
.rcp-equalizer span:nth-child(1){ animation-delay: 0s;    height: 60%; }
.rcp-equalizer span:nth-child(2){ animation-delay: .15s;  height: 80%; }
.rcp-equalizer span:nth-child(3){ animation-delay: .3s;   height: 45%; }
.rcp-equalizer span:nth-child(4){ animation-delay: .45s;  height: 70%; }

@keyframes rcp-bar {
  from { transform: scaleY(.3); }
  to   { transform: scaleY(1);  }
}

/* Info */
.rcp-info {
  flex: 1;
  min-width: 0;
}

.rcp-station-name {
  color: var(--rcp-text);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rcp-track-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.rcp-live-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--rcp-color);
  letter-spacing: .5px;
  white-space: nowrap;
}

.rcp-track-title {
  font-size: 12px;
  color: var(--rcp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls */
.rcp-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rcp-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rcp-color);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, opacity .15s;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.rcp-play-btn:hover  { transform: scale(1.08); }
.rcp-play-btn:active { transform: scale(.95);  }

.rcp-play-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  stroke: none;
}

/* Volume */
.rcp-volume-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rcp-vol-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--rcp-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.rcp-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

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

.rcp-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rcp-color);
  border: none;
  cursor: pointer;
}

/* Buffering pulse */
.radio-co-player.rcp-buffering .rcp-play-btn {
  animation: rcp-pulse .7s ease-in-out infinite alternate;
}

@keyframes rcp-pulse {
  from { opacity: .6; }
  to   { opacity: 1;  }
}

/* Responsive */
@media (max-width: 420px) {
  .radio-co-player { gap: 10px; padding: 12px 14px; }
  .rcp-artwork-wrap, .rcp-artwork { width: 46px; height: 46px; }
  .rcp-volume { width: 50px; }
}
