* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    min-height: 100dvh;
    padding: 64px 8px 8px 8px;
    gap: 8px;
    background-color: #000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 64px;
    padding: 8px;
}

main {
    width: 78%;
    border-radius: 8px;
    background: #121212;
    overflow: hidden;
}

aside {
    width: 22%; 
    border-radius: 8px;
    background: #121212;
    overflow: hidden;
}

.logo-header {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 72px;
    aspect-ratio: 1/1;
    color: #FFF;

    svg:hover {
        color: #1ed760;
    }
}

.header-aside {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    padding: 12px 16px;
    gap: 18px;
}

.container-aside {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}

.titulo-aside {
    display: inline-flex;
    justify-content: start;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 4px 8px;
    color: #b3b3b3;
    font-weight: 600;
    font-size: 1rem;
}

.btn-aside {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
    color: #FFFFFF;
    background: hsla(0,0%,100%,.1);
    border: none;
    border-radius: 9999px;

    &.active {
        background: #1ed760;

        &:hover {
            background: #3be477;
        }
    }
}

.btn-aside:hover {
    background: hsla(0,0%,100%,.15);
}

.btn-aside-agregar {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: 8px;
    color: #b3b3b3;
    background: transparent;
    border: none;
    border-radius: 9999px;

    &.active {
        .container-btn-aside-agregar {
            display: flex;
        }
    }

}

.btn-aside-agregar:hover {
    background: #1f1f1f;
}

.container-btn-aside-agregar {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translateY(115%);
    display: none;
    flex-direction: column;
    width: max-content;
    background: #2a2a2a;
    padding: 4px;
    font-size: 0.875rem;
    border-radius: 4px;

    span {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-weight: 500;
        padding: 12px;
        color: hsla(0,0%,100%,.9);
        border-radius: 2px;

        &:hover {
            background: hsla(0,0%,100%,.1);
        }
    }
}

.contenido-aside {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.artista {
    display: flex;
    cursor: pointer;
    align-items: center;
    width: 100%;
    height: 64px;
    padding: 8px;
    gap: 12px;
    border-radius: 4px;

    img {
        height: 100%;
        aspect-ratio: 1/1;
        border-radius: 9999px;
    }

    div {
        h3 {
            font-size: 1rem;
            color: #fff;
            line-height: normal;
            margin: 0;
        }

        p {
            font-size: 0.875rem;
            color: #b3b3b3;
            line-height: normal;
            margin: 0;
        }
    }
}

.artista:hover {
    background: #2a2a2a;
}

.album {
    display: flex;
    cursor: pointer;
    align-items: center;
    width: 100%;
    height: 64px;
    padding: 8px;
    gap: 12px;
    border-radius: 4px;

    &:hover {
        background: #2a2a2a;
    }

    img {
        height: 100%;
        aspect-ratio: 1/1;
        border-radius: 4px;
    }

    div {
        h3 {
            font-size: 1rem;
            color: #fff;
            line-height: normal;
            margin: 0;
        }

        p {
            font-size: 0.875rem;
            color: #b3b3b3;
            line-height: normal;
            margin: 0;
        }
    }
}

.header-album {
    display: flex;
    width: 100%;
    height: 15%;
    padding: 18px;
    gap: 18px;
    background: linear-gradient(to bottom, rgb(30, 215, 96, .2), transparent);

    img {
        width: 232px;
        aspect-ratio: 1/1;
        object-fit: cover;
        object-position: center;
        border-radius: 4px;
    }

    div {
        display: flex;
        flex-direction: column;
        color: #fff;
        align-self: flex-end;

        span {
            font-size: 0.875rem;
            margin: 0;
        }

        h1 {
            font-size: 4.5rem;
            line-height: normal;
            font-weight: 800;
            margin: 0;
        }

        p {
            font-size: 0.875rem;
            font-weight: 700;
            margin: 0;
        }
    }
}

.canciones-album {
    width: 100%;
    padding: 18px;

    table {
        width: 100%;
        margin-bottom: 1rem;
        vertical-align: top;
        border-color: red;
        color: #b3b3b3;
        background: transparent;

        thead {
            vertical-align: bottom;

            tr {
                padding-bottom: 8px;
                border-bottom: 1px solid hsla(0, 0%, 100%, .1);

                th {
                    padding: 8px 14px;

                    &:first-child {
                        width: 3%;
                        text-align: center;
                    }

                    &:last-child {
                        text-align: end;
                    }
                }
            }
        }

        tbody {
            vertical-align: inherit;

            tr {
                td {
                    padding: 8px 14px;

                    &:first-child {
                        text-align: center;
                    }

                    &:last-child {
                        text-align: end;
                    }

                    &.nombre-cancion {
                        color: #fff;
                        font-weight: 500;
                    }
                }
            }
        }
    }
}

.header-artista {
    display: flex;
    width: 100%;
    height: 15%;
    padding: 18px;
    gap: 18px;
    background: linear-gradient(to bottom, rgb(30, 215, 96, .2), transparent);

    img {
        width: 232px;
        aspect-ratio: 1/1;
        object-fit: cover;
        object-position: center;
        border-radius: 4px;
    }

    div {
        display: flex;
        flex-direction: column;
        color: #fff;
        align-self: flex-end;

        span {
            font-size: 0.875rem;
            margin: 0;
        }

        h1 {
            font-size: 4.5rem;
            line-height: normal;
            font-weight: 800;
            margin: 0;
        }

        p {
            font-size: 0.875rem;
            font-weight: 700;
            margin: 0;
        }
    }


}

.biografia-artista {

    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 18px;
    gap: 8px;

    h2 {
        font-size: 2rem;
        color: #fff;
        font-weight: 700;
    }
    p {
        font-size: 0.875rem;
        font-weight: 400;
        margin: 0;
        color: #fff;
        align-self: flex-end;
    }
}

.albumes-artista {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 18px;
    gap: 8px;

    h2 {
        font-size: 2rem;
        color: #fff;
        font-weight: 700;
    }

    .album-list {
        display: flex;
        gap: 18px;

        .album {
            display: flex;
            flex-direction: column;
            align-items: start;
            width: 15%;
            height: auto;
            background: transparent;
            padding: 8px;
            border-radius: 8px;

            &:hover {
                background: #1a1a1a;
            }
    
            img {
                width: 100%;
                height: auto;
                aspect-ratio: 1/1;
                border-radius: 4px;
                object-fit: cover;
                object-position: center;
            }

            h3 {
                font-size: 1.2rem;
                color: white;
                font-weight: 500;
            }
        }
    }
}


#add-artist-form-container {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.8);
}

.formulario-artista {
    display: flex;
    /* flex-direction: column; */
    flex-wrap: wrap;
    width: 50%;

    .input {
        display: flex;
        width: 50%;
        flex-direction: column;
        gap: 8px;
        padding-inline: 18px;
        margin-bottom: 18px;

        label {
            color: #fff;
            font-weight: 600;
        }

        input {
            border-radius: 10px;
            height: 40px;
            padding: 8px 10px;
        }

        textarea {
            border-radius: 10px;
            padding: 8px 10px;
        }
        

        &.input-large {
            width: 100%;
        }
    }
}

.btn-formulario {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 18px;
    color: #fff;
    background: #1ed760;
    border: none;
    border-radius: 9999px;
    margin-left: 18px;
}

.hidden {
    display: none!important;
}