/*==================================================*
 * PLAYLISTS PAGE
 *==================================================*/

.playlists-page {
    width: 100%;
    min-height: 100%;
    padding: 30px;
    box-sizing: border-box;
    color: #fff;
}


/*==================================================*
 * HERO
 *==================================================*/

.playlists-hero {
    position: relative;

    min-height: 260px;

    padding: 45px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(124, 58, 237, .48),
            transparent 35%
        ),
        radial-gradient(
            circle at 15% 100%,
            rgba(91, 33, 182, .30),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #7c3aed 0%,
            #3b176f 35%,
            #25202f 70%,
            #151515 100%
        );

    border: 1px solid rgba(255,255,255,.07);

    box-shadow:
        0 20px 50px rgba(0,0,0,.25);

    box-sizing: border-box;
}


/*==================================================*
 * HERO DECORATION
 *==================================================*/

.playlists-hero::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -90px;
    top: -130px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.08);

    filter: blur(10px);

    pointer-events: none;
}


.playlists-hero::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: 170px;
    bottom: -100px;

    border-radius: 50%;

    background:
        rgba(167,139,250,.15);

    filter: blur(20px);

    pointer-events: none;
}


/*==================================================*
 * HERO CONTENT
 *==================================================*/

.playlists-hero-content {
    position: relative;

    z-index: 2;

    max-width: 700px;
}


.playlist-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 14px;

    margin-bottom: 18px;

    border-radius: 999px;

    background:
        rgba(255,255,255,.10);

    border:
        1px solid rgba(255,255,255,.08);

    color:
        rgba(255,255,255,.85);

    font-size: 13px;

    font-weight: 600;

    backdrop-filter: blur(10px);
}


.playlists-hero h1 {
    margin: 0 0 10px;

    font-size: clamp(
        42px,
        6vw,
        64px
    );

    line-height: 1;

    font-weight: 800;

    letter-spacing: -1.5px;
}


.playlists-hero p {
    margin: 0 0 28px;

    color:
        rgba(255,255,255,.72);

    font-size: 17px;
}


/*==================================================*
 * CREATE BUTTON
 *==================================================*/

.create-playlist-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 13px 22px;

    border: none;

    border-radius: 999px;

    background: #fff;

    color: #5b21b6;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

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


.create-playlist-btn:hover {
    transform: translateY(-2px);

    background: #f5f3ff;

    box-shadow:
        0 10px 30px rgba(0,0,0,.25);
}


.create-playlist-btn:active {
    transform: translateY(0);
}


.create-playlist-btn:disabled {
    opacity: .65;

    cursor: wait;

    transform: none;
}


/*==================================================*
 * PLAYLIST SECTION
 *==================================================*/

.playlists-section {
    width: 100%;

    margin-top: 35px;
}


.playlists-section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 22px;
}


.playlists-section-header h2 {
    margin: 0 0 5px;

    color: #fff;

    font-size: 28px;

    font-weight: 750;
}


.playlists-section-header p {
    margin: 0;

    color: #888;

    font-size: 14px;
}


/*==================================================*
 * PLAYLIST GRID
 *==================================================*/

.playlists-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(240px, 1fr)
        );

    column-gap: 32px;

    row-gap: 32px;

    width: 100%;

    box-sizing: border-box;
}

/*==================================================*
 * PLAYLIST CARD
 *==================================================*/

.playlist-card {

    position: relative;

    width: 100%;

    min-width: 0;

    padding: 20px;

    border-radius: 20px;

    background: #181818;

    border:
        1px solid
        rgba(255,255,255,.045);

    cursor: pointer;

    box-sizing: border-box;

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.playlist-card:hover {

    transform: translateY(-5px);

    background: #202020;

    border-color:
        rgba(124,58,237,.35);

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.25);
}


/*==================================================*
 * PLAYLIST COVER
 *==================================================*/

.playlist-card-cover {
    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 16px;

    background:
        #252525;
}


.playlist-card-cover::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.30),
            transparent 45%
        );

    pointer-events: none;
}


.playlist-card-cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .35s ease;
}


