/* ============================================
   YT Video Carousel - Frontend Styles
   Heavy specificity to prevent theme overrides
   ============================================ */

.ytvc-carousel-wrapper {
    position: relative !important;
    overflow: hidden !important;
    padding: 0 50px !important;
    margin: 30px 0 !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.ytvc-carousel-wrapper *,
.ytvc-carousel-wrapper *::before,
.ytvc-carousel-wrapper *::after {
    box-sizing: border-box !important;
}

/* Track */
.ytvc-carousel-wrapper .ytvc-carousel-track {
    display: flex !important;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Slide */
.ytvc-carousel-wrapper .ytvc-slide {
    flex: 0 0 auto !important;
    padding: 0 10px !important;
    margin: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: none !important;
}

/* Video Card */
.ytvc-carousel-wrapper .ytvc-video-card {
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #0e0e0e !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ytvc-carousel-wrapper .ytvc-video-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
}

/* Thumbnail Container */
.ytvc-carousel-wrapper .ytvc-thumbnail-wrap {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    cursor: pointer !important;
    background: #000 !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Thumbnail Image */
.ytvc-carousel-wrapper .ytvc-thumbnail-wrap img.ytvc-thumb-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100% !important;
    max-height: none !important;
    position: static !important;
    transform: none !important;
    object-fit: cover !important;
    transition: transform 0.4s ease, filter 0.4s ease !important;
}

.ytvc-carousel-wrapper .ytvc-thumbnail-wrap:hover img.ytvc-thumb-img {
    transform: scale(1.05) !important;
    filter: brightness(0.8) !important;
}

/* Play Button */
.ytvc-carousel-wrapper .ytvc-play-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    opacity: 0.85 !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    pointer-events: none !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    line-height: 0 !important;
    box-shadow: none !important;
    z-index: 2 !important;
}

.ytvc-carousel-wrapper .ytvc-play-btn svg {
    display: block !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ytvc-carousel-wrapper .ytvc-thumbnail-wrap:hover .ytvc-play-btn {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Video Title */
.ytvc-carousel-wrapper .ytvc-video-title {
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #fff !important;
    background: #0e0e0e !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border: none !important;
    margin: 0 !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ============================================
   Navigation Arrows — heavy reset
   ============================================ */
.ytvc-carousel-wrapper button.ytvc-nav,
.ytvc-carousel-wrapper button.ytvc-nav.ytvc-nav-prev,
.ytvc-carousel-wrapper button.ytvc-nav.ytvc-nav-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #222 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.ytvc-carousel-wrapper button.ytvc-nav:hover {
    background: #fff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22) !important;
    transform: translateY(-50%) scale(1.08) !important;
    color: #222 !important;
    border: none !important;
}

.ytvc-carousel-wrapper button.ytvc-nav:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.ytvc-carousel-wrapper button.ytvc-nav:focus {
    outline: 2px solid rgba(0, 0, 0, 0.3) !important;
    outline-offset: 2px !important;
    border: none !important;
}

.ytvc-carousel-wrapper button.ytvc-nav-prev {
    left: 4px !important;
    right: auto !important;
}

.ytvc-carousel-wrapper button.ytvc-nav-next {
    right: 4px !important;
    left: auto !important;
}

.ytvc-carousel-wrapper button.ytvc-nav svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    background: transparent !important;
    border: none !important;
}

/* ============================================
   Dot Indicators — heavy reset
   ============================================ */
.ytvc-carousel-wrapper .ytvc-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 20px 0 0 0 !important;
    padding: 4px 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.ytvc-carousel-wrapper .ytvc-dots button.ytvc-dot,
.ytvc-carousel-wrapper .ytvc-dots .ytvc-dot,
button.ytvc-dot {
    width: 10px !important;
    height: 10px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: #ccc !important;
    background-image: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    box-shadow: none !important;
    display: block !important;
    flex: 0 0 10px !important;
    text-decoration: none !important;
    float: none !important;
    position: static !important;
    opacity: 1 !important;
    overflow: hidden !important;
    color: transparent !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.ytvc-carousel-wrapper .ytvc-dots button.ytvc-dot:hover,
.ytvc-carousel-wrapper .ytvc-dots .ytvc-dot:hover,
button.ytvc-dot:hover {
    background-color: #999 !important;
    background-image: none !important;
    transform: scale(1.3) !important;
    border: none !important;
    box-shadow: none !important;
}

.ytvc-carousel-wrapper .ytvc-dots button.ytvc-dot.active,
.ytvc-carousel-wrapper .ytvc-dots .ytvc-dot.active,
button.ytvc-dot.active {
    background-color: #FF0000 !important;
    background-image: none !important;
    transform: scale(1.3) !important;
    border: none !important;
    box-shadow: none !important;
}

/* ============================================
   Lightbox
   ============================================ */
.ytvc-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ytvc-lightbox .ytvc-lightbox-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.88) !important;
    backdrop-filter: blur(4px) !important;
    border: none !important;
}

.ytvc-lightbox .ytvc-lightbox-content {
    position: relative !important;
    width: 90% !important;
    max-width: 960px !important;
    z-index: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ytvc-lightbox .ytvc-lightbox-player {
    position: relative !important;
    width: 100% !important;
    padding-top: 56.25% !important;
    background: #000 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5) !important;
}

.ytvc-lightbox .ytvc-lightbox-player iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

.ytvc-lightbox button.ytvc-lightbox-close {
    position: absolute !important;
    top: -48px !important;
    right: 0 !important;
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 36px !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s !important;
    line-height: 1 !important;
    padding: 4px 8px !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.ytvc-lightbox button.ytvc-lightbox-close:hover {
    opacity: 1 !important;
    background: none !important;
    border: none !important;
}

/* No Videos Message */
p.ytvc-no-videos {
    text-align: center !important;
    padding: 40px !important;
    color: #888 !important;
    font-style: italic !important;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .ytvc-carousel-wrapper {
        padding: 0 40px !important;
    }
}

@media (max-width: 768px) {
    .ytvc-carousel-wrapper {
        padding: 0 36px !important;
    }

    .ytvc-carousel-wrapper button.ytvc-nav,
    .ytvc-carousel-wrapper button.ytvc-nav.ytvc-nav-prev,
    .ytvc-carousel-wrapper button.ytvc-nav.ytvc-nav-next {
        width: 36px !important;
        height: 36px !important;
    }

    .ytvc-carousel-wrapper button.ytvc-nav svg {
        width: 16px !important;
        height: 16px !important;
    }

    .ytvc-lightbox .ytvc-lightbox-content {
        width: 95% !important;
    }

    .ytvc-lightbox button.ytvc-lightbox-close {
        top: -40px !important;
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .ytvc-carousel-wrapper {
        padding: 0 8px !important;
        margin: 20px 0 !important;
    }

    .ytvc-carousel-wrapper button.ytvc-nav,
    .ytvc-carousel-wrapper button.ytvc-nav.ytvc-nav-prev,
    .ytvc-carousel-wrapper button.ytvc-nav.ytvc-nav-next {
        display: none !important;
    }

    .ytvc-carousel-wrapper .ytvc-video-title {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }

    .ytvc-carousel-wrapper .ytvc-dots {
        margin-top: 14px !important;
    }
}
