.pgh-library-page {
    background: #0b0b0e;
}

.pgh-library {
    --pgh-library-accent: #ff2f73;
    --pgh-library-accent-strong: #e5094f;
    --pgh-library-surface: #151519;
    --pgh-library-surface-2: #1b1b20;
    --pgh-library-border: rgba(255, 255, 255, .11);
    --pgh-library-muted: rgba(255, 255, 255, .65);
    min-height: 80vh;
    padding-bottom: clamp(36px, 7vw, 80px);
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 47, 115, .15), transparent 29%),
        #0b0b0e;
    color: #fff;
    scroll-behavior: smooth;
}

.pgh-library [hidden] {
    display: none !important;
}

.pgh-library-wrap {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 30px;
}

.pgh-library-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: clamp(26px, 5vw, 64px);
    align-items: center;
    padding: clamp(28px, 5vw, 54px);
    overflow: hidden;
    border: 1px solid var(--pgh-library-border);
    border-radius: 26px;
    background:
        radial-gradient(circle at 7% 0, rgba(255, 47, 115, .3), transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(100, 49, 255, .15), transparent 40%),
        linear-gradient(145deg, #1c1c22, #111114 66%);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.pgh-library-hero__copy {
    position: relative;
    z-index: 1;
}

.pgh-library .pghw-eyebrow {
    margin: 0 0 10px;
    color: #ff75a4;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.pgh-library-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 6vw, 64px);
    line-height: .98;
    letter-spacing: -.045em;
}

.pgh-library-hero__copy > p:not(.pghw-eyebrow, .pgh-library-privacy) {
    max-width: 720px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(15px, 1.7vw, 17px);
    line-height: 1.65;
}

.pgh-library-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.pgh-library-button,
.pgh-library .pghw-clear-history {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 11px;
    background: rgba(255, 255, 255, .065);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.pgh-library-button:hover,
.pgh-library .pghw-clear-history:hover {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .11);
    color: #fff;
    transform: translateY(-1px);
}

.pgh-library-button--primary {
    border-color: var(--pgh-library-accent-strong);
    background: linear-gradient(135deg, var(--pgh-library-accent), var(--pgh-library-accent-strong));
    box-shadow: 0 10px 28px rgba(229, 9, 79, .22);
}

.pgh-library-button--primary:hover {
    border-color: #ff5a91;
    background: linear-gradient(135deg, #ff4b85, #ee0e58);
}

.pgh-library button:disabled {
    cursor: not-allowed;
    opacity: .38;
    transform: none;
}

.pgh-library button[data-pghw-confirm-ready="1"] {
    border-color: rgba(255, 82, 82, .62);
    background: rgba(229, 9, 20, .2);
    color: #ffb1b6;
}

.pgh-library-destructive:not(:disabled) {
    color: #ff9aa5;
}

.pgh-library-privacy {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .52);
    font-size: 11px;
    line-height: 1.45;
}

.pgh-library-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pgh-library-summary a {
    display: flex;
    min-width: 0;
    min-height: 96px;
    padding: 18px;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.pgh-library-summary a:first-child {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 47, 115, .16), rgba(255, 255, 255, .045));
}

.pgh-library-summary a:hover {
    border-color: rgba(255, 47, 115, .48);
    background-color: rgba(255, 255, 255, .09);
    transform: translateY(-2px);
}

.pgh-library-summary strong {
    display: block;
    min-width: 0;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 29px;
    line-height: 1;
}

.pgh-library-summary span {
    margin-top: 7px;
    overflow: hidden;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pgh-library-scroll-cue {
    z-index: 1;
    display: inline-flex;
    grid-column: 1 / -1;
    gap: 8px;
    align-items: center;
    justify-self: center;
    margin: -18px 0 -33px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    background: rgba(10, 10, 13, .62);
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity .2s ease, transform .2s ease, color .2s ease;
    backdrop-filter: blur(10px);
}

.pgh-library-scroll-cue b {
    color: #ff75a4;
    font-size: 15px;
    line-height: 1;
}

.pgh-library-scroll-cue:hover {
    color: #fff;
    transform: translateY(2px);
}

.pgh-library-scroll-cue.is-dismissed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.pgh-library-nav {
    position: sticky;
    top: var(--pgh-library-nav-top, 8px);
    z-index: 40;
    display: flex;
    gap: 7px;
    margin: 18px 0 22px;
    padding: 9px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(15, 15, 18, .88);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .25);
    scrollbar-width: none;
    backdrop-filter: blur(18px);
}

.pgh-library-nav::-webkit-scrollbar {
    display: none;
}

.pgh-library-nav.is-menu-open {
    position: relative;
    top: auto;
    z-index: 0;
}

.pgh-library-nav a {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    flex: 1 0 auto;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.pgh-library-nav a:hover,
.pgh-library-nav a[aria-current="true"] {
    border-color: rgba(255, 47, 115, .28);
    background: rgba(255, 47, 115, .13);
    color: #fff;
}

.pgh-library-nav b,
.pgh-library-heading h2 b {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 47, 115, .19);
    color: #ff8ab2;
    font-size: 10px;
    line-height: 1;
}

.pgh-library-panel {
    margin-top: 16px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--pgh-library-border);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .022));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
    scroll-margin-top: calc(var(--pgh-library-nav-top, 8px) + 82px);
}

