* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#loading {
    background-image: url("loading-tuyu.gif");
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 100000;
    opacity: 1;
    transition: opacity 2s ease;
}

#bgimg {
    position: fixed;
    background-image: url(bg_fix2.jpg);
    background-size: cover;
    background-repeat: repeat-y;
    width: 100%;
    height: 100%;
    z-index: -2;
}

header {z-index: 999;}

#TuyuPFPYT {
    border-radius: 100%;
}

.givepaddingNOW {
    padding-left: 20px;
}

.t-hdr {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: fixed;
    align-items: center;
    background-image: url("header_back.png");
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    transition: all 0.5s ease-in-out;
}

.t-hdr_i {
    margin-left: 20px;
    margin-right: 20px;
}

.b-hdr {
    background-image: url("bg_menu_lib_repair.svg");
    background-position: 50% 50%;
    background-size: cover;
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

#b-logo {
    opacity: 0;
    border-radius: 100vw;
    margin-top: 10px;
}

/*************************/

section {
    padding: 150px;
    margin-bottom: 200px;
    min-height: 400px;
    background-color: white;
}

.main-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.sub-container-m {
    text-align: left;
    padding-left: 20px;
}

/*************************/

.catpick {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.catpick-opt {
    text-align: center;
    padding: 10px;
    min-width: 100px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.catpick-opt:hover {
    background-color: azure;
    transform: scale(1.05);
}

.catpick-opt:active {
    transform: translateY(4px);
}

/*************************/

#videos-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.video:first-child {display: none;}

.video {
    padding: 10px;
    border-radius: 20px;
    max-width: 356px;
    transition: background-color 0.2s ease-in-out;
}

.video:hover {
    background-color: aliceblue;
}

.video-info-container {
    max-width: 336px;
}

.video-thumbnail {
    width: 336px;
    height: 188px;
    border-radius: 10px !important;
}

/*************************/

.playlists-vis {
    display: none;
}

.playlists-container
{
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

#playlist {
    max-width: 336px;
    padding: 10px;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#playlist > img {
    max-width: 316px;
    height: 188px;
}

#playlist:hover {
    background-color: aliceblue;
    transform: scale(1.01);
}

/*************************/

@media screen and (max-device-width: 1014px) {
    #videos-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-device-width: 740px) {
    .t-hdr {
        animation: closeTB 2s 1 forwards;
    }

    @keyframes closeTB {
        0% {
            background-size: 100% 88px;
        }
        100% {
            background-size: 100% 0px;
        }
    }

    .main-container {
        flex-direction: column;
    }

    .main-container {
        flex-direction: column;
    }

    section {
        padding-left: 25px;
        padding-right: 25px;
    }

    .catpick {
        flex-direction: column;
    }
}

/*************************/

.backplate {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.288);
    align-content: center;
}

#newPlaylist {
    margin: 20px;
    min-height: 45px;
    min-width: 90px;
    border: 1px solid black;
    border-radius: 8px;
    background-color: #b4abf1;
}

.createPlaylist {
    background-image: url("bg_news_sp.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    margin-left: 2.5%;
    width: 95%;
    min-height: 200px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgb(214, 163, 201);
    text-align: center;
}

.createPlaylist
>select,
.createPlaylist
>textarea {
    background-color: transparent;
    border: 1px solid black;
    border-radius: 5px;
}

.createPlaylist
>textarea {
    text-align: center;
    max-width: 400px;
    max-height: 100px;
    width: 400px;
    height: 100px;
    min-width: 45px;
    min-height: 45px;
}

.createPlaylist
>button {
    background-color: transparent;
    min-height: 45px;
    min-width: 80px;
    border-radius: 4px;
    margin: 6px;
}

#playlistThumbnailPreview {width: 316px; height: 188px;}

/*************************/

footer {
    background-image: url("footer.jpg");
    background-size: cover;
    width: 100%;
    height: 201px;
    align-content: center;
    text-align: center;
    color: white;
}

footer > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 100px;
}

footer
>div
>div
>a {
    color: white;
}

/*************************/

.context-menu {
    display: none;
    position: fixed;
    background-color: #655BA6;
    color: white;
    border: 1px solid black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    list-style: none;
    padding: 4px;
    border-radius: 10px;
    margin: 0;
    z-index: 500;
}

.context-menu-item {
    padding: 8px 12px;
    cursor: pointer;
}

.context-menu-item:hover {
    background-color: #7c71c0;
}

#playlistaddmenu {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.644);
    z-index: 700;
    align-content: center;
}

#playlistaddmenu
>div {
    background-image: url("bg_news_sp.jpg");
    min-height: 200px;
    min-width: 200px;
    width: 400px;
    padding: 5px;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 10px;
    color: black;
}

#X_playlistaddmenu {
    background-image: url("close.svg");
    background-color: transparent;
    border: none;
    float: right;
    min-width: 45px;
    min-height: 45px;
    border-radius: 20%;
}

#playlistsmenu_add {
    padding: 40px;
    list-style: none;
    overflow-y: scroll;
}

#playlistsmenu_add > li {
    background-color: transparent;
    text-align: center;
    padding: 10px;
    font-weight: 900;
    transition: background-color 1s ease, color 1s ease;
}

#playlistsmenu_add > li:hover {
    background-color: rgba(255, 255, 255, 0.355);
    color: rgb(205, 129, 212);
}

#videos-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}