Add Finished Books feature with episode playlists

- New FinishedBook type in content.ts + finishedBooks[] field on SiteContent
- RSS parser now extracts itunes:season into each episode object
- /finished grid page and /finished/:id playlist page (filters episodes by season)
- Episodes nav link replaced with dropdown: Current Series / Finished Books
- Finished Books link added to footer
- Admin: "End Current Series & Start New Book" wizard on Current Series tab
- Admin: Finished Books management tab (add/edit/remove entries)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmert
2026-06-30 10:22:37 -04:00
parent a8f6024234
commit 2eb98b66d0
5 changed files with 576 additions and 470 deletions
+306
View File
@@ -8687,3 +8687,309 @@
color: #8a7f5a;
font-weight: 600;
}
/* ── Nav Dropdown (Episodes) ── */
.nav-dropdown {
position: relative;
}
.nav-dropdown-trigger {
background: none;
border: none;
cursor: pointer;
padding: 0;
display: flex;
align-items: center;
gap: 0.25rem;
}
.nav-dropdown-arrow {
font-size: 0.7em;
opacity: 0.7;
transition: transform 200ms;
}
.nav-dropdown-menu {
display: none;
position: absolute;
top: calc(100% + 0.5rem);
left: 50%;
transform: translateX(-50%);
background: rgba(15, 15, 12, 0.98);
border: 1px solid rgba(201, 168, 76, 0.25);
border-radius: 8px;
padding: 0.4rem 0;
min-width: 160px;
z-index: 200;
box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
display: block;
}
.nav-dropdown-item {
display: block;
padding: 0.55rem 1.1rem;
color: var(--brand-muted);
text-decoration: none;
font-family: var(--brand-font-body);
font-weight: 500;
letter-spacing: 0.06em;
text-transform: uppercase;
font-size: 0.88rem;
transition: color 200ms, background 200ms;
white-space: nowrap;
}
.nav-dropdown-item:hover,
.nav-dropdown-item--active {
color: var(--brand-gold);
background: rgba(201, 168, 76, 0.07);
}
/* ── Finished Books & Series Pages ── */
.finished-books-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
}
.finished-book-card {
background: rgba(26, 26, 21, 0.9);
border: 1px solid rgba(201, 168, 76, 0.18);
border-radius: 12px;
overflow: hidden;
text-decoration: none;
color: inherit;
transition: border-color 200ms, transform 200ms;
display: flex;
flex-direction: column;
}
.finished-book-card:hover {
border-color: rgba(201, 168, 76, 0.5);
transform: translateY(-2px);
}
.finished-book-card-img {
width: 100%;
aspect-ratio: 1;
object-fit: cover;
}
.finished-book-card-body {
padding: 1.1rem 1.2rem 1.4rem;
display: flex;
flex-direction: column;
gap: 0.3rem;
flex: 1;
}
.finished-book-card-season {
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--brand-gold);
opacity: 0.8;
margin: 0;
}
.finished-book-card-title {
font-family: var(--brand-font-heading);
font-size: 1.25rem;
color: #e8d9b5;
margin: 0;
}
.finished-book-card-desc {
font-size: 0.9rem;
color: var(--brand-muted);
line-height: 1.5;
margin: 0.2rem 0 0;
}
.finished-book-card-cta {
display: block;
margin-top: 0.8rem;
font-size: 0.85rem;
color: var(--brand-gold);
letter-spacing: 0.05em;
}
.finished-books-empty {
color: var(--brand-muted);
margin-top: 2rem;
}
.finished-series-hero {
display: flex;
gap: 2rem;
align-items: flex-start;
margin-bottom: 2.5rem;
}
.finished-series-hero-img {
width: 160px;
height: 160px;
object-fit: cover;
border-radius: 10px;
flex-shrink: 0;
}
.finished-series-title {
font-family: var(--brand-font-heading);
font-size: 2rem;
color: #e8d9b5;
margin: 0.25rem 0 0.5rem;
}
.finished-series-desc {
color: var(--brand-muted);
line-height: 1.6;
margin: 0;
}
.finished-series-playlist-heading {
font-family: var(--brand-font-heading);
font-size: 1.3rem;
color: #e8d9b5;
border-bottom: 1px solid rgba(201, 168, 76, 0.2);
padding-bottom: 0.5rem;
margin-bottom: 1.25rem;
}
.finished-series-playlist {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.finished-series-episode {
display: flex;
gap: 1rem;
align-items: flex-start;
padding: 1.1rem 1.2rem;
background: rgba(26, 26, 21, 0.7);
border: 1px solid rgba(201, 168, 76, 0.14);
border-radius: 10px;
}
.finished-series-ep-num {
font-size: 0.85rem;
font-weight: 700;
color: var(--brand-gold);
min-width: 2rem;
text-align: center;
padding-top: 0.15rem;
opacity: 0.8;
}
.finished-series-ep-body {
flex: 1;
min-width: 0;
}
.finished-series-ep-title {
font-weight: 600;
color: #d4c49a;
margin: 0 0 0.2rem;
font-size: 0.97rem;
}
.finished-series-ep-meta {
font-size: 0.8rem;
color: var(--brand-muted);
margin: 0 0 0.6rem;
}
.breadcrumb {
font-size: 0.85rem;
color: var(--brand-muted);
margin-bottom: 1.5rem;
}
.breadcrumb a {
color: var(--brand-gold);
text-decoration: none;
}
.breadcrumb a:hover {
text-decoration: underline;
}
/* ── Admin: End Series panel ── */
.btn-danger-outline {
background: none;
border: 1px solid rgba(200, 80, 60, 0.5);
color: #e87070;
border-radius: 6px;
padding: 0.55rem 1.1rem;
font-size: 0.9rem;
cursor: pointer;
font-family: var(--brand-font-body);
transition: background 200ms, border-color 200ms;
}
.btn-danger-outline:hover {
background: rgba(200, 80, 60, 0.08);
border-color: rgba(200, 80, 60, 0.8);
}
.admin-end-series-panel {
background: rgba(20, 15, 10, 0.6);
border: 1px solid rgba(200, 80, 60, 0.25);
border-radius: 10px;
padding: 1.5rem;
}
@media (max-width: 540px) {
.header-nav--open {
max-height: 660px;
}
.nav-dropdown-trigger {
width: 100%;
display: flex;
justify-content: space-between;
padding: 0.8rem 0.25rem;
border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}
.nav-dropdown-menu {
display: none;
position: static;
transform: none;
background: transparent;
border: none;
border-radius: 0;
padding: 0;
box-shadow: none;
min-width: 0;
}
.nav-dropdown--open .nav-dropdown-menu {
display: block;
}
.nav-dropdown-item {
padding: 0.65rem 0.25rem 0.65rem 1.5rem;
font-size: 0.88rem;
border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}
.finished-series-hero {
flex-direction: column;
gap: 1rem;
}
.finished-series-hero-img {
width: 120px;
height: 120px;
}
}