

/* SLIDER =================*/

.nav-wrapper:hover ~ .big-section,
.nav-wrapper:hover ~ .big-section ~ .section > .section-wrapper,
.nav-wrapper:hover ~ .big-section ~ .section-tv > .section-wrapper,
.nav-wrapper:hover ~ .big-section ~ .special > .section-wrapper ,
.nav-wrapper:hover ~ .big-section ~ .footer > .section-wrapper{
    left: 360px;
    width: calc(100% - 410px);
}


/* main slider */
/* #big-section {
     display: flex;
     justify-content: center;
     align-items: center;
     max-width: calc(100% - 310px);
     width: 100%;
} */

@media (max-width: 767px) {
     .big-section {
         display: none;
     }
 }
.big-section {
     position: relative;
     padding-top: 30px;
     left: 200px;
     width: calc(100% - 310px);
     transition: all .4s ease-in-out;
}

.slide-container {
     height: 100%;
     position: relative;
}

.big-slide-item {
     position: relative;
     width: 100%;
     height:500px;
     box-shadow: 2px 2px 10px rgba(0, 0, 0, .1);
     border: 2px solid var(--main-color);
     background-color: transparent;
     border-radius: 20px;
     transition: all .4s ease-in-out;
     overflow: hidden;   
     display: none;
}


.big-slide-item.special-movie {
     border: none;
     border-radius: 0;
     box-shadow: 0px 0px 20px rgb(158, 146, 146);
     transition:  all 0.4s ease-in-out;
     margin-top: 3rem;
}

.big-slide-item.special-movie:hover {
    transform: translateY(-5px);
}


.big-slide-item.active {
     display: block;
}

.big-slide-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     object-position: top;
}

.big-slide-item-content {
     position: absolute;
}


.big-slide-item-content {
     position: absolute;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     color: white;
     display: flex;
}

.item-content-wrapper {
     padding-left: 5rem;
     width: 40%;
     background-color: rgba(0, 0, 0, .8);
     display: flex;
     flex-direction: column;
     justify-content: center;
     position: relative;
}

.item-content-wrapper::before {
     content: "";
     position: absolute;
     top: 0;
     left: 100%;
     height: 100%;
     width: 50%;
     background: linear-gradient(to right,rgba(0,0,0,0.8), rgba(0,0,0, 0));
}

.item-content-title {
     font-size: 4rem;
     font-weight: 900;
     line-height: 4rem;
     color: var(--text-color);
     text-transform: capitalize;
     opacity: 0;
     animation:  top-down  1s .4s ease-in-out forwards;
}



.movies-infors {
     display: flex;
     align-items: center;
     font-size: 1rem;
     flex-wrap: wrap;
     margin-top: calc(var(--space-top) / 1.5);
     opacity: 0;
     animation:  top-down  1s .2s ease-in-out forwards;
}


.movies-infor  {
     display: flex;
     align-items: center;
     font-size: 1.2rem;
     font-weight: 600;
}

.movies-infor ~ .movies-infor {
     margin-left: 10px;
}

.movies-infor span {
     margin-left: 6px;
}

.movies-infor ion-icon  {
     color: var(--main-color);
     font-size: 1.3rem;
}

.item-content-description  {
     max-width: 350px;
     font-size: 1.1rem;
     letter-spacing: 1.2;
     margin-top: calc(var(--space-top)/1.5);
     opacity: 0;
     animation:  top-down  1s  ease-in-out forwards;
}

.play-movies {
    position: absolute;
    bottom: 20px; /* Cách đáy 20px */
    right: 20px; /* Cách phải 20px */
    width: 60px;
    height: 60px;
    cursor: pointer;
    background-color: rgba(255, 0, 0, 0.8); /* Màu nền đỏ */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 100;
    transition: all 0.3s ease-in-out;
}

.play-movies:hover {
    background-color: var(--main-color);
    transform: scale(1.1);
}

.play-movies a {
    z-index: 100;
}

.play-movies i {
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.play-movies:hover .btn-watch {
    display: block;
    opacity: 1;
}

.btn-watch {
    font-size: 1rem;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}






.slide-control {
    position: relative;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Căn chỉnh nút ra hai bên */
    transform: translateY(-50%);
    z-index: 1000; /* Đảm bảo nút hiển thị trên mọi phần tử */
    pointer-events: none; /* Tránh ảnh hưởng khi bấm */
}

.slide-prev, .slide-next {
    font-size: 2rem;
    font-weight: 700;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    pointer-events: auto; /* Cho phép click */
}

.slide-prev:hover, .slide-next:hover {
    background-color: var(--main-color);
    transform: scale(1.1);
}

/* Chỉnh vị trí chính xác của nút */
.slide-prev {
    position: absolute;
    left: -60px; /* Dịch ra khỏi slide */
}

.slide-next {
    position: absolute;
    right: -60px; /* Dịch ra khỏi slide */
}
/*END SLIDER */


@keyframes rotate_header {
     0% {
          transform: rotateX(-90deg);
     }
     50% {
          transform: rotateX(40deg);
     }
     100% {
          transform: rotateX(0);
     }
}

.ring {
    position: absolute;
    width: 100px;
    height: 100px;
    animation: ring 2s linear infinite;
    border-radius: 50%;
    bottom: 20px;  /* Cách đáy 20px */
    right: 20px;   /* Cách phải 20px */
}


.ring::before {
     content: "";
     position: absolute;
     left: 0;
     top: 0;
     height: 100%;
     width: 100%;
     box-shadow: 0 2px 10px rgba(255, 255, 255, 0.9);
     border-radius: 50%;
}


/* DELAY TIME & ANIMATION */

@keyframes top-down {
     from {
          transform: translateY(-150px);
          opacity: 0;
     }
     to {
          transform: translateY(0);
          opacity: 1;
     }
}



@keyframes ring {
     0% {
          transform: rotate(0deg);
          box-shadow: 1px 4px 10px red;
     }
     50% {
          transform: rotate(180deg);
          box-shadow: 1px 4px 10px red;

     }
     100% {
          transform: rotate(360deg);
          box-shadow: 1px 4px 10px red;

     }
}