.playlist-card:hover
.playlist-card-cover img {
    transform: scale(1.04);
}


/*==================================================*
 * PLAYLIST PLAY BUTTON
 *==================================================*/

.playlist-play {
    position: absolute;

    right: 14px;
    bottom: 14px;

    z-index: 5;

    width: 48px;
    height: 48px;

    display: flex;

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

    border: none;

    border-radius: 50%;

    background:
        #7c3aed;

    color: #fff;

    font-size: 16px;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(0,0,0,.35);

    opacity: 0;

    transform:
        translateY(8px)
        scale(.9);

    transition:
        opacity .25s ease,
        transform .25s ease,
        background .2s ease;
}


.playlist-card:hover
.playlist-play {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


.playlist-play:hover {
    background:
        #9155ff;

    transform:
        translateY(0)
        scale(1.08);
}


.playlist-play:active {
    transform:
        translateY(0)
        scale(.96);
}


.playlist-play:disabled {
    opacity: .7;

    cursor: wait;
}


/*==================================================*
 * PLAYLIST INFORMATION
 *==================================================*/

.playlist-card-info {
    padding:
        15px 3px 3px;
}


.playlist-card-info h3 {
    margin: 0 0 6px;

    color: #fff;

    font-size: 18px;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.playlist-card-info p {
    margin: 0;

    color: #888;

    font-size: 14px;
}


/*==================================================*
 * EMPTY STATE
 *==================================================*/

.playlists-empty {
    min-height: 300px;

    padding: 45px 25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border-radius: 22px;

    background:
        #181818;

    border:
        1px solid rgba(255,255,255,.05);
}


.playlists-empty-icon {
    width: 72px;
    height: 72px;

    display: flex;

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

    margin-bottom: 20px;

    border-radius: 50%;

    background:
        rgba(124,58,237,.15);

    color:
        #9b6cff;

    font-size: 28px;
}


.playlists-empty h3 {
    margin: 0 0 8px;

    color: #fff;

    font-size: 22px;
}


.playlists-empty p {
    max-width: 420px;

    margin: 0 0 22px;

    color: #888;

    line-height: 1.6;
}


/*==================================================*
 * CREATE PLAYLIST MODAL
 *==================================================*/

.playlist-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0,0,0,.72);

    backdrop-filter:
        blur(8px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;

    box-sizing: border-box;
}


.playlist-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/*==================================================*
 * MODAL BOX
 *==================================================*/

.playlist-modal-box {
    position: relative;

    width: 100%;

    max-width: 450px;

    padding: 32px;

    border-radius: 22px;

    background:
        #1b1b1b;

    border:
        1px solid rgba(255,255,255,.08);

    box-shadow:
        0 30px 80px rgba(0,0,0,.5);

    transform:
        translateY(15px)
        scale(.97);

    transition:
        transform .25s ease;

    box-sizing: border-box;
}


.playlist-modal.active
.playlist-modal-box {
    transform:
        translateY(0)
        scale(1);
}


/*==================================================*
 * CLOSE
 *==================================================*/

.playlist-modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    display: flex;

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

    border: none;

    border-radius: 50%;

    background:
        rgba(255,255,255,.06);

    color:
        #aaa;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}


.playlist-modal-close:hover {
    background:
        rgba(255,255,255,.12);

    color: #fff;
}


/*==================================================*
 * MODAL ICON
 *==================================================*/

.playlist-modal-icon {
    width: 60px;
    height: 60px;

    display: flex;

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

    margin-bottom: 18px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #5b21b6
        );

    color: #fff;

    font-size: 23px;

    box-shadow:
        0 10px 30px rgba(124,58,237,.25);
}


/*==================================================*
 * MODAL TITLE
 *==================================================*/

.playlist-modal-box h2 {
    margin: 0 0 7px;

    color: #fff;

    font-size: 26px;

    font-weight: 750;
}


.playlist-modal-box > p {
    margin: 0 0 25px;

    color: #888;

    font-size: 14px;
}


/*==================================================*
 * FORM
 *==================================================*/

#createPlaylistForm {
    width: 100%;
}


