:root {
  --thm-color: #FF5A36;
  --color-secondary: #1c1c25;
  --color-body: #B6B6B7;
  --color-white: #ffffff;
  --color-border: rgba(255, 255, 255, 0.16);
  --font-heading: "Public Sans", sans-serif;
  --font-body: "Inter", sans-serif;
}

.container,
.container-fluid {
  width: 100%;
  padding: 0 10px;
}

.container .container {
  padding: 0;
}

@media (min-width: 1400px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1220px !important;
  }
}

/* For Chrome, Safari, Edge, and Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* For Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}




/* -------- swiper pagination bullets ----- */
.swiper-pagination-bullets {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.swiper-pagination-bullets span.swiper-pagination-bullet {
  height: 20px;
  width: 20px;
  background: var(--thm-color);
  margin: 0 !important;
  padding: 0;
}

/* header template One style */

.header-template-v1 .menu-area {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.31);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(50px);
  padding: 0 20px;

}

@media (max-width: 991px) {
  .header-template-v1 .menu-area {
    padding: 15px;

  }

  .navbar-collapse {
    text-align: right;
  }
}


.menu-area .navbar {
  flex-wrap: nowrap;
  padding: 0;
}

.header-one-content-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Ajax Search Form Styles */
.header-search-form.cinefy-ajax-search-container {
  position: relative;
}

.cinefy-ajax-search-form {
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: 44px;
  border-radius: 7px;
  border: 0.5px solid #989898;
  border: 1px solid rgba(255, 255, 255, 0.21);
  backdrop-filter: blur(50px);
}

.cinefy-ajax-search-form input[type=text] {
  background: transparent;
  border: none;
  padding: 0 10px;
  width: 260px;
  outline: none;
  color: #FFF;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px;
  margin-bottom: 0;
}


.cinefy-ajax-search-form input::placeholder {
  color: #dcdcdc;
}

.cinefy-ajax-search-form button[type=submit] {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User Icon Styles */
.header-user-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 14px;
  transition: background 0.3s;
  border-radius: 7px;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.21);
  background: #7D7D7D;
  backdrop-filter: blur(50px);
}

.header-user-icon a:hover {
  background-color: var(--thm-color);
  color: var(--color-white);
}

/* Ajax Search Results Dropdown */
.cinefy-ajax-search-results {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 300px;
  background: #fff;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: none;
  border-radius: 6px;
  overflow: hidden;
}

.cinefy-ajax-search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
}

