* {
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* body {
  background-color: #0b0c10;
  color: white;
  margin: 0;
  padding: 0;
} */

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 72px;
  padding: 30px;
}

.input-field{
    background-color:  rgba(161, 215, 55, 1) !important;
}

.input-field, .select-field {
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    padding: 16px 24px;
    width: 233px;
    height: 50px;
    border-radius: 100px;
    border: 2px solid #000000;
    background: transparent;
    /* color: white; */
    outline: none;
}

.input-field::placeholder {
  color: #000000;
}

.select-field option {
  color: black;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
}

.episode-card {
border: 2px solid rgba(161, 215, 55, 1);
;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.episode-card:hover {
  transform: scale(1.03);
}

.episode-bg {
  background-size: cover;
  background-position: center;
  height: 200px;
  position: relative;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.909);
  background-image: url(image\ 23.png);
}

.episode-info {
  position: absolute;
  bottom: 15px;
  left: 20px;
  z-index: 2;
}

.episode-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: rgba(161, 215, 55, 1);
}

.episode-info p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #ccc;
}

#loadMore {
  display: block;
  margin: 40px auto;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  background: rgba(161, 215, 55, 1);;
  color: rgb(0, 0, 0);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 800;
}

#loadMore:hover {
  background: rgba(255, 255, 255, 0.1);
}

#noResults {
  text-align: center;
  margin-top: 100px;
}

#noResults p {
  margin-top: 15px;
  color: #bbb;
  font-size: 18px;
}

.hidden {
  display: none;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #1a1c20;
  padding: 30px;
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.4s ease;
  z-index: 10000;
}

.modal-inner-border {
  border: 2px solid rgba(161, 215, 55, 1);
  border-radius: 12px;
  padding: 20px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(161, 215, 55, 1);
  font-size: 18px;
  cursor: pointer;
}

.modal-content h2 {
    color: rgba(161, 215, 55, 1);
  margin-top: 0;
  font-weight: 600;
  font-size: 22px;
}

.modal-content .date {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 10px;
}

.modal-content .sub-title {
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 16px;
  color: #eee;
}

.characters {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.character-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.character-row img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.character-row p {
  font-size: 16px;
  color: white;
  margin: 0;
}

@keyframes fadeIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
