/*
Theme Name: XX Video
Theme URI: https://example.com
Author: Dani
Description: Modern Tube Style Video Theme
Version: 1.0
Text Domain: xx-video
*/

:root{
    --bg:#111315;
    --card:#1b1d20;
    --text:#ffffff;
    --muted:#9ca3af;
    --accent:#ff3b3b;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:Arial,sans-serif;
}

a{
    color:#fff;
    text-decoration:none;
}

.container{
    width:95%;
    max-width:1400px;
    margin:auto;
}

.site-header{
    background:#181a1d;
    border-bottom:1px solid #26292d;
    padding:15px 0;
}

.header-wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.logo{
    font-size:28px;
    font-weight:700;
}

.search-form{
    flex:1;
    max-width:500px;
}

.search-form input{
    width:100%;
    padding:12px;
    background:#24272c;
    border:none;
    color:#fff;
    border-radius:6px;
}

.top-menu{
    background:#181a1d;
    padding:12px 0;
}

.top-menu ul{
    list-style:none;
    display:flex;
    gap:20px;
    overflow:auto;
}

.video-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin:30px 0;
}

.video-card{
    background:var(--card);
    border-radius:8px;
    overflow:hidden;
}

.video-thumb{
    position:relative;
}

.video-thumb img{
    width:100%;
    display:block;
}

.video-title{
    padding:12px;
    font-size:15px;
    line-height:1.4;
}

.duration{
    position:absolute;
    bottom:8px;
    right:8px;
    background:#000;
    padding:4px 7px;
    font-size:12px;
    border-radius:4px;
}

.player-wrap iframe{
    width:100%;
    height:650px;
    border:none;
}

.single-title{
    margin:20px 0;
    font-size:28px;
}

.pagination{
    text-align:center;
    margin:40px 0;
}

.pagination .page-numbers{
    display:inline-block;
    padding:10px 15px;
    background:#222;
    margin:3px;
    border-radius:4px;
}

.pagination .current{
    background:var(--accent);
}

.related-title{
    margin:30px 0 20px;
}

.site-footer{
    padding:30px 0;
    text-align:center;
    border-top:1px solid #26292d;
    margin-top:40px;
}

@media(max-width:1100px){
    .video-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:768px){
    .video-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .player-wrap iframe{
        height:350px;
    }

    .header-wrap{
        flex-direction:column;
    }
}

@media(max-width:500px){
    .video-grid{
        grid-template-columns:1fr;
    }
}
.player-wrap video{
    width:100%;
    height:auto;
    border-radius:8px;
    background:#000;
}