html,
body {
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
}

/* HighLight film */
.highlight-banner {
    position: relative;
    width: 100%;
    height: 100vh; /* hoặc 700px tùy thiết kế */
    margin-top: 0;
    padding-top: 0;
    z-index: 1; /* Thấp hơn logo để không đè */
}

.highlight-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 70%),
        linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 70%);
    display: flex;
    align-items: center;
}

.highlight-content {
    color: white;
    padding: 0 17%;
    max-width: 100%;
}

.highlight-content h1 {
    font-family: Inter-ExtraBold;
    font-size: 64px;
    margin-bottom: 7px;
}

.highlight-content p {
    font-family: Inter-Regular;
    font-size: 30px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.highlight-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.watch-now {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 40px;
    font-size: 25px;
    display: flex;
    align-items: center;
}

.watch-now img {
    margin-left: 18px;
    width: 20px;
    height: 30px;
}

.highlight-icons {
    display: flex;
    gap: 15px;
}

.highlight-awards {
    display: flex;
    gap: 10px;
}

.highlight-awards img {
    width: 45px;
    height: 45px;
}

.content-background {
    background-color: black;
    width: 100%;
}

.content-text {
    color: white;
    text-decoration: none;
}

.content-logo {
    position: relative;
    justify-content: center;
}

.content-logo img {
    width: 30%;
}

.card-content {
    margin-top: 60px;
    margin-left: 100px;
    justify-content: center;
}

.title-card p {
    font-family: Inter-ExtraBold;
    width: 100%;
    font-size: 64px;
    line-height: normal;
}

.movie-box.landscape {
    width: 630px;
    height: 387px;
}
  
.movie-box.landscape .poster {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.movie-box.landscape:hover .hover-card {
    width: 102%;
    height: 100%;
    transform: none;
    opacity: 1;
    pointer-events: auto;

  }

.movie-box {
    width: 310px;
    height: 465px;
    position: relative;
    cursor: pointer;
    overflow: visible;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.movie-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.hover-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #181818;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.hover-card.active {
    width: 310px;
    height: 465px;
    opacity: 1;
    pointer-events: auto;
    z-index: 999;
    overflow: visible;
}

.movie-box.active {
    z-index: 100;
}

.hover-card iframe {
    width: 100%;
    height: 60%;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-card iframe.playing {
    opacity: 1;
}

.hover-content {
    padding: 10px 15px;
    color: white;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.actions button {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.actions button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.info {
    margin-top: 10px;
    font-size: 14px;
    color: #aaa;
}

.poster-card {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 30px;
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 20px;
}

.poster-card::-webkit-scrollbar {
    display: none;
}

.poster-card {
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.poster {
    width: 310px;
}

.top-revenue {
    font-family: Inter-ExtraBold;
    margin-right: -5%;
    color: rgba(155, 153, 153, 0.77);
    text-align: center;
    font-size: 400px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.top-revenue-exception {
    font-family: Inter-ExtraBold;
    margin-right: -3%;
    color: rgba(155, 153, 153, 0.77);
    text-align: center;
    font-size: 400px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.card-content-vietnam {
    margin-top: 40px;
    justify-content: center;
}

.title-card-vietnam p {
    font-family: Inter-ExtraBold;
    width: 100%;
    font-size: 64px;
    line-height: normal;
    margin-left: 100px;
}

.poster-card-vietnam {
    margin-top: 25px;
    text-align: center;
    display: flex;
    gap: 20px;
}

.card-trailer {
    margin-top: 40px;
}

.trailer-title p {
    font-family: Inter-ExtraBold;
    width: 100%;
    font-size: 64px;
    line-height: normal;
    margin-left: 100px;
}

.trailer-wrapper {
    position: relative;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.trailer-wrapper video {
    width: 100%;
    height: auto;
}

.trailer-overlay-poster {
    position: absolute;
    right: 8%;
    bottom: -20px;
    width: 310px;
    height: auto;
    box-shadow: 0px 0px 0px 0px #000;
}

.trailer-items {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 100px;
    margin-top: -110px;
}

.watch-now-content {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 40px;
    font-size: 25px;
    display: flex;
    align-items: center;
}

.watch-now-content img {
    margin-left: 18px;
    width: 20px;
    height: 30px;
}

.slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    height: 100vh;
    width: 100%;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    animation: chayvo 1s ease forwards;
}

.slide.inactive {
    opacity: 1; /* giữ opacity trong animation */
    z-index: 1;
    pointer-events: none;
    animation: chayra 1s ease forwards;
}
@keyframes chayvo {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0%);
    }
}

@keyframes chayra {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-100%);
    }
}