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

body {
    background: #0b0b0b;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}


/* NAVBAR */

.navbar {
    height: 70px;

    display: flex;
    align-items: center;

    padding: 0 40px;

    background: #080808;

    gap: 50px;

    position: relative;
    z-index: 10;
}

.logo {
    font-size: 25px;
    font-weight: bold;

    color: #e50914;
}

nav {
    display: flex;
    gap: 28px;

    flex: 1;
}

nav a {
    color: #cccccc;
    text-decoration: none;

    font-size: 15px;
}

nav a:hover {
    color: white;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.nav-actions button {
    background: transparent;
    color: #ffffff;

    border: 1px solid #444;

    padding: 8px 14px;

    border-radius: 4px;

    cursor: pointer;
}


/* HERO */

.hero {
    min-height: 560px;

    display: flex;
    align-items: center;

    padding: 80px;

    background:
        linear-gradient(
            90deg,
            #0b0b0b 0%,
            rgba(11, 11, 11, 0.85) 35%,
            rgba(11, 11, 11, 0.25) 100%
        );

    border-bottom: 1px solid #222;
}

.hero-content {
    max-width: 600px;
}

.hero-label {
    color: #e50914;

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

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: 56px;

    line-height: 1.05;

    margin-bottom: 20px;
}

.hero-description {
    color: #cccccc;

    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.watch-button,
.info-button {
    border: none;

    padding: 13px 22px;

    border-radius: 5px;

    font-size: 15px;

    cursor: pointer;
}

.watch-button {
    background: #e50914;
    color: white;
}

.info-button {
    background: #333333;
    color: white;
}

.watch-button:hover {
    background: #f40612;
}

.info-button:hover {
    background: #444444;
}


/* MOVIE SECTIONS */

.movie-section {
    padding: 40px;
}

.movie-section h2 {
    font-size: 24px;

    margin-bottom: 22px;
}

.movie-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(180px, 1fr));

    gap: 20px;
}

.movie-card {
    cursor: pointer;

    transition: transform 0.2s;
}

.movie-card:hover {
    transform: scale(1.04);
}

.poster {
    width: 100%;

    aspect-ratio: 2 / 3;

    background: #242424;

    border-radius: 6px;

    margin-bottom: 10px;
}

.movie-card h3 {
    font-size: 16px;

    margin-bottom: 5px;
}

.movie-card p {
    color: #888888;

    font-size: 14px;
}


/* MOBILE */

@media (max-width: 700px) {

    .navbar {
        padding: 0 20px;

        gap: 20px;
    }

    nav {
        display: none;
    }

    .hero {
        min-height: 450px;

        padding: 40px 25px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .movie-section {
        padding: 25px;
    }

    .movie-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 15px;
    }

}

footer {
    margin-top: 60px;

    padding: 50px 40px;

    background: #080808;

    border-top: 1px solid #222;
}

.footer-content {
    max-width: 1200px;

    margin: auto;
}

.footer-content h2 {
    color: #e50914;

    margin-bottom: 10px;
}

.footer-content p {
    color: #888;

    margin-bottom: 8px;
}

.footer-content .copyright {
    margin-top: 25px;

    font-size: 13px;
}

/* =========================
   Search
========================= */

.search-overlay {

    position: fixed;

    inset: 0;

    z-index: 9999;

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

    overflow-y: auto;

    padding: 60px 20px;

}


.search-box {

    max-width: 1200px;

    margin: 0 auto;

    position: relative;

}


.search-close {

    position: absolute;

    right: 0;

    top: 0;

    font-size: 24px;

    background: none;

    border: none;

    color: white;

    cursor: pointer;

}


.search-input-container {

    display: flex;

    gap: 10px;

    margin: 30px 0;

}


.search-input-container input {

    flex: 1;

    padding: 15px 18px;

    border-radius: 8px;

    border: 1px solid #444;

    background: #181818;

    color: white;

    font-size: 16px;

}


.search-input-container button {

    padding: 15px 25px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

}


.search-results {

    margin-top: 20px;

}


/* =========================
   Movie Player
========================= */

.player-section {

    max-width: 1200px;

    margin: 40px auto;

    padding: 0 20px;

}


.video-container {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #050505;

    border-radius: 10px;

    overflow: hidden;

}


.video-container video {

    width: 100%;

    height: 100%;

    background: black;

}


.player-message {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 20px;

}


.player-icon {

    width: 70px;

    height: 70px;

    border-radius: 50%;

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

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

    margin-bottom: 20px;

}


.player-message h2 {

    margin: 0 0 10px;

}


.player-message p {

    max-width: 500px;

    opacity: 0.7;

}


/* =========================
   Movie details
========================= */

.movie-backdrop {

    min-height: 550px;

    background-size: cover;

    background-position: center;

}


.movie-overlay {

    min-height: 550px;

    display: flex;

    align-items: flex-end;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.95),
            rgba(0,0,0,0.15)
        );

    padding: 50px;

}


.movie-information {

    max-width: 700px;

}


.movie-information h1 {

    font-size: 48px;

    margin-bottom: 10px;

}


.movie-meta {

    opacity: 0.8;

    margin-bottom: 20px;

}


.movie-description {

    line-height: 1.7;

    opacity: 0.9;

}


.back-button {

    text-decoration: none;

    color: inherit;

}


@media (max-width: 700px) {

    .movie-information h1 {

        font-size: 32px;

    }


    .movie-overlay {

        padding: 25px;

    }


    .search-input-container {

        flex-direction: column;

    }

}

/* =========================================
   Streamy Video Player
   ========================================= */

.player-section {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.video-container {
    width: 100%;
}

.videasy-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
}

.videasy-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


/* Mobile */

@media (max-width: 768px) {

    .player-section {
        margin: 25px auto;
        padding: 0 10px;
    }

    .videasy-wrapper {
        border-radius: 8px;
    }

}
