/**
 * Artspod v2 — single-event template.
 * Scoped under .aspv2 so the legacy site is untouched.
 * Figma: desktop node 85-172, mobile node 85-2.
 */

/* ============================ Hero ============================ */
.aspv2 .asp-ehero {
    position: relative;
    padding-top: var(--asp-sp-6);
}

.aspv2 .asp-ehero__inner {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(33, 49, 69, 0) 45%),
        #213145;
    border-radius: var(--asp-radius-lg);
    box-shadow: var(--asp-shadow-lg);
    padding: var(--asp-sp-7) var(--asp-gutter) calc(var(--asp-sp-8) + 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--asp-sp-5);
    overflow: hidden;
}

/* ---- Ambient "ambilight" glow: blurred active thumbnail bleeding colour ---- */
.aspv2 .asp-ehero__glow {
    position: absolute;
    inset: -8%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(72px) saturate(1.6);
    opacity: 0.6;
    transform: scale(1.15);
    pointer-events: none;
    transition: opacity var(--asp-transition);
}

/* Dark scrim over the glow so the title, subtitle and buttons stay readable. */
.aspv2 .asp-ehero__inner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(130% 100% at 50% 0%, rgba(11, 20, 34, 0.32) 0%, rgba(11, 20, 34, 0.72) 72%),
        linear-gradient(180deg, rgba(11, 20, 34, 0.55) 0%, rgba(11, 20, 34, 0.82) 100%);
}

/* Keep hero content above the glow + scrim. */
.aspv2 .asp-video,
.aspv2 .asp-ehero__band {
    position: relative;
    z-index: 2;
}

/* ---- Video player ---- */
.aspv2 .asp-video {
    position: relative;
    width: 100%;
    max-width: 896px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--asp-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

/* ---- Compact band: thumbnails + buttons (left) | title + subtitle (right) ---- */
.aspv2 .asp-ehero__band {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--asp-sp-5);
    width: 100%;
    max-width: 896px;
}

/* Left sizes to its content (thumbnails / buttons) so they never wrap
   prematurely; right takes whatever remains for the title. This self-balances
   across any thumb count + title length without per-page ratios. The right
   keeps a minimum share so a very wide thumb strip can't starve the title
   (thumbnails wrap instead). */
.aspv2 .asp-ehero__bandleft {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--asp-sp-3);
    /* Guarantee the thumbnails fit in one row (count passed via --asp-tabs on
       the band), plus 2px tolerance so subpixel rounding can't wrap them.
       Capped at 66% so many thumbs wrap instead of starving the title. Buttons
       wider than the thumbs still expand the column via its auto basis. */
    --asp-thumbs-w: calc((128px + var(--asp-sp-3)) * var(--asp-tabs, 0) - var(--asp-sp-3) + 2px);
    min-width: min(max(0px, var(--asp-thumbs-w)), 66%);
}

.aspv2 .asp-ehero__bandright {
    flex: 1 1 0;
    min-width: 34%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: var(--asp-sp-2);
}

.aspv2 .asp-ehero__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--asp-sp-2);
}

.aspv2 .asp-video__facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: block;
}

.aspv2 .asp-video__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity var(--asp-transition), transform var(--asp-transition);
}

.aspv2 .asp-video__facade:hover .asp-video__poster {
    opacity: 1;
    transform: scale(1.02);
}

.aspv2 .asp-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: var(--asp-radius-pill);
    background: var(--asp-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: transform var(--asp-transition), background var(--asp-transition);
}

.aspv2 .asp-video__play svg {
    margin-left: 3px;
}

.aspv2 .asp-video__facade:hover .asp-video__play {
    transform: translate(-50%, -50%) scale(1.06);
    background: var(--asp-primary-dark);
}

.aspv2 .asp-video__label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--asp-sp-4) var(--asp-sp-3) var(--asp-sp-3);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    font-size: var(--asp-fs-body);
    font-weight: 600;
    text-align: center;
}

.aspv2 .asp-video__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Video tabs ---- */
.aspv2 .asp-video-tabs {
    display: flex;
    gap: var(--asp-sp-3);
    justify-content: flex-start;
    flex-wrap: wrap;
}

.aspv2 .asp-video-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--asp-sp-2);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    width: 128px;
    max-width: 40vw;
}

.aspv2 .asp-video-tab__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--asp-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    transition: border-color var(--asp-transition);
    background: #e5eeff;
}

.aspv2 .asp-video-tab__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aspv2 .asp-video-tab.is-active .asp-video-tab__thumb {
    border-color: var(--asp-primary);
}

.aspv2 .asp-video-tab__label {
    font-size: var(--asp-fs-xs);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.3;
}

