:root {
    --primary-color: #e50914;
    --secondary-color: #221f1f;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #b3b3b3;
    --hover-color: #f40612;
    --border-color: #333333;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-blue: #64ffda;
    --accent-orange: #ff6b35;
    --accent-yellow: #e6a422;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    margin-top: 80px;
}

.navbar-dark {
    background: rgba(10, 10, 10, 0.95);
    /* background: transparent; */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.8);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
} */

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 100%;
}

.navbar .dropdown-toggle::after {
    position: static;
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top: .3em solid; 
    border-right: .3em solid transparent;
    border-left: .3em solid transparent;
    transition: transform 0.3s ease;
}
.navbar .dropdown-item:hover {
    background-color: var(--hover-color);
}
.genre-menu {
    min-width: 300px;
}
.genre-menu.show {
    display: grid !important;
    grid-template-columns: repeat(3, auto);
    gap: 5px 20px;
    padding: 10px;
}
@media (max-width: 768px) {
    .navbar .navbar-collapse {
        max-height: 500px;
        overflow-y: auto;
    }
    .genre-menu.show {
        grid-template-columns: repeat(2, auto);
        gap: 5px 0px;
        min-width: 220px;
    }
}

/* icon xoay dropdown */
/* .navbar .show .dropdown-toggle::after {
    transform: rotate(180deg);
} */
/* icon xoay dropdown */


/* Hero Carousel */
/* .hero-section {
    height: 70vh;
    margin-bottom: 3rem;
}

.carousel-item {
    height: 70vh;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
} */

/* .carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 2rem 2rem;
    text-align: left;

} */

/* .carousel-caption h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
} */
 
/* Trending Lists - Horizontal Layout */
.trending-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
}

.trending-tabs {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 0.3rem;
    display: flex;
    gap: 0.5rem;
}

.trending-tab {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.trending-tab.active {
    background: var(--primary-color);
    color: white;
}

.trending-tab:hover:not(.active) {
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
}

.trending-list {
    /* background: var(--card-bg); */
    border-radius: 15px;
    padding: 2rem;
    /* margin: 0 2rem; */
}

.trending-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    background: rgba(255,255,255,0.05);
    padding-left: 1rem;
    border-radius: 10px;
}

.trending-rank {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    width: 60px;
    text-align: center;
}

.trending-poster {
    width: 60px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1.5rem;
}

.trending-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-info {
    flex: 1;
}

.trending-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.trending-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.trending-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    color: #ffc107;
}

/* Movie Grid Sections */
.movie-section {
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.movie-section h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
}

.movie-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.movie-card {
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    text-decoration: none;
    color: transparent;
}

/* List view */
.movie-desc {
    display: none;
}

.movie-grid.list-view .movie-desc {
    display: block;
    color: var(--text-light);
}

.movie-card {
    position: relative;
}

.movie-card .card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* thấp hơn các nút quan trọng */
    text-decoration: none;
}

.movie-card .movie-actions {
    position: relative;
    z-index: 2;
    gap: 8px;
}

@media (max-width: 768px) {
    .movie-grid.list-view .movie-desc {
        display: -webkit-box;
        -webkit-line-clamp: 4; /* chỉ hiển thị 4 dòng */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        position: relative;
    }

    .desc-toggle {
        display: inline-block;
        margin-top: 5px;
        color: var(--primary-color);
        font-weight: 600;
        cursor: pointer;
        font-size: 0.9rem;
        z-index: 2;
    }
}

.movie-grid.list-view {
    display: flex;           /* Thay cho grid */
    flex-direction: column;
    gap: 15px;               /* Khoảng cách giữa các movie-card */
}

.movie-grid.list-view .movie-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 15px;
    align-items: flex-start;
}

.movie-grid.list-view .movie-poster {
    width: 150px;
    flex-shrink: 0;
}

.movie-grid.list-view .movie-poster img {
    width: 150px;
    height: auto;
}

.movie-grid.list-view .movie-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.movie-grid.list-view .movie-actions {
    justify-content: flex-start;
}
/* end list */

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.3);
}

.movie-card a {
    text-decoration: none;
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--hover-color);
    transform: scale(1.1);
    color: white;
}

.movie-info {
    padding: 1rem;
}

.movie-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.movie-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.bookmark-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
}

.bookmark-btn:hover,
.bookmark-btn.active {
    color: var(--primary-color);
}

/* Search */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-light);
    padding: 10px 45px 10px 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
    background: rgba(255,255,255,0.15);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 0.5rem;
}

.search-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-item:hover {
    background: rgba(255,255,255,0.05);
}

.search-item img {
    width: 45px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}
#search-bar-mobile {
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    z-index: 1050;
    margin: 0 auto;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
#search-bar-mobile.show {
    display: block !important;
}
/* search result */
.search-bar i.search-spin4 {
    position: absolute;
    right: 50px;
    bottom: 6px;
    z-index: 9;
    color: #b42121;
    font-size: 35px;
}
.animate-spin {
    -moz-animation: spin 2s infinite linear;
    -o-animation: spin 2s infinite linear;
    -webkit-animation: spin 2s infinite linear;
    animation: spin 2s infinite linear;
    display: inline-block;
}
.search-item .list_item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-item .label {
    flex: 1;
    color: #fff;
    font-weight: 700;
    white-space: inherit;
    font-size: 14px;
}
.search-item .label .enName {
    color: #b3b3b3;
    font-size: 12px;
}

/* JW Player Container */
.video-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Filter Section */
.filter-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.filter-section h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.filter-section select,
.filter-section input {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 8px;
    padding: 0.6rem;
}

