/* =====================================================
   SHADOW MOVIE
   MAIN STYLE
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #080808;
    color: #fff;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

button,
input {
    font-family: inherit;
}


/* =====================================================
   COLORS
===================================================== */

.blue {
    color: #168cff;
}

.white {
    color: #ffffff;
}

.red {
    color: #ed1230;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    width: 100%;
    height: 76px;

    background: rgba(8, 8, 8, 0.97);
    border-bottom: 1px solid #202020;

    display: flex;
    align-items: center;

    padding: 0 24px;
    gap: 18px;

    position: sticky;
    top: 0;
    z-index: 1000;
}


/* =====================================================
   MENU BUTTON
===================================================== */

.menu-btn {
    width: 52px;
    height: 52px;

    border: 0;
    border-radius: 16px;

    background: #151515;
    color: #fff;

    font-size: 28px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    transition: .2s ease;
}

.menu-btn:hover {
    background: #1d1d1d;
}

.menu-btn:active {
    transform: scale(.94);
}


/* =====================================================
   LOGO
===================================================== */

.logo {
    display: flex;
    align-items: center;

    min-width: 0;

    margin-right: auto;
}

.logo h1 {
    margin: 0;
    padding: 0;

    font-size: 25px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: -1.1px;

    white-space: nowrap;
}

.logo .blue,
.logo .white,
.logo .red {
    display: inline;
}


/* =====================================================
   DESKTOP NAV
===================================================== */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.desktop-nav a {
    color: #eee;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition: .2s ease;
}

.desktop-nav a:hover {
    color: #168cff;
}


/* =====================================================
   SEARCH BUTTON
===================================================== */

.search-btn {
    width: 52px;
    height: 52px;

    border: 0;
    border-radius: 50%;

    background: #168cff;
    color: white;

    font-size: 25px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    box-shadow:
        0 0 22px rgba(22, 140, 255, .22);

    transition: .2s ease;
}

.search-btn:hover {
    background: #2898ff;
}

.search-btn:active {
    transform: scale(.92);
}


/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {
    position: fixed;

    top: 0;
    left: -290px;

    width: 275px;
    height: 100vh;

    background: #111;

    border-right: 1px solid #292929;

    z-index: 2000;

    padding: 24px 18px;

    transition: left .3s ease;

    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 800;

    white-space: nowrap;
}

.close-menu {
    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 12px;

    background: #222;
    color: white;

    font-size: 25px;

    cursor: pointer;
}

.sidebar a {
    display: block;

    color: #eee;

    text-decoration: none;

    padding: 14px;

    margin-bottom: 6px;

    border-radius: 12px;

    font-size: 14px;

    transition: .2s ease;
}

.sidebar a:hover {
    background: #1d1d1d;
    color: #168cff;
}


/* =====================================================
   SIDEBAR OVERLAY
===================================================== */

.sidebar-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, .65);

    z-index: 1500;

    display: none;
}

.sidebar-overlay.active {
    display: block;
}


/* =====================================================
   SEARCH PANEL
===================================================== */

.search-panel {
    position: fixed;

    top: 88px;
    right: 18px;

    width: min(
        420px,
        calc(100% - 36px)
    );

    background: #151515;

    border: 1px solid #292929;

    padding: 10px;

    border-radius: 16px;

    z-index: 1200;

    display: none;

    box-shadow:
        0 15px 40px rgba(0,0,0,.55);
}

.search-panel.active {
    display: flex;
}

.search-panel input {
    width: 100%;

    border: 0;
    outline: 0;

    background: #202020;

    color: white;

    padding: 14px 16px;

    border-radius: 12px;

    font-size: 14px;
}

.search-panel input::placeholder {
    color: #888;
}


/* =====================================================
   HERO
   MIRACULOUS BACKGROUND
===================================================== */

