/**
 * Dynamic Post Carousel - Premium Elementor Widget
 * 8 Skin Variations with Native CSS Scroll Snap
 *
 * @package Bith_Core
 * @since 1.0.0
 */

/* =====================================================
   BASE STYLES
   ===================================================== */
.bith-post-carousel {
    --carousel-primary: var(--bith-widget-primary, #6366f1);
    --carousel-secondary: var(--bith-widget-secondary, #a855f7);
    --carousel-surface: var(--bith-widget-surface, #ffffff);
    --carousel-text: var(--bith-widget-text-body, #334155);
    --carousel-text-muted: var(--bith-widget-text-muted, #64748b);
    --carousel-border: var(--bith-widget-border, #e2e8f0);
    --carousel-radius: var(--bith-widget-radius-lg, 16px);
    --carousel-shadow: var(--bith-widget-shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
    --carousel-transition: var(--bith-widget-transition-normal, 300ms ease);

    position: relative;
    width: 100%;
    font-family: var(--bith-widget-font-primary, 'Inter', sans-serif);
}

.bith-post-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bith-post-carousel__track::-webkit-scrollbar {
    display: none;
}

.bith-post-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--carousel-transition);
}

/* Ensure WordPress thumbnail images fill containers */
.bith-post-carousel img.wp-post-image,
.bith-post-carousel .attachment-medium,
.bith-post-carousel .attachment-medium_large,
.bith-post-carousel .attachment-large,
.bith-post-carousel .attachment-full,
.bith-post-carousel .attachment-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bith-post-carousel__title {
    margin: 0;
    font-family: var(--bith-widget-font-heading, inherit);
    font-weight: var(--bith-widget-font-bold, 700);
    line-height: 1.3;
    color: inherit;
}

.bith-post-carousel__title a {
    color: inherit;
    text-decoration: none;
}

.bith-post-carousel__excerpt {
    margin: 0;
    color: var(--carousel-text-muted);
    line-height: 1.6;
}

.bith-post-carousel__category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--carousel-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.bith-post-carousel__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--carousel-surface);
    color: var(--carousel-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--carousel-radius);
    transition: all var(--carousel-transition);
}

.bith-post-carousel__button:hover {
    background: var(--carousel-primary);
    color: #fff;
    transform: translateY(-2px);
}

.bith-post-carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all var(--carousel-transition);
}

.bith-post-carousel__arrow:hover {
    background: #fff;
    color: var(--carousel-text);
    transform: scale(1.1);
}

/* =====================================================
   SKIN 1: NETFLIX STREAM
   ===================================================== */
.bith-post-carousel--skin-1 {
    background: #0a0a0f;
    padding: 32px 0;
    margin: 0 -15px;
}

.bith-post-carousel__netflix-track {
    gap: 0;
    padding: 0 24px;
}

.bith-post-carousel__netflix-card {
    position: relative;
    flex: 0 0 180px;
    aspect-ratio: 2/3;
    scroll-snap-align: start;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--carousel-transition), z-index 0s 0.3s;
}

.bith-post-carousel__netflix-card:hover {
    transform: scale(1.15);
    z-index: 10;
    transition: transform var(--carousel-transition), z-index 0s 0s;
}

.bith-post-carousel__netflix-card a {
    display: block;
    width: 100%;
    height: 100%;
}

.bith-post-carousel__netflix-card .bith-post-carousel__image,
.bith-post-carousel__netflix-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bith-post-carousel__netflix-card .bith-post-carousel__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 12px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--carousel-transition);
}

.bith-post-carousel__netflix-card:hover .bith-post-carousel__overlay {
    opacity: 1;
    transform: translateY(0);
}

.bith-post-carousel__netflix-card .bith-post-carousel__category {
    background: #ef4444;
    font-size: 0.6rem;
    margin-bottom: 6px;
}

.bith-post-carousel__netflix-card .bith-post-carousel__title {
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bith-post-carousel__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
}

.bith-post-carousel__rating {
    color: #fbbf24;
    font-weight: 600;
}

/* =====================================================
   SKIN 2: HERO SLIDER (FULL WIDTH)
   ===================================================== */
.bith-post-carousel--skin-2 .bith-post-carousel__hero {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--carousel-radius);
    overflow: hidden;
    box-shadow: var(--carousel-shadow);
}

.bith-post-carousel__hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.bith-post-carousel__hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 600ms ease, visibility 600ms ease;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
}

