/*
Template Name: Entertain Pro
File: Layout CSS
Author: TemplatesOnWeb
Author URI: https://www.templateonweb.com/
Licence: <a href="https://www.templateonweb.com/license">Website Template Licence</a>
*/
/*********************center_home****************/
.carousel-control-prev,
.carousel-control-next {
  width: auto !important;
  padding: 0 10px;
  /* optional, smaller clickable area */
}

.movie-box {
  position: relative;
}

.movie-box img {
  width: 100%;
  border-radius: 10px;
}

.movie-number {
  position: absolute;
  bottom: 8px;
  left: 12px;
  color: #fff;
  font-size: 5.5rem;
  font-weight: 800;
  text-shadow:
    2px 2px 5px rgba(0, 0, 0, 0.8),
    -2px -2px 5px rgba(0, 0, 0, 0.8);
}

.multi-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 95%;
  margin: 50px auto;
}

.multi-carousel {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.multi-track {
  display: flex;
  transition: transform 0.6s ease;
}

.multi-item {
  flex: 0 0 25%;
  /* show 4 at a time */
  box-sizing: border-box;
  padding: 10px;
}

.multi-item img {
  width: 100%;
  border-radius: 10px;
}

/* Arrow buttons outside */
.multi-control-prev,
.multi-control-next {
  background: none;
  border: none;
  color: #b1b1b1;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.multi-control-prev:hover,
.multi-control-next:hover {
  color: #e50914;
}

/* Make images cover the carousel area */
.carousel-image-wrapper {
  width: 100%;
  height: 80vh;
  /* adjust height as desired */
  overflow: hidden;
  position: relative;
}

.carousel-image-wrapper img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  /* makes image behave like background-size: cover */
  object-position: center;
}


.carousel-caption {
  text-align: left;
  /* force right alignment */
  background: #0000005e;
  padding: 30px 20px;
  bottom: 4rem;
  right: 60%;
  left: 5%;
  width: 35%;
  color: #fff;
}

.carousel-indicators {
  bottom: 0;
}

.movie-overlay {
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.movie-overlay p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  /* number of lines */
  line-clamp: 5;
  overflow: hidden;
}

.movie-card {
  position: relative;
  border-radius: 12px;
  /* Rounded corners */
  overflow: hidden;
  /* Keeps image & overlay inside the rounded border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover .movie-overlay {
  opacity: 1;
}

.movie-poster {
  display: block;
  transition: opacity 0.4s ease;
}

.movie-card:hover {
  transform: scale(1.1);
  /* box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4); Stronger shadow on hover */
}

.btn-trailer {
  padding: 0.25rem 0.4rem;
  /* smaller padding */
  font-size: 0.7rem;
  /* smaller icon/text */
  width: 28px;
  /* optional fixed size */
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-trailer i {
  font-size: 0.65rem;
  /* smaller icon */
}

.trailer-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.trailer-content {
  position: relative;
  width: 80%;
  max-width: 700px;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
}

.trailer-content iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 22px;
  cursor: pointer;
  font-weight: bold;
}

.card:hover .overlay {
  opacity: 1;
}

.row.flex-nowrap::-webkit-scrollbar {
  height: 8px;
}

.row.flex-nowrap::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 10px;
}

.row.flex-nowrap::-webkit-scrollbar-thumb:hover {
  background-color: #666;
}

.row.flex-nowrap.overflow-auto {
  scroll-behavior: smooth;
  overflow-x: auto;
  /* keep scrolling enabled */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

/* Chrome, Safari, Opera */
.row.flex-nowrap.overflow-auto::-webkit-scrollbar {
  display: none;
}

.cw-container {
  position: relative;
}

.cw-container .scroll-left,
.cw-container .scroll-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  background-color: #e50914;
}

.cw-container .scroll-left {
  left: 0;
  margin: 10px;
}

.cw-container .scroll-right {
  right: 0;
  margin: 10px;
}

.cw-container .scroll-left:hover,
.cw-container .scroll-right:hover {
  opacity: 1;
}

/*********************center_home_end****************/

