/* =========================================================
   LEAVE IT PLAYING
   Player Screen
   ========================================================= */


/* =========================================================
   SCREEN
   ========================================================= */

.player-screen {
    width: min(1100px, 100%);

    min-height: calc(100vh - 92px);

    margin: 0 auto;

    padding:
        20px 32px
        80px;
}


/* =========================================================
   HEADER
   ========================================================= */

.player-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 50px;
}


/* =========================================================
   PLAYER CONTENT
   ========================================================= */

.player-content {
    width: min(760px, 100%);

    margin: 0 auto;
}


/* =========================================================
   VIBE RESULT
   ========================================================= */

.vibe-result {
    margin-bottom: 35px;

    text-align: center;
}

.vibe-result .eyebrow {
    margin-bottom: 14px;
}

.vibe-result h2 {
    color: #f4f4f4;

    font-size:
        clamp(
            38px,
            6vw,
            62px
        );

    font-weight: 400;

    line-height: 1;

    letter-spacing: -0.06em;
}

.vibe-result > p:not(.eyebrow) {
    width: min(450px, 100%);

    margin:
        18px auto 0;

    color: #6d6d75;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   VIBE TAGS
   ========================================================= */

.vibe-tags {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 22px;
}

.vibe-tag {
    padding:
        7px 11px;

    border:
        1px solid
        rgba(255, 255, 255, 0.06);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.025);

    color: #66666e;

    font-size: 10px;
}


/* =========================================================
   YOUTUBE PLAYER
   ========================================================= */

.youtube-player {
    position: fixed;

    top: -9999px;
    left: -9999px;

    width: 200px;
    height: 200px;

    opacity: 0.01;

    pointer-events: none;

    z-index: -9999;
}


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

.current-track {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 30px;
}

.track-artwork {
    width: 58px;
    height: 58px;

    flex:
        0 0 58px;

    display: grid;

    place-items: center;

    overflow: hidden;

    border-radius: 12px;

    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255, 255, 255, 0.25),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #292b35,
            #111217
        );

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 24px;
}

.track-details {
    min-width: 0;

    flex: 1;
}

.current-track .track-title {
    overflow: hidden;

    color: #ededee;

    font-size: 15px;

    font-weight: 500;

    line-height: 1.3;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.track-artist {
    margin-top: 4px;

    color: #66666e;

    font-size: 12px;
}


/* =========================================================
   FAVORITE
   ========================================================= */

.favorite-button {
    width: 40px;
    height: 40px;

    flex:
        0 0 40px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: transparent;

    color: #66666e;

    cursor: pointer;

    font-size: 20px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.favorite-button:hover {
    color: #fff;

    background:
        rgba(255, 255, 255, 0.06);

    transform:
        scale(1.05);
}

.favorite-button.active {
    color: #fff;
}


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

.player-progress {
    margin-top: 28px;
}

.progress-bar {
    width: 100%;
    height: 4px;

    appearance: none;
    -webkit-appearance: none;

    border-radius: 999px;

    background: #29292f;

    cursor: pointer;

    outline: none;
}

.progress-bar::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 11px;
    height: 11px;

    border: 0;

    border-radius: 50%;

    background: #f1f1f1;

    opacity: 0;

    transition:
        opacity 0.2s ease;
}

.player-progress:hover
.progress-bar::-webkit-slider-thumb {
    opacity: 1;
}

.progress-bar::-moz-range-thumb {
    width: 11px;
    height: 11px;

    border: 0;

    border-radius: 50%;

    background: #f1f1f1;

    opacity: 0;
}

.player-progress:hover
.progress-bar::-moz-range-thumb {
    opacity: 1;
}

.time-row {
    display: flex;

    justify-content: space-between;

    margin-top: 8px;

    color: #55555d;

    font-size: 10px;

    font-variant-numeric:
        tabular-nums;
}


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

.player-screen .player-controls {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 17px;

    margin-top: 28px;
}

.control-button {
    display: grid;

    place-items: center;

    background: transparent;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.secondary-control {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    color: #686870;

    font-size: 15px;
}

.secondary-control:hover {
    color: #fff;

    background:
        rgba(255, 255, 255, 0.05);

    transform:
        scale(1.07);
}

.secondary-control.active {
    color: #fff;
}

.play-button {
    width: 62px;
    height: 62px;

    border-radius: 50%;

    background: #eeeeef;

    color: #090909;

    font-size: 18px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.4);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.play-button:hover {
    background: #fff;

    transform:
        scale(1.07);

    box-shadow:
        0 14px 38px
        rgba(0, 0, 0, 0.5);
}

.play-button:active {
    transform:
        scale(0.95);
}


/* =========================================================
   PLAYER BOTTOM
   ========================================================= */

.player-bottom {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 28px;
}

.secondary-button {
    min-height: 36px;

    padding:
        0 13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.055);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.02);

    color: #5f5f67;

    font-size: 11px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.secondary-button:hover {
    color: #ddd;

    background:
        rgba(255, 255, 255, 0.055);

    border-color:
        rgba(255, 255, 255, 0.1);
}


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

@media (max-width: 700px) {

    .player-screen {
        min-height:
            calc(100vh - 75px);

        padding:
            15px 20px
            70px;
    }

    .player-header {
        margin-bottom: 40px;
    }
}


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

@media (max-width: 480px) {

    .player-screen {
        padding:
            12px 16px
            60px;
    }

    .vibe-result {
        margin-bottom: 30px;
    }

    .vibe-result h2 {
        font-size: 42px;
    }

    .vibe-result > p:not(.eyebrow) {
        font-size: 13px;
    }

    .current-track {
        gap: 12px;
    }

    .track-artwork {
        width: 50px;
        height: 50px;

        flex-basis: 50px;

        border-radius: 10px;
    }

    .current-track .track-title {
        font-size: 14px;
    }

    .player-screen .player-controls {
        gap: 8px;
    }

    .secondary-control {
        width: 40px;
        height: 40px;

        font-size: 13px;
    }

    .play-button {
        width: 58px;
        height: 58px;

        font-size: 17px;
    }

    .player-bottom {
        margin-top: 24px;
    }

    .secondary-button {
        min-height: 34px;

        padding:
            0 11px;

        font-size: 10px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 360px) {

    .player-screen .player-controls {
        gap: 3px;
    }

    .secondary-control {
        width: 37px;
    }
}