﻿/* --- HIDE BADGES ON PLAY --- */
.reel-item.is-playing .reel-top-overlay,
.reel-item.is-playing .reel-bottom-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* --- TIKTOK UI CLEANER (CSS Footer) --- */
.tiktok-ui-cleaner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Covers the TikTok username and music link area */
    background: black; /* Matches the video background */
    z-index: 2;
    pointer-events: none; /* Allows user to click play/pause through the blocker */
}

/* --- GRID LAYOUT --- */
.reels-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    padding: 20px 0;
}

/* --- CARD STYLING (MANAGEMENT STYLE SYNC) --- */
.reel-item-container {
    padding: 4px;
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 308px;
}

    .reel-item-container:hover {
        transform: translateY(-8px) scale(1.02);
    }

.reel-item {
    width: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    position: relative;
    cursor: pointer;
}

/* --- MASK & SHIFTER --- */
.reel-video-mask {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
}

.reel-video-shifter {
    position: absolute;
    width: 100%;
    left: 0;
}

.instagram-style {
    top: -65px;
    width: 540px;
    left: 50%;
    transform: translateX(-50%);
}

.tiktok-style {
    top: -20px;
}

/* --- OVERLAYS --- */
.reel-top-overlay, .reel-bottom-overlay {
    position: absolute;
    z-index: 5;
    width: 100%;
    padding: 15px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.reel-top-overlay {
    top: 0;
}

.reel-bottom-overlay {
    bottom: 0;
}

.customer-badge, .sound-hint {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sound-hint {
    float: right;
    background: rgba(0, 0, 0, 0.3);
}

.instagram-media, .instagram-media-rendered, iframe {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    border: none !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .reels-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reels-grid-layout {
        grid-template-columns: 1fr;
    }
}
