.header {
  background-color: #1a1a1a;
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #b19cd9;
}
.logo {
  color: #9409e5;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

.hero {
  height: 80vh;
  position: relative;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%),
              url('/api/placeholder/1920/1080') center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem;
}

.hero-content {
  max-width: 600px;
}

.title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.description {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-play {
  background-color: white;
  color: black;
}

.btn-info {
  background-color: rgba(109, 109, 110, 0.7);
  color: white;
}

.carousel {
  padding: 1rem 0.5rem;
}

.carousel-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Updated styles for movie cards */
.movie-card {
  position: relative;
  min-width: 180px;
  margin: 0 10px;
  border-radius: 10px;
  /* bottom: 10px; */
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.89);
}

.movie-card:hover {
  transform: scale(1.05);
}

.movie-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
  color: white;
}

.movie-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.movie-subtitle {
  font-size: 12px;
  opacity: 0.8;
}

.release-date {
  position: absolute;
  top: 5px;
  right: 10px;
  background-color: rgba(140, 0, 255, 0.233);
  border-radius: 4px;
  font-size: 12px;
}
.category-badge {
  position: absolute;
  bottom: 70px;
  left: 10px;
  background-color: rgba(255,255,255,0.2);
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.duration-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0,0,0,0.7);
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.language-info {
  position: absolute;
  bottom: 70px;
  right: 10px;
  color: white;
  padding: 3px 6px;
  font-size: 11px;
}

.carousel {
  margin: 30px 0;
}

.carousel-title {
  margin-left: 20px;
  color: white;
  font-size: 24px;
  margin-bottom: 15px;
}

.carousel-content {
  display: flex;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none; /* For Firefox */
}

.carousel-content::-webkit-scrollbar {
  display: none; /* For Chrome, Safari and Opera */
}

.loading {
  color: rgba(255,255,255,0.7);
  padding: 20px;
  text-align: center;
  width: 100%;
}

.controls {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  gap: 1rem;
}

.languagedropdown {
  background: transparent;
  border: none;
  color: white;
}

.languagedropdown:focus {
  outline: none;
}

.languagedropdown option {
  background-color: black;
}

.dropdowncontainer {
  border: 1px solid white;
  padding: 0.4rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
}

.signinbutton {
  background-color: #dc030f;
  border: 1px solid #dc030f;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.herobgimagecontainer {
  width: 100%;
  height: 80vh;
}

.herobgimage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.herobgoverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 80vh;
  background: rgba(0, 0, 0, 0.4);
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.herocard {
  position: absolute;
  top: 20%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.herotitle {
  font-weight: 600;
  font-size: 2rem;
}

.herosubtitle,
.herodescription {
  font-weight: 400;
  font-size: 1rem;
}

.herodescription {
  margin: 0 50px;
}

.emailinput {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  padding-left: 7px;
}
.emaillabel {
  color: black;
  position: absolute;
  top: 28%;
  left: 2%;
  color: rgb(153, 149, 149);
  transition: 0.5s;
}

.emailformcontainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.formcontainer {
  background-color: white;
  width: 90%;
  height: 50px;
  position: relative;
}

.emailinput:focus + .emaillabel {
  top: 0.2rem;
  font-size: 10px;
}

.emailinput:not(:placeholder-shown).emailinput:not(:focus) + .emaillabel {
  top: 0.2rem;
  font-size: 10px;
}

.emailinput:focus-visible {
  outline: none;
}

.primarybutton {
  background-color: #dc030f;
  border: 1px solid #dc030f;
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 2px;
  font-size: 15px;
  letter-spacing: 1px;
}

.feature {
  border-top: 8px solid #222;
  padding: 2rem 1rem;
}

.featuredetails {
  text-align: center;
}

.featuretitle {
  font-size: 25px;
  font-weight: 600;
  margin: 10px 0;
}

.featuresubtitle {
  font-size: 15px;
  font-weight: 400;
}

.featureimagecontainer {
  width: 100%;
  position: relative;
}
.featureimage {
  width: 100%;
}

.featurebackgroudvideocontainer {
  position: absolute;
  width: 100%;
  top: 20%;
  left: 13%;
  height: 100%;
  max-width: 73%;
  max-height: 54%;
  z-index: -2;
}

.featurebackgroudvideo {
  width: 100%;
}

.feature2postercontainer {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 16em;
  display: flex;
  align-items: center;
  background-color: black;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  height: 60px;
  padding: 0.25rem 0.6rem;
  gap: 15px;
}

.postercontainer {
  width: 20%;
}

.poster {
  width: 100%;
  height: 100%;
}
.posterdetails {
  width: 60%;
}
.posterdetails > h4 {
  font-size: 13px;
  font-weight: 500;
}
.posterdetails > h6 {
  font-size: 12px;
  font-weight: 400;
  color: rgb(63, 63, 246);
}

.downloadgifcontainer {
  width: 20%;
  height: 100%;
}
.gif {
  width: 100%;
  height: 100%;
}

.feature3backgroudvideocontainer {
  max-width: 63%;
  max-height: 47%;
  z-index: -2;
  top: 9%;
  left: 19%;
}

.FAQaccordian {
  width: 100%;
}
.FAQtitle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 18px;
  background-color: #303030;
  border: 1px solid #303030;
  color: white;
}

