/* ==========================================================================
   YouTube Shorts Section CSS
   ========================================================================== */

/* Container & Scroll */
.vv-shorts-wrap { display: flex; align-items: center; position: relative; }
.vv-shorts-scroll { 
    display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; 
    padding: 10px 0; scrollbar-width: none; 
}
.vv-shorts-scroll::-webkit-scrollbar { display: none; }

/* Short Card */
.vv-short-card { 
    width: 220px; height: 391px; border-radius: 10px; 
    overflow: hidden; position: relative; flex-shrink: 0; 
}
/* Thumbnail Image - Keeps object-fit to fix black bars */
.vv-short-img { object-fit: cover; width: 100%; height: 100%; transition: transform 0.3s; }
.vv-short-card:hover .vv-short-img { transform: scale(1.05); }

/* Overlays & Play Button */
.vv-short-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent); z-index: 1; pointer-events: none; }
.vv-short-play { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    background: rgba(255, 0, 0, 0.8); width: 40px; height: 40px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 3; pointer-events: none; 
}

/* Title Positioning (Missing in snippet but necessary for proper display) */
.vv-short-info {
    position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 4; pointer-events: none;
}
.vv-short-info h4 { 
    margin: 0; color: white; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    font-size: 1.4rem; /* Scalable font size */
    line-height: 1.3;
    font-weight: 400; /* Reduced weight for a more premium look */
}

/* Pulse Animation for Shorts Badge */
@keyframes vvPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.vv-short-badge,
.vv-pulse { 
    animation: vvPulse 2s infinite ease-in-out; 
    position: absolute; top: 12px; right: 12px; z-index: 5; pointer-events: none; 
    background: rgba(255,255,255,0.2); 
    backdrop-filter: blur(4px);
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Navigation Buttons */
.vv-shorts-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.9); border: none; border-radius: 50%;
    width: 40px; height: 40px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 10;
}
.vv-shorts-nav.prev { left: -20px; }
.vv-shorts-nav.next { right: -20px; }

/* Loading State */
.vv-shorts-loading { padding: 30px; color: #666; text-align: center; width: 100%; }

/* Mobile View */
@media(max-width:768px) {
    .vv-shorts-nav { display: none; } /* Hide side arrows on strict mobile */
    .vv-short-card { width: 140px; height: 250px; }
    .vv-short-info h4 { font-size: 12px; -webkit-line-clamp: 2; line-clamp: 2; }
}