.aspv2 .asp-video-tab.is-active .asp-video-tab__label {
    color: #fff;
    font-weight: 600;
}

/* ---- Hero text (band right) ---- */
.aspv2 .asp-ehero__title {
    color: #eaf1ff;
    font-size: var(--asp-fs-hero);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.aspv2 .asp-ehero__subtitle {
    color: rgba(234, 241, 255, 0.8);
    font-size: var(--asp-fs-lg);
}

/* ==================== Details quick bar ==================== */
.aspv2 .asp-detailbar {
    position: relative;
    z-index: 2;
    margin-top: -40px;
    background: #fff;
    border-radius: var(--asp-radius);
    box-shadow: var(--asp-shadow);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--asp-sp-4);
    padding: var(--asp-sp-5);
}

.aspv2 .asp-detailbar__item {
    display: flex;
    gap: var(--asp-sp-3);
    align-items: flex-start;
}

.aspv2 .asp-detailbar__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: var(--asp-radius-sm);
    background: var(--asp-primary-soft);
    color: var(--asp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aspv2 .asp-detailbar__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.aspv2 .asp-detailbar__label {
    font-size: var(--asp-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--asp-gray);
}

.aspv2 .asp-detailbar__value {
    font-size: var(--asp-fs-body);
    font-weight: 600;
    color: var(--asp-ink);
}

.aspv2 .asp-detailbar__value a {
    color: var(--asp-ink);
}

.aspv2 .asp-detailbar__value a:hover {
    color: var(--asp-primary);
}

.aspv2 .asp-detailbar__link {
    font-size: var(--asp-fs-sm);
    font-weight: 600;
}

.aspv2 .asp-detailbar__sub {
    font-size: var(--asp-fs-sm);
    color: var(--asp-gray);
}

/* ======================= Synopsis ======================= */
.aspv2 .asp-esynopsis {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    grid-template-areas:
        "body media"
        "body ads";
    grid-template-rows: auto 1fr;
    gap: var(--asp-sp-4) var(--asp-sp-6);
    align-items: start;
}

.aspv2 .asp-esynopsis__body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--asp-sp-3);
}

.aspv2 .asp-esynopsis__media {
    grid-area: media;
}

.aspv2 .asp-eads {
    grid-area: ads;
}

.aspv2 .asp-esynopsis__teaser {
    font-size: var(--asp-fs-lg);
    color: var(--asp-slate);
    font-weight: 500;
}

.aspv2 .asp-esynopsis__text h2,
.aspv2 .asp-esynopsis__text h3 {
    font-size: var(--asp-fs-h3);
    margin-top: var(--asp-sp-3);
    margin-bottom: var(--asp-sp-2);
}

.aspv2 .asp-esynopsis__text a {
    text-decoration: underline;
}

.aspv2 .asp-esynopsis__title {
    font-size: var(--asp-fs-h2);
    margin-top: var(--asp-sp-1);
}

.aspv2 .asp-esynopsis__text {
    color: var(--asp-muted);
}

.aspv2 .asp-esynopsis__text p {
    margin-bottom: var(--asp-sp-3);
}

.aspv2 .asp-esynopsis__text p:last-child {
    margin-bottom: 0;
}

.aspv2 .asp-esynopsis__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--asp-sp-2);
    margin-top: var(--asp-sp-2);
}

.aspv2 .asp-chip {
    display: inline-flex;
    align-items: center;
    font-size: var(--asp-fs-sm);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--asp-radius-pill);
    background: var(--asp-bg-blue);
    color: var(--asp-primary);
    transition: background var(--asp-transition);
}

.aspv2 a.asp-chip:hover {
    background: var(--asp-primary-soft);
}

.aspv2 .asp-esynopsis__media {
    position: relative;
}

.aspv2 .asp-esynopsis__media::after {
    content: "";
    position: absolute;
    right: -16px;
    bottom: -16px;
    width: 45%;
    height: 60%;
    border-radius: var(--asp-radius-lg);
    background: var(--asp-primary-soft);
    z-index: -1;
}

.aspv2 .asp-esynopsis__media img {
    width: 100%;
    border-radius: var(--asp-radius-lg);
    box-shadow: var(--asp-shadow);
    object-fit: contain;
}

/* ======================= Locations ======================= */
.aspv2 .asp-elocations__card {
    background: var(--asp-bg-blue);
    border-radius: var(--asp-radius-lg);
    padding: var(--asp-sp-6);
}

.aspv2 .asp-elocations__title {
    font-size: var(--asp-fs-h2);
    margin-bottom: var(--asp-sp-4);
}

.aspv2 .asp-elocations__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--asp-sp-3);
}

