/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1e40af;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #1e40af;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1e40af;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #1e40af;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

/* WxWaves CTA Section */
.wxwaves-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
    padding: 40px 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 80px; /* Push below fixed header */
}

.wxwaves-cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e40af;
    margin-top: 16px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.wxwaves-cta p {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px auto;
    max-width: 800px;
    position: relative;
}

.subscription-form input {
    width: 180px;
    padding: 10px;
    font-size: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.subscription-form input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.subscription-form input::placeholder {
    color: #9ca3af;
}

.subscription-form button {
    padding: 10px 20px;
    font-size: 14px;
    background-color: #1e40af;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
}

.subscription-form button:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.subscription-form button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.subscription-form button:active {
    transform: translateY(0);
}

.wxwaves-cta .social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px; /* Reduced from 24px for better balance */
}

.wxwaves-cta .social-icons a {
    color: #6b7280;
    transition: all 0.3s ease;
    padding: 0; /* Remove padding */
    border-radius: 0; /* Remove border radius */
    background: transparent !important; /* Remove background */
    box-shadow: none; /* Remove shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px; /* 40% smaller than original 32px */
    height: 20px;
}

.wxwaves-cta .social-icons a:hover {
    color: #1e40af;
    transform: translateY(-2px);
}

/* Enhanced Form Feedback Styles */
#form-feedback {
    transition: all 0.3s ease;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-success {
    color: #059669 !important;
    background: rgba(5, 150, 105, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(5, 150, 105, 0.2);
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
}

.feedback-error {
    color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner Styles */
#form-spinner {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

#form-spinner svg {
    animation: spin 1s linear infinite;
    color: #1e40af;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness for Subscription Form */
@media (max-width: 767px) {
    /* Mobile-specific form styling - CENTER JUSTIFIED */
    .subscription-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        max-width: 100%;
        margin: 16px auto;
    }

    .subscription-form input {
        width: 90%;
        max-width: 300px;
        margin-bottom: 0;
        text-align: center; /* Center the text inside inputs */
    }

    .subscription-form button {
        width: auto;
        margin-top: 10px;
        align-self: center; /* Center the button */
    }
    
    #form-spinner {
        margin-left: 0;
        margin-top: 8px;
        justify-content: center;
    }
}

/* Featured Episodes */
.featured-episodes {
    padding: 80px 0;
    background: #f8fafc;
}

.featured-header {
    text-align: center;
    margin-bottom: 48px;
}

.featured-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
}

.featured-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.featured-image {
    position: relative;
    width: 100%;
    height: 200px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-number {
    display: none; /* Hide the overlay episode number */
}

.episode-number-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-image:hover .play-overlay,
.episode-image:hover .play-overlay {
    opacity: 1;
}

.play-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1e40af;
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.episode-content {
    flex-grow: 1;
    padding: 20px;
}

.episode-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
    line-height: 1.4;
}

.episode-content p {
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.episode-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 14px;
    padding: 0 20px 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 16px;
}

.episode-date {
    color: #6b7280;
    font-weight: 500;
    text-align: left;
}

.episode-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.episode-duration {
    color: #6b7280;
    font-weight: 500;
}

.download-button {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.download-button:hover {
    color: #1e40af;
    background: #f1f5f9;
}

/* Small Download Icon Button - For Home and Episodes Pages */
.download-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    text-decoration: none;
}

.download-icon-btn:hover {
    background: #f1f5f9;
    color: #1e40af;
    border-color: #1e40af;
}

/* Large Download Icon Button - For Details Page Only */
.download-icon-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    text-decoration: none;
}

.download-icon-btn-large:hover {
    background: #f1f5f9;
    color: #1e40af;
    border-color: #1e40af;
}

.view-all-section {
    text-align: center;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e40af;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

/* Episode Title Links */
.episode-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.episode-title-link:hover {
    color: #1e40af;
}

/* Episodes Page */
.episodes-header {
    padding: 100px 0 40px;
    background: #f8fafc;
    text-align: center;
}

.episodes-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1f2937;
}

.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1e40af;
}

.search-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
}

.episodes-content {
    padding: 40px 0 80px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.episode-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
}

.episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.episode-card .episode-image {
    position: relative;
    width: 100%;
    height: 200px;
}

