.firm-by-category {
    margin: 0px -13px;
}

.firm-by-category .splide__slide .splide__img {
    width: 100%;
    height: 282px;
    object-fit: cover;
    border-radius: 4px;
}

.firm-by-category .title-category {
    margin: 20px 0;
    z-index: 1;
    position: relative;
}

.firm-by-category .splide__arrow {
    width: 30px;
    height: 30px;
}

/* .firm-by-category  */
.firm-by-category .splide__slide > a:hover .splide__item-title {
    color: var(--main-color);
}

.firm-by-category .splide__img-wrap {
    position: relative;
}

.firm-by-category .splide__img-wrap .episodes {
    background: rgb(28, 199, 73);
    box-sizing: border-box;
    min-width: 34px;
    padding: 0px 6px;
    line-height: 20px;
    font-size: 12px;
    color: rgb(255, 255, 255);
    letter-spacing: 0px;
    text-align: center;
    position: absolute;
    top: 0px;
    z-index: 9999999;
    border-radius: 2px 4px;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    /* left: 10px;
    bottom: 12px; */
}

.splide__item .splide__img-wrap .episodes1 {
    background: rgb(28, 199, 73);
    height: 20px;
    box-sizing: border-box;
    min-width: 34px;
    padding: 0px 6px;
    line-height: 20px;
    font-size: 12px;
    color: rgb(255, 255, 255);
    letter-spacing: 0px;
    text-align: center;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 9999999;
    border-radius: 2px 4px;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
    /* left: 10px;
    bottom: 12px; */
}

.firm-by-category .splide__item-title {
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.firm-by-category .splide__arrow--prev {
    left: -2.5rem;
}

.firm-by-category .splide__arrow--next {
    right: -2.5rem;
}

#slider,
#slider .splide__slide img {
    transition: all 1s;
}

/* pop modal */
.detail-pop-modal {
    display: none;
    width: 266px;
    background: rgb(26, 28, 34);
    border-radius: 6px;
    animation: 0.25s ease 0s 1 normal none running sacleImg;
    overflow: hidden;
    z-index: 1;
}

@keyframes sacleImg {
    0% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.modal-img-wrap .pop-modal-img {
    width: 100%;
}

.content-modal-wrap {
    padding: 0 8px;
    height: 258px;
}

.content-modal-wrap .title-firm {
    margin-top: 12px;
    font-size: 20px;
    line-height: 24px;
}

.content-pop-modal__infor {
    margin: unset;
    margin-top: 8px;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 22px;
}

.content-pop-modal__infor .after-item::before {
    margin: 0 6px;
}

.content-pop-modal__infor > div:not(:nth-child(1)) {
    font-size: 14px;
}

.content-pop-modal__category {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-top: 8px;
    height: 24px;
    overflow: hidden;
}

.content-pop-modal__category span {
    padding: 2px 4px;
    margin-right: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: rgb(236, 236, 236);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.pop-wrapper .desc {
    line-height: 20px;
    font-size: 14px;
    margin-bottom: 8px;
}

.modal-img-wrap .pop-modal-img {
    padding-top: 56%;
    width: 100%;
    object-fit: fill;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.content-modal-wrap .episode-more-info {
    position: absolute;
    left: 0;
    bottom: 16px;
    width: 100%;
    text-align: right;
    padding: 0 8px;

}

.content-modal-wrap .episode-more-info .word {
    color: rgb(28, 199, 73);
    font-size: 14px;
}

@media screen and (max-width: 1679px) {
    .firm-by-category .splide__slide .splide__img {
        height: 240px;
        width: 181px;
    }

    #slider {
        min-height: unset;
        height: 100vh;
    }

    #slider .splide__slide img {
        height: 100vh;
    }

    .content-modal-wrap .title-firm {
        font-size: 16px;
        margin-top: 8px;
    }

    .pop-wrapper .desc {
        line-height: 18px;
        font-size: 12px;
        margin-bottom: 6px;
    }

    .content-pop-modal__infor > div:nth-child(1) {
        font-size: 14px;
    }

    .content-pop-modal__infor > div:not(:nth-child(1)) {
        font-size: 12px;
    }

    .content-pop-modal__category span {
        font-size: 11px;
        color: rgb(236, 236, 236);
        line-height: 12px;
    }

    .content-pop-modal__category {
        margin-top: 6px;
        height: 18px;
    }

    .content-modal-wrap .episode-more-info .word {
        font-size: 12px;
    }

    .content-modal-wrap {
        height: 220px;
    }

    .content-modal-wrap .episode-more-info {
        bottom: 12px;
    }
}

@media (max-width: 1199px) {
    #slider {
        min-height: unset;
        height: 60vh;
    }

    #slider .splide__slide img {
        height: 60vh;
    }
}

@media (max-width: 991px) {
    #slider {
        min-height: unset;
        height: 50vh;
    }

    #slider .splide__slide img {
        height: 50vh;
    }
}

@media (max-width: 800px) {

    .detail-pop-modal {
        display: none !important;
    }

    #slider {
        height: 45vh;
    }

    #slider .splide__slide img {
        height: 45vh;
    }

    .splide__arrow {
        width: 35px;
        height: 35px;
    }

    .firm-by-category .title-category {
        font-size: 24px;
    }

    .crs-content {
        /* left: 8%; */
        left: 0;
    }
}

