/* ==========================================
   MOVIESTREAM - STYLE.CSS
   PART 3A
   Reset • Variables • Body • Header
   Hero • Layout
========================================== */

/* Google Font */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

button,
input{
    border:none;
    outline:none;
    font-family:inherit;
}

/* ==========================================
VARIABLES
========================================== */

:root{

    --bg:#070707;
    --bg2:#111111;
    --card:#181818;
    --card2:#222222;

    --text:#ffffff;
    --text2:#bbbbbb;

    --red:#e50914;
    --red2:#ff3b3b;

    --yellow:#ffc107;
    --green:#18c964;

    --border:#2a2a2a;

    --radius:14px;

    --shadow:
    0 15px 40px rgba(0,0,0,.45);

    --transition:.35s ease;

}

/* ==========================================
BODY
========================================== */

body{

    font-family:'Poppins',sans-serif;

    background:
    linear-gradient(
    to bottom,
    #050505,
    #0b0b0b,
    #101010);

    color:var(--text);

    overflow-x:hidden;

    line-height:1.6;

}

/* Scrollbar */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#111;

}

::-webkit-scrollbar-thumb{

    background:var(--red);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#ff2b36;

}

/* ==========================================
HEADER
========================================== */

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:75px;

    padding:0 60px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:rgba(5,5,5,.88);

    backdrop-filter:blur(18px);

    border-bottom:1px solid rgba(255,255,255,.05);

    z-index:9999;

}

/* Logo */

.logo{

    display:flex;

    align-items:center;

    gap:10px;

    color:#fff;

    font-size:28px;

    font-weight:800;

    letter-spacing:.5px;

}

.logo i{

    color:var(--red);

    font-size:32px;

}

/* Navigation */

nav{

    display:flex;

    align-items:center;

    gap:28px;

}

nav a{

    color:#ddd;

    font-size:15px;

    font-weight:500;

    transition:var(--transition);

    position:relative;

}

nav a:hover{

    color:#fff;

}

nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:var(--red);

    transition:.3s;

}

nav a:hover::after{

    width:100%;

}

/* Search */

.search-box{

    width:260px;

    height:45px;

    display:flex;

    overflow:hidden;

    border-radius:50px;

    background:#1b1b1b;

    border:1px solid #333;

}

.search-box input{

    flex:1;

    background:transparent;

    color:#fff;

    padding:0 18px;

    font-size:14px;

}

.search-box input::placeholder{

    color:#888;

}

.search-box button{

    width:55px;

    background:var(--red);

    color:#fff;

    cursor:pointer;

    transition:.3s;

}

.search-box button:hover{

    background:#ff2d38;

}

/* ==========================================
HERO
========================================== */

.hero{

    width:100%;

    height:100vh;

    background:url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1600&q=80");

    background-size:cover;

    background-position:center;

    position:relative;

    display:flex;

    align-items:center;

    margin-bottom:70px;

}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(
    to right,
    rgba(0,0,0,.92),
    rgba(0,0,0,.60),
    rgba(0,0,0,.25));

}

.hero-overlay{

    position:relative;

    width:100%;

    padding:0 70px;

}

.hero-content{

    max-width:650px;

    animation:fadeUp 1s ease;

}

.badge{

    display:inline-block;

    padding:8px 18px;

    border-radius:40px;

    background:var(--red);

    color:#fff;

    font-size:13px;

    font-weight:700;

    margin-bottom:22px;

}

.hero h1{

    font-size:68px;

    line-height:1.1;

    margin-bottom:18px;

    font-weight:800;

}

.movie-meta{

    display:flex;

    flex-wrap:wrap;

    gap:18px;

    margin-bottom:25px;

}

.movie-meta span{

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.08);

    padding:8px 15px;

    border-radius:30px;

    color:#ddd;

    font-size:14px;

}

.hero p{

    color:#d2d2d2;

    font-size:16px;

    margin-bottom:35px;

    max-width:560px;

}

/* Hero Buttons */

.hero-buttons{

    display:flex;

    gap:15px;

}

.watch-btn,
.trailer-btn{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:15px 34px;

    border-radius:50px;

    font-weight:600;

    transition:.3s;

}

