/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Hot Label Styles for Movie Posters */
.hot-label {
    position: absolute;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    animation: hotPulse 2s infinite;
    white-space: nowrap;
}

.hot-top-left {
    top: 8px;
    left: 8px;
}

.hot-top-right {
    top: 8px;
    right: 8px;
}

.hot-bottom-left {
    bottom: 8px;
    left: 8px;
}

.hot-bottom-right {
    bottom: 8px;
    right: 8px;
}

@keyframes hotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced movie hover effects */
.img-movie {
    position: relative;
    overflow: hidden;
}

.img-movie::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    z-index: 1;
}

.img-movie:hover::before {
    background: rgba(0,0,0,0.1);
}

.img-movie:hover .hot-label {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

html, body{
    overflow: hidden;
    overflow-y: scroll;
}

.elementor-location-footer{
	/*display: none;*/
}

@media(min-width:768px){
    #home-search,
    #home-movies{
    	/*display: none;*/
    }
}

.img-movie{
    display: block;
    line-height: 0;
    overflow: hidden;
    border-radius: 16px;
}

.img-movie img{
    width: 100%;
    height: 360px!important;
    object-fit: cover;
    transform: scale(1);
    transition: all .3s ease-in-out;
}

.img-movie.rap img{
    height: 400px!important;
}

.img-movie img:hover{
    transform: scale(1.05);
}

.tt-movie{
    height: 48px;
    font-size: 18px;
    line-height: 24px;
}

.tt-movie:hover{
    color: #642C24;
}

.two-line{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Number of lines to show */
    -webkit-box-orient: vertical;
}

.mpaa{
    position: absolute;
    top: 12px;
    right: 12px;
    background: #eb7801;
    color: #fff;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.tt-rap{
    font-size: 28px;
    font-weight: 600;
}

.elementor-swiper-button-next,
.elementor-swiper-button-prev{
	width: 30px;
	height: 30px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
	z-index: 123;
}

/* ============================================
   MOVIES SLIDER STYLES - Phim Đang Chiếu & Sắp Chiếu
   ============================================ */

/* Slider Section */
.movies-slider-section {
    padding: 40px 0;
    background: #141414;
}

.movies-slider-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Slider Header */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.slider-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: #e5e5e5;
    margin: 0;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.slider-header h2 .title-icon {
    margin-right: 10px;
    font-size: 32px;
}

/* Navigation Buttons */
.slider-nav-buttons {
    display: flex;
    gap: 10px;
}

.slider-nav-buttons .swiper-button-prev,
.slider-nav-buttons .swiper-button-next {
    position: static;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    margin: 0;
    transition: all 0.3s ease;
}

.slider-nav-buttons .swiper-button-prev:after,
.slider-nav-buttons .swiper-button-next:after {
    font-size: 16px;
    font-weight: bold;
}

.slider-nav-buttons .swiper-button-prev:hover,
.slider-nav-buttons .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-nav-buttons .swiper-button-prev.swiper-button-disabled,
.slider-nav-buttons .swiper-button-next.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Movie Card in Slider */
.movie-card-slider {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.movie-poster-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 12px;
}

.movie-card-slider .img-movie {
    display: block;
    line-height: 0;
    overflow: hidden;
    border-radius: 16px;
}

.movie-card-slider .img-movie img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
    border-radius: 16px;
}

.movie-card-slider .img-movie:hover img {
    transform: scale(1.05);
}

/* Movie Info */
.movie-card-slider .movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.movie-card-slider .movie-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.movie-card-slider .movie-title a {
    color: #e5e5e5;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.movie-card-slider .movie-title a:hover {
    color: #fff;
}

.movie-card-slider .movie-release {
    font-size: 14px;
    color: #a3a3a3;
}

/* MPAA Rating trong Slider - Giống shortcode cũ */
.movie-card-slider .mpaa {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #eb7801;
    color: #fff;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .slider-header h2 {
        font-size: 24px;
    }
    
    .slider-header h2 .title-icon {
        font-size: 28px;
    }
    
    .slider-nav-buttons {
        width: 100%;
        justify-content: flex-end;
    }
    
    .movie-card-slider .img-movie img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .slider-header h2 {
        font-size: 20px;
    }
    
    .movie-card-slider .img-movie img {
        height: 220px;
    }
    
    .slider-nav-buttons .swiper-button-prev,
    .slider-nav-buttons .swiper-button-next {
        width: 35px;
        height: 35px;
    }
      .slider-nav-buttons .swiper-button-prev:after,
    .slider-nav-buttons .swiper-button-next:after {
        font-size: 14px;
    }
}

