/* ==========================================================================
   Event detail page — Moshradar

   Everything here is namespaced `ev-`. The detail page used to borrow classes
   from events_page.css (.event-title, .event-header, .event-meta, .event-image),
   but those same names style the *listing* cards there and in the global
   events.css, so the two kept fighting. This file owns the detail page
   outright and events_page.css is no longer loaded on it.
   ========================================================================== */

.ev-page {
    --ev-red: #ff0000;
    --ev-red-deep: #b00000;
    --ev-red-dim: rgba(255, 0, 0, .12);
    --ev-bg: #0a0a0a;
    --ev-surface: #111;
    --ev-surface-2: #171717;
    --ev-line: #2a2a2a;
    --ev-line-bright: #3d3d3d;
    --ev-ink: #fff;
    --ev-ink-2: #c9c9c9;
    --ev-ink-3: #8a8a8a;
    --ev-radius: 10px;
    --ev-radius-sm: 6px;

    background: var(--ev-bg);
    color: var(--ev-ink);
}

/* ===== Shared section furniture ========================================== */

.ev-section { margin-bottom: 3rem; }
.ev-section:last-child { margin-bottom: 0; }

/* Small uppercase heading with a red tick, used for every h2 on the page.
   Keeps the section rhythm consistent without 2rem headings shouting over
   the h1. */
.ev-h2 {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 1.25rem;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--ev-ink);
}

.ev-h2::before {
    content: '';
    width: 3px;
    height: 1.05em;
    background: var(--ev-red);
    flex-shrink: 0;
}

.ev-h3 {
    margin: 0 0 .35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ev-ink);
    line-height: 1.3;
}

/* ===== Breadcrumbs ======================================================= */

.ev-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    padding: 1rem 0 .85rem;
    font-size: .8rem;
    color: var(--ev-ink-3);
}

.ev-crumbs a {
    color: var(--ev-ink-3);
    text-decoration: none;
    transition: color .2s ease;
}

.ev-crumbs a:hover { color: var(--ev-ink); }

.ev-crumbs .ev-crumb-sep { color: #4a4a4a; }

.ev-crumbs .ev-crumb-current {
    color: var(--ev-ink-2);
    /* Long titles shouldn't push the trail off the side on mobile. */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Hero ============================================================== */

.ev-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--ev-line);
}

/* Blown-up, blurred copy of the poster as an ambient wash. */
.ev-hero-bg {
    position: absolute;
    inset: -8%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(42px) saturate(1.35);
    opacity: .5;
    transform: scale(1.15);
}

.ev-hero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(80% 120% at 15% 0%, rgba(255, 0, 0, .16), transparent 60%),
        linear-gradient(to bottom, rgba(10, 10, 10, .72) 0%, rgba(10, 10, 10, .9) 65%, var(--ev-bg) 100%);
}

.ev-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem 2rem 2.75rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* Full-width blocks that share the body's gutters but not its grid
   (breadcrumb trail, the bottom house ad). */
.ev-strip {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ev-strip--pad-bottom { padding-bottom: 2.5rem; }

/* -- Poster ---------------------------------------------------------------
   Gig art arrives in every shape going: 16:9 promo stills from Ticketmaster,
   portrait posters from promoters. `contain` over a blurred fill of the same
   image shows all of both without the black letterbox bars the old layout
   left on either side. */
.ev-poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--ev-line-bright);
    border-radius: var(--ev-radius);
    background: #000;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .6);
    cursor: zoom-in;
    padding: 0;
}

.ev-poster-fill {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(.55);
    transform: scale(1.2);
}

.ev-poster img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ev-poster-zoom {
    position: absolute;
    right: .55rem;
    bottom: .55rem;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: .75rem;
    opacity: 0;
    transition: opacity .2s ease;
}

.ev-poster:hover .ev-poster-zoom,
.ev-poster:focus-visible .ev-poster-zoom { opacity: 1; }

/* -- Hero copy ------------------------------------------------------------ */

.ev-hero-body { min-width: 0; }

