/* Grid layout */
#episodes-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

/* Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px;
  margin: 20px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #f4f4f4;
}

.controls label {
  font-weight: bold;
}

.controls input,
.controls select {
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #aaa;
  border-radius: 6px;
}

#search-input {
  min-width: 250px;
}

#episode-count {
  margin-left: auto;
  font-weight: bold;
}

/* Card */
.episode-card {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  height: auto;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: rgb(233, 222, 103);
}

/* Title */
.episode-card h3 {
  background: rgb(255, 255, 255);
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  text-align: center;
}

/* Image */
.episode-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 16px;
}

/* Body */
.episode-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: rgb(0, 0, 0);
}

/* Summary */
.episode-body p:first-child {
  margin: 0;
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
}

/* Credit */
.credit {
  display: block;
  text-align: center;
  background: rgb(233, 222, 103);
  padding: 12px;
  border-radius: 6px;
  border: 2px solid #000;
  font-size: 16px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  margin-top: auto;
}
.credit:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: scale(1.03);
  transition: 0.2s ease;
}
/*footer*/
footer.page-credit {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: #f4f4f4;
  border: 2px solid #ddd;
  border-radius: 8px;
  max-width: 5000px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  color: rgb(11, 11, 10);
}

/*container for all shows*/
#shows-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 20px;
}
.show-card {
  display: grid;
  grid-template-columns: 180px 1fr 230px;
  gap: 20px;
  background: rgb(233, 222, 103);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  align-items: center;
  margin-bottom: 20px;
}
.show-title {
  grid-column: 1 / -1;
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 10px;
  text-decoration: underline;
  color: rgb(0, 0, 0);
  cursor: pointer;
  transition: 0.2s ease;
}
.show-title:hover {
  color: rgb(4, 4, 231);
  text-decoration-color: rgb(4, 4, 231);
}
.show-card img {
  width: 180px;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
}
.show-card-content {
  max-width: 100%;
  font-size: 18px;
  line-height: 1.4;
}
.show-info-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;

  background: #f4f4f4;
  height: 170px;
  line-height: 1.7;
  padding: 12px;
  border-radius: 8px;
  border: 3px solid #794040;
  font-size: 17px;
}
.show-info-box p {
  margin: 6px 0;
}

.filter-row {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.button-container {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: -40px;
}

#back-to-shows {
  padding: 1px 12px;
  font-size: 14px;
  background: #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

#back-to-shows:hover {
  background: #0264c1;
  color: white;
}

.episode-back-btn {
  display: none;
  margin-left: 20px;
  padding: 1px 12px;
  font-size: 14px;
  background: #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

.episode-back-btn:hover {
  background: #0264c1;
  color: white;
}