.filter-section .form-control::placeholder {
    color: #ccc;   /* màu chữ placeholder */
}

/* Phần hiển thị select2 */
.filter-section .select2-container--bootstrap-5 .select2-selection {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 8px;
    padding: 0.6rem;
    min-height: 40px; /* để cân với input */
}

/* Chữ placeholder & text */
.filter-section .select2-container--bootstrap-5 .select2-selection__placeholder,
.filter-section .select2-container--bootstrap-5 .select2-selection__rendered {
    color: var(--text-light);
}

/* Dropdown khi click */
.filter-section .select2-container--bootstrap-5 .select2-dropdown {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

/* Option bên trong */
.filter-section .select2-container--bootstrap-5 .select2-results__option {
    color: var(--text-light);
}

/* Option hover */
.filter-section .select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: var(--border-color);
    color: #fff;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    background: var(--border-color) !important;
    color: #fff !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options:not(.select2-results__options--nested) {
    background: var(--dark-bg) !important;
    color: #fff !important;
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-search .select2-search__field { 
    color: #fff !important;
}

.filter-section select:focus,
.filter-section input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--hover-color));
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--text-light);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .trending-list {
        margin: 0 1rem;
        padding: 1rem;
    }

    .movie-section {
        padding: 0 1rem;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .carousel-caption h2 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .trending-tabs {
        flex-wrap: wrap;
    }

    .trending-item {
        padding: 0.8rem 0;
    }

    .trending-rank {
        font-size: 1.5rem;
        width: 40px;
    }

    .trending-poster {
        width: 50px;
        height: 75px;
        margin-right: 1rem;
    }
}

@media (max-width: 576px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .trending-item {
        /* flex-direction: column; */
        text-align: center;
        padding: 1rem;
    }

    .trending-rank {
        margin-bottom: 0.5rem;
    }

    .trending-poster {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Loading spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide sections */
.section-hidden {
    display: none !important;
}

/* top */
.trending-list {
    display: flex;
    flex-wrap: nowrap;       /* luôn nằm ngang */
    overflow-x: auto;        /* scroll ngang trên mobile */
    gap: 1rem;
    -webkit-overflow-scrolling: touch; /* trượt mượt trên iOS */
}
.trending-card {
    flex: 0 0 auto;          /* không co, không giãn */
    width: 415px;            /* cố định chiều ngang hợp lý trên mobile */
    box-sizing: border-box;
}
.trending-card h5 {
    font-size: 1rem;
    white-space: normal;
}
.trending-list-compact li {
    display: flex;
    align-items: flex-start;
    line-height: 1.2;
}
.rank {
    flex-shrink: 0;   /* giữ số thứ tự không bị co */
    width: 16px;      /* độ rộng cố định cho số thứ tự */
    /* text-align: right; căn phải số thứ tự */
    font-size: 1.2em;
    font-weight: 600;
    opacity: .3;
}
.movie-info-rank {
    display: flex;
    align-items: center;
    gap: 1rem;       /* khoảng cách giữa tên và view */
    white-space: nowrap;
    overflow: hidden;
}
.movie-name {
    white-space: nowrap;       /* không xuống dòng */
    overflow: hidden;          /* ẩn phần tràn ra */
    text-overflow: ellipsis;   /* hiển thị dấu ... */
}
.viewsCount {
    font-size: 13px;
    flex-shrink: 0;      /* không co lại */
    /* font-size: 0.85rem; */
    color: #aaa;
}
.trending-list li {
    /* padding: 0.8rem 0; */
    height: 55px;
    object-fit: cover; border-radius: 4px;
    /* border-bottom: 1px solid #333; */
    transition: all 0.3s ease;
}
.trending-list li:hover {
    padding-left: 10px;
    color: var(--primary-color);
}
.trending-list h5 i {
    color: var(--primary-color);
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.trending-more a {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    opacity: .3;
    width: 100%;
}

.trending-more a:hover {
    color: var(--hover-color);
}

/* latest carousel */
.container-carousel-newgen {
    background: linear-gradient(-45deg, #0f1419, #1a1f2e, #2d3748, #1a202c);
}
.container-carousel-newgen .section-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
    margin-top: 20px;
}

.container-carousel-newgen .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.container-carousel-newgen .view-all-btn {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 20px;
}

.container-carousel-newgen .view-all-btn:hover {
    color: #fff;
    transform: translateX(5px);
}

.container-carousel-newgen .view-all-btn::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.container-carousel-newgen .view-all-btn:hover::after {
    transform: translateX(3px);
}

/* Movie Card Styles */
.container-carousel-newgen .movie-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    justify-items: center;
}

.container-carousel-newgen .movie-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

.container-carousel-newgen .movie-poster {
    position: relative;
    overflow: hidden;
    /* aspect-ratio: 2 / 3; */
    aspect-ratio: 4 / 3;
}

/* @media (max-width: 768px) {
    .container-carousel-newgen .movie-poster {
        height: 180px;
    }
} */

.container-carousel-newgen .movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.container-carousel-newgen .movie-card:hover .movie-poster img {
    transform: scale(1.1);
}

.container-carousel-newgen .movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-carousel-newgen .movie-card:hover .movie-overlay {
    opacity: 1;
}

.container-carousel-newgen .play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
    transform: scale(0);
    transition: transform 0.3s ease;
    border: none;
}

.container-carousel-newgen .movie-card:hover .play-btn {
    transform: scale(1);
}

.container-carousel-newgen .movie-info {
    padding: 15px;
    width: 100%;
    z-index: 1 !important;
}

.container-carousel-newgen .movie-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    /* white-space: nowrap; */
}

