.episode_card .new-episode-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #be0000;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

.ep_link .new-episode-badge {
  position: absolute;
  background: #be0000;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

[dir="ltr"] .ep_link .new-episode-badge {
  left: 10px;
}

[dir="rtl"] .ep_link .new-episode-badge {
  right: 10px;
}

@media (min-width: 0px) {
  .ep_link .new-episode-badge {
    top: 8px;
    font-size: 10px;
  }
}

@media (min-width: 500px) {
  .ep_link .new-episode-badge {
    top: 10px;
    font-size: 14px;
  }
}

@media (min-width: 900px) {
  .ep_link .new-episode-badge {
    font-size: 16px;
  }
}

.episode_card:hover .new-episode-badge,
.ep_link:hover .new-episode-badge {
  opacity: 0;
}

/* */

.webisode-filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  padding: 0 10px;
}

.web-filter-btn {
  background: var(--bg-button);
  border: 1px solid var(--card-border);
  color: var(--font-color);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.web-filter-btn:hover {
  background: var(--bg-button-hover);
}

.web-filter-btn.active {
  background: var(--color-active);
  color: var(--font-color-invert);
  cursor: default;
  pointer-events: none;
}

.filtered-episodes-wrapper {
  transition: opacity 0.3s ease;
}
