/* ===================================================== */
/* 🎬 HERO                                                */
/* ===================================================== */

.post-detail-hero {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
}


/* ===================================================== */
/* 🎞️ IMAGE                                              */
/* ===================================================== */

.post-detail-hero__media {
    position: absolute;
    inset: 0;
    z-index: 1; /* 🔥 base */
}

.post-detail-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ===================================================== */
/* 🌑 OVERLAYS                                           */
/* ===================================================== */

.post-detail-hero__overlay-top,
.post-detail-hero__overlay-bottom {
    position: absolute;
    inset: 0;
    z-index: 2; /* 🔥 mesma camada (não precisa separar) */
}

/* topo */
.post-detail-hero__overlay-top {
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0.55) 0%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* base */
.post-detail-hero__overlay-bottom {
    background: linear-gradient(
        to top,
        rgb(15, 15, 15) 0%,
        rgb(15, 15, 15) 10%,
        rgba(0, 0, 0, 0) 60%
    );
}


/* ===================================================== */
/* 🔝 HEADER DO HERO (ACIMA DE TUDO)                     */
/* ===================================================== */

.post-detail-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 56px;
    z-index: 3; /* 🔥 acima de overlay */

    background: transparent;
}


/* ===================================================== */
/* 🎬 POST DETAIL CONTENT (CARD)                         */
/* ===================================================== */

.post-detail {
    padding: 16px;
}

.post-detail-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.post-detail-content-wrapper {
    position: relative;
    transform: translateY(-140px);
    z-index: 4; /* 🔥 acima do hero */
}


/* ===================================================== */
/* 👤 + 🎞️ LINHA SUPERIOR                               */
/* ===================================================== */

.post-detail__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}


/* ===================================================== */
/* 👤 USER                                               */
/* ===================================================== */

.post-detail__user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    
}

.post-detail__avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.post-detail__name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
}

.post-detail__username {
    font-size: 13px;
    color: #9ca3af;
}


/* ===================================================== */
/* 🎞️ POSTER                                            */
/* ===================================================== */

.post-detail__poster {
    width: 92px;
    flex-shrink: 0;
}

.post-detail__poster img {
    width: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}


/* ===================================================== */
/* 🎬 TÍTULO                                             */
/* ===================================================== */

.post-detail__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 10px;
}

.post-detail__title span {
    font-size: 14px;
    color: #9ca3af;
    margin-right: 25px;
}


/* ===================================================== */
/* ⭐ RATING + AÇÕES INLINE                              */
/* ===================================================== */

.post-detail__rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    margin-bottom: 10px;
}

/* ===================================================== */
/* ⭐ RATING                                             */
/* ===================================================== */

.post-detail__rating {
    display: flex;
    align-items: center;
    gap: 6px;

    min-width: 0;
    margin-bottom: 0;
}

.post-detail__rating img {
    width: 25px;
    height: 25px;
    display: block;

    flex: 0 0 auto;

    filter: brightness(0) saturate(100%)
        invert(53%) sepia(94%)
        saturate(1500%) hue-rotate(5deg);
}

.post-detail__rating img[src*="regular"] {
    filter: brightness(0) saturate(100%) invert(60%);
}

/* ===================================================== */
/* 🔢 BADGE                                             */
/* ===================================================== */

.post-detail__rating-value {
    flex: 0 0 auto;

    margin-left: 6px;
    padding: 2px 6px;

    border-radius: 6px;

    background: #f19000;
    color: #ffffff;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

/* ===================================================== */
/* 🔻 POST FOOTER COMPACTO DENTRO DO POST DETAIL         */
/* ===================================================== */

.post-detail__rating-row .post-card__footer--compact {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex: 0 0 auto;

    margin: 0;
    padding: 0;

    border: 0;
}

/* Remove data no modo compacto */
.post-detail__rating-row .post-card__footer--compact .post-card__time {
    display: none;
}

/* Ações compactas */
.post-detail__rating-row .post-card__footer--compact .post-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botão de ação */
.post-detail__rating-row .post-card__footer--compact .post-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;

    padding: 0;

    background: transparent;
    border: 0;

    text-decoration: none;
    cursor: pointer;
}

/* Ícones das ações */
.post-detail__rating-row .post-card__footer--compact .post-card__action img {
    width: 23px;
    height: 23px;

    display: block;

    filter: brightness(0) saturate(100%) invert(70%);
}

/* Like ativo */
.post-detail__rating-row .post-card__footer--compact .post-card__action.is-liked img,
.post-detail__rating-row .post-card__footer--compact .post-card__action[data-post-like].is-liked [data-post-like-icon] {
    filter: invert(47%) sepia(73%) saturate(1627%) hue-rotate(346deg) brightness(94%) contrast(107%);
}

/* Contadores */
.post-detail__rating-row .post-card__footer--compact .post-card__action span {
    min-width: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #f5f5f5;

    font-size: 13px;
    line-height: 1;
}

/* ===================================================== */
/* 📱 RESPONSIVO                                         */
/* ===================================================== */