/*********************upcome****************/
.movies-tab .nav-link {
  display: block;
  padding: 0.8rem 2rem;
  color: #333;
  background: #fff;
  border-radius: 0;
  border: none;
  border-right: 1px solid #e509141f;
}

.movies-tab .nav-link:hover {
  background: #e50914;
  color: #fff;
}

.movies-tab .nav-link.active {
  background: #e50914;
  color: #fff;
}

.upcome_2i1i1 {
  padding-top: 110px;
  display: none;
  background: #0000005e;
  height: 100%;
}

.upcome_2i1 {
  border-radius: 12px;
  overflow: hidden;
  background-color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upcome_2i1:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

.upcome_2i1i img {
  border-radius: 12px;
}

.upcome_2i_lastir span a {
  display: inline-block;
  border: 1px solid #e509141f;
  width: 45px;
  height: 45px;
  line-height: 42px;
  text-align: center;
}

.upcome_2i_lastir span:hover a {
  background: #e50914;
  color: #fff;
}

/*********************upcome_end****************/

/*********************release****************/
#release {
  background-color: #691c1c;
  background-position: center;
}

.release_m {
  padding-top: 50px;
  padding-bottom: 50px;
}

.popular_m2 .play {
  font-size: 100px;
  padding-top: 130px;
}

.popular_m2 {
  background: #0000005e;
  height: 100%;
}

/*********************release_end****************/

/*********************trend****************/
#trend {
  background-image: url(../img/2.jpg);
  background-position: center;
}

#trend .carousel-indicators {
  bottom: -50px;
}

/*********************trend_end****************/

/*********************news****************/
.news_1rir {
  box-shadow: 0px 1px 5px 0px rgb(0 0 0 / 10%);
  border-radius: 0px 10px 10px 0px;
}

#news .popular_m2 .play {
  padding-top: 210px;
}

/*********************news_end****************/

/*********************gallery****************/
.gallery_1lm2 span a {
  width: 45px;
  height: 45px;
  line-height: 45px;
  border-radius: 50%;
}

.gallery_1lm2 {
  display: none;
  padding-top: 55px;
}

.gallery_1lm:hover .gallery_1lm2 {
  display: block;
}

/*********************gallery_end****************/


@media screen and (max-width : 767px) {
  .carousel-caption {
    padding: 20px 15px;
    bottom: 2rem;
    left: 5%;
    right: 5%;
    width: 90%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    text-align: center;
  }

  .carousel-image-wrapper {
    height: 60vh;
  }

  .carousel-caption h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .carousel-caption .button_1,
  .carousel-caption .button_2 {
    padding: 8px 15px !important;
    font-size: 0.8rem;
  }

  .center_home img {
    min-height: 400px;
  }

  .center_home p {
    font-size: 14px;
  }

  .center_home .button_1 {
    padding: 10px !important;
  }

  .center_home .button_2 {
    padding: 10px !important;
  }

  .movies-tab .nav-link {
    margin-bottom: 8px;
  }

  .upcome_2i_last {
    margin-bottom: 15px;
  }

  .popular_m {
    margin-bottom: 15px;
  }

  .popular_m2i h6 {
    font-size: 13px;
  }

  .popular_m2i h2 {
    font-size: 18px;
  }

  .popular_m2i p {
    font-size: 16px;
  }

  .news_1ri .pe-0 {
    padding-right: 12px !important;
  }

  .news_1ri .ps-0 {
    padding-left: 12px !important;
  }

  .events_1i2 {
    margin-bottom: 15px;
  }

  #gallery .ps-0 {
    padding-left: 12px !important;
  }

  #gallery .pe-0 {
    padding-right: 12px !important;
  }

  .gallery_1m img {
    height: auto;
  }

  .gallery_1m {
    margin-top: 15px;
    margin-bottom: 15px;
  }
}


@media (min-width:576px) and (max-width:767px) {
  .upcome_2i1i1 {
    padding-top: 50%;
  }

  .news_1ril img {
    height: auto;
  }

  #gallery img {
    height: auto;
  }

  .gallery_1lm2 {
    padding-top: 40%;
  }

}

