body {
    font-family: 'Lexenda';
    color: white;
    font-size: 1rem;
    background-color: black;
    background-image: radial-gradient(ellipse 90% 80% at 0% 30%, rgba(0, 18, 122, 0.233), rgba(156, 0, 161, 0.144));
    background-attachment: fixed;
}

.scroll-blocked {
    overflow-y: hidden;
}

/*Menú de usuario*/

#user-menu {
    display: block;
    max-height: 0;
    width: fit-content;
    overflow: hidden;
    position: fixed;
    background-color: rgb(5, 0, 27);
    border: 1px solid rgba(255, 255, 255, 0.329);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    transition: max-height 0.3s ease-in-out;
    top: 70px;
    margin-right: 20px;
    right: 0;
    z-index: 1;

    span {
        margin-left: 37px;
    }

    svg {
        position: absolute;
        transition: stroke ease-in-out 0.2s;
        margin-top: 1.3px;
    }


    a {
        color: white;
        transition: color ease-in-out 0.2s;
    }

    a:hover {
        color: rgb(168, 168, 168);

        >svg {
            stroke: rgb(168, 168, 168);
        }
    }

    >div.user-sections {
        padding-top: 20px;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;

        >div.user-mains {
            padding-left: 20px;
            padding-right: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.329);
            padding-bottom: 15px;

            >div.name-pic {
                display: flex;
                align-items: center;
                gap: 15px;

                >img {
                    width: 42px;
                    border-radius: 100%;
                }
            }
        }

        >div.user-contact {
            padding-left: 20px;
            padding-right: 20px;
        }
    }
}

#user-menu.user-menu-visible {
    max-height: 100%;
}

/*---*/

/*Barra Scroll Lateral*/
/* Variables globales */
:root {
    --scrollbar-track: rgb(5, 0, 27);
    --scrollbar-thumb: #ffffff;
    --scrollbar-thumb-hover: #929292;
    --scrollbar-border: rgb(5, 0, 27);
    --scrollbar-width: 4px;
}

/* Firefox */
@supports (-moz-appearance: none) {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    }
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    width: var(--scrollbar-width);
    /* Barra vertical */
    height: var(--scrollbar-width);
    /* Barra horizontal */
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
    border: 1px solid var(--scrollbar-border);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Internet Explorer y Edge Legacy */
body {
    scrollbar-base-color: var(--scrollbar-thumb);
}

/*---*/

/*Exclusivo de la pantalla de carga*/
div#loading-screen.no-active {
    display: none;
}

div#loading-screen.div-load-animation {
    opacity: 0;
}

div#loading-screen {
    position: fixed;
    width: 100dvw;
    height: 100dvh;
    background-color: black;
    background-image: radial-gradient(ellipse 90% 80% at 0% 30%, rgba(0, 18, 122, 0.233), rgba(156, 0, 161, 0.144));
    background-attachment: fixed;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2dvw;
    transition: opacity ease-out 0.2s;

    h1 {
        font-family: 'Borel';
        width: 60%;
        font-size: 8dvw;
        top: 3.1dvw;
        position: relative;
    }

    img {
        width: 12dvw;
        height: auto;
        rotate: -180deg;
        transition: rotate ease-in-out 0.3s;
    }

    img.load-animation {
        rotate: 0deg;
    }
}

/*---*/

header {
    height: 74px;
    position: fixed;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 2;
    background-color: rgb(5, 0, 27);

    div.header-menu-button {
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        user-select: none;
    }

    div.header-menu-button:hover {
        cursor: pointer;
    }

    div.header-logo {
        user-select: none;
        display: flex;
        align-items: center;
        gap: 5px;

        p {
            font-family: 'Borel';
            top: 6px;
            position: relative;
        }
    }

    div.header-search {
        background-color: rgba(255, 255, 255, 0.082);
        border: 1px solid rgba(255, 255, 255, 0.151);
        border-radius: 10px;
        padding: 10px 20px;
        margin: 0;
        color: rgba(255, 255, 255, 0.534);
        height: 42px;
        display: flex;
        align-items: center;
        gap: 20px;
        user-select: none;

        p {
            font-weight: 300;
        }

        img {
            opacity: 53%;
        }
    }

    div.header-user-logo {
        border: 2px solid #3584e4;
        border-radius: 100%;
        display: flex;
        padding: 3px;
        margin-left: auto;
        user-select: none;
    }

    div.header-user-logo:hover {
        cursor: pointer;
    }
}

