/* ✅ Reset básico */


* {


  margin: 0;


  padding: 0;


  box-sizing: border-box;


  font-family: 'Arial', sans-serif;


}

.upcoming-card .notify-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  z-index: 2;
}

.upcoming-card .notify-btn:hover {
  transform: scale(1.08);
  background: rgba(220, 20, 60, 0.8);
}

.upcoming-card .notify-btn.active {
  background: rgba(220, 20, 60, 1);
}

.upcoming-card .release-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  z-index: 2;
}

.upcoming-card .position-relative {
  border-radius: 12px;
  overflow: hidden;
  background: #0f0f0f;
}

.upcoming-card .upcoming-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.upcoming-card .upcoming-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-card .type-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {

  #movies-container .col,
  #series-container .col,
  #top-picks-container .col,
  #continuaAssitindo .col,
  #upcoming-container .col {
    flex: 0 0 45%;
    min-width: 45%;
    max-width: 45%;
    scroll-snap-align: start;
  }
}




/* Evita scroll horizontal na viewport geral */


html {


  scroll-behavior: smooth;


  overflow-x: hidden;


}





body {


  overflow-x: hidden;


}

/* Avatar redondo no mobile */
.mobile-nav #avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid red;
}





/* ✅ Body escuro */


body {


  color: #fff;


  overflow-x: hidden;


  background-color: #1a1a1a;


}





/* ===== PARTÍCULAS DE FUNDO ===== */


#particles-canvas {


  position: fixed;


  top: 0;


  left: 0;


  width: 100%;


  height: 100%;


  z-index: -1;


  pointer-events: none;


  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);


}





img {


  filter: brightness(0.95);


}





.partner-logos-wrapper {


  overflow-x: auto;


  -webkit-overflow-scrolling: touch;


  padding: 10px 0;


}





.partner-logos-track {


  display: inline-flex;


  gap: 30px;


  align-items: center;


  justify-content: center;


  min-width: 100%;


}





/* Centraliza no desktop e esconde scroll */


@media (min-width: 768px) {


  .partner-logos-wrapper {


    display: flex;


    justify-content: center;


    overflow-x: hidden;


    /* tira o scroll do desktop */


  }


}





/* Animação das logos */


.partner-logos-track img {


  opacity: 0;


  transform: translateX(-100%);


  animation-fill-mode: forwards;


}





.partner-logos-track img.animate-in {


  animation-name: slideInFromLeft;


  animation-duration: 0.6s;


  animation-timing-function: ease-out;


  animation-fill-mode: forwards;


}





@keyframes slideInFromLeft {


  to {


    opacity: 1;


    transform: translateX(0);


  }


}





/* ✅ Navbar transparente */


.navbar {


  padding: 10px 20px;


  background-color: transparent !important;


  position: fixed;


  top: 0;


  left: 0;


  width: 100%;


  z-index: 1000;


  transition: background-color 0.3s ease;


}





/* ✅ Menu Mobile quando aberto */


.navbar-collapse {


  padding: 15px;


  border-radius: 8px;


}





/* ✅ Links */


.nav-link {


  color: #fff !important;


  margin: 0 15px;


  font-size: 1rem;


  transition: color 0.3s ease;


}





.nav-link:hover {


  color: #ff0000 !important;


}





/* ✅ Dropdown menu */


.dropdown-menu {


  background-color: #000;


  border: none;


}





.dropdown-menu .dropdown-item {


  color: #fff;


}





.dropdown-menu .dropdown-item:hover {


  background-color: #333;


  color: #ff0000;


}





.mobile-nav {


  position: fixed;


  bottom: 0;


  left: 0;


  width: 100%;


  height: 60px;


  background-color: #000;


  border-top: 1px solid #222;


  display: flex;


  justify-content: space-around;


  align-items: center;


  z-index: 1050;


}





.mobile-nav .nav-item {


  color: white;


  font-size: 12px;


  text-decoration: none;


  flex-grow: 1;


  cursor: pointer;


}





.mobile-nav .nav-item i {


  font-size: 20px;


  display: block;


}





.mobile-nav .nav-item:hover {


  color: #ff0000;


}





.mobile-nav .dropdown-toggle::after {


  display: none !important;


}

