
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: #111;
    color: #fff;
    overflow-x: hidden;
}


/* Navbar */

#nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 68px;
    padding: 20px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.5s ease-in-out;
}

#nav.nav_black {
    background-color: #111;
}

.nav_container {
    display: flex;
    align-items: center;
}

.nav_right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search_container {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.75);
    border: 1px solid #fff;
    padding: 5px 10px;
    transition: width 0.3s ease;
}

.search_input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    width: 0;
    transition: width 0.3s ease;
    font-size: 14px;
}

.search_container:focus-within .search_input,
.search_input:not(:placeholder-shown) {
    width: 200px;
}

.search_btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

.nav_logo_text {
    font-family: 'Orbitron', sans-serif;
    color: #e50914;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
    margin-right: 25px;
    cursor: pointer;
}

.nav_links {
    list-style: none;
    display: flex;
}

.nav_links li {
    margin-left: 20px;
}

.nav_links a {
    text-decoration: none;
    color: #e5e5e5;
    font-size: 14px;
    transition: color 0.3s;
}

.nav_links a:hover {
    color: #b3b3b3;
}

.nav_links a.active {
    color: #fff;
    font-weight: bold;
}

.nav_avatar_img {
    width: 32px;
    object-fit: contain;
    border-radius: 4px;
}


/* Banner */

.banner {
    background-image: url('https://images.unsplash.com/photo-1626814026160-2237a95fc5a0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center center;
    color: white;
    object-fit: contain;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner_contents {
    margin-left: 4%;
    padding-top: 140px;
    height: 190px;
    max-width: 600px;
}

.banner_title {
    font-size: 3rem;
    font-weight: 800;
    padding-bottom: 0.3rem;
}

.banner_description {
    width: 45rem;
    line-height: 1.3;
    padding-top: 1rem;
    font-size: 1.1rem;
    /* Aumentado para melhor leitura */
    max-width: 600px;
    height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.banner_buttons {
    margin-top: 10px;
}

.banner_button {
    cursor: pointer;
    color: #fff;
    outline: none;
    border: none;
    font-weight: 700;
    border-radius: 0.2vw;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(51, 51, 51, 0.5);
    transition: all 0.2s;
}

.banner_button:hover {
    color: #000;
    background-color: #e6e6e6;
}

.banner_fadeBottom {
    height: 7.4rem;
    background-image: linear-gradient( 180deg, transparent, rgba(37, 37, 37, 0.61), #111);
    margin-top: auto;
}


/* Rows */

.row {
    margin-left: 20px;
    color: white;
    margin-bottom: 30px;
}

.row_posters_wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.row_posters {
    display: flex;
    overflow-y: hidden;
    overflow-x: scroll;
    padding: 20px;
    scroll-behavior: smooth;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
    scroll-snap-type: x mandatory;
    /* Faz os itens pararem certinho no lugar */
}

.row_posters::-webkit-scrollbar {
    display: none;
}

.row_arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    font-size: 2.5rem;
    padding: 0 10px;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s, transform 0.2s;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 4%;
    /* Largura fixa como na Netflix */
}

.row:hover .row_arrow {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.4);
}

.row_arrow:hover {
    background-color: rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.1);
}

.row_arrow_left {
    left: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.row_arrow_right {
    right: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.row_poster {
    width: 100%;
    object-fit: contain;
    max-height: 150px;
    margin-right: 10px;
    transition: transform 450ms;
    cursor: pointer;
    flex-shrink: 0;
}

.row_posterLarge {
    max-height: 250px;
    margin-right: 10px;
}


/* Row Item Wrapper for Favorites Button */

.row_item {
    position: relative;
    transition: transform 450ms;
    flex-shrink: 0;
    scroll-snap-align: start;
    /* Alinha o início do item com o scroll */
}

.row_item:hover {
    transform: scale(1.08);
    z-index: 10;
}

.row_item:hover .row_poster {
    transform: scale(1);
    /* Reset image scaling since wrapper scales */
}

.favorite_btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.2s;
    z-index: 20;
}

.row_item:hover .favorite_btn {
    opacity: 1;
}

.favorite_btn:hover {
    transform: scale(1.2);
    background: white;
    color: black;
}

.favorite_btn.added {
    background: #e50914;
    border-color: #e50914;
    color: white;
    opacity: 1;
}

.row_posterLarge:hover {
    transform: scale(1.09);
}


/* Empty state styling */

.empty_list_msg {
    text-align: center;
    padding: 50px;
    font-size: 1.5rem;
    color: #808080;
}

.page_title {
    margin-left: 4%;
    margin-top: 100px;
    font-size: 2.5rem;
    font-weight: 800;
}


/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal_content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 1100px;
    height: 600px;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}


/* Custom Player Container */

.player_container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    background-color: #000;
}