aside.menu {
    user-select: none;
    position: fixed;
    top: 74px;
    height: calc(100dvh - 74px);
    width: 65.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
    padding: 9px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    z-index: 2;
    transform: translateX(-100%);
    transition: transform ease-in-out 0.2s;

    div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        width: 100%;
        border-radius: 5px;
        transition: background-color ease-in-out 0.2s;
        padding: 5px 0;

        svg {
            transition: stroke-width ease-in-out 0.2s;
        }

        small {
            font-size: 10px;
            font-weight: 300;
        }
    }

    div.button-active {
        background-color: rgba(255, 255, 255, 0.082);

        svg {
            stroke-width: 1.75;
        }

    }

    div:hover {
        cursor: pointer;
        background-color: rgba(255, 255, 255, 0.062);
    }
}

aside.menu-visible {
    transform: translateX(0);
}

main {
    display: flex;
    justify-content: center;
    padding-top: calc(74px + 90px);
    padding-bottom: 74px;

    >section {
        display: none;
    }

    >section.section-active {
        display: block;
        max-width: 85rem;
    }

    div.scroll-zone::-webkit-scrollbar {
        display: none;
    }

    section.home {

        article.groupsongs-style {
            div.title-logo {
                display: flex;
                align-items: center;
                gap: 20px;
            }

            div.title-logo:hover {
                cursor: pointer;

                >img {
                    filter: brightness(0.7) contrast(1.2) saturate(0.8);
                }
            }
        }

        article.groupsongs-style,
        article.genresongs-style {
            div.music-section {
                display: flex;
                gap: 30px;
                overflow-x: scroll;
                /*Hidden scrollbar*/
                scrollbar-width: none;
                /* Firefox */
                -ms-overflow-style: none;
                /* Internet Explorer & Edge */

                div.song-card {
                    display: flex;
                    flex-direction: column;
                    width: 201.666666667px;
                    height: auto;
                    flex-shrink: 0;
                    gap: 20px;

                    >div.image-card:hover {
                        cursor: pointer;

                        >img {
                            opacity: 1;
                            background-color: #0000006e;
                        }
                    }

                    >div.image-card {
                        border-radius: 20px;
                        background-size: cover;
                        width: 201.666666667px;
                        height: 201.666666667px;
                        display: flex;
                        align-items: center;
                        justify-content: center;

                        >img {
                            opacity: 0;
                            width: 201.666666667px;
                            height: 201.666666667px;
                            aspect-ratio: 1/1;
                            border-radius: 20px;
                            padding: 70px;
                            transition: background-color ease-in-out 0.2s, opacity, ease-in-out 0.2s;
                        }
                    }

                    >div.song-info {
                        display: flex;
                        flex-direction: column;

                        small:nth-child(2) {
                            font-weight: 300;
                            color: rgb(155, 155, 155);
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            display: inline-block;
                            max-width: 300px;
                        }
                    }

                }
            }
        }

        article.quicksongs-style {
            div.music-section {
                display: flex;
                flex-direction: row;
                gap: 30px;
                overflow-x: scroll;
                scrollbar-width: none;
                -ms-overflow-style: none;

                div.column-songs {
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    flex-shrink: 0;

                    div.song-card:hover {
                        cursor: pointer;

                        >div.image-card {
                            img {
                                opacity: 1;
                                background-color: #0000006e;
                            }
                        }
                    }

                    div.song-card {
                        width: 317.5px;
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        height: auto;
                        gap: 10px;

                        >div.image-card {
                            border-radius: 10px;
                            background-size: cover;
                            width: 60px;
                            height: 60px;
                            display: flex;
                            align-items: center;
                            justify-content: center;

                            >img {
                                opacity: 0;
                                width: 60px;
                                height: 60px;
                                aspect-ratio: 1/1;
                                border-radius: 10px;
                                padding: 10px;
                                transition: background-color ease-in-out 0.2s, opacity, ease-in-out 0.2s;
                            }
                        }

                        >div.song-info {
                            display: flex;
                            flex-direction: column;

                            small:nth-child(2) {
                                font-weight: 300;
                                color: rgb(155, 155, 155);
                                white-space: nowrap;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                display: inline-block;
                                max-width: 200px;
                            }
                        }
                    }
                }
            }
        }

        article.groupartists-style {
            div.music-section {
                display: flex;
                gap: 30px;
                overflow-x: scroll;
                /*Hidden scrollbar*/
                scrollbar-width: none;
                /* Firefox */
                -ms-overflow-style: none;
                /* Internet Explorer & Edge */

                div.song-card {
                    display: flex;
                    flex-direction: column;
                    width: 201.666666667px;
                    height: auto;
                    flex-shrink: 0;
                    gap: 20px;

                    >div.image-card:hover {
                        cursor: pointer;
                        filter: brightness(0.7) contrast(1.2) saturate(0.8);
                    }

                    >div.image-card {
                        border-radius: 100%;
                        background-size: cover;
                        width: 201.666666667px;
                        height: 201.666666667px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        transition: filter ease-in-out 0.2s;
                    }

                    >div.song-info {
                        display: flex;
                        flex-direction: column;

                        small {
                            text-align: center;
                        }
                    }

                }
            }
        }

        article.slider-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 90px;

            div.slider-section-header {
                display: flex;
                align-items: center;
                gap: 20px;

                img {
                    width: 50px;
                    height: 50px;
                    border-radius: 100%;
                    aspect-ratio: 1/1;
                    transition: filter ease-in-out 0.2s;
                }

                div.scroll-controls {
                    margin-left: auto;
                    display: flex;
                    gap: 5px;
                    justify-content: center;

                    img {
                        width: 24px;
                        user-select: none;
                    }

                    img:hover {
                        cursor: pointer;
                    }
                }
            }
        }
    }

    section.explore {}

    section.library {
        width: 100dvw;

        article.playlists {
            margin-bottom: 90px;

            div.playlists-section {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
                gap: 20px;
                justify-content: center;
                padding: 0 15px;

                div.playlist-card {
                    display: flex;
                    flex-direction: column;
                    width: 140px;
                    height: auto;
                    flex-shrink: 0;
                    gap: 10px;

                    >div.image-card:hover {
                        cursor: pointer;
                        filter: brightness(0.7) contrast(1.2) saturate(0.8);
                    }

                    >div.image-card {
                        border-radius: 20px;
                        background-size: cover;
                        width: 140px;
                        height: 140px;
                        transition: filter ease-in-out 0.2s;
                    }

                    >div.playlist-info {
                        display: flex;
                        flex-direction: column;

                        small:nth-child(2) {
                            font-weight: 300;
                            color: rgb(155, 155, 155);
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            display: inline-block;
                            max-width: 300px;
                        }
                    }

                }
            }
        }
    }


}

footer {
    height: 74px;
    width: 100%;
    border-top: 2px solid rgb(49, 49, 49);
    background-color: rgb(12, 12, 12);
    position: fixed;
    bottom: 0;
    display: flex;
    padding: 15px 20px;
    align-items: center;
    z-index: 2;

    div.music-controls {
        display: flex;
        align-items: center;
        gap: 20px;
        width: 20%;

        small {
            color: rgb(131, 131, 131);
            font-weight: 200;
        }
    }

    div.song-card {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 60%;

        div {
            display: flex;
            flex-direction: column;

            small {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                display: inline-block;
                max-width: 300px;

            }

            small:last-child {
                font-weight: 200;
            }
        }
    }

    div.right-controls {
        width: 20%;
        gap: 20px;
        display: flex;
        justify-content: end;
    }
}