/* assets/css/style.css */

/* --- Reset & Global --- */
:root {
    --primary-color: #eab308; /* Vàng */
    --secondary-color: #3b82f6; /* Xanh */
    --dark-bg: #0f172a; /* Nền tối */
    --light-bg: #1e293b; /* Nền sáng hơn */
    --text-color: #cbd5e1; /* Màu chữ chính */
    --text-muted: #94a3b8; /* Màu chữ phụ */
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}
body.no-scroll {
    overflow: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fde047;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: #fde047;
    color: var(--dark-bg);
}

.btn-secondary {
    background-color: var(--light-bg);
    color: #fff;
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--border-color);
    color: #fff;
}

/* --- Header --- */
.main-header {
    background-color: var(--light-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--primary-color);
    margin-right: 10px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
    position: relative;
}

.main-nav ul li a {
    color: #fff;
    font-weight: 500;
    padding: 5px 0;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li {
    margin: 0;
    width: 100%;
}

.dropdown li a {
    display: block;
    padding: 8px 10px;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
}

.search-form-desktop {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.search-form-desktop input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 15px;
    outline: none;
}

.search-form-desktop button {
    background: var(--primary-color);
    border: none;
    color: var(--dark-bg);
    padding: 0 15px;
    cursor: pointer;
}

/* --- Mobile Specific Header --- */
.mobile-menu-toggle, .mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
}

.search-form-mobile {
    display: none;
    margin-top: 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}
.search-form-mobile.active {
    display: flex;
}
.search-form-mobile input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 15px;
    outline: none;
}
.search-form-mobile button {
    background: var(--primary-color);
    border: none;
    color: var(--dark-bg);
    padding: 0 15px;
    cursor: pointer;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}


/* --- Main Content --- */
.main-content {
    padding: 2rem 0;
}

.movie-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title, h1.section-title {
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    color: #fff;
    margin-bottom: 1.5rem;
}