.episode-card .episode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-card .play-button {
    width: 50px;
    height: 50px;
}

.episode-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.episode-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
    line-height: 1.4;
}

.episode-info p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 0.9rem;
    flex-grow: 1;
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
    gap: 12px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.episode-meta .date {
    color: #6b7280;
    font-weight: 500;
    text-align: left;
    flex: 1;
}

.episode-meta .duration {
    color: #6b7280;
    font-weight: 500;
}

.episode-meta .episode-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

/* Episodes Page Specific Footer Styling */
.episodes-page .episode-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    font-size: 14px;
    color: #666;
}

.episodes-page .episode-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #1e40af;
    color: #1e40af;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #6b7280;
    font-weight: 500;
}

/* Episode Details Page Styles - OPTIMIZED FOR IMAGE ALIGNMENT */
.episode-detail-header {
    padding: 100px 0 40px; /* Reduced bottom padding from 60px to 40px */
    background: #f8fafc;
}

.episode-header-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

.episode-thumbnail-large {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.episode-thumbnail-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay-large {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-thumbnail-large:hover .play-overlay-large {
    opacity: 1;
}

.play-button-large {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1e40af;
    backdrop-filter: blur(10px);
}

.play-button-large:hover {
    background: white;
    transform: scale(1.1);
}

/* OPTIMIZED INFO SECTION - ALIGNED WITH IMAGE HEIGHT */
.episode-info-large {
    padding-top: 0; /* Removed top padding */
    height: 300px; /* Match image height exactly */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content evenly */
}

.episode-number-large {
    display: inline-block;
    background: transparent;
    color: #1f2937;
    padding: 0;
    border-radius: 0;
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 600;
    margin-bottom: 8px; /* Reduced from 16px */
}

.episode-title-large {
    font-size: 2.2rem; /* Reduced from 2.5rem */
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px; /* Reduced from 24px */
    line-height: 1.1; /* Tighter line height */
}

.episode-description-large {
    font-size: 1.1rem; /* Reduced from 1.25rem */
    color: #4b5563;
    line-height: 1.4; /* Reduced from 1.6 */
    margin-bottom: 16px; /* Reduced from 32px */
    flex-grow: 1; /* Allow description to take available space */
}

.episode-meta-large {
    display: flex;
    align-items: center;
    gap: 24px; /* Reduced from 32px */
    flex-wrap: wrap;
    margin-bottom: 16px; /* Reduced from 24px */
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem; /* Slightly smaller */
}

.meta-item svg {
    color: #9ca3af;
}

/* NEW MEDIA ACTIONS LAYOUT */
.media-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto; /* Push to bottom */
}

.button-group {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.play-btn-large {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e40af;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn-large:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.play-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    text-decoration: none;
}

.play-icon-btn:hover {
    background: #f1f5f9;
    color: #1e40af;
    border-color: #1e40af;
}

/* SOCIAL MEDIA ICONS - ALIGNED WITH DOWNLOAD BUTTON */
.social-icon-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    text-decoration: none;
}

.social-icon-inline:hover {
    background: #f1f5f9;
    color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-1px);
}

/* Episode Summary Section - REDUCED SPACING BY 25% */
.episode-summary {
    padding: 45px 0; /* Reduced from 60px (25% reduction) */
    background: white;
}

.episode-summary h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px; /* Reduced from 32px (25% reduction) */
}

.summary-content {
    max-width: 800px;
}

/* SPECIFIC CSS FOR SUMMARY PARAGRAPH - REDUCED BY 50% */
.summary-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 0.75rem; /* REDUCED BY 50% - was 1.5rem, now 0.75rem */
}

/* Sources Section (renamed from Resources) */
.episode-sources {
    padding: 45px 0; /* Reduced from 60px (25% reduction) */
    background: #f8fafc;
}

.episode-sources h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px; /* Reduced from 32px (25% reduction) */
}

.sources-content {
    max-width: 800px;
}

/* Enhanced Sources Styling - NEW FORMAT */
.sources-list-enhanced {
    display: flex;
    flex-direction: column;
    gap: 24px; /* Increased spacing between source items */
}

.source-item-enhanced {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
}