/* ===== CARROSSEL PARA MOBILE ===== */
@media (max-width: 767px) {

  /* Container dos cards vira carrossel */
  #movies-container,
  #series-container,
  #top-picks-container,
  #continuaAssitindo,
  #upcoming-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 10px 5px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
  }

  /* Esconde scrollbar webkit */
  #movies-container::-webkit-scrollbar,
  #series-container::-webkit-scrollbar,
  #top-picks-container::-webkit-scrollbar,
  #continuaAssitindo::-webkit-scrollbar,
  #upcoming-container::-webkit-scrollbar {
    display: none;
  }

  /* Cards no carrossel */
  #movies-container .col,
  #series-container .col,
  #top-picks-container .col,
  #continuaAssitindo .col {
    flex: 0 0 45%;
    min-width: 45%;
    max-width: 45%;
    scroll-snap-align: start;
  }

  /* Ajuste do card */
  .movie-card {
    height: 100%;
  }

  .movie-image-container {
    height: 250px;
  }

  .movie-image-container img {
    height: 100%;
    object-fit: cover;
  }
}








.mobile-nav .dropdown-menu {


  position: absolute;


  bottom: 60px;


  /* fica acima do menu fixo */


  left: 50%;


  transform: translateX(-50%);


  min-width: 150px;


  text-align: center;


  z-index: 1060;


}





.mobile-nav .nav-item.active {


  transform: translateY(-6px);


}





.mobile-nav .nav-item span {


  display: block;


  font-size: 11px;


  margin-top: 6px;


  /* aumenta para descer o nome */


  line-height: 1;


}





.mobile-nav .nav-item.active::before {


  content: '';


  position: absolute;


  top: 0;


  left: 50%;


  transform: translateX(-50%);


  width: 36px;


  height: 36px;


  background-color: red;


  border-radius: 50%;


  z-index: -1;


}








/* ✅ Banner em tela cheia */


.banner {


  width: 100%;


  height: 100vh;


  min-height: 100dvh;


  position: relative;


  overflow: hidden;


}





.banner-flex-container {


  display: flex;


  flex-wrap: nowrap;


  flex-direction: row;


  align-items: stretch;


  width: 100%;


  height: 100vh;


  overflow: hidden;


  background-color: #000;


  /* fundo preto geral */


  gap: 10px;


  padding: 10px;


  box-sizing: border-box;


}





/* ✅ Área de texto sobre o banner */


.banner-info {


  flex: 0 0 40%;


  padding: 100px 40px 50px 40px;


  /* mais espaço no topo para "empurrar" para baixo */


  display: flex;


  flex-direction: column;


  justify-content: flex-start;


  /* alinha no topo do container, para usar o padding-top */


  color: #fff;


  /* preto quase transparente */


  position: relative;


  z-index: 3;


  margin-left: -40px;


  /* sobreposição leve */


  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);


  overflow-y: auto;


  max-height: 100vh;


  box-sizing: border-box;


}





.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  will-change: initial;
  transform: translateZ(0);
  backface-visibility: hidden;
}





.video-background iframe {


  width: 100%;


  height: 100%;


  border: none;


}





@media (max-width: 768px) {


  .banner-flex-container {


    flex-direction: column;


    /* empilha o vídeo e o texto */


    height: auto;


    /* altura ajusta ao conteúdo */


  }





  .video-background,


  .banner-video {


    position: relative;


    /* tira o absolute para poder empilhar */


    width: 100%;


    height: auto;


    aspect-ratio: 16 / 9;


    border-radius: 10px;


    z-index: 1;


  }





  .banner-info {


    flex: none;


    width: 100%;


    padding: 20px;


    background: rgba(0, 0, 0, 0.85);


    color: white;


    text-align: left;


    box-sizing: border-box;


    z-index: 2;


    margin-left: 0;


    overflow-y: visible;


  }





  .banner-description {


    font-size: 0.3rem;


    max-width: 700px;


    margin-bottom: 0.1px;


    line-height: 1.0;


  }


}





.btn-ver-mais-inline {


  display: inline;


  background: none;


  border: none;


  color: #e50914;


  font-size: 0.9rem;


  font-weight: bold;


  margin-left: 8px;


  cursor: pointer;


  padding: 0;


}








.banner-flex-container {


  display: flex;


  flex-wrap: wrap;


  flex-direction: row-reverse;


  /* 👈 Inverte os lados */


  align-items: stretch;


  background-color: #000;


  border-radius: 12px;


  overflow: hidden;


  margin-top: 20px;


}





.banner-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}





.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  display: block;
  will-change: filter;
  transform: translateZ(0);
}





/* ✅ Sobreposição do conteúdo */


