/* =============================================================
   performer-styles.css
   Styles for new_troubadours_performers.html
   Depends on shared-styles.css being loaded first.
   ============================================================= */

:root {
    /* Primary Green Theme Variables */
    --theme-green: #4CAF50;
    --theme-green-border: #a5d6a7;
    --theme-green-bg-alt: rgb(8, 10, 8);
    --theme-green-border-alt: #c8e6c9;
    --theme-green-bg-hover: #dcedc8;
    --theme-green-bg-light: #f9fdf9;
}

/* =============================================================
   1. PERFORMER HERO
   ============================================================= */

.performer-hero {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.performer-hero-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.performer-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--theme-green-bg);
    border: 2px solid var(--theme-green-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--theme-green-dark);
    flex-shrink: 0;
}

.performer-hero-text h1 {
    text-align: left;
    margin: 0 0 6px 0;
    font-size: 26px;
    color: #333;
}

.performer-hero-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.performer-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 20px;
}

.performer-badge-poet {
    background: #fde8f2;
    color: #8a0040;
    border: 1px solid #f5a8ce;
}

.performer-badge-musician {
    background: #e8eaf6;
    color: #1a237e;
    border: 1px solid #9fa8da;
}

.performer-badge-series {
    background: var(--theme-green-bg);
    color: var(--theme-green-dark);
    border: 1px solid var(--theme-green-border);
    text-decoration: none;
    cursor: pointer;
}

.performer-website a {
    color: #185FA5;
    font-size: 14px;
    text-decoration: none;
}

.performer-website a:hover {
    text-decoration: underline;
}

.performer-bio {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.performer-bio p {
    margin: 0 0 10px 0;
}

.performer-bio p:last-child {
    margin-bottom: 0;
}


/* =============================================================
   2. STATS ROW
   ============================================================= */

.stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 16px 20px;
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.stat-n {
    font-size: 28px;
    font-weight: bold;
    color: var(--theme-green-dark);
}

.stat-l {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* =============================================================
   3. CONTENT SECTIONS
   ============================================================= */

.content-section {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.section-heading {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-style: normal;
}


/* =============================================================
   4. TOUR CARDS
   ============================================================= */

.tour-card {
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--theme-green);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

.tour-card:last-child {
    margin-bottom: 0;
}

.tour-card-music {
    border-left-color: #1006c6;
    background: #f5f6ff;
}

.tour-card-poetry {
    border-left-color: #8a0040;
    background: #fff5fa;
}

.tour-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tour-card-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    flex: 1;
}

.tour-card-music .tour-card-name {
    color: #1006c6;
}

.tour-card-poetry .tour-card-name {
    color: #8a0040;
}

.tour-remaining-badge {
    background: var(--theme-green-bg);
    color: var(--theme-green-dark);
    border: 1px solid var(--theme-green-border);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.tour-card-music .tour-remaining-badge {
    background: #e8eaf6;
    color: #1a237e;
    border-color: #9fa8da;
}

.tour-card-poetry .tour-remaining-badge {
    background: #fde8f2;
    color: #8a0040;
    border-color: #f5a8ce;
}

.tour-completed-badge {
    background: #f5f5f5;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    white-space: nowrap;
}

.tour-card-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
}

.tour-card-desc p {
    margin: 0 0 8px;
}

.tour-card-desc p:last-child {
    margin-bottom: 0;
}

.tour-card-desc-full {
    margin-top: 8px;
}

.tour-card-desc-toggle {
    display: inline-block;
    margin-top: 2px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 12px;
    font-weight: bold;
    color: var(--theme-green-dark);
    cursor: pointer;
}

.tour-card-desc-toggle:hover {
    text-decoration: underline;
}

.tour-card-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    font-style: italic;
}

.tour-card-footer {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 4px;
}

.tour-view-link {
    color: var(--theme-green-dark);
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.tour-history-details {
    border-top: 1px solid #e0e0e0;
    margin-top: 8px;
}

.tour-history-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 12px;
    font-weight: bold;
    color: #888;
}

.tour-history-summary::-webkit-details-marker {
    display: none;
}

.tour-history-summary::before {
    content: "▶";
    font-size: 9px;
    margin-right: 7px;
    transition: transform 0.2s;
    display: inline-block;
}

details.tour-history-details[open] > .tour-history-summary::before {
    transform: rotate(90deg);
}

.tour-history-hint {
    font-size: 11px;
    color: #aaa;
    font-weight: normal;
}

.tour-history-list {
    margin-top: 6px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
}

.tour-view-link:hover {
    text-decoration: underline;
}

.tour-card-music .tour-view-link {
    color: #1006c6;
}

.tour-card-poetry .tour-view-link {
    color: #8a0040;
}


/* =============================================================
   5. EVENT ROWS (other appearances, festival rows)
   ============================================================= */

.event-row-date.muted {
    color: #aaa;
}

.event-row-venue {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.event-row-venue a {
    color: var(--theme-green-dark);
    text-decoration: none;
}

.event-row-venue a:hover {
    text-decoration: underline;
}


/* =============================================================
   6. RESPONSIVE
   ============================================================= */

@media (max-width: 600px) {
    .performer-hero-main {
        flex-direction: column;
        gap: 12px;
    }

    .stats-row {
        gap: 8px;
    }

    .stat-card {
        min-width: 80px;
        padding: 12px;
    }

    .stat-n {
        font-size: 22px;
    }

}


/* =============================================================
   7. REPERTOIRE CARD
   ============================================================= */

.repertoire-card {
    border-left-color: #795548;
}

.repertoire-desc {
    line-height: 1.65;
}

.repertoire-desc p {
    margin: 0 0 8px 0;
}

.repertoire-desc p:last-child {
    margin-bottom: 0;
}


/* =============================================================
   8. COMPOUND PERFORMER (member links, chips)
   ============================================================= */

#performerName a.performer-member-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}

#performerName a.performer-member-link:hover {
    color: var(--theme-green-dark);
    border-bottom-color: var(--theme-green-dark);
}

.performer-member-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.performer-member-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 6px;
    background: var(--theme-green-bg-alt);
    border: 1px solid var(--theme-green-border-alt);
    border-radius: 999px;
    text-decoration: none;
    color: var(--theme-green-dark);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.performer-member-chip:hover {
    background: var(--theme-green-bg-hover);
    border-color: var(--theme-green-border);
}

.chip-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--theme-green-border);
    color: #1b5e20;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* =============================================================
   9. FLYER THUMBNAILS & LIGHTBOX
   ============================================================= */