#custom_video_player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Salveee Style Controls Overlay */

.video_controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player_container:hover .video_controls {
    opacity: 1;
}


/* Progress Bar */

.progress_bar_container {
    position: relative;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: height 0.1s;
}

.progress_bar_container:hover {
    height: 8px;
}

.progress_bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #e50914;
    /* Salveee Red */
    width: 0%;
    z-index: 2;
}

.seek_bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    width: 0%;
    z-index: 1;
}


/* Control Buttons & Bottom Bar */

.controls_bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls_left,
.controls_right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control_btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.1s;
}

.control_btn:hover {
    transform: scale(1.2);
}

.time_display {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}


/* Volume Control */

.volume_container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#volume_slider {
    width: 0px;
    opacity: 0;
    transition: width 0.3s, opacity 0.3s;
    cursor: pointer;
    accent-color: #e50914;
}

.volume_container:hover #volume_slider {
    width: 80px;
    opacity: 1;
}

.close_modal {
    position: absolute;
    right: -40px;
    top: -40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close_modal:hover,
.close_modal:focus {
    color: #e50914;
    text-decoration: none;
    cursor: pointer;
}


/* Coming Soon Overlay */

.coming_soon_overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.coming_soon_content {
    position: relative;
    text-align: center;
}

.coming_soon_content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    color: #fff;
    text-shadow: 0 0 20px #e50914;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.8;
        transform: scale(1);
    }
    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

#close_coming_soon {
    position: absolute;
    right: -60px;
    top: -60px;
}


/* Footer */

footer {
    padding: 40px 4%;
    text-align: center;
    color: #808080;
    font-size: 13px;
}


/* Auth Styles */

.auth_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradê estilo Netflix: Preto com tom avermelhado no topo */
    background: linear-gradient(to bottom, #2b0c0c 0%, #000000 300px, #000000 100%);
    background-size: cover;
    display: flex;
    flex-direction: column;
    z-index: 5000;
}

.auth_header {
    padding: 20px 4%;
    width: 100%;
    /* Linha sutil no topo para o estilo Netflix */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth_box_container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth_box {
    padding: 60px 68px 40px;
    border-radius: 4px;
    width: 100%;
    max-width: 450px;
    min-height: 550px;
    text-align: left;
}

.auth_form h1 {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 28px;
}

.auth_form input {
    width: 100%;
    height: 50px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
}

.auth_btn {
    width: 100%;
    height: 48px;
    padding: 16px;
    background-color: #e50914;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 24px;
}

.auth_form p {
    color: #737373;
    margin-top: 16px;
    font-size: 16px;
}

.auth_form a {
    color: #fff;
    text-decoration: none;
}

.auth_form a:hover {
    text-decoration: underline;
}

.auth_help {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: #b3b3b3;
}

.auth_recaptcha {
    margin-top: 20px;
    font-size: 13px;
    color: #8c8c8c;
}

.auth_recaptcha a {
    color: #0071eb;
}

.auth_recaptcha a:hover {
    text-decoration: underline;
}


/* Landing Page Styles */

.landing_container {
    height: 100vh;
    width: 100%;
    /* Nova imagem de fundo fornecida pelo usuário */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.8) 100%), url('https://assets.nflxext.com/ffe/siteui/vlv3/fc9ebadf-d77a-4f9b-a0dd-499af5178dc5/web/BR-pt-20260330-TRIFECTA-perspective_14917f2d-9ca5-40ff-97cb-0d8910c97b84_large.jpg');
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.landing_nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    z-index: 10;
}

