/* === Video Capsules === */

.vc-section {
    padding: 20px 0;
    overflow: hidden;
}

/* Header */
.vc-header {
    margin-bottom: 20px;
    padding: 0 16px;
}

.vc-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: inherit;
}

.vc-subtitle {
    font-size: 1rem;
    opacity: 0.7;
    margin: 0;
}

/* Scroll Container */
.vc-scroll-container {
    position: relative;
    padding: 0 16px;
}

.vc-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.vc-track::-webkit-scrollbar {
    display: none;
}

/* Navigation Arrows */
.vc-section .vc-nav,
.vc-scroll-container .vc-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #1a1a2e !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    opacity: 0;
    pointer-events: none;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.vc-scroll-container:hover .vc-nav {
    opacity: 1;
    pointer-events: auto;
}

.vc-section .vc-nav:hover,
.vc-scroll-container .vc-nav:hover {
    background: #1a1a2e !important;
    color: #fff !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

.vc-nav-left { left: 0; }
.vc-nav-right { right: 0; }

.vc-nav[disabled] {
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (hover: none) {
    .vc-section .vc-nav,
    .vc-scroll-container .vc-nav {
        opacity: 1;
        pointer-events: auto;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        font-size: 17px !important;
    }
}

/* Capsule Card */
.vc-capsule {
    flex: 0 0 calc(20% - 13px);
    max-width: calc(20% - 13px);
    scroll-snap-align: start;
    cursor: pointer;
}

@media (min-width: 768px) {
    .vc-capsule { flex: 0 0 calc(20% - 13px); max-width: calc(20% - 13px); }
}

@media (min-width: 1200px) {
    .vc-capsule { flex: 0 0 calc(20% - 13px); max-width: calc(20% - 13px); }
}

@media (max-width: 767px) {
    .vc-capsule {
        flex: 0 0 calc(80% - 8px);
        max-width: calc(80% - 8px);
    }
}

.vc-capsule-inner {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.vc-capsule:hover .vc-capsule-inner {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.1);
}

/* Cover Image */
.vc-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vc-capsule:hover .vc-cover {
    transform: scale(1.05);
}

.vc-cover-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.2), rgba(236, 72, 153, 0.3));
}

/* Modal Share Button */
.vc-modal-share {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(6px) !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

.vc-modal-share:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.05) !important;
}

.vc-modal-share svg {
    pointer-events: none;
}

/* Video Menu Button (3 dots, inside video wrap) */
.vc-video-menu-btn {
    position: absolute !important;
    top: 80% !important;
    right: 30px !important;
    z-index: 5 !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 4px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    opacity: 0;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.vc-modal-video-wrap:hover .vc-video-menu-btn {
    opacity: 1;
}

.vc-video-menu-btn:hover {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Video Menu Dropdown */
.vc-video-menu {
    display: none;
    position: absolute;
    top: calc(80% - 60px);
    right: 30px;
    z-index: 10;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 4px;
    min-width: 180px;
}

.vc-video-menu.active {
    display: block;
}

.vc-video-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    border: none !important;
    background: none !important;
    color: #fff !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    transition: background 0.15s ease !important;
    text-align: left !important;
    white-space: nowrap !important;
    text-transform: lowercase !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.vc-video-menu-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.vc-video-menu-item svg {
    flex-shrink: 0;
    pointer-events: none;
}

/* Modal Actions Row (share + counter) */
.vc-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0 4px;
}

/* Grid top row (play icon only) */
.vc-grid-top-row {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

/* Grid bottom row */
.vc-grid-bottom-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.vc-grid-bottom-text {
    flex: 1;
    min-width: 0;
}

/* Share Popup (inside modal) */
.vc-share-popup {
    display: none;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 4px;
    min-width: 160px;
}

.vc-share-popup.active {
    display: block;
}

.vc-share-popup button {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 7px 10px !important;
    border: none !important;
    background: none !important;
    color: #fff !important;
    font-size: 0.78rem !important;
    text-transform: lowercase !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    transition: background 0.15s ease !important;
    text-align: left !important;
    white-space: nowrap !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.vc-share-popup button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Hover Video Preview */
.vc-hover-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.vc-hover-video.vc-hover-active {
    opacity: 1;
}

/* Play Button Overlay */
.vc-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}

.vc-capsule:hover .vc-play-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.vc-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.vc-play-btn svg {
    margin-left: 2px;
}

.vc-capsule:hover .vc-play-btn {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

/* Bottom Info Gradient */
.vc-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) 50%, transparent);
    z-index: 3;
}

