/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --background: #0b0b0d;
    --background-secondary: #141414;
    --card: #181818;

    --primary: #e50914;
    --primary-hover: #ff1f2a;

    --text: #ffffff;
    --text-secondary: #b3b3b3;

    --green: #46d369;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);
    color: var(--text);

    overflow-x: hidden;

    -webkit-tap-highlight-color: transparent;
}


button {
    font-family: inherit;
}


/* =========================================
   PERFIS
========================================= */

.profile-screen {
    min-height: 100svh;

    display: flex;
    flex-direction: column;

    position: relative;

    background:
        radial-gradient(
            circle at center,
            #202020 0%,
            #0b0b0d 65%
        );

    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}


.brand {
    position: absolute;

    top: 25px;
    left: 20px;

    font-size: 18px;
    font-weight: 900;

    letter-spacing: 1px;
}


.brand span {
    color: var(--primary);
}


.profile-container {
    flex: 1;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    padding: 90px 20px 40px;
}


.profile-container h1 {
    font-size: 30px;
    font-weight: 400;

    margin-bottom: 40px;

    text-align: center;
}


.profiles {
    width: 100%;

    display: flex;

    justify-content: center;
    align-items: flex-start;

    gap: 18px;
}


.profile {
    width: 95px;

    background: none;
    border: none;

    cursor: pointer;

    color: #888;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 10px;

    font-size: 14px;

    transition: 0.3s;
}


.profile-image {
    width: 90px;
    height: 90px;

    position: relative;

    overflow: hidden;

    border-radius: 8px;

    border: 2px solid transparent;

    transition: 0.3s;
}


.profile-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.profile:active .profile-image {
    transform: scale(0.95);
}


.couple-profile .profile-image {
    border-color:
        rgba(229, 9, 20, 0.5);
}


.heart-badge {
    position: absolute;

    right: 5px;
    bottom: 5px;

    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary);

    color: white;

    font-size: 13px;
}


.footer-message {
    padding: 25px 20px;

    text-align: center;

    color: #666;

    font-size: 12px;
}


.profile-screen.leaving {
    opacity: 0;

    transform: scale(1.05);
}


/* =========================================
   HOME
========================================= */

.home-screen {
    display: none;

    min-height: 100vh;

    background: var(--background);
}


/* =========================================
   NAVBAR MOBILE
========================================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 60px;

    padding:
        0 18px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    z-index: 100;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.95),
            transparent
        );

    transition: background 0.4s ease;
}


.navbar.scrolled {
    background:
        rgba(10, 10, 10, 0.97);

    backdrop-filter: blur(10px);
}


.navbar-logo {
    font-size: 15px;
    font-weight: 900;

    letter-spacing: 0.5px;
}


.navbar-logo span {
    color: var(--primary);
}


.navbar-right {
    display: flex;

    align-items: center;

    gap: 14px;
}


.nav-icon {
    border: none;

    background: transparent;

    color: white;

    font-size: 25px;

    cursor: pointer;
}


.mini-profile {
    width: 32px;
    height: 32px;

    overflow: hidden;

    border-radius: 5px;
}


.mini-profile img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================
   HERO MOBILE
========================================= */

.hero {
    position: relative;

    width: 100%;

    height: 78svh;

    min-height: 610px;

    overflow: hidden;
}


.hero-background {
    position: absolute;

    inset: 0;
}


.hero-background img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center top;
}


.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.05) 20%,
            rgba(0, 0, 0, 0.15) 45%,
            rgba(0, 0, 0, 0.85) 80%,
            #0b0b0d 100%
        );
}


.hero-bottom-gradient {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 20%;

    background:
        linear-gradient(
            transparent,
            var(--background)
        );
}


.hero-content {
    position: absolute;

    z-index: 5;

    left: 20px;
    right: 20px;

    bottom: 75px;

    text-align: center;
}


.hero-tag {
    margin-bottom: 10px;

    color: var(--primary);

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 2px;
}


.hero-content h1 {
    margin-bottom: 17px;

    font-size: clamp(
        42px,
        13vw,
        65px
    );

    line-height: 0.9;

    letter-spacing: -3px;
}


.hero-content h1 span {
    display: block;

    color: var(--primary);
}


.hero-info {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 15px;

    color: #ddd;

    font-size: 12px;
}


.match {
    color: var(--green);

    font-weight: bold;
}


.age {
    padding: 2px 6px;

    border: 1px solid #777;
}


.hero-description {
    max-width: 500px;

    margin:
        0 auto 20px;

    color: #ddd;

    font-size: 13px;

    line-height: 1.5;
}


.hero-buttons {
    display: flex;

    justify-content: center;

    gap: 8px;
}


