/* ── Page header ─────────────────────────────────────── */
.ep-page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}
.ep-page-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin: 0;
}
.ep-count-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 197, 24, 0.15);
  color: var(--c-gold, #f5c518);
  font-family: "Josefin Sans", sans-serif;
  font-size: var(--fs-xs, 0.68rem);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ── Trending banner ─────────────────────────────────── */
.ep-trending-banner {
  margin-bottom: var(--sp-md, 24px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--c-surface, #111);
}
.ep-trending-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.ep-trending-inner:hover {
  color: inherit;
  text-decoration: none;
}
.ep-trending-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.ep-trending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.ep-trending-inner:hover .ep-trending-thumb img {
  transform: scale(1.03);
}
.ep-trending-thumb .play-overlay {
  width: 56px;
  height: 56px;
  opacity: 0.7;
}
.ep-trending-inner:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.ep-trending-info {
  padding: 20px 24px;
}
.ep-trending-eyebrow {
  font-family: "Josefin Sans", sans-serif;
  font-size: var(--fs-xs, 0.68rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-gold, #f5c518);
  margin: 0 0 8px;
}
.ep-trending-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: var(--fs-xl, 1.3rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-trending-desc {
  font-size: var(--fs-base, 0.85rem);
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 12px;
  line-height: 1.5;
}
.ep-trending-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Josefin Sans", sans-serif;
  font-size: var(--fs-sm, 0.75rem);
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}
.ep-trending-fires i {
  color: #ff6b35;
  font-size: 0.62rem;
}
.ep-trending-comments i {
  font-size: 0.62rem;
}
@media (max-width: 767px) {
  .ep-trending-inner {
    grid-template-columns: 1fr;
  }
  .ep-trending-info {
    padding: 14px 16px 16px;
  }
  .ep-trending-title {
    font-size: var(--fs-lg, 1.1rem);
  }
}

/* ── Sticky filter toolbar ──────────────────────────── */
.ep-toolbar {
  position: sticky;
  top: var(--ep-header-h, 68px);
  z-index: 100;
  background: var(--c-bg, #060e10);
  padding: 12px 0 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.ep-toolbar.is-stuck {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.ep-toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Search input (promoted, wider) ──────────────────── */
.ep-search-wrap {
  margin-bottom: 10px;
}
.ep-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 560px;
}
.ep-search-icon {
  position: absolute;
  left: 18px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.82rem;
  pointer-events: none;
}
.ep-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 44px 10px 42px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.15s,
    background 0.15s;
  font-family: inherit;
}
.ep-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.ep-search-input:focus {
  border-color: #f5c518;
  background: rgba(255, 255, 255, 0.1);
}
.ep-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s;
}
.ep-search-clear:hover {
  color: #fff;
}
.ep-search-all-link {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  text-align: center;
  transition: color 0.2s;
}
.ep-search-all-link:hover {
  color: #f5c518;
}

/* ── Sort pills ──────────────────────────────────────── */
.pills {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 16px 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  font-family: inherit;
  line-height: 1;
}
.pill-btn i {
  font-size: 0.7em;
  transform: translateY(-1px);
}
.pill-btn:hover {
  background: rgba(245, 197, 24, 0.15);
  border-color: #f5c518;
  color: #f5c518;
}
.pill-btn.active {
  background: #f5c518;
  border-color: #f5c518;
  color: #111;
}
.pill-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  align-self: center;
}

/* ── Year dropdown (pill-shaped select) ──────────────── */
.ep-year-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.ep-year-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 5px 32px 5px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  line-height: 1.5;
}
.ep-year-select:hover {
  background: rgba(245, 197, 24, 0.15);
  border-color: #f5c518;
  color: #f5c518;
}
.ep-year-select:focus {
  border-color: #f5c518;
}
.ep-year-select.active {
  background: #f5c518;
  border-color: #f5c518;
  color: #111;
}
.ep-year-caret {
  position: absolute;
  right: 12px;
  pointer-events: none;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
}
.ep-year-select.active + .ep-year-caret {
  color: #111;
}

/* ── Grid / List view toggle ─────────────────────────── */
.ep-view-toggle {
  display: inline-flex;
  gap: 0;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  overflow: hidden;
}
.ep-view-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.82rem;
  transition:
    background 0.15s,
    color 0.15s;
}
.ep-view-btn + .ep-view-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.ep-view-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}
.ep-view-btn.active {
  background: rgba(245, 197, 24, 0.15);
  color: #f5c518;
}

