/* ==========================================================================
   PODCASTS STYLES (Основано на дизайне Audioreklama)
   ========================================================================== */

/* Контейнер по аналогии с audioreklama__container */
.podcast-wrapper {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

/* Ограничитель ширины для страницы чтения (как audioreklama__container--article) */
.podcast-wrapper--article {
    max-width: 900px;
}

/* --- ШАПКА ХАБА (Главная подкастов) --- */
.podcast-hub-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.podcast-hub-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 15px;
}

.podcast-hub-header p {
    font-size: 18px;
    color: #64748B;
    max-width: 700px;
    margin: 0 auto 20px;
}

/* Кнопка RSS (в стиле бэйджей аудиорекламы) */
.rss-button, .rss-link {
    display: inline-block;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 6px;
    color: #3B5E85;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.rss-button:hover, .rss-link:hover {
    background: #3B5E85;
    color: white;
}

/* --- СЕТКА ПЕРЕДАЧ (как articles__grid) --- */
.podcast-shows-section {
    margin-bottom: 60px;
}

.podcast-shows-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 30px;
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Карточка передачи (как article__card-preview) */
.show-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(59, 94, 133, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.show-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 94, 133, 0.15);
}

.show-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Жестко задаем пропорцию квадрата */
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #f1f5f9;
}

.show-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.show-card-content h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    line-height: 1.4;
}

.show-card-content h3 a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.2s;
}

.show-card-content h3 a:hover {
    color: #3B5E85;
}

.show-card-content p {
    color: #64748B;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.episodes-count {
    font-size: 13px;
    color: #94a3b8;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: block;
}

/* --- СПИСОК ВЫПУСКОВ (ЭПИЗОДОВ) --- */
.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Базовый стиль (для Последних выпусков на hub.html) */
.episode-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px; 
    border-left: 4px solid #3B5E85;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 94, 133, 0.05);
}

.episode-item:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(59, 94, 133, 0.12);
    transform: translateY(-2px);
}

/* Сохраняем горизонтальный вид ДЛЯ SHOW_DETAIL (где есть миниатюра) */
.episode-item:has(.episode-thumbnail) {
    flex-direction: row;
    gap: 20px;
}

.episode-thumbnail {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.episode-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.podcast-show-badge {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #94a3b8;
    margin: 0 0 5px 0;
    text-decoration: none;
}

.episode-item h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.3;
}

.episode-item h3 a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.2s;
}

.episode-item h3 a:hover {
    color: #3B5E85;
}

.episode-item p {
    margin: 5px 0 10px 0;
    font-size: 15px;
    line-height: 1.4;
    color: #334155;
}

.episode-item .podcast-meta {
    margin: 0;
}

.podcast-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #64748B;
    font-size: 13px;
    margin-bottom: 15px;
}

.listen-link {
    color: #3B5E85;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.listen-link:hover {
    color: #1a365d;
    text-decoration: underline;
}

/* --- СТРАНИЦА ЧТЕНИЯ / СЛУШАНИЯ (КАК СТАТЬЯ) --- */
.podcast-article-card {
    background: white;
    border-radius: 16px;
    padding: 50px 60px;
    box-shadow: 0 4px 25px rgba(59, 94, 133, 0.08);
}

.podcast-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 25px;
    line-height: 1.25;
}

.podcast-audio-player {
    width: 100%;
    height: 40px;
    outline: none;
}

/* Контент внутри выпуска (Типографика как в audioreklama) */
.podcast-prose {
    line-height: 1.75;
    font-size: 17px;
    color: #334155;
}

.podcast-prose .short-description {
    font-size: 18px;
    line-height: 1.6;
    color: #64748B;
    margin-bottom: 30px;
    padding: 20px 25px;
    background: #f8fafc;
    border-left: 4px solid #3B5E85;
    border-radius: 0 8px 8px 0;
}

.podcast-prose h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a365d;
    margin: 45px 0 20px;
}

.podcast-prose h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c5282;
    margin: 35px 0 15px;
}

