.floating-radio {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  min-width: 180px;
  max-width: 250px;
  height: auto;
  max-height: 150px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transform: translateZ(0);
  will-change: transform;
}

.floating-radio.minimized .radio-content {
  display: none;
}

.floating-radio.minimized {
  min-width: auto;
  /* Add a subtle glow when playing and minimized */
}

.floating-radio.minimized .radio-header {
  background: rgba(0, 0, 0, 0.9); /* Green tint when minimized and playing */
}

.floating-radio.minimized .radio-title {
  color: #ffffff; /* Green text when minimized and playing */
  margin-right: 25px;
}

.radio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px 8px 8px 8px;
  cursor: move;
  user-select: none;
}

.radio-title {
  flex: 1;
  font-weight: bold;
  text-align: left;
}

.radio-header-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.external-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 12px;
  cursor: pointer;
  padding: 8px 8px;
  border-radius: 3px;
  transition: all 0.2s;
  margin-right: 4px;
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.external-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffa500;
}

.minimize-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: all 0.2s;
}

.minimize-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.radio-content {
  padding: 12px;
}

.radio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.play-btn {
  background: #e4760f;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.play-btn:hover {
  background: #ffa500;
}

.play-btn.playing {
  background: #e4760f;
}

.status {
  font-size: 10px;
  color: #ccc;
  min-width: 30px;
  transition: color 0.2s;
}

.status:hover {
  color: #4CAF50;
  text-decoration: underline;
}

.status.playing {
  color: #4CAF50;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.status.loading {
  color: #ffa500;
  animation: pulse 1.5s ease-in-out infinite alternate;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-label {
  font-size: 12px;
}

#volume-slider {
  flex: 1;
  height: 4px;
  background: #333;
  outline: none;
  border-radius: 2px;
  appearance: none;
}

#volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #ffffff;
  cursor: pointer;
  border-radius: 50%;
}

#volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #e4760f;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .floating-radio {
    left: 10px;
    min-width: 160px;
  }
  
  .radio-header {
    padding: 10px 12px; /* Slightly larger touch target */
  }
  
  .minimize-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
    padding: 8px;
  }
  
  .external-btn {
    padding: 10px 10px;
    min-width: 32px;
    min-height: 32px;
    font-size: 14px;
  }
}
