
/* ==========================================
   GIAO DIỆN PC (Chỉ áp dụng cho màn hình > 768px)
   ========================================== */
@media (min-width: 769px) {
/* Phá khung an toàn, không làm vỡ Theme */
.acc-full-wrapper {
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        position: relative;
        overflow: hidden;
        background-color: #0c0d10;
    }
.acc-slide {
        height: 600px !important; /* Chiều cao cố định trên PC */
        display: flex !important;
        align-items: center !important; /* Căn giữa theo chiều dọc */
        justify-content: flex-start !important; /* Đẩy nội dung về lề trái */
        position: relative;
    }
.acc-main-swiper, .acc-slide {
    width: 100%;
    height: 100%;
}

.acc-base-bg {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 65%; /* Che phủ 65% từ lề trái */
        height: 100%;
        background: linear-gradient(to right, rgba(12, 13, 16, 1) 15%, rgba(12, 13, 16, 0.7) 60%, transparent 100%);
        z-index: 3;
    }

/* Ảnh dạt 80% sang bên phải, 20% bên trái hoàn toàn là màu nền xám */
.acc-image-layer {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        background-size: cover;
        background-position: center 20%; /* Neo tiêu điểm ảnh hơi nhích lên trên */
        z-index: 1;
    }
/* 4. Viền đèn Neon mờ dần vào trong (Sử dụng Inset Shadow) */
    .acc-image-layer::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none; /* Không cản trở thao tác click chuột */
        /* Phối hợp bóng đen để làm mờ lấn vào trong + ánh sáng neon xanh */
        box-shadow: inset 0 0 120px rgba(12, 13, 16, 0.95), 
                    inset 0 0 25px rgba(12, 13, 16, 0.6);
        z-index: 2;
    }

.acc-dots-pattern {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 4px 4px;
    pointer-events: none;
}

/* Khung chứa nội dung text */
/* 6. Dời toàn bộ khối thông tin về bên trái */
    .acc-content-container {
        position: relative;
        z-index: 10;
        width: 35% !important; /* Giới hạn độ rộng của vùng chữ */
        padding-left: 5% !important; /* Khoảng cách lề trái */
        display: flex !important;
        flex-direction: column;
        align-items: flex-start !important; /* Ép mọi thành phần con sát sang trái */
    }

.acc-content {
        text-align: left !important;
    }

