body,
html {
    background-color: #02080f;
}

/* ========== PERFORMANCE OPTIMIZATION ========== */
/* Prevent CLS - Reserve space for images */
img {
    max-width: 100%;
    height: auto;
}

.img-film,
.film-thumb-img {
    aspect-ratio: 2/3;
    object-fit: cover;
    background-color: #1a1a1a;
}

/* Lazy load optimization */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded,
.lazy[src]:not([src^="data:"]) {
    opacity: 1;
}

/* Reduce reflow */
.list-films .item {
    contain: layout style;
}

.film-slide-item {
    contain: layout style;
}

/* ========== NEW HEADER STYLE ========== */
#header {
    background: #2d2d2d;
    padding: 0;
    margin: 0 0 20px 0;
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

#header .top {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
}

#header .logo {
    float: none;
    flex-shrink: 0;
    margin-right: 20px;
    box-shadow: none !important;
}

#header .logo img {
    height: 45px;
    width: auto;
}

/* Menu trong header */
#header .main-menu {
    background: transparent;
    padding: 0;
    flex: 1;
}

#header .main-menu ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

#header .main-menu .menu-item {
    float: none;
    position: relative;
}

#header .main-menu .menu-item a {
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    padding: 22px 15px;
    display: block;
    font-size: 14px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

#header .main-menu .menu-item:first-child a {
    border-bottom: 3px solid #fff;
}

#header .main-menu .menu-item.active > a,
#header .main-menu .menu-item a:hover {
    color: #da966e;
    border-bottom-color: #da966e;
}

#header .main-menu .menu-item .sub-menu {
    background-color: #2d2d2d;
    top: 100%;
    position: absolute;
    display: none;
    z-index: 100;
}

#header .main-menu .menu-item:hover .sub-menu {
    display: block;
}

/* Search trong header */
#header .right-header {
    float: none;
    width: auto;
    flex-shrink: 0;
}

#header .search-container {
    float: none;
    width: 320px;
    margin: 0;
}

#header #keyword {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-style: normal;
}

#header #keyword::placeholder {
    color: #888;
    font-style: italic;
}

#header #keyword:focus {
    border-color: #da966e;
    outline: none;
}

#header .search-container .fa-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #888;
    cursor: pointer;
}

#header .suggest-dns {
    display: none;
}

/* Ẩn icon hộp thư */
.btn-contact {
    display: none !important;
}

/* ========== MOBILE HEADER FIX ========== */
@media (max-width: 979px) {
    /* Reset các style desktop cho mobile */
    #header .container {
        display: block !important;
    }

    #header .main-menu {
        flex: none !important;
        background: #2d2d2d !important;
    }

    #header .main-menu ul {
        display: block !important;
    }

    #header .main-menu .menu-item {
        float: none !important;
        display: block !important;
    }

    #header .main-menu .menu-item a {
        border-bottom: none !important;
        padding: 12px 15px !important;
    }

    /* Ẩn submenu mặc định - chỉ hiện khi có class expanded */
    #header .main-menu .menu-item .sub-menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
    }

    #header .main-menu .menu-item .sub-menu.expanded {
        display: block !important;
    }

    #header .main-menu .menu-item:hover .sub-menu {
        display: none !important;
    }

    #header .main-menu .menu-item .sub-menu.expanded {
        display: block !important;
    }
}
.title-box .tophot,
.right-content .block .caption {
    color: #da966e;
}
.main-menu .menu-item .sub-menu {
    background-color: #2d2d2d;
}
.list-films .item .icon-play,
.list-films .label-quality {
    background: #522e75;
}
.list-films .label-quality:after {
    border-left: 10px solid #522e75;
}
#film_hot .item .label,
#film_related .item .label,
.film-new .item .label {
    background: #a3765d;
    border-bottom: 2px solid #96674f;
}
.list-films.film-new .item .name {
    background: #181818;
}
.list-film li:nth-child(even) {
    background: rgb(24 24 24);
}
.title-box .tab.active,
.title-box .tab:hover {
    color: #da966e;
    border-bottom: 2px solid #907863;
}
.most-view .list-film .item .number-rank {
    background: #c58560;
}
.breadcrumbs {
    background: #181818;
}
#page-info .blockbody .title {
    color: #ff9658;
}
/* ========== CHI TIẾT PHIM - POSTER & NÚT XEM PHIM ========== */
#page-info .blockbody .poster {
    position: relative;
}

