/* Override Bootstrap defaults */
:root {
  --bs-body-bg: #121212;
  --bs-body-color: #ffffff;
  --bs-primary: #e50914;
  --bs-warning: #ffd700;
  --bs-success: #ffd700;
  --bs-light: #1f1f1f;
  --bs-dark: #121212;
}

/* Untuk tema dark */
html[data-bs-theme="dark"] {
  --bs-body-bg: #121212;
  --bs-body-color: #ffffff;
}

/* Umum */
body {
  background-color: var(--bs-body-bg);
  color: var(--bs-light);
  font-family: 'Tahoma', sans-serif;
}

a {
  color: #ffd700;
  text-decoration: none;
}

a:hover {
  color: #e50914;
}

/* Judul */
h1, h2, h3, h4, h5 {
  font-weight: bold;
  color: #e50914;
}

iframe {
  border-radius: 10px;
}

/* Kartu Film */
.movie-card {
  border-radius: 12px;
  overflow: hidden;
  background-color: #1f1f1f;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255, 215, 0, 0.2); /* garis emas tipis */
}

.movie-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px #e50914aa;
}

.movie-poster {
  height: 360px;
  object-fit: cover;
  width: 100%;
}

.movie-info {
  background-color: #1f1f1f;
}

.movie-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 0.25rem;
}

.movie-meta {
  font-size: 0.75rem;
  color: #ebebeb;
}

/* Footer */
footer {
  background-color: #000 !important;
  font-size: 0.75rem;
  color: #ccc;
}

footer h5, footer h6 {
  color: #ffd700;
}

footer a {
  color: #ffd700;
}
footer a:hover {
  color: #e50914;
} 

.input-group-text {
  background-color: #000;
  color: #ffd700;
  border: none;
}

/* Tombol */
.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}
.btn-primary:hover {
  background-color: #c40811;
  border-color: #c40811;
}

.btn-success {
  background-color: var(--bs-warning);
  border-color: var(--bs-warning);
  color: #121212;
}
.btn-success:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

/* Form Search */
input.form-control {
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: white;
}

input.form-control::placeholder {
  color: #aaa;
}

.social-icon {
  color: #ccc;
  transition: color 0.2s;
}

.social-icon:hover {
  color: #ff0040;
}

.btn-danger {
  background-color: #d80032;
  border: none;
}

.btn-danger:hover {
  background-color: #ff0040;
  color: #fff;
  transform: scale(1.03);
  transition: 0.2s ease;
}

.movie-bg {
  color: #f8f9fa;
}

.parallax-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  background-attachment: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -2;
  transform: translateZ(0); /* meningkatkan performa GPU */
}

.content-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8));
  position: relative;
  z-index: 1;
  min-height: 100vh;
  color: #f8f9fa;
}

/* Styling khusus navbar */
.navbar {
  font-weight: 600;
  font-size: 0.95rem;
}

.navbar .nav-link {
  color: #ffcc00 !important; /* kuning emas */
  position: relative;
  padding-bottom: 4px;
}

.navbar .nav-link.active::after,
.navbar .nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: crimson;
}

.navbar-logo {
  height: 100%;
  max-height: 40px; /* atur tinggi maksimum logo agar tidak melebihi navbar */
  object-fit: contain;
  margin: 0px;
}

.navbar-brand {
  padding: 0px;
  display: flex;
  align-items: center;
}

/* Pencarian */
.input-group .form-control {
  background: #fff;
  border: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
}

.input-group .btn {
  font-size: 1.1rem;
  padding: 0 10px;
}

/* Dropdown Genre Menu */
.dropdown-menu {
  background-color: #1f1f1f;
  border: 1px solid #444;
  max-height: 300px;
  overflow-y: auto;
}

.dropdown-item {
  color: #ffd700;
  font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #e50914;
  color: #fff;
}

/* Pagination Styling */
.pagination .page-link {
  background-color: #1c1c1c;
  color: #ffd700;
  border: 1px solid #444;
  margin: 0 3px;
  font-weight: 500;
}

.pagination .page-link:hover {
  background-color: #e50914;
  color: #fff;
}

.pagination .page-item.active .page-link {
  background-color: #e50914;
  color: #fff;
  font-weight: bold;
  border-color: #e50914;
  box-shadow: 0 0 5px #e50914aa;
}

/*Carousel / banner rotator */
.carousel-caption {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  border-left: 5px solid #e50914;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  border-radius: 12px;
}

.carousel-item {
  transition: opacity 1s ease-in-out;
}

.carousel-caption p,
.carousel-caption a {
  transition: all 0.5s ease;
  color: #fff !important; /* pastikan override jika ada gaya default dari Bootstrap */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7); /* opsional, bantu keterbacaan */
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%; /* ini membuatnya bulat */
  background-color: #e50914; /* merah TMDB-style */
  opacity: 0.7;
  border: none;
  margin: 3px;
  transition: all 0.3s ease-in-out;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #ffd700; /* warna aktif: emas */
}

/* Cast Style */
.cast-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.cast-scroll-container::-webkit-scrollbar {
  height: 6px;
}
.cast-scroll-container::-webkit-scrollbar-thumb {
  background-color: #e50914;
  border-radius: 10px;
}
.cast-scroll-container::-webkit-scrollbar-track {
  background: #1f1f1f;
}

.cast-card {
  flex: 0 0 auto;
  width: 100px;
  text-align: center;
  color: #fff;
}

.cast-card img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.cast-card p {
  margin-top: 8px;
  font-size: 0.85rem;
}

#overlayLayout {
  background-color: #1c1c1c;
  color: #fff;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* about style */
.about-header {
  display: flex;
  justify-content: center;
/*  background-color: #1c1c1c;*/
  padding: 20px 0;
}

.about-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1); /* soft yellow glow */
}

/*suggestion */
#suggestionList {
    max-height: 300px;
    overflow-y: auto;
    top: 100%; /* tepat di bawah input */
    left: 0;
    z-index: 2000; /* lebih tinggi dari navbar */
}

#suggestionList li {
    cursor: pointer;
}

#suggestionList li:hover {
    background-color: #e50914;
    color: #fff;
}

.suggestion-dropdown {
    position: absolute;
    top: 100%; /* Tepat di bawah input */
    left: 0;
    background: #1c1c1c;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 215, 0, 0.3); /* mirip border movie_card */
}

/* Item suggestion */
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.suggestion-item img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.3); /* border seperti movie_card */
}

.suggestion-item:hover {
    background: #e50914;
}

.suggestion-title {
    font-size: 0.85rem;
    color: #fff;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* maksimal 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-rating {
    font-size: 0.75rem;
    color: #ffd700;
}

/*HiddenGems*/
#hiddengem {
  position: relative;
  background: #121212;
}

.hiddengem h1 {
  font-family: "montserrat-regular", sans-serif;
  font-size: 1.9rem;
  color: #121212;
}
.hiddengem h2 {
  font-family: "montserrat-regular", sans-serif;
  font-size: 1rem;
  color: #121212;
}

.hiddengem p {
  color: #121212;
}

.noselect {
  pointer-events: none;
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}