/* Runtime home and library page ownership. */

/* BEGIN source style.css:691-870 home-library-pages */
.home-sections,
.library-page {
    margin: 0;
}

.library-page {
    display: flex;
    flex-direction: column;
    gap: 32px;
    font-size: 0.8rem;
}

.page-shell:has(.home-sections),
.page-shell:has(.library-page) {
    padding: 27px 32px 38px;
}

.home-sections {
    gap: 32px;
}

.library-page > h1 {
    margin-bottom: 19px;
    font-size: clamp(1.6rem, 3.2vw, 3.76rem);
}

.home-sections .film-shelf,
.library-page .film-shelf {
    width: 100%;
}

.home-sections .shelf-heading,
.library-page .shelf-heading {
    gap: 13px;
    margin-bottom: 10px;
    padding: 0 3px;
}

.home-sections .shelf-heading h2,
.library-page .film-shelf > h2,
.library-page .shelf-heading h2 {
    font-size: 1.2rem;
}

.home-sections .shelf-controls {
    gap: 6px;
}

.home-sections .shelf-controls button {
    width: 26px;
    height: 26px;
    min-height: 26px;
    font-size: 1.08rem;
}

.home-sections .image-preview,
.library-page .image-preview {
    gap: 16px;
}

.home-sections .poster-card,
.home-sections .image-preview > a,
.home-sections .image-preview > div {
    flex: 0 0 auto;
    width: fit-content;
    min-width: 0;
    max-width: none;
    gap: 8px;
}

.library-page .poster-card,
.library-page .image-preview > a,
.library-page .image-preview > div {
    flex: 0 0 auto;
    width: fit-content;
    min-width: 0;
    max-width: none;
    gap: 8px;
}

.home-sections .poster-card img,
.home-sections .image-preview img {
    width: auto;
    height: 254px !important;
    object-fit: contain;
}

.library-page .poster-card img,
.library-page .image-preview img {
    width: auto;
    height: 254px !important;
    object-fit: contain;
}

.home-sections .poster-title,
.home-sections .image-preview span {
    display: block;
    max-width: 205px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
}

.library-page .poster-title,
.library-page .image-preview span {
    font-size: 0.8rem;
}

.home-sections .spotlight-shelf {
    width: 100%;
    min-height: 365px;
}

.home-sections .spotlight-shelf .shelf-heading h2 {
    font-size: 1.2rem;
}

.home-sections .spotlight-shelf .image-preview {
    gap: 13px;
    padding: 0 3px 26px;
}

.home-sections .spotlight-shelf .poster-card {
    flex: 0 0 auto;
    width: fit-content;
    min-width: 0;
    max-width: none;
}

.home-sections .spotlight-shelf .poster-card img {
    width: auto;
    height: 264px !important;
    object-fit: contain;
}

.home-sections .spotlight-shelf .poster-title {
    max-width: 260px;
    font-size: 0.76rem;
}

.home-sections .shelf-dots {
    bottom: 3px;
    gap: 6px;
}

.home-sections .shelf-dots button {
    width: 6px;
    height: 6px;
    min-height: 6px;
}

.home-sections .shelf-dots button.active {
    width: 22px;
}

@media (min-width: 1024px) {
    .home-sections .spotlight-shelf .poster-card {
        flex: 0 0 auto;
        width: fit-content;
        min-width: 0;
        max-width: none;
    }

    .home-sections .spotlight-shelf .poster-card img {
        width: auto;
        height: 318px !important;
        object-fit: contain;
    }
}

.home-sections .featured-shelf {
    max-width: none;
    padding: 16px 13px;
}

.home-sections .featured-shelf .poster-card {
    flex: 0 0 auto;
    width: fit-content;
    min-width: 0;
    max-width: none;
}

.home-sections .featured-shelf .poster-card img {
    width: auto;
    height: 268px !important;
    object-fit: contain;
}

.home-sections .discovery-queue {
    gap: 19px;
    margin: 18px 0 27px;
    padding: 19px 22px;
}

.home-sections .discovery-copy h2 {
    font-size: clamp(1.12rem, 1.6vw, 1.6rem);
}

.home-sections .discovery-button {
    min-width: 141px;
    min-height: 37px;
    padding: 10px 18px;
}

.filter-bar {
    margin-top: 12px;
}

/* END source style.css:691-870 home-library-pages */

/* BEGIN source style.css:3495-3544 mobile-home-library */
@media (max-width: 700px) {
    .page-shell:has(.home-sections),
    .page-shell:has(.library-page) {
        padding: 19px 13px 26px;
    }

    .home-sections,
    .library-page {
        gap: 26px;
    }

    .home-sections .spotlight-shelf .poster-card {
        flex: 0 0 auto;
        width: fit-content;
        min-width: 0;
        max-width: none;
    }

    .home-sections .spotlight-shelf .poster-card img {
        width: auto;
        height: 264px !important;
        object-fit: contain;
    }

    .home-sections .featured-shelf .poster-card {
        flex: 0 0 auto;
        width: fit-content;
        min-width: 0;
        max-width: none;
    }

    .home-sections .featured-shelf .poster-card img {
        width: auto;
        height: 219px !important;
        object-fit: contain;
    }

    .home-sections .poster-card,
    .home-sections .image-preview > a,
    .home-sections .image-preview > div {
        flex: 0 0 auto;
        width: fit-content;
        min-width: 0;
        max-width: none;
    }

    .library-page .poster-card,
    .library-page .image-preview > a,
    .library-page .image-preview > div {
        flex: 0 0 auto;
        width: fit-content;
        min-width: 0;
        max-width: none;
    }

    .home-sections .poster-card img,
    .home-sections .image-preview img {
        width: auto;
        height: 194px !important;
        object-fit: contain;
    }

    .library-page .poster-card img,
    .library-page .image-preview img {
        width: auto;
        height: 194px !important;
        object-fit: contain;
    }
}
/* END source style.css:3495-3544 mobile-home-library */