.banner-overlay {
  position: absolute;
  bottom: 10%;
  left: 5%;
  right: 5%;
  color: #fff;
  z-index: 200;
  animation: fadeIn 0.8s ease-in-out;
  will-change: opacity;
  transform: translateZ(0);
}





/* ✅ Textos */


.banner-title {


  font-size: 4rem;


  font-weight: 800;


  margin-bottom: 15px;


  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);


  animation: textSlideIn 1s ease-out;


}





.banner-meta {


  display: flex;


  flex-wrap: wrap;


  gap: 15px;


  margin-bottom: 15px;


  font-size: 1.1rem;


}





.banner-description {


  font-size: 1.2rem;


  max-width: 700px;


  margin-bottom: 1px;


  line-height: 1.0;


}





.banner-cast,


.banner-genre {


  font-size: 1rem;


  margin-bottom: 8px;


}





.btn-watch-trailer {


  display: inline-flex;


  align-items: center;


  justify-content: center;


  gap: 8px;


  width: 100%;


  max-width: 400px;


  margin: 20px auto 0;


  padding: 12px 24px;


  background-color: #e50914;


  color: white;


  font-weight: 600;


  font-size: 1.1rem;


  border: none;


  border-radius: 4px;


  cursor: pointer;


  transition: background-color 0.3s ease;


}





.btn-watch-trailer span {


  font-size: 1rem;


}





/* ✅ Botões no banner */


.banner-buttons {


  display: flex;


  gap: 15px;


}





.btn-play,


.btn-info {


  display: inline-flex;


  align-items: center;


  gap: 8px;


  padding: 12px 24px;


  border-radius: 4px;


  font-size: 1rem;


  font-weight: bold;


  cursor: pointer;


  transition: background-color 0.3s ease;


}





.btn-play {


  background-color: #e50914;


  color: #fff;


  border: none;


}





.btn-play:hover {


  background-color: #ff3333;


}





.btn-info {


  background-color: rgba(109, 109, 110, 0.7);


  color: #fff;


  border: none;


}





.btn-info:hover {


  background-color: rgba(109, 109, 110, 0.5);


}





/* ✅ Ratings */


.rating {


  color: #ff0000;


}





.imdb-rating,


.maturity-rating,


.runtime {


  background-color: rgba(0, 0, 0, 0.6);


  padding: 4px 8px;


  border-radius: 4px;


}





/* ✅ Suavemente entra apenas uma vez */


.fade-in {
  opacity: 0;
  animation: fadeInOnce 0.4s ease-out forwards;
  will-change: opacity;
  transform: translateZ(0);
}

.banner-container {
  width: 100%;
  height: 100%;
  position: relative;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}





.text-slide-in {
  opacity: 0;
  animation: textSlideInOnce 0.5s ease-out forwards;
  will-change: opacity, transform;
  transform: translateZ(0);
}





/* ✅ Keyframes usados apenas uma vez (não reiniciam) */


@keyframes fadeInOnce {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}





@keyframes textSlideInOnce {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}





/* ✅ Footer */


footer {


  padding: 20px;


  text-align: center;


  background-color: #111;


  border-top: 1px solid #333;


}





footer p {


  color: #999;


}





footer a {


  color: #fff;


  margin: 0 10px;


  text-decoration: none;


}





footer a:hover,
.banner-social-links a:hover {


  color: #ff0000;


}

footer a:hover i,
.banner-social-links a:hover i {
  transform: scale(1.15);
}





/* ---------------------------- */


/* RESPONSIVIDADE               */


/* ---------------------------- */


@media (max-width: 992px) {


  .banner-title {


    font-size: 3rem;


  }





  .banner-description {


    font-size: 1rem;


    max-width: 85%;


  }





  .banner-meta {


    font-size: 0.95rem;


    gap: 10px;


  }


}





@media (max-width: 768px) {


  .banner-title {


    font-size: 2.4rem;


  }





  .banner-description {


    font-size: 0.95rem;


  }





  .banner-buttons {


    flex-direction: column;


    width: 100%;


  }





  .btn-play,


  .btn-info {


    width: 100%;


    justify-content: center;


  }





  .banner-overlay {


    bottom: 5%;


  }


}





@media (max-width: 480px) {


  .banner-title {


    font-size: 2rem;


  }





  .banner-description {


    font-size: 0.9rem;


  }





  .banner-meta {


    flex-direction: column;


    gap: 5px;


  }





  .banner-overlay {


    bottom: 3%;


    left: 3%;


    right: 3%;


    padding: 10px;


  }


}