/* Typography */
.acc-title {
    font-size: 40px;
    font-family: 'Ani4uf', sans-serif;
	text-align: left !important;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

.acc-meta-badges { display: flex; gap: 8px; margin-bottom: 15px; }
.badge-imdb { background: #60a5fa; color: #000; font-weight: bold; padding: 3px 10px; border-radius: 4px; font-size: 12px; }
.badge-normal { border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 12px; background: rgba(0,0,0,0.3); }

.acc-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.acc-genres a {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}
.acc-genres a:hover { border-color: #60a5fa; color: #60a5fa; }

.acc-desc {
	text-align: left !important;
    color: #ddd;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Đẩy thẻ tag, nút bấm sang sát lề trái */
    .acc-meta-badges, .acc-genres, .acc-actions {
        justify-content: flex-start !important; 
        display: flex;
        flex-wrap: wrap;
    }
.acc-actions { display: flex; gap: 15px; margin-top: 25px; align-items: center; }
.btn-play {
    width: 55px; height: 55px; border-radius: 50%;
    background: #60a5fa; color: #000;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
	animation: playGlowPC 2s infinite ease-in-out;
}
    @keyframes playGlowPC {
        0% { box-shadow: 0 0 0px rgba(67, 166, 223, 0); }
        50% { box-shadow: 0 0 20px rgba(67, 166, 223, 0.8), 0 0 10px rgba(255, 255, 255, 0.4); }
        100% { box-shadow: 0 0 0px rgba(67, 166, 223, 0); }
    }
.btn-play svg { width: 30px; height: 30px; }
.btn-play:hover { transform: scale(1.1); }

.btn-info {
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(255,255,255,0.15); color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s; border: 1px solid rgba(255,255,255,0.3);
}
.btn-info svg { width: 24px; height: 24px; }
.btn-info:hover { background: rgba(255,255,255,0.3); }


/* ==========================================
   Thumbnails Pagination - Fix dứt điểm 100%
   ========================================== */
.acc-thumbs-wrapper {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    z-index: 999999 !important; /* Đẩy lên lớp cao nhất tuyệt đối để nhận click */
}

.acc-thumbs-swiper {
    max-width: 800px;
    margin: 0 auto;
    /* CHÌA KHÓA: Tạo khoảng trống bên trong khung để ảnh nảy lên không bị cắt đầu */
    padding-top: 20px !important; 
    padding-bottom: 20px !important; 
    overflow: visible !important;
}

.acc-thumb {
    width: 55px !important;
    height: 75px !important;
    border-radius: 6px;
    cursor: pointer !important;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
    position: relative;
    pointer-events: auto !important; /* Ép buộc nhận tương tác chuột */
}

.acc-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    pointer-events: none;
    border-radius: 4px;
}

/* Hiệu ứng khi được chọn */
.acc-thumb.swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #60a5fa; 
    transform: translateY(-12px) scale(1.15); /* Nảy lên rõ rệt */
    box-shadow: 0 10px 20px rgba(0,0,0,0.8); 
    z-index: 10;
}

/* Ẩn pagination trên PC */
.acc-pagination {
    display: none !important;
}
	}
	
/* ==========================================
   GIAO DIỆN MOBILE (Điện thoại & Tablet nhỏ)
   ========================================== */
@media (max-width: 768px) {
	.swiper-lazy-preloader {
        width: 30px;
        height: 30px;
        margin-left: -15px;
        margin-top: -15px;
    }
    /* 1. ÉP BANNER CHẠM SÁT HEADER VÀ KHÔNG BO GÓC */
    .acc-full-wrapper {
        height: auto;
        min-height: 450px;
        /* Kỹ thuật breakout phá khung theme để tràn viền 100% */
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        width: 100vw !important;
        margin-top: 0 !important; /* Chạm sát header */
        padding: 0 !important;
        box-sizing: border-box;
        border-radius: 0 !important;
    }

    /* 2. ĐỊNH VỊ ĐIỂM NEO (ANCHOR) CHUẨN */
    .acc-slide {
        position: relative !important; /* Điểm gốc để nút Play căn theo */
        display: flex;
        flex-direction: column;
        border-radius: 0 !important;
    }
/* Tối ưu lại phần mô tả trên Mobile cho gọn gàng */
.acc-content-container {
        position: relative;
        padding: 10px 15px 5px 15px !important; /* Thu nhỏ padding cực lề */
        margin-top: -15px; /* Thu hẹp khoảng cách với ảnh banner */
        z-index: 2;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Căn giữa mọi thứ bên trong */
        text-align: center !important;
    }

    /* Ép các container trung gian về static để không làm lệch vị trí nút Play */
    .acc-content-container, .acc-content {
        position: static !important; 
        padding: 0 15px 10px 15px !important;
		width: 93%!important;
    }
	
	.acc-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 3. VÙNG ẢNH BANNER PHÍA TRÊN (CAO 250PX) */
    .acc-image-layer {
        position: relative;
        width: 100%;
        height: 250px !important;
        border-radius: 0 !important;
        -webkit-mask-image: linear-gradient(to bottom, black 50%, rgba(0,0,0,0.05) 90%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 50%, rgba(0,0,0,0.05) 90%, transparent 100%);
        z-index: 1;
		background-position: center;
		background-repeat: no-repeat;
		background-size: cover;
    }

    /* 4. CĂN GIỮA NÚT PLAY TUYỆT ĐỐI VÀO TÂM ẢNH */
    .acc-actions {
        display: flex !important;
        position: absolute !important;
        /* Tâm của ảnh 250px là 125px tính từ đỉnh slide */
        top: 125px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 9999 !important; /* Luôn nổi trên cùng */
        margin: 0 !important;
    }

    /* 5. NÚT PLAY VÀ HIỆU ỨNG PHÁT SÁNG (GLOW) 2 GIÂY */
    .btn-play {
        width: 70px !important;
        height: 70px !important;
        background: rgb(255 255 255 / 90%) !important;
        border: 2px solid #fff !important;
        border-radius: 50% !important;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Hiệu ứng phát sáng lặp lại mỗi 2 giây */
        animation: playGlowMobile 2s infinite ease-in-out;
    }

    @keyframes playGlowMobile {
        0% { box-shadow: 0 0 0px rgba(67, 166, 223, 0); }
        50% { box-shadow: 0 0 20px rgba(67, 166, 223, 0.8), 0 0 10px rgba(255, 255, 255, 0.4); }
        100% { box-shadow: 0 0 0px rgba(67, 166, 223, 0); }
    }

    .btn-play svg {
        width: 38px !important;
        height: 38px !important;
        fill: #000 !important;
    }

    /* CÁC THÀNH PHẦN KHÁC GIỮ NGUYÊN THEO MẪU */
/* 2. Tiêu đề: Đậm, rõ ràng, giãn dòng vừa phải */
    .acc-title {
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        color: #ffffff !important;
        margin-bottom: 6px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Tránh tiêu đề quá dài làm vỡ bố cục */
        -webkit-box-orient: vertical;
        overflow: hidden;
		text-align: center;
    }
	
/* 3. Tên tiếng Anh/Phụ đề: Màu vàng đặc trưng, nhỏ gọn */
    .acc-subtitle {
        font-size: 13px !important;
        color: #f3ce63 !important; 
        margin-bottom: 15px !important;
        font-weight: 500 !important;
        opacity: 0.9;
		text-align: center;
    }
/* 4. Badges (IMDb, Năm...): Căn chỉnh đều, icon/chữ sắc nét */
	.acc-meta-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 12px;
        justify-content: center; /* Căn giữa các thẻ */
    }
	
	.badge-imdb { background: #60a5fa; color: #000; font-weight: bold; padding: 3px 10px; border-radius: 4px; font-size: 12px; }
	.badge-normal { border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 12px; background: rgba(0,0,0,0.3); }
	
    /* 5. Thể loại (Tags): Dạng viên thuốc hiện đại */
	.acc-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;justify-content: center; }
	.acc-genres a {
		background: rgba(255,255,255,0.1);
		color: #fff;
		padding: 5px 15px;
		border-radius: 20px;
		font-size: 13px;
		text-decoration: none;
		transition: 0.3s;
		border: 1px solid transparent;
	}
	.acc-genres a:hover { border-color: #60a5fa; color: #60a5fa; }

    /* 6. PHẦN MÔ TẢ CHÍNH: Cải thiện khả năng đọc */
    .acc-desc {
        font-size: 14px !important;
        line-height: 1.6 !important; /* Giãn dòng để mắt không bị mỏi */
        color: #bbbbbb !important; /* Màu xám nhẹ giúp text chính nổi bật nhưng không chói */
        text-align: left;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Giới hạn 3 dòng để giữ banner gọn gàng */
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-top: 5px;
		text-align: center;
    }
    
    /* Ẩn các thành phần không cần thiết trên mobile */
    .acc-thumbs-wrapper, .btn-info, .acc-dots-pattern { display: none !important; }
	/* Hiện lại và tối ưu hiệu ứng chấm nhỏ cho Mobile */
	.acc-dots-pattern {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 250px; /* Chỉ phủ lên phần ảnh banner phía trên */
        z-index: 3;
        pointer-events: none;
        background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
        background-size: 4px 4px;
        -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    }

    /* Đảm bảo khung slide là điểm neo chính */
    .acc-slide {
        position: relative !important;
    }
	
	/* Hiện pagination trên Mobile */
	.acc-pagination {
        display: flex !important;
        position: relative !important;
        width: 100% !important;
        justify-content: center !important; /* CHÌA KHÓA: Đưa các chấm vào chính giữa */
        padding: 0 !important;
        margin-top: 5px !important; /* Thu nhỏ khoảng cách với mô tả ở trên */
        margin-bottom: 5px !important;
        z-index: 10;
    }

    /* Tùy chỉnh hình dáng các chấm */
    .acc-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.3);
        opacity: 1;
        margin: 0 4px !important;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    /* Chấm đang được chọn (Active) */
    .acc-pagination .swiper-pagination-bullet-active {
        background: #60a5fa !important; /* Màu vàng ton-sur-ton với nút Play */
        width: 22px; /* Kéo dài ra một chút cho hiện đại */
        border-radius: 4px;
    }
	
	
}