* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    background-color: #10242b; 
    color: #ffffff;            
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.khung-chua {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 100px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.dau-trang {
    background-color: rgba(33, 42, 40, 0.95);
    border-bottom: 1px solid #2d2d2d;
    position: sticky;
    top: 0;
    z-index: 100; 
}

.thanh-menu {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 8px;
}

.logo {
    display: flex;
    align-items: center; 
    gap: 8px;           
    font-size: 24px;
    font-weight: bold;
    color: #7e6e2a;
    letter-spacing: 1px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.logo img {
    height: 36px;        
    width: auto;         
    object-fit: contain;
    border: 1px solid;
    border-radius: 6px;
}

.logo .chu-nho {
    color: #ffffff;
    font-size: 17px;
    font-weight: 50;
    font-family: Arial, sans-serif;
}

.menu-chinh {
    display: flex;
    gap: 30px;
}

.menu-chinh a {
    font-weight: bold;
    font-size: 15px;
    color: #ffffff;
    padding: 8px 0;
    position: relative; 
    transition: color 0.3s ease;
}


.menu-chinh a:hover,
.menu-chinh a.kich-hoat {
    color: #7e6e2a !important;
}

.menu-chinh a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #7e6e2a;
    transition: width 0.3s ease; 
}

.menu-chinh a:hover::after,
.menu-chinh a.kich-hoat::after {
    width: 100%;
}

.tai-khoan {
    font-size: 14px;
    color: #888888;
}

.tai-khoan a:hover {
    color: #ffffff;
}

.tai-khoan span {
    margin: 0 10px;
}

.thanh-chuyen-tab {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    border-bottom: 1px solid #2d2d2d;
}

.nut-tab {
    background: none;
    border: none;
    color: #888888;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 30px;
    cursor: pointer;
    transition: 0.3s;
}

.nut-tab:hover, .nut-tab.active {
    color: #7e6e2a;
    border-bottom: 3px solid #7e6e2a;
}

.noidung-chinh {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    padding-bottom: 40px;
}

.danh-sach-phim {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;                            
    width: 100%;
}

@media (min-width: 992px) {
    .danh-sach-phim {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

.khung-bo-loc {
    width: 100%;
    max-width: 1140px;
    margin: 25px auto 15px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.thanh-tim-kiem-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: rgba(33, 42, 40, 0.6);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
}

.o-nhap-tim-kiem, .hop-chon-the-loai {
    position: relative;
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.icon-tim-kiem, .icon-the-loai {
    position: absolute;
    left: 15px;
    color: #888888;
    font-size: 18px;
    z-index: 5;
}

.o-nhap-tim-kiem input {
    width: 100%;
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 12px 15px 12px 45px;
    font-size: 14px;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.hop-chon-the-loai select {
    width: 100%;
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 12px 15px 12px 45px;
    font-size: 14px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.o-nhap-tim-kiem input:focus,
.hop-chon-the-loai select:focus {
    border-color: #EF4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.nut-loc-phim {
    background-color: #EF4444;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nut-loc-phim:hover {
    background-color: #dc2626;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.the-phim {
    background-color: #1a3139;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%; 
    height: 100%;
}

.khung-anh {
    width: 100%;         
    height: 340px;       
    position: relative;
    overflow: hidden;    
}

.khung-anh img {
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover;       
    display: block;
}

.the-phim:hover .khung-anh img {
    transform: scale(1.05);
}

.nhan-tuoi {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.p-green { background-color: #10B981; }
.c18-red { background-color: #EF4444; }
.c13-blue { background-color: #3B82F6; }
.c16-orange { background-color: #F59E0B; }

/* Lớp phủ hover thông tin tóm tắt poster */
.lop-phu {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.the-phim:hover .lop-phu {
    opacity: 1;
}

.lop-phu h3 {
    color: #EF4444;
    margin-bottom: 10px;
    font-size: 18px;
}

.lop-phu p {
    font-size: 13px;
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.4;
}

.lop-phu a {
    font-size: 12px;
    color: #ffffff;
    background-color: #EF4444;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: bold;
}

/* Thông tin dưới ảnh */
.thong-tin-phim h3 {
    font-size: 15px;
    font-weight: bold;
    margin-top: 12px;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.the-phim:hover .thong-tin-phim h3 {
    color: #EF4444;
}

.chi-tiet-ngan {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #888888;
    margin-top: 5px;
    align-items: center;
    margin-left: 10px;
}

/* Nút đặt vé */
.nut-dat-ve {
    width: 100%;
    background-color: #EF4444;
    color: white;
    border: none;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.nut-dat-ve:hover {
    background-color: #DC2626;
}

.chan-trang {
    background-color: rgba(33, 42, 40, 0.95);
    border-top: 1px solid #2d2d2d;
    padding: 30px 0;
    margin-top: 60px;
    font-size: 12px;
    color: #d8d6d6;
}

.noi-dung-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 20px;
}

.ten-cong-ty {
    font-weight: bold;
    color: #d8d6d6;
    font-size: 14px;
    margin-bottom: 5px;
}

.mang-xa-hoi a {
    font-size: 20px;
    margin-left: 15px;
    color: #d8d6d6;
}

.mang-xa-hoi a:hover {
    color: #ffffff;
}
.an-di-cho-khac {
    display: none !important;
}

.user-logged-in {
    font-size: 14px;
    color: #ffffff;
}

.user-logged-in i {
    color: #EF4444;
    margin-right: 4px;
}

#btn-dang-xuat {
    background-color: transparent;
    color: #888888;
    border: 1px solid #444444;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btn-dang-xuat:hover {
    background-color: #EF4444;
    color: #ffffff;
    border-color: #EF4444;
}

.khung-quang-cao {
    position: relative;
    width: 100%;
    height: 450px;           
    overflow: hidden;         
    background-color: #000;
    margin-bottom: 30px;     
}

.danh-sach-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;              
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;              
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;       
    object-position: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.9) 20%, rgba(15, 15, 15, 0.2) 100%);
    z-index: 2;
}

.thong-tin-quang-cao {
    position: absolute;
    bottom: 60px;
    left: 10%;
    z-index: 3;
    color: #fff;
    max-width: 600px;
}

.thong-tin-quang-cao h2 {
    font-size: 36px;
    color: #EF4444;         
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.thong-tin-quang-cao p {
    font-size: 16px;
    color: #e0e0e0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.nut-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nut-slide:hover {
    background: #EF4444;
    color: white;
}

.nut-trai { left: 20px; }
.nut-phai { right: 20px; }

.cac-cham-dinh-vi {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.cham {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cham.active, .cham:hover {
    background-color: #EF4444;
    transform: scale(1.2);
}
.an-di-cho-khac {
    display: none !important;
}

#vung-user-logged {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

#username-display {
    font-weight: bold;
    color: #f5b50a;
}

#vung-user-logged {
    display: none; 
    align-items: center; 
    gap: 12px !important; 
}

.ten-user {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#btn-dang-xuat {
    background: linear-gradient(135deg, #ff4d4d, #cc0000); 
    color: #ffffff !important; 
    border: none;
    padding: 6px 14px; 
    font-size: 13px;
    font-weight: 600; 
    border-radius: 20px; 
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(255, 77, 77, 0.2); 
    display: inline-flex;
    align-items: center;
    gap: 6px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

#btn-dang-xuat i {
    color: #ffffff !important; 
    font-size: 15px; 
}

#btn-dang-xuat:hover {
    background: linear-gradient(135deg, #ff6666, #e60000); 
    box-shadow: 0 6px 12px rgba(255, 77, 77, 0.4); 
    transform: translateY(-1.5px); 
}

#btn-dang-xuat:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 77, 77, 0.2);
}