#search-results-container .movie-card {


  background-color: #1c1c1c;


  border-radius: 10px;


  overflow: hidden;


  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);


  transition: transform 0.3s ease, box-shadow 0.3s ease;


  cursor: pointer;


}





#search-results-container .movie-card:hover {


  transform: scale(1.03);


  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);


}





#search-results-container .movie-image-container {


  position: relative;


  overflow: hidden;


  height: 10%;


}





#search-results-container .card-img-top {


  width: 100%;


  height: 500px;


  object-fit: cover;


  border-bottom: 1px solid rgba(255, 255, 255, 0.1);


}





#search-results-container .card-overlay {


  padding: 5px;


  background: #1c1c1c;


  color: #fff;


}





#search-results-container .card-title {


  font-size: 1rem;


  font-weight: 600;


  margin-bottom: 5px;


}





#search-results-container .rating {


  font-size: 0.9rem;


}





/* Content Section */


.content-section {


  margin-bottom: 30px;


}





.section-header {


  display: flex;


  justify-content: space-between;


  align-items: center;


  margin-bottom: 20px;


  padding: 0 20px;


}





.section-title {


  font-size: 1.5rem;


  color: #fff;


}





.view-all {


  color: #808080;


  text-decoration: none;


  font-size: 0.9rem;


}





.view-all:hover {


  color: #ccc;


}





/* Movie Cards */


.movie-card {


  position: relative;


  background-color: #000;


  border: none;


  border-radius: 12px;


  overflow: hidden;


  transition: transform 0.3s ease;


}





.movie-image-container {


  position: relative;


  width: 100%;


  padding-top: 150%;


  overflow: hidden;


}





.card-img-top {


  position: absolute;


  top: 0;


  left: 0;


  width: 100%;


  height: 100%;


  object-fit: cover;


  transition: transform 0.3s ease;


}





.movie-card:hover .card-img-top {


  transform: scale(1.1);


}





.movie-card {


  position: relative;


  cursor: pointer;


}





.overlay {


  position: absolute;


  bottom: 0;


  left: 0;


  right: 0;


  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);


  padding: 10px 15px;


  color: #fff;


  display: flex;


  flex-direction: column;


  justify-content: flex-end;


  border-radius: 0 0 12px 12px;


  opacity: 0;


  transition: opacity 0.3s ease;


  height: 80px;


}








.vip-banner {


  position: fixed;


  bottom: 20px;


  right: 20px;


  background-color: #ffc107;


  color: #000;


  padding: 15px 20px;


  border-radius: 8px;


  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);


  z-index: 9999;


  font-weight: bold;


}





.vip-banner a {


  color: #000;


  font-weight: bold;


  text-decoration: underline;


  margin-left: 10px;


}





.close-btn {


  margin-left: 15px;


  cursor: pointer;


  font-weight: bold;


}





.favorite-icon {


  position: absolute;


  top: 8px;


  right: 8px;


  font-size: 1.5rem;


  color: white;


  z-index: 10;


  cursor: pointer;


  transition: color 0.3s ease;


}





.favorite-icon:hover {


  color: #ff4d4d;


}





.favorite-icon i {


  transition: color 0.3s ease;


  color: white;


}








.card-overlay {


  position: absolute;


  bottom: 0;


  left: 0;


  right: 0;


  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);


  color: #fff;


  padding: 10px;


  opacity: 0;


  transition: opacity 0.3s ease;


}





.movie-card:hover .card-overlay {


  opacity: 1;


}





.card-title {


  font-size: 1rem;


  margin: 0;


  white-space: nowrap;


  overflow: hidden;


  text-overflow: ellipsis;


}





.movie-trailer {


  position: absolute;


  top: 0;


  left: 0;


  width: 100%;


  height: 100%;


  display: none;


  object-fit: cover;


  z-index: 5;


}





.movie-card.expanded .movie-trailer {


  display: block;


}

/* Continue Assistindo Cards */
.continue-watching-card .progress-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  z-index: 2;
}

.continue-watching-card .progress {
  border-radius: 2px;
  overflow: hidden;
}

.continue-watching-card:hover .progress-overlay {
  opacity: 1;
}

/* Menu de Contexto */
.context-menu {
  position: absolute;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  min-width: 200px;
  z-index: 10000;
  padding: 8px 0;
  animation: contextMenuAppear 0.15s ease-out;
}