.source-title-enhanced {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.5;
    margin-bottom: 4px;
}

.source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-left: 16px; /* Indent the links slightly */
}

.source-link-original,
.source-link-download {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.source-link-original {
    color: #1e40af;
    background: rgba(30, 64, 175, 0.05);
}

.source-link-original:hover {
    background: rgba(30, 64, 175, 0.1);
    transform: translateY(-1px);
}

.source-link-download {
    color: #059669;
    background: rgba(5, 150, 105, 0.05);
}

.source-link-download:hover {
    background: rgba(5, 150, 105, 0.1);
    transform: translateY(-1px);
}

/* Plain Text Sources Styling - UPDATED FOR DOWNLOAD ICON ONLY */
.sources-list-plain {
    display: flex;
    flex-direction: column;
    gap: 10.8px; /* Reduced from 18px (40% reduction) */
}

.source-item-plain {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 1rem;
    line-height: 1.5;
}

.source-title-plain {
    font-weight: 500;
    color: #1f2937;
    flex: 1;
}

.source-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.source-icon-link:hover {
    background: #f1f5f9;
    transform: scale(1.1);
}

/* Episode Timeline Section - REDUCED SPACING BY 25% */
.episode-timeline {
    padding: 45px 0; /* Reduced from 60px (25% reduction) */
    background: white;
    margin-top: 0.75rem; /* REDUCED BY 50% - was 1.5rem, now 0.75rem */
}

.episode-timeline h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px; /* Reduced from 32px (25% reduction) */
}

.timeline-content {
    max-width: 800px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 8.64px; /* Reduced from 14.4px (40% reduction) */
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6.48px 0; /* Reduced from 10.8px (40% reduction) */
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item:hover {
    background: rgba(30, 64, 175, 0.05);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
    cursor: pointer;
}

/* Timeline Block Specific Styles */
.timeline-block {
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-block:hover {
    background: rgba(30, 64, 175, 0.05) !important;
    transform: translateX(4px);
}

.timeline-block.active-timeline-item {
    background: rgba(30, 64, 175, 0.1) !important;
    border-left: 4px solid #1e40af;
    padding-left: 12px !important;
}

.timeline-timestamp {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e40af;
    background: #eff6ff;
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 100px;
    text-align: center;
    flex-shrink: 0;
}

.timeline-label {
    font-weight: 500;
    color: #1f2937;
    flex: 1;
    line-height: 1.4;
}

.episode-navigation {
    padding: 40px 0;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.episode-nav-controls {
    display: flex;
    gap: 16px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nav-btn.secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.nav-btn.secondary:hover:not(:disabled) {
    border-color: #1e40af;
    color: #1e40af;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* About Page */
.about-hero {
    position: relative;
    height: 256px; /* Reduced from 320px (20% reduction from bottom) */
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /* Move text down by 15% of the blue section's height */
    padding-top: 38.4px; /* 15% of 256px = 38.4px */
}

.hero-overlay h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-overlay p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Full-Width About Introduction Section */
.about-intro {
    padding: 61.37px 0 46.03px; /* Reduced from 72.2px 0 54.15px (15% reduction) */
    background: white;
}

.about-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1f2937;
    text-align: center;
}

.intro-content {
    max-width: 960px; /* Increased from 800px (20% wider) */
    margin: 0 auto;
    text-align: left;
    padding: 0 16px; /* Reduced from 20px (10% reduction on each side) */
}

.intro-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 24px;
}

/* Two-Column What You'll Discover Section */
.about-content {
    padding: 46.03px 0 80px; /* Reduced from 54.15px 0 80px (15% reduction on top) */
    background: #f8fafc;
}

.discover-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.discover-section h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: #1f2937;
}

.discover-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.discover-column ul {
    text-align: left;
    margin: 0;
    padding-left: 20px;
}

.discover-column li {
    margin-bottom: 12px;
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
}

.cta-section {
    text-align: center;
    margin-top: 48px;
}

/* Contact Page */
.contact-header {
    padding: 100px 0 40px;
    background: #f8fafc;
    text-align: center;
}

.contact-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
}

.contact-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    padding: 40px 0 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1f2937;
}

