@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200&family=Roboto:wght@300;400;500&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

:root {
  --primary: #ff3700;
}

body {
  background: #000000;
  font-family: 'Poppins', sans-serif;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 100px;
  z-index: 10;
}

.logo {
  font-size: 40px;
  color: #fff;
  letter-spacing: 2px;
  font-weight: 800;
}

.nav {
  display: flex;
}

.nav li {
  list-style: none;
  margin: 0 10px;
}

.nav li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
}

.nav li:hover a {
  color: var(--primary);
}

.search {
  position: relative;
  width: 300px;
  height: 40px;
}

.search input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 2555, 0.5);
  outline: none;
  border-radius: 4px;
  padding: 0 10px 0 45px !important;
  backdrop-filter: blur(10px);
}

.search input::placeholder {
  color: #ffffff;
}

.search .fa-search {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
  padding-right: 10px;
  color: #ffffff;
  border-right: 1px solid #ffffff;
}

.banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: url('Fprincipal.jpg') no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: 0.5s;
}

.banner::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.content {
  position: relative;
  max-width: 550px;
  display: none;
  visibility: hidden;
  transform: scale(0);
  transition: 0.5s;
}

.content.active {
  display: block;
  visibility: visible;
  transform: scale(1);
  transition: 0.5s;
}

.movie-title {
  max-width: 250px;
}

.banner .content h4 {
  color: rgba(255, 255, 2555, 0.5);
  font-weight: 400;
  font-size: 30px;
}

.banner .content h4 span {
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 2555, 0.5);
}

.banner .content h4 span:first-child {
  padding-left: 0;
}

.banner .content h4 span:last-child {
  border-right: 0;
}

.banner .content h4 span i {
  background: var(--primary);
  color: #ffffff;
  padding: 0 8px;
  display: inline-block;
  border-radius: 2px;
}

.banner .content p {
  font-size: 1em;
  font-weight: 300;
  line-height: 1.5em;
  color: #ffffff;
  margin: 10px 0 20px;
}

.banner .content .button {
  position: relative;
}

.banner .content .button a {
  position: relative;
  display: inline-block;
  margin-right: 10px;
  background: var(--primary);
  color: #ffffff;
  padding: 6px 20px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.5s;
  cursor: pointer;
}

.banner .content .button a:nth-child(2) {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 2555, 0.2);
}

.banner .content .button a:hover:nth-child(2) {
  background: var(--primary);
}

.banner .carousel-box {
  position: relative;
  min-width: 950px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 2555, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 10px;
}

.carousel {
  position: relative;
  height: 550px;
  perspective: 1500px;
}
/* Tamanho fixo dos itens do carrossel */
.carousel .carousel-item {
  width: 250px;           /* largura igual para todos */
  height: 350px;          /* altura igual para todos */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Imagens dentro do carrossel */
.carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* corta a imagem sem deformar */
  border-radius: 10px;
}

.play {
  position: absolute;
  bottom: 50px;
  left: 100px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 1.2em;
  cursor: pointer !important;
  transition: 0.3s;
}

.play i {
  margin-right: 10px;
  font-size: 40px;
  cursor: pointer !important;
}

.play:hover {
  color: var(--primary);
}

.trailer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(20px);
  visibility: hidden;
  opacity: 0;
  transition: 0.5s;
}

.trailer.active {
  visibility: visible;
  opacity: 1;
}

.trailer video {
  max-width: 900px;
  outline: none;
}

.close {
  position: absolute;
  top: 30px;
  right: 30px;
  cursor: pointer;
  filter: invert(1);
  max-width: 32px;
}

.sci {
  position: absolute;
  bottom: 50px;
  right: 100px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 25px;
}

.sci a {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 25px;
  transition: 0.3s;
  cursor: pointer;
}

.sci a:hover {
  color: var(--primary);
}

@media (max-width: 991px) {
  header {
    padding: 20px 50px;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
  }

  header .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 0;
  }

  .banner {
    padding: 100px 50px;
  }

  .banner .play {
    left: 50px;
    font-size: 1em;
  }

  .play img {
    margin-right: 10px;
    max-width: 40px;
  }

  .trailer video {
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  header {
    padding: 20px;
  }

  .search {
    position: relative;
    width: 250px;
    height: 40px;
  }

  .banner {
    padding: 120px 30px 100px;
    flex-direction: column;
  }

  .banner .content {
    margin-top: 18%;
  }

  .movie-title {
    max-width: 150px;
  }

  .banner .content h4 {
    font-weight: 300;
    font-size: 20px;
  }

  .banner .content p {
    font-size: 10px;
    font-weight: 200;
    line-height: 1.2em;
  }

  .banner .carousel-box {
    max-width: 450px;
    max-height: 300px;
  }

  .carousel {
    position: relative;
    height: 280px;
    perspective: 1500px;
  }

  .carousel .carousel-item {
    margin-top: 10%;
    width: 150px;
    cursor: pointer;
  }

  .carousel .carousel-item img {
    max-width: 140px;
    border-radius: 10px;
    transform: translateX(8px) translateY(-100px);
    object-fit: cover;
    object-position: center;
  }

  .banner .play {
    left: 30px;
    bottom: 30px;
  }

  .banner .sci {
    right: 30px;
    bottom: 30px;
    gap: 15px;
  }
}
