/* General container for the last season list */
.cp-last-season-wrapper {
  margin-bottom: 2rem;
}

/* Season name: Comfortaa semibold 18pt ≈ 24px */
.cp-last-season-wrapper h3 {
  margin-bottom: 1rem;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 600; /* semibold */
  font-size: 24px;
  padding: 10px;
  color: #181833;
}

/* A row of episodes */
.cp-episode-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Single episode item */
.cp-episode-item {
  width: 25%;
  box-sizing: border-box;
  padding: 10px;
  position: relative; /* for absolutely-positioned overlays */
  transition: opacity 0.3s ease;
}

/* The link for the image */
.cp-episode-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* The container for the episode image */
.cp-episode-item .episode-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* The actual image */
.cp-episode-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Episode number: Roboto Bold Condensed 16pt ≈ 21px */
.cp-episode-item .episode-number {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #181833;
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;

  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; /* bold */
  font-size: 21px;
}

/* Episode name: Roboto Bold Condensed 18pt ≈ 24px */
.cp-episode-item .episode-title {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  color: #181833;
  padding: 6px 10px;

  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; /* bold */
  font-size: 24px;
}

/* Episode date/duration: Roboto Bold Condensed 14pt ≈ 19px */
.cp-episode-item .episode-meta {
  margin-top: 8px;

  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; /* bold */
  font-size: 19px;
  color: #181833;
}

/* Episode description (synopsis): Roboto Condensed 14pt ≈ 19px */
.cp-episode-item .episode-description {
  margin-top: 8px;

  font-family: 'Roboto Condensed', sans-serif;
  font-size: 19px;
  font-weight: 400; /* normal */
  color: #181833;
}

/* If an episode is coming soon, give it opacity and remove pointer events */
.cp-episode-item.coming_soon {
  opacity: 0.6;
  pointer-events: none; /* so it can't be clicked */
}

/* Tabs styling for the other seasons */
.cp-other-seasons-tabs {
  margin-top: 2rem;
}

/* The tabs container */
.cp-other-seasons-tabs .cp-tabs-list {
  list-style: none;
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  padding: 0;
}

/* Each tab <li> */
.cp-other-seasons-tabs .cp-tabs-list li {
  margin: 0;
}

/* The tab links: semi-transparent by default, no border or background */
.cp-other-seasons-tabs .cp-tabs-list li a {
  display: inline-block;
  padding: 6px 10px;
  color: #181833;
  text-decoration: none;
  border-radius: 4px;
  opacity: 0.8;
  background: none;
  border: none;

  font-family: 'Roboto Condensed', sans-serif;
  font-size: 19px;
  font-weight: 400;
  outline: none; /* remove focus outline in some browsers */
}

/* Remove focus outline on click */
.cp-other-seasons-tabs .cp-tabs-list li a:focus {
  outline: none;
  border: none;
}

/* When the tab is active, make it fully opaque */
.cp-other-seasons-tabs .cp-tabs-list li a.active {
  opacity: 1;
}

/* Hide all season tab contents by default */
.cp-other-seasons-tabs .cp-season-tab-content {
  display: none;
}
