*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #232323;
  color: #fbfbf4;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  overflow-y: auto;
  user-select: none;
}

#rfp-wrap {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3.5vh, 32px);
}

#rfp-pigeon-wrap {
  position: relative;
  width: 230px;
  height: 161px;
  margin-top: 15px;
  margin-bottom: -8px;
}

#rfp-pigeon {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: transparent;
  --progress-bar-color: transparent;
  --progress-mask: transparent;
}

#rfp-beacon {
  position: absolute;
  top: calc(18% + 10px);
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
}

.rfp-ping {
  position: absolute;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 3px solid rgba(251, 251, 244, 0.8);
  transform: translate(-50%, -50%) scale(0.05);
  opacity: 0;
  animation: rfp-beacon 2.4s ease-out infinite;
}
.rfp-ping:nth-child(2) { animation-delay: 0.8s; }
.rfp-ping:nth-child(3) { animation-delay: 1.6s; }

@keyframes rfp-beacon {
  0%   { transform: translate(-50%, -50%) scale(0.05); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 0; }
}

#rfp-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251,251,244,0.7);
}
#rfp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4571;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

#rfp-header {
  text-align: center;
}
#rfp-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fbfbf4;
}
#rfp-slogan {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: rgba(251,251,244,0.45);
  margin-top: 4px;
}

#rfp-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid rgba(251,251,244,0.3);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
#rfp-play:hover {
  border-color: #fbfbf4;
  background: rgba(251,251,244,0.06);
  transform: scale(1.04);
}
#rfp-play:active { transform: scale(0.97); }

#rfp-play::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #fbfbf4;
  margin-left: 4px;
}
body.playing #rfp-play::before {
  width: 20px;
  height: 22px;
  border: none;
  border-left: 6px solid #fbfbf4;
  border-right: 6px solid #fbfbf4;
  margin-left: 0;
}

#rfp-nowplaying {
  text-align: center;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
#rfp-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251,251,244,0.35);
}
#rfp-show {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(251,251,244,0.45);
  max-width: 280px;
}
#rfp-artist {
  font-size: 11px;
  color: rgba(251,251,244,0.5);
  max-width: 280px;
}
#rfp-track {
  font-size: 14px;
  color: #fbfbf4;
  line-height: 1.4;
  max-width: 280px;
}

#rfp-divider {
  width: 32px;
  height: 1px;
  background: rgba(251,251,244,0.12);
}

#rfp-footer {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251,251,244,0.25);
  text-align: center;
}
#rfp-footer a {
  color: rgba(251,251,244,0.3);
  text-decoration: none;
}
#rfp-footer a:hover { color: rgba(251,251,244,0.6); }