.watch-btn{

    background:var(--red);

    color:#fff;

}

.watch-btn:hover{

    transform:translateY(-4px);

    box-shadow:0 12px 30px rgba(229,9,20,.4);

}

.trailer-btn{

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.12);

    color:#fff;

}

.trailer-btn:hover{

    background:#ffffff15;

}

/* ==========================================
LAYOUT
========================================== */

.container{
    width:min(1400px,94%);
    margin:auto;
    padding-top:110px;
}

.content{

    display:grid;

    grid-template-columns:2.4fr 1fr;

    gap:35px;

    align-items:start;

}

.left{

    display:flex;

    flex-direction:column;

    gap:30px;

}

.sidebar{

    display:flex;

    flex-direction:column;

    gap:25px;

}

/* Titles */

#movieTitle{

    font-size:38px;

    font-weight:700;

}

.movie-tags{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.movie-tags span{

    background:#191919;

    border:1px solid #2c2c2c;

    color:#ddd;

    padding:8px 16px;

    border-radius:40px;

    font-size:13px;

}

/* ==========================================
COMMON CARD
========================================== */

.player-area,
.movie-info,
.description,
.widget,
.plan-card,
.movie-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}

/* ==========================================
SECTION TITLE
========================================== */

.section-title{

    font-size:30px;

    margin-bottom:25px;

    font-weight:700;
   text-align: center;
}

/* ==========================================
ANIMATION
========================================== */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(50px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
/* ==========================================
   PART 3B
   VIDEO PLAYER
   SERVER BUTTONS
   MOVIE INFO
   DESCRIPTION
   SUBSCRIPTION PLANS
==========================================*/

/* ==========================================
PLAYER
==========================================*/

.player-area{

    overflow:hidden;

    padding:22px;

}

.player-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

}

.player-header h3{

    font-size:24px;

    font-weight:700;

}

.quality{

    background:var(--green);

    color:#fff;

    font-size:13px;

    font-weight:700;

    padding:7px 16px;

    border-radius:30px;

}

.video-player{

    position:relative;

    width:100%;

    aspect-ratio:16/9;

    border-radius:12px;

    overflow:hidden;

    background:#000;

    box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 20px 50px rgba(0,0,0,.45);

}

@supports not (aspect-ratio:16/9){

.video-player{

    height:0;

    padding-bottom:56.25%;

}

}

.video-player iframe{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    border:0;

}

/* ==========================================
SERVER BOX
==========================================*/
.note{

    margin-top:-20px;
    margin-bottom: 10px;
    text-align:center;


}
.server-box{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:var(--radius);

    padding:24px;

    box-shadow:var(--shadow);

}

.server-box h3{

    font-size:22px;

    margin-bottom:20px;

}

.servers{

    display:flex;

    flex-wrap:wrap;

    gap:15px;

}

.server{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    min-width:170px;

    padding:15px 22px;

    background:#202020;

    color:#fff;

    border:1px solid #343434;

    border-radius:12px;

    transition:var(--transition);

}

.server i{

    color:var(--red);

}

.server:hover{

    background:var(--red);

    border-color:var(--red);

    transform:translateY(-4px);

    box-shadow:0 15px 35px rgba(229,9,20,.35);

}

.server:hover i{

    color:#fff;

}

.server.active{

    background:var(--red);

    border-color:var(--red);

}

.server.active i{

    color:#fff;

}

/* ==========================================
MOVIE INFORMATION
==========================================*/

.movie-info{

    padding:28px;

}

.movie-info h3{

    font-size:26px;

    margin-bottom:25px;

}

.info-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}

.info-grid div{

    background:#1f1f1f;

    border:1px solid #2b2b2b;

    border-radius:12px;

    padding:18px;

    transition:var(--transition);

}

.info-grid div:hover{

    transform:translateY(-5px);

    border-color:var(--red);

}

.info-grid strong{

    display:block;

    color:#fff;

    margin-bottom:8px;

    font-size:14px;

    font-weight:700;

}

.info-grid p{

    color:var(--text2);

    font-size:15px;

}

/* ==========================================
DESCRIPTION
==========================================*/

