* { box-sizing: border-box; }

body, html {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    background-color: #000;
    overscroll-behavior-y: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

#feed-container {
    width: 100%;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

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

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

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* BUTTON STACK (Horizontal) */
.control-stack {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: row; /* Buttons side-by-side */
    gap: 12px;
    z-index: 50;
    align-items: center;
}

.mute-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-family: sans-serif;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.contact-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    font-family: sans-serif;
}

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

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

.swipe-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    z-index: 40;
    display: none;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-15px) translateX(-50%);}
    60% {transform: translateY(-7px) translateX(-50%);}
}

.swipe-hint.active {
    display: block;
    animation: bounce 2s infinite;
}

/* DESKTOP OPTIMIZATION (PC/Laptop) */
@media (min-width: 1024px) {
    video {
        max-width: 600px;
        height: auto;
        max-height: 90vh;
        margin: 0 auto;
        border-radius: 12px;
    }
    .control-stack {
        right: calc(50% - 215px);
    }
    .progress-container {
        width: 450px;
        left: 50%;
        bottom: 5vh;
        transform: translateX(-50%);
    }
}