.icecast-player {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.icecast-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Station Info */
.station-info {
    text-align: center;
    margin-bottom: 20px;
}

.station-name {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.station-description {
    font-size: 0.9em;
    color: #cccccc;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
}

/* Player Controls */
.player-controls {
    text-align: center;
    margin-bottom: 20px;
}

.play-button {
    background: none;
    border: none;
    color: #00ff88;
    font-size: 48px;
    cursor: pointer;
    padding: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.play-button:hover {
    transform: scale(1.1);
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
    background: rgba(0, 255, 136, 0.1);
}

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

/* Progress Container */
.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #444444;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.progress-bar::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.progress-bar::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.progress-bar::-webkit-slider-track {
    background: #444444;
    border-radius: 3px;
    height: 6px;
}

.progress-bar::-moz-range-track {
    background: #444444;
    border-radius: 3px;
    height: 6px;
}

/* Time Display */
.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #cccccc;
    font-weight: 500;
}

.current-time, .duration {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
}

/* Additional Controls */
.additional-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.control-button:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

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

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
}

.volume-icon {
    font-size: 16px;
    opacity: 0.8;
}

.volume-slider {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: #444444;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volume-slider::-webkit-slider-track {
    background: #444444;
    border-radius: 2px;
    height: 4px;
}

.volume-slider::-moz-range-track {
    background: #444444;
    border-radius: 2px;
    height: 4px;
}

/* Track Metadata */
.track-metadata {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #00ff88;
}

.current-track {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.stream-status {
    font-size: 0.9em;
    color: #00ff88;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Error Styling */
.icecast-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    text-align: center;
    margin: 20px 0;
}

.icecast-error p {
    margin: 0;
    font-size: 1em;
}

/* Premium notice styling */
.spotify-widget-premium-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.spotify-widget-premium-notice h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.spotify-widget-premium-notice p {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.5;
}

.spotify-widget-premium-notice .button {
    background: #ffffff;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spotify-widget-premium-notice .button:hover {
    background: #f8f9fa;
    color: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Live indicator animation */
@keyframes live-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.duration:contains("LIVE") {
    animation: live-pulse 2s infinite;
    color: #ff4444;
    font-weight: 700;
}

/* Responsive design */
@media (max-width: 768px) {
    .icecast-player {
        padding: 15px;
    }
    
    .station-name {
        font-size: 1.3em;
    }
    
    .play-button {
        font-size: 40px;
        width: 70px;
        height: 70px;
    }
    
    .additional-controls {
        gap: 10px;
    }
    
    .control-button {
        font-size: 20px;
        padding: 6px;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .spotify-widget-premium-notice {
        padding: 20px;
    }
    
    .spotify-widget-premium-notice h3 {
        font-size: 1.3em;
    }
    
    .spotify-widget-premium-notice p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .icecast-player {
        padding: 12px;
    }
    
    .station-name {
        font-size: 1.2em;
    }
    
    .play-button {
        font-size: 36px;
        width: 60px;
        height: 60px;
    }
    
    .additional-controls {
        gap: 8px;
    }
    
    .control-button {
        font-size: 18px;
        padding: 5px;
    }
    
    .volume-slider {
        width: 50px;
    }
    
    .spotify-widget-premium-notice {
        padding: 15px;
    }
    
    .spotify-widget-premium-notice .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .icecast-player {
        background: #0a0a0a;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
    
    .progress-bar {
        background: #333333;
    }
    
    .progress-bar::-webkit-slider-track {
        background: #333333;
    }
    
    .progress-bar::-moz-range-track {
        background: #333333;
    }
    
    .volume-slider {
        background: #333333;
    }
    
    .volume-slider::-webkit-slider-track {
        background: #333333;
    }
    
    .volume-slider::-moz-range-track {
        background: #333333;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .icecast-player {
        border: 2px solid #ffffff;
    }
    
    .play-button {
        border: 2px solid #00ff88;
    }
    
    .control-button {
        border: 1px solid #ffffff;
    }
    
    .progress-bar::-webkit-slider-thumb {
        border: 2px solid #ffffff;
    }
    
    .progress-bar::-moz-range-thumb {
        border: 2px solid #ffffff;
    }
    
    .volume-slider::-webkit-slider-thumb {
        border: 2px solid #ffffff;
    }
    
    .volume-slider::-moz-range-thumb {
        border: 2px solid #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .icecast-player,
    .play-button,
    .control-button {
        transition: none;
    }
    
    .play-button:hover,
    .control-button:hover {
        transform: none;
    }
    
    .live-pulse {
        animation: none;
    }
}
