.pm-archive-wrap {
    padding: 40px 16px;
    background:
        radial-gradient(circle at top left, rgba(91, 143, 249, 0.24), transparent 35%),
        linear-gradient(180deg, #eef5ff 0%, #e8f0ff 100%);
    min-height: 100vh;
}

.pm-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

/* Archive / Library */
.pm-archive-header {
    text-align: center;
    margin-bottom: 28px;
}

.pm-archive-header h1 {
    margin: 0 0 10px;
    color: #103d78;
    font-size: 34px;
    line-height: 1.2;
}

.pm-archive-header p {
    margin: 0;
    color: #476b9c;
    font-size: 16px;
}

.pm-library-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 20px 56px;
}

.pm-library-hero {
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,.22);
    background: linear-gradient(135deg, rgba(17,77,163,.88), rgba(53,123,230,.62));
    box-shadow: 0 20px 60px rgba(11, 37, 84, .18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
}

.pm-library-hero__inner {
    padding: 34px 30px;
}

.pm-library-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.78);
}

.pm-library-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    color: #fff;
}

.pm-library-subtitle {
    margin: 14px 0 0;
    max-width: 760px;
    color: rgba(255,255,255,.88);
    font-size: 15px;
    line-height: 1.9;
}

.pm-library-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.pm-library-section__head h2 {
    margin: 0;
    font-size: 20px;
    color: #0f172a;
}

.pm-library-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.pm-library-card,
.pm-single-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(29, 84, 166, 0.12);
    border-radius: 24px;
}

.pm-library-card__link {
    display: block;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.24);
    background: linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,.38));
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.pm-library-card__link:hover,
.pm-library-card__link:focus {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, .16);
    border-color: rgba(59,130,246,.34);
}

.pm-library-card__media {
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.pm-library-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pm-library-card__image--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(91, 143, 249, 0.26), rgba(255,255,255,0.2));
}

.pm-library-card__body {
    padding: 16px 16px 18px;
}

.pm-library-card__title {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 700;
}

.pm-pagination {
    margin-top: 30px;
}

.pm-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pm-pagination .page-numbers li {
    margin: 0;
}

.pm-pagination .page-numbers a,
.pm-pagination .page-numbers span {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(148,163,184,.28);
    background: rgba(255,255,255,.72);
    color: #0f172a;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pm-pagination .page-numbers .current {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-color: transparent;
}

.pm-library-empty {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.24);
}

/* Single Podcast */
.pm-single-page-wrap {
    padding-top: 48px;
    padding-bottom: 48px;
}

.pm-single-page-container {
    width: min(980px, 100%);
}

.pm-single-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
}

.pm-title {
    margin: 0;
    color: #123f7f;
    font-size: 22px;
    line-height: 1.7;
    font-weight: 700;
}

.pm-single-layout {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.pm-single-cover {
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;
    flex: 0 0 180px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,.2);
}

.pm-single-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pm-single-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pm-audio-player {
    width: 100%;
    order: 1;
}

.pm-summary-wrap {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-summary {
    margin: 0;
    color: #365b8a;
    line-height: 1.95;
    text-align: justify;
}

.pm-summary p {
    margin: 0 0 10px;
}

.pm-summary p:last-child {
    margin-bottom: 0;
}

.pm-summary-toggle {
    display: none;
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0c63ff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    cursor: pointer;
}

.pm-summary-toggle:hover,
.pm-summary-toggle:focus {
    color: #094fc7;
    outline: none;
}

.pm-meta-row {
    order: 3;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.pm-author {
    color: #254f8e;
    font-weight: 600;
}

.pm-copyright {
    order: 4;
    color: #52719a;
    font-size: 14px;
    line-height: 1.9;
}

.pm-copyright span {
    color: inherit;
    font-size: inherit;
}

.pm-copyright a {
    color: #0c63ff;
    text-decoration: none;
    font-weight: 700;
}

.pm-copyright a:hover,
.pm-copyright a:focus {
    color: #094fc7;
}

/* Responsive */
@media (max-width: 1200px) {
    .pm-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .pm-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pm-single-card {
        padding: 18px;
        gap: 16px;
    }

    .pm-title {
        font-size: 18px;
        line-height: 1.8;
        text-align: right;
    }

    .pm-single-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .pm-single-cover {
        order: 1;
        width: 180px;
        height: 180px;
        min-width: 180px;
        min-height: 180px;
        flex: 0 0 180px;
        margin: 0 auto;
    }

    .pm-single-content {
        order: 2;
        width: 100%;
        gap: 14px;
    }

    .pm-audio-player {
        order: 1;
    }

    .pm-summary-wrap {
        order: 2;
    }

    .pm-summary {
        max-height: 118px;
        overflow: hidden;
        position: relative;
        text-align: justify;
    }

    .pm-summary.is-expanded {
        max-height: none;
        overflow: visible;
    }

    .pm-summary-toggle {
        display: inline-flex;
    }

    .pm-meta-row {
        order: 3;
    }

    .pm-copyright {
        order: 4;
    }
}

@media (max-width: 640px) {
    .pm-library-page {
        padding-inline: 14px;
    }

    .pm-library-hero__inner {
        padding: 24px 18px;
    }

    .pm-library-hero h1 {
        font-size: 30px;
    }

    .pm-library-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
