/**
 * Portal home page — hero, search panel, features, carousels and the
 * home-only sections (schedule strip, theaters, news, about, contact).
 * Loaded only on the home route, after portal-tokens.css + portal-shell.css.
 *
 * Unified breakpoints: 1180 / 760 / 420 (see portal-tokens.css).
 */

/* ========== Animated background grid (home only) ========== */
.portal-body--home {
    position: relative;
}

.portal-grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.portal-grid-bg__mesh,
.portal-grid-bg__sheen {
    position: absolute;
    inset: -12%;
    display: block;
}

.portal-grid-bg__mesh {
    background-image:
        linear-gradient(rgba(122, 24, 36, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 24, 36, 0.045) 1px, transparent 1px),
        linear-gradient(rgba(197, 160, 109, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 109, 0.055) 1px, transparent 1px);
    background-size:
        56px 56px,
        56px 56px,
        14px 14px,
        14px 14px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    opacity: 0.55;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 78%);
    animation: portalGridDrift 28s linear infinite;
}

.portal-grid-bg__sheen {
    background:
        radial-gradient(ellipse 48% 36% at 78% 18%, rgba(197, 160, 109, 0.12), transparent 70%),
        radial-gradient(ellipse 42% 40% at 12% 72%, rgba(122, 24, 36, 0.07), transparent 68%);
    animation: portalGridSheen 10s ease-in-out infinite alternate;
}

/* Keep stacking natural so header/drawer stay fixed/sticky above the grid. */
@keyframes portalGridDrift {
    from {
        transform: translate3d(0, 0, 0);
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    to {
        transform: translate3d(-28px, -28px, 0);
        background-position: 56px 56px, 56px 56px, 14px 14px, 14px 14px;
    }
}

@keyframes portalGridSheen {
    from {
        opacity: 0.55;
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        opacity: 0.9;
        transform: translate3d(1.5%, -1%, 0) scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-grid-bg__mesh,
    .portal-grid-bg__sheen {
        animation: none;
    }
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: clamp(560px, 84vh, 760px);
    isolation: isolate;
    overflow: hidden;
    background: #0a0a0a;
}

.hero__media,
.hero__scrim,
.hero__shade,
.hero__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__media {
    z-index: 0;
}

.hero__media picture,
.hero__media img {
    width: 100%;
    height: 100%;
    display: block;
}

.hero__media img {
    object-fit: cover;
    object-position: left center;
    transform: scale(1.01);
    animation: heroKenBurns 26s ease-in-out infinite alternate;
    opacity: 1;
    filter: contrast(1.04) saturate(1.06) brightness(1.02);
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    will-change: transform;
}

.hero__scrim {
    z-index: 1;
    background:
        linear-gradient(
            100deg,
            rgba(10, 10, 10, 0.1) 0%,
            rgba(10, 10, 10, 0.35) 32%,
            rgba(10, 10, 10, 0.72) 58%,
            rgba(10, 10, 10, 0.92) 74%,
            #0a0a0a 100%
        ),
        linear-gradient(
            180deg,
            rgba(10, 10, 10, 0.45) 0%,
            transparent 28%,
            transparent 62%,
            rgba(10, 10, 10, 0.55) 100%
        );
}

.hero__shade {
    z-index: 1;
    box-shadow:
        inset 0 -80px 100px rgba(0, 0, 0, 0.22),
        inset 0 60px 80px rgba(0, 0, 0, 0.12);
    background: radial-gradient(
        ellipse at 72% 45%,
        rgba(10, 10, 10, 0.1) 0%,
        transparent 55%
    );
}

.hero__glow {
    z-index: 1;
    background:
        radial-gradient(ellipse 42% 38% at 78% 42%, rgba(197, 160, 89, 0.12), transparent 70%),
        radial-gradient(ellipse 30% 28% at 18% 70%, rgba(109, 14, 14, 0.08), transparent 65%);
    animation: glowPulse 7s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 2.5rem));
    margin-inline: auto;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 0 9.5rem;
    max-width: 560px;
    margin-right: max(1.25rem, calc((100% - 1200px) / 2 + 1.25rem));
    margin-left: auto;
}