.vc-capsule-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.vc-capsule-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ======= Fullscreen Modal ======= */
.vc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.vc-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.vc-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.vc-modal-video-wrap {
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.vc-modal-video-wrap video,
.vc-modal-embed,
.vc-modal-tiktok {
    width: 100%;
    height: 100%;
}

.vc-modal-video-wrap video {
    object-fit: cover;
}

.vc-modal-embed,
.vc-modal-tiktok {
    display: none;
    border: 0;
    background: #000;
}

.vc-modal-tiktok {
    overflow: auto;
}

.vc-modal-source-external #vc-modal-video,
.vc-modal-source-external .vc-video-controls,
.vc-modal-source-external .vc-video-menu-btn,
.vc-modal-source-external .vc-video-menu {
    display: none !important;
}

.vc-modal-source-youtube .vc-modal-embed,
.vc-modal-source-tiktok .vc-modal-tiktok {
    display: block;
}

.vc-modal-source-media .vc-modal-embed,
.vc-modal-source-media .vc-modal-tiktok {
    display: none;
}

.vc-modal-tiktok .tiktok-embed {
    margin: 0 auto !important;
}

/* Custom Video Controls */
.vc-video-controls {
    position: absolute;
    bottom: 8%;
    left: 8px;
    right: 8px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vc-modal-video-wrap:hover .vc-video-controls,
.vc-video-controls:hover {
    opacity: 1;
}

.vc-ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}

.vc-ctrl-btn svg {
    pointer-events: none;
}

.vc-ctrl-progress-wrap {
    flex: 1;
    height: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    min-width: 0;
}

.vc-ctrl-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.vc-ctrl-progress-wrap:hover .vc-ctrl-progress-bar {
    height: 5px;
}

.vc-ctrl-progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

.vc-ctrl-progress-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #8b5cf6;
    border-radius: 2px;
    width: 0%;
}

.vc-ctrl-time {
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 28px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Volume Wrapper (icon + vertical popup slider) */
.vc-ctrl-volume-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.vc-volume-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 90px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    z-index: 20;
    margin-bottom: 0;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.vc-ctrl-volume-wrap:hover .vc-volume-popup,
.vc-volume-popup:hover,
.vc-volume-popup.vc-volume-active {
    display: flex !important;
}

.vc-volume-bar {
    position: relative;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    cursor: pointer;
}

.vc-volume-bar:hover {
    width: 5px;
}

.vc-volume-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #8b5cf6;
    border-radius: 2px;
    pointer-events: none;
    transition: height 0.05s linear;
}

.vc-volume-thumb {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
    z-index: 2;
}

.vc-volume-bar:hover .vc-volume-thumb {
    transform: translateX(-50%) scale(1.2);
}

.vc-modal .vc-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 2 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    font-size: 24px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.vc-modal .vc-modal-close:hover {
    background: rgba(255, 0, 0, 0.6) !important;
    border-color: rgba(255, 0, 0, 0.8) !important;
    transform: scale(1.1) !important;
}

/* Modal Nav Arrows (prev/next) */
.vc-modal-nav {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.vc-modal-prev {
    top: 2px !important;
}

.vc-modal-next {
    bottom: 2px !important;
}

.vc-modal-nav:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateX(-50%) scale(1.15) !important;
}

.vc-modal-nav[disabled] {
    opacity: 0.2 !important;
    pointer-events: none !important;
}

/* Modal Counter (1/5) */
.vc-modal-counter {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
    white-space: nowrap;
}

/* Swipe Hint (shown once) */
.vc-swipe-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    white-space: nowrap;
}

.vc-swipe-hint.visible {
    opacity: 1;
}