.container-carousel-newgen .movie-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Swiper Carousel Styles */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none !important;
}
.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
    display: none !important;
}

.container-carousel-newgen .swiper {
    width: 100%;
    height: 100%;
    padding-bottom: 20px;
}

.container-carousel-newgen .swiper-slide {
    width: 200px;
    height: auto;
}

.container-carousel-newgen .swiper-button-next,
.container-carousel-newgen .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: #fff !important;
    font-size: 18px;
    margin-top: -25px;
    transition: all 0.3s ease;
    opacity: 0;
}

.container-carousel-newgen .swiper:hover .swiper-button-next,
.container-carousel-newgen .swiper:hover .swiper-button-prev {
    opacity: 1;
}

.container-carousel-newgen .swiper-button-next:hover,
.container-carousel-newgen .swiper-button-prev:hover {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.container-carousel-newgen .swiper-button-next::after {
  content: '›';
  font-size: 20px;
  font-weight: bold;
  /* color: #fff; */
}

.container-carousel-newgen .swiper-button-prev::after {
  content: '‹';
  font-size: 20px;
  font-weight: bold;
  /* color: #fff; */
}

.container-carousel-newgen .swiper-button-next::after,
.container-carousel-newgen .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
}

.container-carousel-newgen .swiper-scrollbar {
    background: rgba(255, 255, 255, 0.1);
    height: 3px;
    border-radius: 2px;
}

.container-carousel-newgen .swiper-scrollbar-drag {
    background: var(--primary-gradient);
    border-radius: 2px;
}
.movie-badges {
    position: absolute;
    bottom: 0;
    left: 1rem;
    /* gap: 5px; */
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border-radius: .3rem .3rem 0 0;
    overflow: hidden;
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, .1);
}
.movie-badge {
    /* flex: 1 1; */
    gap: .2rem;
    justify-content: center;
    padding: .1rem .5rem;
    font-size: 11px;
    font-weight: 400;
}

.movie-badges .badge-episode-pd {
    background-color: hsl(270deg 59.26% 57.65% / 90%);
    color: #fff;
}
.movie-badges .badge-episode-tm {
    background-color: hsl(212.02deg 100% 46.67% / 90%);
    color: #fff;
}
.movie-badges .badge-episode-lt {
    background-color: hsl(145.96000000000004 79.46% 43.92% / 90%);
    color: #fff;
}

.quality-badge {
    position: absolute;
    top: 10px;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-blue);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-rating {
    position: absolute;
    top: 10px;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #f0d25c;
    border-radius: .33rem;
    color: #fff;
    padding: 4px 8px;
    font-weight: 500;
    font-size: 0.7rem;
}

.badge-rating:before {
    content: "IMDb";
    color: #f0d25c;
    position: relative;
    font-weight: 500;
    padding-right: 4px;
    font-size: 10px;
    line-height: 1;
}

/*  category */
a.see-more {
    background: #1f2933;
    width: 50%;
    display: inline-block;
    text-align: right;
    margin: 10px 0;
    padding: 4px 12px;
    border-radius: 20px;
    transition: .5s all;
    color: #ffffff;
    float: right;
    background: linear-gradient(to right, #151d25, #194161);
    text-decoration: none;
}

.container-carousel-category .swiper-button-next,
.container-carousel-category .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: #fff !important;
    font-size: 18px;
    margin-top: -25px;
    transition: all 0.3s ease;
    opacity: 0;
}

.container-carousel-category .swiper-button-next {
    right: 5px;
}
.container-carousel-category .swiper-button-prev {
    left: 5px;
}

.container-carousel-category:hover .swiper-button-next,
.container-carousel-category:hover .swiper-button-prev {
    opacity: 1;
}

.container-carousel-category .swiper-button-next:hover,
.container-carousel-category .swiper-button-prev:hover {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.container-carousel-category .swiper-button-next::after,
.container-carousel-category .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
}

/* anime hero */
.movie-section {
    margin: 3rem 0;
}

.movie-section h3 {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    /* display: flex; */
    align-items: center;
    gap: 10px;
}

.movie-section h3 i {
    color: var(--accent-orange);
}

/* Main Hero Swiper */
.anime-hero-swiper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    height: 500px;
}

.anime-hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    max-width: 600px;
}

