/* Fullscreen setup for Reels */
.fullscreen-gallery {
    height: 100dvh; /* Uses Dynamic Viewport Height */
    width: 100vw;
    margin: 0;
    padding: 0;
    background-color: #000;
}

.fullscreen-gallery .reels-container {
    width: 100%;
    max-width: 450px; /* Keeps it phone-sized even on desktop */
    height: 100%;
    margin: 0 auto;
    overflow-y: scroll;
    
    /* CSS Scroll Snapping Magic */
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    
    /* Hide scrollbar */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.fullscreen-gallery .reels-container::-webkit-scrollbar {
    display: none; 
}

.reel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    scroll-snap-align: start; 
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    cursor: pointer;
}

/* Push overlay up to not hide behind bottom nav */
.app-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    padding-bottom: 80px; /* Space for the nav bar */
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: white;
}

.reel-info { flex: 1; padding-right: 15px; }
.reel-title { margin: 0 0 5px 0; font-size: 1.2rem; font-weight: bold; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
.reel-tap-hint { margin: 0; font-size: 0.9rem; color: #ddd; }

.btn-wa-overlay {
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    white-space: nowrap;
}

/* The Bottom Navigation Bar */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
}

.app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.app-nav-item.active { opacity: 1; color: #ff9800; }
.app-nav-item .icon { font-size: 1.5rem; margin-bottom: 2px; }
.app-nav-item .label { font-size: 0.7rem; font-weight: bold; }

/* Fallback message */
.no-videos { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; color: white; text-align: center; padding: 20px; }
.no-videos p { margin-bottom: 20px; color: #aaa; }