*{ 
       font-family: 'Times New Roman', Times, serif;

    margin: 0;
     padding: 0;
   
    scroll-behavior: smooth;
    box-sizing: border-box;
    scroll-padding-top: 2rem;
}
:root{

    --main-color: #b70303;
    --hover-color: hsl(0, 37%, 49%);
    --body-color: #1e1e2a;
    --container-color: #681010;
    --text-color: #fcfeff;

}
html::-webkit-scrollbar{
    width: 0.5rem;
    background: transparent;
}
html::-webkit-scrollbar-thumb{
    background: var(--main-color);

}
::selection{
    background: var(--main-color);
    color: var(--text-color);
}
a{
    text-decoration: none;
}
li{
    list-style: none;
}
section{
    padding: 3rem 0 2rem;

}
img{
    width: 100%;

}
.bx{
    cursor: pointer;
}
body{
    background: var(--body-color);
    color: var(--text-color);
}
.container{
    max-width: 1060px;
    margin: auto;
    width: 100%;
    
}
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
   background: var(--body-color);
    z-index: 100;
}

.nav{
    display: flex;
    align-items: center;
justify-content: center;
padding: 20px 0 ;    
}


.logo{
font-size: 1.4rem;
color: var(--text-color);
font-weight: 600;
text-transform: uppercase;
margin:  0 auto 0 0;
}
.logo span{
    color: var(--main-color);
}
.search-box{
    max-width: 240px;
    width: 100%;
    display: flex;
    align-items: center;
    column-gap: 0.7rem;
    padding: 8px 15px;
    background: #76101076;   
    border-radius: 4rem ;
    margin-right: 1rem;
}
 .search-box i.bx {
font-size: 1.2rem;
}
.search-box i.bx:hover {
    color: var(--main-color);
}

#search-input{

    width: 100%;
    border: none;
    outline: none;
    color: var(--text-color);
    background: transparent;
    font-size: 1rem;
}
.user{
    display: flex;

}
.user-img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}
.navbar{
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 19px;
display: flex;
flex-direction: column;
row-gap: 2.2rem;

}
.nav-link{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #b7b7b7;
}
.nav-link:hover,
.nav-active{
color: var(--text-color);
transition: 0.3s all linear;
transform: scale(1.1) ;
}
.nav-link .bx{
    font-size: 1.6rem;

}
.nav-link-title{
    font-size: 1.1rem;
}
.home{
    position: relative;
    min-height: 470px;
display: flex;
align-items: center;
margin-top: 4.5rem !important;
border-radius: 0.5rem;
}
.home-img{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    border-radius: 0.5rem;
}
.home-text{
    padding-left: 40px;
}
.home-title{
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.home-text{
    font-size: 1.5rem;
    margin: 10px 0 20px;
    color: var(--text-color);
}
.watch-btn{
    display: flex;
    align-items: center;
    column-gap: 0.8rem;
    color: var(--text-color);
}
.watch-btn .bx{
    font-size: 21px;
    background: var(--main-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.watch-btn .bx:hover{
    background: var(--hover-color);
}
.watch-btn span{
font-size: 1rem;
font-weight: 400;
}
.heading{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--container-color);
    padding: 8px 14px;
    margin-bottom: 0.5rem;

}
.heading title{
    font-size: 3.5rem;
    font-weight: 500;
}
.movie-box {
    position: relative;
     width: 245px; 
    height: 310px; 
    overflow: hidden; 
 }
  .movie-box-im{
    width: 100px; 
    height:100px;
    object-fit: cover; 
  }
  .movie-box .box-text{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    background: linear-gradient(8deg,hsl(240 17% 14%/74%)14%,hsl(240 17% 14%/14%)44%);
    overflow: auto;
  }
.movie-title{
font-size: 1.2rem;
font-weight: 500;
}
.movie-type{
    font-size: 0.95rem;
 }

.swiper-btn{
    display: flex;
}
.swiper-button-next,.swiper-button-prev{
    position: static !important;
    margin: 0 0 0 10px !important;

}

.swiper-button-next::after,
.swiper-button-prev::after{
color: #ffffff;
font-size: 20px !important;
font-weight: 700;
}
.movies .heading{
    padding: 10px 14px;
}
.movies-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(247px, 1fr));
    gap: 1.5rem;
  }
  .movies-content .movie-box:hover .movie-box-img {
transform:scale(1.1);
transition: 0.5s;
  }
  .next-page{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
  }
  .next-btn{
    background: var(--main-color);
    padding: 10px 14px;
    color: var(--text-color);
    font-weight: 500;
  }
  .next-btn:hover{
    background: var(--hover-color);
    transition: 0.3s all linear;
  }
  .copyrights{
    text-align: center;
    padding: 20px;
  }
  .play-container{
    position: relative;
    min-height: 540px;
    margin-top: 5rem !important;
  }
  .play-img{
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
  }
  .play-text{
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    bottom: 0;
    left: 0;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background: linear-gradient(8deg,hsl(240 17% 14%/74%)14%,hsl(240 17% 14%/14%)44%);

  }
  .play-text h2{
    font-size: 1.5rem;
    font-weight: 600;
  }
  .ratings{
    text-align: center;
display: flex;
column-gap: 2px;
font-size: 1.1rem;
color: orange;
margin-top: 4px;
  }
  .tags{
    text-align: center;
display: flex;
column-gap: 8px;
margin: 1rem  0;
  }
  .tags span{
    background: var(--container-color);
    padding: 0 4px;
  }
  .play-movie{
    position: absolute;
    bottom: 18rem;
    right: 10rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--main-color);
    font-size: 24px;
    animation: animate 2s linear infinite;
  }
  @keyframes animate {
    0%{
        box-shadow: 0 0 0 0 rgb(251, 43, 43);
    }
   40%{
        box-shadow: 0 0 0 50px rgb(71, 10, 10);
    }
    80%{
        box-shadow: 0 0 0 50 rgb(78, 11, 11);
    }
    100%{
        box-shadow: 0 0 0  rgb(27, 4, 4);
    }
  }
  .video-container{
position: fixed;

top: 0;
left: 0;
display: none;
align-items: center;
justify-content: center;
width: 100%;
height: 100vh;
background: hsl(234 10% 20%/60%);
z-index: 400; 
 }
 .video-container.show-video{
    display: flex;
 }
