/* =====================================================
   MUSIC PLAYER
===================================================== */

.music-player {
    position: fixed;
    z-index: 1000;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;

    background: rgba(15, 15, 15, 0.97);
    border-top: 1px solid #333;

    color: #f5f5f5;
}


/* =====================================================
   PROGRESS
===================================================== */

.music-player__progress {
    display: flex;
    align-items: center;
    gap: 15px;

    width: min(1000px, calc(100% - 60px));

    height: 35px;

    margin: 0 auto;
}


/* Time */

.music-player__progress span {
    flex: 0 0 40px;

    color: #666;

    font-size: 10px;
    line-height: 1;

    letter-spacing: 0.05em;

    font-variant-numeric: tabular-nums;
}


/* Duration */

#player-duration {
    text-align: right;
}


/* =====================================================
   SEEK BAR
===================================================== */

#seekBar {
    flex: 1;

    width: 100%;
    height: 3px;

    margin: 0;
    padding: 0;

    appearance: none;

    background: #333;

    cursor: pointer;
}


/* Chrome / Edge / Safari */

#seekBar::-webkit-slider-runnable-track {
    height: 3px;
    background: #333;
}

#seekBar::-webkit-slider-thumb {
    width: 9px;
    height: 9px;

    margin-top: -3px;

    appearance: none;

    border: 0;
    border-radius: 50%;

    background: #f5f5f5;

    cursor: pointer;
}


/* Firefox */

#seekBar::-moz-range-track {
    height: 3px;
    background: #333;
}

#seekBar::-moz-range-progress {
    height: 3px;
    background: #888;
}

#seekBar::-moz-range-thumb {
    width: 9px;
    height: 9px;

    border: 0;
    border-radius: 50%;

    background: #f5f5f5;

    cursor: pointer;
}


/* =====================================================
   PLAYER INNER
===================================================== */

.music-player__inner {
    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    width: min(1200px, calc(100% - 60px));

    height: 65px;

    margin: 0 auto;
}


/* =====================================================
   CURRENT TRACK
===================================================== */

.player-track {
    min-width: 0;
}

.player-track__title {
    overflow: hidden;

    margin: 0;

    color: #bbb;

    font-weight: 400;

    letter-spacing: 0.08em;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =====================================================
   CONTROLS
===================================================== */

.player-controls {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;
}


/* Buttons */

.player-controls button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 40px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #777;

    font-size: 12px;
    font-weight: 400;

    letter-spacing: 0.1em;

    cursor: pointer;

    transition:
        color 0.3s ease,
        border-color 0.3s ease;
}

.player-controls button:hover {
    color: #fff;
}


/* =====================================================
   PLAY / PAUSE
===================================================== */

.player-controls #playPause {
    width: 48px;
    height: 48px;

    border: 1px solid #555;
    border-radius: 50%;

    color: #ccc;
}

.player-controls #playPause:hover {
    border-color: #aaa;
    color: #fff;
}


/* =====================================================
   DOWNLOAD
===================================================== */

.player-download {
    display: flex;

    justify-content: flex-end;

    min-width: 0;
}

.player-download a {
    color: #666;

    font-size: 9px;
    font-weight: 400;

    letter-spacing: 0.15em;

    text-decoration: none;

    transition: color 0.3s ease;
}

.player-download a:hover {
    color: #fff;
}


/* =====================================================
   MOBILE
===================================================== */

@media screen and (max-width: 700px) {

    .music-player__progress {
        width: calc(100% - 30px);

        gap: 10px;
    }

    .music-player__progress span {
        flex-basis: 35px;

        font-size: 9px;
    }


    .music-player__inner {
        width: calc(100% - 30px);

        grid-template-columns: 1fr auto;

        height: 60px;
    }


    .player-track__title {
        font-size: 10px;
    }


    .player-controls {
        gap: 2px;
    }


    .player-controls button {
        width: 38px;
        height: 38px;

        font-size: 8px;
    }


    .player-controls #playPause {
        width: 42px;
        height: 42px;
    }


    .player-download {
        display: none;
    }

}