.aspv2 .asp-loc {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--asp-line);
    border-radius: var(--asp-radius);
    padding: var(--asp-sp-4);
    transition: border-color var(--asp-transition), box-shadow var(--asp-transition),
        transform var(--asp-transition);
}

.aspv2 .asp-loc:hover {
    border-color: var(--asp-primary);
    box-shadow: var(--asp-shadow-sm);
    transform: translateY(-2px);
}

.aspv2 .asp-loc.is-current {
    border-color: var(--asp-primary);
    box-shadow: inset 0 0 0 1px var(--asp-primary);
}

.aspv2 .asp-loc__date {
    font-size: var(--asp-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--asp-primary);
}

.aspv2 .asp-loc__city {
    font-size: var(--asp-fs-h3);
    font-weight: 700;
    color: var(--asp-ink);
    line-height: 1.2;
}

.aspv2 .asp-loc__venue {
    font-size: var(--asp-fs-sm);
    color: var(--asp-gray);
}

/* ======================= Awards (hidden) ======================= */
.aspv2 .asp-eawards {
    /* No data source yet — markup kept, section hidden (see awards.php). */
    display: none;
}

.aspv2 .asp-eawards__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--asp-sp-5);
}

.aspv2 .asp-eawards__head h2 {
    font-size: var(--asp-fs-h2);
}

.aspv2 .asp-eawards__head p {
    color: var(--asp-gray);
    margin-top: var(--asp-sp-2);
}

.aspv2 .asp-eawards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--asp-sp-4);
}

.aspv2 .asp-eawards__hero {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--asp-primary) 0%, var(--asp-primary-dark) 100%);
    color: #fff;
    border-radius: var(--asp-radius-lg);
    padding: var(--asp-sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--asp-sp-1);
}

.aspv2 .asp-eawards__num {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1;
}

.aspv2 .asp-eawards__num-label {
    font-size: var(--asp-fs-lg);
    font-weight: 700;
}

.aspv2 .asp-eawards__num-note {
    color: rgba(255, 255, 255, 0.85);
}

.aspv2 .asp-award {
    background: #fff;
    border: 1px solid var(--asp-line);
    border-radius: var(--asp-radius-lg);
    padding: var(--asp-sp-5);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--asp-sp-2);
}

.aspv2 .asp-award__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--asp-radius-pill);
    background: var(--asp-primary-soft);
    color: var(--asp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aspv2 .asp-award__count {
    font-size: var(--asp-fs-h3);
    font-weight: 700;
    color: var(--asp-ink);
}

.aspv2 .asp-award__note {
    font-size: var(--asp-fs-sm);
    color: var(--asp-gray);
}

/* =================== Shows (venue + popular) =================== */
/* Two stacked full-width rows of 4 cards. */
.aspv2 .asp-eshows__block + .asp-eshows__block {
    margin-top: var(--asp-sp-6);
}

.aspv2 .asp-eshows__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--asp-sp-4);
}

.aspv2 .asp-showcard {
    display: flex;
    flex-direction: column;
    gap: var(--asp-sp-2);
}

.aspv2 .asp-showcard__media {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--asp-radius);
    overflow: hidden;
    background: var(--asp-bg-blue);
    box-shadow: var(--asp-shadow-sm);
}

.aspv2 .asp-showcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--asp-transition);
}

.aspv2 .asp-showcard:hover .asp-showcard__media img {
    transform: scale(1.04);
}

.aspv2 .asp-showcard__title {
    font-size: var(--asp-fs-body);
    font-weight: 700;
    line-height: 1.3;
}

.aspv2 .asp-showcard__title a {
    color: var(--asp-ink);
}

.aspv2 .asp-showcard__title a:hover {
    color: var(--asp-primary);
}

.aspv2 .asp-showcard__genre {
    font-size: var(--asp-fs-sm);
    color: var(--asp-gray);
}

/* ==================== On-dark ghost button ==================== */
.aspv2 .asp-btn--ondark {
    background: rgba(255, 255, 255, 0.06);
    color: #eaf1ff;
    border-color: rgba(234, 241, 255, 0.35);
}

.aspv2 .asp-btn--ondark:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(234, 241, 255, 0.7);
    color: #fff;
}

/* ==================== Offers dialog ==================== */
.aspv2 .asp-offers-dialog,
.aspv2 dialog.asp-offers-dialog {
    max-width: 560px;
    width: calc(100% - var(--asp-sp-5));
    border: 0;
    border-radius: var(--asp-radius-lg);
    padding: 0;
    box-shadow: var(--asp-shadow-lg);
    color: var(--asp-muted);
}

.aspv2 .asp-offers-dialog::backdrop {
    background: rgba(11, 28, 48, 0.5);
}