.hero__eyebrow {
    margin: 0 0 0.85rem;
    color: var(--gold);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.hero__eyebrow-icon {
    color: var(--gold);
    animation: softSpin 8s linear infinite;
}

.hero__brand {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.6rem, 5.4vw, 4rem);
    line-height: 1.12;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0;
    text-wrap: pretty;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero__brand-reveal {
    display: inline;
}

[data-reveal="hero"] .hero__brand-reveal {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
    transform: translate3d(0, 14px, 0);
    will-change: clip-path, opacity, transform;
}

[data-reveal="hero"].is-visible .hero__brand-reveal {
    animation: heroBrandReveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

@keyframes heroBrandReveal {
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: none;
    }
}

.hero__lead {
    margin: 1.15rem 0 1.9rem;
    color: #cccccc;
    font-size: 1.1rem;
    max-width: 32ch;
    line-height: 1.85;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.btn--hero {
    background: linear-gradient(180deg, #800000, #6d0e0e);
    color: #fff;
    padding: 1rem 1.55rem;
    border-radius: 14px;
    font-size: 1.02rem;
    box-shadow:
        0 16px 34px rgba(109, 14, 14, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--hero:hover {
    background: linear-gradient(180deg, #6d0e0e, #4b0e0e);
    color: #fff;
}

.btn--hero-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid var(--gold);
    padding: 1rem 1.35rem;
    border-radius: 14px;
    font-weight: 800;
}

.btn--hero-outline:hover {
    background: rgba(197, 160, 89, 0.12);
    border-color: var(--gold-soft);
    color: var(--gold-soft);
}

@keyframes heroKenBurns {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1%, -0.8%, 0); }
}

/* ========== Search ========== */
.search-panel {
    width: min(1200px, calc(100% - 2.5rem));
    margin: -5.2rem auto 0;
    position: relative;
    z-index: 5;
}

.field label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--muted);
}

.field label svg {
    color: var(--gold-deep);
    flex-shrink: 0;
}

.search-panel__inner {
    background: rgba(22, 22, 22, 0.96);
    border: 1px solid rgba(197, 160, 89, 0.22);
    border-radius: 24px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
    padding: 1.3rem 1.4rem 1.4rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.search-panel__heading h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.search-panel__heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
}

.search-panel__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: rgba(197, 160, 89, 0.14);
}

.search-panel__form {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr auto;
    gap: 0.8rem;
    align-items: end;
}

.field select,
.field input {
    width: 100%;
    height: 50px;
    border-radius: 13px;
    border: 1px solid rgba(197, 160, 89, 0.22);
    background: #0e0e0e;
    padding: 0 0.95rem;
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field select:focus,
.field input:focus {
    border-color: rgba(197, 160, 89, 0.45);
    background: #121212;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.search-panel__submit {
    height: 50px;
    min-width: 118px;
    padding-inline: 1.4rem;
}

/* ========== Features ========== */
.features {
    padding: 3.4rem 0 1.2rem;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.feature {
    position: relative;
    background: linear-gradient(180deg, #181818, #121212);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.45rem 1.25rem 1.35rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature::before {
    content: "";
    position: absolute;
    inset-inline: 1.1rem;
    top: 0;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0.85;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 109, 0.35);
    box-shadow: var(--shadow-md);
}

.feature__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: rgba(197, 160, 89, 0.14);
    border: 1px solid rgba(197, 160, 89, 0.32);
    margin-bottom: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature__icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.feature:hover .feature__icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.feature__icon--support {
    color: #f0cc7a;
    background: rgba(197, 160, 89, 0.2);
    border-color: rgba(240, 204, 122, 0.45);
}

.feature:hover .feature__icon--support {
    color: #ffe4a8;
    background: rgba(197, 160, 89, 0.28);
    border-color: rgba(255, 228, 168, 0.55);
}

.feature__icon--seats {
    color: #ff8a94;
    background: rgba(109, 14, 14, 0.3);
    border-color: rgba(255, 138, 148, 0.42);
}

.feature:hover .feature__icon--seats {
    color: #ffb3ba;
    background: rgba(109, 14, 14, 0.4);
    border-color: rgba(255, 179, 186, 0.5);
}

.feature__icon--pay {
    color: #6ee7a8;
    background: rgba(31, 157, 85, 0.22);
    border-color: rgba(110, 231, 168, 0.4);
}

.feature:hover .feature__icon--pay {
    color: #9ef0c4;
    background: rgba(31, 157, 85, 0.32);
    border-color: rgba(158, 240, 196, 0.48);
}

.feature__icon--ticket {
    color: #f5b84a;
    background: rgba(197, 160, 89, 0.18);
    border-color: rgba(245, 184, 74, 0.44);
}

.feature:hover .feature__icon--ticket {
    color: #ffd06a;
    background: rgba(197, 160, 89, 0.26);
    border-color: rgba(255, 208, 106, 0.52);
}

.feature h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* ========== Sections ========== */
.section {
    padding: 2.8rem 0 1.4rem;
}

.section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.section__heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.section__heading h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 800;
}

.section__ornament {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--gold-deep);
    background: rgba(197, 160, 109, 0.14);
}

