:root {
    --primary: #e9b32a;
    --primary-dark: #0f5fc7;
    --bg-soft: #2a2a2a;
    --bg-card: rgba(34, 34, 34, .72);
    --text-main: #fff;
    --text-muted: rgba(255, 255, 255, .82);
    --border: rgba(255, 255, 255, .12);
    --shadow: 0 18px 45px rgba(0, 0, 0, .35);
    --radius: 18px;
    --container: 1140px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    background: #0b0b0b url(./background.jpg) no-repeat center top fixed;
    background-size: cover
}

body {
    font-family: "Work Sans", Arial, sans-serif;
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.65;
    padding: 32px 16px;
    background: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .22))
}

a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none
}

a:hover,
a:focus {
    color: #70adff;
    text-decoration: underline
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

.site-wrapper {
    width: min(100%, var(--container));
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border)
}

.logo {
    display: flex;
    align-items: center;
    min-width: 120px
}

.logo img {
    width: 150px;
    margin: 0
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 28px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px
}

.nav-menu a {
    color: var(--text-main);
    font-size: 15px;
    white-space: nowrap
}

.nav-menu a:hover {
    color: var(--primary);
    text-decoration: none
}

.hero {
    padding: 34px 32px 18px;
    text-align: center
}

.hero h1 {
    font-family: "Oswald", Arial, sans-serif;
    color: var(--primary);
    font-size: clamp(32px, 5vw, 40px);
    line-height: 1.1;
    margin-bottom: 14px;
    /* NÂNG CẤP: Hiệu ứng đèn Neon rạp phim phát sáng nhẹ */
    animation: titleGlowPulse 3s ease-in-out infinite alternate;
}

.hero .intro {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: clamp(16px, 2vw, 19px)
}

.movies-row-section {
    margin: 0 0 28px
}

.movies-row-title {
    font-family: "Oswald", Arial, sans-serif;
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: .5px
}

.movies-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 10px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(146, 185, 227, .4) transparent;
    -webkit-overflow-scrolling: touch
}

.movies-row::-webkit-scrollbar {
    height: 5px
}

.movies-row::-webkit-scrollbar-thumb {
    background: rgba(146, 185, 227, .4);
    border-radius: 99px
}

/* ==========================================================================
   NÂNG CẤP CORE ANIMATION CHO MOVIE CARD (.mc)
   ========================================================================== */
.mc {
    flex: 0 0 148px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    cursor: pointer;
    background: #111;
    text-decoration: none;

    /* Hiệu ứng xuất hiện mượt mà (Cinematic Reveal) */
    opacity: 0;
    transform: translateY(25px) scale(0.96);
    filter: blur(4px);
    animation: cinematicFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;

    /* Thiết lập transition mượt mà chuẩn 60fps khi Hover */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s ease,
        filter 0.4s ease;
}

/* Hiệu ứng Hover Premium giống Netflix/AppleTV */
.mc:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 18px 36px rgba(233, 179, 42, 0.25), 0 0 0 2px var(--primary);
    filter: brightness(1.08);
}

/* Tạo lớp phủ tối và Nút PLAY xuất hiện tinh tế từ giữa khi Hover */
.mc::before {
    content: '\F52A';
    /* Icon bi-play-circle-fill từ Bootstrap Icons */
    font-family: "bootstrap-icons" !important;
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 15%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.mc:hover::before {
    opacity: 1;
    transform: scale(1);
}

.mc img {
    width: 148px;
    height: 222px;
    object-fit: cover;
    display: block
}

.mc .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: .5px;
    line-height: 1.4;
    z-index: 3;
    /* Nổi lên trên lớp phủ Play */
}

.mc .badge.hd {
    background: #f5c518;
    color: #1a1000
}

.mc .badge.cam {
    background: #e05c1a;
    color: #fff
}

.mc .badge.ts {
    background: #9b59b6;
    color: #fff
}

.mc .mtitle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 10px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .92) 55%);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    z-index: 3;
    /* Nổi lên trên lớp phủ Play */
    transition: transform 0.3s ease;
}

.mc:hover .mtitle {
    transform: translateY(-2px);
}

/* ==========================================================================
   CÁC PHẦN CÒN LẠI VÀ KEYFRAMES
   ========================================================================== */
main {
    padding: 0 32px 34px
}

