/* --- Final CSS for Trending Slider - Copied & Refined --- */
/* Location: /wp-content/themes/halimmovies-child/css/trending-slider.css */

/* === CẤU TRÚC CHUNG CỦA WIDGET === */
.halim-trending-slider { margin-bottom: 30px; }
.halim-trending-slider .section-title { color: #ffde59; text-transform: uppercase; font-size: 16px; margin-bottom: 20px; }
.halim-trending-slider .halim-trending-icon { color: #ff5722;}
.halim-trending-container { position: relative; }
.halim-trending-track-container { overflow: hidden; }
.halim-trending-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.halim-trending-card { flex-shrink: 0; width: 20%; padding: 0 8px; box-sizing: border-box; }
.halim-trending-link { text-decoration: none; color: inherit; display: block; }
.halim-trending-poster-container { position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; }

/* CLIP-PATH TỪ TRANG MẪU */
.halim-trending-clip-path-odd {
    border-radius: 0;
    -webkit-clip-path: polygon(94.239% 100%,5.761% 100%,5.761% 100%,4.826% 99.95%,3.94% 99.803%,3.113% 99.569%,2.358% 99.256%,1.687% 98.87%,1.111% 98.421%,.643% 97.915%,.294% 97.362%,.075% 96.768%,0 96.142%,0 3.858%,0 3.858%,.087% 3.185%,.338% 2.552%,.737% 1.968%,1.269% 1.442%,1.92% .984%,2.672% .602%,3.512% .306%,4.423% .105%,5.391% .008%,6.4% .024%,94.879% 6.625%,94.879% 6.625%,95.731% 6.732%,96.532% 6.919%,97.272% 7.178%,97.942% 7.503%,98.533% 7.887%,99.038% 8.323%,99.445% 8.805%,99.747% 9.326%,99.935% 9.88%,100% 10.459%,100% 96.142%,100% 96.142%,99.925% 96.768%,99.706% 97.362%,99.357% 97.915%,98.889% 98.421%,98.313% 98.87%,97.642% 99.256%,96.887% 99.569%,96.06% 99.803%,95.174% 99.95%,94.239% 100%);
    clip-path: polygon(94.239% 100%,5.761% 100%,5.761% 100%,4.826% 99.95%,3.94% 99.803%,3.113% 99.569%,2.358% 99.256%,1.687% 98.87%,1.111% 98.421%,.643% 97.915%,.294% 97.362%,.075% 96.768%,0 96.142%,0 3.858%,0 3.858%,.087% 3.185%,.338% 2.552%,.737% 1.968%,1.269% 1.442%,1.92% .984%,2.672% .602%,3.512% .306%,4.423% .105%,5.391% .008%,6.4% .024%,94.879% 6.625%,94.879% 6.625%,95.731% 6.732%,96.532% 6.919%,97.272% 7.178%,97.942% 7.503%,98.533% 7.887%,99.038% 8.323%,99.445% 8.805%,99.747% 9.326%,99.935% 9.88%,100% 10.459%,100% 96.142%,100% 96.142%,99.925% 96.768%,99.706% 97.362%,99.357% 97.915%,98.889% 98.421%,98.313% 98.87%,97.642% 99.256%,96.887% 99.569%,96.06% 99.803%,95.174% 99.95%,94.239% 100%);
}

.halim-trending-clip-path-even {
    border-radius: 0;
    -webkit-clip-path: polygon(5.761% 100%,94.239% 100%,94.239% 100%,95.174% 99.95%,96.06% 99.803%,96.887% 99.569%,97.642% 99.256%,98.313% 98.87%,98.889% 98.421%,99.357% 97.915%,99.706% 97.362%,99.925% 96.768%,100% 96.142%,100% 3.858%,100% 3.858%,99.913% 3.185%,99.662% 2.552%,99.263% 1.968%,98.731% 1.442%,98.08% .984%,97.328% .602%,96.488% .306%,95.577% .105%,94.609% .008%,93.6% .024%,5.121% 6.625%,5.121% 6.625%,4.269% 6.732%,3.468% 6.919%,2.728% 7.178%,2.058% 7.503%,1.467% 7.887%,.962% 8.323%,.555% 8.805%,.253% 9.326%,.065% 9.88%,0 10.459%,0 96.142%,0 96.142%,.075% 96.768%,.294% 97.362%,.643% 97.915%,1.111% 98.421%,1.687% 98.87%,2.358% 99.256%,3.113% 99.569%,3.94% 99.803%,4.826% 99.95%,5.761% 100%);
    clip-path: polygon(5.761% 100%,94.239% 100%,94.239% 100%,95.174% 99.95%,96.06% 99.803%,96.887% 99.569%,97.642% 99.256%,98.313% 98.87%,98.889% 98.421%,99.357% 97.915%,99.706% 97.362%,99.925% 96.768%,100% 96.142%,100% 3.858%,100% 3.858%,99.913% 3.185%,99.662% 2.552%,99.263% 1.968%,98.731% 1.442%,98.08% .984%,97.328% .602%,96.488% .306%,95.577% .105%,94.609% .008%,93.6% .024%,5.121% 6.625%,5.121% 6.625%,4.269% 6.732%,3.468% 6.919%,2.728% 7.178%,2.058% 7.503%,1.467% 7.887%,.962% 8.323%,.555% 8.805%,.253% 9.326%,.065% 9.88%,0 10.459%,0 96.142%,0 96.142%,.075% 96.768%,.294% 97.362%,.643% 97.915%,1.111% 98.421%,1.687% 98.87%,2.358% 99.256%,3.113% 99.569%,3.94% 99.803%,4.826% 99.95%,5.761% 100%);
}

.halim-trending-poster-image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; display: block; }
.halim-trending-poster-mask { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: hsl(0 0% 100%/.05); z-index: 1; transition: background-color .3s ease; }
.halim-trending-poster-container:hover .halim-trending-poster-mask { background-color: rgb(255 193 7/.1); }
.halim-trending-poster-container:hover .halim-trending-poster-image { transform: scale(1.05); }
.halim-trending-rating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffc107;
    font-size: 14px;
    font-weight: 700;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 193, 7, 0.5);
    backdrop-filter: blur(4px);
}