/* Empty state */
.vc-empty {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.6;
    font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .vc-modal-content {
        max-width: 100%;
        padding: 10px;
    }

    .vc-modal .vc-modal-close {
        top: 5px !important;
        right: 5px !important;
    }

    .vc-modal-nav {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
        font-size: 14px !important;
    }

    .vc-title {
        font-size: 1.5rem;
    }
}

/* Fullscreen CSS (keeps 9:16 ratio) */
.vc-modal.vc-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.vc-modal.vc-fullscreen .vc-modal-content {
    max-width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vc-modal.vc-fullscreen .vc-modal-video-wrap {
    width: auto;
    height: 100vh;
    aspect-ratio: 9 / 16;
    max-width: 100%;
    border-radius: 0;
}

.vc-modal.vc-fullscreen .vc-modal-close {
    top: 16px !important;
    right: 16px !important;
    z-index: 10 !important;
}

.vc-modal.vc-fullscreen .vc-modal-nav {
    z-index: 10 !important;
}

.vc-modal.vc-fullscreen .vc-modal-actions {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 16px;
}

.vc-modal.vc-fullscreen .vc-video-menu-btn {
    z-index: 10 !important;
}

.vc-modal.vc-fullscreen .vc-swipe-hint {
    z-index: 10;
}

.vc-modal.vc-fullscreen .vc-video-controls {
    z-index: 10;
}

/* ============================================
   GRID LAYOUT (Page Vidéo / Playlist)
   ============================================ */

.vc-grid-section {
    padding: 0;
}

.vc-grid-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 40px 0 30px;
    margin-bottom: 28px;
    border-radius: 24px 24px 0 0;
}

.vc-grid-hero .vc-header {
    margin-bottom: 20px;
    padding: 0 16px;
}

.vc-grid-hero .vc-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.vc-grid-hero .vc-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin: 0;
}

/* Category Tabs inside hero */
.vc-grid-hero .vc-tabs-wrap {
    padding: 0 16px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.vc-grid-hero .vc-tabs-wrap::-webkit-scrollbar {
    display: none;
}

.vc-grid-hero .vc-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.vc-grid-hero .vc-tab {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

.vc-grid-hero .vc-tab:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--vc-tab-color, rgba(139, 92, 246, 0.5)) !important;
    color: #fff !important;
}

.vc-grid-hero .vc-tab.active {
    background: var(--vc-tab-color, #8b5cf6) !important;
    border-color: var(--vc-tab-color, #8b5cf6) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
}

/* Grid cards stay outside hero */
.vc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 16px;
}

/* Grid Card */
.vc-grid-card {
    flex: 1 1 calc(25% - 12px);
    min-width: 180px;
    max-width: calc(25% - 12px);
    cursor: pointer;
}

.vc-grid-card-inner {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 16/9 ratio */
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vc-grid-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vc-grid-card:hover .vc-grid-cover {
    transform: scale(1.05);
}

.vc-grid-cover-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.2), rgba(236, 72, 153, 0.3));
}

/* Overlay */
.vc-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        transparent 30%,
        transparent 60%,
        rgba(0, 0, 0, 0.5) 100%
    );
    transition: background 0.2s ease;
}

.vc-grid-card:hover .vc-grid-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* Play icon (top right) */
.vc-grid-play {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vc-grid-play svg {
    margin-left: 2px;
}

.vc-grid-card:hover .vc-grid-play {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Bottom info */
.vc-grid-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vc-grid-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.vc-grid-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.vc-grid-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.vc-grid-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Load More Button */
.vc-load-more-wrap {
    text-align: center;
    padding: 30px 16px;
}

.vc-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    background: transparent;
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vc-load-more-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.7);
    transform: translateY(-1px);
}

.vc-load-more-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.vc-load-count {
    font-weight: 400;
    opacity: 0.6;
    font-size: 0.85rem;
}

/* Grid responsive */
@media (max-width: 900px) {
    .vc-grid-card {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    .vc-grid-title {
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .vc-grid-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .vc-grid {
        gap: 12px;
    }

    .vc-grid-title {
        font-size: 1.1rem;
    }
}
