/* =========================
   GOOGLE FONT
========================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Roboto',sans-serif;
}

body{
    background:#0f0f0f;
    color:#fff;
    overflow-x:hidden;
}

/* =========================
   NAVBAR
========================= */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:60px;
    background:#0f0f0f;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
    border-bottom:1px solid #222;
    z-index:1000;
}

/* Left */

.nav-left{
    display:flex;
    align-items:center;
    gap:20px;
}

.menu-btn{
    background:none;
    border:none;
    color:white;
    font-size:20px;
    cursor:pointer;
}

.logo{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
}

.logo i{
    color:red;
    font-size:30px;
}

.logo span{
    font-size:22px;
    font-weight:700;
}

/* Search */

.search-container{
    display:flex;
    width:50%;
    max-width:650px;
}

.search-container input{
    flex:1;
    height:42px;
    background:#121212;
    border:1px solid #303030;
    border-radius:25px 0 0 25px;
    outline:none;
    color:white;
    padding:0 15px;
    font-size:15px;
}

.search-container button{
    width:65px;
    border:none;
    background:#222;
    color:white;
    border-radius:0 25px 25px 0;
    cursor:pointer;
    font-size:16px;
}

.search-container button:hover{
    background:#333;
}

/* Right */

.nav-right{
    display:flex;
    align-items:center;
    gap:20px;
}

.nav-right i{
    font-size:18px;
    cursor:pointer;
}

.profile{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#3ea6ff;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* =========================
   CATEGORY BAR
========================= */

.categories{
    position:fixed;
    top:60px;
    left:240px;
    right:0;
    background:#0f0f0f;
    display:flex;
    gap:12px;
    padding:12px 20px;
    overflow-x:auto;
    z-index:999;
    scrollbar-width:none;
}

.categories::-webkit-scrollbar{
    display:none;
}

.categories button{
    background:#272727;
    color:white;
    border:none;
    padding:8px 16px;
    border-radius:10px;
    cursor:pointer;
    white-space:nowrap;
    transition:0.3s;
}

.categories button:hover{
    background:#3f3f3f;
}

.categories .active{
    background:white;
    color:black;
}

/* =========================
   MAIN CONTAINER
========================= */

.container{
    display:flex;
    margin-top:110px;
}

/* =========================
   SIDEBAR
========================= */

.sidebar{
    position:fixed;
    top:60px;
    left:0;
    width:240px;
    height:100vh;
    background:#0f0f0f;
    border-right:1px solid #222;
    padding-top:15px;
    overflow-y:auto;
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    display:flex;
    align-items:center;
    gap:20px;
    padding:14px 25px;
    cursor:pointer;
    transition:0.3s;
    border-radius:10px;
    margin:4px 10px;
}

.sidebar li:hover{
    background:#272727;
}

.sidebar i{
    font-size:18px;
}

/* =========================
   VIDEO SECTION
========================= */

.videos{
    margin-left:240px;
    width:100%;
    padding:20px;

    display:grid;
    grid-template-columns:
    repeat(auto-fill,minmax(320px,1fr));

    gap:25px;
}

/* =========================
   VIDEO CARD
========================= */

.video-card{
    cursor:pointer;
    transition:0.3s;
}

.video-card:hover{
    transform:translateY(-6px);
}

.video-card img{
    width:100%;
    border-radius:12px;
    display:block;
}

.video-info{
    padding-top:10px;
}

.video-info h3{
    font-size:17px;
    line-height:1.4;
    margin-bottom:6px;
}

.video-info p{
    color:#aaa;
    margin-bottom:4px;
}

.video-info span{
    color:#888;
    font-size:14px;
}

/* =========================
   HOVER EFFECT
========================= */

.video-card img{
    transition:0.3s;
}

.video-card:hover img{
    opacity:0.9;
}

/* =========================
   CUSTOM SCROLLBAR
========================= */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:#444;
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:#666;
}

/* =========================
   TABLET
========================= */

@media(max-width:992px){

    .sidebar{
        width:80px;
    }

    .sidebar span{
        display:none;
    }

    .videos{
        margin-left:80px;
    }

    .categories{
        left:80px;
    }
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .navbar{
        padding:0 10px;
    }

    .search-container{
        width:60%;
    }

    .sidebar{
        display:none;
    }

    .videos{
        margin-left:0;
        grid-template-columns:1fr;
    }

    .categories{
        left:0;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media(max-width:480px){

    .search-container{
        width:55%;
    }

    .logo span{
        display:none;
    }

    .nav-right{
        gap:12px;
    }

    .video-info h3{
        font-size:15px;
    }
}