


/* =====================================================
   🎬 MOVIE DETAIL — UAICINE
   Arquivo: static/css/pages/movie.css
   Página: templates/movies/movie_detail.html
===================================================== */


/* =====================================================
   1. LAYOUT BASE DA PÁGINA
===================================================== */

.movie-layout {
    padding: 0;
    background: var(--color-bg-main);
    color: var(--color-text-primary);
    margin-bottom: 100px;
}

.movie-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 600px;

    margin: 0 auto;
    padding: 0 var(--space-4);

    background: var(--color-bg-main);
}



/* =====================================================
   ðŸŽ¬ Movie Actions
===================================================== */

.movie-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

/* =====================================================
   BOTÃƒO BASE
===================================================== */

.action-btn {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 6px;

  padding: 14px 10px;

  border: none;
  border-radius: 12px;

  background: #121212;

  color: #9b9b9b;

  font-size: 13px;
  font-weight: 500;

  cursor: pointer;

  transition:
    transform .18s ease,
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}

/* =====================================================
   ÃCONE
===================================================== */

.action-btn-icon {
  width: 22px;
  height: 22px;

  filter: brightness(0) invert(0.7);

  transition:
    transform .18s ease,
    filter .18s ease;
}

/* =====================================================
   HOVER
===================================================== */

.action-btn:hover {
  transform: translateY(-2px);
  background: #1b1b1b;
}

/* =====================================================
   ESTADO ATIVO
===================================================== */

.action-btn.is-active {
  background: #1a1a1a;
  color: #fff;
}

/* =====================================================
   WATCHLIST
===================================================== */

.is-watchlist-active .action-btn-icon {
  filter: invert(40%) sepia(88%) saturate(2669%) hue-rotate(358deg) brightness(95%) contrast(94%);
}

.is-watchlist-active span {
  color: #ff7b00;
}

/* =====================================================
   WATCHED
===================================================== */

.is-watched-active .action-btn-icon {
  filter: invert(80%) sepia(49%) saturate(4031%) hue-rotate(108deg) brightness(108%) contrast(101%);
}

.is-watched-active span {
  color: #20ff9b;
}

/* =====================================================
   FAVORITE
===================================================== */

.is-favorite-active .action-btn-icon {
  filter: invert(68%) sepia(70%) saturate(947%) hue-rotate(0deg) brightness(104%) contrast(103%);
}

.is-favorite-active span {
  color: #ffd000;
}

/* =====================================================
   POP ANIMATION (CLICK)
===================================================== */

.btn-pop {
  transform: scale(0.92);
}

/* =====================================================
   MOBILE ADJUST
===================================================== */

@media (max-width: 480px) {

  .action-btn {
    padding: 12px 8px;
  }

  .action-btn-icon {
    width: 20px;
    height: 20px;
  }

}




/* =====================================================
   SINOPSE
   ===================================================== */

.movie-synopsis {
    margin-top: var(--space-6);
}

.movie-synopsis h2{
    font-size: var(--font-base);
}

.movie-synopsis p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: var(--font-sm);
    margin-top: 10px;
}




/* =====================================================
   12. ELENCO
===================================================== */

.movie-cast {
    margin-top: var(--space-6);
}

