/**
 * Busoga One FM - Modern Radio Player CSS
 * A sleek, modern and user-friendly radio player design
 */

/* Player Container */
.radio-player {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px; 
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  z-index: 999;
  overflow: hidden;
  transform: translateY(110%);
  transition: transform 0.3s ease;
  visibility: hidden;
  opacity: 0;
}

.radio-player.active {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

/* Mini Player Styles - Completely removed */
.radio-player.mini {
  display: none;
}

/* Player Header */
.player-header {
  position: relative;
  padding: 12px 15px;
  background-color: #E31E24;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.player-header h4 i {
  margin-right: 8px;
}

.player-actions {
  display: flex;
}

.player-action {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  padding: 0;
  margin-left: 10px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.player-action:hover {
  opacity: 1;
}

/* Live indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(227, 30, 36, 0.85);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  z-index: 1;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  margin-right: 5px;
  animation: pulse 1.5s infinite;
}

/* Player Body */
.player-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  max-height: 400px;
  overflow-y: auto;
}

/* Now Playing */
.now-playing {
  display: flex;
  margin-bottom: 15px;
  width: 100%;
}

.station-logo {
  position: relative;
  width: 60px;
  height: 60px;
  background-color: #f1f1f1;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.station-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-info {
  margin-left: 12px;
  flex-grow: 1;
  overflow: hidden;
}

.track-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist, .track-time {
  font-size: 13px;
  color: #777;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  width: 100%;
}

.ctrl-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.ctrl-button.play-pause {
  width: 45px;
  height: 45px;
  background-color: #E31E24;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  box-shadow: 0 2px 8px rgba(227, 30, 36, 0.4);
}

.ctrl-button.play-pause:hover {
  background-color: #d01c22;
  box-shadow: 0 4px 12px rgba(227, 30, 36, 0.5);
}

.ctrl-button.secondary {
  color: #555;
  font-size: 18px;
}

.ctrl-button.secondary:hover {
  color: #E31E24;
}

/* Improved play/pause button transition */
.ctrl-button.play-pause i {
  transition: all 0.2s ease;
  font-size: 16px;
}

/* Volume Control */
.volume-control {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
}

.volume-icon {
  margin-right: 10px;
  color: #444;
  cursor: pointer;
}

.volume-slider {
  height: 4px;
  background-color: #ddd;
  border-radius: 2px;
  position: relative;
  flex-grow: 1;
  cursor: pointer;
}

.volume-level {
  height: 100%;
  background-color: #E31E24;
  border-radius: 2px;
  position: absolute;
  top: 0;
  left: 0;
}

/* Program Schedule */
.current-program {
  border-top: 1px solid #eee;
  padding-top: 10px;
  width: 100%;
  text-align: center;
}

.program-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 5px;
}

.program-details {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777;
}

/* Mobile improvements */
@media (max-width: 767px) {
  .radio-player {
    bottom: 75px;
    right: 10px;
    width: 300px;
  }
}

/* Animations */
@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
} 