.btn {
    min-height: 43px;

    padding:
        10px 16px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 7px;

    border: none;
    border-radius: 5px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}


.btn:active {
    transform: scale(0.96);
}


.btn-primary {
    background: white;

    color: black;
}


.btn-secondary {
    background:
        rgba(109, 109, 110, 0.75);

    color: white;
}


/* =========================================
   CONTEÚDO
========================================= */

.content {
    position: relative;

    z-index: 10;

    margin-top: -45px;

    padding-bottom: 60px;
}


.movie-section {
    margin-bottom: 15px;

    padding:
        20px 0;
}


.section-header {
    padding:
        0 20px;

    margin-bottom: 13px;
}


.section-header h2 {
    font-size: 19px;

    margin-bottom: 3px;
}


.section-header span {
    color: var(--primary);

    font-size: 11px;
    font-weight: bold;
}


/* =========================================
   SCROLL HORIZONTAL
========================================= */

.horizontal-scroll {
    width: 100%;

    display: flex;

    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    padding:
        5px 20px 15px;

    scroll-behavior: smooth;

    scroll-snap-type: x proximity;

    overscroll-behavior-inline: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    touch-action: pan-x;
}


.horizontal-scroll::-webkit-scrollbar {
    display: none;
}


/* =========================================
   CARDS HORIZONTAIS
========================================= */

.movie-card {
    flex:
        0 0
        min(76vw, 300px);

    scroll-snap-align: start;

    cursor: pointer;
}


.movie-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 6px;

    background: #222;
}


.movie-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    pointer-events: none;
}


.card-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(0, 0, 0, 0.15);

    opacity: 0;
}


.card-play {
    width: 45px;
    height: 45px;

    border-radius: 50%;

    border:
        2px solid white;

    background:
        rgba(0, 0, 0, 0.65);

    color: white;

    font-size: 16px;
}


.movie-info {
    padding-top: 9px;
}


.movie-info h3 {
    margin-bottom: 4px;

    font-size: 14px;
}


.movie-info p {
    color: var(--text-secondary);

    font-size: 11px;
}


.progress {
    width: 100%;
    height: 3px;

    margin-top: 8px;

    background: #444;
}


.progress-bar {
    height: 100%;

    background: var(--primary);
}


/* =========================================
   POSTERS
========================================= */

.poster-card {
    position: relative;

    flex:
        0 0
        min(48vw, 210px);

    aspect-ratio: 3 / 4;

    overflow: hidden;

    border-radius: 7px;

    scroll-snap-align: start;

    cursor: pointer;
}


.poster-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    pointer-events: none;
}


.poster-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 15px;

    background:
        linear-gradient(
            transparent 40%,
            rgba(0, 0, 0, 0.95)
        );
}


.poster-overlay span {
    margin-bottom: 5px;

    color: var(--primary);

    font-size: 9px;
    font-weight: bold;
}


.poster-overlay h3 {
    font-size: 15px;
}


/* =========================================
   PRÓXIMO EPISÓDIO
========================================= */

.coming-section {
    min-height: 330px;

    margin:
        45px 20px 0;

    padding:
        35px 25px;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    border-radius: 14px;

    background:
        radial-gradient(
            circle at center,
            #281014,
            #101010 70%
        );
}


.coming-label {
    margin-bottom: 18px;

    color: var(--primary);

    font-size: 9px;
    font-weight: bold;

    letter-spacing: 3px;
}


.coming-section h2 {
    max-width: 700px;

    margin-bottom: 12px;

    font-size: 28px;
}


.coming-section p {
    color: var(--text-secondary);

    font-size: 13px;
}


.infinity {
    margin-top: 20px;

    color: var(--primary);

    font-size: 60px;
}


/* =========================================
   TELAS MUITO PEQUENAS
========================================= */

@media (max-width: 360px) {

    .profiles {
        gap: 10px;
    }


    .profile {
        width: 85px;
    }


    .profile-image {
        width: 80px;
        height: 80px;
    }


    .hero-content h1 {
        font-size: 45px;
    }


    .btn {
        padding:
            10px 12px;

        font-size: 12px;
    }

}


/* =========================================
   DESKTOP / TABLET
========================================= */

