/* --- 1. Main --- */
.wp-shorts-main-section { width: 100%; position: relative; overflow: hidden; }
.wp-shorts-carousel-container { width: 100%; margin: 0 auto; position: relative; overflow: visible; }
.wp-shorts-swiper-desktop { width: 100%; height: 100%; padding: 30px 0 50px 0; overflow: visible !important; }

/* --- 2. Slides --- */
.wp-shorts-swiper-desktop .swiper-slide {
    height: 90% !important; 
    width: auto !important; 
    aspect-ratio: 9 / 16;
    display: flex; flex-direction: column; justify-content: flex-start;
    position: relative; transition: all 0.4s ease; cursor: pointer;
    transform: scale(0.9); opacity: 0.6; z-index: 1; 
}
.wp-shorts-swiper-desktop .swiper-slide-active { transform: scale(1.05) !important; opacity: 1 !important; z-index: 10; }

/* --- 3. Content --- */
.slide-inner-content {
    width: 100%; height: 100%; position: relative; 
    background: #000; overflow: hidden; 
    box-sizing: border-box;
}

.shorts-thumbnail { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    display: block; 
    position: absolute; 
    top: 0; left: 0; 
    z-index: 0; 
}

/* --- GRADIENTS --- */
.shorts-gradient-top {
    position: absolute; top: 0; left: 0; width: 100%; height: 25%;
    z-index: 1; pointer-events: none;
}
.shorts-gradient-bottom {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 35%;
    z-index: 1; pointer-events: none;
}

/* --- BADGES --- */
.shorts-badge-container {
    position: absolute; 
    z-index: 10;
    pointer-events: none;
}
.shorts-badge {
    display: inline-block;
    padding: 4px 8px; 
    font-size: 11px; font-weight: bold; text-transform: uppercase;
    color: #fff; background: #e74c3c; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.badge-style-flat { border-radius: 0; }
.badge-style-rounded { border-radius: 4px; }
.badge-style-pill { border-radius: 50px; }
.badge-style-outline { background: transparent !important; border: 2px solid; }
.badge-style-tag { border-radius: 0 4px 4px 0; border-left: 3px solid rgba(0,0,0,0.2); }

/* Play Button */
.shorts-play-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 5; }
.shorts-play-btn { width: 50px; height: 50px; background: rgba(220, 20, 60, 0.9); border-radius: 50%; border: 2px solid #fff; position: relative; }
.shorts-play-btn::after { content: ''; position: absolute; top: 50%; left: 55%; transform: translate(-50%, -50%); border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent white; }

/* Text Overlay */
.shorts-text-overlay { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    z-index: 6; 
    pointer-events: none;
    height: auto;
    max-height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Background Opacity Pseudo-element */
.shorts-text-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    transition: opacity 0.3s;
}

.shorts-title-below { 
    margin: 0; 
    font-family: sans-serif; 
    line-height: 1.4; 
    color: #fff;
    white-space: normal;
    word-break: break-word;
}

/* Pagination */
.swiper-pagination { bottom: 0 !important; }
.swiper-pagination-bullet { width: 8px; height: 8px; opacity: 0.5; background: #000; }
.swiper-pagination-bullet-active { opacity: 1; width: 20px; border-radius: 5px; }

/* --- Mobile Modal --- */
.wp-shorts-mobile-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000; z-index: 999999; display: none; flex-direction: column;
}
.wp-shorts-mobile-modal.active { display: flex; }

.mobile-control-btn {
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; border: none; backdrop-filter: blur(2px); transition: background 0.3s;
    pointer-events: auto;
}
.mobile-control-btn i { font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif !important; font-weight: 900; }

.wp-shorts-mobile-modal.icons-transparent .mobile-control-btn {
    background-color: transparent !important; border: none !important; backdrop-filter: none !important;
}

.exit-btn { position: absolute; top: 20px; right: 20px; z-index: 1002; }

.mobile-nav-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1001; pointer-events: none;
    display: flex; flex-direction: row; 
    padding: 0 20px; box-sizing: border-box;
}

.wp-shorts-swiper-mobile { width: 100%; height: 100%; }
.wp-shorts-swiper-mobile .swiper-slide { display: flex; justify-content: center; align-items: center; background: #000; }
.mobile-video-placeholder { width: 100%; height: 100%; background-size: cover; background-position: center; }

@media (min-width: 768px) { .mobile-control-btn, .mobile-nav-container { display: none; } }