﻿

#shorts-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    #shorts-container::-webkit-scrollbar {
        display: none;
    }

.short-item {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #0b1c33;
}

/* ===== Main Video Card ===== */
.video-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 9 / 16;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
   
}

    .video-card iframe,
    .video-card video 
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: none;
    }

/* Cover YouTube top title + bottom bar */
.yt-top-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent);
    z-index: 10;
    pointer-events: none;
}

.yt-bottom-cover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    z-index: 10;
    pointer-events: none;
}

/* Red Play Button */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ff0000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    opacity:0;
    
    transition: transform 0.15s, opacity 0.2s;
}

    .play-btn:hover {
        transform: translate(-50%, -50%) scale(1.08);
    }

    .play-btn.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .play-btn svg {
        width: 28px;
        height: 28px;
        fill: white;
        margin-left: 3px; 
    }

/* Caption */
.caption-box {
    position: absolute;
    bottom: 70px;
    left: 14px;
    right: 14px;
    z-index: 15;
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    
}

/* Bottom Icons */
.bottom-icons {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 28px;
    z-index: 20;
}

    .bottom-icons a,
    .bottom-icons button {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        border: none;
        cursor: pointer;
        backdrop-filter: blur(4px);
        transition: background 0.2s;
    }

        .bottom-icons a:hover,
        .bottom-icons button:hover {
            background: rgba(255,255,255,0.3);
        }

/* Back button (top left of card) */
.back-btn {
    position: absolute;
    top: 14px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 25;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

/* Desktop Up / Down arrows */
.side-arrows {
    
       transform: translateY(-50%);     
    z-index: 50;
    position: fixed;   
    top: 50%;
    right:35%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .side-arrows button {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.25);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        backdrop-filter: blur(6px);
        transition: all 0.2s;
    }

        .side-arrows button:hover {
            background: rgba(255,255,255,0.25);
        }

@media (max-width: 640px) {
    .video-card {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 0;
        height: 100vh;
    }

    .side-arrows {
        right: 12px;
        display:none !important;
        
    }
}
