/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: #050505;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    padding: 0 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 1000;

    background: rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    border-bottom: 1px solid transparent;

    transition:
        height 0.35s ease,
        background 0.35s ease,
        backdrop-filter 0.35s ease,
        border 0.35s ease;
}

/* Navbar after scrolling */

/* Glass navbar when scrolling */

.navbar.scrolled {
    height: 70px;

    background: rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);

    transition: all 0.35s ease;
}



/* Logo */

.logo {
    color: #ffffff;

    font-size: 25px;
    font-weight: 700;

    text-decoration: none;

    letter-spacing: 1px;

    white-space: nowrap;
}


/* Navigation */

.nav-menu {
    display: flex;
    align-items: center;

    gap: 35px;
}


.nav-link {
    position: relative;

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;

    opacity: 0.7;

    transition: 0.3s ease;
}


.nav-link:hover,
.nav-link.active {
    opacity: 1;
}


/* Active underline */

.nav-link::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: #00d2b5;

    transform: translateX(-50%);

    transition: 0.3s ease;
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* Mobile menu button */

.menu-toggle {
    display: none;

    background: none;
    border: none;

    color: #ffffff;

    font-size: 23px;

    cursor: pointer;
}


/* =========================================================
   HOME
========================================================= */

.home-section {
    height: 100vh;
    min-height: 650px;

    position: relative;
}


.home-slider {
    width: 100%;
    height: 100%;

    position: relative;

    overflow: hidden;
}


/* Individual slide */
.home-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    padding: 0 8%;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;
}


.home-slide.active {
    opacity: 1;
    visibility: visible;

    z-index: 2;
}




/* Background overlay */

.slide-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.2) 75%,
            rgba(0, 0, 0, 0.4) 100%
        );
}


/* Bottom fade */

.home-slider::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 180px;

    background: linear-gradient(
        to top,
        #050505,
        transparent
    );

    z-index: 3;

    pointer-events: none;
}


/* Slide content */

.slide-content {
    position: relative;

    z-index: 4;

    max-width: 600px;

    padding-top: 50px;
}


.slide-content h1 {
    font-size: clamp(45px, 6vw, 72px);

    line-height: 1.05;

    margin-bottom: 18px;

    font-weight: 700;
}


.slide-meta {
    color: #ffffff;

    font-size: 15px;

    margin-bottom: 18px;

    opacity: 0.85;
}


.slide-meta span {
    margin: 0 8px;

    color: #00d2b5;
}


.slide-description {
    max-width: 560px;

    color: #d0d0d0;

    font-size: 15px;

    line-height: 1.7;

    margin-bottom: 28px;
}


/* Watch button */

.watch-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 25px;

    color: #ffffff;

    background: #00d2b5;

    border: 2px solid #00d2b5;

    border-radius: 30px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: 0.3s ease;
}


.watch-button:hover {
    color: #000000;

    background: #ffffff;

    border-color: #ffffff;

    transform: translateY(-3px);

    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}


/* Slider arrows */

.slider-controls {
    position: absolute;

    right: 8%;
    bottom: 55px;

    z-index: 10;

    display: flex;

    gap: 12px;
}


.slider-arrow {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.5);

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    cursor: pointer;

    transition: 0.3s ease;

    backdrop-filter: blur(5px);
}


.slider-arrow:hover {
    background: #ffffff;

    color: #000000;

    transform: translateY(-3px);
}


/* Slider dots */

.slider-dots {
    position: absolute;

    left: 8%;
    bottom: 65px;

    z-index: 10;

    display: flex;

    gap: 8px;
}


.slider-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.4);

    cursor: pointer;

    transition: 0.3s ease;
}


.slider-dot.active {
    width: 28px;

    border-radius: 10px;

    background: #00d2b5;
}


/* =========================================================
   COMMON TV + MOVIE SECTION
========================================================= */

.content-section {
    position: relative;

    min-height: 100vh;

    padding: 110px 8% 60px;

    display: flex;
    align-items: center;

    overflow: hidden;
}