.podcast-prose p {
    margin-bottom: 20px;
}

/* Списки */
.podcast-prose ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.podcast-prose ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.podcast-prose ul li::before {
    content: "•";
    color: #3B5E85;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Транскрипт */
.podcast-transcript {
    margin-top: 40px;
    background: #f0f4f8;
    border-radius: 12px;
    padding: 20px;
}

.podcast-transcript summary {
    cursor: pointer;
    font-weight: 600;
    color: #1a365d;
    font-size: 18px;
    outline: none;
}

.transcript-content {
    margin-top: 20px;
    font-size: 16px;
    color: #64748B;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

/* --- СОВРЕМЕННАЯ ШАПКА ВЫПУСКА (Как в Spotify/Яндекс) --- */
.podcast-header-modern {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.episode-cover-square {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(59, 94, 133, 0.15);
    flex-shrink: 0;
}

.podcast-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.podcast-header-info h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a365d;
    margin: 10px 0 15px 0;
    line-height: 1.2;
}

.podcast-player-inline {
    margin-top: auto; 
    padding-top: 15px;
}

.breadcrumbs {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.breadcrumbs a {
    color: #557FA6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #1a365d;
    text-decoration: underline;
}

.breadcrumbs span.separator {
    color: #CBD5E1;
}

/* --- СТРАНИЦА SHOW_DETAIL (Шапка передачи) --- */
.show-cover {
    max-width: 500px; 
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(59, 94, 133, 0.15);
}

.show-description {
    font-size: 20px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 30px;
    max-width: 900px; 
}

/* --- SEO SECTION & CTA (Новые стили) --- */
.podcast-seo-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.podcast-seo-description {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
    max-width: 900px;
}

.podcast-seo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.podcast-seo-feature-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #3B5E85;
}

.podcast-seo-feature-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1a365d;
}

.podcast-seo-feature-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.podcast-cta-block {
    text-align: center;
    margin-top: 50px;
    padding: 40px 20px;
    background: #1a365d;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.15);
}

.podcast-cta-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #ffffff;
}

.podcast-cta-text {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #cbd5e1;
}

.podcast-cta-btn {
    display: inline-block;
    background: #4682b4;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.podcast-cta-btn:hover {
    background: #3a6d96;
}

/* Анимированная ссылка с подчеркиванием */
.podcasts-link {
    position: relative; /* Добавлено, чтобы псевдоэлемент никуда не улетал */
    display: inline-block; /* Помогает избежать багов с подчеркиванием блочных элементов */
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease; /* Добавляем плавное изменение прозрачности */
}

.podcasts-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.podcasts-link:hover {
    opacity: 0.8; /* Современный и аккуратный эффект при наведении */
}

.podcasts-link:hover::after {
    transform: scaleX(1);
}

/* --- АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ --- */
@media (max-width: 768px) {
    .podcast-article-card {
        padding: 30px 20px;
    }
    
    .podcast-hub-header h1 {
        font-size: 28px;
    }
    
    .podcast-header-modern {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .episode-cover-square {
        width: 180px;
        height: 180px;
    }
    
    .podcast-header-info h1 {
        font-size: 24px;
    }
    
    .podcast-meta {
        justify-content: center;
    }
}

/* --- АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ --- */
@media (max-width: 600px) {
    .episode-item:has(.episode-thumbnail) {
        flex-direction: column;
    }
    
    .episode-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; 
    }
}

@media (max-width: 480px) {
    .podcast-wrapper {
        padding: 0 15px; 
    }

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

    .podcast-hub-header h1,
    .podcast-header-info h1,
    .podcast-header h1 {
        font-size: 26px;
    }

    .show-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .podcast-hub-header p {
        font-size: 15px;
    }

    .episode-item:has(.episode-thumbnail) {
        gap: 15px;
    }

    .episode-thumbnail {
        aspect-ratio: 1 / 1; 
    }

    .show-cover {
        margin-bottom: 15px;
    }
}