.movie-cast h2 {
    margin: 0;

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

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

.cast-scroll {
    display: flex;
    flex-direction: row;
    gap: var(--space-3);

    width: calc(100% + var(--space-4));
    margin-top: var(--space-4);

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

    padding-right: var(--space-4);

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

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

.cast-scroll::-webkit-scrollbar {
    display: none;
}

.cast-card {
    flex: 0 0 108px;
    width: 108px;

    text-align: center;

    scroll-snap-align: start;
}

.cast-avatar {
    width: 108px;
    height: 134px;

    overflow: hidden;

    border-radius: var(--radius-md);
    background-color: var(--color-poster-placeholder, #161717);
}

.cast-avatar img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}

.cast-name {
    display: block;

    margin-top: var(--space-2);

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

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

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cast-character {
    display: block;

    margin-top: 3px;

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

    font-size: var(--font-xs);
    font-weight: 500;
    line-height: 1.25;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}




/* =====================================================
   ðŸŽ¬ MOVIES PAGE (FINAL PRO VERSION)
===================================================== */

/* =====================================================
   ðŸŽ¬ PAGE
===================================================== */

.movies-page {
    padding-bottom: 120px;
}

/* =====================================================
   ðŸŽ¬ HERO
===================================================== */

.movies-hero {
    padding-top: 10px;
}

/* =====================================================
   ðŸ“ HERO CONTENT
===================================================== */

.movies-hero-content {
    padding: 20px 20px 10px;
}

/* =====================================================
   ðŸŽ¬ TITLE
===================================================== */

.movies-title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
}

/* =====================================================
   ðŸ“ DESCRIPTION
===================================================== */

.movies-description {
    margin-top: 14px;

    max-width: 680px;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;

    color: rgba(255, 255, 255, 0.78);
}

/* =====================================================
   ðŸŽžï¸ SECTIONS
===================================================== */

.movies-sections {
    display: flex;
    flex-direction: column;
    gap: 34px;
    margin-top: 0px;
    padding: 16px;
}

/* =====================================================
   ðŸŽžï¸ ROW SECTION
===================================================== */

.movies-row-section {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

/* =====================================================
   ðŸ·ï¸ ROW HEADER
===================================================== */

.movies-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px 0 0;
}

/* =====================================================
   ðŸŽ­ ROW TITLE
===================================================== */

.movies-row-title {
    margin: 0;

    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;

    color: #fff;
}

/* =====================================================
   âžœ VER TUDO
===================================================== */

.movies-row-link {
    flex-shrink: 0;

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

    color: #FF7A00;
    text-decoration: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

@media (hover: hover) {

    .movies-row-link:hover {
        opacity: 0.82;
        transform: translateX(2px);
    }

}

/* =====================================================
   ðŸŽ¬ HORIZONTAL SCROLL
===================================================== */

.movies-row-scroll {
    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    scroll-behavior: smooth;

    scroll-snap-type: x mandatory;
}

/* Chrome/Safari */

.movies-row-scroll::-webkit-scrollbar {
    display: none;
}

/* =====================================================
   ðŸŽžï¸ TRACK
===================================================== */

.movies-row-track {
    display: flex;
    gap: 14px;
    width: max-content;
    /* padding: 0 20px; */
}

/* =====================================================
   ðŸŽ¬ CARD SNAP
===================================================== */

.movies-row-track .movie-card {
    scroll-snap-align: start;
}

/* =====================================================
   ðŸ“­ EMPTY
===================================================== */

.movies-empty {
    padding: 60px 20px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

/* =====================================================
   ðŸŽ­ EMPTY ICON
===================================================== */

.movies-empty-icon img {
    width: 44px;
    height: 44px;

    opacity: 0.5;

    filter:
        invert(100%)
        sepia(0%)
        saturate(0%)
        hue-rotate(0deg)
        brightness(100%)
        contrast(100%);
}

/* =====================================================
   ðŸ“ EMPTY CONTENT
===================================================== */

.movies-empty-content {
    margin-top: 18px;
}

/* =====================================================
   ðŸŽ¬ EMPTY TITLE
===================================================== */

.movies-empty-title {
    margin: 0;

    font-size: 22px;
    font-weight: 700;

    color: #fff;
}

/* =====================================================
   ðŸ“ EMPTY DESCRIPTION
===================================================== */

.movies-empty-description {
    margin-top: 10px;

    font-size: 15px;
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.65);
}

/* =====================================================
   ðŸ“± TABLET
===================================================== */

@media (min-width: 768px) {

    .movies-hero-content {
        padding: 28px 28px 12px;
    }

    .movies-title {
        font-size: 58px;
    }

    .movies-description {
        font-size: 17px;
    }

    .movies-row-header {
    padding: 0 16px 0 0;
    }

    .movies-row-track {
        gap: 16px;

        padding: 0 28px;
    }

}

/* =====================================================
   ðŸ’» DESKTOP
===================================================== */

@media (min-width: 1024px) {

    .movies-page {
        padding-bottom: 140px;
    }

    .movies-title {
        font-size: 72px;
    }

    .movies-row-title {
        font-size: 32px;
    }

}















/* =====================================================
   2. TOPO DO FILME
===================================================== */

.movie-top {
    position: relative;
    width: 100%;
    overflow: hidden;

    background: var(--color-bg-main);
    color: var(--color-text-primary);
}


/* =====================================================
   3. HEADER SIMPLES SOBRE O BACKDROP
===================================================== */

.movie-top__header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;

    width: 100%;
}



/* =====================================================
   4. STICKY HEADER
===================================================== */

.app-sticky-header .app-sticky-center {
    min-width: 0;
}

.app-sticky-header .app-sticky-title {
    display: block;
    max-width: 100%;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =====================================================
   5. BACKDROP
===================================================== */

.movie-top__backdrop {
    position: relative;

    width: 100%;
    height: 355px;

    overflow: hidden;
    background: var(--color-bg-card);
}

.movie-top__backdrop img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}

/* =====================================================
   OVERLAY DO BACKDROP — TOPO + BOTTOM
   Usa apenas uma div: .movie-top__overlay
===================================================== */

.movie-top__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        /* Overlay superior — protege seta e share */
        linear-gradient(
            to bottom,
            rgba(15, 15, 15, 0.55) 0%,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0) 100%
        ),

        /* Overlay inferior — funde backdrop com fundo */
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 35%,
            rgba(0, 0, 0, 0.72) 72%,
            var(--color-bg-main) 100%
        );
}