.perf-flyer-thumb {
    float: right;
    margin: 0 0 8px 12px;
    width: 68px;
    height: 86px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--theme-green-bg);
    border: 1px solid var(--theme-green-border-alt);
    cursor: zoom-in;
    flex-shrink: 0;
    position: relative;
}

.perf-flyer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.25s;
}

.perf-flyer-thumb img.pf-loaded {
    opacity: 1;
}

.perf-flyer-thumb .img-error,
.perf-gallery-img-wrap .img-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa;
    font-size: 10px;
    text-align: center;
    padding: 4px;
    line-height: 1.3;
}

.tour-card-music .perf-flyer-thumb {
    background: #e8eaf6;
    border-color: #9fa8da;
}

.tour-card-poetry .perf-flyer-thumb {
    background: #fde8f2;
    border-color: #f5a8ce;
}

.repertoire-card .perf-flyer-thumb {
    background: #efebe9;
    border-color: #bcaaa4;
}

.event-row-flyer-btn {
    display: inline-block;
    margin-top: 5px;
    font-size: 11px;
    color: var(--theme-green-dark);
    border: 1px solid var(--theme-green-border);
    border-radius: 10px;
    padding: 1px 8px;
    cursor: pointer;
    background: #f1f8f1;
    user-select: none;
}

.event-row-flyer-btn:hover {
    background: var(--theme-green-bg);
}

.event-row-flyer-expandable {
    display: none;
    margin-top: 6px;
}

.event-row-flyer-expandable img {
    max-width: 180px;
    border-radius: 4px;
    display: block;
    cursor: zoom-in;
    border: 1px solid #e0e0e0;
}

#perfFlyerLightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#perfFlyerLightbox.pf-open {
    display: flex;
}

#perfFlyerLightbox .pf-inner {
    position: relative;
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#perfFlyerLightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    display: block;
}

