@charset "utf-8";

*{
    margin: 0;
    padding: 0px;
    border: 0px;
    text-decoration: none;
    box-sizing: border-box;
    font-size: calc(8 * 100vw / 720);
    font-family: "Outfit" , "Noto Sans JP" , sans-serif;
    font-optical-sizing: auto;
    font-weight: 450;
    font-style: normal;
}

button{
    background-color: transparent;
    transform: .3s;
}

button:disabled{
    filter: brightness(0.5);
}

:root{
    --high : #ffffff;
    --highPink : #fffafb;
    --accent : #ff324b;
    --under : #3d3536;
    --k65 : hsl(0, 0%, 35%);
}

/*=======
body
=======*/

body{
    width: 100dvw;
    height: 100dvh;
    background-color: var(--under);
    display: grid;
    grid-template-rows: 12rem 1fr 14rem 17rem;
}

/*=======
header
=======*/

header{
    width: 100%;
    height: 100%;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
}

.header-backbtn{
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-color: white;
    mask-image: url(/img/chevron_backward_24dp_000000_FILL1_wght400_GRAD0_opsz24.svg);
    mask-position: center;
    mask-size: 150%;
    mask-repeat: no-repeat;
    opacity: 50%;
}

.applogo{
    width: fit-content;
    height: 100%;
    display: flex;
    align-items: center;
}

.applogo img{
    width: auto;
    height: 3rem;
    aspect-ratio: 1 / 1;
    margin-right: 1rem;
}

.applogo p{
    font-size: 4rem;
    line-height: 1;
    color: white;
    font-weight: 500;
}

/*=======
contentViewport
=======*/

#contentViewport{
    width: 100%;
    height: 100%;
    padding: 0px 4rem 4rem;
}

/*=======
main
=======*/

main{
    width: 100%;
    height: 100%;
    position: relative;
    background-color: var(--k65);
    padding: 3rem 4rem;
    transition: .5s;
}

main.m-ns{
    background-color: var(--k65);
}

main.m-s{
    background-color: var(--accent);
}

.music-lengthbar__outer,
.music-lengthbar__inner{
    width: 100%;
    height: 0.25rem;
    display: block;
}

.music-lengthbar__outer{
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: gray;
}

.music-lengthbar__inner{
    background-color: var(--high);
}

.player-wrapper{
    width: 100%;
    height: 100%;
    display: flex;
}

.player-jacketimg{
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--high);
    border-radius: 0.5rem;
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-right: 2rem;
}

.player-musicdetail{
    width: 100%;
    height: 8rem;
    display: grid;
    grid-template-rows: 5rem 2rem;
    padding-bottom: 1rem;
    color: var(--high);
}

.music-title{
    font-size: 3rem;
    line-height: 5rem;
    font-weight: 600;
}

.music-artist{
    font-size: 2rem;
    line-height: 1;
    opacity: 0.5;
}

.player-btns__container{
    max-width: 23rem;
    width: fit-content;
    height: 100%;
    display: flex;
    justify-content: right;
    gap: 2rem;
}

.player-btns__container button{
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--high);
    mask-position: center;
    mask-size: 75%;
    mask-repeat: no-repeat;
}

#playBtn.pause{
    mask-image: url(/img/play_circle_24dp_000000_FILL1_wght400_GRAD0_opsz24.svg);
}

#playBtn.reset{
    mask-image: url(/img/arrow_circle_left_24dp_000_FILL1_wght400_GRAD0_opsz24.svg);
}

#playBtn{
    mask-image: url(/img/pause_circle_24dp_000000_FILL1_wght400_GRAD0_opsz24.svg);
}

#quitBtn{
    mask-image: url(/img/cancel_24dp_000_FILL1_wght400_GRAD0_opsz24.svg);
}

#listBtn{
    mask-image: url(/img/list_24dp_000000_FILL0_wght400_GRAD0_opsz24.svg);
}

/*=======
nav
=======*/

nav{
    background-color: black;
    width: 100%;
    height: 100%;
    padding: 4rem;
    display: flex;
    justify-content: center;
    gap: 12rem;
}

.nav-actionbtn{
    width: 9rem;
    height: auto;
    aspect-ratio: 1 / 1;
    background-color: transparent;
    text-align: center;
}

.nav-actionbtn__icon{
    width: 100%;
    height: 6rem;
    background-color: var(--high);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.nav-actionbtn p{
    width: 100%;
    height: 3rem;
    color: white;
    font-size: 1.5rem;
    line-height: 3rem;
}

/*=======
search.html
=======*/

.search-wrapper{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.searchbar-container{
    width: 100%;
    height: 6rem;
    position: relative;    
}

.searchbar{
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    padding-left: 6rem;
    font-size: 2rem;
}

.searchbar-container::before{
    position: absolute;
    top: 0px;
    left: 0px;
    opacity: 0.5;
    display: block;
    content: "";
    width: 2rem;
    height: 2rem;
    margin: 2rem;
    background-color:black;
    mask-image: url(/img/search_24dp_000000_FILL0_wght400_GRAD0_opsz24.svg);
    mask-size: cover;
    mask-repeat: no-repeat;
    mask-position: center;
    pointer-events: none;
}

.search-result{
    width: 100%;
    font-size: 2rem;
    line-height: 3rem;
    color: var(--high);
    margin-top: 4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--high);
}

.search-result__container{
    width: 100%;
    height: 100%;
    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-result__content{
    width: 100%;
    height: 8rem;
    display: flex;
    text-align: left;
}

.search-result__jacketimg{
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--high);
    border-radius: 0.5rem;
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-right: 2rem;
}

.search-result__musicdetail{
    width: 100%;
    height: 8rem;
    display: grid;
    grid-template-rows: 5rem 2rem;
    padding-bottom: 1rem;
    color: var(--high);
}

/*=======
main.html
=======*/

.main-wrapper{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.main-content{
    width: 100%;
    height: fit-content;
    display: grid;
    row-gap: 2rem;
    grid-template-rows: 8rem 18rem;
}

.main-content__artist,
.main-content__music{
    width: 100%;
    display: flex;
    align-items: center;
}

.artist-icon{
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    padding: 1.5rem;
    border-radius: 100%;
    background-color: var(--high);
}

.artist-name{
    margin-left: 1rem;
    font-size: 3rem;
    font-weight: 600;
    line-height: 8rem;
    color: var(--high);
}

.main-content__music{
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
    gap: 4rem;
}

.music-wrapper{
    min-width: 15rem;
    height: 18rem;
    display: grid;
    grid-template-rows: 15rem 3rem;
}

.music-wrapper__jacket{
    width: 100%;
    height: 100%;
    grid-row: 1 / 2;
    background-color: #fffafb;
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.music-wrapper__title{
    font-size: 1.5rem;
    line-height: 3rem;
    color: var(--high);
}