@keyframes contextMenuAppear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.context-menu-item {
  padding: 10px 16px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.context-menu-item:hover {
  background: #ff0000;
  color: #fff;
}

.context-menu-item i {
  font-size: 16px;
}

.context-menu-divider {
  height: 1px;
  background: #333;
  margin: 4px 0;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: -100px;
  right: 20px;
  background: #1a1a1a;
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10001;
  transition: bottom 0.3s ease;
  border-left: 4px solid;
}

.toast-notification.show {
  bottom: 20px;
}

.toast-notification.toast-success {
  border-left-color: #28a745;
}

.toast-notification.toast-warning {
  border-left-color: #ffc107;
}

.toast-notification.toast-danger {
  border-left-color: #dc3545;
}

.toast-notification i {
  font-size: 20px;
}

.toast-notification.toast-success i {
  color: #28a745;
}

.toast-notification.toast-warning i {
  color: #ffc107;
}

.toast-notification.toast-danger i {
  color: #dc3545;
}

/* Preview Modal */
.preview-backdrop {
  position: relative;
  overflow: hidden;
}

.preview-backdrop-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
  pointer-events: none;
}

.preview-info {
  z-index: 1;
}

#previewModal .modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

#previewModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

#previewBackdrop {
  border-radius: 0;
}

#previewWatchBtn:hover {
  background: #c30000;
  transform: scale(1.02);
  transition: all 0.2s;
}

#previewFavoriteBtn:hover {
  background: #fff;
  color: #000;
  transition: all 0.2s;
}

#previewFavoriteBtn.text-danger {
  border-color: #dc3545;
  color: #dc3545;
}

#previewFavoriteBtn.text-danger:hover {
  background: #dc3545;
  color: #fff;
}

.search-result-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.search-result-card:hover {
  transform: translateY(-5px);
}





.card-meta {


  font-size: 0.8rem;


  margin: 5px 0;


  display: flex;


  gap: 5px;


}





.btn-play-now {


  background-color: #e50914;


  color: #fff;


  border: none;


  padding: 5px 10px;


  font-size: 0.9rem;


  border-radius: 3px;


  margin-top: 5px;


  display: flex;


  align-items: center;


  gap: 5px;


}





.btn-play-now:hover {


  background-color: #ff3333;


}





/* Footer */


footer a {


  color: #fff;


  margin: 0 10px;


  text-decoration: none;


  transition: transform 0.3s ease;


}





footer a:hover {


  color: #ccc;


  transform: translateY(-5px);


}





footer .bi {


  font-size: 1.5rem;


  margin: 0 5px;


  transition: transform 0.3s ease;


}





footer .bi:hover {


  transform: translateY(-5px);


}





/* Responsividade */


@media (max-width: 768px) {


  .navbar-nav {


    flex-direction: column;


    align-items: center;


  }





  .nav-link {


    margin: 5px 0;


  }





  .banner {


    height: 50vh;


  }





  .banner-title {


    font-size: 1.8rem;


  }





  .row-cols-md-5 {


    --bs-columns: 2;


  }


}





@media (max-width: 576px) {


  .banner {


    height: 40vh;


  }





  .banner-title {


    font-size: 1.4rem;


  }





  .card-overlay {


    padding: 5px;


  }





  .btn-play-now {


    padding: 3px 8px;


    font-size: 0.8rem;


  }





  .row-cols-md-5 {


    --bs-columns: 1;


  }


}








#userMenu img {


  display: inline-block;


  border-radius: 50%;


  width: 24px;


  height: 24px;


  object-fit: cover;


}





/* Para fazer o submenu aparecer ao passar o mouse */


.dropdown-submenu:hover .dropdown-menu {


  display: block;


  position: absolute;


  /* Fica alinhado ao lado do item principal */


  right: 100%;


  /* Faz o submenu aparecer à esquerda */


  top: 0;


  margin-right: 0.5rem;


  /* Ajuste a distância entre o item e o submenu */


}





/* Esconde o submenu por padrão */


.dropdown-submenu .dropdown-menu {


  display: none;


  position: absolute;


  right: 100%;


  top: 0;


  margin-right: 0.5rem;


}





.beta-modal-content {


  background: linear-gradient(145deg, #1c1c1c, #2a2a2a);


  color: white;


  border-radius: 20px;


  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);


  padding: 20px;


  animation: pop-in 0.8s ease-out;


  text-align: center;


}





