/* Video Page Styles */

/* Grid Layout similar to Reels/Shorts Gallery */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: #1e1e1e;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 177.77%;
    /* 9:16 Aspect Ratio for Shorts style */
    background: black;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the vertical container */
}

/* Hide specific video controls */
video::-webkit-media-controls-fullscreen-button,
video::-webkit-media-controls-picture-in-picture-button {
    display: none !important;
}

/* Custom Play Button Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 2;
}

/* Hide overlay when video is playing (toggled by JS) */
.video-wrapper.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s;
}

.video-card:hover .play-btn {
    transform: scale(1.1);
    background: rgba(220, 39, 67, 0.8);
    /* Instagram Color ish */
    border-color: transparent;
}

.video-actions {
    padding: 15px;
    text-align: center;
    background: #1e1e1e;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.btn-instagram:hover {
    transform: scale(1.05);
    color: white;
}

/* Fixed Bottom Button */
.fixed-insta-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: white;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.fixed-insta-btn a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: black;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
}

.fixed-insta-btn i {
    font-size: 1.2rem;
}