@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;
}

:root {
  --primary: #ff3700;
  --banner-overlay-opacity: 0.62;
}

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: 34px;
  letter-spacing: 2px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(120deg, #ffffff 0%, #ffd7c9 28%, #ff6a33 50%, #ffd7c9 72%, #ffffff 100%);
  background-size: 240% 240%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logo-wave-glow 3.2s ease-in-out infinite;
  text-shadow:
    0 0 6px rgba(255, 130, 70, 0.35),
    0 0 16px rgba(255, 90, 30, 0.28);
}

@keyframes logo-wave-glow {
  0% {
    background-position: 0% 50%;
    transform: translateY(0);
    text-shadow:
      0 0 6px rgba(255, 130, 70, 0.35),
      0 0 16px rgba(255, 90, 30, 0.28);
  }
  50% {
    background-position: 100% 50%;
    transform: translateY(-2px);
    text-shadow:
      0 0 12px rgba(255, 180, 130, 0.58),
      0 0 24px rgba(255, 95, 30, 0.44),
      0 0 40px rgba(255, 70, 20, 0.3);
  }
  100% {
    background-position: 0% 50%;
    transform: translateY(0);
    text-shadow:
      0 0 6px rgba(255, 130, 70, 0.35),
      0 0 16px rgba(255, 90, 30, 0.28);
  }
}

.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, 255, 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;
  cursor: pointer;
}

.search-status {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 100%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  line-height: 1.25;
  margin: 0;
}

.banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 130px 100px 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: url('../images/movies/bg-The Ritual.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, var(--banner-overlay-opacity));
}

.content {
  position: relative;
  z-index: 2;
  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 {
  display: block;
  width: 250px;
  max-width: 100%;
  height: 118px;
  object-fit: contain;
  object-position: left center;
}

.banner .content h4 {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-size: 30px;
}

.banner .content h4 span {
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 255, 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;
}

@keyframes graduation-glow-shift {
  0% {
    filter: brightness(1);
    color: rgba(255, 255, 255, 0.92);
    text-shadow:
      0 0 6px rgba(255, 220, 200, 0.35),
      0 0 18px rgba(255, 120, 60, 0.25),
      0 0 32px rgba(255, 70, 0, 0.18);
    transform: translateZ(0);
  }
  33% {
    filter: brightness(1.06);
    color: rgba(255, 246, 240, 0.98);
    text-shadow:
      0 0 14px rgba(255, 230, 210, 0.65),
      0 0 28px rgba(255, 140, 70, 0.45),
      0 0 48px rgba(255, 90, 20, 0.32),
      -2px 0 36px rgba(255, 200, 150, 0.12);
    transform: translateZ(0);
  }
  66% {
    filter: brightness(1.12);
    color: #ffffff;
    text-shadow:
      0 0 10px rgba(255, 235, 220, 0.55),
      0 0 22px rgba(255, 100, 50, 0.4),
      0 0 40px rgba(255, 60, 0, 0.28),
      3px 0 40px rgba(255, 180, 130, 0.15);
    transform: translateZ(0);
  }
  100% {
    filter: brightness(1);
    color: rgba(255, 255, 255, 0.92);
    text-shadow:
      0 0 6px rgba(255, 220, 200, 0.35),
      0 0 18px rgba(255, 120, 60, 0.25),
      0 0 32px rgba(255, 70, 0, 0.18);
    transform: translateZ(0);
  }
}

.content.graduation p.graduation-message {
  animation: graduation-glow-shift 3.2s ease-in-out infinite;
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .content.graduation p.graduation-message {
    animation: none;
    text-shadow:
      0 0 10px rgba(255, 200, 180, 0.45),
      0 0 24px rgba(255, 100, 50, 0.25);
  }
}

.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, 255, 0.2);
}

.banner .content .button a:hover:nth-child(2) {
  background: var(--primary);
}

/* Slimmer on wide screens — narrower band so more hero background shows */
.banner .carousel-box {
  position: relative;
  width: min(42vw, 520px);
  min-width: 0;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.14);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 10px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 365px;
  perspective: 1400px;
}
.carousel .carousel-item {
  width: 205px;
  height: 315px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.carousel .carousel-item img {
  width: 188px;
  height: 278px;
  border-radius: 10px;
  transform: none;
  object-fit: cover;
  object-position: center;
}

.play {
  position: relative;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 18px;
  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,
.movie-player {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 14px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  visibility: hidden;
  opacity: 0;
  transition: 0.5s;
}

.trailer.active,
.movie-player.active {
  visibility: visible;
  opacity: 1;
}

.trailer video,
.movie-player video {
  width: min(92vw, 1100px);
  max-height: 92vh;
  background: #000;
  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: 120px 50px 60px;
  }

  .banner .content .play {
    font-size: 1em;
  }

  .play img {
    margin-right: 10px;
    max-width: 40px;
  }

  .trailer video,
  .movie-player video {
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 28px;
    letter-spacing: 1px;
  }

  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 {
    width: 150px;
    height: 72px;
  }

  .banner .content h4 {
    font-weight: 300;
    font-size: 20px;
  }

  .banner .content p {
    font-size: 10px;
    font-weight: 200;
    line-height: 1.2em;
  }

  /* Narrower carousel on phones so more hero background stays visible */
  .banner .carousel-box {
    width: 100%;
    max-width: min(calc(100vw - 40px), 292px);
    margin-inline: auto;
    align-self: center;
    height: 210px;
  }

  .carousel {
    position: relative;
    width: 100%;
    height: 190px;
    perspective: 1200px;
  }

  .carousel .carousel-item {
    margin-top: 6%;
    width: 112px;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
  }

  .carousel .carousel-item img {
    width: 102px;
    height: 154px;
    border-radius: 8px;
    transform: none;
    object-fit: cover;
    object-position: center;
  }

  .banner .content .play {
    margin-top: 14px;
    font-size: 0.95em;
  }

  .banner .sci {
    right: 30px;
    bottom: 30px;
    gap: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo {
    animation: none;
    background-position: 50% 50%;
  }
}

@media (max-width: 380px) {
  .banner .carousel-box {
    max-width: min(calc(100vw - 28px), 268px);
    height: 196px;
  }

  .carousel {
    height: 178px;
  }

  .carousel .carousel-item {
    width: 104px;
    height: 156px;
  }

  .carousel .carousel-item img {
    width: 96px;
    height: 144px;
  }
}