/* Logo animada */


.logo-modal {


  width: 180px;


  animation: floatLogo 3s ease-in-out infinite;


}





/* Animação de entrada */


@keyframes pop-in {


  0% {


    transform: scale(0.8);


    opacity: 0;


  }





  100% {


    transform: scale(1);


    opacity: 1;


  }


}





/* Animação da logo */


@keyframes floatLogo {





  0%,


  100% {


    transform: translateY(0);


  }





  50% {


    transform: translateY(-10px);


  }


}





/* Responsivo para telas pequenas */


@media (max-width: 576px) {


  .beta-modal-content {


    padding: 15px;


    border-radius: 12px;


  }





  .logo-modal {


    width: 140px;


  }





  .modal-body p {


    font-size: 1rem;


  }





  .modal-body h2 {


    font-size: 1.4rem;


  }





  .modal-footer button {


    width: 100%;


    font-size: 1rem;


    padding: 10px;


  }


}





.modal-aviso {


  display: none;


  /* oculto por padrão */


  position: fixed;


  z-index: 9999;


  left: 0;


  top: 0;


  width: 100%;


  height: 100%;


  background-color: rgba(0, 0, 0, 0.6);


  font-family: Arial, sans-serif;


}





.modal-content-aviso {


  background-color: #fff;


  margin: 10% auto;


  padding: 25px 30px;


  border-radius: 8px;


  max-width: 500px;


  text-align: center;


  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);


}





.modal-content-aviso h2 {


  color: #d9534f;


  margin-bottom: 15px;


}





.modal-content-aviso p {


  font-size: 16px;


  color: #333;


  line-height: 1.4;


}





.modal-logo {


  max-width: 150px;


  margin-bottom: 15px;


  width: 100%;


  /* para responsividade */


  height: auto;


  object-fit: contain;


}








/* Botão principal fechar */


.btn-fechar-aviso {


  margin-top: 20px;


  padding: 10px 20px;


  background-color: #d9534f;


  border: none;


  color: white;


  font-size: 16px;


  border-radius: 5px;


  cursor: pointer;


  transition: background-color 0.3s ease;


  min-width: 120px;


}





.btn-fechar-aviso:hover {


  background-color: #c9302c;


}





/* Responsividade para telas menores */


@media (max-width: 600px) {


  .modal-content-aviso {


    padding: 20px 15px 15px 15px;


    max-width: 90vw;


  }





  .modal-content-aviso h2 {


    font-size: 1.3rem;


  }





  .btn-fechar-aviso {


    font-size: 14px;


    padding: 8px 15px;


    min-width: 100px;


  }





  .btn-fechar-x {


    font-size: 24px;


    top: 8px;


    right: 8px;


  }


}








.carousel-row::-webkit-scrollbar {


  height: 8px;


}





.carousel-row::-webkit-scrollbar-thumb {


  background: #ff0000;


  border-radius: 4px;


}





/* Para navegadores baseados em WebKit (Chrome, Edge, Safari) */


::-webkit-scrollbar {


  width: 12px;


  /* Largura da barra */


}





::-webkit-scrollbar-track {


  background: #00000000;


  /* Cor do fundo da barra */


}





::-webkit-scrollbar-thumb {


  background-color: red;


  /* Cor da barra de rolagem */


  border-radius: 6px;


  border: 3px solid red;


  /* Espaço ao redor da barra */


}





#continuaAssitindo .card {


  transition: transform 0.2s;


  cursor: pointer;


}


#continuaAssitindo .card:hover {


  transform: scale(1.05);


}


#generos {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Nav padrão */
nav.text-white.p-3 {
  height: 80px;
  /* altura fixa */
  display: flex;
  align-items: center;
}

#plataformas button,
#generos button {
  opacity: 0;
  transform: translateX(-20px);
  animation-fill-mode: forwards;
  animation-name: fadeSlideIn;
  animation-duration: 0.5s;
  animation-timing-function: ease-out;
}

/* Delay incremental para cada botão */
#plataformas button:nth-child(1),
#generos button:nth-child(1) {
  animation-delay: 0.2s;
}

#plataformas button:nth-child(2),
#generos button:nth-child(2) {
  animation-delay: 0.4s;
}

#plataformas button:nth-child(3),
#generos button:nth-child(3) {
  animation-delay: 0.6s;
}