/* ── Result summary ──────────────────────────────────── */
.ep-result-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Josefin Sans", sans-serif;
  font-size: var(--fs-xs, 0.68rem);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 18px;
  min-height: 1.2em;
  flex-wrap: wrap;
}
.ep-result-summary strong {
  color: var(--c-gold, #f5c518);
  font-weight: 700;
}
.ep-result-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

/* ── Episode stat (views — listing-specific) ─────────── */
.episode-stat {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.72rem;
  color: #f5c518;
  margin: 0;
}
.episode-stat i {
  margin-right: 3px;
}
.episode-stat-item {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  margin-left: 6px;
}
.episode-stat-item i {
  font-size: 0.6rem;
  margin-right: 2px;
}

/* ── Comment count on cards ──────────────────────────── */
.episode-comments {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  margin-left: 6px;
}
.episode-comments i {
  font-size: 0.58rem;
}
.episode-meta-stats {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ── List view overrides ─────────────────────────────── */
.ep-list-mode .col-6 {
  flex: 0 0 100%;
  max-width: 100%;
}
.ep-list-mode .card-wrap {
  display: flex;
  align-items: center;
}
.ep-list-mode .episode-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: auto;
}
.ep-list-mode .episode-thumb-wrap {
  width: 160px;
  min-width: 160px;
  padding-top: 0;
  height: 90px;
  border-radius: 8px 0 0 8px;
  flex-shrink: 0;
}
.ep-list-mode .episode-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.ep-list-mode .episode-info {
  flex: 1;
  padding: 8px 14px;
  min-width: 0;
}
.ep-list-mode .episode-title {
  -webkit-line-clamp: 1;
  font-size: 0.85rem;
}
.ep-list-mode .play-overlay {
  width: 36px;
  height: 36px;
}
.ep-list-mode .play-overlay::after {
  border-width: 6px 0 6px 11px;
}
.ep-list-mode .episode-new-badge {
  font-size: 0.58rem;
  padding: 1px 5px;
}
.ep-list-mode .rc-card-fav {
  position: relative;
  top: auto;
  right: auto;
  flex-shrink: 0;
  margin-right: 8px;
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 575px) {
  .ep-list-mode .episode-thumb-wrap {
    width: 120px;
    min-width: 120px;
    height: 68px;
  }
  .ep-list-mode .episode-info {
    padding: 6px 10px;
  }
}

/* ── Skeleton loading cards ──────────────────────────── */
.episode-skeleton {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}
.episode-skeleton-thumb {
  width: 100%;
  padding-top: 56.25%;
  background: rgba(255, 255, 255, 0.07);
}
.episode-skeleton-info {
  padding: 10px 12px 12px;
}
.episode-skeleton-line {
  height: 11px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-bottom: 7px;
}
.episode-skeleton-line.wide {
  width: 88%;
}
.episode-skeleton-line.narrow {
  width: 65%;
}
.episode-skeleton-line.short {
  width: 40%;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.05);
}
@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ── Load more / states ──────────────────────────────── */
.grid-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #f5c518;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.grid-error {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  padding: 40px 0;
}

/* ── Scroll-fail retry ───────────────────────────────── */
.scroll-load-error {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin: 0;
}
.scroll-retry-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  margin-left: 8px;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.scroll-retry-btn:hover {
  border-color: #f5c518;
  color: #f5c518;
}

/* ── Sign-off / end of list ──────────────────────────── */
.ep-signoff {
  padding: var(--sp-md, 24px) 0 var(--sp-sm, 16px);
  text-align: center;
}
.ep-back-link {
  font-family: "Josefin Sans", sans-serif;
  font-size: var(--fs-xs, 0.68rem);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.15s;
}
.ep-back-link:hover {
  color: var(--c-gold, #f5c518);
  text-decoration: none;
}

/* Back to top uses shared .rc-btt from style.css */
