/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* =========================
   BODY
========================= */

body{
    background:#111;
    color:white;
    font-family:Arial, sans-serif;
    overflow-x:hidden;
}

/* =========================
   NAVBAR
========================= */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:20px 50px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:rgba(0,0,0,0.9);
    backdrop-filter:blur(10px);
    z-index:1000;
}

.logo{
    color:#e50914;
    font-size:34px;
    font-weight:bold;
    text-decoration:none;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav{
    display:flex;
    align-items:center;
}

nav a{
    color:white;
    text-decoration:none;
    margin-left:25px;
    font-size:15px;
    transition:0.3s;
}

nav a:hover, nav a.active{
    color:#e50914;
}

.logout-btn {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
}

/* =========================
   SEARCH BAR
========================= */

.search-container{
    width:100%;
    display:flex;
    justify-content:center;
    padding:110px 20px 30px;
}

.search-container input{
    width:600px;
    max-width:90%;
    padding:15px 25px;
    border:none;
    outline:none;
    border-radius:50px;
    background:#1e1e1e;
    color:white;
    font-size:16px;
}

.search-container input::placeholder{
    color:#999;
}

.search-container input:focus{
    border:2px solid #e50914;
}

/* =========================
   HERO SECTION
========================= */

.hero{
    height:75vh;
    background:url('https://picsum.photos/1600/900') center center/cover;
    display:flex;
    align-items:center;
    position:relative;
}

.hero::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:linear-gradient(
        to right,
        rgba(0,0,0,0.9),
        rgba(0,0,0,0.3)
    );
}

.overlay{
    position:relative;
    z-index:2;
    max-width:650px;
    padding-left:60px;
}

.overlay h2{
    font-size:64px;
    margin-bottom:20px;
}

.overlay p{
    font-size:18px;
    line-height:1.7;
    color:#ddd;
    margin-bottom:25px;
}

/* =========================
   BUTTONS
========================= */

.hero-buttons{
    display:flex;
    gap:15px;
}

.play-btn{
    padding:12px 30px;
    border:none;
    border-radius:5px;
    background:white;
    color:black;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.play-btn:hover{
    opacity:0.85;
}

/* =========================
   MOVIE SECTIONS
========================= */

.row-section{
    padding:40px;
}

.row-section h2{
    margin-bottom:20px;
    font-size:26px;
}

/* =========================
   MOVIE ROW
========================= */

.row{
    display:flex;
    gap:15px;
    overflow-x:auto;
    padding-bottom:15px;
}

.row::-webkit-scrollbar{
    height:8px;
}

.row::-webkit-scrollbar-thumb{
    background:#333;
    border-radius:10px;
}

/* =========================
   MOVIE CARDS
========================= */

.movie-card{

    min-width:300px;

    position:relative;

    overflow:hidden;

    border-radius:12px;

    transition:0.3s;

    cursor:pointer;

}

.movie-card img{

    width:100%;

    height:170px;

    object-fit:cover;

    display:block;

}

.movie-card:hover{

    transform:scale(1.08);

}

.movie-card::after{

    content:attr(data-title);

    position:absolute;

    left:0;

    bottom:0;

    width:100%;

    padding:12px;

    background:
    linear-gradient(
        transparent,
        rgba(0,0,0,0.95)
    );

    color:white;

    font-weight:bold;

    font-size:15px;

}

/* =========================
   LINKS
========================= */

.row a{
    text-decoration:none;
}

/* =========================
   FOOTER
========================= */

footer{
    text-align:center;
    padding:40px;
    color:#888;
    border-top:1px solid #222;
    margin-top:40px;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .navbar{
        padding:12px 16px;
        flex-direction:row;
        gap:0;
    }

    .nav-left {
        gap: 15px;
    }

    .logo {
        font-size: 24px;
    }

    nav{
        flex-wrap:nowrap;
        justify-content:flex-start;
    }

    nav a{
        margin:0 0 0 15px;
        font-size: 13px;
    }

    .logout-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .hero {
        height: 60vh;
    }

    .overlay{
        padding:0 16px;
        max-width: 100%;
    }

    .overlay h2{
        font-size:32px;
        margin-bottom: 12px;
    }

    .overlay p{
        font-size:14px;
        margin-bottom: 18px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .movie-card{
        min-width:220px;
    }

    .movie-card img {
        height: 130px;
    }

    .search-container{
        padding-top:110px;
    }

    .row-section {
        padding: 20px 16px;
    }

    .row-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

}