@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

.container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;     /* Jangan pakai center kalau mau tinggi konsisten */
  align-content: flex-start;   /* Biar card mulai dari atas */
  gap: 16px;                   /* Jarak antar card (lebih modern dari margin) */
  padding: 16px;
  font-family: "Quicksand", sans-serif;
  font-weight: normal;
  font-style: normal;
}

.card {
  position: relative;
  width: 250px;
  height: 450px;               /* <-- TINGGI CARD TETAP */
  margin: 0;                   /* Hapus margin, pakai gap di container */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;      /* Agar konten di dalam bisa diatur */
  background: white;
}

.card img {
  width: 100%;
  height: 375px;               /* <-- TINGGI GAMBAR TETAP */
  object-fit: cover;           /* Crop gambar agar pas & tidak stretch */
  display: block;
  flex-shrink: 0;              /* Gambar tidak menyusut */
}

.card .content {
  padding: 8px;
  flex-grow: 1;                /* Isi sisa ruang agar card tetap 450px */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card .title {
  color: black;
  font-size: large;
  font-weight: bold;
  margin: 0 0 4px 0;
  padding: 8px 8px 0 8px;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;       /* Batasi 2 baris */
  -webkit-box-orient: vertical;

}

.card .years {
  font-size: small;
  color: #777;
  margin-top: 2px;
  padding: 0px 0px 8px 8px;
}

.card .desc {
  font-size: small;
  display: flex;
  justify-content: space-between;
  color: #555;
}



.card .ratting {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: medium;
  background-color: rgba(238, 238, 238, 0.9);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: bold;
  color: #333;
}

.tombol a{
  padding: 5px;
  background: #e2e2e2;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* align-items: center; */
  /* justify-content: left; */
}

.nav-buttons {
  display: flex;
  gap: 12px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  justify-content: center;
  flex-wrap: wrap;
  font-family: 'Segoe UI', sans-serif;
}

.btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(108, 92, 231, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn:hover {
  background: linear-gradient(135deg, #5f3dc4, #8c7ae6);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}

.btn.active {
  background: #2d3436;
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* page */

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    font-size: 16px;
}

.pagination a {
    padding: 8px 16px;
    background-color: #1e1e1e;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s ease;
    border: 1px solid #444;
}

.pagination a:hover {
    background-color: #333;
    transform: translateY(-1px);
}

.pagination span {
    font-weight: bold;
    color: #222;
}

/* SORT DROPDOWN */
.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0 25px 0;
    justify-content: center;
}

.sort-container label {
    font-weight: bold;
}

.sort-container select {
    padding: 6px 12px;
    border: 1px solid #888;
    border-radius: 6px;
    background: #f2f2f2;
    cursor: pointer;
    transition: 0.2s;
}

.sort-container select:hover {
    background: #e8e8e8;
}
