.site-header { background:#1a1a1a; border-bottom:1px solid #2c2c2c; position:sticky; top:0; z-index:1000; }
.nav-container { display:flex; justify-content:space-between; align-items:center; padding:8px 20px; }
.nav-left { display:flex; align-items:center; gap:15px; }
.nav-right { display:flex; align-items:center; gap:15px; }
.nav-logo img { height:40px; }
.nav-toggle { display:none; font-size:22px; color:#fff; cursor:pointer; }

/* ==== MENU PC ==== */
.nav-menu ul { display:flex; gap:18px; list-style:none; margin:0; padding:0; }
.nav-menu a { color:#ddd; font-weight:500; padding:10px 6px; text-decoration:none; transition:.25s; }
.nav-menu a:hover { color:#ff4444; }
.has-submenu { position:relative; }
.nav-submenu { position:absolute; top:100%; left:0; background:#222; border-radius:4px;
    opacity:0; transform:translateY(10px); visibility:hidden; transition:.3s; padding:15px; min-width:600px; }
.nav-submenu-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px 20px; }
.nav-submenu a { display:block; padding:6px 8px; color:#ccc; font-size:14px; border-radius:4px; }
.nav-submenu a:hover { background:#333; color:#fff; }
.has-submenu:hover .nav-submenu { opacity:1; transform:translateY(0); visibility:visible; margin-top:30px;}

/* ==== SEARCH PC ==== */
.nav-search { position:relative; }
.nav-search input { padding:8px 12px; border-radius:4px; border:none; background:#2a2a2a; color:#fff; width:200px; transition:.25s; }
.nav-search input:focus { width:260px; background:#333; }
.nav-search button { position:absolute; right:8px; top:50%; transform:translateY(-50%); border:none; background:none; color:#aaa; }
#searchResultPc { position:absolute; top:100%; left:0; background:#222; width:100%; border-radius:0 0 6px 6px; max-height:300px; overflow-y:auto; z-index:2000; }
#searchResultPc a { display:flex; padding:8px; border-bottom:1px solid #333; color:#fff; text-decoration:none; }
#searchResultPc a:hover { background:#333; }

/* ==== DRAWER ==== */
.drawer-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); z-index:1500; opacity:0; visibility:hidden; transition:.3s; }
.drawer-overlay.active { opacity:1; visibility:visible; }
.drawer-panel { position:fixed; top:0; left:-80%; width:80%; height:100%; background:#262a34; z-index:2000; transition:left .3s; overflow-y:auto; }
.drawer-panel.active { left:0; }
.drawer-box { padding:20px; }
.drawer-close { font-size:22px; color:#fff; cursor:pointer; display:block; text-align:right; margin-bottom:15px; }

/* Item chính */
.drawer-nav > a,
.drawer-title {
    display:block;
    padding:12px 10px;
    color:#fff;
    font-size:16px;
    font-weight:500;
    text-decoration:none;
    border-bottom:1px solid transparent;
    cursor:pointer;
}

/* Menu con (ẩn mặc định) */
.drawer-list {
    max-height:0;
    overflow:hidden;
    transition:max-height 0.3s ease;
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:10px;
    margin-bottom:0;
}
.drawer-list a {
    display:block;
    text-align:center;
    border:1px solid #444;
    border-radius:8px;
    font-size:14px;
    color:#ddd;
    transition:.2s;
}
.drawer-list a:hover { background:#ff4444; color:#fff; border-color:#ff4444; }

/* Khi active thì xổ ra */
.drawer-title.active + .drawer-list {
   max-height: 500px;   /* chiều cao tối đa */
    overflow-y: auto;    /* thêm thanh cuộn dọc */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-right: 5px;  /* tránh chữ dính vào thanh cuộn */
}
.drawer-list::-webkit-scrollbar {
    display: none; /* Ẩn scrollbar trên Chrome, Safari */
}

/* tuỳ chọn: style scrollbar cho đẹp */
.drawer-list::-webkit-scrollbar {
    width: 6px;
}
.drawer-list::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}
.drawer-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}
.drawer-title i { float:right; transition:transform 0.3s; }
.drawer-title.active i { transform:rotate(180deg); }

/* ==== SEARCH OVERLAY ==== */
.nav-search-toggle { font-size:18px; color:#fff; cursor:pointer; }
.search-overlay { display:none; position:fixed; top:0; left:0; right:0; background:#111; padding:10px; z-index:3000; border-bottom:1px solid #333; }
.search-overlay.active { display:block; }
.search-box { position:relative; display:flex; align-items:center; }
.search-box input { flex:1; padding:10px 14px; border-radius:30px; border:1px solid #333; background:#1e1e1e; color:#fff; font-size:15px; }
.search-box .search-close { position:absolute; right:14px; font-size:18px; color:#f00; cursor:pointer; }
#searchResultOverlay { margin-top:8px; background:#1c1c1c; border-radius:6px; max-height:250px; overflow-y:auto; }
#searchResultOverlay a { display:flex; padding:8px; border-bottom:1px solid #333; color:#fff; text-decoration:none; font-size:14px; }
#searchResultOverlay a:hover { background:#333; }

/* ==== RESPONSIVE ==== */
@media (max-width:768px){
  .pc-show { display:none; }
  .mobile-show { display:block; }
  .nav-toggle { display:block; }
}
@media (min-width:769px){
  .mobile-show { display:none; }
}
@media (min-width: 769px) {
 .nav-right {
    position: relative;
    left: -300px; 

}
}
@media (min-width: 1930px) {
    .nav-right {
        position: relative;
        left: -700px;

    }
}
.carousel-container {
  margin-top: 10px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

/* Header row */
.header-row {
  position: relative;
  z-index: 9999; /* đảm bảo luôn nổi */
}

/* Tabs */
.tabs .tab-btn {
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  background: transparent;
  color: #e5e7eb;
  border: 1px solid #6b7280;
  cursor: pointer;
  transition: all 0.3s;
}
.tabs .tab-btn:hover {
  background: #374151;
  color: #fff;
}
.tabs .tab-btn.active {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  font-weight: 600;
}

.tab-content.hidden { display: none; }

/* Grid phim */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  justify-content: center;
}
@media (max-width: 1024px) {
  .movie-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .movie-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Movie item */
.movie-item { text-align: center; }

.image-container {
  position: relative;
  width: 200px;
  height: 300px;
  margin: 0 auto;
  border-radius: 0.5rem;
  overflow: hidden;
}
.image-container img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.quality, .language {
  position: absolute;
  padding: 2px 6px;
  font-size: 0.75rem;
  color: #fff;
  border-radius: 0.25rem;
}
.quality { top: 4px; left: 4px; background: #dc2626; }
.language { bottom: 4px; right: 4px; background: #1f2937; }

.movie-item h3 {
  margin-top: 0.5rem;
  color: #fff;
  font-size: 1rem;
}
.movie-item p {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.this-desc-title {

    font-size: 50px;
   
}
    .qualityz {
        display: inline-block;
        padding: 4px 10px;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        background: linear-gradient(135deg, #ff3c3c, #ff7b00);
        /* đỏ cam nổi bật */
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        text-transform: uppercase;
        /* viết hoa */
        letter-spacing: 1px;
    }



    .lang {
        display: inline-block;
        padding: 4px 10px;
        font-size: 13px;
        font-weight: 600;
        font-family: 'Poppins', sans-serif;

        color: #fff;
        background: #1e90ff;
        /* xanh dương chuẩn */
        border-radius: 20px;
        /* bo tròn giống nhãn */

        text-transform: uppercase;
        /* viết hoa */
        letter-spacing: 1px;
        /* giãn chữ nhẹ */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    }
.watch-btn {
display: inline-block;
background: linear-gradient(135deg, #ff4b2b, #ff416c);
color: #fff;
font-weight: bold;
font-size: 10px;
padding: 10px 22px;
border-radius: 30px;
cursor: pointer;
text-align: center;
transition: 0.3s ease;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
margin-top:10px;
}
.watch-btn:hover {
background: linear-gradient(135deg, #ff416c, #ff4b2b);
transform: scale(1.05);
box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}


    .slide-a.slide-b.overflow.slid-d.rel {
        max-width: 70%;
        margin: 0 auto;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        
    }

    @media (max-width: 768px) {
        .slide-a.slide-b.overflow.slid-d.rel {
            max-width: 100%;
            aspect-ratio: auto;
        }
            .slide-b .slide-desc-box {
            margin-top: -10px;
            }
            .slide-desc-box {
                margin-top: -50px;

            }
            .this-desc-title{
                font-size:35px;
            }
        
        .slid-d .hader1 .slide-time-bj{
           
            margin-top: 8px !important;
            }
    
        }
    @media (min-width: 1024px) {
    .slide-b .slide-desc-box {
    margin-top: 200px;
    }
    }
    
        /* Container */
        .carousel-container {
            max-width: 1200px;
            margin: 0 auto 2rem auto;
            padding: 0 10px;
        }

        /* Header + nút xem thêm */
        .header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 10px 0;
        }

        .header-row h2 {
            font-family: 'DM Sans', sans-serif;
            color: #fff;
            display: flex;
            align-items: center;
            margin: 0;
            font-size:30px;
        }

        .header-row h2 i.text-color-main {
            display: inline-block;
            transform: rotate(90deg);
            margin-right: 0.5rem;
            color: #e50914;
        }

        .see-more a {
            display: inline-block;
            padding: 0.4rem 1rem;
            background: #e50914;
            color: #fff;
            font-weight: 600;
            border-radius: 0.3rem;
            text-decoration: none;
            font-size: 0.9rem;
            transition: background 0.3s ease;
        }

        .see-more a:hover {
            background: #b20710;
        }

        /* Grid layout */
        .movie-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            /* PC */
            gap: 5px;
            justify-content: center;
            row-gap: 25px;
        }

        @media (max-width: 1024px) {
            .movie-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            /* Tablet */
        }

        @media (max-width: 640px) {
            .movie-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            /* Mobile */
        }

        /* Movie item */
        .movie-item {
            text-align: center;
        }

        .image-container {
            position: relative;
            overflow: hidden;
            border-radius: 0.5rem;
            border: 2px solid transparent;
            transition: border-color 0.3s;
            width: 200px;
            height: 300px;
            margin: 0 auto;
        }

        .image-container:hover {
            border-color: #fff;
        }

        .image-container img {
            width: 200px;
            height: 300px;
            object-fit: cover;
            border-radius: 0.5rem;
            transition: transform 0.5s ease-in-out;
        }

        .image-container:hover img {
            transform: scale(1.05);
        }

        /* Badge */
        .quality,
        .language {
            position: absolute;
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
            border-radius: 0.25rem;
            color: #fff;
        }

        .quality {
            top: 0.25rem;
            left: 0.25rem;
            background: linear-gradient(to right, #ef4444, #b91c1c);
        }

        .language {
            bottom: 0.25rem;
            right: 0.25rem;
            background: linear-gradient(to right, #3b82f6, #1e40af);
        }

        .movie-item h3 {
            color: #fff;
            font-size: 1rem;
            margin-top: 0.5rem;
        }

        .movie-item p {
            color: #9ca3af;
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }