
.podcast-header-section {
    background: linear-gradient(180deg, 
        rgba(248, 250, 252, 1) 0%, 
        rgba(241, 245, 249, 1) 100%
    );
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.podcast-header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    animation: floatPodcast 20s ease-in-out infinite;
}

.podcast-header-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    animation: floatPodcast 25s ease-in-out infinite reverse;
}

@keyframes floatPodcast {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.1); }
}

.podcast-cover { 
    width: 100%; 
    max-width: 240px; 
    aspect-ratio: 1/1; 
    object-fit: cover; 
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.podcast-cover:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 16px 50px rgba(99, 102, 241, 0.35);
}

.podcast-title { 
    font-size: 2.5rem; 
    font-weight: 800; 
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.podcast-description { 
    color: #64748b;
    line-height: 1.7;
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.podcast-stats {
    color: #64748b;
    position: relative;
    z-index: 1;
}

.podcast-stats > div {
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-weight: 600;
    transition: all 0.3s ease;
}

.podcast-stats > div:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.podcast-stats i {
    color: #8b5cf6;
    margin-right: 0.35rem;
}

.podcast-stats > div:hover i {
    color: white;
}

/* Badges */
.podcast-header-section .badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #6366f1;
    border: 2px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

#podcast-author {
    color: #64748b !important;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

#podcast-tags .badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

#podcast-tags .badge:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.podcast-actions {
    position: relative;
    z-index: 1;
}

.podcast-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.podcast-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.podcast-actions .btn:hover::before {
    width: 300px;
    height: 300px;
}

.podcast-actions .btn-light {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.podcast-actions .btn-light:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    color: white;
}

.podcast-actions .btn-outline-light {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

.podcast-actions .btn-outline-light:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}
.episode-item { 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.episode-item:hover { 
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.episode-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.episode-number { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}
.episode-item:hover .episode-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.episode-title-area {
    flex: 1;
    position: relative;
    z-index: 1;
}

.episode-title { 
    font-size: 1.15rem; 
    font-weight: 700; 
    margin-bottom: 0.5rem;
    color: #1e293b;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.episode-item:hover .episode-title {
    color: #6366f1;
}

.episode-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.episode-date { 
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.episode-date i {
    color: #8b5cf6;
}

.episode-duration { 
    color: #6366f1;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
}

.episode-duration i {
    color: #8b5cf6;
}

.episode-description { 
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1rem 0;
    padding-left: 0;
}
.episode-description { 
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 1rem 0;
    padding-left: 0;
    position: relative;
    z-index: 1;
    max-height: 4.8em;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.episode-description.expanded {
    max-height: none;
}

.episode-description-toggle {
    color: #6366f1;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.episode-description-toggle:hover {
    color: #8b5cf6;
    transform: translateX(3px);
}

.episode-description-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.episode-description.expanded + .episode-description-toggle i {
    transform: rotate(180deg);
}

.episode-play-button.btn-podcast-play {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
    padding: 0.7rem 1.75rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.episode-play-button.btn-podcast-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.episode-play-button.btn-podcast-play:hover::before {
    width: 300px;
    height: 300px;
}

.episode-play-button.btn-podcast-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.episode-play-button.btn-podcast-play i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.related-podcasts {
    position: sticky;
    top: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.12);
    border: 2px solid rgba(99, 102, 241, 0.1);
}

.related-podcasts h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-podcast-item { 
    display: flex;
    align-items: center;
    padding: 0.85rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.85rem;
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.related-podcast-item:hover { 
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.related-podcast-image { 
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-podcast-item:hover .related-podcast-image {
    transform: scale(1.05);
}

.related-podcast-info {
    flex: 1;
    min-width: 0;
}

.related-podcast-info .fw-medium {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.related-podcast-item:hover .fw-medium {
    color: #6366f1;
}

.related-podcast-info .text-muted {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

* Sortowanie */
.episodes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.15);
}

.episodes-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.episodes-header .btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: #6366f1;
    font-weight: 600;
    border-radius: 12px;
}

.episodes-header .btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
}

#episodes-loading, #no-episodes {
    text-align: center;
    padding: 4rem 1rem;
    color: #64748b;
}

#no-episodes i {
    font-size: 4rem;
    color: #8b5cf6;
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

#no-episodes h3 {
    color: #1e293b;
    font-weight: 700;
}

#episodes-load-more {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

#episodes-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

@media (max-width: 991px) {
    .podcast-cover {
        max-width: 200px;
    }
    
    .podcast-title {
        font-size: 2rem;
    }
    
    .related-podcasts {
        position: static;
        margin-top: 2.5rem;
    }
}

@media (max-width: 767px) {
    .podcast-header-section {
        padding: 2.5rem 0 2rem;
    }
    
    .podcast-cover {
        max-width: 160px;
    }
    
    .podcast-title {
        font-size: 1.75rem;
    }
    
    .episode-item {
        padding: 1.25rem;
    }
    
    .episode-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .episode-number {
        min-width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .episode-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .episode-play-button.btn-podcast-play {
        width: 100%;
        justify-content: center;
    }
    
    .related-podcasts {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .podcast-title {
        font-size: 1.5rem;
    }
    
    .podcast-stats > div {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .podcast-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}