/* =====================================================
   HYLOOKS v1.1 FINAL PRODUCTION (MASTER LOCKED)
   Watch Page CSS
   ===================================================== */

.watch-page{
    max-width:1550px;
    margin:0 auto;
    padding:18px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 340px;
    gap:22px;
    align-items:start;
}

/* ================= PLAYER ================= */

.player-box{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    background:#000;
    border-radius:16px;
    overflow:hidden;
}

#videoPlayer{
    width:100%;
    height:100%;
    object-fit:contain;
    background:#000;
    display:block;
}

.player-loading{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.45);
    transition:.2s;
}

.player-loading.hide{
    opacity:0;
    pointer-events:none;
}

.spinner{
    width:46px;
    height:46px;
    border:4px solid rgba(255,255,255,.15);
    border-top-color:#ff9000;
    border-radius:50%;
    animation:spin .8s linear infinite;
}

@keyframes spin{
    to{ transform:rotate(360deg); }
}

/* ================= VIDEO INFO ================= */

.video-info{
    margin-top:18px;
}

#videoTitle{
    font-size:22px;
    font-weight:700;
    line-height:1.4;
}

#videoViews{
    margin-top:6px;
    font-size:14px;
    color:#8A8A8A;
}

/* ================= TOOLBAR ================= */

.video-toolbar{
    margin-top:20px;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.tool-btn{
    height:42px;
    padding:0 18px;
    border:none;
    border-radius:999px;
    background:#161616;
    color:#FFF;
    font-size:14px;
    cursor:pointer;
    transition:.2s;
}

.tool-btn:hover{
    background:#232323;
}

.tool-btn.active{
    background:#ff9000;
    color:#000;
}

/* ================= SIDEBAR ================= */

.sidebar-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.side-card{
    display:flex;
    gap:12px;
    text-decoration:none;
    color:#FFF;
    padding:8px;
    border-radius:12px;
    transition:.2s;
}

.side-card:hover{
    background:#131313;
}

.side-card.active{
    background:#181818;
}

.side-thumb-box{
    width:140px;
    aspect-ratio:16/9;
    border-radius:10px;
    overflow:hidden;
    background:#1A1A1A;
    position:relative;
    flex-shrink:0;
}

.side-thumb{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.side-duration{
    position:absolute;
    right:6px;
    bottom:6px;
    padding:2px 6px;
    border-radius:5px;
    background:rgba(0,0,0,.75);
    font-size:10px;
    font-weight:600;
}

.side-meta{
    flex:1;
    min-width:0;
}

.side-title{
    font-size:13px;
    font-weight:600;
    line-height:1.4;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}

.side-views{
    margin-top:6px;
    font-size:12px;
    color:#8A8A8A;
}

/* ================= MOBILE ================= */

@media (max-width:1024px){

    .watch-page{
        grid-template-columns:1fr;
    }

    .sidebar-section{
        margin-top:12px;
    }

    .side-card{
        padding:6px 0;
    }

    .side-thumb-box{
        width:120px;
    }

}

@media (max-width:768px){

    .watch-page{
        padding:14px;
        gap:18px;
    }

    #videoTitle{
        font-size:18px;
    }

    .video-toolbar{
        gap:10px;
    }

    .tool-btn{
        flex:1;
        justify-content:center;
        min-width:100px;
    }

    .side-thumb-box{
        width:118px;
    }

}

@media (max-width:480px){

    .side-thumb-box{
        width:110px;
    }

    .side-title{
        font-size:12px;
    }

    .side-views{
        font-size:11px;
    }

}

/* ================= RANDOM RELATED VIDEOS ================= */
.sidebar-heading,
.related-heading{
    margin:0 0 12px;
    font-size:18px;
    line-height:1.35;
    font-weight:700;
}

.related-section{
    min-width:0;
    width:100%;
    margin-top:22px;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.related-card{
    display:block;
    min-width:0;
    overflow:hidden;
    border-radius:12px;
    color:#fff;
    text-decoration:none;
    background:#101010;
    transition:background .2s ease,transform .2s ease;
}

.related-card:hover{
    background:#181818;
    transform:translateY(-2px);
}

.related-thumb-box{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#1a1a1a;
}

.related-thumb{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.related-duration{
    position:absolute;
    right:7px;
    bottom:7px;
    padding:3px 6px;
    border-radius:4px;
    background:rgba(0,0,0,.8);
    color:#fff;
    font-size:11px;
    font-weight:600;
}

.related-meta{
    padding:10px 11px 12px;
}

.related-title{
    font-size:14px;
    font-weight:650;
    line-height:1.4;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}

.related-views{
    margin-top:6px;
    color:#8a8a8a;
    font-size:12px;
}

@media(max-width:1024px){
    .related-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}

@media(max-width:700px){
    .related-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media(max-width:600px){
    .related-grid{gap:10px;}
    .related-meta{padding:8px;}
    .related-title{font-size:12px;}
    .related-views{font-size:11px;}
    .sidebar-heading,.related-heading{font-size:17px;}
}


/* ================= VIDEO CATEGORIES ================= */
.video-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.category-label {
    color: #8A8A8A;
    font-size: 13px;
    margin-right: 2px;
}