.pgh-library-panel:nth-of-type(even) {
    background: linear-gradient(145deg, rgba(255, 47, 115, .045), rgba(255, 255, 255, .022));
}

.pgh-library-panel .pghw-section-head {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pgh-library-heading {
    display: flex;
    gap: 13px;
    min-width: 0;
    align-items: flex-start;
}

.pgh-library-heading__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(255, 47, 115, .22);
    border-radius: 13px;
    background: rgba(255, 47, 115, .1);
    color: #ff6a9e;
    font-size: 19px;
}

.pgh-library-heading p,
.pgh-library-heading h2,
.pgh-library-heading span {
    margin: 0;
}

.pgh-library-heading p {
    margin-bottom: 4px;
    color: #ff669a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pgh-library-heading h2 {
    display: flex;
    gap: 7px;
    align-items: center;
    color: #fff;
    font-size: clamp(20px, 2.3vw, 27px);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.pgh-library-heading > div > span {
    display: block;
    max-width: 680px;
    margin-top: 6px;
    color: var(--pgh-library-muted);
    font-size: 12px;
    line-height: 1.5;
}

.pgh-library-panel-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.pgh-autoplay-toggle {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 11px;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 830;
}

.pgh-autoplay-toggle > span {
    position: relative;
    width: 31px;
    height: 18px;
    flex: 0 0 31px;
    border-radius: 999px;
    background: #555861;
    transition: background .18s ease;
}

.pgh-autoplay-toggle > span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: transform .18s ease;
}

.pgh-autoplay-toggle[aria-checked="true"] > span {
    background: var(--pgh-library-accent-strong);
}

.pgh-autoplay-toggle[aria-checked="true"] > span::after {
    transform: translateX(13px);
}

.pgh-library .pghw-grid {
    gap: clamp(12px, 1.8vw, 20px);
}

.pgh-library-empty {
    display: flex;
    min-height: 190px;
    margin: 0;
    padding: 30px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, .14);
    border-radius: 15px;
    background: rgba(255, 255, 255, .018);
    color: rgba(255, 255, 255, .57);
    text-align: center;
}

.pgh-library-empty__icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 47, 115, .1);
    color: #ff6a9e;
    font-size: 20px;
}

.pgh-library-empty strong {
    color: #f6f6f8;
    font-size: 15px;
}

.pgh-library-empty > span:not(.pgh-library-empty__icon) {
    max-width: 520px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.55;
}

.pgh-library-empty a {
    margin-top: 15px;
    color: #ff7eaa;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.pgh-library-empty a:hover {
    color: #fff;
}

.pgh-library .pghw-personal-status {
    margin: 12px 0 0;
}

.pgh-library-footer {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 24px 4px 0;
    color: rgba(255, 255, 255, .46);
    font-size: 11px;
}

.pgh-library-footer a {
    color: rgba(255, 255, 255, .76);
    font-weight: 800;
    text-decoration: none;
}

.pgh-library-noscript {
    padding: 18px;
    border: 1px solid rgba(229, 9, 20, .3);
    border-radius: 12px;
    background: rgba(229, 9, 20, .1);
    color: #fff;
}

.pgh-library a:focus-visible,
.pgh-library button:focus-visible {
    outline: 3px solid rgba(255, 47, 115, .62);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .pgh-library-hero {
        grid-template-columns: 1fr;
    }

    .pgh-library-summary {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .pgh-library-summary a,
    .pgh-library-summary a:first-child {
        grid-column: auto;
        min-height: 82px;
        padding: 13px;
    }

    .pgh-library-summary strong {
        font-size: 23px;
    }

    .pgh-library-panel .pghw-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pgh-library-panel-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .pgh-library-wrap {
        width: min(100% - 24px, 1240px);
        padding-top: 12px;
    }

    .pgh-library-hero {
        gap: 24px;
        padding: 25px 18px 22px;
        border-radius: 18px;
    }

    .pgh-library-scroll-cue {
        margin: -12px 0 -15px;
    }

    .pgh-library-hero h1 {
        font-size: clamp(34px, 12vw, 49px);
    }

    .pgh-library-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .pgh-library-summary a,
    .pgh-library-summary a:first-child {
        min-height: 71px;
        padding: 11px;
    }

    .pgh-library-summary a:nth-child(4),
    .pgh-library-summary a:nth-child(5) {
        grid-column: span 1;
    }

    .pgh-library-summary strong {
        font-size: 20px;
    }

    .pgh-library-summary span {
        font-size: 9px;
    }

    .pgh-library-nav {
        width: calc(100% + 24px);
        margin-left: -12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .pgh-library-nav a {
        flex: 0 0 auto;
    }

    .pgh-library-panel {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .pgh-library-heading__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .pgh-library-panel-actions {
        width: 100%;
    }

    .pgh-library-panel-actions > * {
        flex: 1 1 auto;
    }

    .pgh-library-panel > .pghw-section-head > .pghw-clear-history {
        margin-left: 51px;
    }

    .pgh-library-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .pgh-library-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pgh-library-summary a:first-child {
        grid-column: span 2;
    }

    .pgh-library-hero__actions > * {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pgh-library,
    .pgh-library * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