/* ============================================
   SEARCH BAR STYLES - Thanh Tìm Kiếm
   ============================================ */

/* Search Bar Container */
.container.mt-4.mb-5.p-3.shadow.bg-white.rounded {
    background: #1a1a1a !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}

/* Custom Select Styles - Dark Theme */
.custom-select {
    background-color: #2a2a2a;
    border: 1px solid #404040;
    color: #e5e5e5;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.custom-select:hover {
    border-color: #666;
    background-color: #333;
}

.custom-select:focus {
    border-color: #e50914;
    background-color: #2a2a2a;
    color: #e5e5e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.custom-select:disabled {
    background-color: #1a1a1a;
    border-color: #333;
    color: #6b6b6b;
    cursor: not-allowed;
}

.custom-select option {
    background-color: #2a2a2a;
    color: #e5e5e5;
    padding: 10px;
}

/* Search Button */
.btn.btn-primary.w-100 {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    justify-content: center;
}

.btn.btn-primary.w-100:hover {
    background: linear-gradient(135deg, #f40612 0%, #d40813 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

.btn.btn-primary.w-100:active {
    transform: translateY(0);
}

/* Search Form Row Spacing */
#searchBarForm .row {
    gap: 15px;
}

#searchBarForm .col {
    padding: 0 8px;
}

/* Responsive Adjustments for Search Bar */
@media (max-width: 768px) {
    #searchBarForm .row {
        gap: 10px;
    }
    
    #searchBarForm .col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .custom-select {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .btn.btn-primary.w-100 {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ============================================
   NEWS CINEMA GRID STYLES - Tin Điện Ảnh
   ============================================ */

/* News Section */
.news-cinema-section {
    padding: 40px 0;
    background: #141414;
}

.news-cinema-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* News Header */
.news-header {
    margin-bottom: 30px;
}

.news-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: #e5e5e5;
    margin: 0;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.news-header h2 .title-icon {
    margin-right: 10px;
    font-size: 32px;
}

/* News Grid 5 Columns */
.news-grid-5col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* News Card */
.news-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* News Image */
.news-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #2a2a2a;
}

.img-news {
    display: block;
    line-height: 0;
    overflow: hidden;
}

.img-news img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .img-news img {
    transform: scale(1.05);
}

/* Date Badge */
.news-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #642C24;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(201, 33, 39, 0.4);
    z-index: 5;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.news-date-badge .day {
    font-size: 20px;
    display: block;
}

.news-date-badge .month {
    font-size: 11px;
    text-transform: uppercase;
    display: block;
}

/* News Content */
.news-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.news-title a {
    color: #e5e5e5;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #fff;
}