.description{

    padding:28px;

}

.description h3{

    font-size:26px;

    margin-bottom:20px;

}

.description p{

    color:#d0d0d0;

    font-size:15px;

    line-height:1.9;

}

/* ==========================================
PLANS
==========================================*/

.plans{

    margin-top:10px;

}

.plan-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.plan-card{

    position:relative;

    padding:35px 30px;

    text-align:center;

    transition:var(--transition);

}

.plan-card:hover{

    transform:translateY(-8px);

    border-color:var(--red);

    box-shadow:
    0 25px 45px rgba(0,0,0,.45),
    0 0 25px rgba(229,9,20,.18);

}

.plan-card.featured{

    border:2px solid var(--red);

    transform:scale(1.03);

}

.featured-tag{

    position:absolute;

    top:-15px;

    left:50%;

    transform:translateX(-50%);

    background:var(--red);

    color:#fff;

    padding:8px 20px;

    border-radius:30px;

    font-size:12px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.5px;

}

.plan-name{

    display:block;

    font-size:26px;

    font-weight:700;

    margin-bottom:15px;

}

.plan-price{

    color:var(--yellow);

    font-size:48px;

    font-weight:800;

    margin-bottom:25px;

}

.plan-card ul{

    display:flex;

    flex-direction:column;

    gap:14px;

    margin-bottom:30px;

}

.plan-card li{

    color:#d7d7d7;

    font-size:15px;

}

.plan-card li i{

    color:var(--green);

    margin-right:8px;

}

.plan-btn{

    display:inline-block;

    width:100%;

    padding:15px;

    background:var(--red);

    color:#fff;

    border-radius:10px;

    font-weight:600;

    transition:var(--transition);

}

.plan-btn:hover{

    background:#ff2634;

    transform:translateY(-2px);

    box-shadow:0 15px 35px rgba(229,9,20,.35);

}

/* ==========================================
TABLET
==========================================*/

@media(max-width:992px){

.info-grid{

    grid-template-columns:1fr;

}

.plan-grid{

    grid-template-columns:1fr;

}

.servers{

    flex-direction:column;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}


.server{

   min-width:0;
    width:100%;
    padding:12px 5px;
    text-align:center;
    justify-content:center;

}

}
/* ==========================================
   PART 3C
   RELATED MOVIES
   SIDEBAR
   FOOTER
   RESPONSIVE DESIGN
==========================================*/

/* ==========================================
RELATED MOVIES
==========================================*/

.related{

    margin-top:20px;

}

.movie-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

.movie-card{

    overflow:hidden;

    transition:var(--transition);

    cursor:pointer;

    position:relative;

}

.movie-card:hover{

    transform:translateY(-8px);

    border-color:var(--red);

    box-shadow:
    0 25px 50px rgba(0,0,0,.45);

}

.movie-card img{

    width:100%;

    height:380px;

    object-fit:cover;

    transition:.5s;

}

.movie-card:hover img{

    transform:scale(1.08);

}

.movie-details{

    padding:18px;

}

.movie-details h4{

    font-size:18px;

    margin-bottom:8px;

    color:#fff;

}

.movie-details span{

    color:var(--yellow);

    font-size:14px;

}

/* ==========================================
SIDEBAR
==========================================*/

.widget{

    padding:25px;

}

.widget h3{

    font-size:22px;

    margin-bottom:20px;

    color:#fff;

    position:relative;

}

.widget h3::after{

    content:"";

    display:block;

    width:55px;

    height:3px;

    background:var(--red);

    margin-top:10px;

    border-radius:20px;

}

