/* Customer Reels Styling */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    direction: rtl;
    /* Right to Left display */
    margin-top: var(--space-8);
}

.reel-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    aspect-ratio: 9/16;
    border: 1px solid var(--gray-100);
}

.reel-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.reel-media {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.reel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.reel-card:hover .reel-media img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Precise Center */
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.reel-card:hover .play-button {
    background: var(--primary);
    border-color: var(--white);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.play-button i {
    margin-left: 4px;
    /* Offset to visually center the play icon */
}

/* In-place Video Styles */
.reel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    background: #000;
    display: none;
}

.reel-card.playing .reel-video {
    display: block;
}

.reel-card.playing .play-button,
.reel-card.playing .reel-media img {
    display: none;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .reels-grid {
        grid-template-columns: 1fr;
        /* Single column for mobile */
        gap: 20px;
        padding: 0 15px;
    }

    .reel-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .section-header {
        text-align: center;
        margin-bottom: 30px;
    }
}