:root {
    --background-color: #2C5172;
    --background-color2: #CA3438;
    --highlight-color: #A3C749;
    --light-shadow: #37658f;
    --dark-shadow: #213d55;
    --text-color: #ffffff;
    --font-family: 'Libre Franklin', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
}

.radio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    
    gap: 15px;
}

.control-button {
    background: linear-gradient(143deg,rgba(172, 51, 53, 1) 0%, rgba(202, 52, 56, 1) 50%, rgba(237, 50, 55, 1) 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    box-shadow: 6px 6px 12px var(--dark-shadow),
                -6px -6px 12px var(--light-shadow);
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
}

.control-button:active {
    box-shadow: inset 4px 4px 8px var(--dark-shadow),
                inset -4px -4px 8px var(--light-shadow);
    transform: scale(0.95);
}

.control-button svg {
    pointer-events: none;
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    max-width: 250px;
}

#volumePercentage, .live-text {
    color: var(--text-color);
    font-size: 14px;
    user-select: none;
    white-space: nowrap;
}

.live-text {
    margin-left: 10px;
}

/* Volume Slider Styles */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--dark-shadow);
    outline: none;
    border-radius: 5px;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.4),
                inset -2px -2px 4px rgba(255,255,255,0.1);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--highlight-color);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid var(--background-color);
    box-shadow: 3px 3px 6px var(--dark-shadow),
                -3px -3px 6px var(--light-shadow);
}

input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--highlight-color);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid var(--background-color);
    box-shadow: 3px 3px 6px var(--dark-shadow),
                -3px -3px 6px var(--light-shadow);
}

.visualizer-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    height: 40px; /* Max height of bars */
    pointer-events: none;
}

.visualizer {
    display: flex;
    align-items: flex-end;
    height: 100%;
    gap: 3px;
}

.visualizer .bar {
    width: 5px;
    background: linear-gradient(to top, var(--highlight-color), #c2f05c);
    border-radius: 2px;
    transition: height 0.1s ease-out;
}

@media (max-width: 480px) {
    .radio-player {
        padding: 0 10px;
        gap: 10px;
    }
    .volume-section {
        max-width: 150px;
    }
    .live-text {
        display: none;
    }
    .visualizer .bar {
        width: 4px;
    }
    .visualizer-container {
      right: 5px;
    }
}