.contact-info p {
    margin-bottom: 32px;
    line-height: 1.7;
    color: #4b5563;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    background: #eff6ff;
    padding: 12px;
    border-radius: 8px;
    color: #1e40af;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.contact-details p {
    color: #6b7280;
    margin: 0;
}

.contact-form-container {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e40af;
}

.form-group select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: #1e40af;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Legal Pages */
.legal-content {
    padding: 100px 0 80px;
}

.legal-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
}

.last-updated {
    color: #6b7280;
    margin-bottom: 48px;
    font-style: italic;
}

.legal-text {
    max-width: 800px;
    line-height: 1.7;
}

.legal-text h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 48px 0 24px;
    color: #1f2937;
}

.legal-text h2:first-of-type {
    margin-top: 0;
}

.legal-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #374151;
}

.legal-text p {
    margin-bottom: 16px;
    color: #4b5563;
}

.legal-text ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-text li {
    margin-bottom: 8px;
    color: #4b5563;
}

/* Footer - MODERNIZED LAYOUT */
.footer {
    background: #1f2937;
    color: white;
    padding: 48px 0 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
}

/* Horizontal Navigation Links */
.footer-links {
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.footer-links a:hover {
    color: white;
}

/* Centered Social Media Icons */
.footer-social {
    margin-bottom: 24px;
}

.footer-social h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-social .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-social .social-icons a {
    color: #d1d5db;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.footer-social .social-icons a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #374151;
}

.footer-copyright p {
    color: #9ca3af;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Unsubscribe Page Styles */
.unsubscribe-header {
    padding: 100px 0 40px;
    background: #f8fafc;
    text-align: center;
}

.unsubscribe-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
}

.unsubscribe-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.unsubscribe-content {
    padding: 40px 0 80px;
}

.unsubscribe-form-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.unsubscribe-form {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.unsubscribe-info {
    background: #f8fafc;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.unsubscribe-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

.unsubscribe-info p {
    margin-bottom: 16px;
    color: #4b5563;
    line-height: 1.6;
}

.unsubscribe-info ul {
    margin: 16px 0;
    padding-left: 20px;
}

.unsubscribe-info li {
    margin-bottom: 8px;
    color: #4b5563;
    line-height: 1.6;
}

.unsubscribe-info a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
}

.unsubscribe-info a:hover {
    text-decoration: underline;
}

/* Mobile Responsive for Unsubscribe Page */
@media (max-width: 768px) {
    .unsubscribe-header h1 {
        font-size: 2.5rem;
    }

    .unsubscribe-form-container {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 100%;
        padding: 0 20px;
    }

    .unsubscribe-form,
    .unsubscribe-info {
        padding: 24px;
    }

    .footer-unsubscribe {
        margin-top: 12px;
    }

    .footer-unsubscribe a {
        font-size: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-grid,
    .episodes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wxwaves-cta {
        padding: 35px 20px;
        margin-top: 70px; /* Adjust for smaller header */
    }

    .wxwaves-cta h2 {
        font-size: 1.5rem;
    }

    .subscription-form {
        max-width: 700px;
    }

    .subscription-form input {
        width: 160px;
    }

    .episode-header-content {
        grid-template-columns: 250px 1fr;
        gap: 32px;
    }

    .episode-thumbnail-large {
        width: 250px;
        height: 250px;
    }

    .episode-info-large {
        height: 250px; /* Match reduced image height */
    }

    .episode-title-large {
        font-size: 1.8rem; /* Further reduced for tablet */
    }

    .social-icon-inline {
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    /* About Page Responsive */
    .intro-content {
        max-width: 864px; /* Increased from 720px (20% wider) */
        padding: 0 14.4px; /* Reduced from 16px (10% reduction on each side) */
    }

    .about-hero {
        height: 204.8px; /* Reduced from 256px (20% reduction from bottom) */
    }

    .hero-overlay {
        /* Adjust padding-top for tablet size */
        padding-top: 30.72px; /* 15% of 204.8px = 30.72px */
    }

    .discover-columns {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 16px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .featured-grid,
    .episodes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .episodes-header h1,
    .contact-header h1,
    .legal-content h1 {
        font-size: 2.5rem;
    }

    .wxwaves-cta {
        padding: 30px 16px;
        margin-top: 70px;
    }

    .wxwaves-cta h2 {
        font-size: 1.5rem;
    }

    .wxwaves-cta p {
        font-size: 1rem;
    }

    .wxwaves-cta .social-icons {
        gap: 12px;
        margin-top: 20px;
    }

    /* Mobile Episode Footer Layout - SINGLE LINE ALIGNMENT */
    .episode-footer {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 0 20px 20px !important;
        border-top: 1px solid #f1f5f9;
        padding-top: 16px !important;
        margin-top: 16px !important;
    }

    .episode-date {
        color: #6b7280;
        font-weight: 500;
        text-align: left;
        flex-shrink: 0;
    }

    .episode-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0;
    }

    .episode-duration {
        color: #6b7280;
        font-weight: 500;
        white-space: nowrap;
    }

    /* Footer Mobile Responsive - CENTERED SOCIAL ICONS */
    .footer-links ul {
        flex-direction: column;
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    /* MOBILE FOOTER SOCIAL ICONS - CENTERED */
    .footer-social .social-icons {
        justify-content: center !important;
        text-align: center;
        margin: 0 auto;
        gap: 12px;
    }

    /* About Page Mobile */
    .intro-content {
        max-width: 100%; /* Full width on mobile */
        padding: 0 12.8px; /* Reduced from 14.4px (10% reduction on each side) */
    }

    .about-hero {
        height: 163.84px; /* Reduced from 204.8px (20% reduction from bottom) */
    }

    .hero-overlay {
        /* Adjust padding-top for mobile size */
        padding-top: 24.576px; /* 15% of 163.84px = 24.576px */
    }

    .discover-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* MOBILE EPISODE DETAILS - STACK LAYOUT */
    .episode-header-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .episode-thumbnail-large {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .episode-info-large {
        height: auto; /* Remove fixed height on mobile */
        padding-top: 0;
    }

    .episode-title-large {
        font-size: 1.75rem;
    }

    .episode-description-large {
        font-size: 1.125rem;
    }

    /* MOBILE EPISODE META - SINGLE LINE LAYOUT */
    .episode-meta-large {
        justify-content: center;
        gap: 20px;
        flex-wrap: nowrap; /* Prevent wrapping on mobile */
    }

    /* MOBILE MEDIA ACTIONS - STACKED LAYOUT */
    .media-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .button-group {
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
    }

    .social-icons {
        width: 100%;
        justify-content: center;
    }

    .social-icon-inline {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .episode-nav-controls {
        justify-content: space-between;
    }

    /* Timeline responsive adjustments */
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4.32px; /* Reduced from 7.2px (40% reduction) */
    }

    .timeline-timestamp {
        align-self: flex-start;
    }

    /* Sources responsive adjustments */
    .source-links {
        margin-left: 0; /* Remove indent on mobile */
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .featured-header h2 {
        font-size: 2rem;
    }

    .featured-grid,
    .episodes-grid {
        grid-template-columns: 1fr;
    }

    .featured-image,
    .episode-card .episode-image {
        height: 180px;
    }

    .contact-form-container {
        padding: 24px;
    }

    .wxwaves-cta {
        padding: 25px 12px;
        margin-top: 70px;
    }

    .wxwaves-cta h2 {
        font-size: 1.25rem;
    }

    .wxwaves-cta p {
        font-size: 0.95rem;
    }

    .wxwaves-cta .social-icons {
        gap: 10px;
        margin-top: 16px;
        flex-wrap: wrap;
    }

    .wxwaves-cta .social-icons a {
        width: 16px; /* Even smaller on mobile */
        height: 16px;
    }

    /* Mobile Episode Footer Layout - ENSURE SINGLE LINE ON SMALL SCREENS */
    .episode-footer {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-direction: row !important;
        gap: 6px !important;
        padding: 0 20px 20px !important;
        font-size: 13px !important; /* Slightly smaller text for better fit */
    }

    .episode-date {
        font-size: 13px;
        flex-shrink: 0;
    }

    .episode-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0;
    }

    .episode-duration {
        font-size: 13px;
        white-space: nowrap;
    }

    .download-icon-btn {
        width: 20px !important;
        height: 20px !important;
        padding: 2px !important;
    }

    .download-icon-btn svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* Footer Mobile Responsive - ENHANCED CENTERING */
    .footer-links ul {
        gap: 8px;
    }

    .footer-legal {
        gap: 16px;
    }

    /* SMALL MOBILE FOOTER SOCIAL ICONS - PERFECTLY CENTERED */
    .footer-social .social-icons {
        justify-content: center !important;
        text-align: center;
        margin: 0 auto;
        gap: 10px;
        flex-wrap: wrap;
    }

    /* About Page Mobile */
    .intro-content {
        padding: 0 11.52px; /* Reduced from 12.8px (10% reduction on each side) */
    }

    .about-hero {
        height: 131.072px; /* Reduced from 163.84px (20% reduction from bottom) */
    }

    .hero-overlay {
        /* Adjust padding-top for small mobile size */
        padding-top: 19.6608px; /* 15% of 131.072px = 19.6608px */
    }

    /* MOBILE EPISODE DETAILS - COMPACT LAYOUT */
    .episode-thumbnail-large {
        width: 180px;
        height: 180px;
    }

    .episode-title-large {
        font-size: 1.5rem;
    }

    .episode-description-large {
        font-size: 1rem;
    }

    /* MOBILE PORTRAIT - PLAY AND DOWNLOAD BUTTONS SIDE-BY-SIDE, SOCIAL HORIZONTAL */
    .episode-meta-large {
        flex-direction: row; /* Keep horizontal on mobile */
        gap: 16px;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap; /* Allow wrapping if needed */
    }

    .media-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .button-group {
        display: flex;
        flex-direction: row; /* Side-by-side on mobile */
        justify-content: center;
        gap: 12px;
        width: 100%;
    }

    .social-icons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
        width: 100%;
    }

    .social-icon-inline {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .episode-nav-controls {
        flex-direction: column;
        gap: 12px;
    }

    .nav-btn {
        justify-content: center;
    }

    .source-item-plain {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .source-title-plain {
        flex: 1;
    }

    /* Timeline mobile adjustments - reduced spacing by 40% */
    .timeline-item {
        padding: 3.888px 0; /* Reduced from 6.48px (40% reduction) */
    }

    .timeline-timestamp {
        font-size: 0.8rem;
        min-width: 80px;
        padding: 3px 6px;
    }

    .timeline-label {
        font-size: 0.9rem;
    }

    /* Sources mobile adjustments */
    .source-links {
        gap: 6px;
    }

    .source-link-original,
    .source-link-download {
        font-size: 0.85rem;
        padding: 3px 6px;
    }
}

/* Animation for player appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.audio-player {
    animation: slideUp 0.3s ease-out;
}

/* Desktop layout fix */
.unsubscribe-form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  align-items: start;
}

.unsubscribe-form-container form,
.unsubscribe-form-container .unsubscribe-info {
  width: 100%;
}

/* Already exists, but ensure this is kept for mobile */
@media (max-width: 768px) {
  .unsubscribe-form-container {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 32px;
  }
}


/* Overlay only inside the 300x/250x thumbnail box */
.episode-thumbnail-large { position: relative; overflow: hidden; } /* already set, safe to repeat */
.episode-thumbnail-large .play-overlay,
.episode-thumbnail-large .play-overlay-large {
  position: absolute;
  inset: 0;                 /* fill only the thumbnail box */
  z-index: 1;               /* below right-column UI */
}

/* Only the center play button is clickable */
.play-overlay, .play-overlay-large { pointer-events: none; }
.play-overlay .play-button, .play-overlay-large .play-button-large { pointer-events: auto; }

/* Right column content sits above the left thumbnail stack */
.episode-info-large { position: relative; z-index: 5; }

/* Tighten gap between Timeline and Sources, and make Sources white */
.episode-timeline{
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.episode-timeline .timeline-content,
.episode-timeline .timeline-list{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.episode-timeline .timeline-item:last-child{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* Sources directly follows Timeline */
.episode-sources{
  background: #fff !important;   /* kill the gray band */
  padding-top: 0 !important;     /* eliminate the inter-section gap */
  margin-top: 0 !important;
}

/* Restore consistent spacing between Timeline and Sources */
.episode-sources {
  margin-top: 45px !important;  /* matches Summary → Timeline gap */
}
