.library-label-mobile,
.library-poster-resume {
    display: none;
}

.library-main {
    width: min(100% - 96px, 1400px);
    min-height: 70vh;
    margin: 0 auto;
    padding: 56px 0 72px;
}

.library-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.library-eyebrow {
    color: #ff4385;
    font-size: 10px;
    letter-spacing: 2px;
}

.library-heading h1 {
    margin: 10px 0 12px;
    font-size: clamp(30px, 3vw, 44px);
    letter-spacing: -1.5px;
}

.library-heading h1 span {
    color: var(--pink);
}

.library-heading p:last-child,
.library-toolbar p {
    color: #999eab;
    font-size: 14px;
    line-height: 1.6;
}

.library-explore {
    display: flex;
    gap: 28px;
    padding: 14px 18px;
    border: 1px solid #2b2d36;
    border-radius: 10px;
    font-size: 13px;
}

.library-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 40px;
}

.library-navigation a {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 16px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #aaaebb;
    font-size: 13px;
}

.library-navigation a[aria-current="page"] {
    border-color: #ff126130;
    background: #ff126110;
    color: #ff4e8a;
}

.library-navigation [data-count] {
    margin-left: auto;
    font-size: 11px;
}

.library-navigation > p {
    margin: 28px 12px;
    color: #737985;
    font-size: 12px;
    line-height: 1.8;
}

.library-content {
    min-width: 0;
}

.library-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.library-toolbar h2 {
    margin: 0;
    font-size: 23px;
}

.library-toolbar p {
    margin: 8px 0 0;
}

#library-clear {
    padding: 10px 0 10px 12px;
    color: #c2a0ae;
    font-size: 12px;
}

.library-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    padding: 12px 16px;
    border: 1px solid #292d36;
    border-radius: 10px;
    background: #101319;
    color: #9299a7;
}

.library-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #f7f7f9;
    font-size: 14px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
}

.library-card {
    position: relative;
    min-width: 0;
}

.library-card .poster {
    display: block;
    aspect-ratio: 3 / 4;
    height: auto;
    margin-bottom: 12px;
}

.library-card h3 {
    margin: 0 0 7px;
    font-size: 14px;
    line-height: 1.4;
}

.library-card p,
.library-card time {
    margin: 0 0 6px;
    color: #989eab;
    font-size: 12px;
    line-height: 1.5;
}

.library-card .library-resume {
    margin-top: 12px;
    color: #ff4e8a;
    font-weight: 600;
}

.library-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ffffff30;
    border-radius: 50%;
    background: #08090bd9;
    color: #fff;
    font-size: 20px;
}

.library-remove:hover,
.library-remove:focus-visible {
    background: #c40046;
}

.library-progress {
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: #34343e;
}

.library-progress span {
    display: block;
    height: 100%;
    background: var(--pink);
}

.library-empty {
    grid-column: 1 / -1;
    padding: 70px 24px;
    border: 1px solid #242831;
    border-radius: 16px;
    background: radial-gradient(ellipse at top, #ff12610b, transparent 65%), #0d1015;
    text-align: center;
}

.library-empty-icon {
    display: inline-flex;
    padding: 20px;
    border-radius: 50%;
    background: #ff126112;
    color: #ff4e8a;
}

.library-empty h2 {
    margin: 22px 0 10px;
    font-size: 23px;
}

.library-empty p {
    max-width: 390px;
    margin: 0 auto 26px;
    color: #989eab;
    font-size: 14px;
    line-height: 1.8;
}

.library-primary {
    display: inline-flex;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 8px;
    background: var(--pink);
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.library-confirm {
    width: min(440px, calc(100% - 32px));
    padding: 28px;
    border: 1px solid #343843;
    border-radius: 16px;
    background: #11151d;
    color: #f7f7f9;
}

.library-confirm p {
    color: #a7adba;
    line-height: 1.7;
}

.library-confirm form > div {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 24px;
}

@media (min-width: 761px) and (max-width: 1100px) {
    .library-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 24px;
    }

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

@media (max-width: 760px) {
    .library-page {
        background: #050505;
    }

    .library-page > .site-header {
        position: relative;
        display: flex;
        height: 74px;
        padding: 0 4%;
        border: 0;
    }

    .library-page .dracinmax-header .brand {
        gap: 9px;
        font-size: clamp(23px, 6vw, 32px);
        letter-spacing: -.8px;
    }

    .library-page .dracinmax-header .brand-symbol {
        width: 35px;
        height: 38px;
        border-radius: 10px;
        font-size: 22px;
    }

    .library-page .dracinmax-header .header-actions {
        flex: 0 0 auto;
        min-width: 0;
    }

    .library-page .header-actions .search-trigger {
        display: none;
    }

    .library-page .mobile-home-profile {
        display: grid;
        place-items: center;
        width: 39px;
        height: 39px;
        border: 1px solid #ffffff06;
        border-radius: 50%;
        background: #20242f;
        color: #f7f8fb;
    }

    .library-page .mobile-home-profile svg {
        width: 23px;
        height: 23px;
    }

    .library-main {
        width: auto;
        padding: 24px 12px 110px;
    }

    .library-heading {
        display: none;
    }

    .library-heading h1 {
        font-size: 30px;
    }

    .library-heading p:last-child {
        max-width: 270px;
        font-size: 12px;
    }

    .library-explore,
    .library-navigation > p,
    .library-navigation a > [data-icon],
    .library-label-desktop,
    .library-navigation [data-count],
    .library-toolbar > div,
    .library-search {
        display: none;
    }

    .library-label-mobile {
        display: inline;
    }

    .library-layout {
        display: block;
    }

    .library-navigation {
        display: flex;
        gap: 24px;
        margin-bottom: 24px;
        padding: 0;
    }

    .library-navigation a {
        justify-content: center;
        gap: 8px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        color: #75777e;
        font-size: 18px;
        font-weight: 700;
    }

    .library-navigation a[aria-current="page"] {
        background: transparent;
        color: #ff4076;
    }

    .library-toolbar h2 {
        font-size: 19px;
    }

    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }

    .library-card .poster {
        aspect-ratio: 2 / 3;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .library-card h3 {
        overflow: hidden;
        margin-bottom: 4px;
        font-size: 12px;
        font-weight: 500;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .library-card p {
        font-size: 10px;
    }

    .library-card time,
    .library-card .library-resume,
    .library-episode-meta {
        display: none;
    }

    .library-card .poster-title {
        bottom: 28px;
        font-size: clamp(19px, 5vw, 30px);
    }

    .library-poster-resume {
        position: absolute;
        inset: auto 10px 12px;
        z-index: 2;
        display: block;
        color: #ddd;
        font-size: 9px;
    }

    .library-toolbar {
        justify-content: flex-end;
    }

    #library-clear {
        margin: -10px 0 14px;
        padding: 0;
        font-size: 11px;
    }

    .library-empty {
        padding: 48px 20px;
    }
}
.library-complete { margin: 8px 0; border: 1px solid #ffffff30; border-radius: 8px; padding: 8px 12px; background: #151c28; color: #fff; font: inherit; cursor: pointer; }
.library-complete:hover { border-color: #ff006a; }
.library-navigation { overflow-x: auto; }
