*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

body{
    background:#0f0f0f;
    color:#fff;
}

a{
    text-decoration:none;
    color:inherit;
}

.card-link{
    display:block;
}

/* HEADER */

header{
    position:sticky;
    top:0;
    z-index:100;
    background:#151515;
    padding:15px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #222;
}

.logo{
    font-size:24px;
    font-weight:bold;
    color:#ff3d3d;
}

.search{
    width:50%;
}

.search input{
    width:100%;
    padding:12px;
    border:none;
    border-radius:30px;
    background:#222;
    color:#fff;
}

/* CATEGORIES */

.categories{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:15px;
}

.categories::-webkit-scrollbar{
    display:none;
}

.categories a{
    background:#222;
    padding:10px 18px;
    border-radius:20px;
    white-space:nowrap;
    transition:.2s;
}

.categories a:hover{
    background:#ff3d3d;
}

/* HERO */

.hero{
    height:250px;
    margin:15px;
    border-radius:15px;
    overflow:hidden;
    position:relative;
}

.hero img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero:after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.8),
        transparent
    );
}

.hero-content{
    position:absolute;
    left:20px;
    bottom:20px;
    z-index:2;
}

.hero-content h1{
    margin-bottom:10px;
}

.hero-content button{
    padding:10px 20px;
    border:none;
    border-radius:25px;
    background:#ff3d3d;
    color:#fff;
    cursor:pointer;
}

/* TITLES */

.section-title{
    padding:15px;
    font-size:22px;
}

/* GRID */

.video-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:15px;
    padding:15px;
}

/* CARD */

.card{
    background:#181818;
    border-radius:12px;
    overflow:hidden;
    transition:.25s;
    cursor:pointer;
}

.card:hover{
    transform:translateY(-4px);
}

.thumbnail{
    position:relative;
}

.thumbnail img{
    width:100%;
    height:140px;
    object-fit:cover;
    display:block;
}

.duration{
    position:absolute;
    bottom:8px;
    right:8px;
    background:rgba(0,0,0,.85);
    padding:4px 8px;
    border-radius:5px;
    font-size:12px;
}

.info{
    padding:12px;
}

.title{
    font-size:15px;
    font-weight:bold;
    margin-bottom:6px;
    line-height:1.3;
}

.meta{
    color:#aaa;
    font-size:13px;
}

.views{
    margin-top:4px;
}

/* FOOTER */

footer{
    margin-top:20px;
    background:#151515;
    border-top:1px solid #222;
    padding:20px;
    text-align:center;
    color:#999;
}

/* WATCH PAGE */

.watch-container{
    max-width:1200px;
    margin:auto;
    padding:15px;
}

.player-wrap video{
    width:100%;
    border-radius:12px;
    background:#000;
}

/* MOBILE */

@media(max-width:768px){

    .search{
        width:65%;
    }

    .hero{
        height:180px;
        margin:10px;
    }

    .video-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
        padding:8px;
    }

    .thumbnail img{
        height:120px;
    }

    .info{
        padding:8px;
    }

    .title{
        font-size:14px;
    }

    .meta{
        font-size:12px;
    }

    .section-title{
        padding:10px;
    }
}