.view-more {
    color: var(--text-muted);
}
.view-more:hover {
    color: var(--primary-color);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
@media (min-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media (min-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}


.movie-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.movie-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.movie-card a {
    display: block;
    color: var(--text-color);
}

.movie-poster {
    position: relative;
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.movie-card:hover .play-icon {
    opacity: 1;
}

.movie-info {
    padding: 10px;
}

.movie-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.movie-origin-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-badge {
    position: absolute;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #fff;
    white-space: normal;
    line-height: 1.2;
    max-width: calc(100% - 20px);
}

.lang-badge {
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.episode-badge-on-poster {
    bottom: 10px;
    right: 10px;
    background-color: var(--secondary-color);
}


/* --- Hero Slider --- */
.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 3rem;
    aspect-ratio: 16 / 7;
}

.hero-slider .slider-item {
    min-width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}
.hero-slider .slider-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 20%, rgba(15, 23, 42, 0.2) 100%);
}

.slider-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.slider-info {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 5%;
    max-width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.slider-origin-name {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.slider-meta span {
    margin-right: 15px;
    font-weight: 500;
}
.slider-info .btn {
    margin-top: 20px;
    align-self: flex-start;
}

/* --- Movie Carousel Section --- */
.movie-carousel-section {
    position: relative;
}
.swiper {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}
.carousel-nav {
    display: flex;
    gap: 10px;
}
.swiper-button-next, .swiper-button-prev {
    position: static;
    margin: 0;
    width: 35px;
    height: 35px;
    background-color: var(--light-bg);
    border-radius: 50%;
    color: var(--text-color);
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1rem;
    font-weight: bold;
}
.hero-section .swiper-button-next, .hero-section .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* --- Top Trending Section (New Layout) --- */
.trending-card-new {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.trending-poster-new {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}
.trending-poster-new:hover {
    opacity: 0.8;
}
.trending-poster-new img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}
.trending-info-new {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}
.trending-rank-new {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--border-color);
    -webkit-text-stroke: 1px var(--text-muted);
    text-stroke: 1px var(--text-muted);
}
.trending-details-new {
    min-height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.trending-details-new a {
    color: var(--text-color);
}
.trending-title-new {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0;
}
.trending-origin-title-new {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* --- Movie Detail Page --- */
.movie-detail-banner {
    height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: -2rem;
}
.movie-detail-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--dark-bg) 0%, rgba(15, 23, 42, 0.5) 100%);
}
.movie-detail-container {
    margin-top: -150px;
    position: relative;
    z-index: 10;
}
.detail-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.detail-poster {
    flex-shrink: 0;
    width: 250px;
}
.detail-poster img {
    border-radius: 10px;
    border: 3px solid #fff;
}
.detail-info {
    flex-grow: 1;
}
.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}
.detail-origin-title {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.detail-meta span i {
    color: var(--primary-color);
    margin-right: 5px;
}
.detail-actions {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 15px;
}
.btn-watch-now {
    font-size: 1.1rem;
    padding: 12px 25px;
}
.detail-categories .tag {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 5px 10px;
    border-radius: 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
}
.detail-countries {
    margin: 1rem 0;
}
.detail-countries a {
    color: var(--text-muted);
    margin-left: 10px;
}
.detail-description {
    margin-top: 1.5rem;
}
.detail-description h3 {
    margin-bottom: 10px;
}

/* --- Episodes Section --- */
.episodes-section {
    margin-top: 3rem;
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
}
.episodes-section h3, .episodes-section h4 {
    color: #fff;
    margin-bottom: 1rem;
}
.server-block {
    margin-bottom: 1.5rem;
}

/* --- Server Tabs (Watch Page Only) --- */
.watch-container .server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.watch-container .server-tab-item {
    background-color: var(--border-color);
    color: var(--text-color);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.watch-container .server-tab-item.active,
.watch-container .server-tab-item:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}
.watch-container .server-block {
    display: none;
}
.watch-container .server-block.active {
    display: block;
}

.episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.episode-item {
    background-color: var(--border-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.episode-item:hover, .episode-item.active {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* --- Comment Section (Active) --- */
.comment-section {
    margin-top: 2rem;
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
}
.comment-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
}
.comment-form .form-group {
    margin-bottom: 1rem;
}
.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
}
.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    color: var(--text-color);
    font-family: inherit;
}
.comment-form textarea {
    resize: vertical;
}
.comment-list {
    margin-top: 2rem;
}
.comment-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.comment-author i {
    font-size: 1.5rem;
}
.comment-author strong {
    color: #fff;
}
.comment-author .comment-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
}
.comment-content p {
    margin: 0;
    padding-left: 35px;
}


