/* podcast.css — Podcast layer + mini-player styles */

/* ── Inline podcast episode list ── */

.podcast-inline-container {
  margin-top: 8px;
}

.podcast-inline-episodes {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.podcast-episode-card {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.episode-collapsed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  cursor: pointer;
  transition: background 0.1s;
}
.episode-collapsed-row:active {
  background: rgba(255,255,255,0.04);
}

.episode-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.episode-play-btn:hover { background: rgba(255,255,255,0.18); }
.episode-play-btn.playing { background: var(--accent, rgba(90,122,196,0.4)); }

.episode-played-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.episode-played-dot.played {
  background: var(--accent, rgba(90,122,196,0.7));
}

.episode-info {
  flex: 1;
  min-width: 0;
}

.episode-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text, rgba(255,255,255,0.88));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

/* Episode body (expanded) */
.episode-body {
  display: none;
  padding: 0 8px 20px;
}

.podcast-episode-card.expanded .episode-body {
  display: block;
}

.episode-body-desc {
  font-size: 14px;
  color: var(--muted, rgba(255,255,255,0.55));
  line-height: 1.6;
  margin-bottom: 16px;
}

.episode-shownotes {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 16px;
  max-height: 300px;
  overflow-y: auto;
}
.episode-shownotes a { color: var(--accent, #5a7ac4); }
.episode-shownotes h1, .episode-shownotes h2, .episode-shownotes h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 12px 0 6px;
}

.episode-play-full-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background 0.15s;
}
.episode-play-full-btn:hover { background: rgba(255,255,255,0.16); }

/* Speed selector */
.speed-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.speed-btn {
  padding: 4px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: none;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.speed-btn.active {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
}

/* ── Echo strip ── */

.echo-strip {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.echo-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.echo-btn:active {
  background: rgba(255,255,255,0.22);
  transform: scale(1.15);
}
.echo-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}
.echo-btn.flash {
  transform: scale(1.3);
  background: rgba(255,255,255,0.3);
}

.echo-allowance {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-left: 4px;
}

/* ── Subscribe CTA ── */

#podcastSubscribeCta {
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ── Persistent mini-player ── */

#podcastMiniPlayer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9989;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

#podcastMiniPlayer.active {
  transform: translateY(0);
}

#miniPlayerArt {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  cursor: pointer;
}

#miniPlayerInfo {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

#miniPlayerTitle {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#miniPlayerShow {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#miniPlayerControls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

#miniPlayerControls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 50%;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: background 0.15s;
}
#miniPlayerControls button:hover {
  background: rgba(255,255,255,0.12);
}

#miniPlayerPlayPause {
  font-size: 18px !important;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#miniPlayerEchoes {
  display: none;
}

/* Progress bar at bottom of mini-player */
#miniPlayerProgress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
}

#miniPlayerProgressBar {
  height: 100%;
  background: rgba(255,255,255,0.6);
  width: 0%;
  transition: width 0.5s linear;
}

/* ── Prompt card ── */

.podcast-prompt-card {
  position: fixed;
  bottom: 80px;
  left: 12px;
  right: 12px;
  z-index: 9990;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: prompt-slide-up 0.3s ease;
}

@keyframes prompt-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.prompt-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.9);
}

.prompt-body {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  line-height: 1.5;
}

.prompt-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.prompt-option-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: none;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.prompt-option-btn:hover {
  background: rgba(255,255,255,0.08);
}
.prompt-option-btn.selected {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

.prompt-text-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  margin-bottom: 12px;
}

.prompt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.prompt-dismiss-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: none;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  cursor: pointer;
}

.prompt-submit-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.prompt-submit-btn:hover { background: rgba(255,255,255,0.18); }

/* ── Podcast block card (in canvas page) ── */

.podcast-block-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: rgba(255,255,255,0.02);
}
.podcast-block-card:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}

.podcast-block-art {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.podcast-block-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.podcast-block-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text, rgba(255,255,255,0.88));
  margin-bottom: 4px;
}

.podcast-block-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ── Responsive ── */

@media (min-width: 768px) {
  #podcastHeader { padding: 56px 32px 28px; }
  #podcastEpisodeList { padding: 0 24px; }
  .podcast-show-art { width: 120px; height: 120px; }
  #miniPlayerEchoes { display: flex; gap: 4px; flex-shrink: 0; }
  #miniPlayerEchoes .echo-btn { font-size: 14px; padding: 3px 6px; }
}
