/* ===============================
   Track Image & Track Name
   =============================== */
#is_playing {
    visibility: hidden;   
    width: 295px;
    margin: 0 auto;
    opacity: 0.75;
}

#trackName {
    visibility: hidden;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #33acde;
}

/* ===============================
   Controls Row
   =============================== */
#controlsRow {
    width: 90%;
    max-width: 300px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: -100px;
}

#controlsRow img {
   padding: 2px;
}

/* ===============================
   Progress Slider
   =============================== */
#progressbar-holder {
    width: 60%;
    margin: -20px auto;
    position: relative;
    margin-bottom: 3em;
}

#progressSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 5px;
    background: #2c2c2c;
    outline: none;
    margin: 20px auto;
    display: block;
}

#progressSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 16px;
    border-radius: 50%;
    background: #33a9dc;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 241, 255, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#progressSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(0, 241, 255, 0.9);
}

#progressSlider::-moz-range-thumb {
    width: 8px;
    height: 16px;
    border-radius: 50%;
    background: #33a9dc;
    cursor: pointer;
}

#progressSlider::-moz-range-track {
    background: #2c2c2c;
    border-radius: 5px;
    height: 8px;
}

#timeDisplay_a {
    position: absolute;
    top: -7px;
    left: -55px;
    font-size: 14px;
}

#timeDisplay_b {
    position: absolute;
    top: -7px;
    right: -55px;
    font-size: 14px;
}

/* ===============================
   Player Buttons
   =============================== */
.player-button:hover {
    cursor: pointer;
}

#pause {
    display: none;
}

/* ===============================
   Volume Slider
   =============================== */
#volumeRow {
    display: inline;
    position: relative;
    bottom: 39px;
    left: 83%;
}

/* Hover: slider liukuu ylös ja feidautuu esiin */
#volumeRow:hover #volumeControl {
    background-color: #020e1a;
    opacity: .5;
    visibility: visible;
    bottom: 90px;
    /* liukumaefekti */
}


#volumeIcon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: filter 0.2s ease;
}

#volumeIcon:hover {
    filter: brightness(1.3);
}

/* Pystysuuntainen slider — piilotettu oletuksena */
#volumeControl {
    position: absolute;
    bottom: 0px;
    left: 13px;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center;
    width: 140px;
    /* sliderin pituus */
    height: 34px;
    /* sliderin leveys (käännetty) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, bottom 0.3s ease;
    appearance: none;
    cursor: pointer;
}


/* ===============================
   Volume track
   =============================== */
#volumeControl::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, #397dbf, #32b7e5);
    /*background: transparent;*/
    height: 6px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 114, 255, 0.5);
}

#volumeControl::-moz-range-track {
    background: linear-gradient(90deg, #397dbf), #32b7e5;
    /*background: transparent;*/
    height: 6px;
    border-radius: 6px;
}

/* ===============================
   Volume thumb
   =============================== */
#volumeControl::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0072ff;
    box-shadow: 0 0 6px rgba(0, 114, 255, 0.7);
    margin-top: -5px;
    /* keskitys */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#volumeControl::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.9);
}

#volumeControl::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0072ff;
    box-shadow: 0 0 6px rgba(0, 114, 255, 0.7);
}

.active {
    background-color: rgba(0, 241, 255, 0.15);  
}

/* ===============================
            TRACKLIST 
   =============================== */
#playlistView {
    background: none;
}
li.current {
     background: url("../img/current_track.png") no-repeat left center;
}
li.current span.track-number {
    visibility: hidden;
    margin-right: 10px;    
}

#audioList li:hover {
    background-color: rgba(0, 0, 0, 0.4);
}
ul#audioList li {
    border-bottom: 1px solid rgb(35, 36, 58);
    position: relative;    
}

span.duration {   
    position: absolute;
    right: 0px;
    font-size: 0.9em;
}


@media only screen and (max-width: 550px) {
    #volumeRow {
        left: 92%;
    }
}

@media only screen and (max-width: 400px) {
    #kehys { padding: 5px; }

    ul#audioList li {
        font-size: .9em;
    }
}

@media only screen and (max-width: 360px) {
    #audioList li span {
        max-width: 75%;
    }
}