.cinefy-ajax-search-results li {
  padding: 10px;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

.cinefy-ajax-search-results li:hover {
  background: #f9f9f9;
}

.cinefy-ajax-search-results li:last-child {
  border-bottom: none;
}

.cinefy-ajax-search-results a {
  display: flex;
  align-items: center;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.cinefy-ajax-search-results img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 15px;
  border-radius: 4px;
}

.cinefy-ajax-search-results .loading,
.cinefy-ajax-search-results .no-results {
  padding: 15px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

@media (max-width: 1399px) {

  .cinefy-ajax-search-form input[type=text] {
    width: 200px;
  }
}

@media (max-width: 1199px) {

  .cinefy-ajax-search-form input[type=text] {
    width: 150px;
  }
}

/* Movie Grid Widget Styles */
.cinefy-movie-grid-wrapper {
  margin: 0 auto;
}

.cinefy-movie-grid-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.cinefy-movie-grid-container.cinefy-grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cinefy-movie-grid-container.cinefy-grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cinefy-movie-grid-container.cinefy-grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cinefy-movie-grid-container.cinefy-grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.cinefy-movie-grid-container.cinefy-grid-cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Responsive Grid */
@media (max-width: 1199px) {

  .cinefy-movie-grid-container.cinefy-grid-cols-5,
  .cinefy-movie-grid-container.cinefy-grid-cols-6 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 991px) {
  .cinefy-movie-grid-container {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .cinefy-movie-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .cinefy-movie-grid-container {
    grid-template-columns: 1fr !important;
  }
}

/* Custom Movie Card Styles */

.cinefy-custom-movie-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 3.5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cinefy-custom-movie-card .cinefy-movie-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cinefy-custom-movie-card .cinefy-movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cinefy-custom-movie-card:hover .cinefy-movie-poster img {
  transform: scale(1.05);
}

.cinefy-poster-placeholder {
  width: 100%;
  height: 100%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #555;
}

.cinefy-custom-movie-card .cinefy-movie-rating {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #e5c464;
  color: #000;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  line-height: normal;
}

.cinefy-custom-movie-card .cinefy-movie-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0) 100%);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.cinefy-custom-movie-card:hover .cinefy-movie-content {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cinefy-custom-movie-card .cinefy-movie-title {
  margin: 0 0 10px;
  color: #FFF;
  font-family: "Public Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.cinefy-custom-movie-card .cinefy-movie-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.cinefy-custom-movie-card .cinefy-movie-title a:hover {
  color: #e26343;
}

.cinefy-custom-movie-card .cinefy-movie-desc {
  margin: 0 0 15px;
  color: #D3D3D3;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  text-transform: capitalize;
}

.cinefy-custom-movie-card .cinefy-movie-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.cinefy-custom-movie-card .cinefy-cat-pill {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
}


/* Movie Slider Styles */
.cinefy-movie-slider {
  padding-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px;
  margin-right: -20px;
}

.cinefy-movie-slider .swiper-pagination {
  bottom: 0;
}

.cinefy-movie-slider .swiper-pagination-bullet {
  background: #cccccc;
  opacity: 0.5;
}

.cinefy-movie-slider .swiper-pagination-bullet-active {
  background: #df6444;
  opacity: 1;
}

.cinefy-movie-slider .swiper-button-next,
.cinefy-movie-slider .swiper-button-prev {
  color: #df6444;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: 40%;
  transition: all 0.3s;
}

.cinefy-movie-slider .swiper-button-next:hover,
.cinefy-movie-slider .swiper-button-prev:hover {
  background: #df6444;
  color: #fff;
}

.cinefy-movie-slider .swiper-button-next::after,
.cinefy-movie-slider .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.cinefy-movie-grid-wrapper .swiper-horizontal>.swiper-pagination-bullets,
.cinefy-movie-grid-wrapper .swiper-pagination-bullets.swiper-pagination-horizontal,
.cinefy-movie-grid-wrapper .swiper-pagination-custom,
.cinefy-movie-grid-wrapper .swiper-pagination-fraction {
  bottom: -30px;
}

/* Trending Slider Styles */
.cinefy-trending-slider-wrapper {
  position: relative;
  padding: 40px 0;
  container-type: inline-size;
  /* For solid height calculation */
}

/* Ensure hovered slides pop above other slides */
.cinefy-trending-slider .swiper-slide {
  overflow: hidden;
  /* Accordion hides overflow */
  z-index: 1;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ----------------------------------------------------
   Desktop Accordion Configs (min-width: 1024px)
   ---------------------------------------------------- */
@media (min-width: 1024px) {

  /* Cols: 2 */
  .cinefy-trending-slider.cols-2 .swiper-slide {
    width: calc(25% - 7.5px) !important;
  }

  .cinefy-trending-slider.cols-2:not(:hover) .swiper-slide-active,
  .cinefy-trending-slider.cols-2 .swiper-slide:hover {
    width: calc(50% - 22.5px) !important;
  }

  /* Cols: 3 */
  .cinefy-trending-slider.cols-3 .swiper-slide {
    width: calc(16.6666% - 10px) !important;
  }

  .cinefy-trending-slider.cols-3:not(:hover) .swiper-slide-active,
  .cinefy-trending-slider.cols-3 .swiper-slide:hover {
    width: calc(66.6666% - 40px) !important;
  }

  /* Cols: 4 */
  .cinefy-trending-slider.cols-4 .swiper-slide {
    width: calc(16.6666% - 15px) !important;
  }

  .cinefy-trending-slider.cols-4:not(:hover) .swiper-slide-active,
  .cinefy-trending-slider.cols-4 .swiper-slide:hover {
    width: calc(50% - 45px) !important;
  }

  /* Cols: 5 */
  .cinefy-trending-slider.cols-5 .swiper-slide {
    width: calc(15% - 18px) !important;
  }

  .cinefy-trending-slider.cols-5:not(:hover) .swiper-slide-active,
  .cinefy-trending-slider.cols-5 .swiper-slide:hover {
    width: calc(30% - 48px) !important;
  }

  /* Cols: 6 */
  .cinefy-trending-slider.cols-6 .swiper-slide {
    width: calc(13.3333% - 20px) !important;
  }

  .cinefy-trending-slider.cols-6:not(:hover) .swiper-slide-active,
  .cinefy-trending-slider.cols-6 .swiper-slide:hover {
    width: calc(33.3333% - 50px) !important;
  }
}

.cinefy-trending-card {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: linear-gradient(189deg, rgba(0, 0, 0, 0.00) 38.49%, #000 81.72%);
  overflow: hidden;
}

/* The inner scalable container */
.cinefy-trending-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.cinefy-trending-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cinefy-trending-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
  height: 100% !important;
}

/* Default: poster shown, backdrop hidden */
.cinefy-trending-poster .poster-img {
  opacity: 1;
  width: 100%;
  height: 100%;
}

.cinefy-trending-poster .backdrop-img {
  opacity: 0;
}

/* Expanded state (active when not hovered) swaps poster and backdrop (DESKTOP ONLY) */
@media (min-width: 1024px) {

  .cinefy-trending-slider:not(:hover) .swiper-slide-active .poster-img,
  .cinefy-trending-slider .swiper-slide:hover .poster-img {
    opacity: 0;
  }

  .cinefy-trending-slider:not(:hover) .swiper-slide-active .backdrop-img,
  .cinefy-trending-slider .swiper-slide:hover .backdrop-img {
    opacity: 1;
  }
}

.cinefy-trending-number {
  position: absolute;
  bottom: 0%;
  right: 10px;
  font-size: 150px;
  line-height: 1;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #ffffff;
  z-index: 5;
  font-family: "Inter", sans-serif;
  transition: all 0.4s ease;
  pointer-events: none;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transform: translateX(0);
}

@media (min-width: 1024px) {

  .cinefy-trending-slider:not(:hover) .swiper-slide-active .cinefy-trending-number,
  .cinefy-trending-slider .swiper-slide:hover .cinefy-trending-number {
    opacity: 0;
    transform: translateX(20px);
  }
}

.cinefy-trending-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  z-index: 10;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cinefy-trending-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e6b800;
  color: #000;
  font-size: 11px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: normal;
}

@media (min-width: 1024px) {

  .cinefy-trending-slider:not(:hover) .swiper-slide-active .cinefy-trending-content,
  .cinefy-trending-slider .swiper-slide:hover .cinefy-trending-content {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Responsive static behavior (TABLET & MOBILE) */
@media (max-width: 1023px) {

  /* Show content overlay always so it's clickable */
  .cinefy-trending-content {
    opacity: 1;
    pointer-events: auto;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0) 100%);
  }

  /* Make number semi-transparent and slightly smaller on responsive */
  .cinefy-trending-number {
    font-size: 100px;
    opacity: 0.2;
    bottom: 50px;
  }
}

.cinefy-trending-card .cinefy-trending-title {
  margin: 0 0 10px;
  color: #FFF;
  font-family: "Public Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.cinefy-trending-card .cinefy-trending-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.cinefy-trending-card .cinefy-trending-title a:hover {
  color: #e26343;
}

.cinefy-trending-card .cinefy-trending-desc {
  margin: 0 0 15px;
  color: #D3D3D3;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  text-transform: capitalize;
}

.cinefy-trending-card .cinefy-trending-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.cinefy-trending-categories .cinefy-cat-pill {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
}

.cinefy-trending-slider-wrapper .swiper-button-next,
.cinefy-trending-slider-wrapper .swiper-button-prev {
  color: #df6444;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: 40%;
  transition: all 0.3s;
}

.cinefy-trending-slider-wrapper .swiper-button-next:hover,
.cinefy-trending-slider-wrapper .swiper-button-prev:hover {
  background: #df6444;
  color: #fff;
}

.cinefy-trending-slider-wrapper .swiper-button-next::after,
.cinefy-trending-slider-wrapper .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.cinefy-movie-grid-wrapper .swiper-horizontal>.swiper-pagination-bullets,
.cinefy-movie-grid-wrapper .swiper-pagination-bullets.swiper-pagination-horizontal,
.cinefy-movie-grid-wrapper .swiper-pagination-custom,
.cinefy-movie-grid-wrapper .swiper-pagination-fraction {
  bottom: -30px;
}

/* Cast Widget Styles */

.cinefy-cast-grid {
  display: grid;
  gap: 24px;
}

.cinefy-cast-item {
  background: transparent;
  text-align: left;
  padding: 0;
  height: 100%;
}

.cinefy-cast-photo-wrp {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  line-height: 0;
}

.cinefy-cast-photo-wrp a {
  width: 100%;
  height: 100%;
}

.cinefy-cast-wrp .cinefy-cast-photo-wrp img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.cinefy-cast-wrp .cinefy-cast-photo-wrp:hover img {
  transform: scale(1.05);
}

.cinefy-cast-wrp .cinefy-cast-no-photo {
  width: 100%;
  height: 240px;
  background: #d4d4d4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinefy-cast-wrp .cinefy-cast-no-photo svg {
  opacity: 0.5;
}

.cinefy-cast-wrp .cinefy-cast-name {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.cinefy-cast-wrp .cinefy-cast-name a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.cinefy-cast-wrp .cinefy-cast-name a:hover {
  color: #e26343;
}

.cinefy-cast-wrp .cinefy-cast-character {
  font-size: 13px;
  color: #a0a0a0;
  display: block;
}

.cinefy-cast-wrp .swiper-button-next,
.cinefy-cast-wrp .swiper-button-prev {
  color: #df6444;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: 40%;
  transition: all 0.3s;
}

.cinefy-cast-wrp .swiper-button-next:hover,
.cinefy-cast-wrp .swiper-button-prev:hover {
  background: #df6444;
  color: #fff;
}

.cinefy-cast-wrp .swiper-button-next::after,
.cinefy-cast-wrp .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* Cast Grid Columns */
.cinefy-cast-grid.cast-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.cinefy-cast-grid.cast-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cinefy-cast-grid.cast-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cinefy-cast-grid.cast-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cinefy-cast-grid.cast-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.cinefy-cast-grid.cast-cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

.cinefy-cast-grid.cast-cols-7 {
  grid-template-columns: repeat(7, 1fr);
}

.cinefy-cast-grid.cast-cols-8 {
  grid-template-columns: repeat(8, 1fr);
}

@media (max-width: 1199px) {
  .cinefy-cast-grid.cast-cols-l-1 {
    grid-template-columns: repeat(1, 1fr);
  }

  .cinefy-cast-grid.cast-cols-l-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cinefy-cast-grid.cast-cols-l-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cinefy-cast-grid.cast-cols-l-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .cinefy-cast-grid.cast-cols-l-5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .cinefy-cast-grid.cast-cols-l-6 {
    grid-template-columns: repeat(6, 1fr);
  }

  .cinefy-cast-grid.cast-cols-l-7 {
    grid-template-columns: repeat(7, 1fr);
  }

  .cinefy-cast-grid.cast-cols-l-8 {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 991px) {
  .cinefy-cast-grid.cast-cols-t-1 {
    grid-template-columns: repeat(1, 1fr);
  }

  .cinefy-cast-grid.cast-cols-t-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cinefy-cast-grid.cast-cols-t-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cinefy-cast-grid.cast-cols-t-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .cinefy-cast-grid.cast-cols-t-5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .cinefy-cast-grid.cast-cols-t-6 {
    grid-template-columns: repeat(6, 1fr);
  }

  .cinefy-cast-grid.cast-cols-t-7 {
    grid-template-columns: repeat(7, 1fr);
  }

  .cinefy-cast-grid.cast-cols-t-8 {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 767px) {
  .cinefy-cast-grid.cast-cols-m-1 {
    grid-template-columns: repeat(1, 1fr);
  }

  .cinefy-cast-grid.cast-cols-m-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cinefy-cast-grid.cast-cols-m-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cinefy-cast-grid.cast-cols-m-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .cinefy-cast-grid.cast-cols-m-5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .cinefy-cast-grid.cast-cols-m-6 {
    grid-template-columns: repeat(6, 1fr);
  }

  .cinefy-cast-grid.cast-cols-m-7 {
    grid-template-columns: repeat(7, 1fr);
  }

  .cinefy-cast-grid.cast-cols-m-8 {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* Image Slider Widget */
.cinefy-image-slider-wrp {
  position: relative;
  overflow: hidden;
}

.cinefy-image-slider-wrp .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.cinefy-image-slider-wrp .swiper-button-next,
.cinefy-image-slider-wrp .swiper-button-prev {
  color: #df6444;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s;
}

.cinefy-image-slider-wrp .swiper-button-next:hover,
.cinefy-image-slider-wrp .swiper-button-prev:hover {
  background: #df6444;
  color: #fff;
}

.cinefy-image-slider-wrp .swiper-button-next::after,
.cinefy-image-slider-wrp .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.elementor-element .cinefy-image-slider-wrp .swiper .swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: 60px;
}

.cinefy-image-slider-wrp .swiper-pagination-bullets span.swiper-pagination-bullet {
  width: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  border-radius: 4px;
  transition: all 0.3s;
}

.cinefy-image-slider-wrp .swiper-pagination-bullets span.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: #df6444;
}

.cinefy-image-slider-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgb(0 0 0 / 60%) 0%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 85%, rgb(0 0 0 / 60%) 100%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cinefy-image-slider-wrp:hover .cinefy-image-slider-item::before {
  opacity: 1;
}

/* ============================================================
   Cinefy Movie Tab Grid Widget
   ============================================================ */

.cinefy-tab-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.cinefy-tab-btn {
  padding: 8px 16px;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.37);
  background: #2D2D2D;
  color: var(--color-white);
}

.cinefy-tab-btn:hover,
.cinefy-tab-btn.active {
  background: var(--thm-color);
  color: var(--color-white);
}

.cinefy-tab-pane {
  display: none;
  animation: fadeIn 0.4s;
}

.cinefy-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Secondary Actions inside Movie Cards */
.cinefy-movie-actions-secondary {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.cinefy-tab-grid-wrapper .theme-button-secondary {
  background: #2a2a2a;
  color: #fff;
  border: none;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 16px;
}

.cinefy-tab-grid-wrapper .theme-button-secondary:hover {
  background: #df6444;
  color: #fff;
}

/* Movie Details Modal */
.cinefy-movie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cinefy-movie-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.cinefy-movie-modal-content {
  background: #1a1a1a;
  width: 90%;
  max-width: 900px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}

.cinefy-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.cinefy-modal-close:hover {
  color: #df6444;
}

.cinefy-modal-body {
  padding: 30px;
  min-height: 200px;
}

.cinefy-modal-loader {
  text-align: center;
  color: #df6444;
  font-size: 20px;
  padding: 50px 0;
}

.cinefy-modal-data {
  display: flex;
  gap: 30px;
}

.cinefy-modal-image {
  flex: 0 0 300px;
}

.cinefy-modal-body .cinefy-modal-image img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.cinefy-modal-details {
  flex: 1;
  color: #ccc;
}

.cinefy-modal-details .cinefy-modal-heading {
  color: #fff;
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 12px;
}

.cinefy-modal-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 8px;
  font-size: 14px;
}

.cinefy-modal-rating {
  color: #f5c518;
  font-weight: bold;
}

.cinefy-modal-genres {
  color: var(--thm-color);
  margin-bottom: 14px;
}

.cinefy-modal-details p {
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .cinefy-modal-data {
    flex-direction: column;
  }

  .cinefy-modal-image {
    flex: 0 0 auto;
    max-width: 250px;
    margin: 0 auto;
  }
}

/* Custom Playlist Modal CSS */
.cinefy-playlist-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.cinefy-playlist-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cinefy-playlist-modal-content {
  background: #1c1c1e;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cinefy-playlist-modal-overlay.active .cinefy-playlist-modal-content {
  transform: translateY(0);
}

.cinefy-playlist-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.cinefy-playlist-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cinefy-playlist-modal-overlay .cinefy-playlist-modal-header h3 {
  margin: 0 0 25px 0;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
}


.cinefy-playlist-modal-overlay .cinefy-playlist-form {
  background: #252528;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cinefy-playlist-modal-overlay .cinefy-playlist-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px 15px;
  font-size: 15px;
  outline: none;
  margin-bottom: 0;
}

.cinefy-playlist-modal-overlay .cinefy-playlist-form input::placeholder {
  color: #888;
}

.cinefy-create-playlist-btn {
  background: var(--thm-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.cinefy-create-playlist-btn:hover {
  background: var(--thm-color);
}

.cinefy-playlist-list {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
}

.cinefy-playlist-list::-webkit-scrollbar {
  width: 6px;
}

.cinefy-playlist-list::-webkit-scrollbar-track {
  background: #1c1c1e;
}

.cinefy-playlist-list::-webkit-scrollbar-thumb {
  background: #3a3a3d;
  border-radius: 10px;
}

.cinefy-playlists {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cinefy-playlist-item {
  display: flex;
  align-items: center;
  background: #252528;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cinefy-playlist-item:hover {
  background: #2a2a2e;
}

.cinefy-pl-icon {
  background: rgba(255, 255, 255, 0.05);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #888;
  margin-right: 15px;
}

.cinefy-pl-info {
  flex: 1;
}

.cinefy-pl-info .cinefy-playlist-name {
  font-size: 16px;
  margin-bottom: 0px;

}

.cinefy-pl-info span {
  color: #888;
  font-size: 13px;
}

.cinefy-pl-check {
  font-size: 20px;
  color: #555;
  transition: color 0.3s;
}

.cinefy-playlist-item.in-playlist .cinefy-pl-check {
  color: var(--thm-color);
}

.movie-engine-plugin input:focus-visible,
.movie-engine-plugin select:focus-visible,
.movie-engine-plugin textarea:focus-visible {
  outline: unset !important;
  outline-offset: 0px !important
}

.movie-engine-plugin input:focus,
.movie-engine-plugin select:focus,
.movie-engine-plugin textarea:focus {
  border: unset I !important;
  box-shadow: unset !important;
}

/* ============================================================
   Cinefy Featured Trailer Widget
   ============================================================ */

.cinefy-ft-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fadeIn 1s ease-in-out forwards;
}

.cinefy-ft-video-container:hover {
  transform: scale(1.02);
}

.cinefy-ft-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 150%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
}

.cinefy-ft-html5-video,
.cinefy-ft-fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.cinefy-ft-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cinefy-ft-video-container:hover .cinefy-ft-play-overlay {
  opacity: 1;
}

/* Info Column */
.cinefy-ft-categories {
  margin-bottom: 15px;
  letter-spacing: 1px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(222, 222, 222, 0.17);
  backdrop-filter: blur(50px);
  color: var(--Color-2, #E7C35D);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  width: max-content;
  line-height: normal;
  padding: 8px 12px;
}

.cinefy-ft-wrapper .cinefy-ft-title {
  font-size: 80px;
  text-transform: uppercase;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 30px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--color-white, #fff);
}

@media (max-width: 1699px) {
  .cinefy-ft-wrapper .cinefy-ft-title {
    font-size: 60px;
  }
}

@media (max-width: 1399px) {
  .cinefy-ft-wrapper .cinefy-ft-title {
    font-size: 50px;
  }
}

@media (max-width: 1199px) {
  .cinefy-ft-wrapper .cinefy-ft-title {
    font-size: 46px;
  }
}

@media (max-width: 991px) {
  .cinefy-ft-wrapper .cinefy-ft-title {
    font-size: 40px;
  }
}

.cinefy-ft-meta-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  font-size: 14px;
  font-weight: 500;
  color: #ccc;
  flex-wrap: wrap;
}

.cinefy-ft-wrapper .cinefy-ft-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #FFF;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px;
  border-radius: 7px;
  border: 1px solid #5A7586;
  background: var(--color-5, rgba(72, 72, 72, 0.44));
  padding: 8px 10px;
  line-height: normal;
}

.cinefy-ft-wrapper .cinefy-ft-rating {
  border-radius: 7px;
  background: #E7C35D;
  color: #000;

}

.cinefy-ft-desc-container {
  margin-bottom: 30px;
}

.cinefy-ft-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cinefy-ft-desc.expanded {
  -webkit-line-clamp: unset;
}

.cinefy-ft-read-more {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  transition: color 0.3s;
}

.cinefy-ft-read-more:hover {
  color: var(--thm-color, #e50914);
}

/* Actions */
.cinefy-ft-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cinefy-ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  font-family: inherit;
}

.cinefy-ft-btn:hover {
  transform: translateY(-2px);
}

.cinefy-ft-btn-primary {
  background: var(--thm-color);
  color: #fff;
  transition: all 0.3s ease;
}

.cinefy-ft-btn-primary:hover {
  background: #c10710;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
}

.cinefy-ft-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cinefy-ft-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.cinefy-ft-btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cinefy-ft-btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.movie-engine-modal.me-movie-share-modal .me-share-input-wrapper input {
  margin-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 991px) {
  .cinefy-ft-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .cinefy-ft-video-col,
  .cinefy-ft-info-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cinefy-ft-title {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .cinefy-ft-title {
    font-size: 28px;
  }

  .cinefy-ft-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cinefy-ft-btn-icon {
    width: 100%;
    border-radius: 8px;
  }
}

/* ============================================================
   Cinefy Hero Coverflow Widget
   ============================================================ */


.hero-cr-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  /* Ensures slides and backgrounds don't break page width */
  padding: 60px 0;
  min-height: 80vh;
  /* Responsive flexible height */
}

/* Background Layers */
.hero-cr-slider-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-cr-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-cr-slider-bg.active {
  opacity: 0.15;
}

.hero-cr-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 80%);
  z-index: 1;
}

/* Hero Content Area */
.hero-cr-slider-content-area {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 70px;
}

.hero-cr-slider-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-cr-slider-categories {
  margin-bottom: 15px;
  letter-spacing: 1px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(222, 222, 222, 0.17);
  backdrop-filter: blur(50px);
  color: var(--Color-2, #E7C35D);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  width: max-content;
  line-height: normal;
  padding: 8px 12px;
}

.hero-cr-slider .hero-cr-slider-title {
  font-size: 90px;
  text-transform: uppercase;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 30px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--color-white, #fff);
}

.hero-cr-slider-title-last {
  color: #E7C35D;
}

@media (max-width: 1399px) {
  .hero-cr-slider .hero-cr-slider-title {
    font-size: 70px;
  }
}

@media (max-width: 1199px) {
  .hero-cr-slider .hero-cr-slider-title {
    font-size: 60px;
  }
}

@media (max-width: 991px) {
  .hero-cr-slider .hero-cr-slider-title {
    font-size: 50px;
  }
}




.hero-cr-slider-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;

}

.hero-cr-slider .hero-cr-slider-meta-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #FFF;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px;
  border-radius: 7px;
  border: 1px solid #5A7586;
  background: var(--color-5, rgba(72, 72, 72, 0.44));
  padding: 8px 10px;
  line-height: normal;
}

.hero-cr-slider .hero-cr-slider-imdb-rating {
  background: #E7C35D;
  color: #000;

}


.hero-cr-slider-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 800px;
}