#page-info .poster .buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
    list-style: none;
}

#page-info .poster .buttons.two-button {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#page-info .poster .buttons li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

#page-info .poster .buttons .btn-stream-link,
#page-info .poster .buttons .btn-download-link {
    width: 100% !important;
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border-radius: 0;
    box-sizing: border-box;
    margin: 0;
}
.dinfo .film-status {
}
#page-info .latest-episode > a:hover,
.list-episode > a:hover,
.list-episode > a.current,
ul.server-backup li span.active,
ul.server-backup li span:hover {
    background: #c58560;
}

#player-video .details .name h1 a,
#player-video .details .name span {
    color: #da966e;
}
.film-note {
    border: 1px solid #e8a568;
    background: #181818;
}
#player-video .bottom-content {
    background: #181818;
}
.mp-tips {
    color: #fff;
}
#suggestions ul.autocomplete-list li span,
#suggestions ul.autocomplete-list li strong,
#suggestions ul.autocomplete-list li.last a {
    color: #da966e;
}
.most-view .list-film .item a:hover,
.list-film .film-item-ver .name a:hover {
    color: #da966e;
}
.most-view .tabs .tab:hover {
    background: #333;
}
#footer {
    color: #848484;
    background: #2d2d2d;
}
#footer .info {
    background: #353535;
}


@media (min-width: 250px) and (max-width: 979px) {
    #header .logo {
        display: block;
        text-align: center;
    }
    #header .logo img {
        width: 120px;
        height: 30px !important;
        margin-bottom: 0 !important;
    }
}

.server-episode-block {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #da843d;
}

/* ========== MOTPHIM MỚI CẬP NHẬT - GRID 5 CỘT ========== */
.list-films.film-new {
    margin-bottom: 10px;
}

.list-films.film-new .film-moi,
.list-films.film-new > ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-films.film-new .item {
    float: none;
    width: auto !important;
    margin: 0 !important;
    height: auto !important;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.3s ease;
}

.list-films.film-new .item:hover {
    transform: translateY(-5px);
}

.list-films.film-new .item > a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.list-films.film-new .item .img-film {
    width: 100% !important;
    aspect-ratio: 2/3 !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

/* Override default.css cho tất cả .list-films */
.list-films .item .img-film {
    width: 100% !important;
    aspect-ratio: 2/3 !important;
    height: auto !important;
    object-fit: cover !important;
}

.list-films.film-new .item:hover .img-film {
    transform: scale(1.05);
}

.list-films.film-new .item .label {
    position: absolute;
    top: 8px;
    left: 0;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0 4px 4px 0;
    z-index: 3;
    border-bottom: none;
}

.list-films.film-new .item .icon-play {
    background: rgba(218, 150, 110, 0.9);
    height: 45px;
    width: 45px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(1.5);
    transition: all 0.3s ease-in-out;
    z-index: 4;
}

.list-films.film-new .item .icon-play:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border: 12px solid transparent;
    border-left: 16px solid #ffffff;
    margin: -12px 0 0 -5px;
}

.list-films.film-new .item:hover .icon-play {
    transform: scale(1);
    opacity: 1;
}

.list-films.film-new .item .name {
    padding: 10px;
    background: transparent;
    height: auto;
    text-align: left;
}

.list-films.film-new .item .name a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-films.film-new .item .name a:hover {
    color: #da966e;
}

