/* =========================================
   SMOOTH VEGA PODCAST — Episode List
   Clean Apple Podcasts-style rows
   ========================================= */

.episode-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.episode-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 150ms ease;
  position: relative;
}

.episode-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.episode-row:active {
  transform: scale(0.98);
  transition: transform 100ms ease;
}

.episode-row.active {
  background: rgba(220, 38, 38, 0.06);
}

/* Active glow bar */
.episode-row.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 40%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  animation: glowFadeIn 400ms ease forwards;
}

@keyframes glowFadeIn {
  from { opacity: 0; height: 0; }
  to { opacity: 1; height: 40%; }
}

.episode-row.playing .episode-eq {
  display: flex;
}

/* Thumbnail */
.episode-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.episode-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Listen progress bar under thumbnail */
.episode-progress-bar {
  position: absolute;
  bottom: 4px;
  left: 6px;
  right: 6px;
  height: 3px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  overflow: hidden;
}

.episode-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 300ms ease;
}

/* Info block */
.episode-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.episode-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.episode-row.active .episode-title {
  color: var(--accent-bright);
}

.episode-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.episode-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.episode-meta-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

/* EQ bars */
.episode-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  flex-shrink: 0;
}

.episode-eq .eq-bar {
  width: 2.5px;
  background: var(--accent);
  border-radius: 1px;
  animation: eqBounce 1s ease-in-out infinite;
}

.episode-eq .eq-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.episode-eq .eq-bar:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.episode-eq .eq-bar:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.episode-eq .eq-bar:nth-child(4) { height: 80%; animation-delay: 0.1s; }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* Play button — always visible on mobile */
.episode-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 150ms ease;
}

.episode-play-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.episode-row.active .episode-play-btn {
  color: var(--accent-bright);
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.15);
}

.episode-row.playing .episode-play-btn {
  display: none;
}

/* Skeleton loading */
.episode-skeleton {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.skeleton-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--surface);
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: var(--surface);
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line:nth-child(1) { width: 40%; }
.skeleton-line:nth-child(2) { width: 80%; }
.skeleton-line:nth-child(3) { width: 35%; }

@keyframes shimmer {
  0% { opacity: 0.4; }
  50% { opacity: 0.7; }
  100% { opacity: 0.4; }
}