/* Buttons */
.hero-cr-slider-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.theme-button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.theme-button-primary {
  background-color: var(--primary-color);
  color: white;
}

.theme-button-primary:hover {
  background-color: #ff7e61;
}

.theme-button-secondary {
  background-color: var(--glass-bg);
  color: white;
}

.theme-button-secondary:hover {
  background-color: #3a3a3a;
}

.theme-button-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.19);
  backdrop-filter: blur(20.200000762939453px);
}

.theme-button-icon:hover {
  background-color: var(--thm-color);
  color: #fff;
}

/* Slider Area */
.hero-cr-slider-inner-container {
  position: relative;
  z-index: 10;
  height: 400px;
  /* Fixed robust height */
  width: 100%;
  -webkit-perspective: 1200px;
  perspective: 1200px;
  overflow: visible;
  touch-action: pan-y;
  /* Essential for mobile swipe gestures */
}

.hero-cr-slider-track {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.hero-cr-slider-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -160px;
  margin-left: -110px;
  width: 220px;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  -webkit-transform-origin: center center;
  transform-origin: center center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-cr-slider .hero-cr-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: filter 0.5s ease;
}

.hero-cr-slider-slide-active {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.9);
}

.hero-cr-slider-slide:hover:not(.hero-cr-slider-slide-active) img {
  filter: brightness(1.2);
}