.anime-title {
    /* font-size: 3rem; */
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* .anime-meta {
    margin-bottom: 1.5rem;
} */

.badge-custom {
    background: var(--accent-orange);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.anime-description {
    font-size: 1.1rem;
    line-height: 1.6;
    /* margin-bottom: 2rem; */
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.anime-hero-swiper .btn-play {
    background: var(--accent-orange);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.anime-hero-swiper .btn-play:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 25px;
    border-radius: 25px;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: #fff !important;
    font-size: 18px;
    margin-top: -25px !important;
    transition: all 0.3s ease;
    opacity: 0;
}

.anime-hero-swiper:hover .swiper-button-next,
.anime-hero-swiper:hover .swiper-button-prev {
    opacity: 0.8;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
    transform: scale(1.1);
    background: var(--primary-color);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

/* Thumbnail Swiper */
.anime-thumb-swiper {
    /* margin-top: 20px;
    padding: 10px 0; */
    position: absolute;
    /* bottom: 60px; */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;

    display: flex !important;
    justify-content: center;
    width: auto;
}

.anime-thumb-swiper .swiper-slide {
    width: 80px !important;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.anime-thumb-swiper .swiper-slide:hover {
    transform: scale(1.05);
    border-color: rgba(255, 107, 53, 0.5);
}

.anime-thumb-swiper .swiper-slide-thumb-active {
    border-color: var(--accent-orange) !important;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
    transform: scale(1.1);
}

.anime-thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.anime-thumb-swiper .swiper-slide:not(.swiper-slide-thumb-active) img {
    filter: brightness(0.6) contrast(0.8);
}

.anime-thumb-swiper .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.anime-thumb-swiper .swiper-slide:hover::after {
    opacity: 1;
}

.anime-thumb-swiper .swiper-slide::before {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.anime-thumb-swiper .swiper-slide:hover::before,
.anime-thumb-swiper .swiper-slide-thumb-active::before {
    opacity: 1;
}

/* See More Link */
.see-more {
    display: inline-flex;
    align-items: center;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: bold;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.see-more:hover {
    color: #e55a2b;
    transform: translateX(5px);
}

.see-more::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.see-more:hover::after {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .anime-title {
        font-size: 1.2rem;
    }
    
    .anime-description {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }

    .anime-thumb-swiper .swiper-slide {
        width: 60px !important;
        height: 85px;
    }
}

@media (max-width: 576px) {
    .anime-hero-swiper {
        height: 400px;
    }
    
    .anime-thumb-swiper .swiper-slide {
        width: 50px !important;
        height: 70px;
    }
}

/* backtotop */
#backToTop {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 999;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    /* background: #ff3b3b; */
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none; /* ẩn mặc định */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s, transform 0.3s;
}

#backToTop:hover {
    background: #d62828;
    transform: translateY(-3px);
}
/* nav mobie */
@media (min-width: 992px) {
    .bottom-nav {
        display: none;
    }
}
@media (max-width: 991px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
  }

  .bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    position: relative;
  }

  .bottom-nav .nav-item i {
    font-size: 20px;
  }

  .bottom-nav .nav-item .badge {
    position: absolute;
    top: 0;
    right: 5px;
    background: #b87b3f;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
  }

  .bottom-nav .nav-item.active {
    color: #b87b3f;
  }
  .btn-castfish {
    display: none;
  }
}
/* nav mobie */

/* bookmark */
#bookmark-modal li {
    list-style: none;
}

.bookmark-spinner {
    width: 100%;
    justify-items: center;
}

#bookmark-loading-spinner {
    text-align: center;
}

#bookmark-modal .modal-title {
    color: #ff4f4f;
    font-weight: 700;
}
.primary_ribbon.bookmarked {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}
.BGVGPH-bookmark-lists {
    padding: 0 12px;
    max-height: 230px;
    overflow-x: hidden;
    border-radius: 3px;
}
.BGVGPH-bookmark-lists li:last-child {
    border: none;
}
.BGVGPH-bookmark-lists li {
    padding: 10px 0;
    list-style: none;
    border-bottom: 1px solid #e5e5e5;
    display: inline-block;
    width: 100%;
    position: relative;
}
.BGVGPH-bookmark-lists li a {
    text-decoration: none;
}
.BGVGPH-bookmark-lists li .remove-bookmark {
    padding: 3px 8px 4px;
    line-height: 17px;
    position: absolute;
    right: 0;
    cursor: pointer;
    border-radius: 20px;
    color: #ff1515;
}
.BGVGPH-bookmark-lists li img {
    width: 45px;
    height: 60px;
    float: left;
    margin-right: 10px;
    border-radius: 3px;
}
.BGVGPH-bookmark-lists li .bookmark-title {
    color: #000;
    display: block;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-flex: 1;
    -webkit-box-orient: vertical;
}
.BGVGPH-bookmark-lists li .bookmark-date {
    font-size: 11px;
    color: #333;
}
.BGVGPH-bookmark-lists li .remove-bookmark,
.BGVGPH-bookmark-lists li .remove-bookmark-2 {
    padding: 3px 8px 4px;
    line-height: 17px;
    position: absolute;
    right: 0;
    cursor: pointer;
    border-radius: 20px;
    color: #ff1515;
}

.primary_ribbon.disabled {
    /* pointer-events: none; */    /* chặn click */
    opacity: 0.5;             /* làm mờ nút */
    cursor: not-allowed;      /* đổi con trỏ chuột */
    transition: opacity 0.3s ease;
}

.show_bookmark span.count {
    background: #ea3a3a;
    color: #fff;
    font-size: 9px;
    padding: 0 6px;
    border-radius: 100%;
    position: absolute;
    top: 3px;
    left: 1px;
}
/* bookmark */

/* pagination */
.pagination .page-input-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;       /* ép nằm 1 dòng */
    gap: .3rem;              /* khoảng cách nhỏ gọn */
    height: 36px;
    padding: 0 .6rem;
    border-radius: 2rem;
    background-color: #2f3346;
    color: #fff;
    font-size: 14px;
    width: auto;
    min-width: 120px;
    max-width: 100%;         /* không vượt quá màn hình */
}

/* Input */
.pagination #pageInput {
    width: auto;
    min-width: 45px;
    max-width: 70px;
    flex: 0 1 auto;          /* cho phép co giãn */
    text-align: center;
    height: 28px;
    border-radius: .3rem;
    background-color: transparent !important;
    color: #fff !important;
    font-weight: 600;
    font-size: .9em;
    padding: 0 .3rem;
    border-color: #ffffff20 !important;
}

/* /10000 */
.pagination .page-input-group .total-pages {
    white-space: nowrap;     /* không xuống dòng */
    flex-shrink: 0;          /* không bị co lại */
    font-weight: 600;
}

.page-input-group .go-btn {
    padding: 0 10px;
    height: 28px;
    border-radius: 50px !important;
    background: linear-gradient(90deg, var(--accent-orange), var(--hover-color));
    color: #fff;
    font-weight: 600;
    border: none;
    font-size: 13px;
    line-height: 1;
}

