/* ===== INSTAGRAM-STYLE REELS SECTION ===== */
.reels-container-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(153, 27, 27, 0.5) transparent;
}

.reels-container-wrapper::-webkit-scrollbar {
    height: 8px;
}

.reels-container-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.reels-container-wrapper::-webkit-scrollbar-thumb {
    background: rgba(153, 27, 27, 0.5);
    border-radius: 4px;
}

.reels-container-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(153, 27, 27, 0.7);
}

.reels-grid {
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
    width: max-content;
    min-width: 100%;
}

.reel-card {
    flex: 0 0 calc((100% - 6rem) / 7);
    min-width: 200px;
    max-width: 250px;
    height: 350px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reel-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.reel-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.reel-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reel-card:hover .reel-card-overlay {
    opacity: 1;
}

.reel-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reel-card-info {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reel-card-info i {
    font-size: 0.7rem;
}

.reel-audio-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.reel-audio-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.reel-audio-btn i {
    font-size: 0.875rem;
}

.reels-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #991b1b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.reels-container-wrapper:hover .reels-scroll-btn {
    opacity: 1;
    pointer-events: all;
}

.reels-scroll-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.reels-scroll-btn-left {
    left: 1rem;
}

.reels-scroll-btn-right {
    right: 1rem;
}

.reels-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.reels-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    color: var(--text-secondary);
}

.reels-loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #991b1b;
}

.reels-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.reels-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #991b1b;
}

/* Modal for full reel view */
.reel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.reel-modal.active {
    display: flex;
}

.reel-modal-content {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.reel-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

.reel-modal-author {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 1.5rem 1rem 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reel-modal-author i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.reel-modal-video {
    width: 100%;
    height: auto;
    max-height: calc(90vh - 140px);
    object-fit: contain;
    flex: 1;
}

.reel-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.reel-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .reel-card {
        flex: 0 0 calc((100% - 5rem) / 6);
    }
}

@media (max-width: 1200px) {
    .reel-card {
        flex: 0 0 calc((100% - 4rem) / 5);
    }
}

@media (max-width: 992px) {
    .reel-card {
        flex: 0 0 calc((100% - 3rem) / 4);
        min-width: 180px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .reel-card {
        flex: 0 0 calc((100% - 2rem) / 3);
        min-width: 150px;
        height: 250px;
    }
    
    .reels-scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .reels-scroll-btn-left {
        left: 0.5rem;
    }
    
    .reels-scroll-btn-right {
        right: 0.5rem;
    }
}

@media (max-width: 576px) {
    .reel-card {
        flex: 0 0 calc((100% - 1rem) / 2);
        min-width: 140px;
        height: 220px;
    }
    
    .reels-grid {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
}

