﻿/* =========================================================
   PÁGINA
   ========================================================= */

.movie-detail-page {
    width: 100%;
    min-height: 100vh;
    color: #fff;
    background: #08090c;
}


/* =========================================================
   LOADING
   ========================================================= */

.movie-loading {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #656b76;
    font-size: 11px;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255,255,255,.08);
    border-top-color: #ff3158;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   HERO
   ========================================================= */

.movie-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

    .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: blur(3px) brightness(.45);
        transform: scale(1.035);
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(8,9,12,.99) 0%, rgba(8,9,12,.91) 28%, rgba(8,9,12,.55) 60%, rgba(8,9,12,.24) 100% );
}

.hero-bottom-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(transparent, #08090c);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 205px minmax(0, 650px);
    gap: 36px;
    align-items: end;
    padding: 42px 42px 34px;
}


/* =========================================================
   POSTER
   ========================================================= */

.movie-poster-column {
    width: 205px;
}

.movie-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 15px;
    background: #11141a;
    box-shadow: 0 20px 55px rgba(0,0,0,.55);
}

    .movie-poster img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #343a45;
}

    .poster-placeholder i {
        font-size: 42px;
    }


/* =========================================================
   FAVORITO
   ========================================================= */

.poster-favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    background: rgba(6,7,10,.64);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease;
}

    .movie-poster:hover .poster-favorite-button,
    .poster-favorite-button.favorited {
        opacity: 1;
        transform: translateY(0);
    }

    .poster-favorite-button:hover {
        background: #fff;
        color: #111318;
    }

    .poster-favorite-button.favorited,
    .poster-favorite-button.favorited:hover {
        color: #ff3158;
    }

    .poster-favorite-button i {
        font-size: 15px;
    }


/* =========================================================
   BREADCRUMB
   ========================================================= */

.movie-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #ff526e;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .8px;
    text-transform: uppercase;
}

    .movie-breadcrumb i {
        color: #666c77;
        font-size: 7px;
    }


/* =========================================================
   TÍTULO
   ========================================================= */

.hero-info h1 {
    max-width: 750px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.8px;
}


/* =========================================================
   META
   ========================================================= */

.movie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: #a2a7b0;
    font-size: 11px;
}

.meta-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .meta-rating i {
        color: #f4bb45;
    }

    .meta-rating strong {
        color: #fff;
    }

.meta-separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #545a65;
}

.reviews-link {
    padding: 0;
    border: none;
    background: transparent;
    color: #969ca6;
    font-size: 11px;
    cursor: pointer;
}

    .reviews-link:hover {
        color: #fff;
    }

.age-rating {
    padding: 4px 7px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 5px;
    color: #d6d9df;
    font-size: 9px;
    font-weight: 650;
}


/* =========================================================
   IDIOMAS
   ========================================================= */

.movie-language-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 11px;
    color: #737985;
    font-size: 10px;
}

    .movie-language-info span {
        display: flex;
        align-items: center;
        gap: 5px;
    }


/* =========================================================
   DESCRIÇÃO DO HERO
   ========================================================= */

.hero-description {
    max-width: 620px;
    display: -webkit-box;
    margin: 14px 0 0;
    overflow: hidden;
    color: #b4b8c0;
    font-size: 12px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   AÇÕES
   ========================================================= */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.primary-action {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 18px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff3158, #ff526d);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 27px rgba(255,49,88,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .primary-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 32px rgba(255,49,88,.34);
    }

    .primary-action i {
        font-size: 17px;
    }


/* =========================================================
   CONTEÚDO
   ========================================================= */

/*.movie-content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 40px;
    padding: 0 42px 70px;
}*/

.movie-content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 40px;
    padding: 0 42px 70px;
    overflow: visible;
}

.movie-main-content {
    min-width: 0;
    height: auto;
    max-height: none;
    overflow: visible;
}
/* =========================================================
   SEÇÕES
   ========================================================= */

.detail-section {
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 26px 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

    .detail-section:last-child {
        border-bottom: none;
    }

.synopsis-section {
    padding-top: 20px;
    padding-bottom: 22px;
}

.video-section {
    padding-top: 24px;
}

.section-heading {
    margin-bottom: 15px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #ff4968;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.section-heading h2 {
    margin: 0;
    color: #f1f2f5;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.5px;
}


/* =========================================================
   SINOPSE
   ========================================================= */

.movie-description-full {
    position: relative;
    max-height: 70px;
    overflow: hidden;
    transition: max-height .3s ease;
}

    .movie-description-full:not(.expanded)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 32px;
        background: linear-gradient(transparent, #08090c);
    }

    .movie-description-full.expanded {
        max-height: 1000px;
    }

    .movie-description-full p {
        margin: 0;
        color: #9197a2;
        font-size: 11px;
        line-height: 1.75;
    }

.show-more-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    padding: 0;
    border: none;
    background: transparent;
    color: #ff5872;
    font-size: 9px;
    font-weight: 650;
    cursor: pointer;
}


/* =========================================================
   VÍDEO
   ========================================================= */

.movie-video {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    background: #000;
    box-shadow: 0 15px 40px rgba(0,0,0,.3);
}

    .movie-video video {
        width: 100%;
        max-height: 500px;
        display: block;
        background: #000;
    }