.page-input-group .go-btn:hover {
    opacity: 0.9;
}

/* filter */
.filter-groups .btn-filter {
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 8px;
}

/* breadcrumb */
.breadcrumb {
    color: var(--text-light) !important;
}
.breadcrumb-item+.breadcrumb-item::before {
    color: rgb(255 255 255 / 75%);
}
.breadcrumb-item a {
    color: var(--text-light); /* link trắng */
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--hover-color); /* hoặc màu bạn muốn khi hover (Bootstrap primary) */
}

.breadcrumb-item.active {
    color: var(--text-muted); /* màu xám nhạt cho item đang active */
}

/* movie detail */
/* .movie-detail-section img {
    width: 600px;
    height: 450px;
} */
.movie-detail-section a {
    color: inherit;
    text-decoration: none;
}

.movie-detail-section a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.movie-detail-section .movie-subtitle {
    font-size: 1.2rem;
    color: #f39c12;
    margin-bottom: 20px;
    font-style: italic;
}

.fs-14 {
  font-size: 14px !important;
}

.fs-13 {
  font-size: 13px !important;
}

/* movie detail bg */
.movie-banner {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(10, 14, 39, 0.95) 0%,
        rgba(10, 14, 39, 0.7) 20%,
        rgba(10, 14, 39, 0.3) 50%,
        rgba(10, 14, 39, 0.6) 100%
    );
}

.movie-container {
    position: relative;
    /* z-index: 10; */
    margin-top: -300px;
    /* margin-bottom: 50px; */
}

.movie-container .movie-detail-actions button {
    font-size: 12px;
}

