/* ============================
       EPISODE PAGE STYLES
============================ */

/* Episode Hero */
.episode-hero {
    background-color: #070707;
    padding: 80px 0 60px;
    border-bottom: 1px solid #222;
}

.episode-hero__wrapper {
    max-width: 800px;
}

.episode-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.episode-type {
    display: inline-block;
    background: #FF1493;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 20px;
}

.episode-number {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.episode-title {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
}

.episode-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 24px;
    max-width: 650px;
}

.episode-details {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #888;
    font-size: 14px;
}

.episode-duration {
    display: flex;
    align-items: center;
    gap: 6px;
}

.episode-duration svg {
    opacity: 0.7;
}

/* Episode Player */
.episode-player {
    background-color: #0a0a0a;
    padding: 40px 0;
    border-bottom: 1px solid #222;
}

.player-wrapper {
    max-width: 800px;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.player-wrapper iframe {
    display: block;
}

.platform-links-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.listen-on {
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #333;
    color: #ccc;
    background: transparent;
}

.platform-pill svg {
    width: 16px;
    height: 16px;
}

.platform-pill:hover {
    border-color: #FF1493;
    color: #FF1493;
}

.platform-pill.spotify:hover {
    border-color: #1DB954;
    color: #1DB954;
}

.platform-pill.apple:hover {
    border-color: #fff;
    color: #fff;
}

.platform-pill.youtube:hover {
    border-color: #FF0000;
    color: #FF0000;
}

/* Episode Content */
.episode-content {
    background-color: #070707;
    padding: 60px 0 80px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
}

.episode-body {
    max-width: 700px;
}

.episode-body h2 {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    margin: 48px 0 20px;
}

.episode-body h2:first-child {
    margin-top: 0;
}

.episode-body p {
    font-size: 17px;
    line-height: 1.75;
    color: #bbb;
    margin-bottom: 20px;
}

.episode-body blockquote {
    margin: 40px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1) 0%, rgba(255, 20, 147, 0.05) 100%);
    border-left: 4px solid #FF1493;
    border-radius: 0 12px 12px 0;
}

.episode-body blockquote p {
    font-size: 18px;
    font-style: italic;
    color: #ddd;
    margin-bottom: 12px;
    line-height: 1.6;
}

.episode-body blockquote cite {
    display: block;
    font-size: 14px;
    font-style: normal;
    color: #FF1493;
    font-weight: 500;
}

/* Sidebar */
.episode-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: #111;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #222;
}

.sidebar-section h3 {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #FF1493;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #222;
}

.featured-voices,
.archival-list,
.credits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-voices li,
.archival-list li,
.credits-list li {
    font-size: 14px;
    line-height: 1.5;
    color: #999;
    padding: 8px 0;
    border-bottom: 1px solid #1a1a1a;
}

.featured-voices li:last-child,
.archival-list li:last-child,
.credits-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.featured-voices li strong,
.credits-list li strong {
    color: #ddd;
    font-weight: 500;
}

.featured-voices li a,
.archival-list li a,
.credits-list li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-voices li a:hover,
.archival-list li a:hover,
.credits-list li a:hover {
    color: #FF1493;
}

.featured-voices li a strong {
    color: #ddd;
    transition: color 0.2s ease;
}

.featured-voices li a:hover strong {
    color: #FF1493;
}

/* Episode Body Links */
.episode-body a {
    color: #FF1493;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 20, 147, 0.3);
    transition: border-color 0.2s ease;
}

.episode-body a:hover {
    border-bottom-color: #FF1493;
}

.episode-body blockquote a {
    color: #FF1493;
    border-bottom: none;
}

/* Episode Intro */
.episode-intro {
    font-size: 20px;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 28px;
}

/* Body Images */
.body-image {
    margin: 32px 0;
    border-radius: 8px;
    overflow: hidden;
}

.body-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.body-image figcaption {
    font-size: 13px;
    color: #777;
    margin-top: 10px;
    line-height: 1.5;
}

.body-image figcaption a {
    color: #FF1493;
    border-bottom: none;
}

/* Segment Table */
.segment-table {
    margin: 32px 0;
    overflow-x: auto;
}

.segment-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.segment-table th,
.segment-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.segment-table th {
    color: #FF1493;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.segment-table td {
    color: #bbb;
}

.segment-table td:first-child {
    color: #888;
    font-family: monospace;
    white-space: nowrap;
    width: 60px;
}

.segment-table tr:hover {
    background: rgba(255, 20, 147, 0.05);
}

/* Episode Body Lists */
.episode-body ul {
    margin: 20px 0;
    padding-left: 24px;
}

.episode-body ul li {
    font-size: 16px;
    line-height: 1.6;
    color: #bbb;
    margin-bottom: 8px;
}

.episode-body ul li a {
    color: #FF1493;
}

/* Image Gallery */
.episode-gallery {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #222;
}

.episode-gallery h2 {
    margin-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 12px;
}

.gallery-placeholder {
    aspect-ratio: 4/3;
    background: #151515;
    border: 2px dashed #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
}

.gallery-caption {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.gallery-captions {
    margin-top: 16px;
}

.gallery-captions .gallery-caption {
    margin-bottom: 8px;
    text-align: left;
}

.gallery-captions .gallery-caption a {
    color: #FF1493;
}

/* Next Episode Teaser */
.next-episode {
    background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
    padding: 60px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.next-episode__wrapper {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.next-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #FF1493;
    margin-bottom: 16px;
}

.next-episode h3 {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    margin-bottom: 16px;
}

.next-episode p {
    font-size: 16px;
    line-height: 1.6;
    color: #888;
    margin-bottom: 28px;
}

.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid #FF1493;
    color: #FF1493;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-next:hover {
    background: #FF1493;
    color: #fff;
}

/* Back Navigation */
.back-nav {
    background-color: #070707;
    padding: 40px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #FF1493;
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* ============================
       EPISODE PAGE RESPONSIVE
============================ */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .episode-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .sidebar-section {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .episode-hero {
        padding: 60px 0 40px;
    }

    .episode-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .episode-title {
        font-size: 28px;
    }

    .episode-subtitle {
        font-size: 16px;
    }

    .episode-player {
        padding: 30px 0;
    }

    .platform-links-inline {
        gap: 8px;
    }

    .platform-pill {
        padding: 6px 12px;
        font-size: 12px;
    }

    .listen-on {
        width: 100%;
        margin-bottom: 4px;
    }

    .episode-content {
        padding: 40px 0 60px;
    }

    .episode-body h2 {
        font-size: 22px;
        margin: 36px 0 16px;
    }

    .episode-body p {
        font-size: 16px;
    }

    .episode-body blockquote {
        padding: 20px;
        margin: 30px 0;
    }

    .episode-body blockquote p {
        font-size: 16px;
    }

    .episode-sidebar {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .episode-intro {
        font-size: 18px;
    }

    .next-episode {
        padding: 40px 0;
    }

    .next-episode h3 {
        font-size: 22px;
    }
}