#perfFlyerLightbox .pf-caption {
    color: white;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
}

#perfFlyerLightbox .pf-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 0;
}

#perfFlyerLightbox .pf-close:hover {
    background: #eee;
}

.pf-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    font-size: 30px;
    width: 52px;
    height: 72px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10000;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.pf-nav:disabled {
    opacity: 0.15;
    cursor: default;
}

#pfPrev {
    left: 10px;
}

#pfNext {
    right: 10px;
}

/* =============================================================
   10. FLYER GALLERY SECTION
   ============================================================= */

.perf-flyer-gallery {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.perf-flyer-gallery-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 14px;
    font-weight: bold;
    color: var(--theme-green-dark);
    letter-spacing: 0.03em;
}

.perf-flyer-gallery-summary::-webkit-details-marker {
    display: none;
}

.perf-flyer-gallery-summary::before {
    content: "▶";
    font-size: 10px;
    margin-right: 8px;
    transition: transform 0.2s;
    display: inline-block;
}

details.perf-flyer-gallery[open]>.perf-flyer-gallery-summary::before {
    transform: rotate(90deg);
}

.perf-flyer-gallery-summary:hover {
    background: var(--theme-green-bg-light);
}

.perf-flyer-gallery-hint {
    font-size: 11px;
    color: #aaa;
    font-weight: normal;
    letter-spacing: 0;
}

.perf-flyer-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.perf-flyer-strip::-webkit-scrollbar {
    height: 5px;
}

.perf-flyer-strip::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.perf-flyer-strip::-webkit-scrollbar-thumb {
    background: var(--theme-green-border-alt);
    border-radius: 3px;
}

.perf-gallery-card {
    flex: 0 0 120px;
    scroll-snap-align: start;
    cursor: zoom-in;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    transition: transform 0.15s, box-shadow 0.15s;
}

.perf-gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
}

.perf-gallery-card.gc-music {
    border-color: #9fa8da;
    background: #f5f6ff;
}

.perf-gallery-card.gc-poetry {
    border-color: #f5a8ce;
    background: #fff5fa;
}

.perf-gallery-card.gc-past {
    opacity: 0.7;
}

.perf-gallery-img-wrap {
    width: 120px;
    height: 152px;
    overflow: hidden;
    background: #eee;
    position: relative;
}

.perf-gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.25s;
}

.perf-gallery-img-wrap img.pf-loaded {
    opacity: 1;
}

.perf-gallery-type-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 8px;
    color: white;
    background: rgba(46, 125, 50, 0.85);
}

.gc-music .perf-gallery-type-badge {
    background: rgba(68, 60, 215, 0.85);
}

.gc-poetry .perf-gallery-type-badge {
    background: rgba(214, 0, 110, 0.85);
}

.perf-gallery-caption {
    padding: 7px 8px 9px;
}

.perf-gallery-caption-title {
    font-size: 11px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-music .perf-gallery-caption-title {
    color: #1006c6;
}

.gc-poetry .perf-gallery-caption-title {
    color: #8a0040;
}

.perf-gallery-caption-date {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .perf-gallery-card {
        flex: 0 0 105px;
    }

    .perf-gallery-img-wrap {
        width: 105px;
        height: 133px;
    }
}

/* =============================================================
   11. PODCAST SECTION
   ============================================================= */

.perf-podcast-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.perf-podcast-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 14px;
    font-weight: bold;
    color: var(--theme-green-dark);
    letter-spacing: 0.03em;
}

.perf-podcast-summary::-webkit-details-marker {
    display: none;
}

.perf-podcast-summary::before {
    content: "▶";
    font-size: 10px;
    margin-right: 8px;
    transition: transform 0.2s;
    display: inline-block;
}

details.perf-podcast-section[open]>.perf-podcast-summary::before {
    transform: rotate(90deg);
}

.perf-podcast-summary:hover {
    background: var(--theme-green-bg-light);
}

.perf-podcast-hint {
    font-size: 11px;
    color: #aaa;
    font-weight: normal;
    letter-spacing: 0;
}

