﻿/* -------------------------------------
   Player Footer Custom Styles
------------------------------------- */

#footer-shuffle-btn {
    color: white;
}

    #footer-shuffle-btn.active {
        color: orange !important;
    }

#footer-loop-btn.loop-off {
    color: #fff;
}

#footer-loop-btn.playlist-loop,
#footer-loop-btn.single-loop {
    color: orange;
}

    #footer-loop-btn.loop-off i,
    #footer-loop-btn.playlist-loop i,
    #footer-loop-btn.single-loop i {
        color: inherit;
    }

#volume-control,
#progress-bar {
    accent-color: orange;
}

.songlist-play-btn:focus,
#footer-shuffle-btn:focus,
#footer-loop-btn:focus,
#footer-prev-btn:focus,
#footer-play-pause-btn:focus,
#footer-next-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* -------------------------------------
   Responsive Styles for Player Footer
------------------------------------- */

#music-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #121212;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
    z-index: 9999;
}

#footer-cover-art {
    width: 50px;
    height: 50px;
}

#footer-play-pause-btn i {
    font-size: 1.5rem;
}

#footer-prev-btn i,
#footer-next-btn i,
#footer-loop-btn i,
#footer-shuffle-btn i {
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    #music-footer {
        height: 60px;
        padding: 0 15px;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    #footer-cover-art {
        width: 40px;
        height: 40px;
    }

    #footer-play-pause-btn i {
        font-size: 1.2rem;
    }

    #footer-prev-btn i,
    #footer-next-btn i,
    #footer-loop-btn i,
    #footer-shuffle-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    #music-footer {
        height: 70px !important;
        padding: 4px 16px 0 !important; /* explicitly moves buttons & progress bar up */
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
        z-index: 9999 !important;
    }

        #music-footer > div:first-child,
        #music-footer > div:last-child {
            display: none !important; 
        }

        #music-footer button {
            width: auto !important;
            height: auto !important;
            margin: 0 5px !important;
            padding: 0 !important;
            line-height: 1 !important;
        }

    #footer-play-pause-btn i {
        font-size: 2rem !important;
    }

    #footer-prev-btn i,
    #footer-next-btn i,
    #footer-loop-btn i,
    #footer-shuffle-btn i {
        font-size: 1.3rem !important;
    }

    #progress-bar {
        margin-top: 0 !important; /* explicitly moves progress bar up */
    }

    #current-time,
    #total-duration {
        margin-top: 0 !important; /* explicitly moves timestamps up as well */
    }
}




/*button controls effect*/
#music-footer button {
    cursor: pointer;
    transition: transform 0.2s ease;
}

    #music-footer button:hover {
        transform: scale(1.4); /* explicitly magnifies the hovered button */
    }

    #music-footer button:active {
        transform: scale(0.9);
    }


