.carousel-intro {
  max-width: 1260px;
  margin: 0 auto 20px auto;
  padding-top: 20px;
}

.carousel-intro p {
  color: #a5121a;
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.4;
  font-weight: 400;
  text-align: left;
}

.netflix-carousel-wrapper {
  position: relative;
  width: 1260px;
  max-width: 98vw;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.netflix-carousel-container {
  overflow: hidden;
  position: relative;
}

.netflix-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
  user-select: none;
  will-change: transform;
}

.n-card {
  position: relative;
  width: 220px;
  height: 320px;
  flex: 0 0 220px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #323232;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 1;
  transition: z-index 0.2s, box-shadow 0.25s cubic-bezier(.34, .89, .45, 1.18);
}

.n-card .poster,
.n-card .hover-block {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.29s;
  pointer-events: none;
}

.n-card .poster {
  z-index: 2;
}

.n-card .hover-block {
  opacity: 0;
  z-index: 5;
  background: #000;
  pointer-events: none;
  position: relative;
}
  .n-card .card-title {
  position: absolute;
  bottom: 20px;
  left: 12px;
  right: 12px;
  z-index: 6;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
}
.n-card:hover .card-title {
  opacity: 0;
}



.n-card:hover {
  z-index: 10;
  box-shadow: 0 6px 32px rgba(24, 24, 24, 0.38);
}

.n-card:hover .hover-block {
  opacity: 1;
}

.n-card:hover .poster {
  opacity: 0;
}

.hover-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-meta {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.hover-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.50) 65%, rgba(0, 0, 0, 0.0) 100%);
  z-index: 1;
}

.hover-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 15px 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.36s 0.18s;
  pointer-events: none;
}

.n-card:hover .hover-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hover-title {
  color: #fff;
  font-size: 0.81rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hover-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.hover-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.87rem;
  padding: 5px 13px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: none;
}

.hover-btn.info {
  background: #a5121a;
  color: #fff;
  border: 1.5px solid #a5121a;
}

.hover-btn.info:hover {
  background: #b80710;
}

.hover-btn.details {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.hover-btn.details:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hover-details {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: #fff;
  background: rgba(24, 24, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  padding: 3px 9px;
  font-weight: 500;
  backdrop-filter: blur(2px);
}

.chip b {
  margin-left: 5px;
  font-weight: 700;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 340px;
  background: rgba(20, 20, 20, 0.7);
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s;
}

.netflix-carousel-wrapper:hover .carousel-arrow {
  opacity: 1;
}

.left-arrow {
  left: 0;
}

.right-arrow {
  right: 0;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
  fill: white;
}
@media (max-width: 1300px) and (min-width: 601px) {
  .netflix-carousel-wrapper {
    padding: 0 10px;
  }

  .carousel-arrow {
    display: none !important;
  }

  .hover-block video {
    display: none !important;
  }

  .n-card:hover .hover-block {
    opacity: 1;
  }

  .n-card .hover-block {
    pointer-events: auto;
    opacity: 1;
    background: transparent;
  }

  .n-card:hover .poster {
    opacity: 1 !important;
  }

  .hover-content {
    opacity: 1 !important;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hover-gradient {
    display: block;
  }
.n-card .card-title {
    display: none;
  }
  .n-card {
    width: 220px;
    height: 320px;
    flex: 0 0 220px;
  }
  .carousel-intro p {
  color: #a5121a;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  text-align: left;
  padding: 0 20px;
}
}

@media (max-width: 600px) {
  .netflix-carousel-wrapper {
    padding: 0 16px;
  }

  .carousel-arrow {
    display: none !important;
  }

  .hover-block video {
    display: none !important;
  }

  .n-card:hover .hover-block {
    opacity: 1;
  }

  .n-card .hover-block {
    pointer-events: auto;
    opacity: 1;
    background: transparent;
  }

  .n-card:hover .poster {
    opacity: 1 !important;
  }

  .hover-content {
    opacity: 1 !important;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hover-gradient {
    display: block;
  }
.n-card .card-title {
    display: none;
  }
  .n-card {
    width: 220px;
    height: 320px;
    flex: 0 0 220px;
  }
  .carousel-intro p {
  color: #a5121a;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  text-align: left;
  padding: 0 20px;
}
}

.carousel-arrow img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px #000);
  pointer-events: none;
  user-select: none;
}
