* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #80c000;
    --green-light: #a8e600;
    --dark: #070909;
    --card: #111515;
    --text: #ffffff;
    --muted: #a7adad;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}


/*  
   BACKGROUND
     */

.background {
    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(128, 192, 0, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(0, 180, 80, 0.12),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #050606,
            #111515,
            #060808
        );

    z-index: -3;
}

.overlay {
    position: fixed;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.25),
            rgba(0,0,0,0.92)
        );

    z-index: -2;
}


/*  
   HEADER
     */

.header {
    height: 80px;

    display: flex;
    align-items: center;

    padding: 0 5%;

    gap: 35px;

    background: rgba(0, 0, 0, 0.72);

    backdrop-filter: blur(15px);

    position: sticky;
    top: 0;

    z-index: 100;
}


.logo {
    font-size: 22px;
    font-weight: bold;

    white-space: nowrap;
}

.logo span {
    color: var(--green-light);
    margin-right: 7px;
}


nav {
    display: flex;
    gap: 8px;

    flex: 1;
}


.nav-btn {
    border: none;

    background: transparent;

    color: #aaa;

    padding: 10px 14px;

    cursor: pointer;

    font-size: 14px;

    border-radius: 4px;

    transition: 0.2s;
}

.nav-btn:hover,
.nav-btn.active {
    color: white;
    background: rgba(128, 192, 0, 0.22);
}


.search-container {
    display: flex;

    background: #171b1b;

    border: 1px solid #303535;

    border-radius: 5px;

    overflow: hidden;
}

.search-container input {
    width: 160px;

    background: transparent;

    border: none;

    outline: none;

    padding: 10px 12px;

    color: white;
}

.search-container button {
    border: none;

    background: transparent;

    color: white;

    padding: 0 12px;

    cursor: pointer;
}


/*  
   HERO
     */

.hero {
    min-height: 460px;

    display: flex;
    align-items: center;

    padding: 70px 8% 40px;

    position: relative;
}


.hero::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 180px;

    background:
        linear-gradient(
            transparent,
            #070909
        );

    pointer-events: none;
}


.hero-info {
    max-width: 650px;

    position: relative;

    z-index: 2;
}


.featured-label {
    color: var(--green-light);

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;
}


.hero h1 {
    font-size: clamp(38px, 6vw, 70px);

    margin: 15px 0;

    line-height: 0.95;
}


.hero p {
    color: #c0c5c5;

    line-height: 1.6;

    max-width: 580px;

    margin-bottom: 20px;
}


.movie-info {
    display: flex;

    gap: 12px;

    color: #c8cece;

    font-size: 14px;

    margin-bottom: 25px;
}


.watch-button {
    border: none;

    background: var(--green);

    color: #071000;

    font-weight: bold;

    padding: 14px 25px;

    border-radius: 4px;

    cursor: pointer;

    transition: 0.2s;

    box-shadow:
        0 0 20px
        rgba(128, 192, 0, 0.18);
}


.watch-button:hover {
    background: var(--green-light);

    transform: translateY(-2px);
}


/*  
   CATALOG
     */

.catalog {
    padding: 20px 5% 120px;
}


.section-title {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}


.section-title h2 {
    font-size: 22px;
}


.section-title span {
    color: #777;

    font-size: 13px;
}


.movies-container {
    display: flex;

    gap: 18px;

    overflow-x: auto;

    padding: 15px 5px 30px;

    scrollbar-width: thin;
    scrollbar-color: var(--green) #111;
}


.movies-container::-webkit-scrollbar {
    height: 7px;
}

.movies-container::-webkit-scrollbar-track {
    background: #111;
}

.movies-container::-webkit-scrollbar-thumb {
    background: var(--green);

    border-radius: 20px;
}


/*  
   MOVIE CARD
     */

.movie-card {
    flex: 0 0 190px;

    height: 285px;

    position: relative;

    border-radius: 5px;

    overflow: hidden;

    cursor: pointer;

    background: var(--card);

    border: 2px solid transparent;

    transition:
        transform 0.25s,
        border 0.25s,
        box-shadow 0.25s;
}


.movie-card:hover,
.movie-card.selected {
    transform:
        scale(1.08)
        translateY(-8px);

    border-color: var(--green-light);

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.7),
        0 0 20px
        rgba(128, 192, 0, 0.25);

    z-index: 5;
}


.movie-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


.movie-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            transparent 50%,
            rgba(0,0,0,0.95)
        );
}


.card-info {
    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 12px;

    z-index: 2;
}


.card-info h3 {
    font-size: 15px;

    margin-bottom: 5px;
}


.card-info p {
    color: #aaa;

    font-size: 11px;
}


/*  
   MODAL
     */

.movie-modal,
.player-modal {
    position: fixed;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.85);

    backdrop-filter: blur(8px);

    z-index: 500;

    padding: 25px;
}


.movie-modal.show,
.player-modal.show {
    display: flex;
}


.modal-content {
    width: min(900px, 100%);

    display: flex;

    background: #101414;

    border: 1px solid #343a3a;

    border-radius: 8px;

    overflow: hidden;

    position: relative;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,0.8);
}


.modal-poster {
    width: 40%;

    min-height: 500px;
}


.modal-poster img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.modal-info {
    flex: 1;

    padding: 55px 40px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.modal-info h2 {
    font-size: 40px;

    margin: 12px 0 18px;
}


.modal-info p {
    color: #adb3b3;

    line-height: 1.7;

    margin-bottom: 25px;
}


.close-modal,
.close-player {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    border: none;

    border-radius: 50%;

    background: rgba(0,0,0,0.6);

    color: white;

    font-size: 25px;

    cursor: pointer;

    z-index: 10;
}


/* 
   PLAYER
 */

.player-content {
    width: min(1100px, 100%);

    position: relative;

    background: black;

    border: 1px solid #333;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,0.9);
}


.player-content video {
    display: block;

    width: 100%;

    max-height: 80vh;

    background: black;
}


.close-player {
    top: -50px;
    right: 0;
}


/* 
   CONTROLS
 */

.controls {
    position: fixed;

    bottom: 20px;
    right: 25px;

    display: flex;

    gap: 8px;

    z-index: 200;
}


.controls span {
    background: rgba(0,0,0,0.7);

    border: 1px solid #303535;

    padding: 7px 10px;

    border-radius: 4px;

    font-size: 11px;

    color: white;
}


.controls small {
    color: #777;

    margin-left: 4px;
}


/* 
   RESPONSIVO
 */

@media (max-width: 900px) {

    .header {
        height: auto;

        padding: 15px;

        flex-wrap: wrap;

        gap: 12px;
    }

    nav {
        order: 3;

        width: 100%;

        overflow-x: auto;
    }

    .search-container {
        margin-left: auto;
    }

    .hero {
        padding: 70px 6% 40px;
    }

    .movie-card {
        flex-basis: 160px;
        height: 240px;
    }

    .modal-content {
        flex-direction: column;

        max-height: 90vh;

        overflow-y: auto;
    }

    .modal-poster {
        width: 100%;

        height: 350px;

        min-height: 0;
    }

    .modal-info {
        padding: 30px;
    }

    .modal-info h2 {
        font-size: 30px;
    }

    .controls {
        display: none;
    }
}


@media (max-width: 550px) {

    .logo {
        font-size: 17px;
    }

    .search-container {
        width: 100%;
    }

    .search-container input {
        flex: 1;

        width: auto;
    }

    .hero {
        min-height: 400px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .movie-card {
        flex-basis: 145px;

        height: 220px;
    }

    .catalog {
        padding-left: 15px;
        padding-right: 15px;
    }
}