body{
    position: relative;
    display: grid;
    grid-template:
    'header header' 56px
    'aside nav' 58px
    'aside .' 1fr
    /240px 1fr;
    line-height: 18px;
    min-width: 500px;
    box-sizing: border-box;
}
body .fixed{
    position: fixed;
    z-index: 1;
   }
body .fixed .header{
    display: flex;
    width: 100vw;
    height: 56px;
    grid-area: header;
    padding: 0 16px;
    background-color: white;
    justify-content: space-between;
    box-sizing: border-box;
    min-width: 500px;
}
.list_logo{
    width: 169px;
    height: 56px;
    margin:0 0 0 16px;
    display: flex;
    align-items: center;
}
.list_logo .list{
    width: 24px;
    height: 24px;
    padding: 8px;
    cursor: pointer;
}
.list_logo .logo_locate{
   display: flex;
   align-items: center;
   width: 129px;
   height: 56px;
}
.list_logo .logo_locate .logo{
    width: 90px;
    height: 20px;
    padding: 18px 14px 18px 16px;
    cursor: pointer;
}
.list_logo .logo_locate .locate{
    width: 12px;
    height: 44px;
    margin: 12px 0 0 -10px;
    font-size: 10px;
    color: #606060;
}
.search{
    margin:0 0 0 68px;
    width: 639px;
    height: 40px;
    min-width: 110px;
    align-self: center;
    display: flex;
    background-color: white;  
}
.search_bar_button_keyboard{
    border: 1px solid #eee;
    width: max-content;
    min-width: 80px;
    height: max-content;
    display: flex;
}
.search_bar{
    padding: 1px 4px;
    width: 495px;
    min-width: 0;
    height: 40px;
    box-sizing:border-box;
    font-size: 18px;
    border: 0;
}
.keyboard{
    width: 19px;
    height: 5px;
    padding: 10px 4px 0 4px;
    align-self: center;
    background-image: url("./tia.png");
    margin-right: 5px;
    cursor: pointer;
    background-repeat: no-repeat;
}
.keyboard:hover{
    background-image: url("./다운로드.gif");

}
.search_button{
    width: 62px;
    height: 40px;
    padding: 5px 8px;
    border-left: 1px solid #eee;
    background-color: #f8f8f8;
    box-sizing: border-box;
    cursor: pointer;
    flex-shrink: 0;
}
.search_button:hover{
    background-color: #f0f0f0;
}
.rec_search{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 8px;
    margin-left: 5px;
    background-color: #f8f8f8;
    cursor: pointer;
    flex-shrink: 0;
}
.user_manu{
    width: 156px;
    height: 40px;
    align-self: center;
    display: flex;
    justify-content: space-evenly;
    margin: 0 0 0 80px;
}
.video{
    width: 24px;
    height: 24px;
    padding: 8px;
    cursor: pointer;
}
.notice{
    width: 24px;
    height: 24px;
    padding: 8px;
    cursor: pointer;
}
.account{
    width: 48px;
    height: 32px;
    padding: 1px 6px;
    cursor: pointer;
}
.account img{
    width: 40px;
    height: 40px;
    border-radius: 50px;
    border: 0;
}



body .fixed .nav{
    width: calc(100vw - 240px);
    height: 58px;
    grid-area: nav;
    display: flex;
    border-top: 1px solid #dbdbdb;
    border-bottom: 1px solid #dbdbdb;
    background-color: white;
    min-width: 468px;
    overflow: hidden;
    margin-left: 10px;
    justify-content: center;
    align-items: center;
    position: relative;
    left: 240px;


}
.nav div{
    margin-left: 12px;
    padding: 5px 12px;
    border-radius: 16px;
    background-color: #dbdbdb;
    height: 20px;
    align-items: center;
    border: 1px solid #f8f8f8;
    white-space: nowrap;
    cursor: pointer;
}
.nav .on{
    background-color: #606060;
    color: white;
}


body .fixed .aside{
    width: 240px;
    height: calc(100vh - 56px);
    background-color: white;
    grid-area: aside;
    overflow: auto;
    position: relative;
    top: 56px;
    box-sizing: border-box;
}
.aside>div{
    border-bottom: 1px solid #bdbdbd;
    width: 250px;
    padding: 12px 0;
}
.aside div ul li{
    width: 200px;
    height: 40px;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 0 25px;
    cursor: pointer;
    font-size: 16px;
}
.aside div ul li .des{
    text-overflow: ellipsis;
    white-space: nowrap;
}
.aside div ul li:hover{
    background-color: #bdbdbd;
}
.aside div ul li.ul-title{
    pointer-events: none;
}
.aside p a{
    cursor: pointer;
    margin-right: 8px;
}
.aside p{
    font-size: 13px;
    color: #606060;
    padding: 16px 24px 0 24px;
    line-height: 16px;
}
.aside .p{
    color: #909090;
}
.aside a.blue{
    color: blue;
}
.aside div ul li .img{
    width: 24px;
    height: 24px;
    margin-right: 24px;
}
.aside div ul li div img{
    width: 30px;
    height: 30px;
    margin-right: 24px;
    border-radius: 50%;
}


