/* Short Videos Section Styles */
.short-videos-section {
    padding: 20px 0;
    background: #f1f3f6;
    border-top: 1px solid #ddd;
}

.videos-container {
    max-width: 100%;
    margin: 0;
    padding: 0 24px;
}

.videos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.videos-title {
    font-size: 20px;
    font-weight: 500;
    color: #212121;
}

.videos-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.videos-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.videos-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.video-card {
    min-width: 160px;
    width: 160px;
    height: 280px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.video-card:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.video-title-small {
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    backdrop-filter: blur(4px);
}

/* Video Player Modal */
.video-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-player-modal.active {
    display: flex;
}

.modal-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 80vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-iframe-container {
    width: 100%;
    height: 100%;
}

.video-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .short-videos-section {
        padding: 15px 0;
    }

    .video-card {
        min-width: 140px;
        width: 140px;
        height: 240px;
    }

    .modal-content-wrapper {
        height: 100%;
        max-width: 100%;
        border-radius: 0;
    }
}