.bith-post-carousel__hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.bith-post-carousel__hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.bith-post-carousel__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    max-width: 700px;
    width: 90%;
    padding: 0 20px;
}

.bith-post-carousel__hero-slide .bith-post-carousel__hero-content {
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: all 600ms ease 200ms;
}

.bith-post-carousel__hero-slide.active .bith-post-carousel__hero-content {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.bith-post-carousel__hero-content .bith-post-carousel__category {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.bith-post-carousel__hero-content .bith-post-carousel__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.bith-post-carousel__hero-content .bith-post-carousel__excerpt {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.bith-post-carousel--skin-2 .bith-post-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.bith-post-carousel--skin-2 .bith-post-carousel__arrow--prev {
    left: 24px;
}

.bith-post-carousel--skin-2 .bith-post-carousel__arrow--next {
    right: 24px;
}

.bith-post-carousel__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.bith-post-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--carousel-transition);
}

.bith-post-carousel__dot.active {
    background: #fff;
    width: 32px;
    border-radius: 5px;
}

/* =====================================================
   SKIN 3: CARD FOCUS (COVERFLOW 3D)
   ===================================================== */
.bith-post-carousel--skin-3 .bith-post-carousel__coverflow {
    position: relative;
    padding: 40px 0;
    perspective: 1500px;
    overflow: hidden;
}

.bith-post-carousel__coverflow-track {
    justify-content: center;
    align-items: center;
    gap: 0;
    overflow: visible;
    transition: transform 500ms ease;
}

.bith-post-carousel__coverflow-card {
    position: relative;
    flex: 0 0 340px;
    background: var(--carousel-surface);
    border-radius: var(--carousel-radius);
    overflow: hidden;
    box-shadow: var(--carousel-shadow);
    transition: all 500ms ease;
    transform-style: preserve-3d;
    opacity: 0.4;
    transform: scale(0.75);
    filter: blur(2px);
    pointer-events: none;
}

.bith-post-carousel__coverflow-card.prev {
    transform: scale(0.8) rotateY(25deg) translateX(80px);
    opacity: 0.6;
    filter: blur(1px);
}

.bith-post-carousel__coverflow-card.next {
    transform: scale(0.8) rotateY(-25deg) translateX(-80px);
    opacity: 0.6;
    filter: blur(1px);
}

.bith-post-carousel__coverflow-card.active {
    transform: scale(1) rotateY(0deg);
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    z-index: 10;
}

.bith-post-carousel__coverflow-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.bith-post-carousel__coverflow-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bith-post-carousel__coverflow-content {
    padding: 24px;
}

.bith-post-carousel__coverflow-content .bith-post-carousel__category {
    background: linear-gradient(135deg, var(--carousel-primary), var(--carousel-secondary));
    margin-bottom: 12px;
}

.bith-post-carousel__coverflow-content .bith-post-carousel__title {
    font-size: 1.1rem;
    color: var(--carousel-text);
    margin-bottom: 8px;
}

.bith-post-carousel--skin-3 .bith-post-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--carousel-surface);
    border: 1px solid var(--carousel-border);
    color: var(--carousel-text);
    z-index: 20;
}

.bith-post-carousel--skin-3 .bith-post-carousel__arrow:hover {
    background: var(--carousel-primary);
    border-color: var(--carousel-primary);
    color: #fff;
}

.bith-post-carousel--skin-3 .bith-post-carousel__arrow--prev {
    left: 16px;
}

.bith-post-carousel--skin-3 .bith-post-carousel__arrow--next {
    right: 16px;
}

/* =====================================================
   SKIN 4: NEWS TICKER (TEXT ONLY)
   ===================================================== */
.bith-post-carousel--skin-4 .bith-post-carousel__ticker {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-radius: var(--carousel-radius);
    overflow: hidden;
    box-shadow: var(--carousel-shadow);
}

.bith-post-carousel__ticker-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: #7f1d1d;
    color: #fff;
    white-space: nowrap;
    position: relative;
}

.bith-post-carousel__ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-left-color: #7f1d1d;
}

.bith-post-carousel__ticker-icon {
    font-size: 1rem;
    animation: bith-ticker-pulse 1.5s ease infinite;
}

@keyframes bith-ticker-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.bith-post-carousel__ticker-text {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bith-post-carousel__ticker-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 0 24px;
}