.list-films.film-new .item .name .count_view {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

/* Responsive cho film-new */
@media (max-width: 1200px) {
    .list-films.film-new .film-moi,
    .list-films.film-new > ul {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .list-films.film-new .film-moi,
    .list-films.film-new > ul {
        grid-template-columns: repeat(4, 1fr);
    }

    .list-films.film-new .item .img-film {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .list-films.film-new .film-moi,
    .list-films.film-new > ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .list-films.film-new .item .img-film {
        height: auto;
        aspect-ratio: 2/3;
    }

    .list-films.film-new .item .name a {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .list-films.film-new .film-moi,
    .list-films.film-new > ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .list-films.film-new .item .img-film {
        height: auto;
        aspect-ratio: 2/3;
    }

    .list-films.film-new .item .label {
        font-size: 10px;
        padding: 3px 6px;
    }

    .list-films.film-new .item .name {
        padding: 8px;
    }

    .list-films.film-new .item .name a {
        font-size: 11px;
    }
}

/* ========== MOTPHIM ĐỀ CỬ - SLIDER STYLE ========== */
.list-films.film-hot-slider {
    margin-bottom: 30px;
    position: relative;
}

.film-slide-item {
    position: relative;
    border-radius: 10px;
    overflow: visible;
    background: transparent;
    margin: 0 5px;
    transition: transform 0.3s ease;
}

.film-slide-item:hover {
    transform: translateY(-5px);
}

.film-slide-item .film-thumb-link {
    border-radius: 10px;
    overflow: hidden;
    display: block;
    position: relative;
}

.film-thumb-link {
    display: block;
    position: relative;
}

.film-thumb-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.film-grid-item:hover .film-thumb-img {
    transform: scale(1.05);
}

/* Badge Vietsub/Thuyết minh - góc trái trên */
.film-badge-lang {
    position: absolute;
    top: 8px;
    left: 0;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0 4px 4px 0;
    z-index: 3;
    text-transform: capitalize;
}

/* Badge HD - góc phải trên */
.film-badge-quality {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 3;
}

/* Badge số tập - góc dưới */
.film-episode-badge {
    position: absolute;
    bottom: 8px;
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 0 4px 4px 0;
    z-index: 3;
}

/* Icon play */
.film-slide-item .icon-play {
    background: rgba(218, 150, 110, 0.9);
    height: 45px;
    width: 45px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(1.5);
    transition: all 0.3s ease-in-out;
    z-index: 4;
}

.film-slide-item .icon-play:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border: 12px solid transparent;
    border-left: 16px solid #ffffff;
    margin: -12px 0 0 -5px;
}

.film-slide-item:hover .icon-play {
    transform: scale(1);
    opacity: 1;
}

/* Owl Carousel Navigation */
.film-hot-slider .owl-prev,
.film-hot-slider .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-80%);
    width: 40px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.film-hot-slider .owl-prev:hover,
.film-hot-slider .owl-next:hover {
    background: rgba(218, 150, 110, 0.9);
}

.film-hot-slider .owl-prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.film-hot-slider .owl-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* Thông tin phim */
.film-slide-item .film-info {
    padding: 10px;
    background: transparent;
    border-radius: 0 0 10px 10px;
}

.film-slide-item .film-name {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.film-slide-item .film-name a {
    color: #fff;
    transition: color 0.3s ease;
}

.film-slide-item .film-name a:hover {
    color: #da966e;
}

.film-slide-item .film-name-en {
    margin: 0;
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .film-thumb-img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .film-thumb-img {
        height: 220px;
    }

    .film-name {
        font-size: 12px;
        height: 32px;
    }

    .film-hot-slider .owl-prev,
    .film-hot-slider .owl-next {
        width: 35px;
        height: 55px;
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .film-thumb-img {
        height: 200px;
    }

    .film-badge-lang,
    .film-episode-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .film-badge-quality {
        font-size: 9px;
        padding: 2px 5px;
    }

    .film-info {
        padding: 8px;
    }

    .film-name {
        font-size: 11px;
        height: 28px;
    }

    .film-name-en {
        font-size: 10px;
    }

    .film-slide-item {
        margin: 0 5px;
    }
}

/* ========== FIX LAYOUT - MỞ RỘNG LEFT-CONTENT ========== */
.main-content .left-content {
    width: 1020px !important;
    float: left;
    margin: 0 20px 20px 0;
}

.main-content .right-content {
    /* margin-top: 60px; */
    width: 280px;
    float: right;
}

/* Đảm bảo container đủ rộng */
.container {
    width: 1340px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

/* Responsive cho layout mới */
@media (max-width: 1400px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .main-content .left-content {
        width: calc(100% - 320px) !important;
    }
}

@media (max-width: 1200px) {
    .main-content .left-content {
        width: calc(100% - 320px) !important;
    }

    .list-films.film-new .film-moi {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .main-content .left-content {
        width: 100% !important;
        float: none;
        margin-right: 0;
    }

    .main-content .right-content {
        width: 100%;
        float: none;
    }

    .list-films.film-new .film-moi,
    .list-films.film-new > ul {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Chi tiết phim responsive tablet */
    #page-info .blockbody .poster {
        width: 35%;
    }
}

/* ========== TRANG CHI TIẾT PHIM - TABLET LAYOUT ========== */
@media (min-width: 769px) and (max-width: 1366px) {
    /* Container full width trên tablet */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box;
    }

    /* Tất cả .left-content trong container */
    .container .left-content {
        width: calc(100% - 310px) !important;
        float: left !important;
        margin-right: 15px !important;
        box-sizing: border-box;
    }

    /* Left-content bên trong (page-info) - full width theo parent */
    .container .left-content .left-content,
    .container .left-content#page-info,
    #page-info {
        width: 100% !important;
        margin-right: 0 !important;
        float: none !important;
    }

    /* Right content - sidebar */
    .container .right-content {
        width: 290px !important;
        float: right !important;
        box-sizing: border-box;
    }

    /* Poster nhỏ hơn trên tablet */
    #page-info .blockbody .poster {
        width: 180px !important;
        float: left;
    }

    #page-info .blockbody .text {
        margin-left: 195px !important;
        width: auto !important;
    }

    /* Đảm bảo blockbody full width */
    #page-info .blockbody {
        width: 100% !important;
        overflow: hidden;
    }

    /* Fix cho main-content nếu có */
    .main-content .left-content {
        width: calc(100% - 310px) !important;
    }

    .main-content .right-content {
        width: 290px !important;
    }
}

/* ========== RESPONSIVE CHI TIẾT PHIM ========== */
@media (max-width: 768px) {
    #page-info .blockbody .info {
        display: flex;
        flex-direction: column;
    }

    #page-info .blockbody .poster {
        float: none;
        width: 60%;
        max-width: 280px;
        margin: 0 auto 20px auto;
    }

    #page-info .blockbody .poster img {
        width: 100%;
        max-height: none;
        border-radius: 8px;
    }

    #page-info .poster .buttons {
        margin-top: 15px;
    }

    .btn-stream-link,
    .btn-download-link {
        padding: 14px 20px;
        font-size: 16px;
    }

    #page-info .blockbody .text {
        width: 100%;
        padding: 0;
    }

    #page-info .blockbody .text h1 {
        text-align: center;
    }

    #page-info .blockbody .text h2 {
        text-align: center;
    }
}