/* continue adicionando delays conforme o número de botões que você tiver */

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* A partir de 768px (tablet e desktop), centraliza */
@media (min-width: 768px) {
  #filtros-container {
    justify-content: center;
    /* centraliza horizontalmente */
    gap: 2rem;
  }

  nav.text-white.p-3 {
    justify-content: center;
    /* centraliza nav */
  }
}

/* Para navegadores baseados em WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 12px;
  /* Largura da barra */
}

::-webkit-scrollbar-track {
  background: #00000000;
  /* Cor do fundo da barra */
}

::-webkit-scrollbar-thumb {
  background-color: red;
  /* Cor da barra de rolagem */
  border-radius: 6px;
  border: 3px solid red;
  /* Espaço ao redor da barra */
}

/* ===== SKELETON LOADING ===== */
.skeleton-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.skeleton-card {
  width: 200px;
  height: 300px;
  border-radius: 8px;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmerSlide 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes shimmerSlide {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* ===== GLASSMORPHISM BUTTONS ===== */
.btn,
.search-btn,
.carousel-btn-top {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px 0 rgba(229, 9, 20, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover,
.search-btn:hover,
.carousel-btn-top:hover {
  background: rgba(229, 9, 20, 0.2) !important;
  border: 1px solid rgba(229, 9, 20, 0.4) !important;
  box-shadow: 0 8px 32px 0 rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
}

/* ===== CARDS COM EFEITO BRILHO ===== */
.movie-card,
.card-hover,
.top3-card {
  position: relative;
  overflow: hidden;
}

.movie-card::before,
.card-hover::before,
.top3-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.movie-card:hover::before,
.card-hover:hover::before,
.top3-card:hover::before {
  left: 100%;
}

.movie-card,
.card-hover,
.top3-card {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-card:hover,
.card-hover:hover,
.top3-card:hover {
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.4), 0 0 20px rgba(229, 9, 20, 0.2);
  transform: translateY(-8px) scale(1.03);
}

/* ===== BADGES ANIMADAS COM EFEITO NEON ===== */
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #e50914, #ff1f1f);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 10;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.6), 0 0 20px rgba(229, 9, 20, 0.4), 0 0 30px rgba(229, 9, 20, 0.2);
  animation: neonPulse 2s infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes neonPulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.6), 0 0 20px rgba(229, 9, 20, 0.4), 0 0 30px rgba(229, 9, 20, 0.2);
  }

  50% {
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.8), 0 0 30px rgba(229, 9, 20, 0.6), 0 0 45px rgba(229, 9, 20, 0.4);
  }
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */
@media (prefers-reduced-motion: no-preference) {

  .movie-carousel,
  .top3-card,
  section {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
  }
}

@media (prefers-reduced-motion: reduce) {

  .movie-carousel,
  .top3-card,
  section {
    opacity: 1;
    animation: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay nas animações */
section:nth-child(1) {
  animation-delay: 0.1s;
}

section:nth-child(2) {
  animation-delay: 0.2s;
}

section:nth-child(3) {
  animation-delay: 0.3s;
}

section:nth-child(4) {
  animation-delay: 0.4s;
}

section:nth-child(5) {
  animation-delay: 0.5s;
}

/* ===== EFEITOS DE SCROLL SUAVE ===== */
@media (prefers-reduced-motion: no-preference) {
  .section-title {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-title {
    opacity: 1;
    transform: translateX(0);
    animation: none;
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== PERFORMANCE OTIMIZATIONS ===== */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.movie-card,
.card-hover,
.top3-card {
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Reduzir animações em dispositivos low-end */
@media (max-width: 768px) {
  * {
    animation-duration: 0.3s !important;
    transition-duration: 0.2s !important;
  }
}

.banner-info.hide {
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}

.movie-card.expanded {
  transform: translateX(12px) scale(1.05);
  z-index: 20;
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.4), 0 0 20px rgba(229, 9, 20, 0.2);
  transition: transform 0.3s ease;
}

.movie-card.expanded .movie-image-container {
  padding-top: 56.25%;
  transition: padding-top 0.3s ease;
}

.movie-card.expanded .card-img-top {
  display: none;
}

.movie-card.expanded .card-overlay {
  opacity: 0;
}

.movie-card.expanded .movie-trailer {
  display: block;
}

/* ===== EXPANSÃO COM TRAILER NO DESKTOP ===== */
@media (min-width: 992px) {
  .content-section .col {
    position: relative;
    overflow: visible;
  }

  .movie-card.expanded {
    position: absolute;
    left: 0;
    width: 520px;
    transform: translateX(16px);
    z-index: 50;
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.4), 0 0 20px rgba(229, 9, 20, 0.2);
    transition: transform 0.3s ease, width 0.3s ease;
  }

  .movie-card.expanded-left {
    position: absolute;
    right: 0;
    width: 520px;
    transform: translateX(-16px);
    z-index: 50;
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.4), 0 0 20px rgba(229, 9, 20, 0.2);
    transition: transform 0.3s ease, width 0.3s ease;
  }

  .movie-card.expanded .movie-image-container {
    height: 292px;
    padding-top: 0;
  }

  .movie-card.expanded .card-img-top {
    display: none;
  }

  .movie-card.expanded .card-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .movie-card.expanded .movie-trailer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 5;
  }
}

.yt-mask {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 140px;
  height: 32px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  z-index: 6;
  pointer-events: none;
}

.volume-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilo do Carrossel ao Lado do Banner */
#carousel-container {
  scrollbar-width: thin;
  scrollbar-color: #dc143c transparent;
  background: transparent;
  backdrop-filter: none;
  padding: 10px;
  border-radius: 10px;
}

#carousel-container::-webkit-scrollbar {
  width: 6px;
}

#carousel-container::-webkit-scrollbar-track {
  background: transparent;
}

