/* style.css - Dark Theme for Movie Streaming Site */

body {
  background-color: #121212;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
  background-color: #1c1c1c;
  border-bottom: 1px solid #2a2a2a;
}

.navbar-brand,
.nav-link {
  color: #ffffff !important;
  font-weight: 500;
}

.nav-link:hover,
.navbar-brand:hover {
  color: #0dcaf0 !important;
}

.card {
  background-color: #1e1e1e;
  border: 1px solid #2e2e2e;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.02);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-text {
  font-size: 0.95rem;
  color: #ccc;
}

.btn-primary {
  background-color: #0dcaf0;
  border-color: #0dcaf0;
}

.btn-primary:hover {
  background-color: #0bb8db;
  border-color: #0bb8db;
}

.form-control {
  background-color: #2c2c2c;
  color: #ffffff;
  border: 1px solid #444444;
}

.form-control::placeholder {
  color: #aaaaaa;
}

footer {
  background-color: #1c1c1c;
  color: #cccccc;
  padding: 20px 0;
  text-align: center;
}

a {
  color: #0dcaf0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-left: 4px solid #0dcaf0;
  padding-left: 10px;
  font-weight: bold;
}

.movie-meta {
  font-size: 0.9rem;
  color: #aaaaaa;
  margin-top: 5px;
}

/* === FIX POSTER RESPONSIVE (2:3 RATIO) === */
.poster-fixed {
  width: 140px;
  height: 200px;   /* 2:3 ratio (140x200) */
  object-fit: cover;
  border-radius: 8px;
  margin: auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-fixed:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Responsive sizes */
@media (max-width: 992px) {
  .poster-fixed {
    width: 120px;
    height: 170px;
  }
}

@media (max-width: 576px) {
  .poster-fixed {
    width: 100px;
    height: 150px;
  }
}

/* === Swiper Customization === */
.swiper {
  padding-bottom: 30px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  transition: 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #dc3545; /* warna merah bootstrap */
}

/* === Responsif text === */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.25rem;
  }
}

/* === FIX: Dropdown Genre (Dark Mode) === */
select.form-select {
  background-color: #1c1c1c !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
}

select.form-select option {
  background-color: #222 !important;
  color: #ffffff !important;
}

select.form-select:focus {
  border-color: #0dcaf0 !important;
  box-shadow: none !important;
}
