/* Theater detail page — aligned with portal visual system */

.theater-show-page {
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
    overflow-x: clip;
}

.theater-show-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(420px, 58vh, 560px);
    display: grid;
    align-items: end;
    color: #fff;
    overflow: hidden;
}

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

.theater-show-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.theater-show-hero__scrim {
    background:
        linear-gradient(180deg, rgba(12, 7, 8, 0.25) 0%, rgba(12, 7, 8, 0.55) 45%, rgba(12, 7, 8, 0.88) 100%),
        linear-gradient(100deg, rgba(90, 16, 25, 0.45), transparent 55%);
}

.theater-show-hero__inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - clamp(1.25rem, 4vw, 2.5rem)));
    margin-inline: auto;
    padding: 1.2rem 0 2rem;
}

.theater-show-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
}

.theater-show-crumbs a {
    color: var(--gold-soft);
}

.theater-show-crumbs [aria-current="page"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(100%, 36ch);
}

.theater-show-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.75fr);
    gap: clamp(1rem, 3vw, 1.8rem);
    align-items: end;
}

.theater-show-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(197, 160, 109, 0.22);
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.theater-show-hero__copy h1 {
    margin: 0.7rem 0 0.55rem;
    font-family: var(--display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
}

.theater-show-team,
.theater-show-lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.theater-show-team {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    font-weight: 700;
}

.theater-show-lead {
    max-width: 46ch;
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.theater-show-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.theater-show-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.15rem;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.theater-show-btn-outline:hover {
    background: #fff;
    color: var(--maroon);
    border-color: #fff;
}

.theater-show-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.theater-show-facts div {
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    background: rgba(12, 7, 8, 0.28);
}

.theater-show-facts small {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.74rem;
    margin-bottom: 0.2rem;
}

.theater-show-facts strong {
    font-size: 0.92rem;
    font-weight: 800;
}

.theater-show-body {
    width: min(1200px, calc(100% - clamp(1.25rem, 4vw, 2.5rem)));
    margin: -1.4rem auto 0;
    position: relative;
    z-index: 3;
}

.theater-show-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.85fr);
    gap: clamp(0.9rem, 2vw, 1.2rem);
    align-items: start;
}

.theater-show-main,
.theater-show-aside {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.theater-show-aside {
    position: sticky;
    top: calc(var(--header-h, 84px) + 0.85rem);
}

.theater-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    padding: clamp(1rem, 2vw, 1.3rem);
}

.theater-panel h2 {
    margin: 0 0 0.85rem;
    font-family: var(--display);
    font-size: 1.18rem;
    font-weight: 800;
}

.theater-panel > p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.85;
}

.theater-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.theater-panel__head h2 {
    margin: 0;
}

.theater-panel__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(122, 24, 36, 0.08);
    color: var(--maroon);
    font-size: 0.78rem;
    font-weight: 800;
}

.theater-panel--side h2 {
    font-size: 1.08rem;
}

.theater-panel--accent {
    background:
        linear-gradient(145deg, rgba(122, 24, 36, 0.96), rgba(90, 16, 25, 0.94));
    color: #fff;
    border-color: transparent;
}

.theater-panel--accent h2 {
    color: #fff;
}

.theater-panel--accent p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1rem;
}

.theater-panel--accent .theater-show-btn-outline {
    border-color: rgba(255, 255, 255, 0.45);
}

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

.theater-hall-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--paper);
}

.theater-hall-card__plan {
    aspect-ratio: 16 / 10;
    background: #1a1214;
}

.theater-hall-card__plan img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theater-hall-card__plan--empty {
    display: grid;
    place-items: center;
    color: var(--gold-deep);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.8), transparent 55%),
        linear-gradient(160deg, #f4efe8, #ebe3d7);
}

.theater-hall-card__body {
    padding: 0.85rem 0.9rem;
}

.theater-hall-card__body h3 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    font-weight: 800;
}

.theater-hall-card__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.theater-shows-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.theater-shows-grid .show-listing-card {
    height: 100%;
}

.theater-empty {
    text-align: center;
    padding: 1.6rem 1rem;
    border: 1px dashed rgba(67, 89, 113, 0.25);
    border-radius: 16px;
    background: #faf9fb;
}

.theater-empty p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.theater-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.theater-gallery figure {
    margin: 0;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #1a1214;
}

.theater-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.theater-gallery figure:hover img {
    transform: scale(1.05);
}

.theater-side-row {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.65;
}

.theater-side-row svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--gold-deep);
}

.theater-side-row a {
    color: var(--maroon);
    font-weight: 700;
}

.theater-side-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    margin: 0.4rem 0 0.9rem;
}

.theater-side-map img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.theater-side-cta {
    width: 100%;
    justify-content: center;
}

@media (max-width: 980px) {
    .theater-show-hero__content,
    .theater-show-grid {
        grid-template-columns: 1fr;
    }

    .theater-show-aside {
        position: static;
    }

    .theater-show-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .theater-show-hero {
        min-height: 480px;
        align-items: end;
    }

    .theater-show-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .theater-show-hero__actions .btn,
    .theater-show-hero__actions .theater-show-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .theater-show-facts {
        grid-template-columns: 1fr 1fr;
    }

    .theater-halls,
    .theater-shows-grid,
    .theater-gallery {
        grid-template-columns: 1fr;
    }

    .theater-show-body {
        margin-top: -1rem;
    }
}

@media (max-width: 480px) {
    .theater-show-facts {
        grid-template-columns: 1fr;
    }

    .theater-gallery {
        grid-template-columns: 1fr 1fr;
    }
}
