 /* =========================================
   GLOBAL RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


/* =========================================
   MAIN DISPLAY SECTION
========================================= */
body{  
   
   overflow-x : hidden; 
   overflow-y : auto;
   scroll-behavior: smooth;

     }



#display-cards{
    display:flex;
    width:100%;
    min-height:100vh;
    background:#0a0f1c;
}


/* =========================================
   LEFT SIDEBAR
========================================= */

#left-display{
    width:22%;
    min-width:240px;
    background:blue;
    position:sticky;
    top:0;
    height:100vh;
    overflow-y:auto;
    padding-bottom:20px;
}

#left-display h1{
    color:yellow;
    padding-top:15px;
    text-align:center;
    text-shadow:2px 3px 2px #000000;
    font-size:35px;
    font-family:sans-serif;
    letter-spacing:2px;
}

#left-display ul{
    padding:20px;
}

#left-display ul li{
    list-style:square;
    color:yellow;
    padding:12px 10px;
    font-size:20px;
    margin-left:5px;
}

#left-display ul li a{
    color:white;
    font-size:20px;
    text-decoration:none;
    font-family:sans-serif;
    text-shadow:1px 2px 1px #000000;
    letter-spacing:1px;
    transition:0.3s;
}

#left-display ul li a:hover{
    color:fuchsia;
    text-decoration:underline;
}


/* =========================================
   RIGHT DISPLAY
========================================= */

#right-display{
    width:78%;
    min-height:100vh;
    background:#0a0f1c;
    border:1px solid white;
    padding:20px;
    overflow-x:hidden;
}


/* =========================================
   MOVIE SECTIONS
========================================= */

.movies-section{
    width:100%;
    min-height:100vh;
    background:#0a0f1c;
}

.movies-section h2,
.movies-section p{
    color:white;
}

.channel-desc{
    color:#898fa8;
    font-size:14px;
    margin-bottom:15px;
}


/* =========================================
   MOVIES GRID
========================================= */

.movies-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(210px, 240px));
    align-items:start;
    justify-content:start;
    gap:22px;
    margin-top:20px;
}


/* =========================================
   MOVIE CARD
========================================= */

.film-card{
    background:#11161f;
    border-radius:16px;
    overflow:hidden;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
    cursor:pointer;
    width:100%;
    max-width:240px;
}

.film-card:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 20px #FF7518;
}

.film-card img{
    width:100%;
    aspect-ratio:2 / 3;
    height:auto;
    object-fit:cover;
    display:block;
}


/* =========================================
   MOVIE INFO
========================================= */

.movie-info{
    padding:1rem;
    min-height:150px;
}

.movie-info h2,
.movie-info h3{
    font-size:1.1rem;
    margin-bottom:0.5rem;
    color:white;
}

.movie-info p{
    font-size:0.9rem;
    color:#aaa;
    line-height:1.6;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.rating{
    color:#ffc107;
    margin-top:0.5rem;
    font-size:0.9rem;
}


/* =========================================
   VIDEO PLAYER
========================================= */

#movieVideo{
    width:100%;
    height:auto;
    object-fit:cover;
    border-radius:12px;
}


/* =========================================
   SECTION TITLES
========================================= */

.movies-section h2.section-title,
.section-title{
    color:#4169e1;
    text-shadow:2px 2px 4px rgba(255,255,255,0.4);
    padding:20px 20px 5px;
    letter-spacing:1.5px;
    font-family:sans-serif;
    font-size:24px;
    border-bottom:2px solid rgba(255,216,77,0.3);
    margin-bottom:15px;
}


/* =========================================
   CUSTOM SCROLLBAR
========================================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:#ff7518;
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:orange;
}


/* =========================================
   TABLET RESPONSIVE
========================================= */

@media screen and (max-width:992px){

    #display-cards{
        flex-direction:column;
    }

    #left-display{
        width:100%;
        min-width:100%;
        height:auto;
        position:relative;
    }

    #left-display h1{
        font-size:32px;
        padding:15px 10px;
    }

    #left-display ul{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;
        padding:15px;
    }

    #left-display ul li{
        list-style:none;
        padding:8px 12px;
        margin-left:0;
        background:rgba(255,255,255,0.1);
        border-radius:10px;
    }

    #left-display ul li a{
        font-size:18px;
    }

    #right-display{
        width:100%;
        padding:20px;
    }

    .movies-grid{
        grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    }

}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media screen and (max-width:768px){

    #display-cards{
        flex-direction:column;
    }

    #left-display{
        width:100%;
        min-width:100%;
        height:auto;
        position:relative;
    }

    #left-display h1{
        font-size:28px;
        padding:15px 10px;
    }

    #left-display ul{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:8px;
        padding:10px;
    }

    #left-display ul li{
        list-style:none;
        padding:8px 10px;
        margin-left:0;
        background:rgba(255,255,255,0.1);
        border-radius:8px;
    }

    #left-display ul li a{
        font-size:15px;
    }

    #right-display{
        width:100%;
        padding:15px;
    }

    .movies-grid{
        grid-template-columns:repeat(auto-fit, minmax(170px, 1fr));
        gap:18px;
    }

    .film-card img{
        height:240px;
    }

    .movie-info{
        padding:12px;
    }

    .movie-info h2,
    .movie-info h3{
        font-size:16px;
    }

    .movie-info p{
        font-size:14px;
    }

    .rating{
        font-size:14px;
    }

}


/* =========================================
   SMALL MOBILE DEVICES
========================================= */

@media screen and (max-width:480px){

    #left-display h1{
        font-size:24px;
    }

    #left-display ul{
        flex-direction:column;
        align-items:center;
    }

    #left-display ul li{
        width:90%;
        text-align:center;
    }

    #left-display ul li a{
        font-size:14px;
    }

    #right-display{
        padding:10px;
    }

    .movies-grid{
        grid-template-columns:1fr;
        gap:15px;
    }

    .film-card{
        max-width:100%;
    }

    .film-card img{
        height:220px;
    }

    .movie-info h2,
    .movie-info h3{
        font-size:15px;
    }

    .movie-info p{
        font-size:13px;
    }

    .rating{
        font-size:13px;
    }

}
