*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
    font-family:'Inter',sans-serif;
    background:#e8e8e8;
    color:#fff;
}

/* APP */

.app{
    width:100%;
    height:100vh;
    position:relative;
    overflow:hidden;
    background:#e8e8e8;
}

/* TOP BAR */

.topbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:100;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 18px;
    background:linear-gradient(to bottom,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0) 100%);
}

.topbar h1{
    font-size:22px;
    font-weight:700;
    letter-spacing:0.5px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* REELS */

.reels-container{
    width:100%;
    height:100vh;
    overflow-y:scroll;
    scroll-snap-type:y mandatory;
    scrollbar-width:none;
}

.reels-container::-webkit-scrollbar{
    display:none;
}

.reel{
    position:relative;
    width:100%;
    height:100vh;
    overflow:hidden;
    scroll-snap-align:start;
    background:#e8e8e8;
}

/* VIDEO */

.reel video{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* GOOGLE DRIVE VIDEO (IFRAME) */

.drive-video{
    width:100%;
    height:100%;
    border:none;
    position:absolute;
    top:0;
    left:0;
    z-index:1;
}

/* OVERLAY */

.overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.4) 35%,
        rgba(0,0,0,0) 65%
    );
    pointer-events: none;
}

/* CONTENT */

.reel-content{
    position:absolute;
    bottom:90px;
    left:16px;
    width:70%;
    z-index:20;
    pointer-events: none;
}

.username{
    font-size:17px;
    font-weight:700;
    margin-bottom:10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    pointer-events: auto;
}

.caption{
    font-size:14px;
    line-height:1.5;
    color:#f1f1f1;
    margin-bottom:14px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    pointer-events: auto;
}

.music{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    color:#fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: auto;
}

/* ACTIONS */

.actions{
    position:absolute;
    right:14px;
    bottom:120px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
    z-index:20;
}

.action-btn{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
}

.action-btn button{
    width:54px;
    height:54px;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:50%;
    background:rgba(255,255,255,0.14);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    color:#fff;
    font-size:22px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s, border-color 0.2s;
}

.action-btn button:hover{
    background:rgba(255,255,255,0.22);
    border-color:rgba(255,255,255,0.25);
    transform: scale(1.06);
}

.action-btn button:active{
    transform: scale(0.9);
}

.action-btn span{
    font-size:12px;
    font-weight:600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* PROFILE */

.profile-img{
    width:58px;
    height:58px;
    border-radius:50%;
    border:2.5px solid #fff;
    object-fit:cover;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.profile-img:hover{
    transform: scale(1.05);
}

/* BOTTOM NAV */

.bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:74px;
    background:#e8e8e8;
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    display:flex;
    justify-content:space-around;
    align-items:center;
    z-index:100;
    border-top:1px solid rgba(0,0,0,0.08);
}

.bottom-nav button,
.bottom-nav a{
    border:none;
    background:none;
    color:#666;
    font-size:24px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px;
    text-decoration:none;
    transition: transform 0.15s ease, color 0.2s ease;
}

.bottom-nav button:hover,
.bottom-nav a:hover{
    color:#111;
}

.bottom-nav button:active,
.bottom-nav a:active{
    transform: scale(0.9);
}

.create-btn{
    width:54px;
    height:54px;
    border-radius:18px;
    background:#fff !important;
    color:#000 !important;
    font-size:32px !important;
    font-weight:700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.create-btn:hover{
    transform: scale(1.06) !important;
}

.create-btn:active{
    transform: scale(0.9) !important;
}

.bottom-nav .active{
    color:#008066;
}

/* HOME BUTTON SVG */

.home-btn svg {
    display: block;
    transition: transform 0.15s ease;
}

.home-btn:hover svg {
    transform: scale(1.1);
}

.home-btn:active svg {
    transform: scale(0.88);
}

/* NAV LINK ICONS (SVG) */

.nav-link {
    color: #666;
}

.nav-link svg {
    display: block;
    transition: transform 0.15s ease;
}

.whatsapp-link {
    color: #128C7E;
}

.message-link {
    color: #075aaa;
}

.call-link {
    color: #2e7d32;
}

.nav-link:hover svg {
    transform: scale(1.1);
}

.nav-link:active svg {
    transform: scale(0.88);
}

/* MOBILE OPTIMIZATION */

@media(max-width:768px){

    .topbar{
        padding:16px;
    }

    .topbar h1{
        font-size:20px;
    }

    .reel-content{
        width:78%;
    }

    .action-btn button{
        width:50px;
        height:50px;
    }
}

/* LARGE DEVICES */

@media(min-width:768px){

    .app{
        max-width:430px;
        margin:auto;
        border-left:1px solid rgba(0,0,0,0.08);
        border-right:1px solid rgba(0,0,0,0.08);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
    }

    .topbar, .bottom-nav {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }
}