/* Movie shelf: the carousel for movie-shelf.js. It is all layout here, from the first paint (no class a script adds),
   so the page never jumps when the script wires it. Colors come from the page (--ink); the cards keep their own. */
.movie-shelf{margin-top:28px}
.movie-shelf .shelf-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 6px 10px}
.movie-shelf .shelf-title{margin:0;font-family:"Baloo 2","Fredoka",system-ui,sans-serif;font-weight:800;font-size:30px;line-height:1.05;color:var(--ink,#243b35)}
.movie-shelf .shelf-count{margin:0;font-family:"Fredoka",system-ui,sans-serif;font-weight:600;font-size:18px;color:var(--ink,#243b35);opacity:.75;white-space:nowrap}
.movie-shelf .movie-track{position:relative;display:flex;gap:22px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 10px 14px 2px;scroll-padding-left:2px;-webkit-overflow-scrolling:touch}
.movie-shelf .movie-track::-webkit-scrollbar{display:none}
.movie-shelf .movie-track>.movie-card{flex:0 0 100%;margin-top:0;scroll-snap-align:start;scroll-snap-stop:always}
.movie-shelf .shelf-controls{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:4px}
.movie-shelf .shelf-arrow{flex:0 0 auto;display:grid;place-items:center;width:64px;height:64px;padding:0 0 3px;border-radius:50%;border:3px solid var(--ink,#243b35);background:#fff;color:var(--ink,#243b35);box-shadow:0 5px 0 var(--ink,#243b35);font:700 28px/1 system-ui,sans-serif;cursor:pointer;touch-action:manipulation;transition:transform .12s ease,box-shadow .12s ease}
.movie-shelf .shelf-arrow:active{transform:translateY(4px);box-shadow:0 1px 0 var(--ink,#243b35)}
.movie-shelf .shelf-arrow:focus-visible,.movie-shelf .shelf-poster:focus-visible{outline:4px solid #f6b73c;outline-offset:3px}
.movie-shelf .shelf-posters{position:relative;display:flex;gap:12px;overflow-x:auto;padding:8px 4px 8px;scrollbar-width:none}
.movie-shelf .shelf-posters::-webkit-scrollbar{display:none}
.movie-shelf .shelf-poster{flex:0 0 auto;width:112px;height:63px;padding:0;overflow:hidden;border-radius:12px;border:3px solid transparent;background:#1c1510;opacity:.55;cursor:pointer;touch-action:manipulation;transition:opacity .15s ease,transform .15s ease,border-color .15s ease}
.movie-shelf .shelf-poster img{display:block;width:100%;height:100%;object-fit:cover}
.movie-shelf .shelf-poster[aria-current="true"]{opacity:1;border-color:var(--ink,#243b35);transform:translateY(-3px);box-shadow:0 5px 0 var(--ink,#243b35)}
@media(max-width:700px){.movie-shelf .shelf-title{font-size:25px}.movie-shelf .shelf-arrow{width:56px;height:56px;font-size:24px}.movie-shelf .shelf-poster{width:80px;height:45px}.movie-shelf .shelf-controls{gap:8px}}
@media(prefers-reduced-motion:reduce){.movie-shelf .shelf-arrow,.movie-shelf .shelf-poster{transition:none}}