.widget ul{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.widget ul li{

    border-bottom:1px solid rgba(255,255,255,.06);

    padding-bottom:12px;

}

.widget ul li:last-child{

    border-bottom:none;

}

.widget ul li a{

    color:#cfcfcf;

    transition:var(--transition);

}

.widget ul li a:hover{

    color:var(--red);

    padding-left:8px;

}

.genre-list{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.genre-list a{

    background:#222;

    border:1px solid #333;

    color:#ddd;

    padding:10px 15px;

    border-radius:30px;

    font-size:13px;

    transition:var(--transition);

}

.genre-list a:hover{

    background:var(--red);

    border-color:var(--red);

    color:#fff;

}

/* ==========================================
FOOTER
==========================================*/

footer{

    margin-top:80px;

    background:#050505;

    border-top:1px solid #222;

}

.footer-content{

    width:min(1400px,94%);

    margin:auto;

    padding:60px 0 35px;

    text-align:center;

}

.footer-content h2{

    font-size:34px;

    margin-bottom:15px;

}

.footer-content p{

    color:#999;

    max-width:650px;

    margin:0 auto 30px;

}

.footer-links{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:25px;

    margin-bottom:30px;

}

.footer-links a{

    color:#ddd;

    transition:var(--transition);

}

.footer-links a:hover{

    color:var(--red);

}

.copyright{

    color:#777;

    font-size:14px;

    padding-top:25px;

    border-top:1px solid rgba(255,255,255,.06);

}

/* ==========================================
RESPONSIVE
==========================================*/

@media(max-width:1200px){

.hero h1{

    font-size:54px;

}

.movie-grid{

    grid-template-columns:repeat(3,1fr);

}

}

@media(max-width:992px){

header{

    padding:18px 25px;

    flex-wrap:wrap;

    height:auto;

    gap:20px;

}

nav{

    width:100%;

    justify-content:center;

    flex-wrap:wrap;

    gap:18px;

}

.search-box{

    width:100%;

}

.hero{

    height:85vh;

}

.hero-overlay{

    padding:0 30px;

}

.hero h1{

    font-size:46px;

}

.content{

    grid-template-columns:1fr;

}

.sidebar{

    margin-top:20px;

}

.movie-grid{

    grid-template-columns:repeat(2,1fr);

}

}

@media (max-width:768px){

    header{
        height:auto;
        padding:15px;
    }

    .container{
        margin-top:140px;
        width:95%;
    }

    .content{
        display:block;
    }

    .left{
        display:block;
        width:100%;
    }

    #movieTitle{
        display:block;
        font-size:28px;
        color:#fff;
        margin:0 0 15px;
        line-height:1.3;
    }

    .movie-tags{
        display:flex;
        flex-wrap:wrap;
        gap:8px;
        margin-bottom:20px;
    }

    .movie-tags span{
        display:inline-block;
    }
.servers{
	    flex-direction:column;
        grid-template-columns:repeat(3,1fr);
        gap:6px;
    }

    .server{
        padding:10px 4px;
        font-size:12px;
    }

    .server i{
        display:none;
    }
 .servers .server:last-child{
        display:none;
    }

    .servers{
        grid-template-columns:repeat(3,1fr);
    }

}

@media(max-width:576px){

header{

    padding:15px;

}

.logo{

    font-size:22px;

}

.logo i{

    font-size:24px;

}

.hero{

    height:70vh;

}

.hero-overlay{

    padding:0 20px;

}

.hero h1{

    font-size:32px;

}

.movie-meta{

    gap:10px;

}

.movie-meta span{

    font-size:12px;

    padding:6px 12px;

}

.movie-tags{

    gap:8px;

}

.movie-tags span{

    font-size:12px;

    padding:7px 12px;

}

.movie-grid{

    grid-template-columns:1fr;

}

.movie-card img{

    height:420px;

}

.player-header{

    flex-direction:column;

    align-items:flex-start;

    gap:12px;

}

.widget{

    padding:20px;

}

.footer-content{

    padding:45px 15px 30px;

}

.footer-content h2{

    font-size:28px;

}

}

/* ==========================================
SMOOTH FADE-IN ANIMATION
==========================================*/

.player-area,
.server-box,
.movie-info,
.description,
.plan-card,
.movie-card,
.widget{

    animation:fadeUp .8s ease both;

}

.plan-card:nth-child(2){

    animation-delay:.15s;

}

.plan-card:nth-child(3){

    animation-delay:.3s;

}

.movie-card:nth-child(2){

    animation-delay:.1s;

}

.movie-card:nth-child(3){

    animation-delay:.2s;

}

.movie-card:nth-child(4){

    animation-delay:.3s;

}