/* Radio Player - Floating bottom-left component */
.radio-player {
  position: fixed;
  bottom: 16px;
  left: 16px;
  width: 320px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  color: white;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.radio-player[data-radio-player-minimized="true"] {
  transform: translateY(calc(100% - 42px));
}

.radio-player[data-radio-player-minimized="true"] .radio-player__content {
  display: none;
}

.radio-player__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.radio-player__branding {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.radio-player__minimize {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.radio-player__minimize:hover {
  background: rgba(255, 255, 255, 0.1);
}

.radio-player__content {
  padding: 12px 14px 14px;
}

.radio-player__track-info {
  font-size: 13px;
  margin-bottom: 4px;
  min-height: 18px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-player__status {
  min-height: 16px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
}

.radio-player__status:empty {
  display: none;
}

.radio-player__controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.radio-player__playback {
  display: flex;
  align-items: center;
  gap: 6px;
}

.radio-player__play-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  color: #667eea;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.radio-player__play-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.radio-player__play-button:active {
  transform: scale(0.95);
}

.radio-player__play-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.radio-player__skip-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.radio-player__skip-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.radio-player__skip-button:active {
  transform: scale(0.95);
}

.radio-player__volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.radio-player__volume-label {
  font-size: 15px;
  flex-shrink: 0;
  cursor: default;
  margin: 0;
}

.radio-player__volume-slider {
  flex: 1;
  min-width: 0;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.radio-player__volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.radio-player__volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .radio-player {
    width: min(280px, calc(100vw - 24px));
    bottom: 12px;
    left: 12px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  }

  .radio-player[data-radio-player-minimized="true"] {
    transform: translateY(calc(100% - 38px));
  }

  .radio-player__header {
    padding: 8px 10px;
  }

  .radio-player__branding {
    font-size: 13px;
  }

  .radio-player__content {
    padding: 10px 10px 12px;
  }

  .radio-player__track-info {
    font-size: 12px;
  }

  .radio-player__status {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .radio-player__controls {
    gap: 10px;
  }

  .radio-player__play-button {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .radio-player__skip-button {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .radio-player__volume-label {
    font-size: 13px;
  }

  .radio-player__volume-control {
    gap: 6px;
  }
}