.aspv2 .asp-offers-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--asp-sp-3);
    padding: var(--asp-sp-4) var(--asp-sp-5);
    border-bottom: 1px solid var(--asp-line);
}

.aspv2 .asp-offers-dialog__head h2 {
    font-size: var(--asp-fs-h3);
}

.aspv2 .asp-offers-dialog__close {
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--asp-gray);
    display: flex;
    padding: 4px;
    border-radius: var(--asp-radius-sm);
}

.aspv2 .asp-offers-dialog__close:hover {
    color: var(--asp-ink);
    background: var(--asp-bg-blue);
}

.aspv2 .asp-offers-dialog__body {
    padding: var(--asp-sp-5);
}

.aspv2 .asp-offers-dialog__body p {
    margin-bottom: var(--asp-sp-2);
}

.aspv2 .asp-offers-dialog__text {
    margin-top: var(--asp-sp-3);
}

/* ==================== Social share ==================== */
.aspv2 .asp-share {
    display: flex;
    align-items: center;
    gap: var(--asp-sp-2);
    margin-top: var(--asp-sp-3);
    flex-wrap: wrap;
}

.aspv2 .asp-share__label {
    font-size: var(--asp-fs-sm);
    font-weight: 600;
    color: var(--asp-gray);
    margin-right: var(--asp-sp-1);
}

.aspv2 .asp-share__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--asp-radius-pill);
    background: var(--asp-bg-blue);
    color: var(--asp-primary);
    border: 0;
    cursor: pointer;
    transition: background var(--asp-transition), color var(--asp-transition);
}

.aspv2 .asp-share__btn:hover {
    background: var(--asp-primary);
    color: #fff;
}

.aspv2 .asp-share__copied {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--asp-ink);
    color: #fff;
    font-size: var(--asp-fs-xs);
    padding: 2px 8px;
    border-radius: var(--asp-radius-sm);
    white-space: nowrap;
}

/* ==================== Ad stack (under image) ==================== */
.aspv2 .asp-eads {
    display: flex;
    flex-direction: column;
    gap: var(--asp-sp-3);
    align-items: center;
}

.aspv2 .asp-eads__slot {
    width: 100%;
    text-align: center;
}

.aspv2 .asp-eads__slot img {
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    border-radius: var(--asp-radius-sm);
}

/* ==================== Stay22 map ==================== */
.aspv2 .asp-estay__title {
    font-size: var(--asp-fs-h2);
    margin-bottom: var(--asp-sp-4);
}

.aspv2 .asp-estay__map {
    border-radius: var(--asp-radius);
    overflow: hidden;
    box-shadow: var(--asp-shadow-sm);
    background: var(--asp-bg-blue);
}

.aspv2 .asp-estay__map iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ========================= Responsive ========================= */
@media (max-width: 900px) {
    .aspv2 .asp-esynopsis {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "body"
            "ads";
    }

    .aspv2 .asp-eshows__cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .aspv2 .asp-eawards__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aspv2 .asp-eawards__hero {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .aspv2 .asp-ehero {
        padding-top: var(--asp-sp-4);
    }

    .aspv2 .asp-ehero__inner {
        border-radius: var(--asp-radius);
        padding: var(--asp-sp-5) var(--asp-sp-3) calc(var(--asp-sp-7) + 32px);
        gap: var(--asp-sp-4);
    }

    .aspv2 .asp-video__play {
        width: 60px;
        height: 60px;
    }

    .aspv2 .asp-video-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: var(--asp-sp-1);
        -webkit-overflow-scrolling: touch;
    }

    .aspv2 .asp-video-tab {
        flex: 0 0 auto;
        width: 112px;
        max-width: none;
    }

    /* Stack the compact band: title/subtitle, then tabs, then buttons. */
    .aspv2 .asp-ehero__band {
        flex-direction: column;
        align-items: stretch;
        gap: var(--asp-sp-4);
    }

    .aspv2 .asp-ehero__bandleft,
    .aspv2 .asp-ehero__bandright {
        flex: 0 0 auto;
        min-width: 0;
    }

    .aspv2 .asp-ehero__bandright {
        order: -1;
        align-items: flex-start;
        text-align: left;
    }

    .aspv2 .asp-detailbar {
        grid-template-columns: 1fr;
        gap: var(--asp-sp-4);
        padding: var(--asp-sp-4);
        margin-top: -32px;
    }

    .aspv2 .asp-elocations__card {
        padding: var(--asp-sp-4);
    }

    .aspv2 .asp-elocations__grid {
        grid-template-columns: 1fr;
    }

    .aspv2 .asp-eshows__cards {
        gap: var(--asp-sp-3);
    }
}