.FAQvisible {
  background-color: #303030;
  border-top: 1px solid black;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.FAQvisible > p {
  margin: 1rem;
}
.FAQlistcontainer {
  border-top: 8px solid #222;
  padding: 2rem 0;
}
.FAQheading {
  font-size: 20px;
  text-align: center;
  font-weight: 600;
  margin: 1rem 3rem;
}

.FAQlist {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.FAQgetstartedemail {
  text-align: center;
}

.FAQgetstartedemail > h3 {
  font-size: 18px;
  font-weight: 400;
  margin: 2rem 0;
}

footer {
  border-top: 8px solid #333;
  padding: 2rem 1rem;
  color: #757575;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footerrow2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

.footerrow1 > h4 {
  font-size: 15px;
  font-weight: 500;
}

.footerrow3 > .dropdowncontainer {
  width: fit-content;
  border: 1px solid #757575;
  color: #757575;
}

.footerrow3 > .dropdowncontainer > .languagedropdown {
  color: #757575;
}

@media (min-width: 768px) {
  .herobgimagecontainer {
    height: 100vh;
  }

  .herobgoverlay {
    height: 100vh;
  }
  .herocard {
    top: 40%;
    left: 30%;
    transform: translate(-20%, -20%);
  }
  .herotitle {
    font-size: 3rem;
  }
  .herosubtitle,
  .herodescription {
    font-size: 1.3rem;
  }

  .feature {
    padding: 4rem;
  }

  .featuretitle {
    font-size: 35px;
  }

  .featuresubtitle {
    font-size: 20px;
  }
  .feature2postercontainer {
    max-width: 26em;
    height: 85px;
  }
  .postercontainer {
    width: 15%;
  }
  .downloadgifcontainer {
    width: 3rem;
    height: 3rem;
  }

  .posterdetails > h4 {
    font-size: 18px;
  }
  .posterdetails > h6 {
    font-size: 14px;
  }
  .FAQtitle {
    font-size: 20px;
  }
  .FAQheading {
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 1px;
  }
  .FAQlist {
    padding: 1rem 5rem;
  }
  .FAQgetstartedemail {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateX(15%);
  }
}

@media (min-width: 1024px) {

  .herocard {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .formcontainer {
    width: 50%;
  }
  .emailformcontainer {
    flex-direction: row;
    align-items: center;
    gap: 1px;
  }
  .primarybutton {
    height: 50px;
  }

  .feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .featuredetails {
    text-align: left;
    padding: 0 6rem;
  }

  .featuretitle {
    font-size: 50px;
  }

  .featuresubtitle {
    font-size: 25px;
  }

  .featureimagecontainer {
    max-width: 500px;
  }

  .feature:nth-child(even) {
    flex-direction: row-reverse;
  }

  .feature2postercontainer {
    max-width: 20em;
    height: 100px;
    padding: 1rem;
  }
  .postercontainer {
    width: 20%;
  }
  .FAQlist {
    padding: 1rem 25rem;
  }
  .FAQgetstartedemail {
    transform: translateX(16%);
  }
  footer {
    padding: 2rem 20rem;
    justify-content: flex-start;
    text-align: left;
    align-items: flex-start;
  }

  .footerrow2 {
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .footerrow1,
  .footerrow3,
  .footerrow4 {
    align-self: flex-start;
  }
}

@media (min-width: 1254px) {
}
.footer {
  /* background: #0F0F1E; */
  color: #fff;
  padding: 40px 0;
  font-size: 14px;
}

.footer a {
  color: #f0f0f0;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: #8B5CF6;
}

.footer__option {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer__option__item {
  padding: 10px;
}

.footer__option__item h5 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 2px solid #6366F1;
  display: inline-block;
  padding-bottom: 5px;
}

.footer__option__item ul {
  list-style: none;
  padding: 0;
}

.footer__option__item ul li {
  margin-bottom: 10px;
}

.footer__option__item ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* โลโก้ */
.footer__top__logo img {
  max-width: 60%;
}

/* QR Code */
.footer__qr img {
  width: 60%;
  display: block;
  margin: 10px auto;
}

/* ปุ่ม Social Media */
.footer__top__social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.footer__top__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #6366F1;
  border-radius: 8px;
  font-size: 20px;
  transition: 0.3s;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.footer__top__social a:hover {
  background: #8B5CF6;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

/* ส่วนลิขสิทธิ์ด้านล่าง */
.footer__copyright {
  text-align: center;
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Feature Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 2rem;
    border-top: 8px solid #222;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-subtitle {
    font-size: 15px;
    font-weight: 400;
}

/* Footer Section */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 2rem;
    /* background: #0F0F1E; */
    color: #fff;
    text-align: center;
}

.footer-item h5 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #6366F1;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-item ul {
    list-style: none;
    padding: 0;
}

.footer-item ul li {
    margin-bottom: 10px;
}

.footer-item ul li a {
    color: #f0f0f0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-item ul li a:hover {
    color: #8B5CF6;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
@media (max-width: 767px) {
  .footerrow2 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .footerrow1, 
  .footerrow3, 
  .footerrow4 {
    width: 100%;
  }

  .footer__option {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__option__item h5 {
    text-align: center;
    border-bottom: none;
  }

  .footer__top__social {
    justify-content: center;
  }

  .footer__qr img {
    margin: 10px auto;
  }

  .footer__copyright {
    font-size: 14px;
    padding-top: 15px;
  }
}
    /* ปุ่ม Go to Top */
    #goToTop {
      position: fixed;
      bottom: 80px;
      /* ระยะห่างจากด้านล่าง */
      right: 20px;
      background: rgba(140, 0, 255, 0.233);
      color: white;
      border: none;
      padding: 12px 15px;
      border-radius: 50%;
      font-size: 20px;
      cursor: pointer;
      display: none;
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
      transition: opacity 0.3s, transform 0.3s;
  }

  #goToTop:hover {
      background: var(--accent-purple);
      transform: scale(1.1);
  }

  #goToTop i {
      font-size: 20px;
  }

  /* ปุ่ม Chat */
  #chatButton {
      position: fixed;
      bottom: 20px;
      /* ระยะห่างจากด้านล่าง */
      right: 20px;
      background: rgba(140, 0, 255, 0.233);
      color: white;
      border: none;
      padding: 12px 15px;
      border-radius: 50%;
      font-size: 20px;
      cursor: pointer;
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
      transition: opacity 0.3s, transform 0.3s;
  }

  #chatButton:hover {
      background: var(--accent-purple);
      transform: scale(1.1);
  }

  #chatButton i {
      font-size: 20px;
  }
  