*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#0b0f17;
    color:white;
    font-family:'Inter',sans-serif;
    min-height:100vh;
}

/* HEADER */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;

    height:80px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0 20px;

    background:rgba(10,10,15,.65);

    backdrop-filter:blur(20px);

    border-bottom:1px solid rgba(255,255,255,.05);

    z-index:999;
}

.logo{
    font-size:34px;
    font-weight:800;
    letter-spacing:2px;
}

.accent{
    color:#ffcc00;
}

/* HERO */

.hero{
    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;

    padding:120px 20px 60px;

    background:
    linear-gradient(
        rgba(0,0,0,.75),
        rgba(0,0,0,.9)
    ),
    url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba");

    background-size:cover;
    background-position:center;
}

.hero-content{
    width:100%;
    max-width:900px;

    animation:fadeUp .8s ease;
}

.hero h1{
    font-size:clamp(38px,7vw,78px);
    line-height:1.1;
    margin-bottom:20px;
}

.hero p{
    font-size:clamp(16px,2vw,22px);
    opacity:.8;
    max-width:700px;
    margin:auto;
    margin-bottom:35px;
}

/* SEARCH */

.search-box{
    width:100%;
    max-width:750px;

    margin:auto;

    display:flex;
    align-items:center;

    background:#161b26;

    border:1px solid #262d3d;

    border-radius:18px;

    overflow:hidden;

    box-shadow:
    0 15px 40px rgba(0,0,0,.35);
}

.search-box input{
    flex:1;

    height:65px;

    border:none;

    outline:none;

    background:transparent;

    color:white;

    padding:0 22px;

    font-size:17px;
}

.search-box input::placeholder{
    color:#7e879d;
}

.search-box button{
    width:75px;
    height:65px;

    border:none;

    background:#ffcc00;

    cursor:pointer;

    font-size:24px;

    transition:.25s;
}

.search-box button:hover{
    transform:scale(1.05);
}

/* SECTION */

.section{
    padding:60px 40px;
}

.section-title{
    font-size:32px;
    font-weight:700;
    margin-bottom:30px;
}

/* MOVIES */

.movies-grid{
    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(220px,1fr));

    gap:25px;
}

.movie-card{
    background:#151a24;

    border-radius:20px;

    overflow:hidden;

    cursor:pointer;

    border:1px solid #232a3a;

    transition:.3s;
}

.movie-card:hover{
    transform:translateY(-8px);

    box-shadow:
    0 25px 50px rgba(0,0,0,.35);
}

.movie-card img{
    width:100%;
    height:330px;

    object-fit:cover;
}

.movie-info{
    padding:15px;
}

.movie-title{
    font-size:17px;
    font-weight:700;
    margin-bottom:8px;
}

.movie-year{
    opacity:.65;
}

/* MODAL */

.modal{
    display:none;

    position:fixed;

    inset:0;

    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,.85);

    backdrop-filter:blur(10px);

    z-index:9999;
}

.modal-content{
    width:90%;
    max-width:1100px;

    background:#111722;

    border-radius:24px;

    padding:25px;

    position:relative;
}

.close{
    position:absolute;

    right:20px;
    top:10px;

    font-size:40px;

    cursor:pointer;
}

#movieInfo h2{
    margin-bottom:10px;
}

#movieInfo p{
    opacity:.7;
}

/* PLAYER */

.player-container{
    margin-top:25px;
}

.player-placeholder{
    height:500px;

    border:2px dashed #2f3748;

    border-radius:20px;

    display:flex;
    justify-content:center;
    align-items:center;

    color:#7d879c;
}

.player-container iframe{
    width:100%;
    height:550px;

    border:none;

    border-radius:20px;
}

/* ANIMATION */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* MOBILE */

@media(max-width:768px){

    header{
        height:70px;
    }

    .logo{
        font-size:26px;
    }

    .hero{
        padding:100px 15px 40px;
    }

    .hero h1{
        font-size:42px;
    }

    .search-box{
        max-width:100%;
    }

    .search-box input{
        font-size:15px;
        height:60px;
    }

    .search-box button{
        width:65px;
        height:60px;
    }

    .section{
        padding:25px 15px;
    }

    .movies-grid{
        grid-template-columns:
        repeat(2,1fr);

        gap:15px;
    }

    .movie-card img{
        height:250px;
    }

    .modal-content{
        width:95%;
        padding:15px;
    }

    .player-placeholder{
        height:220px;
    }

    .player-container iframe{
        height:250px;
    }

}

@media(max-width:480px){

    .hero h1{
        font-size:34px;
    }

    .movies-grid{
        grid-template-columns:
        repeat(2,1fr);
    }

    .movie-card img{
        height:220px;
    }

}