.news-excerpt {
    font-size: 14px;
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.news-excerpt.three-line {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* News Meta */
.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #333;
    margin-top: auto;
}

.news-date {
    font-size: 13px;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i {
    font-style: normal;
}

/* News Pagination */
.news-pagination {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #333;
    text-align: center;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 6px;
    color: #e5e5e5;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-pagination .page-numbers:hover {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
    transform: translateY(-2px);
}

.news-pagination .page-numbers.current {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
    cursor: default;
}

.news-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.news-pagination .page-numbers.dots:hover {
    background: transparent;
    transform: none;
}

.news-pagination .prev,
.news-pagination .next {
    font-weight: bold;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .news-pagination {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .news-pagination .page-numbers {
        padding: 8px 12px;
        font-size: 14px;
        margin: 0 2px;
    }
}

@media (max-width: 480px) {
    .news-pagination .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
        margin: 2px 1px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .news-grid-5col {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-grid-5col {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .news-header h2 {
        font-size: 24px;
    }
    
    .news-header h2 .title-icon {
        font-size: 28px;
    }
    
    .img-news img {
        height: 200px;
    }
    
    .news-title {
        font-size: 15px;
    }
    
    .news-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-cinema-section {
        padding: 30px 0;
    }
    
    .news-header h2 {
        font-size: 20px;
    }
    
    .img-news img {
        height: 180px;
    }
    
    .news-content {
        padding: 12px;
    }
    
    .news-date-badge {
        padding: 6px 8px;
    }
    
    .news-date-badge .day {
        font-size: 16px;
    }
    
    .news-date-badge .month {
        font-size: 10px;
    }
}

/* No posts message */
.news-cinema-section .no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #a3a3a3;
    font-size: 16px;
}

/* News Grid Loading State */
.news-grid-5col.loading {
    position: relative;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.news-grid-5col.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top: 4px solid #e50914;
    border-radius: 50%;
    animation: newsSpinner 1s linear infinite;
    z-index: 100;
}

@keyframes newsSpinner {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.news-pagination.loading {
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Pagination clickable */
.news-pagination a.page-numbers {
    cursor: pointer;
}

.news-pagination a.page-numbers:active {
    transform: translateY(0);
}


/* ====================================
   AI Form Dark Theme
   Class: .de-xuat-phim-ai-form-dark
   ==================================== */

/* Override default white background with dark theme */
.de-xuat-phim-ai-form-dark.bg-white {
    background: #1a1a1a !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.de-xuat-phim-ai-form-dark .card {
    background: #1a1a1a !important;
}

.de-xuat-phim-ai-form-dark .card-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%) !important;
    border-bottom: 2px solid #e50914 !important;
    padding: 1.5rem 2rem;
}

.de-xuat-phim-ai-form-dark .card-title {
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.de-xuat-phim-ai-form-dark .card-body {
    background: #1a1a1a !important;
    padding: 2rem;
}

/* Input field dark theme */
.de-xuat-phim-ai-form-dark .form-control {
    background: #2a2a2a !important;
    border: 2px solid #3a3a3a !important;
    color: #e5e5e5 !important;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.de-xuat-phim-ai-form-dark .form-control:focus {
    background: #2f2f2f !important;
    border-color: #e50914 !important;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1) !important;
    color: #fff !important;
}

.de-xuat-phim-ai-form-dark .form-control::placeholder {
    color: #888 !important;
}

/* Button dark theme - Netflix style */
.de-xuat-phim-ai-form-dark .btn-primary {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%) !important;
    border: none !important;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.de-xuat-phim-ai-form-dark .btn-primary:hover {
    background: linear-gradient(135deg, #f40612 0%, #c50811 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4) !important;
}

.de-xuat-phim-ai-form-dark .btn-primary:active {
    transform: translateY(0) !important;
}

/* Loading spinner dark theme */
.de-xuat-phim-ai-form-dark .spinner-border {
    border-color: #3a3a3a !important;
    border-right-color: #e50914 !important;
}

.de-xuat-phim-ai-form-dark #ai-loading-form {
    color: #e5e5e5;
}

/* Results styling */
.de-xuat-phim-ai-form-dark #ai-result-list-form {
    color: #e5e5e5;
}

.de-xuat-phim-ai-form-dark #ai-result-list-form .movie-item {
    background: #2a2a2a !important;
    border-left: 4px solid #e50914 !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease !important;
}

.de-xuat-phim-ai-form-dark #ai-result-list-form .movie-item:hover {
    background: #2f2f2f !important;
    transform: translateX(5px);
}

.de-xuat-phim-ai-form-dark #ai-result-list-form .movie-title {
    color: #fff !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.de-xuat-phim-ai-form-dark #ai-result-list-form .movie-title a {
    color: #fff !important;
    text-decoration: none !important;
}

.de-xuat-phim-ai-form-dark #ai-result-list-form .movie-title a:hover {
    color: #e50914 !important;
}

.de-xuat-phim-ai-form-dark #ai-result-list-form .movie-genre {
    color: #e50914 !important;
    font-size: 0.9rem;
}

.de-xuat-phim-ai-form-dark #ai-result-list-form .movie-desc {
    color: #b8b8b8 !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Movie results grid */
.de-xuat-phim-ai-form-dark .ai-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.de-xuat-phim-ai-form-dark .movie-item-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.de-xuat-phim-ai-form-dark .movie-item-poster {
    flex: 0 0 120px;
}

.de-xuat-phim-ai-form-dark .movie-item-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.de-xuat-phim-ai-form-dark .movie-item-info {
    flex: 1;
}

.de-xuat-phim-ai-form-dark .movie-link-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.de-xuat-phim-ai-form-dark .movie-link-btn:hover {
    background: linear-gradient(135deg, #f40612 0%, #c50811 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

/* Responsive for AI form dark */
@media (max-width: 768px) {
    .de-xuat-phim-ai-form-dark .card-header {
        padding: 1rem 1.5rem !important;
    }
    
    .de-xuat-phim-ai-form-dark .card-title {
        font-size: 1.2rem !important;
    }
    
    .de-xuat-phim-ai-form-dark .card-body {
        padding: 1.5rem !important;
    }
    
    .de-xuat-phim-ai-form-dark .movie-item-content {
        flex-direction: column;
    }
    
    .de-xuat-phim-ai-form-dark .movie-item-poster {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}