/* GLOBAL RESET */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    
    /* PREVENTS PULL-TO-REFRESH */
    overscroll-behavior-y: none;
    
    /* DISABLE SELECTION & CALLOUTS */
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent; /* Removes blue tap box */
}

/* CONTAINER */
#feed-container {
    width: 100%;
    height: 100dvh; /* Dynamic Height: Fixes mobile address bar resize issue */
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    
    /* FORCE STOP: Prevents skipping videos with fast scrolls */
    scroll-snap-stop: always; 
    
    scroll-behavior: smooth;
    
    /* HIDE SCROLLBARS */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbar for Chrome/Safari/Opera */
#feed-container::-webkit-scrollbar {
    display: none;
}

/* VIDEO WRAPPER */
.video-wrapper {
    width: 100%;
    height: 100dvh; /* Dynamic Height */
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    position: relative;
    background: #000;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole video is visible */
    display: block;
    pointer-events: auto;
}

/* MUTE BUTTON */
.mute-btn {
    position: absolute;
    top: 20px; /* Moved to top-right for better mobile UX */
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: sans-serif;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
}

/* PROGRESS BAR */
.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 20;
}

.progress-bar {
    height: 100%;
    background: #ff0050; /* TikTok Red */
    width: 0%;
    transition: width 0.1s linear;
}