/* NadirFilm 3.0.278 — targeted mobile single-page finish.
   Player sizing, playback sources, ratings and comment behavior are unchanged. */
@media (max-width: 767px) {
  /* Keep the synopsis control inside the site's dark/lavender design system. */
  .nf3-film-page .nf3-film-extras .nf3-details-card .nf3-summary-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    max-width: 100%;
    margin-top: 11px;
    padding: 9px 13px;
    border: 1px solid rgba(179, 160, 235, .5);
    border-radius: 8px;
    color: #d8c8f3 !important;
    background: rgba(179, 160, 235, .09) !important;
    font: 700 12px/1.25 var(--nf-display, "Space Grotesk", system-ui, sans-serif) !important;
    letter-spacing: 0 !important;
    text-align: center;
    white-space: normal;
    box-shadow: none;
  }
  .nf3-film-page .nf3-film-extras .nf3-details-card .nf3-summary-toggle:hover,
  .nf3-film-page .nf3-film-extras .nf3-details-card .nf3-summary-toggle:focus-visible {
    border-color: #c7b1f0;
    color: #f5efff !important;
    background: rgba(179, 160, 235, .2) !important;
    outline: 2px solid rgba(179, 160, 235, .32);
    outline-offset: 2px;
  }

  /* Preserve horizontal swipe and the partial next-card cue without a detached bar. */
  .nf3-film-page .nf3-film-extras .nf3-related-films .nf2-film-grid--related {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-bottom: 4px !important;
  }
  .nf3-film-page .nf3-film-extras .nf3-related-films .nf2-film-grid--related::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Give the comment editor room to scroll clear of the fixed mobile dock. */
  .nf3-film-page .nf3-film-extras {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .nf3-film-page .nf3-film-extras .nf4-comments .comment-respond,
  .nf3-film-page .nf3-film-extras .nf4-comments .comment-form-comment textarea {
    scroll-margin-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }
}