.perf-podcast-list {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.perf-podcast-feed {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
}

.perf-podcast-feed-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.perf-podcast-feed-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.perf-podcast-feed-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--theme-green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.perf-podcast-feed-header-body {
    min-width: 0;
    flex: 1;
}

.perf-podcast-feed-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--theme-green-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.perf-podcast-feed-title a {
    color: inherit;
    text-decoration: none;
}

.perf-podcast-feed-title a:hover {
    text-decoration: underline;
}

.perf-podcast-feed-sub {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.perf-podcast-feed-sub.is-error {
    color: #a3005f;
    white-space: normal;
}

.perf-podcast-feed-open {
    font-size: 11px;
    font-weight: bold;
    color: var(--theme-green-dark);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.perf-podcast-feed-open:hover {
    text-decoration: underline;
}

.perf-podcast-episodes-details {
    border-top: 1px solid #eee;
}

.perf-podcast-episodes-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 12px;
    font-weight: bold;
    color: var(--theme-green-dark);
}

.perf-podcast-episodes-summary::-webkit-details-marker {
    display: none;
}

.perf-podcast-episodes-summary::before {
    content: "▶";
    font-size: 9px;
    margin-right: 7px;
    transition: transform 0.2s;
    display: inline-block;
}

details.perf-podcast-episodes-details[open]>.perf-podcast-episodes-summary::before {
    transform: rotate(90deg);
}

.perf-podcast-episodes-summary:hover {
    background: var(--theme-green-bg-light);
}

.perf-podcast-episodes-hint {
    font-size: 11px;
    color: #aaa;
    font-weight: normal;
}

.perf-podcast-episodes-body {
    padding: 0 0 4px;
}

/* Collaborators section — see collectCollaborators()/
   renderCollaboratorsSection() in performers.js. */
.perf-collaborator-row {
    padding: 9px 12px;
    border-top: 1px solid #eee;
}

.perf-collaborator-row:first-child {
    border-top: none;
}

.perf-collaborator-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.perf-collaborator-name {
    font-size: 13px;
    font-weight: bold;
    color: var(--theme-green-dark);
    text-decoration: none;
}

.perf-collaborator-name:hover {
    text-decoration: underline;
}

.perf-collaborator-meta {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}


   it's from (e.g. "World Storytelling Cafe") and, separately, its format
   (e.g. "interview", "telling") — see collectPerformerVideoAppearances()
   in performers.js. */
.perf-video-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
}

.perf-video-source-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 8px;
    border-radius: 20px;
    white-space: nowrap;
    background: var(--theme-green-bg);
    color: var(--theme-green-dark);
    border: 1px solid var(--theme-green-border);
}

.perf-video-format-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: normal;
    padding: 1px 8px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: capitalize;
    background: #f5f5f5;
    color: #777;
    border: 1px solid #ddd;
}