#createPlaylistForm label {
    display: block;

    margin-bottom: 8px;

    color: #ddd;

    font-size: 14px;

    font-weight: 600;
}


#playlistTitle {
    width: 100%;

    padding: 14px 16px;

    border:
        1px solid rgba(255,255,255,.08);

    outline: none;

    border-radius: 12px;

    background:
        #252525;

    color: #fff;

    font-size: 15px;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


#playlistTitle::placeholder {
    color: #666;
}


#playlistTitle:focus {
    background:
        #292929;

    border-color:
        rgba(124,58,237,.7);

    box-shadow:
        0 0 0 3px
        rgba(124,58,237,.12);
}


/*==================================================*
 * MODAL ACTIONS
 *==================================================*/

.playlist-modal-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;
}


.playlist-cancel-btn,
.playlist-create-btn {
    min-width: 100px;

    padding: 12px 18px;

    border: none;

    border-radius: 999px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.playlist-cancel-btn {
    background:
        #292929;

    color:
        #aaa;
}


.playlist-cancel-btn:hover {
    background:
        #333;

    color: #fff;
}


.playlist-create-btn {
    background:
        #7c3aed;

    color: #fff;
}


.playlist-create-btn:hover {
    background:
        #9155ff;

    transform:
        translateY(-1px);
}


.playlist-create-btn:disabled {
    opacity: .65;

    cursor: wait;

    transform: none;
}


/*==================================================*
 * TEMPORARY PLAYER SONGS
 *==================================================*/

.playlist-temp-song {
    display: none !important;
}


/*==================================================*
 * TABLET
 *==================================================*/

@media (max-width: 1000px) {

    .playlists-page {
        padding: 25px;
    }


    .playlists-hero {
        min-height: 240px;

        padding: 38px;
    }


    .playlists-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap: 18px;
    }


    .playlist-card {
        padding: 15px;
    }

}


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

@media (max-width: 768px) {

    .playlists-page {
        padding: 20px;

        padding-bottom: 120px;
    }


    .playlists-hero {
        min-height: 220px;

        padding: 30px 22px;

        border-radius: 20px;
    }


    .playlists-hero h1 {
        font-size: 40px;
    }


    .playlists-hero p {
        font-size: 15px;
    }


    .playlists-section {
        margin-top: 28px;
    }


    .playlists-section-header h2 {
        font-size: 24px;
    }


    .playlists-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 15px;
    }


    .playlist-card {
        padding: 12px;

        border-radius: 16px;
    }


    .playlist-card-cover {
        border-radius: 13px;
    }


    .playlist-card-info {
        padding-top: 12px;
    }


    .playlist-card-info h3 {
        font-size: 16px;
    }


    .playlist-card-info p {
        font-size: 12px;
    }


    /*
     * Always show play button
     * on touch/mobile devices.
     */

    .playlist-play {
        width: 42px;
        height: 42px;

        right: 10px;
        bottom: 10px;

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }


    .playlist-modal-box {
        padding: 27px 22px;

        border-radius: 20px;
    }

}


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

@media (max-width: 450px) {

    .playlists-page {
        padding: 15px;

        padding-bottom: 120px;
    }


    .playlists-hero {
        min-height: 205px;

        padding: 25px 18px;

        border-radius: 18px;
    }


    .playlists-hero h1 {
        font-size: 34px;
    }


    .playlist-badge {
        font-size: 12px;

        padding: 7px 11px;
    }


    .create-playlist-btn {
        padding: 11px 17px;

        font-size: 13px;
    }


    .playlists-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 12px;
    }


    .playlist-card {
        padding: 10px;

        border-radius: 14px;
    }


    .playlist-card-cover {
        border-radius: 11px;
    }


    .playlist-card-info h3 {
        font-size: 14px;
    }


    .playlist-card-info p {
        font-size: 11px;
    }


    .playlist-play {
        width: 36px;
        height: 36px;

        right: 8px;
        bottom: 8px;

        font-size: 13px;
    }


    .playlist-modal {
        padding: 15px;
    }


    .playlist-modal-box {
        padding: 25px 18px;
    }


    .playlist-modal-box h2 {
        font-size: 23px;
    }


    .playlist-modal-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }


    .playlist-cancel-btn,
    .playlist-create-btn {
        width: 100%;
    }

}


