* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white;
    overflow-x: hidden;
}

.radio-player {
    width: 100%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.header {
    position: relative;
    padding: 30px 20px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
}

.visualizer-container {
    position: relative;
    height: 150px;
    margin: 0 auto 25px;
    width: 80%;
    overflow: hidden;
    border-radius: 10px;
}

#visualizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.radio-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
    transition: all 0.3s ease;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #dc3545;
}

.status-indicator.online {
    background-color: #28a745;
    box-shadow: 0 0 10px #28a745;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.server-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 15px;
    margin: 20px 0 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.controls {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.7);
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button:hover::before {
    opacity: 1;
}

.play-button.playing {
    background: linear-gradient(135deg, #e53935, #e35d5b);
}

.volume-control {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 20px;
    margin: 20px 0 15px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #28a745;
    width: 30px;
    transition: all 0.2s ease;
}

.volume-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #28a745;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #1e7e34;
}

.theme-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffcc00;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}

.footer {
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.station-name {
    font-size: 24px;
    margin-bottom: 10px;
    color: #A8D42E;
    text-shadow: 0 0 10px rgba(168, 212, 46, 0.5);
    font-weight: bold;
}

/* Modo oscuro */
.dark-mode {
    background: linear-gradient(135deg, #121212, #1e1e1e, #121212);
}

.dark-mode .radio-player {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(100, 100, 100, 0.2);
}

.dark-mode .server-info {
    background: rgba(0, 0, 0, 0.5);
}

.dark-mode .volume-control {
    background: rgba(50, 50, 50, 0.5);
}

.dark-mode .play-button {
    background: linear-gradient(135deg, #1565C0, #1E88E5);
}

.dark-mode .play-button.playing {
    background: linear-gradient(135deg, #c62828, #e53935);
}

/* Animación de fondo */
.background-wave {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 0.1;
}

/* Efectos de sonido visual */
.sound-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.1;
    transform: scaleY(-1);
    animation: waveAnimation 12s linear infinite;
}

.wave:nth-child(2) {
    animation-delay: -4s;
    opacity: 0.15;
}

.wave:nth-child(3) {
    animation-delay: -8s;
    opacity: 0.2;
}

@keyframes waveAnimation {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

/* Responsividad */
@media (max-width: 480px) {
    .radio-player {
        border-radius: 15px;
    }
    
    .header {
        padding: 25px 15px 15px;
    }
    
    .visualizer-container {
        height: 120px;
        margin-bottom: 20px;
    }
    
    .radio-icon {
        font-size: 50px;
    }
    
    .station-name {
        font-size: 20px;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
}