/* Movies section (extracted) */
.movies-section {
  position: relative;
  background-color: #5a2f1f;
  isolation: isolate;
}
.movies-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("https://fallfriday.com/wp-content/uploads/2025/09/texture_fabric_2x.png");
  background-repeat: repeat;
  background-size: auto auto;
  opacity: 1;
  mix-blend-mode: multiply;
}

.movies-section {
  width: 100vw;
  padding: 80px 0;
  overflow: visible;
  position: relative;
  background: linear-gradient(
    90deg,
    rgba(79, 36, 7, 1) 0%,
    var(--cider-brown) 20%,
    var(--cider-brown) 80%,
    rgba(79, 36, 7, 1) 100%
  );
  margin: 60px 0;
}
.movies-section .section-title {
  color: var(--soft-white);
  text-align: center;
}
.movies-section .section-subtitle {
  color: rgba(255, 253, 252, 0.7);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 40px;
}

.movies-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}
.movies-container::before,
.movies-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 10;
}
.movies-scroll {
  display: flex;
  gap: 20px;
  overflow-x: hidden;
  padding: 40px 0;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(99 46 10 / 20%);
  backdrop-filter: blur(10px);
  border: 1px solid var(--harvest-gold);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  color: #625151;
  box-shadow: 0 4px 15px rgba(99, 46, 10, 0.2);
}
.scroll-arrow:hover {
  background: var(--harvest-gold);
  color: var(--soft-white);
  transform: translateY(-50%) scale(1.1);
}
.scroll-arrow.left {
  left: max(10px, calc((100vw - 1400px) / 2 + -10px));
}
.scroll-arrow.right {
  right: max(10px, calc((100vw - 1400px) / 2 + -10px));
}

.movie-card {
  flex: 0 0 220px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s ease;
  opacity: 0.2;
  transform: scale(0.75);
  filter: blur(2px);
  z-index: 1;
}
.movie-card.far-side {
  opacity: 0.1;
  transform: scale(0.6);
  filter: blur(3px);
  z-index: 0;
}
.movie-card.side {
  opacity: 0.3;
  transform: scale(0.75);
  filter: blur(2px);
  z-index: 2;
}
.movie-card.near-center {
  opacity: 0.7;
  transform: scale(0.9);
  filter: blur(0);
  z-index: 3;
}
.movie-card.center {
  opacity: 1;
  transform: scale(1.15);
  filter: blur(0);
  z-index: 4;
}

.movie-poster {
  width: 100%;
  height: 330px;
  background: linear-gradient(
    135deg,
    var(--harvest-gold),
    var(--cinnamon-bark)
  );
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft-white);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  padding: 20px;
  text-align: center;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}
.movie-poster.clickable {
  cursor: pointer;
}
.movie-poster.clickable:hover {
  transform: scale(1.02);
}
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(99, 46, 10, 0.9);
  color: var(--soft-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid var(--harvest-gold);
  z-index: 5;
  line-height: 1;
  pointer-events: none;
}
.movie-poster:hover .play-icon {
  opacity: 1;
}
.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.movie-poster-placeholder {
  position: relative;
  z-index: 1;
  opacity: 0.8;
}
.movie-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  color: var(--soft-white);
  margin-bottom: 5px;
}
.movie-year {
  color: rgba(255, 253, 252, 0.6);
  font-size: 0.9rem;
}

.movie-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  transform: scale(0.7);
}
.movie-filter-btn {
  background: rgba(255, 253, 252, 0.07);
  color: rgba(255, 253, 252, 0.49);
  border: 1px solid rgba(255, 253, 252, 0.14);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}
.movie-filter-btn:hover,
.movie-filter-btn.active {
  background: var(--harvest-gold);
  color: var(--cider-brown);
  border-color: var(--harvest-gold);
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgb(92, 42, 9, 0.15);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.video-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: #dbcbc08f;
  padding: 3px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(99, 46, 10, 0.3);
  border: 1px solid #dcccc12e;
}
.video-container iframe {
  width: 100%;
  height: 506px;
  border: none;
  border-radius: 8px;
}
.close-video {
  position: absolute;
  top: -14px;
  right: -14px;
  background: #533019a6;
  color: var(--soft-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #2d240da8;
  box-shadow: 0 4px 15px rgba(99, 46, 10, 0.3);
}
.close-video:hover {
  background: var(--harvest-gold);
  color: var(--cider-brown);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .scroll-arrow {
    display: none;
  }

  .movies-container {
    overflow: visible;
  }

  .movies-container::before,
  .movies-container::after {
    display: none;
  }

  .movies-scroll {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 40px 0;
    gap: 20px;
  }

  .movie-card {
    opacity: 1 !important;
    transform: scale(1) !important;
    filter: none !important;
    scroll-snap-align: center;
    flex-shrink: 0;
    flex: 0 0 250px;
  }
}