/* =========================================================
   PLAYLIST CHOOSER OVERLAY
========================================================= */

#playlistChooser,
.playlist-chooser {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    display: none;

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

    padding: 20px;

    box-sizing: border-box;

    background: rgba(0, 0, 0, .72);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    z-index: 99999;

}


/* OPEN */

#playlistChooser.active,
.playlist-chooser.active {

    display: flex;

}


/* =========================================================
   CHOOSER BOX
========================================================= */

.playlist-chooser-box {

    position: relative;

    width: 100%;

    max-width: 520px;

    max-height: min(
        720px,
        calc(100vh - 40px)
    );

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: #181818;

    border: 1px solid rgba(
        255,
        255,
        255,
        .08
    );

    border-radius: 22px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.65),
        0 0 0 1px rgba(124,58,237,.08);

    color: #fff;

    animation:
        playlistChooserIn
        .2s ease-out;

}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes playlistChooserIn {

    from {

        opacity: 0;

        transform:
            translateY(15px)
            scale(.97);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


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

.playlist-chooser-header {

    flex: 0 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 22px 24px;

    background: #1c1c1c;

    border-bottom: 1px solid
        rgba(255,255,255,.07);

}


/* HEADER TEXT */

.playlist-chooser-header h3 {

    margin: 0;

    font-size: 21px;

    line-height: 1.2;

    font-weight: 700;

    color: #fff;

}


.playlist-chooser-header p {

    margin: 5px 0 0;

    font-size: 13px;

    color: #888;

}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.playlist-chooser-close {

    flex: 0 0 auto;

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #292929;

    color: #aaa;

    cursor: pointer;

    font-size: 15px;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;

}


.playlist-chooser-close:hover {

    background: #7c3aed;

    color: #fff;

    transform: rotate(90deg);

}


/* =========================================================
   PLAYLIST LIST
========================================================= */

.playlist-chooser-list {

    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;

    overflow-x: hidden;

    padding: 12px;

}


/* CUSTOM SCROLLBAR */

.playlist-chooser-list::-webkit-scrollbar {

    width: 7px;

}


.playlist-chooser-list::-webkit-scrollbar-track {

    background: transparent;

}


.playlist-chooser-list::-webkit-scrollbar-thumb {

    background: #444;

    border-radius: 10px;

}


.playlist-chooser-list::-webkit-scrollbar-thumb:hover {

    background: #7c3aed;

}


/* Firefox */

.playlist-chooser-list {

    scrollbar-width: thin;

    scrollbar-color:
        #444
        transparent;

}


/* =========================================================
   PLAYLIST ITEM
========================================================= */

.playlist-chooser-item {

    width: 100%;

    min-width: 0;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 10px 12px;

    margin: 0 0 6px;

    border: 1px solid transparent;

    border-radius: 14px;

    background: transparent;

    color: #fff;

    text-align: left;

    cursor: pointer;

    appearance: none;

    -webkit-appearance: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;

}


.playlist-chooser-item:last-child {

    margin-bottom: 0;

}


/* HOVER */

.playlist-chooser-item:hover {

    background: #242424;

    border-color:
        rgba(124,58,237,.3);

    transform: translateX(2px);

}


/* =========================================================
   PLAYLIST COVER
========================================================= */

.playlist-chooser-item img {

    flex: 0 0 auto;

    width: 58px;

    height: 58px;

    display: block;

    object-fit: cover;

    border-radius: 10px;

    background: #292929;

    border: 1px solid
        rgba(255,255,255,.06);

}


/* =========================================================
   PLAYLIST INFO
========================================================= */

.playlist-chooser-info {

    min-width: 0;

    flex: 1 1 auto;

    display: flex;

    flex-direction: column;

    justify-content: center;

    overflow: hidden;

}


.playlist-chooser-info strong {

    display: block;

    width: 100%;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.3;

}


.playlist-chooser-info small {

    display: block;

    margin-top: 5px;

    color: #888;

    font-size: 12px;

}


/* =========================================================
   ADD ICON
========================================================= */

.playlist-chooser-item > i {

    flex: 0 0 auto;

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: rgba(
        124,
        58,
        237,
        .15
    );

    color: #a855f7;

    font-size: 13px;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;

}


.playlist-chooser-item:hover > i {

    background: #7c3aed;

    color: #fff;

    transform: scale(1.08);

}


/* =========================================================
   LOADING
========================================================= */

.playlist-chooser-loading {

    min-height: 180px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 12px;

    color: #888;

    font-size: 14px;

}


.playlist-chooser-loading i {

    color: #8b5cf6;

    font-size: 24px;

}


/* =========================================================
   EMPTY STATE
========================================================= */

.playlist-chooser-empty {

    min-height: 220px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 30px 20px;

    box-sizing: border-box;

    color: #888;

}


.playlist-chooser-empty i {

    margin-bottom: 15px;

    font-size: 32px;

    color: #7c3aed;

}


.playlist-chooser-empty h4 {

    margin: 0 0 8px;

    color: #fff;

    font-size: 17px;

}


.playlist-chooser-empty p {

    margin: 0;

    color: #888;

    font-size: 13px;

    max-width: 280px;

}


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

@media (max-width: 600px) {

    #playlistChooser,
    .playlist-chooser {

        padding: 12px;

    }


    .playlist-chooser-box {

        max-height:
            calc(100vh - 24px);

        border-radius: 18px;

    }


    .playlist-chooser-header {

        padding: 18px;

    }


    .playlist-chooser-header h3 {

        font-size: 19px;

    }


    .playlist-chooser-list {

        padding: 9px;

    }


    .playlist-chooser-item {

        padding: 9px;

        gap: 12px;

        border-radius: 12px;

    }


    .playlist-chooser-item img {

        width: 52px;

        height: 52px;

        border-radius: 9px;

    }


    .playlist-chooser-item > i {

        width: 32px;

        height: 32px;

    }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 380px) {

    #playlistChooser,
    .playlist-chooser {

        padding: 8px;

    }


    .playlist-chooser-box {

        max-height:
            calc(100vh - 16px);

        border-radius: 16px;

    }


    .playlist-chooser-header {

        padding: 16px;

    }


    .playlist-chooser-list {

        padding: 7px;

    }


    .playlist-chooser-item img {

        width: 48px;

        height: 48px;

    }

}

/*==================================================*
 * PLAYLIST DETAILS / LISTING PAGE
 *==================================================*/

.playlist-details-page {

    width: 100%;

    padding: 30px;

    box-sizing: border-box;

    color: #fff;
}


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

.playlist-details-header {

    width: 100%;

    min-height: 300px;

    display: flex;

    align-items: center;

    gap: 35px;

    padding: 35px;

    box-sizing: border-box;

    border-radius: 24px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(124,58,237,.35),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #241044,
            #151515 55%,
            #101010
        );

    border:
        1px solid
        rgba(255,255,255,.06);

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.25);

}


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

