body {
  font-family: "Roboto", sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 20px;
  color: #222
}

.header {
  text-align: center;
  margin-bottom: 24px;
}

#filter-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

#show,
#select,
#search{
  padding: 12px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

#select, #show {
  cursor: pointer;
  min-width: 220px;
}

.show-summary {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

.show-summary p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

#search{
  min-width: 260px;
}

#episode-count{
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
}

#main-container{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* Card */
.episode-link {
 display: block;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #000;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.episode-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Title */
.name {
  font-size: 18px;
  font-weight: 600;
  padding: 14px;
  margin: 0;
  min-height: 48px;
  line-height: 1.4;
}

.episode-link img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.summary {
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

.summary p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

#message,
#errorMessage {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
}

#message {
  color: #444;
}

/* Small screen */
@media (max-width: 768px) {
  #filter-container {
    flex-direction: column;
    align-items: center;
  }

  #select,
  #search {
    width: 100%;
    min-width: unset;
  }

  #episode-count {
    text-align: center;
  }
}