Add a podcasts section to the web player

The sidebar gets Podcasts: add an RSS feed (fetched by the server; a
refused or broken feed shows why), the subscriptions with unplayed
counts and the last fetch error, and a podcast page with seasons, an
episode search, played/sort filters, paging, manual refresh and
unsubscribe (the confirmation says progress and history are kept), or
subscribe again. Episodes show the saved position, the time left and a
played mark, with Play/Resume, Start over, Mark played, Mark unplayed
and Add to queue; Jam guests cannot add episodes. The podcast page also
lists the recent listening history.

The queue labels episodes, the podcast name of the current episode
opens its page, like and share are hidden for episodes, and the player
bar shows when an episode is loading or cannot be played or resumed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sanapachandClaude Opus 5.5 committed 2026-11-20 15:12:38 +02:00
1 parent 3ebfc45abb
commit 9d1a46c9fe
2 files changed
+511 -6

No files matched your search

+282 -6
View File
@@ -75,6 +75,12 @@
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><path d="M17 8l-5-5-5 5"/><path d="M12 3v12"/></svg>
{{ t.player_my_uploads }}
</div>
<div class="sidebar-nav-item"
:class="{ active: $store.library.view === 'podcasts' || $store.library.view === 'podcast_detail' }"
@click="$store.podcasts.go()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0014 0M12 17v5M8 22h8"/></svg>
{{ t.player_podcasts }}
</div>
</div>
<div class="sidebar-section">
<div class="sidebar-section-title">
@@ -187,6 +193,12 @@
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><path d="M17 8l-5-5-5 5"/><path d="M12 3v12"/></svg>
{{ t.player_my_uploads }}
</div>
<div class="sidebar-nav-item"
:class="{ active: $store.library.view === 'podcasts' || $store.library.view === 'podcast_detail' }"
@click="$store.podcasts.go(); $store.mobile.closeLibrary()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0014 0M12 17v5M8 22h8"/></svg>
{{ t.player_podcasts }}
</div>
</div>
<div class="mobile-drawer-section">
@@ -703,6 +715,262 @@
</div>
</template>
<!-- Podcasts -->
<template x-if="$store.library.view === 'podcasts'">
<div class="podcasts-view">
<h1 class="section-title">{{ t.player_podcasts }}</h1>
<form class="podcast-add" @submit.prevent="$store.podcasts.add()">
<input class="podcast-input podcast-add-input"
type="text"
inputmode="url"
autocomplete="off"
spellcheck="false"
placeholder="{{ t.player_podcast_add_placeholder }}"
aria-label="{{ t.player_podcast_add_placeholder }}"
x-model="$store.podcasts.addUrl"
:disabled="$store.podcasts.adding">
<button class="release-action-btn primary" type="submit"
:disabled="$store.podcasts.adding || !$store.podcasts.addUrl.trim()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>
<span x-text="$store.podcasts.adding ? '{{ t.player_podcast_adding }}' : '{{ t.player_podcast_add }}'"></span>
</button>
</form>
<div class="podcast-note">{{ t.player_podcast_private_note }}</div>
<div class="podcast-message error" x-show="$store.podcasts.addError" x-cloak x-text="$store.podcasts.addError"></div>
<div class="podcast-message" x-show="$store.podcasts.addMessage" x-cloak x-text="$store.podcasts.addMessage"></div>
<label class="podcast-toggle">
<input type="checkbox" :checked="$store.podcasts.showAll" @change="$store.podcasts.toggleShowAll()">
<span>{{ t.player_podcast_show_unsubscribed }}</span>
</label>
<div class="podcast-message error" x-show="$store.podcasts.listError" x-cloak x-text="$store.podcasts.listError"></div>
<div class="card-grid podcast-grid">
<template x-for="podcast in $store.podcasts.list" :key="podcast.podcast_id">
<div class="card podcast-card" @click="$store.podcasts.open(podcast.podcast_id)">
<div class="card-img">
<template x-if="podcast.image_url">
<img :src="podcast.image_url" alt="" aria-hidden="true" loading="lazy" referrerpolicy="no-referrer" @error="podcast.image_url = null">
</template>
<template x-if="!podcast.image_url">
<span class="placeholder-icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0014 0M12 17v5M8 22h8"/></svg></span>
</template>
<span class="podcast-unplayed-badge"
x-show="podcast.unplayed_count > 0"
x-text="podcast.unplayed_count"
:title="podcast.unplayed_count + ' ' + T.podcastUnplayed"></span>
</div>
<div class="card-title" x-text="podcast.title"></div>
<div class="card-subtitle" x-text="podcast.author || ''"></div>
<div class="card-subtitle" x-text="$store.podcasts.podcastCounts(podcast)"></div>
<div class="card-subtitle podcast-unsubscribed-label" x-show="!podcast.subscribed" x-cloak>{{ t.player_podcast_unsubscribed }}</div>
<div class="card-subtitle podcast-fetch-error"
x-show="podcast.fetch && podcast.fetch.last_error"
x-cloak
:title="podcast.fetch && podcast.fetch.last_error"
x-text="'{{ t.player_podcast_fetch_error }}'"></div>
</div>
</template>
</div>
<template x-if="!$store.podcasts.listLoading && $store.podcasts.list.length === 0 && !$store.podcasts.listError">
<div class="empty-state"><p>{{ t.player_podcasts_empty }}</p></div>
</template>
<template x-if="$store.podcasts.listLoading && $store.podcasts.list.length === 0">
<div class="loading-spinner"><div class="spinner"></div></div>
</template>
</div>
</template>
<!-- Podcast: seasons and episodes -->
<template x-if="$store.library.view === 'podcast_detail'">
<div class="podcast-detail">
<div class="breadcrumb">
<a @click="$store.podcasts.go()">{{ t.player_podcasts }}</a>
<span>/</span>
<span x-text="$store.podcasts.current ? $store.podcasts.current.title : ''"></span>
</div>
<div class="podcast-message error" x-show="$store.podcasts.detailError" x-cloak x-text="$store.podcasts.detailError"></div>
<template x-if="!$store.podcasts.current && !$store.podcasts.detailError">
<div class="loading-spinner"><div class="spinner"></div></div>
</template>
<template x-if="$store.podcasts.current">
<div class="artist-header podcast-header">
<div class="artist-img podcast-cover">
<template x-if="$store.podcasts.current.image_url">
<img :src="$store.podcasts.current.image_url" alt="" aria-hidden="true" referrerpolicy="no-referrer" @error="$store.podcasts.current.image_url = null">
</template>
<template x-if="!$store.podcasts.current.image_url">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0014 0M12 17v5M8 22h8"/></svg>
</template>
</div>
<div class="podcast-header-info">
<div class="artist-name" x-text="$store.podcasts.current.title"></div>
<div class="artist-stats">
<span x-show="$store.podcasts.current.author" x-text="$store.podcasts.current.author"></span>
<span x-show="$store.podcasts.current.author">•</span>
<span x-text="$store.podcasts.podcastCounts($store.podcasts.current)"></span>
<span class="podcast-unsubscribed-label" x-show="!$store.podcasts.current.subscribed" x-cloak>• {{ t.player_podcast_unsubscribed }}</span>
</div>
<div class="podcast-fetch-line"
:class="{ error: $store.podcasts.current.fetch && $store.podcasts.current.fetch.last_error }"
x-text="$store.podcasts.fetchStatus($store.podcasts.current)"></div>
<div class="podcast-feed-url" :title="$store.podcasts.current.feed_url">
<span>{{ t.player_podcast_feed }}:</span>
<span x-text="$store.podcasts.current.feed_url"></span>
</div>
<div class="release-actions">
<button class="release-action-btn secondary"
x-show="$store.podcasts.current.subscribed"
:disabled="$store.podcasts.refreshing"
@click="$store.podcasts.refresh()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12a9 9 0 11-3-6.7L21 8"/><path d="M21 3v5h-5"/></svg>
<span x-text="$store.podcasts.refreshing ? '{{ t.player_podcast_refreshing }}' : '{{ t.player_podcast_refresh }}'"></span>
</button>
<button class="release-action-btn secondary podcast-unsubscribe"
x-show="$store.podcasts.current.subscribed"
@click="$store.podcasts.unsubscribe()">
<span>{{ t.player_podcast_unsubscribe }}</span>
</button>
<button class="release-action-btn primary"
x-show="!$store.podcasts.current.subscribed"
x-cloak
@click="$store.podcasts.subscribe()">
<span>{{ t.player_podcast_subscribe }}</span>
</button>
</div>
<div class="podcast-message" x-show="$store.podcasts.refreshMessage" x-cloak x-text="$store.podcasts.refreshMessage"></div>
<div class="podcast-message error" x-show="$store.podcasts.actionError" x-cloak x-text="$store.podcasts.actionError"></div>
</div>
</div>
</template>
<template x-if="$store.podcasts.current && $store.podcasts.current.description">
<p class="podcast-description" x-text="$store.podcasts.current.description"></p>
</template>
<div class="podcast-filters">
<div class="podcast-chips" role="group" aria-label="{{ t.player_podcast_season }}">
<button class="podcast-chip"
:class="{ active: $store.podcasts.season === 'all' }"
@click="$store.podcasts.setSeason('all')">{{ t.player_podcast_all_seasons }}</button>
<template x-for="season in $store.podcasts.seasons" :key="$store.podcasts.seasonValue(season)">
<button class="podcast-chip"
:class="{ active: $store.podcasts.season === $store.podcasts.seasonValue(season) }"
@click="$store.podcasts.setSeason($store.podcasts.seasonValue(season))">
<span x-text="$store.podcasts.seasonLabel(season)"></span>
<span class="podcast-chip-count" x-show="season.unplayed_count > 0" x-text="season.unplayed_count"></span>
</button>
</template>
</div>
<div class="podcast-filter-row">
<input class="podcast-input podcast-search"
type="search"
placeholder="{{ t.player_podcast_search }}"
aria-label="{{ t.player_podcast_search }}"
x-model="$store.podcasts.query"
@input="$store.podcasts.search()">
<select class="podcast-input podcast-select"
aria-label="{{ t.player_podcast_filter_all }}"
:value="$store.podcasts.played"
@change="$store.podcasts.setPlayed($event.target.value)">
<option value="all">{{ t.player_podcast_filter_all }}</option>
<option value="unplayed">{{ t.player_podcast_filter_unplayed }}</option>
<option value="in_progress">{{ t.player_podcast_filter_in_progress }}</option>
<option value="played">{{ t.player_podcast_filter_played }}</option>
</select>
<select class="podcast-input podcast-select"
aria-label="{{ t.player_podcast_sort_newest }}"
:value="$store.podcasts.sort"
@change="$store.podcasts.setSort($event.target.value)">
<option value="newest">{{ t.player_podcast_sort_newest }}</option>
<option value="oldest">{{ t.player_podcast_sort_oldest }}</option>
<option value="number">{{ t.player_podcast_sort_number }}</option>
</select>
</div>
</div>
<div class="podcast-message error" x-show="$store.podcasts.episodesError" x-cloak x-text="$store.podcasts.episodesError"></div>
<div class="podcast-episodes">
<template x-for="episode in $store.podcasts.episodes" :key="episode.episode_id">
<div class="podcast-episode"
:class="{ current: $store.podcasts.isCurrentEpisode(episode), played: episode.status === 'completed' }">
<div class="podcast-episode-main">
<button class="podcast-episode-play"
:disabled="$store.podcasts.jamBlocked()"
:title="$store.podcasts.jamBlocked() ? T.podcastJamBlocked : (episode.status === 'in_progress' ? '{{ t.player_podcast_resume }}' : '{{ t.player_podcast_play }}')"
:aria-label="episode.status === 'in_progress' ? '{{ t.player_podcast_resume }}' : '{{ t.player_podcast_play }}'"
@click="$store.podcasts.isPlayingEpisode(episode) ? $store.player.pause() : $store.podcasts.play(episode)">
<template x-if="!$store.podcasts.isPlayingEpisode(episode)">
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg>
</template>
<template x-if="$store.podcasts.isPlayingEpisode(episode)">
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M6 4h4v16H6zM14 4h4v16h-4z"/></svg>
</template>
</button>
<div class="podcast-episode-info">
<div class="podcast-episode-title">
<span x-text="episode.title"></span>
<span class="podcast-played-badge" x-show="episode.status === 'completed'" x-cloak>✓ {{ t.player_podcast_played_badge }}</span>
</div>
<div class="podcast-episode-meta">
<span x-text="$store.podcasts.episodeMeta(episode)"></span>
<span x-show="episode.completed_count > 0" x-cloak x-text="' · {{ t.player_podcast_played_times }}: ' + episode.completed_count"></span>
<span class="podcast-not-in-feed" x-show="!episode.in_feed" x-cloak>· {{ t.player_podcast_not_in_feed }}</span>
</div>
<div class="podcast-progress" x-show="episode.status === 'in_progress'" x-cloak>
<div class="podcast-progress-bar"><div :style="`width:${$store.podcasts.progressPercent(episode)}%`"></div></div>
<span x-text="$store.podcasts.progressLabel(episode)"></span>
</div>
</div>
</div>
<div class="podcast-episode-actions">
<button class="podcast-episode-action"
x-show="episode.status !== 'not_started'"
:disabled="$store.podcasts.jamBlocked() || !!$store.podcasts.busy[episode.episode_id]"
@click="$store.podcasts.restart(episode)">{{ t.player_podcast_restart }}</button>
<button class="podcast-episode-action"
x-show="episode.status !== 'completed'"
:disabled="!!$store.podcasts.busy[episode.episode_id]"
@click="$store.podcasts.markPlayed(episode)">{{ t.player_podcast_mark_played }}</button>
<button class="podcast-episode-action"
x-show="episode.status !== 'not_started'"
:disabled="!!$store.podcasts.busy[episode.episode_id]"
@click="$store.podcasts.markUnplayed(episode)">{{ t.player_podcast_mark_unplayed }}</button>
<button class="podcast-episode-action"
:disabled="$store.podcasts.jamBlocked()"
@click="$store.podcasts.addToQueue(episode)">{{ t.player_podcast_add_queue }}</button>
</div>
<template x-if="episode.description">
<p class="podcast-episode-description"
:class="{ expanded: $store.podcasts.expanded[episode.episode_id] }"
@click="$store.podcasts.toggleDescription(episode)"
x-text="episode.description"></p>
</template>
</div>
</template>
</div>
<template x-if="!$store.podcasts.episodesLoading && $store.podcasts.episodes.length === 0 && $store.podcasts.current">
<div class="empty-state"><p>{{ t.player_podcast_no_episodes }}</p></div>
</template>
<template x-if="$store.podcasts.episodesLoading">
<div class="loading-spinner"><div class="spinner"></div></div>
</template>
<button class="release-action-btn secondary podcast-load-more"
x-show="$store.podcasts.hasMore && !$store.podcasts.episodesLoading"
x-cloak
@click="$store.podcasts.loadEpisodes(false)">{{ t.player_podcast_load_more }}</button>
<template x-if="$store.podcasts.history.length > 0">
<section class="podcast-history">
<h2 class="artist-release-group-title">{{ t.player_podcast_history }}</h2>
<template x-for="entry in $store.podcasts.history" :key="entry.episode_id + '-' + entry.ended_at_ms">
<div class="podcast-history-row">
<span class="podcast-history-title" x-text="entry.episode_title || entry.episode_id"></span>
<span class="podcast-history-meta" x-text="$store.podcasts.formatDateTime(entry.ended_at_ms) + ' · ' + ($store.podcasts.formatDuration(entry.listened_ms) || '0:00') + (entry.completed ? ' · ✓' : '')"></span>
</div>
</template>
</section>
</template>
</div>
</template>
<!-- Artists Grid -->
<template x-if="$store.library.view === 'artists' || $store.library.view === 'my_uploads'">
<div>
@@ -1522,7 +1790,7 @@
<div class="queue-track"
:data-queue-index="item.index"
:class="{ active: item.state === 'current', current: item.state === 'current', played: item.state === 'played', dragging: $store.queue._dragIdx === item.index, synthetic: item.synthetic, 'foreign-jam-track': $store.queue.isForeignJamTrack(item.track), unplayable: $store.player._isUnplayableQueueItem(item.track) }"
:title="$store.player._unplayableQueueLabel(item.track) || null"
:title="$store.player._queueItemNote(item.track) || null"
:style="$store.queue.isForeignJamTrack(item.track) ? $store.queue.contributorStyle(item.track) : ''"
@click="item.index >= 0 ? $store.queue.playFromIndex(item.index) : $store.player.play(item.track)"
:draggable="!item.synthetic"
@@ -1576,15 +1844,15 @@
<div class="queue-track-info">
<div class="queue-track-title" x-text="item.track.title"></div>
<div class="queue-track-unplayable"
x-show="$store.player._isUnplayableQueueItem(item.track)"
x-show="$store.player._queueItemNote(item.track)"
x-cloak
x-text="$store.player._unplayableQueueLabel(item.track)"></div>
x-text="$store.player._queueItemNote(item.track)"></div>
<div class="queue-track-artist">
<template x-for="(artist, artistIdx) in $store.library.trackArtistLinks(item.track)" :key="artist.label + '-' + artist.id + '-' + artistIdx">
<span>
<template x-if="artistIdx > 0"><span>, </span></template>
<a class="artist-link"
@click.stop="artist.id ? $store.library.openArtist(artist.id) : $store.library.openFederatedArtist(artist.label.replace(/^ft\\.\\s*/, ''))"
@click.stop="$store.library.openArtistLink(artist)"
x-text="artist.label"></a>
</span>
</template>
@@ -1635,6 +1903,7 @@
<div class="player-track-title-row">
<div class="player-track-title" x-text="$store.player.currentTrack.title"></div>
<button data-member-only class="like-btn player-current-like"
x-show="!$store.player._isPodcastEpisode($store.player.currentTrack)"
:class="{ liked: $store.likes.has($store.player.currentTrack.id) }"
@click.stop="$store.likes.toggle($store.player.currentTrack.id)"
title="{{ t.player_like }}"
@@ -1642,6 +1911,7 @@
<svg viewBox="0 0 24 24" :fill="$store.likes.has($store.player.currentTrack.id) ? 'currentColor' : 'none'" stroke="currentColor" stroke-width="2"><path d="M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 000-7.78z"/></svg>
</button>
<button data-member-only class="track-action-btn player-current-share"
x-show="!$store.player._isPodcastEpisode($store.player.currentTrack)"
@click.stop="$store.sharing.copyTrack($store.player.currentTrack, $event.currentTarget)"
title="{{ t.player_share_track }}"
aria-label="{{ t.player_share_track }}">
@@ -1652,16 +1922,22 @@
<template x-for="(artist, artistIdx) in $store.library.trackArtistLinks($store.player.currentTrack)" :key="artist.label + '-' + artist.id + '-' + artistIdx">
<span>
<template x-if="artistIdx > 0"><span>, </span></template>
<a class="artist-link" @click.stop="$store.library.openArtist(artist.id)" x-text="artist.label"></a>
<a class="artist-link" @click.stop="$store.library.openArtistLink(artist)" x-text="artist.label"></a>
</span>
</template>
<template x-if="$store.player.currentTrack.release_year">
<span class="player-release-year" x-text="' · ' + $store.player.currentTrack.release_year"></span>
</template>
</div>
<div class="player-track-release" x-show="$store.player.currentTrack.release_title">
<div class="player-track-release" x-show="$store.player.currentTrack.release_title && !$store.player._isPodcastEpisode($store.player.currentTrack)">
<a class="artist-link" @click.stop="$store.player.currentTrack.release_id && $store.library.openRelease($store.player.currentTrack.release_id)" x-text="$store.player.currentTrack.release_title"></a>
</div>
<div class="player-episode-status"
x-show="$store.player._isPodcastEpisode($store.player.currentTrack) && ($store.player.episodeNotice || $store.player.episodeLoading)"
x-cloak
:class="{ error: !!$store.player.episodeNotice }"
:title="$store.player.episodeNotice || null"
x-text="$store.player.episodeNotice || '{{ t.player_podcast_loading }}'"></div>
</div>
</div>
</template>
+229
View File
@@ -7033,4 +7033,233 @@ button.user-stat:hover {
.guest-player .playlist-track-row .playlist-track-info { grid-column:2; grid-row:1; }
.guest-player .playlist-track-row .track-actions { grid-column:3; grid-row:1; }
}
/* Podcasts */
.podcast-add {
display: flex;
gap: 8px;
align-items: center;
flex-wrap: wrap;
margin-bottom: 8px;
}
.podcast-input {
background: var(--bg-elevated);
border: 1px solid var(--border-color);
border-radius: 8px;
color: var(--text-primary);
font-size: 13px;
padding: 8px 12px;
min-width: 0;
}
.podcast-input:focus { outline: none; border-color: var(--accent); }
.podcast-add-input { flex: 1 1 320px; }
.podcast-note,
.podcast-message,
.podcast-fetch-line,
.podcast-feed-url {
font-size: 12px;
color: var(--text-secondary);
margin: 4px 0;
}
.podcast-message.error,
.podcast-fetch-line.error,
.podcast-fetch-error,
.player-episode-status.error { color: #f15e6c; }
.podcast-feed-url {
color: var(--text-subdued);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
}
.podcast-feed-url span + span { margin-left: 4px; }
.podcast-toggle {
display: inline-flex;
gap: 6px;
align-items: center;
font-size: 12px;
color: var(--text-secondary);
margin: 8px 0 16px;
cursor: pointer;
}
.podcast-card .card-img { position: relative; }
.podcast-unplayed-badge {
position: absolute;
top: 8px;
right: 8px;
min-width: 24px;
padding: 2px 8px;
border-radius: 12px;
background: var(--accent);
color: #000;
font-size: 12px;
font-weight: 700;
text-align: center;
}
.podcast-unsubscribed-label { color: var(--text-subdued); }
.podcast-header-info { min-width: 0; }
.podcast-description {
color: var(--text-secondary);
font-size: 13px;
line-height: 1.5;
margin: 8px 0 16px;
max-width: 900px;
white-space: pre-line;
}
.podcast-filters {
display: flex;
flex-direction: column;
gap: 10px;
margin: 12px 0 16px;
}
.podcast-chips,
.podcast-filter-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.podcast-search { flex: 1 1 220px; }
.podcast-chip {
background: var(--bg-active);
color: var(--text-primary);
border: none;
border-radius: 16px;
padding: 6px 12px;
font-size: 12px;
cursor: pointer;
display: inline-flex;
gap: 6px;
align-items: center;
}
.podcast-chip.active { background: var(--accent); color: #000; }
.podcast-chip-count {
font-size: 11px;
opacity: 0.75;
}
.podcast-episodes { display: flex; flex-direction: column; }
.podcast-episode {
border-bottom: 1px solid var(--border-color);
padding: 12px 4px;
}
.podcast-episode.current .podcast-episode-title { color: var(--accent); }
.podcast-episode.played .podcast-episode-title > span:first-child { color: var(--text-secondary); }
.podcast-episode-main {
display: flex;
gap: 12px;
align-items: flex-start;
}
.podcast-episode-play {
flex: 0 0 auto;
width: 36px;
height: 36px;
border-radius: 50%;
border: none;
background: var(--accent);
color: #000;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.podcast-episode-play svg { width: 16px; height: 16px; }
.podcast-episode-play:disabled { opacity: 0.4; cursor: default; }
.podcast-episode-info { min-width: 0; flex: 1; }
.podcast-episode-title {
font-size: 14px;
font-weight: 600;
display: flex;
gap: 8px;
flex-wrap: wrap;
align-items: baseline;
}
.podcast-played-badge {
font-size: 11px;
font-weight: 600;
color: var(--accent);
}
.podcast-episode-meta {
font-size: 12px;
color: var(--text-secondary);
margin-top: 2px;
}
.podcast-not-in-feed { color: var(--text-subdued); }
.podcast-progress {
display: flex;
gap: 8px;
align-items: center;
font-size: 11px;
color: var(--text-secondary);
margin-top: 6px;
}
.podcast-progress-bar {
width: 120px;
max-width: 40%;
height: 4px;
border-radius: 2px;
background: var(--bg-active);
overflow: hidden;
}
.podcast-progress-bar > div { height: 100%; background: var(--accent); }
.podcast-episode-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 8px 0 0 48px;
}
.podcast-episode-action {
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--border-color);
border-radius: 14px;
padding: 4px 10px;
font-size: 12px;
cursor: pointer;
}
.podcast-episode-action:hover:not(:disabled) { color: var(--text-primary); border-color: var(--text-subdued); }
.podcast-episode-action:disabled { opacity: 0.45; cursor: default; }
.podcast-episode-description {
margin: 8px 0 0 48px;
font-size: 12px;
line-height: 1.5;
color: var(--text-subdued);
white-space: pre-line;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
cursor: pointer;
}
.podcast-episode-description.expanded { display: block; }
.podcast-load-more { margin: 16px auto; }
.podcast-history { margin-top: 24px; }
.podcast-history-row {
display: flex;
justify-content: space-between;
gap: 12px;
font-size: 12px;
padding: 6px 0;
border-bottom: 1px solid var(--border-color);
}
.podcast-history-title {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.podcast-history-meta { color: var(--text-secondary); flex: 0 0 auto; }
.player-episode-status {
margin-top: 2px;
font-size: 11px;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
@media (max-width: 560px) {
.podcast-episode-actions,
.podcast-episode-description { margin-left: 0; }
.podcast-history-row { flex-direction: column; gap: 2px; }
.podcast-history-meta { flex: none; }
}
</style>