/* Rutube Shorts Slider Styles */
.rutube-shorts-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.rutube-shorts-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.rutube-shorts-slider .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.rutube-shorts-slider .swiper-slide:hover {
    transform: translateY(-2px);
}

.rutube-shorts-slider .swiper-slide.active {
    border: 2px solid #6DBFDA;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    min-width: 181px;
    min-height: 325px;
    background: #f0f0f0;
    overflow: hidden;
    border-radius: 20px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rutube-shorts-slider .swiper-slide:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #6dbfdaa8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-play-button:hover {
    background: #6DBFDA;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.video-info {
    padding: 16px 2px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-description {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
    margin-top: auto;
}

.video-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-date {
    color: #999;
}

/* Video Popup */
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.video-popup.active {
    display: flex;
}

.video-popup-content {
position: relative;
    max-width: 400px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 700px;
}

.video-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.video-popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-embed-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading State */
.rutube-shorts-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
    font-size: 16px;
}

.rutube-shorts-loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #6DBFDA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.rutube-shorts-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #e74c3c;
    font-size: 16px;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-popup {
    padding: 0px;
}
.video-popup-content {
    max-width: 460px;
    height: 100%;
    max-height: 100%;
        border-radius: 0;
}
#video-popup {
    z-index: 9999999999;
}
.go_t_b_y a {
    box-sizing: border-box;
}
    .rutube-shorts-slider {
        padding: 15px;
    }
    
    .video-thumbnail {
        height: 140px;
    }
    
    .video-info {
        padding: 12px;
    }
    
    .video-title {
        font-size: 13px;
    }
    
    .video-description {
        font-size: 11px;
    }
    
    .rutube-shorts-slider .swiper-button-next,
    .rutube-shorts-slider .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .rutube-shorts-slider .swiper-button-next::after,
    .rutube-shorts-slider .swiper-button-prev::after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .video-thumbnail {
        height: 120px;
    }
    
    .video-info {
        padding: 10px;
    }
    
    .video-title {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    
    .video-description {
        font-size: 10px;
        -webkit-line-clamp: 1;
    }
    
    .video-meta {
        font-size: 10px;
    }
} 