 /*=========================
RESET
=========================*/

*{
margin:0;
padding:0;
box-sizing:border-box;
}

:root{

--red:#E50914;
--bg:#141414;
--card:#181818;
--white:#fff;
--gray:#b3b3b3;

}

html{

scroll-behavior:smooth;

}

body{

font-family:'Poppins',sans-serif;

background:var(--bg);

color:white;

overflow-x:hidden;

}

/*=========================
HEADER
=========================*/

header{

position:fixed;

top:0;
left:0;

width:100%;

height:80px;

padding:0 60px;

display:flex;

justify-content:space-between;

align-items:center;

z-index:999;

background:linear-gradient(

to bottom,

rgba(0,0,0,.95),

transparent

);

backdrop-filter:blur(8px);

}

.logo img{

width:155px;

}

nav{

display:flex;

gap:30px;

}

nav a{

color:white;

text-decoration:none;

font-size:15px;

transition:.3s;

}

nav a:hover{

color:var(--red);

}

.right{

display:flex;

align-items:center;

gap:20px;

}

.search{

display:flex;

align-items:center;

background:#222;

padding:10px 16px;

border-radius:30px;

}

.search input{

border:none;

outline:none;

background:none;

color:white;

margin-left:10px;

width:170px;

}

.profile{

width:42px;

height:42px;

border-radius:50%;

background:var(--red);

display:flex;

justify-content:center;

align-items:center;

cursor:pointer;

font-size:18px;

}

/*=========================
HERO
=========================*/

.hero{

position:relative;

height:100vh;

display:flex;

align-items:center;

padding:0 80px;

background-position:center;

background-size:cover;

background-repeat:no-repeat;

transition:1s;

}

.overlay{

position:absolute;

inset:0;

background:

linear-gradient(

90deg,

rgba(0,0,0,.92),

rgba(0,0,0,.35),

transparent

),

linear-gradient(

to top,

#141414,

transparent 35%

);

}

.hero-content{

position:relative;

z-index:2;

max-width:650px;

}

.tag{

letter-spacing:5px;

color:var(--red);

font-size:14px;

font-weight:700;

margin-bottom:20px;

}

.hero h1{

font-size:78px;

font-weight:800;

line-height:1.1;

margin-bottom:25px;

}

.hero p{

font-size:18px;

line-height:1.8;

color:#ddd;

margin-bottom:35px;

}

.buttons{

display:flex;

gap:18px;

}

.buttons button{

padding:16px 34px;

font-size:17px;

border:none;

border-radius:6px;

cursor:pointer;

font-weight:600;

transition:.35s;

}

#playBtn{

background:white;

color:black;

}

#playBtn:hover{

transform:scale(1.05);

}

#infoBtn{

background:rgba(255,255,255,.18);

color:white;

}

#infoBtn:hover{

background:rgba(255,255,255,.35);

}

/*=========================
SECTION
=========================*/

.section{

padding:28px 60px;

}

.section h2{

font-size:28px;

margin-bottom:22px;

}

/*=========================
ROWS
=========================*/

.movie-row{

display:flex;

gap:18px;

overflow-x:auto;

overflow-y:hidden;

scroll-behavior:smooth;

padding-bottom:15px;

}

.movie-row::-webkit-scrollbar{

display:none;

}

/*=========================
MOVIE CARD
=========================*/

.movie-card{

position:relative;

min-width:220px;

height:330px;

border-radius:10px;

overflow:hidden;

cursor:pointer;

background:var(--card);

transition:.4s;

flex-shrink:0;

}

.movie-card img{

width:100%;

height:100%;

object-fit:cover;

transition:.4s;

}

.movie-card:hover{

transform:scale(1.12);

z-index:50;

box-shadow:0 20px 40px rgba(0,0,0,.5);

}

.movie-card:hover img{

filter:brightness(.45);

}/*=========================
MOVIE OVERLAY
=========================*/

.movie-overlay{

position:absolute;

left:0;
right:0;
bottom:0;

padding:18px;

background:linear-gradient(
transparent,
rgba(0,0,0,.96)
);

opacity:0;

transition:.35s;

}

.movie-card:hover .movie-overlay{

opacity:1;

}

.movie-overlay h3{

font-size:18px;

margin-bottom:12px;

font-weight:600;

}

.movie-info{

display:flex;

gap:8px;

flex-wrap:wrap;

margin-bottom:15px;

}

.movie-info span{

background:rgba(255,255,255,.15);

padding:5px 10px;

border-radius:20px;

font-size:12px;

}

.movie-actions{

display:flex;

gap:10px;

}