@media (min-width:768px) and (max-width:991px) {
  .center_home img {
    min-height: 600px;
  }

  .carousel-caption {
    padding: 30px 15px;
    right: 30%;
    width: 60%;
  }

  .upcome_2i1i img {
    min-height: 330px;
  }

  .upcome_2i1i1 .button_1 {
    padding: 10px !important;
  }

  .upcome_2i1i1 .button_2 {
    padding: 10px !important;
  }

  .upcome_2i_lastir span a {
    width: 30px;
    height: 30px;
    line-height: 28px;
  }

  .upcome_2i_lastil h5 {
    font-size: 16px;
  }

  .upcome_2i_lastil h6 {
    font-size: 14px;
  }

  .popular_m2i h2 {
    font-size: 24px;
  }

  .popular_m2i p {
    font-size: 16px;
  }

  .news_1rir p {
    font-size: 14px;
  }

  .news_1rir h4 {
    font-size: 16px !important;
  }

  .news_1rir h6 {
    font-size: 13px;
  }

  .news_1rir {
    min-height: 251px;
  }

  .events_1i2 h6 {
    font-size: 13px;
  }
}

@media (min-width:992px) and (max-width:1200px) {
  .center_home img {
    min-height: 600px;
  }

  .carousel-caption {
    padding: 30px 15px;
    right: 30%;
    width: 60%;
  }

  .upcome_2i1i img {
    min-height: 330px;
  }

}

@media (min-width:1201px) and (max-width:1255px) {}


/* Continue Watching Card CSS */

/* Reset-ish for demo */
.cw-card {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #eaf0ff;
}

/* Card container */
.cw-card {
  width: 100%;
  max-width: 300px;
  height: 360px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  box-shadow: 0px 5px 5px rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(6px) saturate(120%);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  padding: 12px;
  box-sizing: border-box;
  transition: transform 240ms cubic-bezier(.2, .9, .3, 1), box-shadow 240ms;
  transform-origin: center;
  position: relative;
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

/* Hover/active */
.cw-card:hover {
  transform: translateY(-4px) scale(1.01);
}

/* Thumbnail area */
.cw-thumb {
  position: relative;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  background-image: var(--thumb);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}

/* subtle gradient overlay to ensure text legibility */
.cw-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(1, 2, 6, 0.6) 65%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Play button (center-right on hover, small by default) */
.cw-play {
  position: absolute;
  left: 14px;
  bottom: 20px;
  border: none;
  background: #e50914;
  color: white;
  height: 46px;
  width: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(6px);
  backdrop-filter: blur(4px);
}

.cw-card:hover .cw-play {
  transform: translateY(0) scale(1.03);
  background: var(--accent);
  color: #001;
  box-shadow: 0 12px 28px rgba(123, 97, 255, 0.18);
}

/* Progress track at bottom of thumbnail */
.cw-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: rgba(255, 255, 255, 0.103);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  overflow: hidden;
  margin: 0;
}

.cw-progress-fill {
  height: 100%;
  width: 0%;
  background: white;
  transition: width 420ms cubic-bezier(.2, .9, .3, 1);
  box-shadow: 0 2px 10px rgba(123, 97, 255, 0.14) inset;
}

/* Meta (title, subtitle, small actions) */
.cw-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

/* Title / subtitle stack */
.cw-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.2px;
  color: #f8fbff;
}

.cw-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
  opacity: 0.95;
}

/* Actions area */
.cw-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.cw-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 160ms, background 160ms, color 160ms;
}

.cw-btn:hover {
  transform: translateY(-3px);
  color: #fff;
}

.cw-btn.ghost {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 8px;
}

.cw-btn.ghost:hover {
  color: #fff;
  transform: none;
}

/* Small responsive tweak */
@media (max-width:420px) {
  :root {
    --cw-width: 320px;
  }

  .cw-thumb {
    height: 170px;
  }

  .cw-play {
    left: 12px;
    bottom: 12px;
    height: 44px;
    width: 44px;
  }
}