*{box-sizing:border-box}

html,body{
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    background:#000;
}

body{
    font-family:Arial,sans-serif;
    overflow:hidden;
}

#video-feed{
    width:100%;
    height:100dvh;
    overflow-y:auto;
    overflow-x:hidden;
    scroll-snap-type:y mandatory;
    background:#000;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}

#video-feed::-webkit-scrollbar{
    display:none;
}

.video-container{
    position:relative;
    width:100vw;
    height:100dvh;
    overflow:hidden;
    background:#000;
    scroll-snap-align:start;
    scroll-snap-stop:always;
}

.short-video{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background:#000;
}

.video-info{
    position:absolute;
    left:20px;
    right:20px;
    bottom:35px;
    z-index:10;
    color:#fff;
    text-align:left;
    pointer-events:none;
    text-shadow:0 2px 5px rgba(0,0,0,.9),0 2px 15px rgba(0,0,0,.8);
}

.video-info h3{
    margin:0 0 8px;
    font-size:20px;
    font-weight:bold;
}

.video-info p{
    margin:0;
    font-size:15px;
    line-height:1.4;
}

.loading{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#000;
    color:#fff;
    font-size:18px;
    z-index:100;
}

.error{
    height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    color:#fff;
    text-align:center;
}

@media (min-width:769px){
    body{
        overflow:auto;
    }

    #video-feed{
        height:auto;
        overflow:visible;
        scroll-snap-type:none;
        padding:20px 0;
    }

    .video-container{
        width:620px;
        height:85vh;
        margin:0 auto 40px;
        scroll-snap-align:none;
        border-radius:12px;
    }

    .short-video{
        border-radius:12px;
    }

    .video-info{
        bottom:20px;
    }
}
 