/* Homepage-only refinements: retain the existing panels and 18px spacing. */
.split-panel + #boxsets { margin-top: 18px; }
.continue-item img { max-width: 100%; }
.continue-item--discovery {
    grid-template-columns: 110px minmax(0, 1fr);
    row-gap: 6px;
}
.continue-item--discovery img { grid-row: 1 / span 2; }
.continue-item--discovery strong { align-self: end; }
.continue-item--discovery small { grid-column: 2; align-self: start; }
.continue-item [hidden] { display: none; }
.gallery-shelf { position: relative; min-width: 0; }
.gallery-controls { position: absolute; z-index: 4; inset: 0 0 6px; pointer-events: none; }
.gallery-controls[hidden] { display: none; }
[data-home-gallery] .section-heading > a { margin-left: auto; }
/* Keep navigation visible above posters, including on touch screens. */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 52px;
    height: 72px;
    padding: 0;
    border: 2px solid var(--lime);
    border-radius: 12px;
    background: #101820;
    color: var(--lime);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .7), 0 0 14px rgba(155, 227, 58, .18);
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.gallery-arrow--previous { left: 4px; }
.gallery-arrow--next { right: 4px; }
.gallery-arrow svg { width: 32px; height: 32px; stroke-width: 3; }
.gallery-arrow:hover:not(:disabled), .gallery-arrow:focus-visible {
    background: var(--lime);
    color: #101820;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .7), 0 0 18px rgba(155, 227, 58, .3);
}
.gallery-arrow:active:not(:disabled) { background: #b5f465; }
.gallery-arrow:disabled { opacity: 0; visibility: hidden; pointer-events: none; }
.gallery-arrow:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.poster-track.is-gallery:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.poster-track.is-gallery { scrollbar-width: none; }
.poster-track.is-gallery::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
    .poster-track.is-gallery { cursor: grab; }
    .poster-track.is-gallery.is-dragging, .poster-track.is-gallery.is-dragging a { cursor: grabbing; user-select: none; }
}
@media (prefers-reduced-motion: reduce) { .gallery-arrow { transition: none; } }
@media (max-width: 640px) {
    .gallery-arrow { width: 44px; height: 60px; border-radius: 10px; }
    .gallery-arrow svg { width: 28px; height: 28px; }
    .continue-item--discovery { grid-template-columns: 92px minmax(0, 1fr); }
    [data-home-gallery] .section-heading { gap: 8px; flex-wrap: wrap; }
}
