:root {
    --primary-color: #121212;
    --secondary-color: #1e1e1e;
    --accent-color: #d4a86a;  
    --text-color: #f4e1c1;    
    --title-color: #e6b56c;   
    --subtitle-color: #deb887;  
    --shadow-light: #2c2c2c;
    --shadow-dark: #0a0a0a;
    --input-background: #2a2a2a;
    --input-shadow-light: #3c3c3c;
    --input-shadow-dark: #161616;
    --error-color: #ff6b6b;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.radio-player-container {
    width: 100%;
    max-width: 600px;
    background-color: var(--primary-color);
    border-radius: 20px;
    box-shadow: 
        9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
    overflow: hidden;
    padding: 30px;
}

.radio-player {
    background-color: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
    padding: 20px;
}

.station-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.station-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    box-shadow: 
        6px 6px 10px var(--shadow-dark),
        -6px -6px 10px var(--shadow-light);
}

.station-details h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.station-details p {
    color: var(--text-color);
}

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

.live-indicator {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: bold;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 1.5s infinite;
    box-shadow: 
        2px 2px 4px var(--shadow-dark),
        -2px -2px 4px var(--shadow-light);
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.control-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light),
        0 0 20px rgba(187, 134, 252, 0.5);
    transition: all 0.3s ease;
    transform: scale(1);
    animation: subtle-pulse 3s infinite;
}

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

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light),
        0 0 30px rgba(187, 134, 252, 0.7);
}

.control-btn i {
    font-size: 2rem;
}

.sound-controls {
    background-color: var(--secondary-color);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
    margin-top: 20px;
}

.volume-control, .tone-control {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.volume-control label, 
.tone-control label {
    margin-bottom: 10px;
    color: var(--accent-color);
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(187, 134, 252, 0.3);
}

.tone-control {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.bass-control, .treble-control {
    width: 48%;
    display: flex;
    flex-direction: column;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    background: var(--input-background);
    border-radius: 10px;
    outline: none;
    box-shadow: 
        inset 3px 3px 6px var(--input-shadow-dark),
        inset -3px -3px 6px var(--input-shadow-light),
        0 0 10px rgba(187, 134, 252, 0.2);
    transition: box-shadow 0.3s ease;
}

input[type="range"]:hover {
    box-shadow: 
        inset 3px 3px 6px var(--input-shadow-dark),
        inset -3px -3px 6px var(--input-shadow-light),
        0 0 15px rgba(187, 134, 252, 0.4);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: var(--accent-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light),
        0 0 15px rgba(187, 134, 252, 0.5);
    transition: transform 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.error-message {
    color: var(--error-color);
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

.spectrum-analyzer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

#spectrumAnalyzer {
    width: 100%;
    height: 100px;
    background: linear-gradient(
        to bottom, 
        rgba(255, 235, 150, 0.1), 
        rgba(255, 220, 100, 0.2)
    );
    border-radius: 10px;
    box-shadow: 
        inset 2px 2px 5px rgba(255, 225, 125, 0.1),
        inset -2px -2px 5px rgba(255, 210, 90, 0.1),
        0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

#spectrumAnalyzer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 240, 180, 0.05);
    opacity: 0.5;
    pointer-events: none;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--title-color);  
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--subtitle-color);  
    opacity: 0.8;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .station-info {
        flex-direction: column;
        text-align: center;
    }

    .station-logo {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100px;
        height: 100px;
    }

    .player-controls {
        flex-direction: column;
    }

    .live-indicator {
        margin-bottom: 15px;
    }

    .tone-control {
        flex-direction: column;
    }

    .bass-control, .treble-control {
        width: 100%;
        margin-bottom: 15px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }
}