.perf-video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin: 0 12px 10px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.perf-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.perf-podcast-feed-status {
    padding: 12px;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.perf-podcast-feed-status.is-error {
    color: #a3005f;
    font-style: normal;
}

.perf-podcast-episode-list {
    display: flex;
    flex-direction: column;
}

.perf-podcast-episode {
    padding: 9px 12px;
    border-top: 1px solid #eee;
}

.perf-podcast-episode:first-child {
    border-top: none;
}

.perf-podcast-episode-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.perf-podcast-episode-body {
    min-width: 0;
    flex: 1;
}

.perf-podcast-episode-title {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.perf-podcast-episode-meta {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.perf-podcast-episode-preview-btn {
    flex-shrink: 0;
    font: inherit;
    font-size: 11px;
    font-weight: bold;
    color: var(--theme-green-dark);
    background: var(--theme-green-bg);
    border: 1px solid var(--theme-green-border);
    border-radius: 20px;
    padding: 4px 10px;
    cursor: pointer;
}

.perf-podcast-episode-preview-btn:hover {
    background: var(--theme-green-bg-hover);
}

.perf-podcast-episode-audio {
    margin-top: 8px;
}

.perf-podcast-episode-audio audio {
    width: 100%;
    display: block;
    height: 32px;
}

.perf-podcast-more {
    align-self: flex-start;
    font: inherit;
    font-size: 12px;
    font-weight: bold;
    color: var(--theme-green-dark);
    background: none;
    border: 1px dashed var(--theme-green-border);
    border-radius: 20px;
    padding: 5px 14px;
    margin: 10px 12px 12px;
    cursor: pointer;
}

.perf-podcast-more:hover {
    background: var(--theme-green-bg-alt);
}

.perf-podcast-fallback-link {
    display: block;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--theme-green-dark);
    text-decoration: none;
}

.perf-podcast-fallback-link:hover {
    text-decoration: underline;
}

/* =============================================================
   12. ALL-PERFORMERS LANDING COLLAPSIBLE
   ============================================================= */

.all-performers-details {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.all-performers-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.all-performers-summary::-webkit-details-marker {
    display: none;
}

.all-performers-summary::before {
    content: "▶";
    font-size: 10px;
    margin-right: 10px;
    transition: transform 0.2s;
    display: inline-block;
    color: var(--theme-green-dark);
}

.all-performers-details[open]>.all-performers-summary::before {
    transform: rotate(90deg);
}

.all-performers-label {
    font-size: 15px;
    font-weight: bold;
    color: var(--theme-green-dark);
}

.all-performers-hint {
    font-size: 11px;
    color: #aaa;
}

.all-performers-details[open] .all-performers-hint {
    opacity: 0;
}

.all-performers-summary:hover {
    background: var(--theme-green-bg-light);
    border-radius: 8px;
}

.all-performers-body {
    padding: 4px 16px 16px;
    border-top: 1px solid #eee;
}

/* =============================================================
   13. TROUPE LINEUP CONFIG SUB-SECTIONS
   ============================================================= */

.troupe-config-details {
    border: 1px solid #e0e0e0;
    border-left: 4px solid #8d6e63;
    border-radius: 4px;
    background: #fafaf8;
    margin-bottom: 10px;
    overflow: hidden;
}

.troupe-config-details:last-child {
    margin-bottom: 0;
}

.troupe-config-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.troupe-config-summary::-webkit-details-marker {
    display: none;
}

.troupe-config-summary::before {
    content: "▶";
    font-size: 10px;
    color: #8d6e63;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.troupe-config-details[open]>.troupe-config-summary::before {
    transform: rotate(90deg);
}

.troupe-config-summary:hover {
    background: #f5f0ed;
}

.troupe-config-label {
    font-size: 14px;
    font-weight: bold;
    color: #4e342e;
    flex: 1;
}

.troupe-config-badge {
    font-size: 11px;
    background: #efebe9;
    color: #6d4c41;
    border: 1px solid #d7ccc8;
    border-radius: 20px;
    padding: 2px 9px;
    white-space: nowrap;
}

.troupe-config-body {
    padding: 10px 14px 14px;
    border-top: 1px solid #eee;
}

.troupe-config-chips {
    margin-bottom: 12px;
}


/* =============================================================
   14. PERFORMER TYPE FILTERS & LIST TAGS
   ============================================================= */

.perf-type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.simple-list-row-tags {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.simple-list-row-type-tag {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 7px;
    border-radius: 20px;
    display: inline-block;
    white-space: nowrap;
}

.simple-list-row-type-tag.type-music {
    background: #e8eaf6;
    color: #1a237e;
}

.simple-list-row-type-tag.type-poetry {
    background: #fde8f2;
    color: #8a0040;
}

.simple-list-row-type-tag.type-troupe {
    background: #efe6e2;
    color: #4e342e;
}

/* Media icon + featured-series badge — see hasAnyMedia()/featuredSeriesFor()
   in performers.js. */
.simple-list-row-media-icon {
    font-size: 11px;
    display: inline-block;
}

.simple-list-row-series-tag {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.02em;
    padding: 1px 7px;
    border-radius: 20px;
    display: inline-block;
    white-space: nowrap;
    background: var(--theme-green-bg);
    color: var(--theme-green-dark);
    border: 1px solid var(--theme-green-border);
    text-decoration: none;
    cursor: pointer;
}

/* =============================================================
   15. PERFORMER SEARCH (LANDING PAGE)
   ============================================================= */

.perf-search-wrap {
    margin-bottom: 14px;
}

.perf-search-wrap .dir-search-input {
    border-color: var(--theme-green-border);
}

.perf-search-wrap .dir-search-input:focus {
    outline: none;
    border-color: var(--theme-green);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
}