@media (max-width: 576px) {
    #page-info .blockbody .poster {
        width: 70%;
        max-width: 250px;
    }

    .btn-stream-link,
    .btn-download-link {
        padding: 12px 15px;
        font-size: 14px;
    }

    #page-info .dinfo .col dt,
    #page-info .dinfo .col dd {
        font-size: 13px;
    }
}

/* ========== BẢNG XẾP HẠNG SIDEBAR - STYLE VỚI THUMBNAIL ========== */
.sidebar-ranking.block {
    background: #0d1520;
    border-radius: 8px;
    padding: 15px !important;
}

.sidebar-ranking .caption {
    color: #da966e !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid #1e2a3a !important;
}

.sidebar-ranking .ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-ranking .ranking-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #1e2a3a;
}

.sidebar-ranking .ranking-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-ranking .ranking-item:first-child {
    padding-top: 0;
}

/* Thumbnail */
.sidebar-ranking .ranking-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 85px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
}

.sidebar-ranking .ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-ranking .ranking-item:hover .ranking-thumb img {
    transform: scale(1.05);
}

/* Info */
.sidebar-ranking .ranking-info {
    flex: 1;
    min-width: 0;
}

.sidebar-ranking .ranking-title {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.sidebar-ranking .ranking-title a {
    color: #fff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.sidebar-ranking .ranking-title a:hover {
    color: #da966e;
}

.sidebar-ranking .ranking-original {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #6b7a8f;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta: Rating + Episode */
.sidebar-ranking .ranking-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.sidebar-ranking .ranking-rating {
    color: #f5c518;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-ranking .ranking-rating .fa {
    margin-right: 3px;
}

.sidebar-ranking .ranking-episode {
    color: #4a9eff;
    font-size: 11px;
}

/* Views */
.sidebar-ranking .ranking-views {
    color: #6b7a8f;
    font-size: 11px;
}

.sidebar-ranking .ranking-views .fa {
    margin-right: 4px;
}

/* ========== TOP PHIM SIDEBAR (TRENDING) ========== */
.most-view.block {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 15px !important;
}

.most-view .caption {
    color: #da966e !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
    border-bottom: 2px solid #333 !important;
}

.most-view .list-film {
    list-style: none;
    margin: 0;
    padding: 0;
}

.most-view .list-film .item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 0 !important;
    border-bottom: 1px solid #2a2a2a;
    position: relative;
}

.most-view .list-film .item:last-child {
    border-bottom: none;
}

.most-view .list-film .item .number-rank {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    line-height: 24px !important;
    text-align: center;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #666;
    background-color: transparent;
    border-radius: 50% !important;
    margin-right: 10px;
}

/* Span chứa tên phim */
.most-view .list-film .item > span:not(.number-rank) {
    flex: 1;
    min-width: 0;
}

.most-view .list-film .item a {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.most-view .list-film .item a:hover {
    color: #da966e !important;
}

/* Lượt xem nằm dưới, chiếm full width */
.most-view .list-film .item .count_view {
    width: 100%;
    color: #888 !important;
    font-size: 11px !important;
    font-style: normal !important;
    margin-top: 2px;
    padding-left: 36px;
    line-height: 1;
}

/* ========== TRANG XEM PHIM - CÓ THỂ BẠN MUỐN XEM ========== */
/* Tablet - 4 cột */
@media (max-width: 1200px) {
    .bottom-content #film_related {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .bottom-content #film_related .item {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        float: none !important;
    }

    .bottom-content #film_related .item .img-film {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 8px;
    }

    .bottom-content #film_related .item .text {
        position: relative !important;
        padding: 8px 5px;
    }

    .bottom-content #film_related .item .text a {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
}

/* Mobile lớn - 3 cột */
@media (max-width: 768px) {
    .bottom-content #film_related {
        grid-template-columns: repeat(3, 1fr);
    }

    .bottom-content #film_related .item .img-film {
        height: 180px;
    }

    .bottom-content #film_related .item .text a {
        font-size: 12px;
    }

    .bottom-content #film_related .item .label {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Mobile nhỏ - 2 cột */
@media (max-width: 576px) {
    .bottom-content #film_related {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-content #film_related .item .img-film {
        height: 160px;
    }

    .bottom-content #film_related .item .text a {
        font-size: 11px;
    }
}
