*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    
}

body{
    font-family: 'Open Sans', sans-serif;
}

a {
   text-decoration: none;
   color: #000;
}

.contenedor{
    width: 100%;
    min-height: 100vh;
    margin:0 auto;
    display: grid;
    grid-template-columns: minmax(90px,90px)  auto;
    grid-template-rows: 60px auto;
    grid-template-areas: "header header"
                         "menu contenido";
    transition: all .3s ease;
}
.contenedor.active{
    grid-template-columns: minmax(300px,18%)  auto;
}

/*-----------------------------------HEADER---------------------------------*/
.header{
    grid-area: header;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-content: space-between;
    grid-gap: 20px;
    grid-template-areas: "logo busqueda iconos";
}

.header .cotenedor-logo{
    grid-area: logo;
    display: flex;
    align-items: center;
}

.header .cotenedor-logo .boton-menu{
    border: none;
    padding: 10px;
    background: none;
    cursor: pointer;
    font-size: 25px;
    border-radius: 100px;
    width: 50px;
    height: 50px;
    margin: right 20px;
    
}

.header .cotenedor-logo .boton-menu:hover{
   background: #e7e7e7;
}

.header .cotenedor-logo .logo .fa{
    background: #ff0000;
    padding:7px 12px;
    border-radius: 4px;
    font-size: 8px;
    color: #fff;
    position: relative;
    top: -4px;
    margin-right: 4px;
}

.header .cotenedor-logo .logo{
    font-family: 'Bebas Neue', cursive;
    font-size: 18px;
    color: black;
    position: relative;
    top: 2px;
}

.header .barra-busqueda{
    grid-area: busqueda;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .barra-busqueda input{
    min-width: 60%;
    padding: 0 15px;
    height: 35px;
    line-height: 35px;
    border: 1px solid #ccc;
    font-size: 'Open Sans', sans-serif;
}

.header .barra-busqueda button{
    height: 35px;
    border: 1px solid #ccc;
    border-left: none;
    color: #545454;
    background: #f8f8f8;
    padding: 0 25px;
    cursor: pointer;
}

.header .barra-busqueda button:hover{
    background: #f5f5f5;
}


.header .botones-header{
    grid-area: iconos;
    display: flex;
    align-items: center;

}

.header .botones-header button{
    background: none;
    border:none ;
    width: 40px;
    height: 40px;
    font-size: 18px;
    padding: 7px 12px;
    background-repeat: round;
    border-radius: 100px;
    color: #828282;
    margin-right: 20px;
    cursor: pointer;
}

.header .botones-header button:hover{
    background:#e7e7e7;
}

.header .botones-header .avatar{
    width: 30px;
    height: 30px;
    display: inline-block;
}

.header .botones-header .avatar img{
    vertical-align: top;
    width: 100%;
    border-radius: 100px;
}


/*-----------------------------------MENU LATERAL---------------------------------*/

.menu-lateral{
    grid-area: menu;
    background: #fff;
    overflow: hidden;
}

.menu-lateral a{
    display: block;
    padding: 15px 35px;
    color: #000;
    min-width: 800px;
}

.menu-lateral a:hover{
   background: #e5e5e5;
}

.menu-lateral a.active{
    background: #e5e5e5;
    font-weight: bold;
}

.menu-lateral .fa{
    color: #606060;
    margin-right: 32px;
    width: 20px;
    text-align: center;
}
    
.menu-lateral a.active .fa{
    color: #ff0000;
}

.menu-lateral hr{
    margin: 20px 0;
    border: 1px solid #dfdfdf;
}

/*-----------------------------------CONTENIDO PRINCIPAL---------------------------------*/

.main{
    grid-area: contenido;
    background: #F9F9F9;
    padding: 10px;
}

.main .titulo{
   margin-bottom: 20px;
}

.main .grid-videos{
    display: grid;
    grid-gap: 10px 20px;
    grid-template-columns: repeat(4, 1fr);
}




/*-----------------------------------MEDEIA QUERY---------------------------------*/
@media screen and (max-width: 1200px){
    .main .grid-videos{
        grid-template-columns: repeat(3,1fr);
    }
    .header .cotenedor-logo .logo span{
        display: none;
    }

    .header .barra-busqueda input{
        min-width: 90%;
    }
}
@media screen and (max-width: 992px){
    .main .grid-videos{
    grid-template-columns: repeat(2,1fr);
    }
}

@media screen and (max-width: 768px){

     .main .grid-videos{
        grid-template-columns: 1fr;
    }

    .contenedor{
        grid-template-rows: auto;
    }

    .header{
        padding: 20px;
        grid-template-columns: auto auto;
        justify-content: space-between;
        grid-template-areas: "logo iconos"
                             "busqueda busqueda";
    }

    .header .cotenedor-logo .logo span{
        display: inline;
    }

    .header .barra-busqueda input{
        min-width: auto;
        width: 100%;
    }
}

@media screen and (max-width: 576px){
    .main .grid-videos{
        grid-template-columns: 1fr;
    }
}

/*NUEVO*/

.video-grid {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
}

.video-card {
      width: 320px;
}

.thumbnail {
      position: relative;
      width: 100%;
      border-radius: 10px;
      overflow: hidden;
      color: white;
}

.thumbnail img {
      width: 100%;
      display: block;
}
.duration {
      position: absolute;
      bottom: 5px;
      right: 8px;
      background-color: rgba(0, 0, 0, 0.8);
      padding: 2px 6px;
      font-size: 13px;
      border-radius: 4px;
}

.video-info {
      display: flex;
      margin-top: 10px;
}

.channel-img {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      margin-right: 10px;
}

.video-text {
      font-size: 14px;
    }

.video-title {
      font-weight: bold;
      margin-bottom: 4px;
}
.video-meta {
      color: #aaa;
      font-size: 13px;
}