.movie-container .movie-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.movie-container .movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.movie-container .movie-poster {
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

.movie-container .movie-poster:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.movie-container .movie-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.movie-container .movie-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 20px;
}
.movie-container .badge-rating {
    /* background: linear-gradient(135deg, #ff6b35, #ff8e35); */
    color: white;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.movie-container .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 2px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #56ab2f, #a8e6cf) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f093fb, #f5576c) !important;
    color: white !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.badge.bg-light {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.movie-container .rating-stars i {
    color: #ffd700;
    font-size: 1.2rem;
    margin-right: 2px;
}

.movie-container .movie-rating span {
    color: white;
    font-size: 16px;
}

.movie-container .btn-movie {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 5px;
}

.movie-container .btn-play {
    /* background: linear-gradient(135deg, #ff6b35, #ff8e35); */
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.movie-container .btn-play:hover {
    /* background: linear-gradient(135deg, #ff8e35, #ffab35); */
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
    color: white;
}

.movie-container .btn-outline-movie {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
}

.movie-container .btn-outline-movie:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.movie-container .movie-info-item {
    margin-bottom: 15px;
}

.movie-container .movie-info-item strong {
    color: #ff6b35;
    font-weight: 600;
}

.movie-container .genre-link, .director-link, .country-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.movie-container .genre-link:hover .badge,
.movie-container .country-link:hover .badge {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.movie-container .director-link {
    color: #e0e0e0;
}

.movie-container .director-link:hover {
    color: var(--hover-color);
}

.movie-container .related-section {
    padding: 50px 0;
}

.movie-container .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
}

.movie-container .section-title i {
    color: #ff6b35;
    margin-right: 10px;
}

.trending-tabs {
    display: flex;
    gap: 20px;
}

.trending-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.trending-tab.active,
.trending-tab:hover {
    background: linear-gradient(135deg, #ff6b35, #ff8e35);
    border-color: transparent;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .movie-banner {
        height: 50vh;
        min-height: 400px;
    }
    
    /* .movie-container {
        margin-top: -280px;
    } */
    
    .movie-container .movie-card {
        padding: 20px;
    }
    
    .movie-container .movie-title {
        font-size: 2rem;
    }
    
    .movie-container .btn-movie {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .movie-container .movie-title {
        font-size: 1.5rem;
    }
    
    .trending-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .movie-container .btn-movie {
        width: 100%;
        margin: 5px 0;
    }
}
@keyframes skeleton {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
/* Loading animation for images */
.movie-container .movie-poster {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

.last-eps {
    /* background: #243d5f; */
    background: linear-gradient(90deg, #243d5f, transparent 80%) !important;
    padding: 3px 10px 4px;
    border-radius: 3px;
    transition: .6s all;
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.last-eps:hover {
    color: var(--hover-color);
}

/*  movie actor */
.movie-info-item strong {
    display: block; /* ép chữ "Diễn viên:" xuống 1 dòng riêng */
    margin-bottom: 8px;
    color: orange;
}

.actors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* khoảng cách giữa các diễn viên */
}

.detail-actor {
    display: flex;
    flex-direction: column; /* ép tên xuống dưới */
    align-items: center;
    text-align: center;
    width: 80px;
    text-decoration: none;
    color: #1e90ff; /* xanh giống hình bạn gửi */
}

.detail-actor img {
    width: 80px;
    height: 80px;
    border-radius: 50%;   /* bo tròn */
    object-fit: cover;    /* không méo ảnh */
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.detail-actor img:hover {
  filter: brightness(70%); /* làm tối ảnh đi 30% */
}

.detail-actor span {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    word-break: break-word; /* tránh tràn chữ */
}

.detail-actor span:hover {
    color: var(--hover-color);
}

/* detail card */
.detail-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .detail-card {
        padding: 5px !important;
    }
}

.detail-card .nav-link {
    color: var(--text-light);
}

.detail-card .nav-link .nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: transparent;
    color: var(--hover-color) !important;
}

#review_form .star-rating span {
    color: #ffc107;
    font-size: 16px;
    margin: 0 2px;
    user-select: none;
    cursor: pointer;
}
#review_form .rating-stars i {
    color: #ffd700;
    font-size: 1.5rem;
    margin-right: 2px;
}

/* movie server */
.list-eps {
    list-style: none;
    padding: 5px;
    margin: 0;
}
.list-eps li {
    display: inline-block; /* Hoặc để flex-wrap như trên */
    margin-right: 5px;
}
.list-eps a {
    display: inline-block;
    padding: 6px 12px;
    background: #2d3545;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}
.list-eps a:hover {
    background: #3f4b5f;
}
.loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.4);
    z-index: 10;
}
.grid-episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
}
.grid-episodes a {
  display: flex;
  align-items: center;
  justify-content: center;
  /* gap: 6px; */
  padding: 6px 10px;
  background: #2c3240;
  color: #fff;
  border: 1px solid #444b5a;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
}
.grid-episodes a:hover {
  background: #3a4152;
}
.box-body {
    max-height: 500px;      /* giới hạn chiều cao */
    overflow-y: auto;       /* thêm scroll dọc khi vượt quá */
    overflow-x: hidden;     /* ẩn cuộn ngang cho đẹp */
    padding-right: 5px;     /* chừa khoảng chống tránh che chữ bởi scrollbar */
}
.box-body::-webkit-scrollbar {
    width: 6px;
}

.box-body::-webkit-scrollbar-track {
    background: transparent;
}

.box-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}
.matcha {
    background-color: #2cc90c !important;
    color: #fff !important;
    border-radius: 5px;
    font-weight: bold;
}

/* cmt */
.cmt-box {
    padding: .5rem;
    border-radius: .75rem;
    background-color: #ffffff10;
}
.cmt-box textarea,
.cmt-box textarea:focus,
.cmt-box textarea:hover {
    resize: none;
    border: 1px solid transparent;
    background: var(--card-bg);
    color: var(--text-light) !important;
}

.cmt-box textarea::placeholder {
    color: var(--text-muted);       /* màu xám */
    opacity: 1;        /* tránh bị mờ trên Chrome */
    font-style: italic; /* nếu muốn chữ nghiêng */
}

.cmt-box .btn-submit {
    color: var(--accent-orange) !important;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cmt-input {
    position: relative;
}
.cmt-count {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 11px;
    line-height: 1;
    color: var(--text-muted);
}
.comment-item {
    display: flex;
    /* margin-bottom: 20px; */
    background-color: #ffffff10;
}

.sub-comment {
    background-color: transparent !important;
}

.comment-item img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}
.comment-content {
    /* background-color: #ffffff10; */
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 5px;
}
.comment-content .username {
    color: #00B38F;
}
.comment-content .timestamp {
    padding: 0 5px;
    font-size: 13px;
    color: var(--text-muted);
}
.comment-content .cmt-body {
    color: #CCCCCC;
    padding: 0 0 8px 0;
    word-break: break-word;
}
.reply-box {
    margin-top: 10px;
    display: none;
}

.reply-box textarea {
    border-radius: 8px;
    width: 100%;
    padding: 10px;
    resize: none;
}

button.like-cmt,
button.reply-btn-cmt,
button.reply-btn-subcmt,
button.like-subcmt {
    all: unset;               /* xóa toàn bộ style mặc định của button */
    cursor: pointer;          /* hiển thị con trỏ bàn tay */
    display: inline-flex;     /* giữ icon và text nằm ngang */
    align-items: center;
    gap: 4px;                 /* khoảng cách icon và số */
    color: #666;              /* màu chữ */
    font-size: 14px;
}
button.like-cmt:hover,
button.reply-btn-cmt:hover,
button.reply-btn-subcmt:hover,
button.like-subcmt:hover {
    color: #e6e9ec;           /* đổi màu khi hover */
}

.submit-reply {
    color: var(--accent-orange) !important;
}

.comment-section .avatar {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .comment-section .avatar {
        width: 30px;
        height: 30px;
    }
    #comment-content {
        justify-items: center;
    }
    #comment-list {
        width: 350px;
    }
    .comment-section .avatar {
        margin-right: 0px;
    }
}

/* watch */
.jw-reset.jw-icon-rewind {
    display: none;
}
/* #jwplayer-container {
    max-height: 80vh !important;
    overflow: hidden !important;
}

#bgvgph-player-wrapper {
    max-height: 80vh !important;
    overflow: hidden !important;
} */
#jwplayer-container {
    /* max-height: 80vh !important; */
    overflow: hidden !important;
}

#bgvgph-player-wrapper {
    max-height: 100vh !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding-bottom: 0 !important; /* Loại bỏ padding-bottom gây ra chiều cao lớn */
}

/* #html-player,
#playerLoaded {
    max-height: 80vh !important;
    height: 80vh !important;
    width: 100% !important;
    position: relative !important;
} */

/* HOẶC CÁCH 3: Set chiều cao cố định cho từng loại màn hình */
@media (min-width: 1920px) {
    /* #jwplayer-container, */
    #bgvgph-player-wrapper,
    #html-player,
    #playerLoaded {
        max-height: 80vh !important; /* 16:9 của width 960px */
        height: auto !important;
    }
}

@media (min-width: 1366px) and (max-width: 1919px) {
    /* #jwplayer-container, */
    #bgvgph-player-wrapper,
    #html-player,
    #playerLoaded {
        max-height: 60vh !important;
        height: auto !important;
    }
}

/* Đảm bảo aspect ratio không bị phá vỡ */
#bgvgph-player-wrapper {
    aspect-ratio: 16 / 9 !important;
}