.landing_content {
    max-width: 950px;
    z-index: 5;
}

.landing_content h1 {
    font-size: 3.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.landing_content h2 {
    font-size: 1.625rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.landing_content h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.landing_email_form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.landing_email_form input {
    width: 500px;
    height: 70px;
    padding: 10px 15px;
    font-size: 1.2rem;
    border: 1px solid #8c8c8c;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 2px;
}

.landing_get_started {
    height: 70px;
    padding: 0 30px;
    font-size: 1.875rem;
    background-color: #e50914;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.landing_get_started:hover {
    background-color: #f40612;
}

.landing_nav_btn {
    background-color: #e50914;
    color: white;
    padding: 7px 17px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
}

.landing_nav_btn:hover {
    background-color: #f40612;
}

.netflix_logo {
    color: #e50914;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -2px;
    text-decoration: none;
}

.mobile_bottom_nav {
    display: none;
}


/* Media Queries for Mobile Responsiveness */

@media (max-width: 768px) {
    /* Landing Page */
    .landing_nav {
        padding: 15px 20px;
    }
    .landing_content h1 {
        font-size: 2rem;
    }
    .landing_content h2 {
        font-size: 1.2rem;
    }
    .landing_content h3 {
        font-size: 1rem;
    }
    .landing_email_form {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .landing_email_form input {
        width: 100%;
        max-width: 400px;
        height: 50px;
        font-size: 1rem;
    }
    .landing_get_started {
        height: 50px;
        font-size: 1.2rem;
        padding: 0 20px;
    }
    .netflix_logo {
        font-size: 1.8rem;
    }
    /* Navbar */
    #nav {
        height: 55px;
        padding: 10px 4%;
    }
    .nav_logo_text {
        font-size: 18px;
        margin-right: 15px;
    }
    .nav_links {
        display: none;
        /* Esconde links na versão mobile para economizar espaço */
    }
    .search_container:focus-within .search_input,
    .search_input:not(:placeholder-shown) {
        width: 140px;
    }
    .search_container {
        padding: 3px 6px;
    }
    .search_btn {
        font-size: 16px;
    }
    .nav_right {
        gap: 10px;
    }
    .nav_avatar_img {
        width: 28px;
        height: 28px;
    }
    /* Banner */
    .banner {
        height: 350px;
    }
    .banner_title {
        font-size: 1.8rem;
    }
    .banner_description {
        font-size: 0.8rem;
        width: 100%;
        max-width: 100%;
    }
    .banner_button {
        padding: 6px 20px;
        font-size: 0.9rem;
    }
    /* Rows and Posters */
    .row_poster {
        max-height: 150px;
    }
    .row_posterLarge {
        max-height: 200px;
    }
    .row_title {
        font-size: 1.2rem;
    }
    .row_posters {
        padding: 10px 0 10px 10px;
    }
    /* Modal */
    .modal_content {
        width: 95%;
        margin: 10% auto;
    }
    .close_modal {
        right: 0px;
        top: -45px;
        font-size: 30px;
    }
    /* Coming Soon */
    .coming_soon_content h1 {
        font-size: 2.5rem;
    }
    /* Mobile Bottom Nav */
    .mobile_bottom_nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #111;
        padding: 10px 0;
        justify-content: space-around;
        align-items: center;
        z-index: 2000;
        border-top: 1px solid #333;
    }
    .mobile_nav_item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #888;
        font-size: 10px;
    }
    .mobile_nav_item.active {
        color: #fff;
    }
    .mobile_nav_item .icon {
        font-size: 20px;
        margin-bottom: 4px;
    }
    footer {
        padding-bottom: 80px;
        /* Espaço para não cobrir o footer com a nav bar */
    }
}

@media (max-width: 480px) {
    .landing_content h1 {
        font-size: 1.6rem;
    }
    .banner_title {
        font-size: 1.5rem;
    }
    .row_poster {
        max-height: 120px;
    }
    .row_posterLarge {
        max-height: 180px;
    }
}