body .main{
    display: flex;    
    background-color: rgba(250,250,250,1);
    width: calc(100vw - 240px);
    height: fit-content;
    flex-wrap: wrap;    
    justify-content: center;
    border-top:1px solid #dbdbdb;
    grid-area: main;
}


body .main .video{
    background-color: rgba(250,250,250,1);
    margin: 16px;
    width: 296px;
    padding: 2px;
    height: 287px;
    position: relative;
}
body .main .video .video-img-time{
    width: 296px;
    height: 166px;
    position: relative;
}
body .main .video .video-img-time img{
    width: 296px;
    height: 166px;
}
body .main .video .video-img-time .ad-share{
    width: 16px;
    height: 16px;
    padding: 6px;
    margin: 6px;
    position: absolute;
    bottom: 6px;
    right: 6px;
    background-color: black;
    fill: white;
}
body .main .video .ad{
    display: none;
}
body .main .video .ad .ad-hover{
    background-color: rgba(0,0,0,0.5);
    width: 296px;
    height: 166px;
    position: absolute;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;

}
body .main .video .ad .ad-hover .ad-hover-icon{
    width: 24px;
    height: 24px;
    margin: 0 0 0 8px;
    fill: white;
}
body .main .video:hover .ad{
    display: block;
}
body .main .video .title-list{
    display: flex;
    margin: 12px 2px 6px;
    width: 292px;
    height: 30px;
    background-color: rgba(250,250,250,1);
}
body .main .video .title-list .title{
    font-size: 14px;
    color: black;
    background-color: rgba(250,250,250,1);;
}
body .main .video .title-list .list{
    width: 24px;
    height: 24px;
    position:absolute;
    right: 10px;
}
body .main .video .ad-account{
    margin: 12px 0;
    font-weight: 700;
}
body .main .video .ad-account .ad-complete{
    font-weight: normal;
}
body .main .video .video-img-time .video-time{
    background-color: black;
    color: white;
    margin: 4px;
    padding: 3px 4px;
    position: absolute;
    bottom: 0;
    right: 0;
}
body .main .video .video-img-time .hover{
    background-color: black;
    color: white;
    margin: 4px;
    padding: 3px 4px;
    position: absolute;
    bottom: 0;
    right: 0;
    display: none;
}
body .main .video .video-img-time:hover .hover{
    display: block;
}
body .main .video .account-title{
    display: flex;
    margin: 12px 2px 6px;
    width: 292px;
    height: 120px;
    background-color: rgba(250,250,250,1);
}
body .main .video .account-title .video-account img{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    margin-right: 10px;
}
body .main .video .account-title .video-title{
    width: 199px;
    height: 120px;
}
body .main .video .account-title .video-title .title{
    text-overflow: ellipsis;
    font-size: 14px;
    margin-bottom: 12px;
    width: 199px;
    height: 40px;
    display: inline-block;
}
body .main .video .account-title .video-title .video-account-name{
    font-size: 12px;
    margin-bottom: 12px;
    display: inline-block;
}
body .main .video .account-title .video-title .view-date{
    font-size: 12px;
    display: inline-block;
}
body .main .video .account-title .list-hover{
    width: 24px;
    height: 24px;
    margin: 8px;
    display: none;
}
body .main .video:hover .list-hover{
    display: block;
}
@media screen and (max-width: 770px) {
    body{
        display: flex;
        flex-direction: column;
    }
    .aside{
        display: none;
    }
    body .fixed .nav{
        width: 100vw;
        position: relative;
        left: 0;
    }
    body .main{
        top: 116px;
        width: 100vw
    }
}
@media screen and (max-width: 640px) {
    .search{
        margin: 0 68 0 0px;
        align-self: right;  
    }
    .search_bar{
        display: none;
    }
    .keyboard{
        display: none;
    }
    .search_button{
        border: 0;
        background-color: rgba(255,255,255,0);
        position: relative;
        right: -110px;
    }
    .search_button:hover{
        background-color: rgba(255,255,255,0);
    }
    .rec_search{
        display: none;
    }
    .search_bar_button_keyboard{
        border: 0;
        width: 62px;
        height: max-content;
    }

}
div.next{
    box-shadow: -10px 0 10px white;
    position: fixed;
    height: 24px;
    width: 24px;
    padding: 16px;
    background-color: white;
    border: 0;
    right: 0px;
    display: none;
}
@media screen and (max-width : 1400px) {
    div.next{
        display: block;
    }
    body .fixed .nav{
        justify-content: flex-start;
    }
}
