/* 1. CONTAINER & HEADER */
.svod-container {
    padding: 40px 0;
    background: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    border-bottom: 1px solid #f0f0f0;
}

.svod-header {
    max-width: 1400px;
    margin: 0 auto 25px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Tiêu đề hiện đại hơn */
.svod-title {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: color 0.3s;
}
.svod-title:hover {
    color: #e13d3d;
}

/* Dấu gạch đỏ trang trí */
.svod-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: #e13d3d;
    border-radius: 4px;
}

/* 2. SWIPER AREA */
.svod-swiper {
    padding: 10px 20px 50px !important; /* Padding dưới rộng để bóng đổ không bị cắt */
    max-width: 1400px;
    margin: 0 auto;
}

.svod-swiper .swiper-slide {
    width: 210px; /* Độ rộng tối ưu cho mắt nhìn lướt */
    height: auto;
}

/* 3. CARD ITEM (Thiết kế chính) */
.svod-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16; /* Tỉ lệ vàng cho video ngắn */
    border-radius: 16px; /* Bo góc tròn trịa hơn */
    overflow: hidden;
    background-color: #f0f0f0; /* Màu Skeleton loading khi ảnh chưa tải */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Hiệu ứng nảy nhẹ */
    transform: translateZ(0); /* Tối ưu GPU */
}

/* Ảnh Poster */
.svod-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* QUAN TRỌNG: Cắt ảnh thừa để lấp đầy, không méo */
    object-position: center;
    transition: transform 0.6s ease;
}

/* Lớp phủ thông tin (Glassmorphism) */
.svod-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    /* Hiệu ứng kính mờ hiện đại */
    background: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.svod-info h3 {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Nhãn Tag & Thời gian */
.svod-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.svod-badge {
    background: #e13d3d;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.svod-time {
    font-size: 11px;
    color: rgba(255,255,255,0.9);
}

/* Nút Play (Nằm giữa ảnh) */
.svod-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Ẩn mặc định */
    transition: all 0.3s ease;
    z-index: 5;
}
.svod-play svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    margin-left: 2px;
}

/* --- TƯƠNG TÁC HOVER --- */
.svod-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.svod-card:hover .svod-img {
    transform: scale(1.1); /* Zoom ảnh sâu bên trong */
}

.svod-card:hover .svod-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* Phóng to nút play */
    background: rgba(225, 61, 61, 0.8); /* Đổi màu nút play sang đỏ */
    border-color: transparent;
}

/* Navigation Buttons - Minimalist */
.svod-swiper .swiper-button-prev,
.svod-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    color: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s;
}
.svod-swiper .swiper-button-prev:after,
.svod-swiper .swiper-button-next:after {
    font-size: 16px;
    font-weight: bold;
}
.svod-swiper .swiper-button-prev:hover,
.svod-swiper .swiper-button-next:hover {
    background: #222;
    color: #fff;
}
@media (max-width: 767px) {
    /* 1. Tinh chỉnh Container */
    .svod-container {
        padding: 15px 0 30px;
        background: #fff; /* Nền trắng làm nổi bật ảnh */
    }
    
    .svod-header {
        padding: 0 20px;
        margin-bottom: 15px;
        border-left: none; /* Bỏ vạch đỏ nếu muốn giống demo clean hơn */
    }
    
    /* Tiêu đề to và rõ hơn */
    .svod-title {
        font-size: 20px; 
        font-weight: 800;
        color: #b52727; /* Màu đỏ thương hiệu VNE-GO */
    }
    .svod-title::before {
        display: none; /* Bỏ vạch đỏ trang trí bên cạnh */
    }

    /* 2. Vùng Swiper */
    .svod-swiper {
        /* Padding trái 20px để ảnh đầu tiên căn thẳng hàng với tiêu đề.
            Padding phải nhỏ hơn để người dùng thấy ảnh tiếp theo lấp ló. */
        padding: 0 20px 40px 20px !important; 
    }

    /* 3. KÍCH THƯỚC THẺ VIDEO (Thay đổi quan trọng nhất) */
    .svod-swiper .swiper-slide {
        /* Đặt chiều rộng bằng 70% màn hình. 
            Ví dụ màn hình rộng 100%, thẻ chiếm 70%, còn 30% để lộ thẻ sau.
            Kích thước này RẤT TO và RÕ. */
        width: 70vw; 
    }

    /* 4. Tỷ lệ khung hình & Thiết kế */
    .svod-card {
        /* Quay về tỷ lệ 9/16 (cao vút) để giống ảnh demo */
        aspect-ratio: 9 / 16; 
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Bóng đổ rõ hơn */
    }

    /* Nút Play: Luôn hiện, to và rõ */
    .svod-play {
        opacity: 1;
        width: 64px;  /* Tăng từ 48px lên 64px */
        height: 64px;
        background: rgba(0, 0, 0, 0.5); /* Nền tối hơn chút để tương phản */
        border: 3px solid rgba(255,255,255, 0.9); /* Viền dày 3px trắng rõ */
        backdrop-filter: blur(4px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Bóng đổ sâu */
        /* Thêm animation nhịp đập */
        animation: svod-pulse 2s infinite;
    }
    .svod-play svg {
        width: 32px; /* Icon bên trong cũng to lên */
        height: 32px;
        fill: #fff;
    }

    /* 5. Thông tin chữ: To hơn vì ảnh đã to */
    .svod-info {
        padding: 15px;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%); /* Gradient đen đậm chất điện ảnh */
        backdrop-filter: none; /* Bỏ kính mờ trên mobile để chữ rõ nhất có thể */
    }
    
    .svod-info h3 {
        font-size: 16px; /* Tăng cỡ chữ */
        font-weight: 700;
        line-height: 1.4;
        margin-bottom: 6px;
        /* Hiển thị tối đa 3 dòng cho giống ảnh demo */
        -webkit-line-clamp: 3; 
    }

    .svod-meta {
        margin-top: 5px;
    }

    .svod-meta span:last-child { 
        /* Giả sử ID nằm ở thẻ span cuối cùng, ẩn nó đi hoặc làm mờ */
        /* display: none; -> Nếu muốn ẩn hẳn */
        opacity: 0.7; font-size: 10px; /* Hoặc làm nhỏ xíu lại */
    }

    .svod-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    .svod-time {
        font-size: 11px;
        font-weight: 500;
    }

    /* Ẩn nút điều hướng */
    .svod-swiper .swiper-button-prev,
    .svod-swiper .swiper-button-next {
        display: none !important;
    }

    @keyframes svod-pulse {
        0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
        70% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
        100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    }
}