/* Event Reels Styles */
.event-reels {
    padding: 24px 0;
}

.reels-container {
    border-radius: 12px;
}

.reels-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.reels-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.reels-grid {
    display: flex;
    gap: 15px;
    padding-bottom: 10px;
    overflow: hidden;
}

.reels-grid::-webkit-scrollbar {
    height: 6px;
}

.reels-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.reels-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.reels-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.reel-item {
    flex: 0 0 auto;
    position: relative;
    width: 136px;
    height: 241px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #f5f5f5;
}

.reel-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.reel-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

.reel-play-btn {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* .reel-play-btn:hover {
    background: #FF585D;
    transform: translate(-50%, -50%) scale(1.1);
} */

.reel-play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid #fff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 2px;
}

.reel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    color: white;
}

.reel-slides-count {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 500;
}

.reel-title-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-left: 20px;
}

.reel-user {
    font-size: 10px;
    opacity: 0.9;
    font-weight: 400;
}

.reel-stats {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reel-stat {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
}

.reel-stat-icon {
    width: 10px;
    height: 10px;
    opacity: 0.8;
}

/* Reel Duration Badge */
.reel-duration {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

/* Loading State */
.reel-item.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Empty State */
.reels-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.reels-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.reels-empty-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.reels-empty-subtext {
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reels-container {
        /* padding: 15px;
        margin: 20px -15px; */
        border-radius: 0;
    }
    
    /* .reel-item {
        width: 120px;
        height: 160px;
    } */
    
    .reels-grid {
        gap: 10px;
        padding: 0 15px;
        margin: 0 -15px;
    }
    
    .reels-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    /* .reel-item {
        width: 100px;
        height: 140px;
    } */
    
    .reel-play-btn {
        width: 32px;
        height: 32px;
    }
    
    .reel-play-btn::before {
        border-left: 6px solid #fff;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
    }
}

/* Fade in animation */
.reel-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.reel-item:nth-child(1) { animation-delay: 0.1s; }
.reel-item:nth-child(2) { animation-delay: 0.2s; }
.reel-item:nth-child(3) { animation-delay: 0.3s; }
.reel-item:nth-child(4) { animation-delay: 0.4s; }
.reel-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reel-event-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ccc;
}
.reels-slider .reel-item {
    margin-right: 16px;
    min-width: 104px;
    max-width: 104px;
    max-height: 184px;
}
.reels-slider .slick-track {
    min-width: 120px;
}
.reels-slider .slick-slide {
    max-width: 120px;
    min-width: 120px;
}