/* ADPi Podcast */

.adpi-podcast {
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    color: inherit;
}

.adpi-podcast-list {
    border-top: 1px solid #dedee3;
}

.adpi-podcast-episode {
    border-bottom: 1px solid #dedee3;
    margin: 0;
    padding: 0;
}

.adpi-podcast-episode[hidden] {
    display: none !important;
}

/* Accordion heading */

.adpi-podcast-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 12px;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
}

.adpi-podcast-heading::-webkit-details-marker {
    display: none;
}

.adpi-podcast-heading::marker {
    content: "";
}

.adpi-podcast-heading:hover {
    background-color: rgba(128, 128, 128, 0.06);
}

.adpi-podcast-heading:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

/* Chevron */

.adpi-podcast-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.10);
    transition: transform 0.2s ease;
}

.adpi-podcast-icon svg {
    width: 18px;
    height: 18px;
}

.adpi-podcast-episode[open] .adpi-podcast-icon {
    transform: rotate(90deg);
}

/* Episode heading content */

.adpi-podcast-heading-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 6px;
}

.adpi-podcast-title {
    display: block;
    font-size: 1.12rem;
    font-weight: 650;
    line-height: 1.4;
}

.adpi-podcast-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.adpi-podcast-duration::before {
    content: "•";
    margin-right: 12px;
}

.adpi-podcast-summary {
    display: block;
    font-size: 0.94rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-top: 3px;
}

/* Expanded content */

.adpi-podcast-content {
    padding: 0 20px 26px 60px;
}

.adpi-podcast-audio {
    display: block;
    width: 100%;
    height: 48px;
    margin: 4px 0 22px;
}

.adpi-podcast-description {
    font-size: 0.95rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.adpi-podcast-description p {
    margin: 0 0 14px;
}

.adpi-podcast-description a {
    text-decoration: underline;
}

.adpi-podcast-original-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
}

/* Load More */

.adpi-podcast-footer {
    display: flex;
    justify-content: center;
    padding: 26px 0;
}

.adpi-podcast-load-more {
    appearance: none;
    padding: 12px 26px;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.adpi-podcast-load-more:hover {
    background-color: rgba(128, 128, 128, 0.10);
}

.adpi-podcast-load-more:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Mobile */

@media (max-width: 600px) {
    .adpi-podcast-heading {
        gap: 12px;
        padding: 18px 6px;
    }

    .adpi-podcast-icon {
        width: 28px;
        height: 28px;
    }

    .adpi-podcast-title {
        font-size: 1rem;
    }

    .adpi-podcast-summary {
        font-size: 0.88rem;
    }

    .adpi-podcast-content {
        padding: 0 6px 22px 40px;
    }

    .adpi-podcast-meta {
        gap: 8px;
        font-size: 0.8rem;
    }

    .adpi-podcast-duration::before {
        margin-right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adpi-podcast * {
        transition: none !important;
    }
}