/* =========================================================
   REVIEWS
   ========================================================= */

.reviews-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.reviews-score {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 15px;
}

    .reviews-score i {
        color: #f4bb45;
        font-size: 14px;
    }

    .reviews-score strong {
        color: #fff;
        font-size: 23px;
    }

    .reviews-score span {
        color: #626874;
        font-size: 9px;
    }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.review-card {
    padding: 17px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 13px;
    background: rgba(255,255,255,.022);
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .review-user img {
        width: 35px;
        height: 35px;
        object-fit: cover;
        border-radius: 50%;
        background: #171a20;
    }

    .review-user > div {
        display: flex;
        flex-direction: column;
    }

    .review-user strong {
        color: #dfe1e6;
        font-size: 10px;
    }

    .review-user span {
        margin-top: 2px;
        color: #555b66;
        font-size: 8px;
    }

.review-stars {
    display: flex;
    gap: 2px;
    margin-top: 12px;
    color: #f4bb45;
    font-size: 9px;
}

.review-card p {
    margin: 11px 0 0;
    color: #797f8a;
    font-size: 10px;
    line-height: 1.65;
}

.review-buttons {
    display: flex;
    gap: 17px;
    margin-top: 5px;
}

/* =========================================================
   AVALIAÇÃO DO USUÁRIO
   ========================================================= */

.user-review-box {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.012));
}

.user-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 13px;
}

    .user-review-header h3 {
        margin: 0;
        color: #e9ebef;
        font-size: 14px;
        font-weight: 700;
    }

.selected-rating {
    padding: 4px 8px;
    border: 1px solid rgba(244,187,69,.18);
    border-radius: 6px;
    background: rgba(244,187,69,.06);
    color: #f4bb45;
    font-size: 9px;
    font-weight: 700;
}

.user-review-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 13px;
}

.review-star-button {
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #505762;
    font-size: 18px;
    cursor: pointer;
    transition: color .16s ease, transform .16s ease;
}

    .review-star-button:hover,
    .review-star-button.selected {
        color: #f4bb45;
    }

    .review-star-button:hover {
        transform: scale(1.12);
    }

.review-comment {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    outline: none;
    background: #0d0f14;
    color: #c8ccd3;
    font-family: inherit;
    font-size: 10px;
    line-height: 1.6;
    transition: border-color .2s ease, background .2s ease;
}

    .review-comment::placeholder {
        color: #4f5661;
    }

    .review-comment:focus {
        border-color: rgba(255,49,88,.45);
        background: #101319;
    }

.user-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

    .user-review-footer > span {
        color: #4f5661;
        font-size: 8px;
    }

.submit-review-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 13px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff3158, #ff526d);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255,49,88,.18);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

    .submit-review-button:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 11px 24px rgba(255,49,88,.28);
    }

    .submit-review-button:disabled {
        opacity: .55;
        cursor: default;
    }

.reviews-empty {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 20px;
    border: 1px dashed rgba(255,255,255,.06);
    border-radius: 12px;
    color: #555c67;
    text-align: center;
}

    .reviews-empty i {
        margin-bottom: 8px;
        color: #ff4968;
        font-size: 20px;
    }

    .reviews-empty strong {
        color: #aeb3bc;
        font-size: 10px;
    }

    .reviews-empty span {
        margin-top: 4px;
        font-size: 8px;
    }

/* =========================================================
   SIDEBAR
   ========================================================= */

.movie-sidebar {
    padding-top: 20px;
}

.movie-info-card {
    position: sticky;
    top: 80px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    background: linear-gradient(145deg, #12151b, #0d0f14);
}

    .movie-info-card h3 {
        margin: 0 0 13px;
        color: #e8eaee;
        font-size: 13px;
    }

.info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.045);
}

    .info-row:last-child {
        border-bottom: none;
    }

    .info-row span {
        color: #5e646f;
        font-size: 9px;
    }

    .info-row strong {
        max-width: 145px;
        color: #aeb3bc;
        font-size: 9px;
        font-weight: 600;
        text-align: right;
    }


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 950px) {

    .movie-hero {
        min-height: 450px;
    }

    .hero-content {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 28px;
        padding: 35px 25px 30px;
    }

    .movie-poster-column {
        width: 180px;
    }

    .movie-content {
        grid-template-columns: 1fr;
        padding: 0 25px 60px;
    }

    .movie-sidebar {
        padding-top: 0;
    }

    .movie-info-card {
        position: static;
    }
}

@media (max-width: 650px) {

    .movie-hero {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 35px 18px 28px;
    }

    .movie-poster-column {
        width: 145px;
    }

    .hero-info h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-background img {
        filter: blur(4px) brightness(.34);
    }

    .hero-description {
        -webkit-line-clamp: 3;
    }

    .movie-content {
        padding: 0 18px 55px;
    }

    .detail-section {
        padding: 22px 0;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .primary-action {
        width: 100%;
    }

    .poster-favorite-button {
        opacity: 1;
        transform: translateY(0);
    }

    .user-review-header {
        flex-direction: column;
        gap: 8px;
    }

    .user-review-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .submit-review-button {
        width: 100%;
    }
}
