/* Audio Player Styles */
.audio-player {
    background: var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
   box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: white;
}

.player-station-info {
    text-align: center;
    margin-bottom: 2rem;
}

.station-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 4px solid rgba(255,255,255,0.2);
}

.station-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.player-status {
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    animation: pulse 2s infinite;
}

.status-indicator.stopped {
    background: #EF4444;
    animation: none;
}

.status-indicator.loading {
    background: #F59E0B;
    animation: pulse 0.8s infinite;
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.control-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.5rem;
}

.control-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.primary {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.95);
    color: #667eea;
    font-size: 2rem;
}

.control-btn.primary:hover {
    background: white;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-btn:disabled:hover {
    transform: none;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.volume-icon {
    font-size: 1.5rem;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.3);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.volume-value {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
}

/* Station Selector */
.station-selector {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
}

.selector-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.station-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.station-button {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.station-button:hover {
    background: rgba(255,255,255,0.2);
}

.station-button.active {
    background: rgba(255,255,255,0.95);
    color: #667eea;
    border-color: white;
}

.station-button-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.station-button-name {
    flex: 1;
    font-weight: 600;
}

.station-button-playing {
    font-size: 1.2rem;
}

/* Audio Visualizer (opcional) */
.audio-visualizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
    margin-bottom: 1.5rem;
}

.visualizer-bar {
    width: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 3px;
    transition: height 0.2s;
}

.visualizer-bar.active {
    animation: visualizer 0.8s ease-in-out infinite;
}

@keyframes visualizer {
    0%, 100% { height: 20px; }
    50% { height: 50px; }
}

.visualizer-bar:nth-child(1) { animation-delay: 0s; }
.visualizer-bar:nth-child(2) { animation-delay: 0.1s; }
.visualizer-bar:nth-child(3) { animation-delay: 0.2s; }
.visualizer-bar:nth-child(4) { animation-delay: 0.3s; }
.visualizer-bar:nth-child(5) { animation-delay: 0.4s; }

/* Error Message */
.player-error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

/* Loading State */
.player-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
}

.player-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (min-width: 640px) {
    .station-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .audio-player {
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
}
