/* ============================================
   VIDEO SHORT SLIDER STYLES
   ============================================ */

.videoshort-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.videoshort-slider-container {
    max-width: 100%;
    overflow: hidden;
}

.videoshort-slider {
    display: flex;
    gap: 20px;
    will-change: transform;
}

.videoshort-slider-wrapper.has-active .videoshort-slider {
    gap: 12px;
}

/* ============================================
   ITEM - 4 items desktop, 1.5 mobile
   ============================================ */
.videoshort-item {
    flex: 0 0 300px;
    cursor: pointer;
    height: 500px;
    transition: all .45s ease;
    opacity: 1;
}

.videoshort-slider-wrapper.has-active .videoshort-item {
    opacity: 0.45;
}

/* Không expand khi active - giữ nguyên kích thước */
.videoshort-item.active {
    flex: 0 0 300px !important;
    opacity: 1 !important;
}

/* ============================================
   CARD
   ============================================ */
.videoshort-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid transparent;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: all .35s ease;
    position: relative;
}

.videoshort-item:not(.active) .videoshort-card {
    background: transparent;
    box-shadow: none;
}

.videoshort-item:hover .videoshort-card {
    border-color: #FF0000;
}

.videoshort-item.active .videoshort-card {
    border-color: #FF0000;
}

.videoshort-slider-wrapper.has-active .videoshort-item:not(.active):hover .videoshort-card {
    border-color: transparent;
}

/* ============================================
   THUMBNAIL - Hiển thị khi chưa active
   ============================================ */
.videoshort-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.videoshort-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play button overlay */
.videoshort-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.videoshort-item:hover .videoshort-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Ẩn khi active */
.videoshort-item.active .videoshort-thumbnail {
    display: none;
}

/* ============================================
   VIDEO PLAYER - Hiển thị khi active
   ============================================ */
.videoshort-player {
    width: 100%;
    height: 100%;
    display: none;
    background: #000;
}

.videoshort-item.active .videoshort-player {
    display: block;
}

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

/* ============================================
   PAGINATION BULLETS
   ============================================ */
.videoshort-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.videoshort-bullet {
    width: 30px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.videoshort-bullet:hover {
    background: #FF0000;
    transform: scaleX(1.2);
}

.videoshort-bullet.active {
    background: #FF0000;
    transform: scaleX(1.3);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .videoshort-item {
        flex: 0 0 calc(66.666vw - 20px);
        height: 400px;
    }

    /* Không expand trên mobile - giữ nguyên */
    .videoshort-item.active {
        flex: 0 0 calc(66.666vw - 20px) !important;
        height: 400px !important;
    }

    .videoshort-play-btn svg {
        width: 50px;
        height: 50px;
    }

    /* Các item khác vẫn hiển thị khi active */
    .videoshort-slider-wrapper.has-active .videoshort-item:not(.active) {
        opacity: 0.45;
    }
}