.ev-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .9rem;
}

.ev-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    border: 1px solid var(--ev-line-bright);
    background: rgba(255, 255, 255, .05);
    color: var(--ev-ink-2);
}

.ev-badge--live {
    border-color: rgba(255, 0, 0, .55);
    background: var(--ev-red-dim);
    color: #ff6b6b;
}

.ev-badge--warn {
    border-color: rgba(255, 176, 0, .5);
    background: rgba(255, 176, 0, .12);
    color: #ffc247;
}

.ev-badge--dead {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: var(--ev-ink-3);
}

.ev-badge--soon { animation: ev-pulse 2.4s ease-in-out infinite; }

@keyframes ev-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, .35); }
    50% { box-shadow: 0 0 0 6px rgba(255, 0, 0, 0); }
}

.ev-title {
    margin: 0;
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.02em;
    color: #fff;
    /* Scraped titles include long unbroken venue strings. */
    overflow-wrap: break-word;
    word-break: break-word;
}

.ev-lineup-line {
    margin: .85rem 0 0;
    font-size: 1rem;
    color: var(--ev-ink-2);
}

.ev-lineup-line a {
    color: #ff5c5c;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.ev-lineup-line a:hover {
    color: #ff5c5c;
    border-bottom-color: currentColor;
}

/* Date / time / venue strip under the title. */
.ev-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin: 1.5rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.ev-fact { min-width: 0; }

.ev-fact-label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ev-ink-3);
    margin-bottom: .3rem;
}

.ev-fact-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ev-ink);
}

.ev-fact-value a {
    color: var(--ev-ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    transition: border-color .2s ease, color .2s ease;
}

.ev-fact-value a:hover {
    color: #ff5c5c;
    border-bottom-color: #ff5c5c;
}

.ev-fact-value i { color: var(--ev-red); margin-right: .4rem; }

/* ===== Two column body =================================================== */

.ev-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem 2rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: start;
}

.ev-main { min-width: 0; }

.ev-aside {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

/* ===== Ticket panel ====================================================== */

.ev-tickets {
    border: 1px solid var(--ev-line-bright);
    border-radius: var(--ev-radius);
    background: linear-gradient(160deg, var(--ev-surface-2), var(--ev-surface));
    overflow: hidden;
}

.ev-tickets-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px dashed var(--ev-line);
}

/* Calendar-tear date block. */
.ev-datechip {
    flex-shrink: 0;
    width: 62px;
    text-align: center;
    border: 1px solid var(--ev-line-bright);
    border-radius: var(--ev-radius-sm);
    overflow: hidden;
    background: #0d0d0d;
}

.ev-datechip-month {
    display: block;
    padding: .18rem 0;
    background: var(--ev-red);
    color: #fff;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ev-datechip-day {
    display: block;
    padding: .2rem 0 .05rem;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.ev-datechip-dow {
    display: block;
    padding-bottom: .3rem;
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ev-ink-3);
}

.ev-tickets-when { min-width: 0; }

.ev-tickets-when strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
}

.ev-tickets-when span {
    display: block;
    font-size: .82rem;
    color: var(--ev-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ev-tickets-body { padding: 1.25rem; }

.ev-price {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    margin-bottom: 1rem;
}

.ev-price-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ev-ink-3);
}

.ev-price-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* -- The money button ----------------------------------------------------- */

.ev-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .95rem 1.25rem;
    border: none;
    border-radius: var(--ev-radius-sm);
    background: linear-gradient(180deg, #ff1a1a, var(--ev-red-deep));
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 0, 0, .28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ev-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 26px rgba(255, 0, 0, .38);
}

.ev-cta:active { transform: translateY(0); }

.ev-cta-note {
    margin: .6rem 0 0;
    font-size: .72rem;
    line-height: 1.45;
    color: #6f6f6f;
    text-align: center;
}

/* Explanatory line above a fallback CTA (past / cancelled / no ticket link). */
.ev-panel-note {
    margin: 0 0 1rem;
    font-size: .85rem;
    line-height: 1.55;
    color: var(--ev-ink-3);
}

