/* Advanced Video Carousel & Grid Styles */
.avc-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
}

.avc-grid-container {
    display: grid;
    gap: 20px;
    width: 100%;
}

.avc-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.avc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Upper Section */
.avc-upper-section {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.avc-thumb-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.avc-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.avc-upper-section:hover .avc-thumb-wrap img {
    transform: scale(1.05);
}

.avc-overlay-dim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.avc-upper-section:hover .avc-overlay-dim {
    background: rgba(0,0,0,0.45);
}

/* Center Play Button */
.avc-center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.avc-center-play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}

.avc-center-play-btn:hover {
    background: #ff0055;
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Bottom Section */
.avc-bottom-section {
    padding: 16px;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.avc-video-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.avc-video-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Swiper Carousel adjustments */
.avc-swiper-carousel {
    padding-bottom: 50px !important;
}

.avc-swiper-carousel .swiper-button-next,
.avc-swiper-carousel .swiper-button-prev {
    color: #ff0055;
    background: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.avc-swiper-carousel .swiper-button-next::after,
.avc-swiper-carousel .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Reels Modal */
.avc-reels-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avc-reels-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.avc-reels-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.avc-reels-close-btn:hover {
    background: rgba(255,255,255,0.4);
}

.avc-reels-swiper {
    width: 100%;
    max-width: 450px;
    height: 85vh;
    max-height: 800px;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1000000;
}

.avc-reel-slide {
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.avc-reel-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avc-reel-video-container video,
.avc-reel-video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.avc-reel-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    z-index: 2;
}

.avc-reel-meta h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
}

.avc-reel-meta p {
    font-size: 14px;
    margin: 0;
    color: #ddd;
}

.avc-reels-swiper .swiper-button-next,
.avc-reels-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Responsive queries */
@media(max-width: 768px) {
    .avc-grid-container {
        grid-template-columns: 1fr !important;
    }
    .avc-reels-swiper {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
}