.bith-post-carousel__ticker-track {
    display: flex;
    gap: 60px;
    animation: bith-ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.bith-post-carousel__ticker-track:hover {
    animation-play-state: paused;
}

@keyframes bith-ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.bith-post-carousel__ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity var(--carousel-transition);
}

.bith-post-carousel__ticker-item:hover {
    opacity: 0.8;
}

.bith-post-carousel__ticker-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* =====================================================
   SKIN 5: SPLIT SLIDER
   ===================================================== */
.bith-post-carousel--skin-5 .bith-post-carousel__split {
    position: relative;
    background: var(--carousel-surface);
    border-radius: var(--carousel-radius);
    overflow: hidden;
    box-shadow: var(--carousel-shadow);
}

.bith-post-carousel__split-track {
    scroll-snap-type: x mandatory;
}

.bith-post-carousel__split-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    scroll-snap-align: center;
    min-height: 450px;
}

.bith-post-carousel__split-image {
    position: relative;
    overflow: hidden;
}

.bith-post-carousel__split-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.bith-post-carousel__split-slide:hover .bith-post-carousel__split-image img {
    transform: scale(1.05);
}

.bith-post-carousel__split-image-accent {
    position: absolute;
    top: 32px;
    right: -20px;
    width: 40%;
    height: 40%;
    background: linear-gradient(135deg, var(--carousel-primary), var(--carousel-secondary));
    border-radius: var(--carousel-radius);
    opacity: 0.1;
}

.bith-post-carousel__split-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bith-post-carousel__split-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--carousel-primary), var(--carousel-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
    margin-bottom: -20px;
}

.bith-post-carousel__split-content .bith-post-carousel__category {
    background: var(--bith-widget-bg-subtle, #f1f5f9);
    color: var(--carousel-primary);
    margin-bottom: 16px;
    width: fit-content;
}

.bith-post-carousel__split-content .bith-post-carousel__title {
    font-size: 1.75rem;
    color: var(--carousel-text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.bith-post-carousel__split-content .bith-post-carousel__excerpt {
    margin-bottom: 20px;
    line-height: 1.7;
}

.bith-post-carousel__split-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.bith-post-carousel__author,
.bith-post-carousel__date {
    font-size: 0.8rem;
    color: var(--carousel-text-muted);
}

.bith-post-carousel__author {
    font-weight: 600;
}

.bith-post-carousel__split-content .bith-post-carousel__button {
    background: linear-gradient(135deg, var(--carousel-primary), var(--carousel-secondary));
    color: #fff;
    width: fit-content;
}

.bith-post-carousel__split-navigation {
    position: absolute;
    bottom: 24px;
    right: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.bith-post-carousel--skin-5 .bith-post-carousel__arrow {
    width: 44px;
    height: 44px;
    background: var(--carousel-surface);
    border: 1px solid var(--carousel-border);
    color: var(--carousel-text);
}

.bith-post-carousel--skin-5 .bith-post-carousel__arrow:hover {
    background: var(--carousel-primary);
    border-color: var(--carousel-primary);
    color: #fff;
}

.bith-post-carousel__split-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--carousel-text-muted);
}

.bith-post-carousel__split-current {
    color: var(--carousel-text);
    font-size: 1.25rem;
}

/* =====================================================
   SKIN 6: GLASS FLOAT
   ===================================================== */
.bith-post-carousel--skin-6 .bith-post-carousel__glass {
    position: relative;
    border-radius: var(--carousel-radius);
    overflow: hidden;
    box-shadow: var(--carousel-shadow);
}

.bith-post-carousel__glass-track {
    scroll-snap-type: x mandatory;
}

.bith-post-carousel__glass-slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: center;
    height: 450px;
}

.bith-post-carousel__glass-slide .bith-post-carousel__image,
.bith-post-carousel__glass-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bith-post-carousel__glass-card {
    position: absolute;
    bottom: 32px;
    left: 32px;
    max-width: 380px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--carousel-radius);
    box-shadow: var(--carousel-shadow);
    transform: translateY(0);
    transition: transform var(--carousel-transition);
}

.bith-post-carousel__glass-slide:hover .bith-post-carousel__glass-card {
    transform: translateY(-8px);
}

.bith-post-carousel__glass-card .bith-post-carousel__category {
    margin-bottom: 14px;
}

.bith-post-carousel__glass-card .bith-post-carousel__title {
    font-size: 1.25rem;
    color: var(--carousel-text);
    margin-bottom: 10px;
}