/* --- Watch Page --- */
.breadcrumb {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--text-color);
}
.breadcrumb i {
    margin: 0 10px;
    font-size: 0.8rem;
}
.player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}
.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.watch-controls-extra {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.control-group p {
    margin: 0;
    font-weight: 500;
    color: var(--text-muted);
}
.episode-nav, .source-buttons {
    display: flex;
    gap: 10px;
}
.btn-control, .btn-source {
    background-color: var(--border-color);
    color: var(--text-color);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-control:hover, .btn-source:hover {
    background-color: #475569;
}
.btn-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-source.active {
    background-color: #16a34a;
    color: #fff;
    font-weight: bold;
}


/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 8px;
}
.page-item {
    display: inline-block;
    padding: 8px 14px;
    background-color: var(--light-bg);
    color: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}
.page-item:hover {
    background-color: var(--border-color);
    color: #fff;
}
.page-item.active {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    font-weight: bold;
}
.page-item.disabled {
    color: var(--text-muted);
    cursor: default;
}
.page-item.disabled:hover {
    background-color: var(--light-bg);
}


/* --- Footer --- */
.main-footer {
    background-color: var(--light-bg);
    color: var(--text-muted);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* --- Responsive --- */
@media (min-width: 768px) {
    .movie-info {
        padding: 15px;
    }
    .movie-title {
        font-size: 1rem;
    }
    .movie-origin-title {
        font-size: 0.8rem;
    }
    .movie-badge {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}


@media (max-width: 768px) {
    .header-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        width: 100%;
    }
    .mobile-menu-toggle {
        display: block;
        grid-column: 1 / 2;
        justify-self: start;
    }
    .logo {
        grid-column: 2 / 3;
        justify-self: center;
    }
    .header-right {
        grid-column: 3 / 4;
        justify-self: end;
    }
    .search-form-desktop {
        display: none;
    }
    .mobile-search-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background-color: var(--light-bg);
        flex-direction: column;
        padding-top: 60px;
        transition: left 0.3s ease-in-out;
        z-index: 1001;
    }
    
    .main-nav.active {
        display: flex;
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px;
    }
    
    .has-dropdown .dropdown {
        position: static;
        display: none;
        border: none;
        padding-left: 20px;
        background-color: #152033;
    }

    .has-dropdown:hover .dropdown {
        display: block;
    }
    
    .slider-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        background: linear-gradient(to top, rgba(15, 23, 42, 1) 20%, transparent);
        justify-content: flex-end;
        padding: 1rem;
        height: auto;
    }
    .slider-item::after {
        background: none;
    }
    .slider-title {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    .slider-origin-name {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    .slider-meta {
        display: none;
    }
    .slider-info .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .hero-section .swiper-button-next, .hero-section .swiper-button-prev {
        display: none;
    }

    .detail-banner {
        height: 30vh;
    }
    .detail-container {
        margin-top: -80px;
    }
    .detail-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .detail-info {
        width: 100%;
    }
    .detail-actions {
        justify-content: center;
    }
    .detail-title {
        font-size: 2rem;
    }
      /* === BẮT ĐẦU CSS MỚI CHO TIÊU ĐỀ MOBILE === */
    .section-title, h1.section-title {
        font-size: 1.5rem;
    }
    /* === KẾT THÚC CSS MỚI === */
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .detail-poster {
        width: 200px;
    }
      /* === BẮT ĐẦU CSS MỚI CHO TIÊU ĐỀ MOBILE === */
    .section-title, h1.section-title {
        font-size: 1rem;
    }
    /* === KẾT THÚC CSS MỚI === */
}

/* ... (Toàn bộ CSS cũ giữ nguyên) ... */

/* === CẬP NHẬT CSS CHO BỘ LỌC === */
.filter-container {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
#filter-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 640px) {
    #filter-form {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1024px) {
    #filter-form {
        grid-template-columns: repeat(7, 1fr);
    }
}
.filter-group select {
    width: 100%;
    padding: 10px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
}
.filter-group.submit-group {
    grid-column: 2 / 3; /* Trên mobile, nút sẽ nằm ở cột 2 */
}
@media (min-width: 640px) {
    .filter-group.submit-group {
        grid-column: auto; /* Reset trên tablet và desktop */
    }
}
.btn-filter {
    width: 100%;
    height: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-filter:hover {
    background-color: #fde047;
}

/* ... (Phần CSS responsive giữ nguyên) ... */


/* === BẮT ĐẦU CSS MỚI CHO TOP THỊNH HÀNH V2 === */
.trending-card-v2 {
    position: relative;
    display: flex;
    align-items: flex-end; /* Căn các phần tử xuống dưới */
    width: 100%;
}
.trending-rank-v2 {
    position: absolute;
    left: -20px;
    bottom: -10px;
    width: 100px;
    height: 120px;
    z-index: 1;
}
.trending-rank-v2 text {
    font-size: 100px;
    font-weight: 800;
    fill: var(--border-color);
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}
.trending-poster-v2 {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-left: 40px; /* Tạo khoảng trống cho số thứ hạng */
    transition: transform 0.3s ease;
}
.trending-poster-v2:hover {
    transform: scale(1.05);
}
.trending-poster-v2 img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}
.trending-info-v2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    text-align: left;
}
.trending-title-v2 {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trending-episode-v2 {
    font-size: 0.8rem;
    color: var(--text-muted);
}
/* === KẾT THÚC CSS MỚI === */
/* --- TV & Large Screen Styles --- */
@media screen and (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }

    body {
        font-size: 18px;
    }

    .section-title, h1.section-title {
        font-size: 2.2rem;
    }

    .movie-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .slider-title {
        font-size: 3.5rem;
    }
    
    .detail-title {
        font-size: 3rem;
    }

    .trending-rank-v2 {
        font-size: 12rem;
    }
    .trending-poster-v2 {
        width: 180px;
    }
}