/*
Theme Name: Xnach
Version: 1.0
Text Domain: xnach
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#0b0b0b;
    color:#ffffff;
    font-family:Inter,Arial,sans-serif;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    width:100%;
    max-width:1600px;
    margin:auto;
    padding:20px;
}

/* HEADER */

header{
    border-bottom:1px solid #1f1f1f;
    margin-bottom:25px;
}

.top-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:15px 0;
}

.logo a{
    color:#ff3366;
    font-size:36px;
    font-weight:700;
}

.search-box{
    flex:1;
    max-width:700px;
}

.search-box input{
    width:100%;
    background:#181818;
    border:1px solid #222;
    color:#fff;
    padding:14px 18px;
    border-radius:14px;
    outline:none;
}

.profile{
    background:#181818;
    padding:12px 20px;
    border-radius:12px;
}

/* CATEGORY BAR */

.category-bar{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin:20px 0 30px;
}

.category-pill{
    background:#181818;
    color:#fff;
    padding:10px 18px;
    border-radius:999px;
    transition:.2s;
}

.category-pill:hover{
    background:#ff3366;
}

/* PAGE TITLE */

.page-title{
    margin-bottom:25px;
    font-size:28px;
}

/* HOMEPAGE GRID */

.video-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fill,minmax(260px,1fr));
    gap:20px;
}

/* CARD */

.video-card{
    display:block;
    background:#181818;
    border-radius:18px;
    overflow:hidden;
    transition:.2s;
}

.video-card:hover{
    transform:translateY(-5px);
}

.thumbnail-wrapper{
    position:relative;
}

.thumbnail-wrapper img{
    width:100%;
    height:340px;
    object-fit:cover;
    display:block;
}

/* CARD CONTENT */

.video-content{
    padding:15px;
}

.video-content h3{
    font-size:15px;
    line-height:1.5;
    margin-bottom:8px;
}

.creator{
    color:#a0a0a0;
    font-size:13px;
    margin-bottom:5px;
}

.duration{
    color:#777;
    font-size:12px;
}

/* SINGLE VIDEO PAGE */

.xnach-layout{
    display:grid;
    grid-template-columns:550px 350px;
    gap:40px;
    justify-content:center;
}

.video-player{
    width:100%;
    aspect-ratio:9/16;
    border-radius:20px;
    overflow:hidden;
    background:#000;
}

.video-info{
    margin-top:20px;
}

.video-info h1{
    font-size:32px;
    margin-bottom:12px;
}

.video-info p{
    color:#a0a0a0;
    margin-bottom:10px;
}

/* RELATED */

.related-videos h3{
    margin-bottom:20px;
}

.related-videos{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    align-content:start;
}

.related-card{
    display:block;
}

.related-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:12px;
}

.related-card span{
    display:block;
    margin-top:8px;
    font-size:13px;
    line-height:1.4;
}

/* FOOTER */

footer{
    border-top:1px solid #1f1f1f;
    margin-top:60px;
    padding:30px 0;
    color:#777;
}

/* TABLET */

@media(max-width:1100px){

    .xnach-layout{
        grid-template-columns:1fr;
    }

}

/* MOBILE */

@media(max-width:768px){

    .top-header{
        flex-direction:column;
    }

    .search-box{
        width:100%;
        max-width:none;
    }

    .video-grid{
        grid-template-columns:
        repeat(2,1fr);
    }

    .thumbnail-wrapper img{
        height:240px;
    }

    .related-videos{
        grid-template-columns:repeat(2,1fr);
    }

}