/* =====================================================
   6. POSTER + INFORMAÇÕES PRINCIPAIS
===================================================== */

.movie-top__content {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 600px;

    margin: -104px auto 0;
    padding: 0 var(--space-4);

    display: flex;
    align-items: flex-end;
    gap: var(--space-3);
}

.movie-top__poster {
    flex: 0 0 82px;

    width: 82px;
    height: 123px;

    overflow: hidden;

    border-radius: var(--radius-sm);
    background-color: var(--color-poster-placeholder, #161717);

    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.46);
}

.movie-top__poster img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}

.movie-top__info {
    flex: 1;
    min-width: 0;
    padding-bottom: 3px;
}

.movie-top__title {
    margin: 0 0 5px;

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

    font-size: var(--font-lg);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;

    display: -webkit-box;

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

    overflow: hidden;
}


.movie-top__director {
    margin: 0 0 7px;

    color: rgba(249, 249, 249, 0.86);

    font-size: var(--font-xs);
    font-weight: 500;
    line-height: 1.25;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =====================================================
   7. META — NOTA / ANO / DURAÇÃO / CLASSIFICAÇÃO
===================================================== */

.movie-top__meta {
    display: flex;
    align-items: center;
    gap: 7px;

    max-width: 100%;
    margin-bottom: 9px;

    color: rgba(249, 249, 249, 0.92);

    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
    overflow: hidden;
}

.movie-top__meta > span {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
}

.movie-top__meta > span:not(:last-child)::after {
    content: "\2022";

    margin-left: 7px;

    color: rgba(249, 249, 249, 0.48);
}

.movie-top__rating {
    gap: 3px;
    color: #FFC400;
}

.movie-top__rating img {
    width: 13px;
    height: 13px;

    display: block;
    object-fit: contain;

    filter: var(--icon-star);
}

.movie-top__classification {
    min-width: 26px;
    height: 18px;

    padding: 0 6px;

    border-radius: 4px;
    background: rgba(255, 255, 255, 0.16);

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

    font-size: 0.68rem;
    font-weight: 800;
    line-height: 18px;

    justify-content: center;
}


/* =====================================================
   8. GÊNEROS — CAROUSEL HORIZONTAL
===================================================== */

.movie-top__genres {
    width: 100%;
    max-width: 100%;

    display: flex;
    align-items: center;
    gap: var(--space-2);

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

    padding-bottom: 2px;

    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.movie-top__genres::-webkit-scrollbar {
    display: none;
}

.movie-top__genre {
    flex: 0 0 auto;

    min-width: 64px;
    height: 25px;

    padding: 0 13px;

    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-sm);

    background: rgba(0, 0, 0, 0.24);
    color: var(--color-text-primary);

    font-size: 0.72rem;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    text-decoration: none;

    scroll-snap-align: start;

    transition: var(--transition-default);
}

.movie-top__genre:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.95);
}

.movie-top__genre:active {
    transform: scale(0.96);
}

.movie-top__genre--empty {
    opacity: 0.7;
    pointer-events: none;
}


/* =====================================================
   9. BOTÃO ASSISTIR TRAILER
===================================================== */
/* =====================================================
   BOTÃO ASSISTIR TRAILER — GRADIENTE PROFISSIONAL
===================================================== */

.movie-top__trailer-area {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 600px;

    margin: var(--space-5) auto 0;
    padding: 0 var(--space-4);
}

.movie-top__trailer-btn {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 44px;
    border: none;
    border-radius: var(--radius-md);
    background:
        linear-gradient(
            135deg,
            #F86418 0%,
            #F97316 42%,
            #FFC400 100%
        );
    color: #fff;
    font-size: var(--font-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        0 10px 24px rgba(234, 88, 12, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease;
}

/* Brilho sutil interno */
.movie-top__trailer-btn::before {
    content: "";

    position: absolute;
    inset: 1px;
    z-index: -1;

    border-radius: calc(var(--radius-md) - 1px);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.04) 42%,
            rgba(0, 0, 0, 0.10) 100%
        );

    pointer-events: none;
}

