*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial;
}

body{
background:#0f0f0f;
color:white;
}

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px;
background:#181818;
flex-wrap:wrap;
gap:10px;
}

header input, header select{
padding:8px;
border:none;
border-radius:5px;
}

.movie-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
gap:20px;
padding:30px;
}

.movie-card{
background:#1c1c1c;
border-radius:10px;
overflow:hidden;
transition:0.3s;
cursor:pointer;
}

.movie-card:hover{
transform:scale(1.05);
box-shadow:0 0 10px rgba(255,255,255,0.2);
}

.movie-card img{
width:100%;
height:330px;
object-fit:cover;
}

.movie-info{
padding:15px;
}

.rating{
margin-top:10px;
}

.star{
color:gray;
cursor:pointer;
font-size:20px;
}

.star.active{
color:gold;
}

.average{
font-size:14px;
color:#ccc;
margin-top:5px;
}

button{
margin-top:10px;
padding:8px;
border:none;
background:red;
color:white;
border-radius:5px;
cursor:pointer;
}

.modal{
display:none;
position:fixed;
width:100%;
height:100%;
background:rgba(0,0,0,0.8);
justify-content:center;
align-items:center;
}

.modal-content{
background:#222;
padding:30px;
border-radius:10px;
text-align:center;
}

.close{
font-size:25px;
cursor:pointer;
float:right;
}

@media(max-width:600px){
header{
flex-direction:column;
}
}