.section__more {
    color: var(--maroon);
    font-weight: 800;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.25s ease, color 0.25s ease;
}

.section__more:hover {
    gap: 0.55rem;
    color: var(--maroon-deep);
}

.section__eyebrow {
    margin: 0 0 0.15rem;
    color: var(--gold-deep, #8a6a3d);
    font-size: 0.78rem;
    font-weight: 800;
}

.section--available {
    padding-top: clamp(1.4rem, 3vw, 2rem);
    background:
        linear-gradient(180deg, rgba(122, 24, 36, 0.045), transparent 55%);
}

.section--available .section__ornament {
    background: rgba(122, 24, 36, 0.1);
    color: var(--maroon);
}

/* ========== Carousel ========== */
.carousel {
    position: relative;
}

.carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    container-type: inline-size;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    scrollbar-width: none;
    padding-block: 0.15rem 0.35rem;
    direction: ltr;
    touch-action: pan-x;
    contain: layout style;
}

.carousel__viewport::-webkit-scrollbar {
    display: none;
}

.carousel__track {
    display: flex;
    gap: 1rem;
    width: max-content;
    min-width: 100%;
    direction: rtl;
}

.carousel__btn {
    position: absolute;
    top: 42%;
    translate: 0 -50%;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
    color: var(--ink);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.carousel__btn:hover {
    color: var(--maroon);
    box-shadow: var(--shadow-md);
}

.carousel__btn:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

.carousel__btn--next { left: -0.75rem; }
.carousel__btn--prev { right: -0.75rem; }

.carousel__dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(122, 24, 36, 0.22);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.carousel__dot.is-active {
    width: 22px;
    background: var(--maroon);
}

/* ========== Show card (home carousels) ========== */
.show-card {
    flex: 0 0 calc((100cqi - 2rem) / 3);
    width: calc((100cqi - 2rem) / 3);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.show-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.show-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1a1214;
}

.show-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.7s ease;
}

.show-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(18, 8, 10, 0.35) 100%);
    pointer-events: none;
}

.show-card:hover .show-card__media img {
    transform: scale(1.06);
}

.show-card__body {
    padding: 0.85rem 0.9rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.show-card__body h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.show-card__theater {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.show-card__date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.84rem;
    margin: 0.15rem 0 0.75rem;
}

.show-card__cta {
    margin-top: auto;
    width: 100%;
}

.show-card__badge {
    position: absolute;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    z-index: 2;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    backdrop-filter: blur(6px);
}

.show-card__badge--live {
    background: rgba(28, 120, 72, 0.92);
    color: #fff;
}

.show-card__badge--ended {
    background: rgba(40, 28, 30, 0.82);
    color: rgba(255, 255, 255, 0.92);
}

.show-card--ended .show-card__media img {
    filter: grayscale(0.28) saturate(0.85);
}

.btn--ghost-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: 12px;
    border: 1.5px solid var(--line-strong, #d7cfc8);
    background: transparent;
    color: var(--ink);
    font-weight: 700;
}

.btn--ghost-card:hover {
    border-color: var(--maroon);
    color: var(--maroon);
}

/* ========== Schedule / theaters / news / about / contact panels ========== */
.schedule-strip,
.contact-panel,
.about-panel,
.news-band {
    border-radius: 24px;
    overflow: hidden;
}

.schedule-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.7rem 1.8rem;
    background:
        linear-gradient(120deg, rgba(122, 24, 36, 0.96), rgba(90, 16, 25, 0.92)),
        var(--maroon);
    color: #fff;
    box-shadow: 0 18px 40px rgba(122, 24, 36, 0.2);
}