@media (max-width: 480px) {

    .post-detail__rating-row {
        gap: 8px;
    }

    .post-detail__rating {
        gap: 4px;
    }

    .post-detail__rating img {
        width: 22px;
        height: 22px;
    }

    .post-detail__rating-value {
        margin-left: 4px;
        font-size: 11px;
        padding: 2px 5px;
    }

    .post-detail__rating-row .post-card__footer--compact .post-card__actions {
        gap: 8px;
    }

    .post-detail__rating-row .post-card__footer--compact .post-card__action img {
        width: 22px;
        height: 22px;
    }

    .post-detail__rating-row .post-card__footer--compact .post-card__action span {
        font-size: 12px;
    }

}

/* ===================================================== */
/* 📝 TEXTO                                              */
/* ===================================================== */

.post-detail__content {
    margin-top: 4px;
}

.post-detail__text {
    font-size: 15px;
    line-height: 1.6;
    color: #e5e7eb;
}



/* =====================================================
   ⚠️ POST DETAIL — AVISO DE SPOILER
===================================================== */

.post-detail__spoiler {
    width: 100%;
    max-width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    margin: 18px 0 16px;
    padding: 10px 12px;

    border: 1px solid rgba(255, 180, 80, 0.24);
    border-radius: 10px;

    background: rgba(255, 180, 80, 0.08);

    color: rgba(255, 210, 150, 0.95);

    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
}

.post-detail__spoiler-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: rgba(255, 180, 80, 0.18);
    color: rgba(255, 210, 150, 1);

    font-size: 0.78rem;
    font-weight: 800;
}

.post-detail__spoiler-text {
    flex: 1;
    min-width: 0;

    white-space: normal;
}


/* ===================================================== */
/* 📱 RESPONSIVO                                         */
/* ===================================================== */

@media (max-width: 480px) {

    .post-detail__poster {
        width: 84px;
    }

    .post-detail__title {
        font-size: 15px;
    }

    .post-detail__text {
        font-size: 14.5px;
    }

}









/* =====================================================
   💬 COMENTÁRIOS RECENTES — POST DETAIL
===================================================== */

.post-detail-comments {
    width: 100%;
    margin-top: 28px;
    padding: 0 16px 0;
}

/* HEADER */
.post-detail-comments__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 14px;
}

.post-detail-comments__title {
    margin: 0;

    font-size: var(--font-base);
    font-weight: 700;
    line-height: 1.2;

    color: var(--color-text-primary);
}

.post-detail-comments__count {
    flex-shrink: 0;

    font-size: var(--font-sm);
    font-weight: 600;

    color: var(--color-text-secondary);
}

/* LISTA */
.post-detail-comments__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* BOTÃO — VER TODOS OS COMENTÁRIOS */
.post-detail-comments__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;

    border-radius: 12px;

    background: var(--color-primary);
    color: var(--color-white);

    font-size: var(--font-sm);
    font-weight: 700;
    text-decoration: none;
}

.post-detail-comments__more:hover {
    text-decoration: none;
}

.post-detail-comments__more-count {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    opacity: 0.9;
}

/* =====================================================
   💬 COMMENT PREVIEW ITEM
   Usado somente no detalhe do post
===================================================== */

.comment-preview-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    width: 100%;
    min-width: 0;

    color: inherit;
    text-decoration: none;
}

.comment-preview-item:hover {
    text-decoration: none;
}

/* AVATAR */
.comment-preview-item__avatar {
    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    border-radius: 50%;
    object-fit: cover;

    background: rgba(255, 255, 255, 0.08);
}

/* CONTEÚDO */
.comment-preview-item__main {
    min-width: 0;
    flex: 1;
}

/* USERNAME */
.comment-preview-item__username {
    display: inline-block;

    margin-bottom: 3px;

    font-size: var(--font-sm);
    font-weight: 700;
    line-height: 1.2;

    color: var(--color-text-primary);
}

/* TEXTO DO COMENTÁRIO */
.comment-preview-item__content {
    display: -webkit-box;

    /* Compatibilidade moderna */
    line-clamp: 2;

    /* Compatibilidade WebKit/Chromium */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    font-size: var(--font-sm);
    font-weight: 400;
    line-height: 1.35;

    color: var(--color-text-primary);
}

/* META */
.comment-preview-item__meta {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 5px;

    font-size: var(--font-xs);
    color: var(--color-text-secondary);
}

.comment-preview-item__time,
.comment-preview-item__replies {
    line-height: 1;
}










/* =====================================================
   🎬 FILMES RELACIONADOS — POST DETAIL
===================================================== */

.post-related-movies {
    padding: 16px;
}

.post-related-movies__header {
    margin-bottom: var(--space-4);
}

.post-related-movies__header h2 {
    margin: 0;

    color: var(--color-text-primary);

    font-size: var(--font-base);
    font-weight: 800;
    line-height: 1.2;
}

/* =====================================================
   🎬 CAROUSEL HORIZONTAL
===================================================== */

.post-related-movies__scroll {
    width: calc(100% + var(--space-4));

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
}

.post-related-movies__scroll::-webkit-scrollbar {
    display: none;
}

.post-related-movies__track {
    display: flex;
    flex-direction: row;
    gap: var(--space-3);

    width: max-content;
    padding-right: var(--space-4);
}