.hero {
    min-height: 680px;
    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.60) 45%,
            rgba(0, 0, 0, 0.25) 75%,
            rgba(0, 0, 0, 0.70) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.10) 60%,
            rgba(0, 0, 0, 0.30) 100%
        ),
        url("../assets/miraculous-bg.jpg");

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.hero-content {
    width: min(
        700px,
        100%
    );

    padding: 60px 42px;
}

.hero-small {
    color: #aaa;

    font-size: 17px;

    margin-bottom: 16px;
}

.hero h2 {
    font-size:
        clamp(
            42px,
            6vw,
            72px
        );

    line-height: 1.08;

    margin: 0 0 23px;

    font-weight: 800;

    letter-spacing: -2px;
}

.hero p {
    color: #bbb;

    font-size: 19px;

    line-height: 1.6;

    margin: 0 0 30px;
}

.browse-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 230px;

    padding: 16px 27px;

    border-radius: 12px;

    background: #f20d20;

    color: white;

    text-decoration: none;

    font-size: 17px;

    font-weight: 700;

    box-shadow:
        0 12px 30px
        rgba(242,13,32,.20);

    transition: .2s ease;
}

.browse-btn:hover {
    background: #ff172b;

    transform: translateY(-2px);
}


/* =====================================================
   MAIN
===================================================== */

main {
    width: 100%;
}

.content {
    width: 100%;

    max-width: 1400px;

    margin: auto;

    padding: 0 28px 60px;
}


/* =====================================================
   CATEGORIES
===================================================== */

.category-section {
    padding: 35px 0 10px;
}

.section-heading {
    font-size: 32px;

    margin: 0 0 20px;

    font-weight: 700;
}

.categories {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.category-btn {
    border: 0;

    background: #171717;

    color: #ddd;

    padding: 10px 19px;

    border-radius: 25px;

    font-size: 14px;

    cursor: pointer;

    transition: .2s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #168cff;

    color: white;
}


/* =====================================================
   MOVIE SECTIONS
===================================================== */

.movie-section {
    padding-top: 55px;

    scroll-margin-top: 90px;
}

.movie-section-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 22px;
}

.movie-section-title h2 {
    margin: 0;

    font-size: 31px;

    font-weight: 700;
}


/* =====================================================
   MOVIE GRID
===================================================== */

.movie-grid {
    display: grid;

    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );

    gap: 18px;
}


/* =====================================================
   MOVIE CARD
   POSTER STYLE
===================================================== */

.movie-card {

    position: relative;

    min-width: 0;

    width: 100%;

    aspect-ratio: 2 / 3;

    background: #111;

    border-radius: 7px;

    overflow: hidden;

    border: 1px solid #242424;

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


/* =====================================================
   HOVER
===================================================== */

.movie-card:hover {

    transform: translateY(-4px);

    border-color: #3c3c3c;

    box-shadow:
        0 12px 28px
        rgba(0,0,0,.45);

}


/* =====================================================
   POSTER
===================================================== */

.movie-poster {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    background: #191919;

}


/* =====================================================
   MOVIE INFO OVER POSTER
===================================================== */

.movie-info {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding:
        45px
        8px
        8px;

    background:
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0,0,0,.15) 25%,
            rgba(0,0,0,.75) 70%,
            rgba(0,0,0,.95) 100%
        );

}


/* =====================================================
   MOVIE NAME
===================================================== */

.movie-info h3 {

    margin: 0;

    color: #fff;

    font-size: 13px;

    line-height: 1.25;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    text-shadow:
        0 2px 5px rgba(0,0,0,.9);

}


/* =====================================================
   MOVIE META
===================================================== */