.schedule-strip__copy {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.schedule-strip__icon,
.contact-panel__icon,
.about-panel__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--gold-soft);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(223, 199, 154, 0.22);
}

.about-panel__icon {
    color: var(--gold-deep);
    background: rgba(197, 160, 109, 0.14);
    border-color: rgba(197, 160, 109, 0.2);
}

.schedule-strip__eyebrow,
.about-panel__eyebrow,
.contact-panel__eyebrow,
.news-band__eyebrow {
    margin: 0 0 0.35rem;
    color: var(--gold-soft);
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.about-panel__eyebrow {
    color: var(--gold-deep);
}

.schedule-strip h2,
.about-panel h2,
.contact-panel h2,
.news-band h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.35;
}

.schedule-strip .btn--ticket {
    background: #fff;
    color: var(--maroon);
    box-shadow: none;
    flex-shrink: 0;
}

.schedule-strip .btn--ticket:hover {
    background: var(--gold-soft);
    color: var(--ink);
}

.home-theaters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-theater {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface, #161616);
    border: 1px solid rgba(197, 160, 89, 0.22);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    color: inherit;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-theater:hover {
    transform: translateY(-3px);
    border-color: rgba(197, 160, 89, 0.42);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.home-theater__visual {
    width: clamp(84px, 22%, 108px);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    padding: 0.7rem 0.55rem;
    aspect-ratio: auto;
    min-height: 100%;
    background:
        radial-gradient(circle at 30% 20%, rgba(197, 160, 89, 0.1), transparent 55%),
        linear-gradient(160deg, #1a1410 0%, #121010 48%, #161210 100%);
    border-inline-start: 1px solid rgba(197, 160, 89, 0.12);
    border-bottom: 0;
}

.home-theater__visual img {
    width: auto;
    height: 46px;
    max-width: 92%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
    transition: transform 0.35s ease;
}

.home-theater:hover .home-theater__visual img {
    transform: scale(1.04);
}

.home-theater__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.8rem 0.95rem;
    flex: 1;
    min-width: 0;
}

.home-theater__body h3 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.4;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-theater__body p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
}

.home-theater__body p svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.home-theater__cta {
    margin-top: 0.35rem;
    padding-top: 0;
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.home-theater:hover .home-theater__cta {
    color: #fff;
}

.section--theaters {
    padding-top: 2.2rem;
    padding-bottom: 1rem;
}

/* legacy theater-grid kept for safety */
.theater-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.theater-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    color: inherit;
}

.theater-card__media {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f7f1e8;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.theater-card__media img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.theater-card:hover .theater-card__media img {
    transform: scale(1.05);
}

.theater-card h3 {
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.65rem 0.45rem;
    box-shadow: var(--shadow-sm);
}

.news-band {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    min-height: 220px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.news-band__copy {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-band__copy > p:not(.news-band__eyebrow) {
    margin: 0.75rem 0 0;
    color: var(--muted);
    max-width: 42ch;
}

.news-band__cta {
    margin-top: 1.15rem;
    width: fit-content;
}

.news-band__visual {
    background:
        linear-gradient(135deg, rgba(122, 24, 36, 0.55), rgba(18, 8, 10, 0.35)),
        url("../../images/auth/login-theater-bg.webp") center/cover;
    position: relative;
    overflow: hidden;
}

.news-band__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(223, 199, 154, 0.12) 50%, transparent 70%);
    animation: shimmerSweep 5.5s ease-in-out infinite;
}

.about-panel {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 2.1rem 2rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(197, 160, 109, 0.18), transparent 40%),
        linear-gradient(180deg, #fff, #fbf8f3);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.about-panel p:last-child {
    margin: 0.8rem 0 0;
    color: var(--muted);
    max-width: 58ch;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.8rem 1.9rem;
    background:
        linear-gradient(125deg, rgba(122, 24, 36, 0.97), rgba(90, 16, 25, 0.94));
    color: #fff;
    box-shadow: 0 18px 40px rgba(122, 24, 36, 0.2);
}

.contact-panel__copy {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.contact-panel p:last-of-type {
    margin: 0.55rem 0 0;
    opacity: 0.9;
    max-width: 46ch;
}

/* ========== Breakpoint: 1180 ========== */
@media (max-width: 1180px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .show-card {
        flex-basis: calc((100cqi - 1rem) / 2);
        width: calc((100cqi - 1rem) / 2);
    }

    .home-theaters,
    .theater-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .news-band {
        grid-template-columns: 1fr;
    }

    .news-band__visual {
        min-height: 140px;
    }
}

/* ========== Breakpoint: 760 — phone home page ========== */
@media (max-width: 760px) {
    body.portal-body {
        background: #0a0a0a;
    }

    [data-reveal],
    [data-reveal="hero"] .hero__eyebrow,
    [data-reveal="hero"] .hero__brand,
    [data-reveal="hero"] .hero__lead,
    [data-reveal="hero"] .hero__actions {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Hero */
    .hero {
        min-height: 0;
        background: #1c1214;
    }

    .hero__glow {
        display: none;
    }

    .hero__media img {
        opacity: 0.72;
        filter: brightness(0.75) contrast(1.08) saturate(0.95);
        animation: none !important;
        transform: none !important;
        object-position: center center;
    }

    .hero__scrim {
        background: linear-gradient(
            180deg,
            rgba(18, 10, 12, 0.55) 0%,
            rgba(18, 10, 12, 0.35) 45%,
            rgba(18, 10, 12, 0.78) 100%
        );
    }

    .hero__shade {
        box-shadow: none;
        background: transparent;
    }

    .hero__content {
        width: min(100%, calc(100% - 1.25rem));
        max-width: none;
        margin: 0 auto;
        padding: 1.25rem 0 1.5rem;
        min-height: min(42vh, 320px);
        justify-content: flex-end;
        align-items: stretch;
    }

    .hero__eyebrow {
        color: #dfc79a;
        font-size: 0.92rem;
        margin-bottom: 0.45rem;
    }

    .hero__brand {
        color: #fff;
        font-size: clamp(1.7rem, 7.5vw, 2.35rem);
        line-height: 1.2;
        letter-spacing: 0;
        text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    }

    [data-reveal="hero"] .hero__brand-reveal {
        clip-path: none;
        transform: translate3d(0, 10px, 0);
    }

    [data-reveal="hero"].is-visible .hero__brand-reveal {
        animation: heroBrandFadeMobile 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
    }

    @keyframes heroBrandFadeMobile {
        to {
            opacity: 1;
            transform: none;
        }
    }

    .hero__lead {
        color: rgba(255, 248, 240, 0.88);
        font-size: 0.98rem;
        line-height: 1.65;
        max-width: none;
        margin: 0.7rem 0 1.15rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        width: 100%;
    }

    .btn--hero,
    .btn--hero-outline {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 0.85rem 1rem;
        font-size: 0.98rem;
    }

    .btn--hero-outline {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.28);
        backdrop-filter: blur(6px);
    }

    .btn--hero-outline:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    /* Search */
    .search-panel {
        width: min(100%, calc(100% - 1.25rem));
        margin-top: -1.1rem;
        position: relative;
        z-index: 3;
    }

    .search-panel__inner {
        padding: 1rem;
        border-radius: 16px;
        box-shadow: 0 10px 28px rgba(40, 18, 22, 0.1);
        background: #fff;
    }

    .search-panel__heading h2 {
        font-size: 1.1rem;
    }

    .search-panel__form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .field select,
    .field input {
        min-height: 46px;
        font-size: 16px;
        border-radius: 12px;
    }

    .search-panel .btn--ticket {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    /* Sections */
    .section {
        padding: 1.75rem 0;
    }

    .section__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
        margin-bottom: 1rem;
    }

    /* Carousel — native swipe; LTR scroll physics + RTL track for iOS */
    .carousel {
        width: 100%;
        margin-inline: 0;
    }

    .carousel__viewport {
        margin-inline: 0;
        padding-inline: 0;
        scroll-padding-inline: 0.625rem;
    }

    .carousel__track {
        gap: 0.75rem;
        padding-inline: 0.625rem;
    }

    .show-card {
        flex: 0 0 min(78vw, 300px);
        width: min(78vw, 300px);
        scroll-snap-align: center;
        scroll-snap-stop: normal;
        border-radius: 16px;
    }

    .show-card:hover {
        transform: none;
    }

    .show-card__body {
        padding: 0.8rem 0.85rem 0.9rem;
    }

    .show-card__body h3 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .show-card__cta {
        min-height: 44px;
        justify-content: center;
    }

    .carousel__btn {
        display: none;
    }

    .carousel__dots {
        display: flex;
    }

    /* Grids */
    .home-theaters,
    .features__grid,
    .theater-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .home-theater__visual {
        width: 76px;
        padding: 0.6rem 0.45rem;
    }

    .home-theater__visual img {
        height: 40px;
    }

    .home-theater__body {
        padding: 0.7rem 0.8rem;
    }

    .home-theater__body h3 {
        font-size: 0.9rem;
    }

    .features {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .feature {
        padding: 1rem;
        border-radius: 14px;
    }

    .schedule-strip,
    .contact-panel,
    .about-panel,
    .news-band {
        grid-template-columns: 1fr;
        display: grid;
        padding: 1.15rem;
        border-radius: 16px;
        gap: 0.9rem;
    }

    .schedule-strip .btn--ticket,
    .contact-panel .btn--gold,
    .news-band__cta {
        width: 100%;
        justify-content: center;
        min-height: 46px;
    }

    .about-panel {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .news-band__visual {
        min-height: 140px;
        order: -1;
    }
}

/* ========== Breakpoint: 420 — small phones ========== */
@media (max-width: 420px) {
    .hero__content {
        min-height: min(38vh, 280px);
        padding-bottom: 1.25rem;
    }

    .hero__brand {
        font-size: 1.55rem;
    }

    .show-card {
        flex-basis: min(84vw, 290px);
        width: min(84vw, 290px);
    }
}

/* ========== Motion / Reveal ========== */
[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }

[data-reveal="hero"] .hero__eyebrow,
[data-reveal="hero"] .hero__brand,
[data-reveal="hero"] .hero__lead,
[data-reveal="hero"] .hero__actions {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="hero"].is-visible .hero__eyebrow,
[data-reveal="hero"].is-visible .hero__brand,
[data-reveal="hero"].is-visible .hero__lead,
[data-reveal="hero"].is-visible .hero__actions {
    opacity: 1;
    transform: none;
}

[data-reveal="hero"].is-visible .hero__brand { transition-delay: 0.1s; }
[data-reveal="hero"].is-visible .hero__brand-reveal { animation-delay: 0.18s; }
[data-reveal="hero"].is-visible .hero__lead { transition-delay: 0.2s; }
[data-reveal="hero"].is-visible .hero__actions { transition-delay: 0.3s; }

@keyframes glowPulse {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

@keyframes softSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmerSweep {
    0%, 100% { transform: translateX(30%); opacity: 0.2; }
    50% { transform: translateX(-30%); opacity: 0.55; }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__brand-reveal {
        animation: none !important;
        opacity: 1 !important;
        clip-path: none !important;
        transform: none !important;
    }

    .hero__media img,
    .hero__glow,
    .hero__eyebrow-icon,
    .news-band__visual::after,
    .show-card,
    .feature,
    .theater-card__media img,
    .home-theater__visual img,
    .btn,
    .hero__content,
    .search-panel,
    [data-reveal],
    [data-reveal="hero"] .hero__eyebrow,
    [data-reveal="hero"] .hero__brand,
    [data-reveal="hero"] .hero__lead,
    [data-reveal="hero"] .hero__actions {
        animation: none !important;
        transition: none !important;
    }

    [data-reveal],
    [data-reveal="hero"] .hero__eyebrow,
    [data-reveal="hero"] .hero__brand,
    [data-reveal="hero"] .hero__lead,
    [data-reveal="hero"] .hero__actions {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero__media img {
        transform: none !important;
        filter: none !important;
    }
}