.playlist-details-cover {

    flex: 0 0 220px;

    width: 220px;

    height: 220px;

    overflow: hidden;

    border-radius: 18px;

    background: #222;

    box-shadow:
        0 20px 45px
        rgba(0,0,0,.45);

}


.playlist-details-cover img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

}


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

.playlist-details-info {

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

}


.playlist-details-label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    color: #a78bfa;

    font-size: 14px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .5px;

}


.playlist-details-info h1 {

    margin: 0;

    color: #fff;

    font-size: clamp(
        38px,
        5vw,
        64px
    );

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -1px;

    word-break: break-word;

}


.playlist-details-info p {

    margin: 15px 0 25px;

    color: #999;

    font-size: 15px;

}


/*==================================================*
 * PLAY ALL
 *==================================================*/

.playlist-details-play {

    width: fit-content;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 13px 22px;

    border: none;

    border-radius: 999px;

    background: #7c3aed;

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;

}


.playlist-details-play:hover {

    background: #8b5cf6;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(124,58,237,.3);

}


/*==================================================*
 * SONG SECTION
 *==================================================*/

.playlist-songs-section {

    width: 100%;

    margin-top: 30px;

}


/*==================================================*
 * SONG LIST
 *==================================================*/

.playlist-song-list {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 8px;

}