.movie-meta {

    color: #aaa;

    font-size: 9px;

    margin-top: 2px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


/* =====================================================
   RATING
===================================================== */

.movie-rating {

    position: absolute;

    top: 7px;
    right: 7px;

    background: #ffd21c;

    color: #111;

    padding:
        4px
        7px;

    border-radius: 4px;

    font-size: 11px;

    font-weight: 700;

    line-height: 1;

    z-index: 5;

    box-shadow:
        0 2px 5px rgba(0,0,0,.35);

}


/* =====================================================
   QUALITY BADGE
===================================================== */

.movie-card::before {

    content: "WEB-DL";

    position: absolute;

    top: 7px;
    left: 7px;

    background: #ed1230;

    color: #fff;

    padding:
        4px
        7px;

    border-radius: 4px;

    font-size: 10px;

    font-weight: 700;

    line-height: 1;

    z-index: 5;

}


/* =====================================================
   CUSTOM QUALITY BADGE
===================================================== */

.movie-quality,
.quality,
.movie-badge {

    position: absolute;

    top: 7px;
    left: 7px;

    background: #ed1230;

    color: white;

    padding:
        4px
        7px;

    border-radius: 4px;

    font-size: 10px;

    font-weight: 700;

    line-height: 1;

    z-index: 6;

}


/* =====================================================
   HIDE EXTRA CARD DETAILS
===================================================== */

.movie-card .movie-details,
.movie-card .movie-year,
.movie-card .movie-category,
.movie-card .movie-description,
.movie-card .view-details,
.movie-card .details-btn {

    max-height: 0;

    overflow: hidden;

    margin: 0;

    padding: 0;

}


/* =====================================================
   EMPTY MOVIES
===================================================== */

.movie-empty {

    grid-column: 1 / -1;

    min-height: 180px;

    background: #111;

    border: 1px solid #242424;

    border-radius: 18px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: #777;

}

.movie-empty strong {

    font-size: 20px;

    color: #777;

}

.movie-empty span {

    margin-top: 5px;

    font-size: 14px;

}


/* =====================================================
   FOOTER
===================================================== */

footer {

    margin-top: 50px;

    padding: 45px 25px;

    text-align: center;

    background: #050505;

    border-top: 1px solid #1c1c1c;

}

footer h2 {

    margin: 0 0 10px;

    font-size: 23px;

    font-weight: 800;

}

footer p {

    margin: 5px 0;

    color: #777;

    font-size: 13px;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .movie-grid {

        grid-template-columns:
            repeat(
                5,
                minmax(0, 1fr)
            );

        gap: 15px;

    }

}


/* =====================================================
   SMALL LAPTOP / TABLET
===================================================== */

@media (max-width: 850px) {

    .desktop-nav {
        display: none;
    }

    .navbar {

        height: 70px;

        padding: 0 16px;

        gap: 12px;

    }

    .menu-btn,
    .search-btn {

        width: 50px;

        height: 50px;

    }

    .logo h1 {

        font-size: 23px;

        letter-spacing: -1px;

    }

    .hero {

        min-height: 570px;

        background-position: 62% center;

    }

    .hero-content {

        padding:
            55px
            32px;

    }

    .hero h2 {

        font-size: 50px;

    }

    .movie-grid {

        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );

        gap: 12px;

    }

    .content {

        padding-left: 20px;

        padding-right: 20px;

    }

}


/* =====================================================
   PHONE
   EXACTLY 3 MOVIES PER ROW
===================================================== */