.theme-button.hero-cr-secendary-btn {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.19);
  backdrop-filter: blur(20.200000762939453px);
}

.theme-button.hero-cr-secendary-btn:hover {
  background: var(--thm-color);
  color: var(--color-white);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-cr-slider-title {
    font-size: 5rem;
  }
}

@media (max-width: 992px) {
  .hero-cr-slider-title {
    font-size: 4rem;
  }

  .hero-cr-slider-slide {
    width: 180px;
    height: 260px;
    margin-top: -130px;
    margin-left: -90px;
  }

  .hero-cr-slider-inner-container {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .hero-cr-slider {
    padding: 40px 0;
  }

  .hero-cr-slider-title {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .hero-cr-slider-categories {
    margin-bottom: 15px;
    padding: 5px 14px;
    font-size: 0.75rem;
  }

  .hero-cr-slider-description {
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-cr-slider-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .theme-button {
    padding: 10px 16px;
    font-size: 0.8rem;
  }



  .theme-button-icon {
    width: 40px;
    height: 40px;
  }

  .hero-cr-slider-inner-container {
    height: 260px;
  }

  .hero-cr-slider-slide {
    width: 140px;
    height: 200px;
    margin-top: -100px;
    margin-left: -70px;
  }
}

@media (max-width: 480px) {
  .hero-cr-slider-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
  }

  .hero-cr-slider-categories {
    margin-bottom: 12px;
    padding: 4px 12px;
    font-size: 0.7rem;
  }

  .hero-cr-slider-description {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  .hero-cr-slider-buttons {
    gap: 10px;
  }

  .theme-button {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .theme-button-icon {
    width: 36px;
    height: 36px;
  }

  .hero-cr-slider-inner-container {
    height: 220px;
  }

  .hero-cr-slider-slide {
    width: 110px;
    height: 160px;
    margin-top: -80px;
    margin-left: -55px;
  }
}

/* --- Cinefy Coverflow Image Slider (Ferris Wheel) --- */
.cinefy-coverflow-slider {
  position: relative;
  width: 100%;
  background: #0a0a0a;
  /* Premium OTT black */
  padding-top: 50px;
  overflow: hidden;
}

.cinefy-coverflow-track {
  position: relative;
  width: 100%;
  /* Visible top arc height */
  /* Premium radial gradient mask to hide the bottom half with a rounded curve */
  -webkit-mask-image: radial-gradient(ellipse 140% 100% at 50% 0%, black 75%, transparent 100%);
  mask-image: radial-gradient(ellipse 140% 100% at 50% 0%, black 75%, transparent 100%);
  /* Set up perspective for 3D depth */
  perspective: 1200px;
}

.cinefy-coverflow-slide {
  position: absolute;
  /* Center origin at bottom of track for perfect ferris wheel rotation */
  bottom: -150px;
  left: 50%;
  width: 260px;
  height: 460px;
  /* Center slide horizontally and vertically on the origin point */
  margin-left: -130px;
  margin-bottom: -230px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #1a1a1a; /* Default empty state via CSS */
  will-change: transform, opacity, z-index;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  /* Initial state before JS takes over */
  opacity: 0;
  pointer-events: none;
}

.cinefy-coverflow-slide.active {
  pointer-events: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.cinefy-coverflow-slider .cinefy-coverflow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.cinefy-coverflow-bottom-curve {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 40px;
  background: #0a0a0a;
}

.cinefy-coverflow-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.cinefy-coverflow-dot {
  width: 10px;
  height: 6px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background-color 0.4s ease, width 0.4s ease;
}

.cinefy-coverflow-dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.cinefy-coverflow-dot.active {
  background-color: #ff3c00;
  width: 24px;
}