/*==================================================*
 * SONG ROW
 *==================================================*/

.playlist-song {

    position: relative;

    width: 100%;

    min-height: 76px;

    display: grid;

    grid-template-columns:
        35px
        55px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 15px;

    padding: 10px 15px;

    box-sizing: border-box;

    border-radius: 14px;

    background: #181818;

    border:
        1px solid
        transparent;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;

}


.playlist-song:hover {

    background: #222;

    border-color:
        rgba(124,58,237,.2);

}


/*==================================================*
 * SONG NUMBER
 *==================================================*/

.playlist-song-number {

    width: 35px;

    color: #777;

    font-size: 14px;

    text-align: center;

}


.playlist-song:hover
.playlist-song-number {

    color: #a78bfa;

}


/*==================================================*
 * SONG COVER
 *==================================================*/

.playlist-song-cover {

    width: 55px;

    height: 55px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 9px;

    background: #252525;

}


.playlist-song-cover img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

}


/*==================================================*
 * SONG INFO
 *==================================================*/

.playlist-song-info {

    min-width: 0;

    overflow: hidden;

}


.playlist-song-info h3 {

    margin: 0;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.4;

}


.playlist-song-info p {

    margin: 5px 0 0;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: #888;

    font-size: 13px;

}


.playlist-song-info p span {

    margin: 0 5px;

    color: #555;

}


/*==================================================*
 * RIGHT SIDE
 *==================================================*/

.playlist-song-right {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 8px;

}


/*==================================================*
 * DURATION
 *==================================================*/

.playlist-song
.song-duration {

    min-width: 45px;

    color: #888;

    font-size: 13px;

    text-align: right;

}


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

.playlist-song
.favorite-btn {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: #777;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;

}


.playlist-song
.favorite-btn:hover {

    background: #292929;

    color: #fff;

    transform: scale(1.05);

}


/*==================================================*
 * SONG MENU
 *==================================================*/

.playlist-song
.song-menu {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: #777;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;

}


.playlist-song
.song-menu:hover {

    background: #292929;

    color: #fff;

}


/*==================================================*
 * EMPTY PLAYLIST
 *==================================================*/

.playlist-songs-empty {

    min-height: 350px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 40px 20px;

    box-sizing: border-box;

    border-radius: 20px;

    background: #181818;

    border:
        1px solid
        rgba(255,255,255,.05);

    text-align: center;

}


.playlist-songs-empty-icon {

    width: 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;

    border-radius: 50%;

    background:
        rgba(124,58,237,.15);

    color: #8b5cf6;

    font-size: 25px;

}


.playlist-songs-empty h2 {

    margin: 0 0 10px;

    color: #fff;

    font-size: 24px;

}


.playlist-songs-empty p {

    max-width: 400px;

    margin: 0 0 25px;

    color: #888;

    font-size: 14px;

    line-height: 1.6;

}


/*==================================================*
 * BROWSE BUTTON
 *==================================================*/

.playlist-back-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 12px 20px;

    border: none;

    border-radius: 999px;

    background: #7c3aed;

    color: #fff;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;

}


.playlist-back-btn:hover {

    background: #8b5cf6;

    transform: translateY(-2px);

}


/*==================================================*
 * ERROR
 *==================================================*/

.playlist-error {

    margin: 30px;

    padding: 50px 25px;

    border-radius: 20px;

    background: #181818;

    text-align: center;

}


.playlist-error h2 {

    margin: 0 0 10px;

    color: #fff;

}


.playlist-error p {

    margin: 0;

    color: #888;

}


/*==================================================*
 * ACTIVE / PLAYING SONG
 *==================================================*/

.playlist-song.playing {

    background:
        rgba(124,58,237,.12);

    border-color:
        rgba(124,58,237,.35);

}


