/* Podcast section — professional audio cards */

.podcast-section {
    padding: 56px 0 64px;
    background: #f7f8fa;
    border-top: 1px solid #e8ecf1;
}

.podcast-section__head {
    margin-bottom: 32px;
}

.podcast-section__head .back-title {
    margin-bottom: 0;
}

.podcast-section__head .back-title h2 {
    margin: 0;
}

.podcast-yt-host {
    position: fixed;
    left: -200vw;
    top: 0;
    width: 640px;
    height: 360px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.podcast-slider .owl-stage-outer {
    padding: 4px 0 8px;
}

.podcast-slider .owl-nav {
    margin-top: 24px;
}

.podcast-slider .owl-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid #e2e6ed !important;
    color: #0a1628 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.08);
    transition: all 0.2s ease;
}

.podcast-slider .owl-nav button:hover {
    background: #0088cb !important;
    border-color: #0088cb !important;
    color: #fff !important;
}

.podcast-card {
    height: 100%;
}

.podcast-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e6ed;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.podcast-card:hover .podcast-card__inner,
.podcast-card.is-active .podcast-card__inner {
    border-color: #c5d9e8;
    box-shadow: 0 12px 32px rgba(10, 22, 40, 0.08);
}

.podcast-card.is-active .podcast-card__inner {
    border-color: #0088cb;
    box-shadow: 0 16px 40px rgba(0, 136, 203, 0.12);
}

.podcast-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #0a1628 0%, #1a3050 100%);
    overflow: hidden;
}

.podcast-card__cover {
    width: 100%;
    height: 100%;
}

.podcast-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.podcast-card.is-playing .podcast-card__cover img {
    opacity: 0.72;
    transform: scale(1.04);
}

.podcast-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 22, 40, 0.55) 100%);
    pointer-events: none;
}

.podcast-card__play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: #0088cb;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 136, 203, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.podcast-card__play-btn:hover {
    background: #0077b3;
    transform: translate(-50%, -50%) scale(1.06);
}

.podcast-card__play-btn .podcast-card__icon-pause,
.podcast-card__play-btn .podcast-card__spinner {
    display: none;
}

.podcast-card.is-playing .podcast-card__play-btn .podcast-card__icon-play {
    display: none;
}

.podcast-card.is-playing .podcast-card__play-btn .podcast-card__icon-pause {
    display: block;
}

.podcast-card.is-buffering .podcast-card__play-btn .podcast-card__icon-play,
.podcast-card.is-buffering .podcast-card__play-btn .podcast-card__icon-pause {
    display: none;
}

.podcast-card.is-buffering .podcast-card__play-btn .podcast-card__spinner {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: podcast-spin 0.7s linear infinite;
}

.podcast-card__content {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.podcast-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.podcast-card__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0088cb;
    font-family: 'SpartanBold', sans-serif;
}

.podcast-card__date {
    font-size: 12px;
    color: #8b95a5;
    font-family: 'SpartanRegular', sans-serif;
}

.podcast-card__title {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 8px;
    font-family: 'SpartanBold', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-card__desc {
    font-size: 13px;
    line-height: 1.6;
    color: #5c6578;
    margin: 0 0 18px;
    font-family: 'SpartanRegular', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.podcast-card__progress {
    margin-bottom: 14px;
}

.podcast-card__progress-track {
    height: 4px;
    background: #e8ecf1;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
}

.podcast-card__progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0088cb, #00a3e8);
    border-radius: 999px;
    transition: width 0.15s linear;
}

.podcast-card__times {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.podcast-card__time {
    font-size: 11px;
    color: #8b95a5;
    font-family: 'SpartanMedium', sans-serif;
    font-variant-numeric: tabular-nums;
}

.podcast-card__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.podcast-card__ctrl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e2e6ed;
    border-radius: 999px;
    background: #fff;
    color: #0a1628;
    font-size: 12px;
    font-family: 'SpartanSemiBold', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.podcast-card__ctrl:hover {
    border-color: #0088cb;
    color: #0088cb;
    background: #f0f9ff;
}

.podcast-card__ctrl--main {
    min-width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: #0a1628;
    color: #fff;
    font-size: 16px;
}

.podcast-card__ctrl--main:hover {
    background: #0088cb;
    color: #fff;
}

.podcast-card__ctrl .podcast-card__icon-pause {
    display: none;
}

.podcast-card.is-playing .podcast-card__ctrl--main .podcast-card__icon-play {
    display: none;
}

.podcast-card.is-playing .podcast-card__ctrl--main .podcast-card__icon-pause {
    display: block;
}

.podcast-card.has-error .podcast-card__inner {
    border-color: #f5c6cb;
}

.podcast-card__error {
    display: none;
    margin-top: 10px;
    font-size: 12px;
    color: #c0392b;
    font-family: 'SpartanMedium', sans-serif;
}

.podcast-card.has-error .podcast-card__error {
    display: block;
}

@keyframes podcast-spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 992px) {
    .podcast-card__inner {
        flex-direction: row;
    }

    .podcast-card__media {
        width: 42%;
        flex-shrink: 0;
        aspect-ratio: auto;
        min-height: 220px;
    }

    .podcast-card__content {
        width: 58%;
        padding: 24px 24px 24px 20px;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .podcast-section {
        padding: 40px 0 48px;
    }
}
