/* Full-width discovery rails in the existing midnight visual language. */
.library-section{overflow:clip;padding-block:78px 75px}
.library-section .section-label{margin-bottom:30px}
.library-section .library-heading h2{font-size:clamp(44px,4.2vw,60px)}
.library-section .library-heading{align-items:flex-end;margin-bottom:32px}
.library-section .library-heading>p{max-width:375px;line-height:1.85}

.clinic-cinema{width:100vw;margin-inline:calc(50% - 50vw);display:grid;gap:19px}
.cinema-row{position:relative;isolation:isolate;min-width:0;width:100%}
.cinema-row:before,.cinema-row:after{content:"";position:absolute;top:0;bottom:0;width:65px;z-index:2;pointer-events:none}
.cinema-row:before{left:0;background:linear-gradient(90deg,#0b1120,transparent)}
.cinema-row:after{right:0;background:linear-gradient(-90deg,#0b1120,transparent)}
.cinema-viewport{width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;padding:5px 0;overflow-anchor:none}
.cinema-viewport::-webkit-scrollbar{display:none}
.cinema-track{display:flex;width:max-content;list-style:none;padding:0;margin:0;gap:16px;overflow-anchor:none}
.cinema-item{flex:none;width:222px;overflow-anchor:none}
.cinema-card{display:block;position:relative;isolation:isolate;height:332px;background:#182338;border:1px solid #b6c9e935;border-radius:4px;overflow:hidden;text-decoration:none;transition:border-color .25s,box-shadow .25s}
.cinema-card:after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,#050b1812 12%,#07101c08 35%,#050a1859 56%,#070c1aeb 82%,#080d1bf7)}
.cinema-poster{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 18%;filter:saturate(.62);transition:transform .6s cubic-bezier(.2,.7,.2,1),filter .5s}
.cinema-duration{position:absolute;right:13px;top:13px;background:#080e1bc9;border:1px solid #d8e4fc49;border-radius:20px;padding:4px 9px;font-size:10px;color:#eef3ff;line-height:1.5;font-variant-numeric:tabular-nums}
.cinema-caption{position:absolute;left:18px;right:18px;bottom:18px;display:flex;flex-direction:column;align-items:flex-start}
.cinema-play{display:grid;place-items:center;width:31px;height:31px;border:1px solid #d1dff2a8;background:#15233b88;border-radius:50%;margin-bottom:14px;color:#edf4ff;transition:background .25s,color .25s}
.cinema-play svg{width:12px;height:12px;margin-left:1px}
.cinema-topic{font-size:8px;text-transform:uppercase;letter-spacing:.075em;color:#bccde8;margin-bottom:8px;line-height:1.6}
.cinema-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-family:var(--body);font-size:15px;font-weight:500;letter-spacing:-.018em;line-height:1.38;color:#f0f4ff}
.cinema-card:hover{border-color:#d0e2ff8c;box-shadow:inset 0 0 0 1px #d4e4ff24}
.cinema-card:hover .cinema-poster{transform:scale(1.045);filter:saturate(.95)}
.cinema-card:hover .cinema-play{background:#edf3ff;color:#132540}
#library-app .cinema-card:focus-visible{outline:2px solid #eff5ff;outline-offset:-4px}
#library-app .cinema-arrow{position:absolute;z-index:3;top:calc(50% - 23px);display:grid;place-items:center;width:46px;height:46px;background:#0b1326e8;border:1px solid #bed0f266;border-radius:50%;color:#d8e6ff;box-shadow:0 4px 18px #0005}
.cinema-arrow>svg{width:20px;height:20px}
.cinema-back{left:15px}.cinema-next{right:15px}.cinema-back>svg{transform:rotate(180deg)}
#library-app .cinema-arrow:hover{background:#e5edff;color:#15233e}

.library-section .library-reading{margin-top:28px;font-size:12px}
@media(min-width:1600px){.cinema-item{width:250px}.cinema-card{height:365px}.cinema-title{font-size:17px}.cinema-caption{left:20px;right:20px;bottom:21px}}
@media(max-width:800px){.cinema-item{width:204px}.cinema-card{height:302px}.clinic-cinema{gap:13px}.cinema-track{gap:13px}.cinema-row:before,.cinema-row:after{width:38px}.cinema-back{left:10px}.cinema-next{right:10px}.cinema-caption{left:16px;right:16px;bottom:17px}.cinema-title{font-size:14px}}
@media(max-width:580px){.library-section{padding-bottom:52px}.library-section .library-heading{margin-bottom:26px}.library-section .library-heading>p{font-size:13px;line-height:1.8;max-width:350px}.cinema-item{width:174px}.cinema-card{height:264px}.cinema-track{gap:11px}.clinic-cinema{gap:10px}.cinema-caption{left:14px;right:14px;bottom:14px}.cinema-title{font-size:13px;line-height:1.38}.cinema-topic{font-size:7px;margin-bottom:6px;letter-spacing:.025em}.cinema-play{width:27px;height:27px;margin-bottom:10px}.cinema-play svg{width:10px;height:10px}.cinema-duration{top:11px;right:11px;font-size:9px;padding:3px 7px}.cinema-row:before,.cinema-row:after{width:25px}#library-app .cinema-arrow{width:44px;height:44px;top:calc(43% - 22px)}.cinema-back{left:5px}.cinema-next{right:5px}.cinema-arrow>svg{width:17px;height:17px}.library-section .library-reading{font-size:11px;line-height:1.7;margin-top:25px}}
@media(max-width:370px){.cinema-item{width:165px}.cinema-card{height:256px}}
@media(prefers-reduced-motion:reduce){.cinema-card,.cinema-poster,.cinema-play{transition:none!important}.cinema-card:hover .cinema-poster{transform:none}.cinema-viewport{scroll-behavior:auto!important}}
@media(max-width:580px){.library-section{padding-top:58px}.library-section .library-heading h2{font-size:41px}.library-section .section-label{margin-bottom:26px}}
@media(max-width:370px){.library-section .library-heading h2{font-size:36px}}

.cinema-fallback>p{font-size:15px;margin-bottom:25px;color:#bfcee6}.cinema-fallback ul{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:15px 35px}.cinema-fallback a{display:flex;justify-content:space-between;gap:18px;padding:17px 0;border-bottom:1px solid #aec5e633;min-height:50px;font-size:14px;line-height:1.7}.cinema-fallback a>span{color:#98b0d5;white-space:nowrap}@media(max-width:580px){.cinema-fallback ul{grid-template-columns:1fr}}

/* Keep the topic routes accessible without adding a second action under the films. */
.footer-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 32px;margin:28px 0 32px;padding-top:24px;border-top:1px solid var(--line)}
.footer-topics a{display:flex;align-items:center;min-height:44px;padding:8px 0;font-size:13px;line-height:1.6;color:var(--muted);text-decoration:underline;text-decoration-color:#a5b6d340;text-underline-offset:4px}
.footer-topics a:hover,.footer-topics a:focus-visible{color:var(--white);text-decoration-color:currentColor}
@media(max-width:800px){.footer-topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}}
@media(max-width:480px){.footer-topics{grid-template-columns:1fr;gap:0;margin:24px 0}.footer-topics a{font-size:14px}}