.video-box{
position: relative;
width: 82%;

}
.video-box #myvideo{
    width: 100%;
aspect-ratio: 16/9;
}
.close-video{
    position: absolute;
    top: 1rem;
    right: 0;
    font-size: 66px;
    color: var(--main-color);
}
.about-movie {
    margin-top: 2rem;
}
.about-movie  h2{
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--main-color);
}
.about-movie p{
    max-width: 600px;
    font-size: 1rem;
    margin: 10px 0;
}
.cast-heading{
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 1rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}
.cast{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,150px));
    gap: 1rem;
}
.cast-img{
    width: 150px;
    height: 180px;
    object-fit: cover;
    object-position: center;
}
.watch{
    max-width: 800px;
    width: 1005;
margin: auto;
display: grid;
justify-content: center;
margin-top: 2rem;

}
.watch-title{
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 1.6rem 0;
    color: var(--main-color);
}
.watch-link{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-bottom: 2rem;
}
.watch-link a{
text-align: center;
background: var(--main-color);
padding: 10px 20px;
color: var(--text-color);
letter-spacing: 1px;
}
.watch-link a:hover{
    background: var(--hover-color);
}
@media (max-width:1170px){
    .navbar{
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: translateY(0);
        flex-direction: row;
        justify-content: space-evenly;
        row-gap: 1px;
        padding: 10px;
        border-top: 1px solid hsl(200 100% 99%/5%);
        background: linear-gradient(8deg ,hsl(240 17% 14% /100%)5%,
        hsl(240 17% 14% /90%)100%);
    }
    .nav-link .bx{
        font-size: 1.7;
    }
    .copyrights{
        margin-bottom: 4rem;
    }
}
@media (max-width:1060px){
    .container{
        margin: 0 auto;
        width: 95%;
    }
}
@media (max-width:.991px){
    .movie-box {
        height: 340px;
    }

}
.toggle{
    width: 40px;
    height: 20px;
    background-color: black;
    border-radius: 30px;
    display:flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
}
.toggle-icon{
    color: goldenrod;
}
.toggle-ball{
    width: 18px;
    height: 18px;
    background-color: white;
    position: absolute;
    right: 1px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.5s ease all;
}
.toggle.active {
    background-color: whitesmoke;
}

.toggle-ball.active {
    background-color: black;
    transform: translateX(-20px);
}

body.active {
    background: whitesmoke;
}

header.active {
    background: whitesmoke;
}

.logo.active {
    color: black;
}
.nav-link.active{
    color: black;
}
.copy.active{
    color: black;
}


