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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
}

.container {
    max-width: 400px;
    width: 100%;
}

.player-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.radio-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.radio-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.radio-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.radio-details h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.station-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 5px;
}

.stream-status {
    color: #4ecdc4;
    font-size: 12px;
    font-weight: 500;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

.play-btn svg {
    width: 30px;
    height: 30px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    margin-left: 20px;
}

.volume-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

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

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

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

.equalizer {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    height: 40px;
}

.bar {
    width: 4px;
    background: linear-gradient(to top, #ff6b6b, #4ecdc4);
    border-radius: 2px;
    animation: equalizer 1.5s ease-in-out infinite;
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes equalizer {
    0%, 100% { height: 10px; }
    50% { height: 30px; }
}

.equalizer.paused .bar {
    animation-play-state: paused;
    height: 10px;
}

.info-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-url {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    word-break: break-all;
}

.compatibility {
    font-size: 14px;
    color: #4ecdc4;
    font-weight: 500;
    margin-bottom: 15px;
}

.test-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.test-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .player-card {
        padding: 20px;
    }
    
    .radio-info {
        flex-direction: column;
        text-align: center;
    }
    
    .radio-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .volume-control {
        margin-left: 0;
        width: 100%;
    }
}

/* Loading animation */
.loading {
    opacity: 0.7;
}

.loading .radio-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Error state */
.error .stream-status {
    color: #ff6b6b;
}

.error .radio-icon {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}