/* ─── VIDEO CAROUSEL STYLES ─── */

.video-carousel-wrap {
    position: relative;
    margin-bottom: 10px;
    padding: 0 4px;
    max-width: 100%;
    overflow: hidden;
}

.video-carousel-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
}

.video-carousel-track::-webkit-scrollbar {
    display: none;
}

/* ─── RESPONSIVE VIDEO CARDS ─── */
.video-bubble-card {
    flex: 0 0 auto;
    width: 160px;
    max-width: 160px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.video-bubble-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ─── 16:9 ASPECT RATIO THUMBNAIL ─── */
.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #f5f5f5;
    overflow: hidden;
}

.video-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── VIDEO INFO BODY ─── */
.video-bubble-body {
    padding: 8px 10px;
}

.video-bubble-body .video-bubble-cat {
    font-size: 9px;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 2px;
}

.video-bubble-body .video-bubble-cat i {
    margin-right: 2px;
}

.video-bubble-body h4 {
    font-size: 12px;
    font-weight: 600;
    color: #222222 !important;
    margin: 0 0 3px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-bubble-body .video-bubble-meta {
    display: flex;
    gap: 8px;
    font-size: 9px;
    color: #888888;
}

.video-bubble-body .video-bubble-meta i {
    margin-right: 2px;
}

/* ─── PLAY BUTTON OVERLAY ─── */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    z-index: 2;
    transition: background 0.3s ease;
}

.video-play-overlay:hover {
    background: rgba(0,0,0,0.8);
}

.video-play-overlay svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ─── VIEWS BADGE ─── */
.video-views-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0,0,0,0.7);
    color: #aaaaaa;
    font-size: 8px;
    padding: 1px 6px;
    border-radius: 3px;
    z-index: 2;
}

.video-views-badge i {
    margin-right: 2px;
}

/* ─── SCROLL BUTTONS ─── */
.video-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 26px;
    height: 26px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.video-scroll-btn:hover {
    background: #f0f0f0;
}

.video-scroll-left {
    left: -4px;
}

.video-scroll-right {
    right: -4px;
}

/* ─── RESPONSIVE - TABLET ─── */
@media (min-width: 768px) {
    .video-bubble-card {
        width: 200px;
        max-width: 200px;
    }
    
    .video-bubble-body {
        padding: 10px 12px;
    }
    
    .video-bubble-body .video-bubble-cat {
        font-size: 10px;
    }
    
    .video-bubble-body h4 {
        font-size: 13px;
        color: #222222 !important;
    }
    
    .video-bubble-body .video-bubble-meta {
        font-size: 10px;
    }
    
    .video-play-overlay {
        width: 54px;
        height: 54px;
    }
    
    .video-play-overlay svg {
        width: 22px;
        height: 22px;
    }
    
    .video-scroll-btn {
        width: 30px;
        height: 30px;
    }
    
    .video-scroll-left {
        left: -8px;
    }
    
    .video-scroll-right {
        right: -8px;
    }
}

/* ─── RESPONSIVE - DESKTOP ─── */
@media (min-width: 1024px) {
    .video-bubble-card {
        width: 240px;
        max-width: 240px;
    }
    
    .video-bubble-body {
        padding: 12px 14px;
    }
    
    .video-bubble-body .video-bubble-cat {
        font-size: 11px;
    }
    
    .video-bubble-body h4 {
        font-size: 14px;
        color: #222222 !important;
    }
    
    .video-bubble-body .video-bubble-meta {
        font-size: 11px;
    }
    
    .video-carousel-track {
        gap: 12px;
        padding: 4px 4px 12px 4px;
    }
    
    .video-play-overlay {
        width: 60px;
        height: 60px;
    }
    
    .video-play-overlay svg {
        width: 24px;
        height: 24px;
    }
}

/* ─── RESPONSIVE - LARGE DESKTOP ─── */
@media (min-width: 1400px) {
    .video-bubble-card {
        width: 280px;
        max-width: 280px;
    }
    
    .video-carousel-track {
        gap: 16px;
    }
}