.ev-panel-note:only-child { margin-bottom: 0; }

.ev-price-value--sm { font-size: 1rem; }

.ev-promoter {
    margin: 0;
    font-size: .78rem;
    text-align: center;
    color: #6f6f6f;
}

.ev-promoter a { color: #ff5c5c; }

/* Secondary actions: calendar, share, directions. */
.ev-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-top: 1rem;
}

.ev-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .6rem .5rem;
    border: 1px solid var(--ev-line-bright);
    border-radius: var(--ev-radius-sm);
    background: rgba(255, 255, 255, .03);
    color: var(--ev-ink-2);
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.ev-action:hover {
    border-color: #666;
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.ev-action i { color: var(--ev-red); }
.ev-action--wide { grid-column: 1 / -1; }

/* ===== Attending ========================================================= */

.ev-attend {
    border: 1px solid var(--ev-line);
    border-radius: var(--ev-radius);
    background: var(--ev-surface);
    padding: 1.15rem 1.25rem;
}

.ev-attend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .25rem;
}

.ev-attend-count {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ev-ink-2);
}

.ev-attend-count b {
    color: #fff;
    font-size: 1.15rem;
    margin-right: .25rem;
}

.ev-attend-btn {
    padding: .42rem .85rem;
    border: 1px solid var(--ev-red);
    border-radius: 100px;
    background: var(--ev-red-dim);
    color: #ff5c5c;
    font-family: inherit;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.ev-attend-btn:hover { background: var(--ev-red); color: #fff; }

.ev-attend-btn--on {
    border-color: var(--ev-line-bright);
    background: transparent;
    color: var(--ev-ink-3);
}

.ev-attend-btn--on:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Overlapping avatar stack — the old grid was 10 fixed columns of 80px, which
   forced a ~950px minimum width and made the whole page scroll sideways on a
   phone. */
.ev-attend-faces {
    display: flex;
    flex-wrap: wrap;
    margin-top: .9rem;
}

.ev-face {
    width: 36px;
    height: 36px;
    margin-right: -8px;
    border-radius: 50%;
    border: 2px solid var(--ev-surface);
    overflow: hidden;
    background: #222;
    transition: transform .18s ease;
}

.ev-face:hover { transform: translateY(-3px) scale(1.08); z-index: 2; }
.ev-face img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Initials stand in for a missing profile picture; `.ev-face-more` is the
   trailing "+12" chip, which takes its size from `.ev-face` itself. */
.ev-face-initial,
.ev-face-more {
    display: grid;
    place-items: center;
    font-size: .7rem;
    font-weight: 700;
    color: var(--ev-ink-3);
    background: #1c1c1c;
    text-transform: uppercase;
}

.ev-face-initial { width: 100%; height: 100%; }

/* ===== Notices (past / cancelled) ======================================== */

.ev-notice {
    display: flex;
    gap: .9rem;
    padding: 1rem 1.15rem;
    margin-bottom: 2rem;
    border: 1px solid var(--ev-line-bright);
    border-left: 3px solid var(--ev-red);
    border-radius: var(--ev-radius-sm);
    background: rgba(255, 255, 255, .03);
    font-size: .92rem;
    line-height: 1.6;
    color: var(--ev-ink-2);
}

.ev-notice i { color: var(--ev-red); margin-top: .25rem; }
.ev-notice a { color: #ff5c5c; text-decoration: underline; }
.ev-notice a:hover { color: #ff8080; }
.ev-notice strong { color: #fff; }

/* ===== Prose ============================================================= */

.ev-prose {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ev-ink-2);
    overflow-wrap: break-word;
}

.ev-prose p { margin: 0 0 1rem; }
.ev-prose p:last-child { margin-bottom: 0; }
.ev-prose a { color: #ff5c5c; text-decoration: underline; word-break: break-word; }

/* ===== Lineup ============================================================ */

.ev-lineup {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: .75rem;
}

.ev-artist {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem .85rem;
    border: 1px solid var(--ev-line);
    border-radius: var(--ev-radius-sm);
    background: var(--ev-surface);
    color: inherit;
    text-decoration: none;
    min-width: 0;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.ev-artist:hover {
    border-color: rgba(255, 0, 0, .5);
    background: var(--ev-surface-2);
    transform: translateY(-2px);
    color: inherit;
}

/* Most artists have no Spotify image, and the old markup just left a gap
   where the avatar should be. Initials keep the row weight consistent. */
.ev-artist-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #2a0808, #490d0d);
    border: 1px solid rgba(255, 0, 0, .25);
    color: #ff6b6b;
    font-size: .95rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ev-artist-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ev-artist-text { min-width: 0; }

.ev-artist-name {
    display: block;
    font-size: .93rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ev-artist-genre {
    display: block;
    font-size: .74rem;
    color: var(--ev-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Venue ============================================================= */

.ev-venue {
    border: 1px solid var(--ev-line);
    border-left: 3px solid var(--ev-red);
    border-radius: var(--ev-radius);
    background: var(--ev-surface);
    padding: 1.4rem 1.5rem;
}

.ev-venue-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
}

.ev-venue-info { min-width: 240px; flex: 1; }

.ev-venue-meta {
    list-style: none;
    margin: .6rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.ev-venue-meta li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .9rem;
    color: var(--ev-ink-2);
}

.ev-venue-meta i {
    color: var(--ev-red);
    width: 15px;
    text-align: center;
    margin-top: .28rem;
    flex-shrink: 0;
}

.ev-venue-blurb {
    margin: 1rem 0 0;
    font-size: .88rem;
    line-height: 1.65;
    color: var(--ev-ink-3);
}

.ev-venue-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex-shrink: 0;
    min-width: 175px;
}

.ev-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .65rem 1.1rem;
    border-radius: var(--ev-radius-sm);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.ev-btn--solid {
    background: var(--ev-red);
    border: 1px solid var(--ev-red);
    color: #fff;
}

.ev-btn--solid:hover { background: #cc0000; color: #fff; transform: translateY(-2px); }

.ev-btn--ghost {
    background: transparent;
    border: 1px solid var(--ev-line-bright);
    color: var(--ev-ink-2);
}

.ev-btn--ghost:hover { border-color: #666; background: rgba(255, 255, 255, .06); color: #fff; }

/* ===== Card grids (previous + related events) ============================ */

.ev-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 1.1rem;
}

.ev-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ev-line);
    border-radius: var(--ev-radius);
    background: var(--ev-surface);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ev-card:hover {
    border-color: rgba(255, 0, 0, .55);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
    color: inherit;
}

.ev-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000;
}

.ev-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.ev-card:hover .ev-card-media img { transform: scale(1.06); }

.ev-card-date {
    position: absolute;
    left: .55rem;
    bottom: .55rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .55rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(4px);
    font-size: .72rem;
    font-weight: 600;
    color: #fff;
}

.ev-card-date i { color: var(--ev-red); }

.ev-card-body { padding: .85rem 1rem 1rem; }

.ev-card-title {
    margin: 0 0 .3rem;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev-card-sub {
    margin: 0;
    font-size: .78rem;
    color: var(--ev-ink-3);
    display: flex;
    align-items: center;
    gap: .4rem;
}

.ev-card-sub i { color: var(--ev-red); flex-shrink: 0; }
.ev-card-sub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ev-empty {
    grid-column: 1 / -1;
    padding: 1.5rem;
    border: 1px dashed var(--ev-line-bright);
    border-radius: var(--ev-radius);
    text-align: center;
    color: var(--ev-ink-3);
    font-size: .9rem;
}

/* ===== City CTA ========================================================== */

.ev-citycta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(255, 0, 0, .3);
    border-radius: var(--ev-radius);
    background:
        repeating-linear-gradient(-45deg, rgba(255, 0, 0, .04) 0 12px, transparent 12px 34px),
        linear-gradient(120deg, #0d0d0d, #1a0505);
}

.ev-citycta h2 {
    margin: 0 0 .3rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.ev-citycta p { margin: 0; font-size: .88rem; color: var(--ev-ink-3); }

/* ===== Lightbox ========================================================== */

.ev-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: rgba(0, 0, 0, .94);
    cursor: zoom-out;
}

.ev-lightbox.is-open { display: flex; }

.ev-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ev-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.ev-lightbox-close:hover { background: var(--ev-red); border-color: var(--ev-red); }

/* ===== Sticky mobile ticket bar ==========================================
   The single highest-value element on the page was previously a small pill
   ~900px down the document. On a phone this keeps it permanently reachable. */

.ev-stickybar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(10, 10, 10, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--ev-line-bright);
}

.ev-stickybar-info { min-width: 0; }

.ev-stickybar-info strong {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ev-stickybar-info span { font-size: .75rem; color: var(--ev-ink-3); }

.ev-stickybar .ev-cta { width: auto; flex-shrink: 0; padding: .7rem 1.4rem; font-size: .9rem; }

/* ===== Staff controls ==================================================== */

.ev-staffbar {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-bottom: 1rem;
}

.ev-danger-btn {
    padding: .45rem .9rem;
    border: 1px solid rgba(255, 60, 60, .5);
    border-radius: var(--ev-radius-sm);
    background: rgba(255, 0, 0, .08);
    color: #ff6b6b;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.ev-danger-btn:hover { background: #dc3545; color: #fff; border-color: #dc3545; }

.ev-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, .75);
}

.ev-modal.is-open { display: flex; }

.ev-modal-card {
    width: 100%;
    max-width: 440px;
    padding: 1.75rem;
    border: 1px solid var(--ev-line-bright);
    border-radius: var(--ev-radius);
    background: #151515;
    text-align: center;
}

.ev-modal-card h2 { margin: 0 0 .75rem; font-size: 1.25rem; }
.ev-modal-card p { margin: 0 0 .5rem; color: var(--ev-ink-2); font-size: .9rem; }

.ev-modal-actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.5rem;
}

.ev-modal-actions button {
    padding: .6rem 1.4rem;
    border: none;
    border-radius: var(--ev-radius-sm);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}

.ev-modal-actions .ev-modal-cancel { background: #333; color: #fff; }
.ev-modal-actions .ev-modal-cancel:hover { background: #444; }
.ev-modal-actions .ev-modal-confirm { background: #dc3545; color: #fff; }
.ev-modal-actions .ev-modal-confirm:hover { background: #c82333; }

/* ===== Responsive ======================================================== */

@media (max-width: 1080px) {
    .ev-body { grid-template-columns: minmax(0, 1fr) 310px; gap: 2rem; }
    .ev-hero-inner { grid-template-columns: 250px 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
    .ev-hero-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1.25rem 2rem;
    }

    /* Copy first, art second — the title and date matter more than the
       promo image on a small screen. */
    .ev-poster { order: 2; max-width: 420px; }
    .ev-hero-body { order: 1; }

    .ev-body {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.75rem 1.25rem 2.5rem;
    }

    .ev-strip { padding: 0 1.25rem; }

    /* Ticket panel moves above the write-up rather than below it. */
    .ev-aside { position: static; order: -1; }

    .ev-facts { gap: 1.25rem 1.75rem; }
}

@media (max-width: 640px) {
    .ev-crumbs { font-size: .74rem; }
    .ev-venue { padding: 1.15rem; }
    .ev-venue-actions { min-width: 0; width: 100%; }
    .ev-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
    .ev-citycta { padding: 1.25rem; }
    .ev-lightbox { padding: 1rem; }

    /* Sticky CTA only earns its screen space on phones. */
    .ev-stickybar { display: flex; }
    .ev-page.has-stickybar { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    .ev-page *,
    .ev-page *::before,
    .ev-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Keyboard focus */
.ev-page a:focus-visible,
.ev-page button:focus-visible {
    outline: 2px solid var(--ev-red);
    outline-offset: 3px;
}
