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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.radio-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.radio-header {
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo i {
    font-size: 2.5em;
    color: #667eea;
    margin-right: 15px;
}

.logo h1 {
    color: #333;
    font-size: 2em;
    font-weight: 600;
}

.station-info h2 {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.frequency {
    color: #666;
    font-size: 1em;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-block;
}

.player-section {
    margin-bottom: 30px;
}

.visualizer {
    margin-bottom: 30px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bars {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 60px;
}

.bar {
    width: 8px;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 4px;
    animation: pulse 1.5s ease-in-out infinite;
    opacity: 0.3;
}

.bar:nth-child(1) { animation-delay: 0s; height: 20px; }
.bar:nth-child(2) { animation-delay: 0.2s; height: 35px; }
.bar:nth-child(3) { animation-delay: 0.4s; height: 50px; }
.bar:nth-child(4) { animation-delay: 0.6s; height: 25px; }
.bar:nth-child(5) { animation-delay: 0.8s; height: 40px; }
.bar:nth-child(6) { animation-delay: 1s; height: 30px; }
.bar:nth-child(7) { animation-delay: 1.2s; height: 45px; }
.bar:nth-child(8) { animation-delay: 1.4s; height: 35px; }

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

.bars.playing .bar {
    opacity: 1;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.play-btn:active {
    transform: translateY(0);
}

.play-btn.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.volume-container i {
    color: #667eea;
    font-size: 1.2em;
}

.volume-slider {
    width: 100px;
    height: 5px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

#volumeValue {
    font-size: 0.9em;
    color: #666;
    min-width: 35px;
}

.status {
    margin-bottom: 20px;
}

#statusText {
    color: #666;
    font-size: 1em;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.status.error #statusText {
    background: #ffe6e6;
    color: #d63384;
}

.status.success #statusText {
    background: #e6f7e6;
    color: #198754;
}

.info-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.now-playing {
    margin-bottom: 20px;
}

.now-playing h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
}

#nowPlaying {
    color: #667eea;
    font-weight: 500;
    font-size: 1em;
}

.station-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.link-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .radio-container {
        padding: 20px;
        margin: 10px;
    }
    
    .controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .volume-container {
        width: 100%;
        justify-content: center;
    }
    
    .station-links {
        flex-direction: column;
        align-items: center;
    }
    
    .link-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Dropdown selector for stations */
.station-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1em;
    margin-bottom: 25px;
    background: #f8f9fa;
    color: #333;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.station-select:focus {
    outline: none;
    border-color: #667eea;
}