@media (max-width: 768px) {
    #slider {
        margin-top: 55px;
        height: 40vh;
    }

    #slider .splide__slide img {
        height: 40vh;
    }

    .crs-content__category,
    .crs-content__desc {
        display: none;
    }

    .firm-by-category .title-category {
        font-size: 20px;
    }

    .firm-by-category .splide__slide .splide__img {
        height: 281px;
        width: 211px;
    }

    .splide__slide{
        margin-right: 25px !important;
    }

    .firm-by-category .splide__arrow--next,
    .firm-by-category .splide__arrow--prev {
        width: 14px;
        height: 30px;
    }

    .container .firm-by-category h2.title-category {
        padding-top: 5px;
    }
}

@media (max-width: 640px) {
    .firm-by-category .splide__slide .splide__img {
        height: 254px;
        width: 190px;
    }

    .splide__slide{
        margin-right: 15px;
    }
    .splide__slide {
        margin-right: 22px !important;
    }

    .firm-by-category .title-category {
        font-size: 18px;
    }

    .splide__arrow svg {
        width: 28px;
        height: 28px;
    }

    .firm-by-category {
        margin: -13px 0;
    }

}

@media (max-width: 585px) {
    .firm-by-category .splide__slide .splide__img {
        height: 206px;
        width: 154px;
    }

    .splide__slide{
        margin-right: 15px !important;
    }

    #slider {
        height: 36vh;
    }

    #slider .splide__slide img {
        height: 36vh;
    }

    .splide__arrow svg {
        width: 20px;
        height: 20px;
    }

    .firm-by-category .splide__arrow--next {
        right: -1rem;
    }

    .firm-by-category .splide__arrow--prev {
        left: -1rem;
    }

    .firm-by-category {
        margin: -13px 0;
    }

    .container {
        padding: 0;
    }
}

@media (max-width: 500px) {
    .firm-by-category .splide__slide .splide__img {
        height: 160px;
    }

    .firm-by-category {
        margin: -13px 0;
    }
}

@media (max-width: 480px) {
    .firm-by-category .splide__slide .splide__img {
        height: 160px;
        width: 120px;
        /* padding-right: 8px; */
    }

    .firm-by-category .title-category {
        font-size: 16px;
    }

    .footer__title {
        font-size: 14px;
    }

    .footer__item {
        font-size: 12px;
    }

    .firm-by-category .splide__img-wrap .episodes {
        font-size: 12px;
    }
}

@media (max-width: 385px) {
    .firm-by-category .splide__slide .splide__img {
        height: 130px;
        width: 98px;
    }
    .splide__slide{
        margin-right: 3px !important;
    }
}

@media (max-width: 768px) {
    .container .firm-by-category .list-item {
        margin: 0 !important;
    }

}


/* PVS fix: native homepage poster image loading/layout */
.firm-by-category .pvs-scroll-item .splide__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}




/* PVS v1.6.7 - FINAL cursor pointer fix
   Chỉ đổi sang bàn tay khi rê chuột vào ô phim/poster/link phim.
   Ra ngoài ô phim sẽ trở lại con trỏ mặc định. */
@media (hover: hover) and (pointer: fine) {
    .pvs-scroll-item,
    .pvs-scroll-item > a,
    .pvs-scroll-item > a > .splide__item,
    .pvs-scroll-item .splide__img-wrap,
    .pvs-scroll-item .splide__item-title,
    .item-wrap,
    .item-wrap > .item-link,
    .item-wrap .item-img,
    .item-wrap .text-box,
    .item-wrap .item-title {
        cursor: pointer !important;
    }

    .pvs-scroll-slider:not(.pvs-hovering-card):not(.is-dragging) {
        cursor: default !important;
    }

    .pvs-scroll-slider.pvs-hovering-card,
    .pvs-scroll-slider.pvs-hovering-card * {
        cursor: pointer !important;
    }

    .pvs-scroll-slider.is-dragging,
    .pvs-scroll-slider.is-dragging * {
        cursor: default !important;
    }
}

/* PVS v178 - Chuẩn hóa poster link trực tiếp 490x654
   Khi dán link ảnh ngoài (TikTok/CDN...) vào poster, giao diện tự ép đúng khung 490x654, không méo ảnh.
   Lưu ý: CSS resize kích thước hiển thị; muốn giảm dung lượng thật cần ảnh/CDN resize phía server. */
.firm-by-category .pvs-scroll-item .splide__img-wrap,
.pvs-scroll-item .splide__img-wrap,
.item-wrap .item-img {
    width: 100% !important;
    aspect-ratio: 490 / 654 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #151515 !important;
    border-radius: 7px !important;
}

.firm-by-category .pvs-scroll-item img.splide__img,
.pvs-scroll-item img.splide__img,
img.pvs-poster-img,
img.pvs-poster-ratio,
.item-wrap .item-img img.desc-img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 490 / 654 !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    max-width: 100% !important;
    background: #151515 !important;
}

.firm-by-category .pvs-scroll-item img.splide__img,
.pvs-scroll-item img.splide__img,
.item-wrap .item-img img.desc-img {
    contain: layout paint !important;
}