/* #html-player,
#playerLoaded {
    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important;
} */

/* Loading spinner vẫn hiển thị đúng */
#bgvgph-player-loader {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999 !important;
}

/* Reset padding-bottom có thể gây vấn đề */
.video-wrapper,
#bgvgph-player-wrapper {
    padding-bottom: 0 !important;
    height: auto !important;
}
/* ================== */
.watch-section {
    padding-bottom: 5rem;
    padding-top: 5rem;
    min-height: calc(100vh - 400px);
}
.watch {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1640px;
    padding: 0 20px;
    margin: 0 auto;
}
.watch.full {
    max-width: none;
    padding: 0;
}
@media screen and (max-width: 768px) {
    .watch {
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
        padding: 0;
        /* padding: 0 16px; */
    }
    .max-height-screen {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
    .jw-flag-audio-player .jw-button-container .jw-icon, .jwplayer:not(.jw-flag-small-player) .jw-button-container .jw-icon {
        flex: 1 1 0 !important;
    }
    .video-wrapper, #bgvgph-player-wrapper {
        height: 400px !important;
    }
    #html-player {
        height: 400px !important;
        /* height: 380px !important; */
    }
    #playerLoaded iframe {
        height: 380px !important;
    }

}
.player-cfg,
.iframe {
    /* width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 90vh; */
    width: 100%;
    height: auto;
    max-height: 90vh;
    aspect-ratio: unset;
}

.player-control {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-radius: 0 0 .75rem .75rem;
    height: 64px;
    gap: 1rem;
    justify-content: flex-start;
    width: 100%;
    align-items: center;
}
.player-control .control-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center; 
    justify-content: center;
    height: 100%;          
    gap: 0.5rem;             
    padding: 0 0.5rem;
}
.line-center {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
/* .player-control .plyr-ctrl-btn {
    flex: 1 1 auto;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
} */
 .player-control .plyr-ctrl-btn {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--text-muted);
    padding: .6rem .8rem;
    cursor: pointer;
    border-radius: .4rem;
    white-space: nowrap;
}
@media screen and (max-width: 768px) {
    .player-control {
        height: auto;
    }
    .player-control .control-items {
        gap: 0.3rem;
    }
    .player-control .plyr-ctrl-btn {
        font-size: 11px;
        display: inline-block;
        line-height: 17px;
        border-radius: 3px !important;
        cursor: pointer;
        padding: 4px 7px;
        color: #eee;
    }
}

.player-control .plyr-ctrl-btn:hover {
    background-color: var(--accent-orange);
    color: var(--text-light);
}
.autonext-status {
    opacity: 1;
    border: 1px solid #ffd875;
    border-radius: .2rem;
    font-size: 12px;
    line-height: 1;
    padding: .2rem;
    color: #fff;
    cursor: pointer;
    width: 28px;
    text-align: center;
}

.watch-movie-card {
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-bottom: 40px;
}

.watch-movie-card .watch-info {
    flex-shrink: 1;
    flex: 1;
}
.watch-movie-card .watch-thumbnail img {
    width: 150px;
    height: auto;
}
@media screen and (max-width: 768px) {
    .watch-movie-card {
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
        padding-bottom: 20px;
    }

    .watch-movie-card .watch-thumbnail img {
        width: 80px;
        height: auto;
    }

    .watch-movie-card .watch-info {
        font-size: 0.9rem;
    }

    .watch-movie-card .movie-meta span,
    .watch-movie-card .movie-rating span {
        font-size: 0.75rem;
    }
    .watch-movie-card .movie-meta .badge {
        padding: 5px 8px;
    }
}
.info-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1640px;
    padding: 0 20px;
    margin: 0 auto;
}
/* .info-container .movie-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.5;
}
.info-container .movie-subtitle {
    font-size: 0.9rem;
}
.info-container .badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 2px;
} */
.share-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}
.share-btn:hover {
    color: var(--hover-color);
}
.info-container .rating-stars i,
.info-container .bookmark-btn,
.info-container .share-btn {
    font-size: 16px !important;
}

.btn-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

#shareModal .facebook { background-color: #1877f2; }
#shareModal .x { background-color: #1da1f2; }
#shareModal .telegram { background-color: #0088cc; }

#shareModal .btn-circle:hover {
  transform: scale(1.2);
  transition: 0.2s;
}

#shareModal .modal-content {
    background: var(--card-bg) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important;
}
#shareModal .modal-header {
    color: var(--text-muted) !important;
}
#shareModal .btn-close {
    filter: invert(50%) sepia(0%) saturate(7500%) hue-rotate(200deg); /* ví dụ đổi màu xám */
}
.jwplayer.floating {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 320px;   /* video nhỏ */
    height: 180px;
    z-index: 1;     /* thấp hơn input */
}
#resumeModal {
    color: #000;
}
.bgvgph-toggle-light {
    background-size: 100px 19px;
    background-repeat: no-repeat;
    background-position: center center;
    height: 30px;
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}
.jw-logo-bar .player-tooltip, .bgvgph-toggle-light .player-tooltip, .bgvgph-resize-bar .player-tooltip {
    display: none;
}
.jw-logo-bar .player-tooltip, .bgvgph-toggle-light .player-tooltip, .bgvgph-resize-bar .player-tooltip {
    background: #000;
    font-size: 11px;
    bottom: 100%;
    color: #fff;
    display: block;
    left: -25px;
    margin-bottom: 15px;
    opacity: 0;
    padding: 5px 10px;
    line-height: 24px;
    pointer-events: none;
    position: absolute;
    -webkit-transform: translateY(10px);
    -moz-transform: translateY(10px);
    -ms-transform: translateY(10px);
    -o-transform: translateY(10px);
    transform: translateY(10px);
    -webkit-transition: all .25s 
ease-out;
    -moz-transition: all .25s ease-out;
    -ms-transition: all .25s ease-out;
    -o-transition: all .25s ease-out;
    transition: all .25s 
ease-out;
    -webkit-box-shadow: 2px 2px 6px #000;
    -moz-box-shadow: 2px 2px 6px #000;
    -ms-box-shadow: 2px 2px 6px #000;
    -o-box-shadow: 2px 2px 6px #000;
    box-shadow: 2px 2px 6px #000;
}