/* Glow discreto no fundo */
.movie-top__trailer-btn::after {
    content: "";

    position: absolute;
    inset: auto 18px -14px 18px;
    z-index: -2;

    height: 28px;

    background: rgba(234, 88, 12, 0.45);
    filter: blur(18px);

    pointer-events: none;
}

.movie-top__trailer-btn:hover {
    filter: brightness(1.05);
    box-shadow:
        0 12px 28px rgba(234, 88, 12, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.movie-top__trailer-btn:active {
    transform: scale(0.985);
}

.movie-top__trailer-btn img {
    width: 18px;
    height: 18px;

    display: block;
    object-fit: contain;

    filter: var(--icon-white);
}

.movie-top__trailer-btn span {
    color: #fff;
    line-height: 1;
}



/* =====================================================
   10. AÇÕES — WATCHLIST / FAVORITOS / AVALIAR
   -----------------------------------------------------
   Mantém o mesmo fluxo antigo dos ícones:
   - ícone cinza por padrão
   - ativo muda apenas ícone e texto
   - sem background ativo
   - sem efeito de subir no hover
===================================================== */

.movie-top__actions {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 600px;
    margin: 18px auto 0;
    /* padding: 0 var(--space-5) 28px; */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    
}

/* =====================================================
   BOTÃO BASE
===================================================== */

.movie-top__action,
.action-btn {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
      text-decoration: none;
    gap: 6px;

    padding: 0;

    border: none;
    border-radius: 0;

    background: transparent;

    color: #9b9b9b;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.1;
    text-align: center;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        color 0.18s ease;
}

/* =====================================================
   ÍCONE BASE — CINZA PADRÃO
===================================================== */

.movie-top__action-icon,
.action-btn-icon {
    width: 31px;
    height: 31px;

    display: block;
    object-fit: contain;

    filter: brightness(0) invert(0.7);

    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}

.movie-top__action span,
.action-btn span {
    display: block;

    color: #9b9b9b;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    transition: color 0.18s ease;
}

/* =====================================================
   HOVER — SEM SUBIR E SEM BACKGROUND
===================================================== */

.movie-top__action:hover,
.action-btn:hover {
    background: transparent;
    transform: none;
}

/* =====================================================
   ESTADO ATIVO — SEM BACKGROUND
===================================================== */

.movie-top__action.is-active,
.action-btn.is-active {
    background: transparent;
    color: #fff;
}

/* =====================================================
   WATCHLIST
===================================================== */

.is-watchlist-active .movie-top__action-icon,
.is-watchlist-active .action-btn-icon {
    filter: invert(40%) sepia(88%) saturate(2669%) hue-rotate(358deg) brightness(95%) contrast(94%);
}

.is-watchlist-active span {
    color: #ff7b00;
}

/* =====================================================
   WATCHED
===================================================== */

.is-watched-active .movie-top__action-icon,
.is-watched-active .action-btn-icon {
    filter: invert(80%) sepia(49%) saturate(4031%) hue-rotate(108deg) brightness(108%) contrast(101%);
}

.is-watched-active span {
    color: #20ff9b;
}

/* =====================================================
   FAVORITE
===================================================== */

.is-favorite-active .movie-top__action-icon,
.is-favorite-active .action-btn-icon {
    filter: invert(68%) sepia(70%) saturate(947%) hue-rotate(0deg) brightness(104%) contrast(103%);
}

.is-favorite-active span {
    color: #ffd000;
}

/* =====================================================
   AVALIAR / STAR
   -----------------------------------------------------
   Por padrão fica cinza igual aos outros botões.
   Não fica amarelo até termos uma lógica própria.
===================================================== */

.movie-top__action--rating .movie-top__action-icon,
.movie-top__action--rating .action-btn-icon {
    filter: brightness(0) invert(0.7);
}

.movie-top__action--rating span {
    color: #9b9b9b;
}

/* =====================================================
   POP ANIMATION (CLICK)
   -----------------------------------------------------
   Mantém compatibilidade com os JS atuais.
===================================================== */

.btn-pop {
    transform: scale(0.92);
}



/* =====================================================
   11. SINOPSE
===================================================== */

.movie-synopsis {
    margin-top: var(--space-6);
}

.movie-synopsis h2 {
    margin: 0;

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

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

.movie-synopsis p {
    margin-top: 10px;

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

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


/* =====================================================
   12. ELENCO
===================================================== */

.movie-cast {
    margin-top: var(--space-6);
}

.movie-cast h2 {
    margin: 0;

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

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

.cast-scroll {
    display: flex;
    gap: var(--space-4);

    margin-top: var(--space-4);

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

    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cast-scroll::-webkit-scrollbar {
    display: none;
}

.cast-card {
    flex: 0 0 115px;
    width: 115px;

    text-align: center;

    scroll-snap-align: start;
}

.cast-avatar {
    width: 115px;
    height: 140px;

    overflow: hidden;

    border-radius: var(--radius-md);
    background-color: var(--color-poster-placeholder, #161717);
}

.cast-avatar img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}

.cast-name {
    display: block;

    margin-top: var(--space-2);

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

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

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cast-character {
    display: block;

    margin-top: 3px;

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

    font-size: var(--font-xs);
    font-weight: 500;
    line-height: 1.25;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



/* =====================================================
   19. BLOCO DE INTERAÇÃO DO USUÁRIO
===================================================== */

.movie-user-interactions {
    margin-top: var(--space-6);
}

.movie-rating-area {
    width: 100%;
}


/* =====================================================
   20. MODAL DO TRAILER
===================================================== */

.trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: var(--space-4);

    background: rgba(0, 0, 0, 0.76);
}

.trailer-modal[aria-hidden="false"],
.trailer-modal.is-open {
    display: flex;
}

.trailer-modal-overlay {
    position: absolute;
    inset: 0;
}

.trailer-modal-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 900px;

    border-radius: var(--radius-lg);
    overflow: hidden;

    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.trailer-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 999px;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;

    font-size: 18px;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;

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

    transition: var(--transition-default);
}

.trailer-close-btn:active {
    transform: scale(0.94);
}

.trailer-video-wrapper {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    background: #000;
}

.trailer-video-wrapper iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =====================================================
   21. RESPONSIVO — MOBILE
===================================================== */

@media (max-width: 480px) {

    .movie-content {
        max-width: 100%;
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .movie-top__backdrop {
        height: 350px;
    }

    .movie-top__content {
        max-width: 100%;
        margin-top: -104px;
    }

    .movie-top__poster {
        flex-basis: 80px;
        width: 80px;
        height: 120px;
    }

    .movie-top__title {
        font-size: 1.08rem;
    }

    .movie-top__director {
        font-size: 0.8rem;
    }

    .movie-top__meta {
        gap: 6px;
        font-size: 0.75rem;
    }

    .movie-top__meta > span:not(:last-child)::after {
        margin-left: 6px;
    }

    .movie-top__genre {
        min-width: 62px;
        height: 25px;

        padding: 0 var(--space-3);

        font-size: 0.71rem;
        line-height: 24px;
    }

    .movie-top__actions {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .movie-review-card {
        padding: 14px;
        border-radius: var(--radius-md);
    }

    .movie-review-card__header {
        gap: 10px;
    }

    .movie-review-card__name,
    .movie-review-card__username {
        max-width: 140px;
    }

    .movie-review-card__stars img {
        width: 16px;
        height: 16px;
    }

    .movie-review-card__text {
        font-size: var(--font-sm);
    }

    .movie-review-card__actions {
        gap: 14px;
    }

    .movie-review-card__action img {
        width: 24px;
        height: 24px;
    }
}


/* =====================================================
   22. RESPONSIVO — TELAS MUITO PEQUENAS
===================================================== */

@media (max-width: 360px) {

    .movie-top__backdrop {
        height: 336px;
    }

    .movie-top__content {
        gap: 10px;
        margin-top: -98px;
    }

    .movie-top__poster {
        flex-basis: 74px;
        width: 74px;
        height: 112px;
    }

    .movie-top__title {
        font-size: 1rem;
    }

    .movie-top__director {
        font-size: 0.76rem;
    }

    .movie-top__meta {
        font-size: 0.71rem;
    }

    .movie-top__action-icon,
    .action-btn-icon {
        width: 29px;
        height: 29px;
    }

    .movie-top__action,
    .action-btn {
        font-size: 0.76rem;
    }

}






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

.movie-related {
    margin-top: var(--space-6);
}


.movie-related__header h2 {
    margin: 0;

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

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

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

.movie-related__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;
}

.movie-related__scroll::-webkit-scrollbar {
    display: none;
}

.movie-related__track {
    display: flex;
    flex-direction: row;
    gap: var(--space-3);

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