.bith-post-carousel__glass-card .bith-post-carousel__excerpt {
    margin-bottom: 16px;
}

.bith-post-carousel__glass-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--carousel-primary);
    text-decoration: none;
    transition: all var(--carousel-transition);
}

.bith-post-carousel__glass-link:hover {
    color: var(--bith-widget-primary-dark, #4f46e5);
    transform: translateX(4px);
}

/* =====================================================
   SKIN 7: MOBILE SNAP CARDS
   ===================================================== */
.bith-post-carousel__snap-track {
    gap: 20px;
    padding: 16px 4px;
    scroll-padding: 20px;
}

.bith-post-carousel__snap-card {
    flex: 0 0 300px;
    scroll-snap-align: center;
    background: var(--carousel-surface);
    border-radius: var(--carousel-radius);
    overflow: hidden;
    box-shadow: var(--carousel-shadow);
    transition: all var(--carousel-transition);
}

.bith-post-carousel__snap-card:hover {
    transform: translateY(-8px);
}

.bith-post-carousel__snap-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.bith-post-carousel__snap-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--carousel-transition);
}

.bith-post-carousel__snap-card:hover .bith-post-carousel__snap-image img {
    transform: scale(1.08);
}

.bith-post-carousel__snap-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--carousel-primary), var(--carousel-secondary));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 9999px;
}

.bith-post-carousel__snap-content {
    padding: 20px;
}

.bith-post-carousel__snap-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.bith-post-carousel__snap-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.bith-post-carousel__snap-author span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--carousel-text);
}

.bith-post-carousel__snap-content .bith-post-carousel__title {
    font-size: 1rem;
    color: var(--carousel-text);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bith-post-carousel__snap-footer {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--carousel-border);
}

.bith-post-carousel__snap-likes,
.bith-post-carousel__snap-comments {
    font-size: 0.8rem;
    color: var(--carousel-text-muted);
}

/* =====================================================
   SKIN 8: VERTICAL STACK SLIDER
   ===================================================== */
.bith-post-carousel--skin-8 .bith-post-carousel__vertical {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    background: var(--carousel-surface);
    border-radius: var(--carousel-radius);
    overflow: hidden;
    box-shadow: var(--carousel-shadow);
}

.bith-post-carousel__vertical-main {
    position: relative;
}

.bith-post-carousel__vertical-featured {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.bith-post-carousel__vertical-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 500ms ease;
}

.bith-post-carousel__vertical-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 1;
}

.bith-post-carousel__vertical-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
    color: #fff;
    transition: opacity 300ms ease, transform 300ms ease;
}

.bith-post-carousel__vertical-featured-content .bith-post-carousel__category {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
}

.bith-post-carousel__vertical-featured-content .bith-post-carousel__title {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.bith-post-carousel__vertical-featured-content .bith-post-carousel__excerpt {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    max-width: 500px;
}

.bith-post-carousel__vertical-sidebar {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--bith-widget-bg-subtle, #f1f5f9);
}

.bith-post-carousel__vertical-thumbs-wrapper {
    flex: 1;
    overflow: hidden;
}

.bith-post-carousel__vertical-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
    scroll-snap-type: y mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bith-post-carousel__vertical-thumbs::-webkit-scrollbar {
    display: none;
}

.bith-post-carousel__vertical-thumb {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    background: var(--carousel-surface);
    border: 2px solid transparent;
    border-radius: var(--bith-widget-radius-md, 12px);
    cursor: pointer;
    scroll-snap-align: start;
    transition: all var(--carousel-transition);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.bith-post-carousel__vertical-thumb::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--carousel-primary), var(--carousel-secondary));
    transform: scaleY(0);
    transition: transform var(--carousel-transition);
}

.bith-post-carousel__vertical-thumb:hover {
    transform: translateX(4px);
}

.bith-post-carousel__vertical-thumb.active {
    border-color: var(--carousel-primary);
}

.bith-post-carousel__vertical-thumb.active::before {
    transform: scaleY(1);
}

.bith-post-carousel__vertical-thumb img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--bith-widget-radius-sm, 8px);
    flex-shrink: 0;
}

.bith-post-carousel__vertical-thumb-info {
    flex: 1;
    min-width: 0;
}

.bith-post-carousel__vertical-thumb-cat {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--carousel-primary);
    margin-bottom: 4px;
}

.bith-post-carousel__vertical-thumb-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--carousel-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bith-post-carousel__vertical-thumb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bith-widget-bg-subtle, #f1f5f9);
}