.playlist-song.playing
.playlist-song-number {

    color: #a78bfa;

}


/*==================================================*
 * PLAYLIST ACTIONS
 *==================================================*/

.playlist-details-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

}


/*==================================================*
 * SHUFFLE BUTTON
 *==================================================*/

.playlist-details-shuffle {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 13px 20px;

    border: 1px solid
        rgba(255,255,255,.12);

    border-radius: 999px;

    background: rgba(
        255,
        255,
        255,
        .06
    );

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;

}


.playlist-details-shuffle:hover {

    background: rgba(
        124,
        58,
        237,
        .18
    );

    border-color:
        rgba(124,58,237,.45);

    transform:
        translateY(-2px);

}


.playlist-details-shuffle.active {

    background: #7c3aed;

    border-color: #7c3aed;

}


/*==================================================*
 * LOADING STATE
 *==================================================*/

.playlist-details-play:disabled,
.playlist-details-shuffle:disabled {

    opacity: .6;

    cursor: wait;

    transform: none;

}


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

@media (max-width: 700px) {

    .playlist-details-actions {

        width: 100%;

        justify-content: center;

    }


    .playlist-details-play,
    .playlist-details-shuffle {

        flex: 1;

        max-width: 220px;

    }

}


@media (max-width: 450px) {

    .playlist-details-actions {

        gap: 8px;

    }


    .playlist-details-play,
    .playlist-details-shuffle {

        padding:
            11px 14px;

        font-size: 13px;

    }

}

/*==================================================*
 * TABLET
 *==================================================*/

@media (max-width: 900px) {

    .playlist-details-page {

        padding: 25px;

    }


    .playlist-details-header {

        min-height: 260px;

        padding: 28px;

        gap: 25px;

    }


    .playlist-details-cover {

        flex-basis: 180px;

        width: 180px;

        height: 180px;

    }


    .playlist-details-info h1 {

        font-size: 42px;

    }

}


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

@media (max-width: 700px) {

    .playlist-details-page {

        padding: 18px;

    }


    .playlist-details-header {

        min-height: auto;

        flex-direction: column;

        align-items: flex-start;

        padding: 25px;

        gap: 20px;

        border-radius: 20px;

    }


    .playlist-details-cover {

        width: 170px;

        height: 170px;

        flex-basis: 170px;

        align-self: center;

        border-radius: 15px;

    }


    .playlist-details-info {

        width: 100%;

        text-align: center;

        align-items: center;

    }


    .playlist-details-info h1 {

        font-size: 36px;

    }


    .playlist-details-info p {

        margin-bottom: 20px;

    }


    .playlist-details-play {

        width: 100%;

        max-width: 220px;

    }


    .playlist-song {

        grid-template-columns:
            42px
            minmax(0, 1fr)
            auto;

        gap: 12px;

        min-height: 70px;

        padding: 8px 10px;

    }


    .playlist-song-number {

        width: 42px;

    }


    .playlist-song-cover {

        display: none;

    }


    .playlist-song-info h3 {

        font-size: 14px;

    }


    .playlist-song-info p {

        font-size: 12px;

    }


    .playlist-song
    .song-duration {

        display: none;

    }

}


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

@media (max-width: 450px) {

    .playlist-details-page {

        padding: 12px;

    }


    .playlist-details-header {

        padding: 20px;

    }


    .playlist-details-cover {

        width: 145px;

        height: 145px;

        flex-basis: 145px;

    }


    .playlist-details-info h1 {

        font-size: 30px;

    }


    .playlist-song {

        grid-template-columns:
            32px
            minmax(0, 1fr)
            76px;

        gap: 8px;

        padding: 8px;

        border-radius: 11px;

    }


    .playlist-song-number {

        width: 32px;

        font-size: 12px;

    }


    .playlist-song-right {

        gap: 2px;

    }


    .playlist-song
    .favorite-btn,
    .playlist-song
    .song-menu {

        width: 32px;

        height: 32px;

    }


    .playlist-song-info h3 {

        font-size: 13px;

    }


    .playlist-song-info p {

        font-size: 11px;

    }

}