.person-container .container-fluid {
    max-width: 1640px;
}

.person-container .actor-thumb {
    width: 160px;
    height: 160px;
    border-radius: 25%;
    overflow: hidden;
}

.person-container .actor-thumb img {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

.person-container .actor-info {
    /* justify-items: center; */
    border-right: 1px solid #ffffff10
}

.person-container .actor-info-item span {
    color: var(--text-muted);
}
@media screen and (max-width: 1120px) {
    .person-container .actor-info {
        justify-items: center;
        border-bottom: solid 1px #ffffff10 ;
    }
}

/* profile */
.profile-container .container-fluid {
    max-width: 1640px;
}

.profile-container .text-muted {
    color: var(--text-muted) !important;
}

.profile-container .sidebar {
    background-color: var(--sidebar-bg);
    /* min-height: 100vh; */
    border-radius: 15px;
    padding: 20px 0;
}

.profile-container .sidebar-item {
    padding: 12px 20px;
    margin: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.profile-container .sidebar-item:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.profile-container .sidebar-item.active {
    background-color: var(--accent-yellow);
    color: #000;
}

.profile-container .profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-container .profile-letter {
    color: white;
    font-weight: bold;
    font-size: 2rem;
}

.profile-container .profile-mail {
    color: var(--text-muted);
}

.profile-container .profile-info {
    background-color: var(--sidebar-bg);
    border-radius: 15px;
    padding: 25px;
}

.profile-container .form-control {
    background-color: var(--bg-darker);
    border: 1px solid #444;
    color: var(--text-primary);
    border-radius: 8px;
}

.profile-container .form-control:focus {
    background-color: var(--bg-darker);
    border-color: var(--accent-yellow);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(230, 164, 34, 0.25);
}

.profile-container .btn-update {
    background-color: var(--accent-yellow);
    color: #000;
    font-weight: 600;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
}

.profile-container .btn-update:hover {
    background-color: #d4941e;
    color: #000;
}

.profile-container .movie-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.profile-container .movie-card:hover {
    transform: scale(1.05);
}

.profile-container .movie-poster {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.profile-container .movie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 15px;
    color: white;
}

.profile-container .remove-btn,
.profile-container .btn-rm-history {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-container .remove-btn:hover,
.profile-container .btn-rm-history:hover {
    background: rgba(255,0,0,0.8);
}

.profile-container .content-header {
    /* border-bottom: 1px solid #333; */
    padding-bottom: 15px;
    /* margin-bottom: 30px; */
}

.profile-container .tab-buttons {
    border-bottom: 1px solid #333;
    margin-bottom: 25px;
}

.profile-container .tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    margin-right: 20px;
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease;
}

.profile-container .tab-btn.active {
    color: var(--text-primary);
    background-color: var(--accent-yellow);
    color: #000;
}

.profile-container .user-profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.profile-container .avatar-upload {
    position: relative;
    cursor: pointer;
}

.profile-container .avatar-upload:hover .avatar-overlay {
    opacity: 1;
}

.profile-container .avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-container .password-change {
    margin-top: 20px;
    font-size: 14px;
}

.profile-container .password-change a {
    color: var(--accent-yellow);
    text-decoration: none;
}

.profile-container .password-change a:hover {
    text-decoration: underline;
}

.pass_show {
    position: relative;
}
.pass_show .ptxt {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 1;
    color: #f36c01;
    transform: translateY(-50%); /* canh giữa theo chiều dọc */
    cursor: pointer;
    transition: .3s ease all;
}

.profile-favorit .save-info  {
    align-items: center;
    justify-items: center;
    padding: 5px;
}
.profile-favorit a {
    color: inherit;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.profile-favorit button {
    z-index: 2;
}
.profile-favorit .name,
.profile-favorit .org_name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;        
}

.profile-favorit .save-info .name {
    color: var(--text-light);
    font-size: 0.9rem;
}
.profile-favorit .save-info .org_name {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.footer .text-muted {
    color: var(--text-muted) !important;
}

/* page */
.page_content {
    padding-top: 20px;
    color: var(--text-muted);
}

/* ads */
.ads-banner {
    text-align: center; 
    /* margin: 10px 0; */
}
.ads-banner .textwidget {
    justify-items: center;
}
/* .ads-banner .ads {
    width: 728px;
    height: 81px;
} */
/* .ads-banner img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: contain;
} */
@media (max-width: 768px) {
  .ads-banner img {
    height: auto !important; /* override mọi inline height */
  }
}

.banner-catfish {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0;
    /* flex-direction: column; */
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sticky-x-button {
    position: absolute;
    top: -15px;
    cursor: pointer;
    color: #fff;
    background: var(--theme-color, red);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    z-index: 1000;
}

@media (max-width: 991px) {
    .banner-catfish {
        bottom: 60px;
    }
}

#aff-button {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 99999;
    display: block;
}

.aff-menu {
    width: 100px;
}

.aff-menu {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
}

.aff-menu img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aff-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: black;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}