/* Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

*{
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
}

:root{
    --main-color:#ff2c1f;
    --text-color:#020307;
    --bg-color:#fff;
}

/* custom scroll */

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

html::-webkit-scrollbar-thumb{
    background: var(--main-color);
    border-radius: 5rem;
}

body{
    background: var(--text-color);
    color: var(--bg-color);
}

section{
    padding: 4.5rem 0 1.5rem;
}

header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 100px;
    transition: 0.5s;
    /* background: var(--main-color); */
}

header.shadow{
    background: var(--bg-color);
    box-shadow: 0 0 4px rgb(14, 55, 54 / 15%);
}

header.shadow .navbar a{
    color: var(--text-color);
}

header.shadow .logo{
    color: var(--text-color);
}

.logo{
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-color);
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}

.logo .bx{
    font-size: 24px;
    color: var(--main-color);
}

.navbar{
    display: flex;
    column-gap: 5rem;
}

.navbar li{
    position: relative;
}

.navbar a{
    font-size: 1rem;
    font-weight: 800;
    color: rgb(53, 51, 51);
}

.navbar a:hover{
    color: var(--main-color);
}

.navbar a::after{
    content: '';
    width: 0;
    height: 2px;
    background: var(--main-color);
    position: absolute;
    bottom: -4px;
    left: 0;
    transition: 0.4s all linear;
}

.navbar a:hover::after,
.navbar .home-active::after{
    width: 100%;
    
}

#menu-icon{
    font-size: 24px;
    cursor: pointer;
    z-index: 1000001;
    display: none;

}

.btn{
    padding: 0.7rem 1.4rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 400;
    border-radius: 0.5rem;
}

.btn:hover{
    background: #c50b01;
}

.conatiner{
    width: 100%;
    min-height: 640px;
    position: relative;
    display: flex;
    align-items: center;
    background: rgb(2, 3, 7, 0.4);
}

.conatiner img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.home-text{
    padding-top: 300px;
    /* padding: 0 150px; */
    padding-left: 20px;
}

.home-text span{
    color: var(--bg-color);
    font-weight: 500;
    text-transform: uppercase;
    text-shadow: #020307 2px 2px 2px;
}

.home-text h1{
    color: var(--bg-color);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: #020307 2px 2px 2px;
}

.swiper-pagination-bullet{
    width: 6px !important;
    height: 6px !important;
    border-radius: 0.2rem !important;
    background: var(--bg-color) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active{
    width:1.5rem !important;
    background: var(--main-color) !important;
}

.play{
    position: absolute;
    right: 4rem;
    bottom: 10%;
}

.play .bx{
    background: var(--bg-color);
    padding: 10px;
    font-size: 2rem;
    border-radius: 50%;
    border: 4px solid black;
    color: var(--main-color);
}

.play .bx:hover{
    background: var(--main-color);
    color: var(--bg-color);
    transition: 0.2s all linear;
}

.heading{
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    border-bottom: 1px solid var(--main-color);
}

.movie-container{
    max-width: 968px;
    margin-right: auto;
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,auto));
    gap: 1rem;
    margin-top: 2rem;
}

.box .box-img{
    width: 100%;
    height: 260px;

}

.box ,.box-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box ,.box-img img:hover{
    transform: translateY(-10px);
    transition: 0.2s all linear;
}

.box h2{
    font-size: 0.9rem;
    font-weight: 500;
}

.box span{
    font-size: 13px;
}

.newsletter{
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 2rem;
}

.newsletter h2{
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.newsletter form{
    background: var(--bg-color);
    padding: 10px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
}

.newsletter form input{
    border: none;
    outline: none;
}

.newsletter form .email{
    width: 280px;
}

.newsletter form input::placeholder{
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 400;
}

.newsletter .btn{
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
}

.footer{
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
}

.social{
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}

.social .bx{
    background: var(--bg-color);
    padding: 2px;
    font-size: 2rem;
    border-radius: 50%;
    border: 4px solid rgb(2, 3, 7, 0.4);
    color: var(--main-color);
}

.social .bx:hover{
    background: var(--main-color);
    color: var(--bg-color);
    transition: 0.2s all linear;
}

.copyright{
    padding: 20px;
    text-align: center;
    color: var(--bg-color);
}

@media (max-width:991px) {
    header{
        padding: 18px 4%;
    }

    section{
        padding: 50px 4%;
    }

    .home-text{
        padding-top: 250px;
    }

    .home-text h1{
        font-size: 3rem;
    }
}

@media (max-width: 774px) {
    header{
        padding: 12px 4%;
    }

    #menu-icon{
        display: initial;
        color: var(--bg-color);
    }

    header.shadow #menu-icon{
        color: var(--text-color);
    }

    .navbar{
        position: absolute;
        top: -570px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        row-gap: 1.4rem;
        padding: 20px;
        box-shadow: 4px 4px 0 4px rgb(14, 55, 54 / 15%);
        transition: 0.2s all linear;
        text-align: center;
        }

        .navbar a{
            width: 100%;
            color: var(--text-color);
        }

         .navbar a:hover{
            color: var(--main-color);
            border-bottom: 1px solid var(--main-color);
        }

        .navbar a::after{
            display: none;
        }

        .navbar.active{
            top: 100%;
        }

        .home-text h1{
            font-size: 2rem;
        }

        .btn{
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
        }

        .movie-container{
            grid-template-columns: repeat(auto-fit,minmax(140px,auto));
        }

        .box .box-img{
            height: 220px;
        }

        .play{
            right: 2rem;
        }

        .play .bx{
            font-size: 1.5rem;
            padding: 8px;
            border: 3px solid black;
        }


    
}

@media (max-width:450px) {
    .home-text{
        padding-top: 200px;
    }

    .home-text h1{
        font-size: 1.8rem;
    }

    .movie-container{
        grid-template-columns: repeat(auto-fit,minmax(120px,auto));
    }

    .box .box-img{
        height: 200px;
    }

    .newsletter form .email{
        width: 200px;
    }

    .footer{
        flex-direction: column;
        row-gap: 1rem;
        text-align: center;
    }

    .play{
        right: 1rem;
        bottom: 5%;

    }

    .play .bx{
        font-size: 1.2rem;
        padding: 6px;
        border: 2px solid black;
    }
}

@media (max-width:350px) {
    .box .box-img{
        height: 150px;
    }

    .newsletter form .email{
        width: 150px;
    }

    .home-text{
        padding-top: 150px;
    }

    .home-text h1{
        font-size: 1.5rem;
    }

    .play .bx{
        font-size: 1rem;
        padding: 4px;
        border: 2px solid black;
    }

    
}

.search-bar {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.search-bar input {
  padding: 10px;
  width: 60%;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.search-bar button {
  padding: 10px 20px;
  border: none;
  background: #ff0000; /* adjust to match your site */
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}


/* ---------- small additions for movie details + trailer (minimal) ---------- */
#trailer-wrap iframe { width:100%; max-width:900px; height:506px; border-radius:8px; border:0; display:block; margin:0 auto; }
#cast-container .box img, #similar-container .box img { width:100%; height:auto; display:block; border-radius:6px; }
#cast-container .box { text-align:center; }
.movie-info p { color:#ddd; }

/* Remove default link styling inside movie boxes */
.movies a {
  text-decoration: none;
  color: inherit;
}

.movies a:hover {
  color: inherit;
}