@media (min-width: 768px) {

    .brand {
        top: 30px;
        left: 50px;

        font-size: 25px;
    }


    .profile-container h1 {
        font-size: 50px;
    }


    .profiles {
        gap: 35px;
    }


    .profile {
        width: 160px;

        font-size: 18px;
    }


    .profile-image {
        width: 150px;
        height: 150px;
    }


    .hero {
        height: 90vh;
    }


    .hero-content {
        left: 5%;

        width: 550px;

        text-align: left;
    }


    .hero-content h1 {
        font-size: 90px;
    }


    .hero-content h1 span {
        display: block;
    }


    .hero-info {
        justify-content: flex-start;
    }


    .hero-description {
        margin:
            0 0 25px;
    }


    .hero-buttons {
        justify-content: flex-start;
    }


    .section-header {
        padding:
            0 4%;
    }


    .horizontal-scroll {
        padding:
            5px 4% 20px;
    }


    .movie-card {
        flex-basis: 300px;
    }


    .poster-card {
        flex-basis: 220px;
    }


    .coming-section {
        margin:
            60px 4% 0;
    }

}


/* =========================================
   MODAL CINEMATOGRÁFICO
========================================= */

[hidden] {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

/* FUNDO ESCURO */

.moment-modal-backdrop {
    position: fixed;
    inset: 0;

    z-index: 1000;

    background: rgba(0, 0, 0, 0.9);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 0;

    overflow-y: auto;
    overscroll-behavior: contain;
}

/* JANELA PRINCIPAL */

.moment-modal {
    position: relative;

    width: 100%;
    min-height: 100svh;

    background: var(--card);

    overflow: hidden;

    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
}

/* BOTÃO FECHAR */

.moment-modal-close {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 10;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.8);
    color: white;

    font-size: 29px;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
}

/* CAPA DO EPISÓDIO */

.moment-modal-cover {
    position: relative;

    width: 100%;
    height: 420px;

    overflow: hidden;
}

.moment-modal-cover > img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* GRADIENTE CINEMATOGRÁFICO */

.moment-modal-gradient {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 15%,
        rgba(0, 0, 0, 0.25) 45%,
        rgba(0, 0, 0, 0.8) 75%,
        var(--card) 100%
    );
}

/* INFORMAÇÕES SOBRE A CAPA */

.moment-modal-heading {
    position: absolute;

    bottom: 30px;
    left: 20px;
    right: 20px;

    z-index: 2;
}

.moment-modal-heading > span {
    color: var(--primary);

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 2px;
}

.moment-modal-heading h2 {
    margin-top: 12px;
    margin-bottom: 10px;

    font-size: clamp(30px, 8vw, 55px);
    line-height: 1.05;
}

.moment-modal-heading p {
    color: var(--text-secondary);

    font-size: 13px;

    margin-bottom: 20px;
}

/* CONTEÚDO DO EPISÓDIO */

.moment-modal-content {
    padding: 10px 20px 45px;
}

.moment-modal-content h3 {
    font-size: 19px;

    margin-bottom: 14px;
}

#modalDescription {
    color: #ddd;

    font-size: 14px;
    line-height: 1.8;

    white-space: pre-line;
}

/* PLAYER DE VÍDEO */

#modalVideoSection {
    margin-top: 35px;
}

#modalVideo {
    display: block;

    width: 100%;
    max-height: 450px;

    background: #000;

    border-radius: 8px;
}

/* GALERIA DE FOTOS */

.moment-gallery-section {
    margin-top: 35px;
}

.moment-gallery-section > p {
    color: var(--text-secondary);

    font-size: 12px;

    margin-bottom: 15px;
}

.moment-gallery {
    gap: 12px;

    padding: 5px 0 20px;

    scroll-snap-type: x proximity;

    touch-action: auto;
}

.moment-gallery-photo {
    flex: 0 0 min(70vw, 260px);

    height: 240px;

    border-radius: 8px;

    overflow: hidden;

    scroll-snap-align: start;

    background: #222;
}

.moment-gallery-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    pointer-events: none;
    user-select: none;
}

/* INTERAÇÕES */

.moment-modal-close:hover {
    background: var(--primary);
}

.moment-modal-close:focus-visible,
.moment-modal button:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

/* =========================================
   TABLET E DESKTOP
========================================= */

@media (min-width: 768px) {

    .moment-modal-backdrop {
        padding: 35px 20px;
    }

    .moment-modal {
        width: min(100%, 850px);
        min-height: auto;

        border-radius: 12px;
    }

    .moment-modal-cover {
        height: 480px;
    }

    .moment-modal-heading {
        left: 35px;
        right: 35px;
        bottom: 35px;
    }

    .moment-modal-content {
        padding: 20px 35px 45px;
    }

    .moment-gallery-photo {
        flex-basis: 230px;
    }
}

/* =========================================
   TELAS MUITO PEQUENAS
========================================= */

@media (max-width: 360px) {

    .moment-modal-cover {
        height: 370px;
    }

    .moment-modal-heading h2 {
        font-size: 29px;
    }

    .moment-gallery-photo {
        flex-basis: 75vw;
        height: 210px;
    }
}
