@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
}

body {
    font-family: "Roboto", "Arial", sans-serif;
}

header {
    height: 56px;
    padding: 0 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.left-sec {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 200px;
}

.left-sec img {
    width: 50%;
    padding-left: 20px;
}

.mid-sec {
    padding-left: 50px;
    display: flex;

}

.mid-sec form {

    display: flex;
    height: 40px;
    width: 525px;
}

.mid-sec input {
    width: 100%;
    border-radius: 40px 0 0 40px;
    padding: 12px;
    font-size: 1.6rem;
    border: 1px solid #d3d3d3;
    border-right: none;
}

.mid-sec button {
    position: relative;
    width: 64px;
    border: 1px solid #d3d3d3;
    border-radius: 0 40px 40px 0;
    padding-top: 4px;
    background-color: #f8f8f8;
    cursor: pointer;
}

.mid-sec button:hover {
    border-color: #c6c6c6;
    background-color: #f0f0f0;
}

.hover-text {
    position: absolute;
    background-color: gray;
    color: white;
    padding-top: 5px;
    padding-bottom: 3px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 2px;
    font-size: 12px;
    bottom: -30px;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
    white-space: nowrap;
}

.mid-sec button:hover .hover-text {
    opacity: 1;
}

.mic-p {
    position: relative;
}

.mic-p .hover-text {
    right: -50px;
}

.mic-p:hover .hover-text {
    opacity: 1;
}

.mid-sec .mic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
}

.vid-p,
.notifications-p {
    display: inline-block;
    position: relative;
}

.vid-p .hover-text {
    right: 7px;
}

.vid-p:hover .hover-text {
    opacity: 1;
}

.notifications-p:hover .hover-text {
    opacity: 1;
}

.notifications-p .hover-text {
    right: -10px;
}

.right-sec {
    min-width: 150px;
    align-items: center;
    justify-content: flex-end;
}

.right-sec a {
    padding-right: 18px;
    text-decoration: none;
    color: black;
}

.content-area {
    height: calc(100vh - 56px);
    display: flex;
    background-color: #f9f9f9;
}

aside {
    height: 100%;
    width: 280px;
    background-color: white;
    overflow-y: auto;
}

nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    padding-right: 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: black;
}

.nav-link:hover {
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.05)
}

.nav-link span {
    margin-left: 24px;
    font-size: 1.4rem;
    line-height: 2em;
    font-weight: 400;
    color: #030303;
}

.active {
    border-radius: 10px;
    background-color: #e5e5e5;
}

#active-span {
    font-weight: 500;
}

hr {
    height: 1px;
    border: none;
    background-color: #e5e5e5;
    margin: 10px 0;
}

nav p {
    font-size: 1.4rem;
    color: #606060;
    font-weight: 500;
    padding: 8px 16px;
    text-transform: uppercase;
}

.channel-img {
    height: 24px;
    width: 24px;
    border-radius: 50%;
}

main {
    width: 100%;
    height: 100%;
    padding: 35px 15px;
    border-top: 1px solid #ddd;
    overflow-y: auto;
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    flex-direction: row;
    justify-content: space-around;

}

.video {

    margin-bottom: 40px;
    cursor: pointer;
}

.thumbnail {
    width: 100%;
    height: 187px;
    margin-bottom: 12px;
}

.thumbnail img {
    width: 100%;
    height: 100%;

}

.video-details {
    display: flex;
}

.creator-img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.title {
    display: flex;
    flex-direction: column;
}

.title a {
    text-decoration: none;
}

.video-title {
    color: rgb(3, 3, 3);
    font-size: 1.6rem;
    max-width: 278px;
    font-weight: 500;
    line-height: 2.2rem;
    margin-bottom: 2px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-creator,
title span {
    color: rgb(96, 96, 96);
    font-size: 1.4rem;
    line-height: 2rem;
    font-weight: 400;
}

.video-creator:hover {
    color: black;
}






.thumbnail {
    display: inline-block;
    width: 330px;
    height: 187px;
    position: relative;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
}

.time {

    font-size: 15px;
    position: absolute;
    color: white;
    background-color: black;
    bottom: 5px;
    right: 5px;
    padding: 0 2px 0 2px;
    border-radius: 3px;

}


@media (max-width: 992px) {
    .mid-sec {
        padding: 0;
    }

    .mid-sec form {
        width: 425px;
    }

    aside span,
    .sub {
        display: none;
    }

    aside {
        width: 70px;
    }
}


@media (max-width: 768px) {
    .mid-sec form {
        width: 300px;
    }

    .videos-container {
        grid-template-columns: none;
    }
}

@media (max-width: 560px) {

    .mid-sec form {
        width: 150px;
    }

    aside {
        display: none;
    }
}

@media (max-width: 400px) {
    .mid-sec {
        order: 1;
    }

    .op,
    .mid-sec .mic {
        display: none;
    }

    .mid-sec button {
        border-radius: 50%;
        width: 40PX;
    }

    .mid-sec form {
        width: 50px;
    }
}

@media (max-width: 340px) {

    .mid-sec {
        order: 1;
    }

    .thumbnail {
        width: 250px;
    }
}