/* Radio Station Player Public Styles */

.rsp-player {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.rsp-custom-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rsp-audio-player {
    display: none; /* Hide the native audio element */
}

.rsp-play-pause-btn,
.rsp-volume-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.rsp-play-pause-btn:hover,
.rsp-volume-btn:hover {
    opacity: 1;
}

.rsp-play-pause-icon,
.rsp-volume-icon {
    width: 60px;
    height: 60px;
    display: block;
}

.rsp-volume-control {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.rsp-volume-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.rsp-volume-btn:hover {
    opacity: 1;
}

.rsp-volume-icon {
    width: 32px;
    height: 32px;
    display: block;
    color: #000; /* Force black color for the icon */
}

.rsp-volume-slider-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    padding: 10px;
    border-radius: 10px;
    display: none;
    height: 120px;
    margin-bottom: 5px;
}

.rsp-volume-control:hover .rsp-volume-slider-container {
    display: block;
}

.rsp-volume-slider {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    transform: rotate(-90deg) translateX(-50px) translateY(-50px);
    transform-origin: left;
    margin: 0;
}

.rsp-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rsp-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.rsp-volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rsp-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Make the clickable area larger */
.rsp-volume-slider::-webkit-slider-runnable-track {
    height: 8px;
    cursor: pointer;
}

.rsp-volume-slider::-moz-range-track {
    height: 8px;
    cursor: pointer;
}

/* Error message styling */
.rsp-player-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(248, 215, 218, 0.9);
    border: 1px solid rgba(245, 198, 203, 0.9);
    border-radius: 4px;
}

/* Now Playing styles */
.rsp-now-playing {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.rsp-now-playing-artwork {
    flex: 0 0 100px;
    margin-right: 15px;
}

.rsp-now-playing-artwork img {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    display: block;
}

.rsp-now-playing-info {
    flex: 1;
}

.rsp-now-playing-artist {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.rsp-now-playing-song {
    font-size: 16px;
    color: #666;
}

/* Firefox specific styles */
@-moz-document url-prefix() {
    .rsp-audio-player {
        width: 150px;
    }
}

/* Edge/IE specific styles */
@supports (-ms-ime-align:auto) {
    .rsp-audio-player {
        width: 150px;
    }
} 