.cinema-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: clamp(26rem, 44vw, 34rem);
    overflow: hidden;
    border: 1px solid #292233;
    border-radius: 1.5rem;
    background: #100e17;
    color: #fff;
}

/* Tiap sorotan menempati sel grid yang sama, sehingga tinggi banner ditentukan slide
   terpanjang dan tidak berubah saat slide berganti. Yang tidak aktif disembunyikan;
   tanpa JS hanya slide pertama yang tampil. */
.cinema-hero__slide {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-area: 1 / 1;
    align-items: end;
    min-height: clamp(26rem, 44vw, 34rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility 0s linear .7s;
}

.cinema-hero__slide.is-active,
.cinema-hero__slide:first-child {
    opacity: 1;
    visibility: visible;
    transition: opacity .7s ease, visibility 0s;
}

.cinema-hero__slide:focus-visible { outline: 3px solid white; outline-offset: -4px; }
.cinema-hero__slide { color: inherit; text-decoration: none; }
.cinema-hero__slide.is-off {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility 0s linear .7s;
}

@media (prefers-reduced-motion: reduce) {
    .cinema-hero__slide,
    .cinema-hero__slide.is-active {
        transition: none;
    }
}

/* Gambar slide yang belum tampil baru diunduh setelah halaman selesai dimuat
   (landing.blade.php: warm()). */
.cinema-hero__slide:not(.is-active) .cinema-hero__art[loading="lazy"] {
    display: none;
}

.cinema-hero__art,
.cinema-hero__slide::before {
    position: absolute;
    z-index: -1;
    inset: 0;
}

.cinema-hero__art {
    inset-inline-start: auto;
    width: 73%;
    height: 100%;
    object-fit: cover;
    object-position: center 31%;
}

.cinema-hero__slide::before {
    z-index: 0;
    background:
        linear-gradient(90deg, #100e17 15%, rgb(16 14 23 / 92%) 34%, rgb(16 14 23 / 28%) 68%, transparent 100%),
        linear-gradient(0deg, rgb(16 14 23 / 84%), transparent 48%);
    content: "";
    pointer-events: none;
}

.cinema-hero__content {
    position: relative;
    max-width: 41rem;
    padding: clamp(1.5rem, 4vw, 4rem);
}

.cinema-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #dfcbff;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cinema-hero h1,
.cinema-hero__title {
    margin: .55rem 0 .85rem;
    font-size: clamp(2.15rem, 4.75vw, 4.5rem);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -.045em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.cinema-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .65rem;
    color: #e0dbe8;
    font-size: .875rem;
}

.cinema-hero__meta li + li::before {
    margin-inline-end: .65rem;
    color: #c29af8;
    content: "·";
}

.cinema-hero__intro {
    display: -webkit-box;
    max-width: 34rem;
    margin-top: .9rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #e0dbe8;
    font-size: .95rem;
    line-height: 1.55;
}

.cinema-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.5rem;
}

.cinema-hero__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.75rem;
    border: 1px solid transparent;
    border-radius: .65rem;
    padding: .55rem .9rem;
    font-size: .875rem;
    font-weight: 600;
}

.cinema-hero__primary {
    background: #fff;
    color: #181221;
}

.cinema-hero__primary:hover {
    background: #e9dbff;
}

.cinema-hero__actions .cinema-hero__secondary {
    border-color: rgb(255 255 255 / 35%);
    background: rgb(16 14 23 / 65%);
    color: #fff;
}

.cinema-hero__actions .cinema-hero__secondary:hover {
    background: #342542;
}

/* Kontrol sorotan (panah + titik). Di layar sempit dinaikkan ke pojok atas supaya tidak menimpa tombol. */
.cinema-hero__nav {
    position: absolute;
    z-index: 1;
    inset-inline-end: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    padding: .3rem .45rem;
    background: rgb(16 14 23 / 72%);
    backdrop-filter: blur(8px);
}

.cinema-hero__nav button {
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding: 0;
    color: #fff;
    cursor: pointer;
    transition: background-color .2s;
}

.cinema-hero__arrow {
    width: 2rem;
    height: 2rem;
}

.cinema-hero__arrow:hover {
    background: rgb(255 255 255 / 14%);
}

.cinema-hero__dots {
    display: flex;
    gap: .4rem;
}

.cinema-hero__dot {
    width: .9rem;
    height: .9rem;
    background: rgb(255 255 255 / 32%);
}

.cinema-hero__dot:hover {
    background: rgb(255 255 255 / 70%);
}

.cinema-hero__dot[aria-current='true'] {
    background: #fff;
}

.cinema-hero__actions a:focus-visible,
.cinema-hero__nav button:focus-visible {
    outline: 2px solid #a783df;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .cinema-hero__nav {
        top: .9rem;
        bottom: auto;
    }
}

/* Keep homepage rows tight without changing other catalog pages. */
.cinema-hero ~ section.scroll-mt-24 { margin-bottom: 1rem; }
.cinema-hero ~ section.scroll-mt-24 > div:first-child { margin-bottom: .5rem; }
.cinema-hero ~ section.scroll-mt-24 h2 { margin-top: 0; }
/* Align featured artwork with the poster rows. */
.cinema-hero {
    margin: 0 0 .85rem;
    border: 0;
    border-radius: clamp(14px, 1.6vw, 22px);
    touch-action: pan-y pinch-zoom;
    user-select: none;
}
.cinema-hero .cinema-hero__art { width: 100%; }
.cinema-hero .cinema-hero__content { padding-inline: clamp(1rem, 3.6vw, 3rem); }
@media (min-width: 768px) {
    .cinema-hero__content { padding-bottom: 4rem; }
    .cinema-hero__slide::before { background: linear-gradient(90deg, rgb(9 9 13 / 87%), rgb(9 9 13 / 48%) 39%, transparent 77%), linear-gradient(0deg,rgb(9 9 13 / 74%),transparent 52%); }
}
.cinema-hero__count { display: none; }
@media (max-width: 639px) {
    .cinema-hero { min-height: 0; }
    .cinema-hero__slide { min-height: clamp(14rem, 57vw, 17rem); min-width: 0; }
    .cinema-hero__art { width: 100%; height: 100%; object-position: center 30%; }
    .cinema-hero__slide::before { background: linear-gradient(0deg,#100e17 0%,rgb(12 11 19 / 80%) 22%,transparent 78%),linear-gradient(90deg,rgb(12 11 19 / 45%),transparent 80%); }
    .cinema-hero__content { padding: 3.25rem 1rem .85rem; min-width: 0; }
    .cinema-hero__slide .cinema-hero__intro, .cinema-hero__eyebrow, .cinema-hero__dots { display: none; }
    .cinema-hero h1, .cinema-hero__title { margin: 0 0 .32rem; font-size: clamp(1.45rem,6vw,2rem); line-height: 1.08; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .cinema-hero__meta { font-size: .76rem; }
    .cinema-hero__meta li:nth-child(n+4) { display:none; }
    .cinema-hero__actions { margin-top: .65rem; gap: .5rem; }
    .cinema-hero__actions a { padding: .45rem .75rem; font-size: .8rem; }
    .cinema-hero__actions .cinema-hero__secondary { border-color:transparent; background:transparent; }
    .cinema-hero__nav { top: .5rem; right: .5rem; padding: 0; gap: 0; }
    .cinema-hero__count { display:block; font: 600 .7rem/1 system-ui; font-variant-numeric:tabular-nums; }
}