#carousel-container::-webkit-scrollbar-thumb {
  background: #dc143c;
  border-radius: 3px;
}

#carousel-container::-webkit-scrollbar-thumb:hover {
  background: #ff1f1f;
}

/* Esconde carrossel no mobile */
.carousel-desktop-only {
  display: none !important;
}

@media (min-width: 768px) {
  .carousel-desktop-only {
    display: flex !important;
  }
}

/* ===== BRASIL: TOP 10 EM SÉRIES ===== */
.brasil-top10 {
  padding: 40px 20px;
}

.brasil-top10 h2 {
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.top10-grid {
  display: flex;
  gap: 100px;
  padding: 40px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  min-height: 280px;
  scrollbar-width: none;
  white-space: nowrap;
}

.top10-grid::-webkit-scrollbar {
  display: none;
}

.top10-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 240px;
  white-space: normal;
}

.top10-card:hover .top10-poster img {
  filter: brightness(1.15);
  transform: scale(1.05);
}

.top10-number {
  font-size: 280px;
  font-weight: 900;
  opacity: 1;
  line-height: 0.8;
  color: #dc143c;
  pointer-events: none;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  z-index: 1;
  flex: 0 0 180px;
  width: 180px;
  text-align: right;
  margin-right: -50px;
  white-space: nowrap;
}

.top10-poster {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  z-index: 3;
  width: 160px;
  flex: 0 0 auto;
}

.top10-poster img {
  width: 160px;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.top10-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  z-index: 3;
  backdrop-filter: blur(4px);
}

.badge-novidade {
  background-color: #dc143c;
  color: white;
}

.badge-newseason {
  background-color: #ffc107;
  color: #1a1a1a;
  font-weight: bold;
}

.top10-card h5 {
  display: none;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
  .top10-grid {
    gap: 80px;
    padding: 30px 20px;
    min-height: 230px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .top10-grid::-webkit-scrollbar {
    display: none;
  }

  .top10-card {
    min-height: 200px;
    display: inline-flex;
    white-space: normal;
  }

  .top10-number {
    font-size: 200px;
    opacity: 1;
    color: #dc143c;
    flex: 0 0 140px;
    width: 140px;
    margin-right: -40px;
  }

  .top10-poster {
    width: 140px;
  }

  .top10-poster img {
    width: 140px;
    height: 210px;
  }

  .brasil-top10 h2 {
    font-size: 20px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .top10-grid {
    gap: 60px;
    padding: 20px 15px;
    min-height: 180px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .top10-grid::-webkit-scrollbar {
    display: none;
  }

  .top10-card {
    min-height: 160px;
    display: inline-flex;
    white-space: normal;
  }

  .top10-number {
    font-size: 130px;
    opacity: 1;
    color: #dc143c;
    flex: 0 0 110px;
    width: 110px;
    margin-right: -30px;
  }

  .top10-poster {
    width: 110px;
  }

  .top10-poster img {
    width: 110px;
    height: 165px;
  }

  .brasil-top10 h2 {
    font-size: 18px;
    margin-bottom: 25px;
  }
}
