@font-face {
  font-family: "DKFaceYourFears";
  src: url("../fonts/DK Face Your Fears.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Swamp Witch";
  src: url("../fonts/Swamp Witch.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.base {
  padding: 10px;
  border: 1px solid white;
  border-radius: 10px;
}

body {
  background-color: black;
  margin: 0;
  padding: 0;
  color: white;
}

.cont_area {
  margin: 20px auto;
  width: 95%;
  display: grid;
  gap: 10px;
  overflow: visible;
}

/* Navbar */
.navbar {
  border-radius: 10px;
}
.navbar img {
  width: 175px;
  height: 45px;
}

.custom-navbar {
  background-color: #0b0f19 !important;
  padding: 12px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.custom-navbar .navbar-brand img {
  height: 40px;
  filter: brightness(1.2);
}

/* Search Form */
.nav-search {
  position: relative;
  width: 250px; /* bisa diubah */
}

/* Input search bar */
#movieSearchInput {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.2s;
}

/* Efek fokus */
#movieSearchInput:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

/* ------------------------------
   DROPDOWN AUTOCOMPLETE
--------------------------------*/

#searchResults {
  position: absolute;
  top: 40px; /* jarak dari input */
  left: 0;
  width: 100%;
  background: #0b0f19;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

#searchResults[hidden] {
  display: none;
}

/* Item film */

.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.search-item img {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  background: #ddd; /* fallback */
}

/* Hover item */
.search-item:hover {
  background: #020015;
  font-size: larger;
}

/* Kalau ingin icon loading */
.search-loading {
  padding: 10px;
  font-size: 13px;
  color: #555;
}
/* End of Navbar */

/* Banner */
.banner img {
  width: 100%;
  height: 300px;
  border: 1px solid white;
  border-radius: 10px;
}
/* End of Banner */

/* Content */
/* ===== GENERAL LAYOUT ===== */
.content {
  /* color: #fff; */
  font-family: "Poppins", sans-serif;
  background-color: rgb(1, 4, 16);
  border: 1px solid white;
  border-radius: 10px;
  padding: 30px;
  display: grid;
  gap: 50px;
}

/* ===== SECTION TITLES ===== */
.upcoming h4,
.top-movie h4 {
  font-size: 22px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00eaff;
  text-shadow: 0 0 8px #00eaff;
}

/* ===== MOVIE LIST WRAPPER ===== */
.movie-list {
  display: grid;
  justify-content: space-around;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

/* ===== MOVIE LINK ===== */
.movie-link {
  text-decoration: none;
  transition: transform 0.3s ease;
  position: relative;
}

.movie-link:hover {
  transform: translateY(-10px) scale(1.05);
}

/* ===========================================================
   FUTURISTIC CARD STYLE (Dipakai oleh TOP & UPCOMING)
   =========================================================== */

.poster-wrapper {
  position: relative;
  padding: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 12px #0ff5, 0 0 25px #0ff3 inset;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
  gap: 10px;
}

.poster-wrapper img {
  width: 85%;
  height: 250px;
  border-radius: 14px;
  display: block;
  margin: 20px auto;
}

.movie-item:hover,
.poster-wrapper:hover {
  box-shadow: 0 0 20px #00eaff, 0 0 40px #00eaff inset;
}

/* POSTER IMAGE */

/* ===== UPCOMING: Release Date ===== */

/* ===== NEON RATING BADGE (Top Movies) ===== */
.rating {
  position: absolute;
  top: 12px;
  right: 30%;
  background: rgba(0, 255, 255, 0.2);
  color: #00eaff;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  text-shadow: 0 0 6px #00eaff, 0 0 12px #00eaff;
  border: 1px solid #00eaff55;
  box-shadow: 0 0 10px #00eaff88;
}

/* ===== MOVIE TITLE ===== */
.poster-wrapper h6 {
  margin-top: 8px;
  font-size: 16px;
  text-align: center;
  color: #eaffff;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.poster_name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
}

.movie-link:hover .title {
  color: #00eaff;
  text-shadow: 0 0 6px #00eaff;
}

/* End of Content */

/* Footer */
.footer {
  background-color: rgb(0, 55, 255);
  border: 1px solid white;
  border-radius: 10px;
}

.footer p {
  font-size: smaller;
  text-align: center;
  margin: 0;
  padding: 5px;
}
/* End of Footer */

@media (max-width: 576px) {
  .banner img {
    display: none;
  }

  .content {
    border: 1px solid white;
    border-radius: 5px;
    padding: 15px;
    gap: 50px;
  }

  .upcoming h4,
  .top-movie h4 {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .movie-list {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
  }

  .poster-wrapper img {
    width: 90%;
    height: 100px;
    border-radius: 5px;
    margin: 10px auto;
  }

  .poster-wrapper h6 {
    margin-top: 8px;
    font-size: 12px;
    height: 19px;
  }

  .rating {
    position: absolute;
    top: 12px;
    right: 30%;
    background: rgba(0, 255, 255, 0.2);
    color: #00eaff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    text-shadow: 0 0 6px #00eaff, 0 0 12px #00eaff;
    border: 1px solid #00eaff55;
    box-shadow: 0 0 10px #00eaff88;
  }
}