@media (max-width: 600px) {

    /* HEADER */

    .navbar {

        height: 68px;

        padding: 0 12px;

        gap: 10px;

    }

    .menu-btn {

        width: 48px;

        height: 48px;

        border-radius: 15px;

        font-size: 26px;

    }

    .search-btn {

        width: 48px;

        height: 48px;

        font-size: 22px;

    }

    .logo h1 {

        font-size: 20px;

        letter-spacing: -.8px;

    }

    .desktop-nav {

        display: none;

    }


    /* HERO */

    .hero {

        min-height: 570px;

        background-position: 68% center;

    }

    .hero-content {

        padding:
            50px
            22px
            55px;

    }

    .hero-small {

        font-size: 14px;

        margin-bottom: 14px;

    }

    .hero h2 {

        font-size: 40px;

        line-height: 1.08;

        letter-spacing: -1.2px;

        margin-bottom: 20px;

    }

    .hero p {

        font-size: 15px;

        line-height: 1.55;

        margin-bottom: 28px;

    }

    .browse-btn {

        width: 100%;

        min-width: 0;

        padding: 15px;

        font-size: 16px;

    }


    /* MAIN */

    .content {

        padding:
            0
            13px
            45px;

    }

    .category-section {

        padding-top: 25px;

    }

    .section-heading {

        font-size: 26px;

    }

    .categories {

        gap: 7px;

    }

    .category-btn {

        padding:
            8px
            13px;

        font-size: 12px;

    }


    /* MOVIE SECTION */

    .movie-section {

        padding-top: 40px;

    }

    .movie-section-title {

        margin-bottom: 17px;

    }

    .movie-section-title h2 {

        font-size: 25px;

    }


    /* =================================================
       3 CARDS PER ROW
    ================================================= */

    .movie-grid {

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap: 9px;

    }


    /* =================================================
       SMALL MOVIE CARD
    ================================================= */

    .movie-card {

        width: 100%;

        aspect-ratio: 2 / 3;

        border-radius: 6px;

    }


    /* POSTER */

    .movie-poster {

        width: 100%;

        height: 100%;

        object-fit: cover;

    }


    /* INFO */

    .movie-info {

        padding:
            35px
            6px
            6px;

    }


    /* NAME */

    .movie-info h3 {

        font-size: 10px;

        line-height: 1.2;

        font-weight: 600;

    }


    /* META */

    .movie-meta {

        font-size: 7px;

        margin-top: 2px;

    }


    /* RATING */

    .movie-rating {

        top: 5px;

        right: 5px;

        padding:
            4px
            5px;

        font-size: 8px;

        border-radius: 3px;

    }


    /* QUALITY */

    .movie-card::before {

        top: 5px;

        left: 5px;

        padding:
            4px
            5px;

        font-size: 7px;

        border-radius: 3px;

    }


    .movie-quality,
    .quality,
    .movie-badge {

        top: 5px;

        left: 5px;

        padding:
            4px
            5px;

        font-size: 7px;

        border-radius: 3px;

    }


    /* EMPTY */

    .movie-empty {

        min-height: 145px;

        border-radius: 12px;

    }

    .movie-empty strong {

        font-size: 15px;

    }

    .movie-empty span {

        font-size: 10px;

    }


    /* SEARCH */

    .search-panel {

        top: 78px;

        right: 10px;

        width:
            calc(
                100% - 20px
            );

    }


    /* SIDEBAR */

    .sidebar {

        width: 270px;

    }

    .sidebar-title {

        font-size: 19px;

    }


    /* FOOTER */

    footer {

        padding:
            35px
            15px;

    }

    footer h2 {

        font-size: 21px;

    }

}


/* =====================================================
   VERY SMALL PHONES
===================================================== */

@media (max-width: 380px) {

    .navbar {

        padding:
            0
            9px;

        gap: 8px;

    }

    .menu-btn,
    .search-btn {

        width: 45px;

        height: 45px;

    }

    .logo h1 {

        font-size: 18px;

        letter-spacing: -.7px;

    }

    .hero h2 {

        font-size: 36px;

    }

    .hero-small {

        font-size: 13px;

    }


    /* 3 cards */

    .movie-grid {

        gap: 7px;

    }


    .movie-card {

        aspect-ratio: 2 / 3;

        border-radius: 5px;

    }


    .movie-info {

        padding:
            30px
            5px
            5px;

    }

    .movie-info h3 {

        font-size: 9px;

    }

    .movie-meta {

        font-size: 6px;

    }

    .movie-rating {

        top: 4px;

        right: 4px;

        padding:
            3px
            4px;

        font-size: 7px;

    }

    .movie-card::before {

        top: 4px;

        left: 4px;

        padding:
            3px
            4px;

        font-size: 6px;

    }

}