.search-box {
    background: rgba(42, 42, 42, .95);
    border: 1px solid var(--border);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin: 22px auto;
    max-width: 800px;
    transition: all 0.3s ease;
}

/* Thêm hiệu ứng phát sáng nhẹ khi click vào ô tìm kiếm */
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 14px rgba(233, 179, 42, 0.3);
    transform: scale(1.01);
}

.filter-btn {
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    padding: 9px 13px;
    font-size: 13px;
    color: var(--text-main);
    white-space: nowrap
}

.search-input {
    background: transparent;
    border: 0;
    color: var(--text-main);
    text-align: center;
    flex: 1;
    outline: 0;
    font-size: 16px;
    min-width: 0
}

.search-input::placeholder {
    color: rgba(255, 255, 255, .62)
}

.search-submit {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    transition: .2s
}

.search-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px)
}

.btn-primary {
    background: var(--primary);
    margin: 24px auto 32px;
    padding: 15px 34px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    text-align: center;
    width: max-content;
    max-width: 100%;
    display: block;
    border: 0;
    transition: .25s
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(24, 119, 242, .35)
}

article {
    overflow-wrap: anywhere
}

.content-section {
    margin: 28px 0
}

.banner {
    width: 100%;
    border-radius: 16px;
    margin: 28px 0;
    border: 1px solid var(--border)
}

h2 {
    color: var(--primary);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
    margin: 30px 0 14px;
    text-align: center
}

h3 {
    font-size: clamp(19px, 2.3vw, 24px);
    margin: 22px 0 10px;
    color: #fff
}

p {
    margin: 10px 0;
    color: var(--text-muted)
}

strong {
    color: var(--primary)
}

ul,
ol {
    padding-left: 26px;
    margin: 14px 0
}

li {
    margin: 9px 0;
    color: var(--text-muted)
}

blockquote {
    background: rgba(42, 42, 42, .9);
    padding: 16px 20px;
    margin: 22px 0;
    border-left: 4px solid var(--primary);
    font-style: italic;
    border-radius: 12px;
    color: var(--text-muted)
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 22px 0;
    border-radius: 12px
}

table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 15px
}

th,
td {
    padding: 13px;
    border: 1px solid rgba(24, 119, 242, .45);
    text-align: left;
    color: var(--text-muted)
}

th {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, .05)
}

footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border)
}

footer img {
    width: 120px;
    margin: 0 auto 14px
}

footer p {
    font-size: 14px;
    color: var(--text-muted)
}

/* --- Keyframes Chuyển động --- */
@keyframes cinematicFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes titleGlowPulse {
    from {
        text-shadow: 0 0 8px rgba(233, 179, 42, 0.3), 0 0 20px rgba(233, 179, 42, 0.1);
    }

    to {
        text-shadow: 0 0 18px rgba(233, 179, 42, 0.65), 0 0 35px rgba(233, 179, 42, 0.35);
    }
}

/* --- Media Queries --- */
@media(max-width:992px) {
    body {
        padding: 0
    }

    .site-wrapper {
        border-radius: 0;
        border-left: 0;
        border-right: 0
    }

    .top-header {
        padding: 15px 18px
    }

    .hero,
    main {
        padding-left: 22px;
        padding-right: 22px
    }
}

@media(max-width:768px) {
    .menu-toggle {
        display: flex;
        z-index: 1002
    }

    .nav-menu {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 15, 15, .98);
        z-index: 1001;
        align-items: center;
        justify-content: center;
        padding: 72px 24px
    }

    .nav-menu.active {
        display: flex
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 26px;
        text-align: center
    }

    .nav-menu a {
        font-size: 22px
    }

    .logo img {
        width: 132px
    }

    .search-box {
        border-radius: 18px;
        align-items: stretch
    }

    .filter-btn {
        display: none
    }

    .search-input {
        text-align: left;
        padding-left: 12px
    }

    .hero {
        padding-top: 28px
    }
}

@media(max-width:576px) {
    .top-header {
        padding: 12px 14px
    }

    .hero,
    main {
        padding-left: 16px;
        padding-right: 16px
    }

    .search-box {
        gap: 6px
    }

    .btn-primary {
        width: 100%;
        font-size: 14px;
        padding: 14px 18px
    }

    .search-submit {
        min-width: 42px
    }

    ul,
    ol {
        padding-left: 20px
    }

    table {
        font-size: 14px
    }
}