.bith-post-carousel__vertical-thumb.active .bith-post-carousel__vertical-thumb-progress {
    background: linear-gradient(90deg, var(--carousel-primary), var(--carousel-secondary));
    animation: bith-progress-fill 5s linear;
}

@keyframes bith-progress-fill {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.bith-post-carousel__vertical-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--carousel-border);
    margin-top: 16px;
}

.bith-post-carousel--skin-8 .bith-post-carousel__arrow {
    width: 40px;
    height: 40px;
    background: var(--carousel-surface);
    border: 1px solid var(--carousel-border);
    color: var(--carousel-text);
}

.bith-post-carousel--skin-8 .bith-post-carousel__arrow:hover {
    background: var(--carousel-primary);
    border-color: var(--carousel-primary);
    color: #fff;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .bith-post-carousel--skin-8 .bith-post-carousel__vertical {
        grid-template-columns: 1fr;
    }

    .bith-post-carousel__vertical-sidebar {
        flex-direction: row;
        padding: 16px;
        gap: 16px;
    }

    .bith-post-carousel__vertical-thumbs-wrapper {
        overflow-x: auto;
        overflow-y: visible;
    }

    .bith-post-carousel__vertical-thumbs {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-right: 0;
        padding-bottom: 8px;
    }

    .bith-post-carousel__vertical-thumb {
        flex: 0 0 200px;
    }

    .bith-post-carousel__vertical-nav {
        flex-direction: column;
        padding-top: 0;
        padding-left: 16px;
        border-top: none;
        border-left: 1px solid var(--carousel-border);
        margin-top: 0;
    }

    .bith-post-carousel__split-slide {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .bith-post-carousel__split-image {
        height: 280px;
    }

    .bith-post-carousel__split-content {
        padding: 32px;
    }

    .bith-post-carousel__split-navigation {
        position: static;
        justify-content: center;
        padding: 24px;
        border-top: 1px solid var(--carousel-border);
    }
}

@media (max-width: 768px) {
    .bith-post-carousel__netflix-card {
        flex: 0 0 140px;
    }

    .bith-post-carousel--skin-2 .bith-post-carousel__hero {
        height: 400px;
        border-radius: var(--bith-widget-radius-md, 12px);
    }

    .bith-post-carousel--skin-2 .bith-post-carousel__arrow {
        width: 40px;
        height: 40px;
    }

    .bith-post-carousel--skin-2 .bith-post-carousel__arrow--prev {
        left: 12px;
    }

    .bith-post-carousel--skin-2 .bith-post-carousel__arrow--next {
        right: 12px;
    }

    .bith-post-carousel__coverflow-card {
        flex: 0 0 280px;
    }

    .bith-post-carousel--skin-4 .bith-post-carousel__ticker {
        flex-direction: column;
        border-radius: var(--bith-widget-radius-md, 12px);
    }

    .bith-post-carousel__ticker-label {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }

    .bith-post-carousel__ticker-label::after {
        display: none;
    }

    .bith-post-carousel__split-content {
        padding: 24px;
    }

    .bith-post-carousel__split-content .bith-post-carousel__title {
        font-size: 1.4rem;
    }

    .bith-post-carousel__split-number {
        font-size: 3rem;
    }

    .bith-post-carousel__glass-slide {
        height: 350px;
    }

    .bith-post-carousel__glass-card {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        padding: 20px;
    }

    .bith-post-carousel__snap-card {
        flex: 0 0 260px;
    }

    .bith-post-carousel__vertical-featured {
        height: 350px;
    }

    .bith-post-carousel__vertical-featured-content {
        padding: 24px;
    }

    .bith-post-carousel__vertical-featured-content .bith-post-carousel__title {
        font-size: 1.35rem;
    }

    .bith-post-carousel__vertical-thumb {
        flex: 0 0 160px;
        padding: 8px;
    }

    .bith-post-carousel__vertical-thumb img {
        width: 50px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .bith-post-carousel__netflix-card {
        flex: 0 0 120px;
    }

    .bith-post-carousel__hero-content .bith-post-carousel__title {
        font-size: 1.25rem;
    }

    .bith-post-carousel__hero-content .bith-post-carousel__excerpt {
        display: none;
    }

    .bith-post-carousel__coverflow-card {
        flex: 0 0 240px;
    }

    .bith-post-carousel__snap-card {
        flex: 0 0 calc(100vw - 48px);
    }
}