.halim-trending-rating-value {
    /* Trống */
}

/* === PHẦN THÔNG TIN PHIM (ĐÃ SỬA LỖI CĂN CHỈNH) === */
.halim-trending-info {
    margin-top: 1rem;
    display: flex;
    /* height: 70px; <--- Bỏ chiều cao cố định */
    overflow: hidden;
    align-items: center;
    margin-left: -20px; /* <-- THÊM DÒNG NÀY */
}
.halim-trending-number {
    line-height: 1;
    font-size: 3.5em;
    font-weight: 800;
    font-style: italic;
    background: linear-gradient(39deg,#fecf59,#fff1cc);
    -webkit-background-clip: text!important;
    background-clip: text!important;
    -webkit-text-fill-color: transparent!important;
    color: #fff0;
    margin-right: .5rem;
    flex-shrink: 0;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.halim-trending-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: flex-start; /* <-- THAY ĐỔI Ở ĐÂY */
}

/* === TINH CHỈNH CUỐI CÙNG CHO TIÊU ĐỀ === */
/* SỬA LẠI THÀNH */
/* SỬA LẠI THÀNH */
.halim-trending-title-text a {
    font-size: 14px !important; /* Dùng px để dễ kiểm soát */
    font-weight: 700;
    margin-bottom: 2px !important; /* Giảm khoảng cách dưới */
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    display: block;
    text-decoration: none;
    margin-top: -22px; /* <-- THÊM DÒNG NÀY */
}
/* SỬA LẠI THÀNH */
.original_title {
    color: #9ca3af !important;
    font-size: 12px !important; /* Nhỏ hơn đáng kể */
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0 !important;
    display: block;
    margin-top: -10px; /* <-- THÊM DÒNG NÀY */
}
/* TRONG FILE /css/trending-slider.css */

/* === NÚT ĐIỀU HƯỚNG === */
.halim-trending-nav-button {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.8) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.halim-trending-nav-button:hover {
    background: #ffde59 !important;
    color: #000 !important;
}

/* Chỉ hiện nút khi hover trên desktop */
.halim-trending-container:hover .halim-trending-nav-button {
    visibility: visible;
    opacity: 1;
}

.halim-trending-prev-button { left: -20px; }
.halim-trending-next-button { right: -20px; }

/* Ẩn nút khi không thể tua nữa */
.halim-trending-nav-button.disabled {
    opacity: 0 !important;
    cursor: default;
    visibility: hidden !important;
}

/* Class mới để ẩn nút khi đang vuốt */
.halim-trending-container.is-dragging .halim-trending-nav-button {
    opacity: 0 !important;
    visibility: hidden !important;
}


/* === RESPONSIVE === */
@media (max-width: 1200px) { .halim-trending-card { width: 25%; } }
@media (max-width: 991px) { .halim-trending-card { width: 33.33%; } }

/* TRONG FILE /css/trending-slider.css */

/* === RESPONSIVE === */
@media (max-width: 1200px) { .halim-trending-card { width: 25%; } }
@media (max-width: 991px) { .halim-trending-card { width: 33.33%; } }

@media (max-width: 767px) {
    .halim-trending-card { width: 50%; }

    /* ẨN HOÀN TOÀN NÚT ĐIỀU HƯỚNG TRÊN MOBILE */
    .halim-trending-nav-button {
        display: none !important;
    }
}


/* === CSS BỔ SUNG CHO KÉO/VUỐT (Giữ nguyên) === */
.halim-trending-track-container {
    overflow-x: scroll;
    cursor: grab;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.halim-trending-track-container::-webkit-scrollbar {
    display: none;
}