.section-content {
    position: relative;

    z-index: 5;

    width: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


/* =========================================================
   TV SHOWS SECTION
========================================================= */

.tv-section {
    background:
        linear-gradient(
            90deg,
            #081719 0%,
            rgba(8, 23, 25, 0.92) 25%,
            rgba(8, 23, 25, 0.35) 65%,
            rgba(8, 23, 25, 0.7) 100%
        ),
        url("Breaking\ Bad.webp") center / cover no-repeat;
}


/* =========================================================
   MOVIES SECTION
========================================================= */

.movies-section {
    background:
        linear-gradient(
            90deg,
            #090909 0%,
            rgba(9, 9, 9, 0.9) 25%,
            rgba(9, 9, 9, 0.35) 65%,
            rgba(9, 9, 9, 0.7) 100%
        ),
        url("Titanic.webp") center / cover no-repeat;
}


/* =========================================================
   MEDIA DETAILS
========================================================= */

.media-details {
    max-width: 550px;

    margin-bottom: 50px;
}


.media-title {
    font-size: clamp(40px, 5vw, 60px);

    font-weight: 400;

    letter-spacing: 3px;

    line-height: 1.1;

    margin-bottom: 12px;
}


.media-season {
    color: #ffffff;

    font-size: 16px;

    margin-bottom: 12px;

    opacity: 0.8;
}


/* Rating */

.rating {
    display: flex;

    gap: 5px;

    margin-bottom: 14px;

    color: #ffb400;

    font-size: 14px;
}


/* Meta */

.media-meta {
    color: #a7a7a7;

    font-size: 14px;

    margin-bottom: 20px;
}


.media-meta span {
    margin: 0 7px;

    color: #00d2b5;
}


/* =========================================================
   MEDIA BUTTONS
========================================================= */

.media-actions {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 25px;
}


.play-button,
.add-button {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 2px solid #00d2b5;

    background: #00d2b5;

    color: #ffffff;

    font-size: 15px;

    cursor: pointer;

    text-decoration: none;

    transition: 0.3s ease;
}


.add-button {
    background: transparent;
}


.play-button:hover,
.add-button:hover {
    background: #ffffff;

    color: #000000;

    border-color: #ffffff;

    transform: translateY(-3px);

    box-shadow: 0 8px 25px rgba(0, 210, 181, 0.2);
}


/* Description */

.media-description {
    max-width: 520px;

    color: #b0b0b0;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   TV SHOW CARDS
   IMPORTANT: TV ONLY
========================================================= */

.tv-list {
    width: 100%;

    display: flex;

    gap: 20px;

    overflow-x: auto;

    padding: 10px 5px 20px;

    scrollbar-width: none;
}


.tv-list::-webkit-scrollbar {
    display: none;
}


.tv-card {
    flex: 0 0 145px;

    text-align: center;

    cursor: pointer;

    transition: 0.3s ease;
}


.tv-card img {
    width: 145px;
    height: 210px;

    display: block;

    object-fit: cover;

    border-radius: 10px;

    margin-bottom: 10px;

    transition: 0.3s ease;
}


.tv-card span {
    display: block;

    color: #ffffff;

    font-size: 13px;

    line-height: 1.4;

    transition: 0.3s ease;
}


.tv-card:hover {
    transform: translateY(-7px);
}


.tv-card:hover img {
    transform: scale(1.03);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}


.tv-card:hover span {
    color: #00d2b5;
}


.tv-card.active {
    border-bottom: 2px solid #00d2b5;

    padding-bottom: 10px;
}


/* =========================================================
   MOVIE CARDS
   IMPORTANT: MOVIES ONLY
========================================================= */

.movie-list {
    width: 100%;

    display: flex;

    gap: 20px;

    overflow-x: auto;

    padding: 10px 5px 20px;

    scrollbar-width: none;
}


.movie-list::-webkit-scrollbar {
    display: none;
}


.movie-card {
    flex: 0 0 145px;

    

    text-align: center;

    cursor: pointer;

    transition: 0.3s ease;
}


.movie-card img {
    width: 145px;
    height: 210px;

    display: block;

    object-fit: cover;

    border-radius: 10px;

    margin-bottom: 10px;

    transition: 0.3s ease;
}


.movie-card span {
    display: block;

    color: #ffffff;

    font-size: 13px;

    line-height: 1.4;

    transition: 0.3s ease;
}


.movie-card:hover {
    transform: translateY(-7px);
}


.movie-card:hover img {
    transform: scale(1.03);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}


.movie-card:hover span {
    color: #00d2b5;
}


.movie-card.active {
    border-bottom: 2px solid #00d2b5;

    padding-bottom: 10px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .navbar {
        padding: 0 5%;
    }

    .content-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .home-slide {
        padding: 0 5%;
    }

    .slider-controls {
        right: 5%;
    }

    .slider-dots {
        left: 5%;
    }

    .media-details {
        max-width: 500px;
    }

    .tv-card,
    .movie-card {
        flex-basis: 130px;
    }

    .tv-card img,
    .movie-card img {
        width: 130px;
        height: 190px;
    }

}


/* =========================================================
   MOBILE
========================================================= */
@media screen and (max-width: 600px) {

    #tv-shows {
        background:
            linear-gradient(
                90deg,
                rgba(8, 23, 25, 0.95),
                rgba(8, 23, 25, 0.55)
            ),
            url("BB.webp") center / cover no-repeat;
    }

    #movies {
        background:
            linear-gradient(
                90deg,
                rgba(9, 9, 9, 0.95),
                rgba(9, 9, 9, 0.55)
            ),
            url("Titanic-m.webp") center / cover no-repeat;
    }

    .home-slide:nth-child(1) {
        background-image: url("Cars-m.webp") !important;
    }

    .home-slide:nth-child(2) {
        background-image: url("Heidi-m.webp") !important;
    }

    .home-slide:nth-child(3) {
        background-image: url("Panda-m.webp") !important;
    }

    .home-slide:nth-child(4) {
        background-image: url("Spider-m.webp") !important;
    }

}


    html {
        scroll-padding-top: 70px;
    }


    /* Navbar */

    .navbar {
        height: 70px;

        padding: 0 5%;
    }


    .navbar.scrolled {
        height: 65px;
    }


    .logo {
        font-size: 21px;
    }


    .menu-toggle {
        display: block;

        position: relative;

        z-index: 1002;
    }


    .nav-menu {
        position: absolute;

        top: 70px;
        right: 5%;

        width: 180px;

        padding: 20px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

        background: rgba(10, 10, 10, 0.96);

        border: 1px solid rgba(255, 255, 255, 0.1);

        border-radius: 12px;

        backdrop-filter: blur(15px);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition: 0.3s ease;
    }


    .nav-menu.open {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    .nav-link {
        width: 100%;

        padding: 5px 0;
    }


    /* Home */

    .home-section {
        min-height: 600px;
    }


    .home-slide {
        padding: 0 5%;

        align-items: flex-end;

        padding-bottom: 120px;

        background-position: center;
    }


    .slide-overlay {
        background:
            linear-gradient(
                to top,
                rgba(0, 0, 0, 0.95) 5%,
                rgba(0, 0, 0, 0.65) 55%,
                rgba(0, 0, 0, 0.2) 100%
            );
    }


    .slide-content {
        max-width: 100%;

        padding-top: 0;
    }


    .slide-content h1 {
        font-size: 42px;

        margin-bottom: 12px;
    }


    .slide-meta {
        font-size: 13px;

        margin-bottom: 12px;
    }


    .slide-description {
        font-size: 13px;

        line-height: 1.6;

        margin-bottom: 20px;

        display: -webkit-box;
        -webkit-line-clamp:3;
        line-clamp: 3;
        -webkit-box-orient: vertical;

        overflow: hidden;
    }


    .watch-button {
        padding: 10px 20px;

        font-size: 13px;
    }


    /* Slider controls */

    .slider-controls {
        right: 5%;

        bottom: 35px;
    }


    .slider-arrow {
        width: 42px;
        height: 42px;
    }


    .slider-dots {
        left: 5%;

        bottom: 50px;
    }


    /* Content sections */

    .content-section {
        min-height: 100vh;

        padding: 100px 5% 50px;

        align-items: flex-end;
    }


    .section-content {
        padding-bottom: 10px;
    }


    .media-details {
        margin-bottom: 30px;
    }


    .media-title {
        font-size: 38px;

        letter-spacing: 2px;
    }


    .media-description {
        font-size: 13px;

        line-height: 1.6;

        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        
        -webkit-box-orient: vertical;

        overflow: hidden;
    }




    


    /* Cards */

    .tv-list,
    .movie-list {
        gap: 35px;

        padding-bottom: 15px;
    }


    .tv-card,
    .movie-card {
        flex: 0 0 160px;
    }


    .tv-card img,
    .movie-card img {
        width: 160px;

        height: 230px;

        border-radius: 8px;
    }


    .tv-card span,
    .movie-card span {
        font-size: 11px;
    }




/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .slide-content h1 {
        font-size: 36px;
    }


    .slide-description {
        -webkit-line-clamp:2;
         line-clamp: 2;
    }


    .media-title {
        font-size: 34px;
    }


    .tv-card,
    .movie-card {
        flex-basis: 100px;
    }


    .tv-card img,
    .movie-card img {
        width: 100px;
        height: 145px;
    }

}




/* ================= FOOTER ================= */

.site-footer {
    background: #050505;
    padding: 45px 8% 20px;
    color: white;
}


/* Quick Links */

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-links h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}


/* Line + Copyright */

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #666;
    font-size: 12px;
}


/* ================= MOBILE ================= */

@media screen and (max-width: 600px) {

    .site-footer {
        padding: 40px 7% 20px;
    }

    .footer-links {
        align-items:center;
    }

    .footer-bottom {
        margin-top: 35px;
    }

}