.movie-actions button{

width:42px;

height:42px;

border:none;

border-radius:50%;

background:white;

color:black;

cursor:pointer;

font-size:16px;

transition:.3s;

}

.movie-actions button:hover{

background:var(--red);

color:white;

transform:scale(1.08);

}

/*=========================
MOVIE MODAL
=========================*/

.movie-modal{

position:fixed;

inset:0;

background:rgba(0,0,0,.88);

display:none;

justify-content:center;

align-items:center;

z-index:99999;

padding:30px;

}

.movie-modal.active{

display:flex;

}

.modal-content{

width:100%;

max-width:1000px;

background:#181818;

border-radius:15px;

overflow:hidden;

display:flex;

position:relative;

box-shadow:0 25px 60px rgba(0,0,0,.6);

}

.modal-left{

width:40%;

}

.modal-left img{

width:100%;

height:100%;

object-fit:cover;

display:block;

}

.modal-right{

width:60%;

padding:35px;

}

.modal-right h1{

font-size:42px;

margin-bottom:15px;

}

.modal-meta{

display:flex;

gap:15px;

margin-bottom:20px;

color:#46d369;

font-weight:600;

flex-wrap:wrap;

}

.modal-right p{

color:#ddd;

line-height:1.8;

margin-bottom:30px;

}

.modal-buttons{

display:flex;

gap:15px;

flex-wrap:wrap;

}

.modal-buttons button{

padding:15px 28px;

border:none;

border-radius:6px;

font-size:15px;

font-weight:600;

cursor:pointer;

transition:.3s;

}

#watchTrailer{

background:var(--red);

color:white;

}

#watchTrailer:hover{

background:#ff2c3b;

}

#addList{

background:#333;

color:white;

}

#addList:hover{

background:#555;

}

#closeModal{

position:absolute;

top:15px;

right:15px;

width:42px;

height:42px;

border:none;

border-radius:50%;

background:#000;

color:white;

font-size:20px;

cursor:pointer;

}

/*=========================
LOADER
=========================*/

#loader{

position:fixed;

inset:0;

display:none;

justify-content:center;

align-items:center;

background:black;

z-index:999999;

}

.spinner{

width:70px;

height:70px;

border:7px solid #333;

border-top:7px solid var(--red);

border-radius:50%;

animation:spin .8s linear infinite;

}

@keyframes spin{

100%{

transform:rotate(360deg);

}

}

/*=========================
SCROLL BUTTON
=========================*/

#scrollTop{

position:fixed;

right:25px;

bottom:25px;

width:55px;

height:55px;

border:none;

border-radius:50%;

background:var(--red);

color:white;

font-size:20px;

cursor:pointer;

display:flex;

justify-content:center;

align-items:center;

opacity:0;

pointer-events:none;

transition:.35s;

z-index:999;

}

#scrollTop.show{

opacity:1;

pointer-events:auto;

}

/*=========================
FOOTER
=========================*/

footer{

background:#0b0b0b;

padding:70px 8%;

margin-top:70px;

}

.footer-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:40px;

}

.footer-grid h3{

margin-bottom:18px;

}

.footer-grid a{

display:block;

color:#b3b3b3;

text-decoration:none;

margin:10px 0;

transition:.3s;

}

.footer-grid a:hover{

color:white;

}

.socials{

display:flex;

gap:15px;

margin-top:15px;

}

.socials a{

width:45px;

height:45px;

background:#222;

display:flex;

justify-content:center;

align-items:center;

border-radius:50%;

color:white;

text-decoration:none;

transition:.3s;

}

.socials a:hover{

background:var(--red);

}

.copyright{

border-top:1px solid #222;

margin-top:40px;

padding-top:20px;

display:flex;

justify-content:space-between;

color:#999;

}

/*=========================
RESPONSIVE
=========================*/

@media(max-width:992px){

header{

padding:0 25px;

}

.hero{

padding:120px 35px;

height:auto;

}

.hero h1{

font-size:52px;

}

.modal-content{

flex-direction:column;

}

.modal-left,

.modal-right{

width:100%;

}

.footer-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

nav{

display:none;

}

.hero{

padding:120px 20px 60px;

}

.hero h1{

font-size:38px;

}

.movie-card{

min-width:170px;

height:260px;

}

.section{

padding:20px;

}

.footer-grid{

grid-template-columns:1fr;

}

.copyright{

flex-direction:column;

gap:10px;

text-align:center;

}

.modal-right h1{

font-size:30px;

}

}

::-webkit-scrollbar{

height:8px;

}

::-webkit-scrollbar-thumb{

background:var(--red);

border-radius:20px;

}

::-webkit-scrollbar-track{

background:#111;

}