/* ==========================================================================
   Tickets / Discover events (also used for the poster rail on the home page)
   ========================================================================== */

/* ---------- Poster art ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .7rem; border-radius: 999px;
  background: rgba(18, 6, 12, .5); border: 1px solid rgba(255, 255, 255, .38);
  color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.2;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.poster {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--a), var(--b));
  box-shadow: 0 24px 44px -26px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .2);
  transition: transform .35s var(--ease);
}
.poster::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .66)); }
.poster__motif { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.poster__cat { position: absolute; left: .8rem; top: .8rem; }
.poster__date {
  position: absolute; right: .8rem; top: .8rem; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; text-align: center;
  min-width: 48px; padding: .38rem .5rem .34rem; border-radius: 14px; line-height: 1.05; color: #fff;
  background: rgba(18, 6, 12, .5); border: 1px solid rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.poster__date b { font-size: 1.2rem; font-weight: 800; }
.poster__date span { font-size: .6875rem; font-weight: 700; }
.poster__title {
  position: absolute; left: .95rem; right: .95rem; bottom: .9rem; color: #fff;
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.005em;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.1; text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}

/* ---------- Event card ---------- */
.ecard { display: block; min-width: 0; }
.ecard__link {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; align-content: start; text-decoration: none; color: var(--fg);
  border-radius: var(--r-lg); -webkit-tap-highlight-color: transparent;
}
.ecard__link:hover .poster { transform: translateY(-5px); }
.ecard__link:active .poster { transform: scale(.98); }
.ecard__info { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; padding-inline: .2rem; }
.ecard__line { display: flex; gap: .45rem; align-items: flex-start; color: var(--fg-2); font-size: .9rem; font-weight: 500; line-height: 1.35; }
.ecard__line .i { width: 1.05em; height: 1.05em; margin-top: .18em; color: var(--fg-3); }
.ecard__price { display: flex; align-items: center; gap: .5rem; margin-top: .1rem; font-weight: 800; font-size: .975rem; }
.ecard__price .tag { background: rgba(110, 231, 176, .16); border-color: rgba(110, 231, 176, .5); color: #8EF0C1; }

/* ---------- Discover page ---------- */
.disc { padding-bottom: clamp(3rem, 6vw, 5rem); }
.disc-hero { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.disc-hero__text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1.75rem; max-width: 46rem; }
.toolbar { display: grid; gap: .65rem; grid-template-columns: minmax(0, 1fr) auto; }
.toolbar .searchbox { grid-column: 1 / -1; order: 3; }
.searchbox { position: relative; }
.searchbox .i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.searchbox .input { padding-left: 2.9rem; border-radius: 999px; min-height: 52px; background: var(--glass); border-color: var(--glass-line); }
.searchbox .input::-webkit-search-cancel-button { filter: invert(1); opacity: .7; }
.toolbar .btn { --h: 52px; padding-inline: 1rem; gap: .45rem; min-width: 0; }
@media (max-width: 479px) { #cityBtn .i:last-child { display: none; } .sort__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .results-head h2 { font-size: 1.05rem; } }
#cityBtn { justify-content: flex-start; }
#cityLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 760px) {
  .toolbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .toolbar .searchbox { grid-column: auto; order: 0; }
}

.feat-wrap { position: relative; }
.feat { gap: 1rem; padding-bottom: 1.25rem; }
.fcard {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end;
  width: min(88vw, 600px); aspect-ratio: 16 / 12; padding: 1rem;
  border-radius: var(--r-xl); text-decoration: none; color: #fff;
  background: linear-gradient(150deg, var(--a), var(--b));
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .22);
  scroll-snap-align: center; -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease);
}
.fcard:active { transform: scale(.985); }
.fcard .poster__motif { left: auto; right: -2%; width: 66%; z-index: -1; opacity: .95; }
.fcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .55)); }
.fcard__panel {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; padding: .95rem 1.05rem 1rem; border-radius: 24px;
  background: rgba(20, 8, 14, .55); border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.fcard__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); line-height: 1.08; text-wrap: balance; }
.fcard__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.fcard__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.fcard__meta .i { width: 1em; height: 1em; }
.fcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .2rem; }
.fcard__foot b { font-weight: 800; }
.fcard .btn { --btn-bg: #fff; --btn-fg: var(--crimson); }
.feat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.feat-nav { display: none; gap: .5rem; }
@media (min-width: 900px) { .feat-nav { display: flex; } .fcard { width: 560px; } }

.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; padding-block: 1rem 1.25rem; }
.filter-row { display: flex; align-items: center; gap: .6rem; }
.filter-row .rail { flex: 1; min-width: 0; }
.filter-label { flex: none; font-size: .9rem; font-weight: 700; color: var(--fg-2); width: 3.6rem; }
@media (max-width: 639px) { .filter-label { display: none; } }
.toggle-chip { gap: .55rem; }
.toggle-chip .i { width: 1.1em; height: 1.1em; }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.results-head h2 { font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.sort { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .9rem; color: var(--fg-2); }
.sort .select { min-height: 42px; padding-block: .4rem; width: auto; border-radius: 999px; font-size: .9375rem; background-color: var(--glass); }
.grid-events { display: grid; gap: 1.6rem .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid-events { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.1rem; } }
@media (min-width: 1040px) { .grid-events { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem 1.25rem; } }

.empty { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: .9rem; padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem; text-align: center; border-radius: var(--r-xl); }
.empty .i { width: 2.4rem; height: 2.4rem; color: var(--fg-3); }
.empty p { color: var(--fg-2); max-width: 40ch; }
.empty h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }

.host-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; justify-items: start; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-xl); position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(2.5rem, 6vw, 4rem); }
.host-cta .hero-petals { right: -6%; width: min(26rem, 80vw); opacity: .5; z-index: -1; }
.host-cta p { color: var(--fg-2); max-width: 48ch; }
.demo-note { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 16px; font-size: .9rem; font-weight: 600; line-height: 1.4;
  background: rgba(255, 196, 0, .12); border: 1px solid rgba(255, 210, 74, .55); color: #FFE08A; }
.demo-note .i { flex: none; margin-top: .1em; }

/* ---------- Event sheet ---------- */
.evd__hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; gap: .6rem;
  min-height: 230px; padding: 4rem 1.25rem 1.25rem;
  background: linear-gradient(150deg, var(--a), var(--b));
}
.evd__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .55)); }
.evd__hero .poster__motif { left: auto; right: -4%; width: 64%; z-index: -1; }
.evd__hero h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1.05; text-wrap: balance; max-width: 18ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.evd__tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.evd__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 1.4rem 1.25rem 1.6rem; }
.evd__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; align-content: start; min-width: 0; }
.evd__facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; }
.evd__facts li { display: flex; gap: .85rem; align-items: flex-start; }
.evd__facts .ic { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; width: 42px; height: 42px; border-radius: 14px; flex: none; background: var(--glass); border: 1px solid var(--glass-line); }
.evd__facts b { display: block; line-height: 1.3; }
.evd__facts small { display: block; color: var(--fg-3); font-size: .875rem; line-height: 1.35; }
.evd__facts a { color: var(--link); font-weight: 700; text-underline-offset: .2em; }
.evd h3 { font-size: 1.0625rem; font-weight: 800; margin-bottom: .5rem; }
.evd__main p { color: var(--fg-2); max-width: 62ch; }
.evd .checks .i { color: #D6568F; }
.evd__book { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; align-content: start; }
.tier { display: flex; align-items: center; gap: .9rem; padding: .95rem 1rem; border-radius: 22px; transition: border-color .2s, background-color .2s; }
.tier.is-on { background: var(--glass-strong); border-color: rgba(255, 255, 255, .6); }
.tier__info { flex: 1; min-width: 0; }
.tier__info b { display: block; line-height: 1.25; }
.tier__info small { display: block; color: var(--fg-3); font-size: .8125rem; line-height: 1.35; }
.tier__price { font-weight: 800; margin-top: .2rem; }
.stepper { display: inline-flex; align-items: center; gap: .1rem; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--glass-line); flex: none; }
.stepper button {
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: #fff; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, transform .15s var(--ease);
}
.stepper button:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.stepper button:active:not(:disabled) { transform: scale(.88); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 30px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.book-hint { font-size: .875rem; color: var(--fg-3); }
@media (min-width: 900px) {
  .evd__hero { min-height: 280px; padding: 5rem 2rem 1.75rem; }
  .evd__body { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; padding: 2rem; }
  .evd__book { position: sticky; top: 0; }
}

.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 940px; margin-inline: auto; }
.foot-row__sum { display: grid; grid-template-columns: minmax(0, 1fr); line-height: 1.2; }
.foot-row__sum small { color: var(--fg-3); font-size: .8125rem; font-weight: 600; }
.foot-row__sum strong { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Checkout ---------- */
.sheet__bar { display: flex; align-items: center; gap: .6rem; padding: 12px 70px 12px 14px; flex: none; border-bottom: 1px solid var(--glass-line); }
.sheet__bar h2 { font-size: 1.0625rem; font-weight: 800; }
.co { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem; }
@media (min-width: 900px) { .co { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); padding: 2rem; gap: 2rem; align-items: start; } }
.co__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-content: start; }
.sum { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: 1.1rem; border-radius: 24px; }
.sum__ev { display: flex; gap: .85rem; align-items: center; }
.sum__thumb { width: 56px; aspect-ratio: 4/5; border-radius: 12px; flex: none; background: linear-gradient(155deg, var(--a), var(--b)); }
.sum__ev b { display: block; line-height: 1.25; }
.sum__ev small { color: var(--fg-3); font-size: .85rem; line-height: 1.35; display: block; }
.sum__lines { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; padding-top: .75rem; border-top: 1px solid var(--glass-line); font-weight: 600; }
.sum__lines li { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .75rem; border-top: 1px solid var(--glass-line); font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* ---------- Ticket ---------- */
.done { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.4rem 1.25rem 1.6rem; justify-items: center; text-align: center; }
.done__ok { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(110, 231, 176, .16); border: 1px solid rgba(110, 231, 176, .55); color: #8EF0C1; }
.done__ok .i { width: 30px; height: 30px; stroke-width: 2.6; }
.ticket { width: min(100%, 420px); text-align: left; border-radius: 28px; position: relative; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .55)); }
.ticket__top {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; align-content: end; min-height: 150px;
  padding: 1.1rem 1.2rem 1.2rem; border-radius: 28px 28px 0 0; color: #fff;
  background: linear-gradient(150deg, var(--a), var(--b));
}
.ticket__top .poster__motif { left: auto; right: -6%; width: 60%; opacity: .9; }
.ticket__top h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; text-wrap: balance; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.ticket__rip { position: relative; height: 22px; background: #fff; }
.ticket__rip::before, .ticket__rip::after { content: ""; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #1a0a12; }
.ticket__rip::before { left: -11px; }
.ticket__rip::after { right: -11px; }
.ticket__rip i { position: absolute; left: 20px; right: 20px; top: 10px; border-top: 2px dashed rgba(10, 10, 10, .22); }
.ticket__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: .5rem 1.2rem 1.3rem; border-radius: 0 0 28px 28px; background: #fff; color: #0a0a0a; }
.ticket__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1rem; }
.ticket__grid dt { font-size: .75rem; font-weight: 700; color: rgba(10, 10, 10, .62); }
.ticket__grid dd { margin: 0; font-weight: 700; line-height: 1.3; }
.ticket__grid .wide { grid-column: 1 / -1; }
.ticket__code { display: flex; align-items: center; gap: 1rem; padding-top: .9rem; border-top: 2px dashed rgba(10, 10, 10, .15); }
.tqr { width: 136px; height: 136px; flex: none; }
.tqr svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
.ticket__code b { display: block; font-size: 1.1rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ticket__code small { color: rgba(10, 10, 10, .65); font-weight: 600; font-size: .8125rem; line-height: 1.35; display: block; }
.ticket__demo { display: inline-flex; align-self: start; justify-self: start; padding: .2rem .6rem; border-radius: 999px; background: #1a1a1a; color: #fff; font-size: .75rem; font-weight: 700; }
.done__actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }

/* My tickets list */
.mt { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; padding: 1.1rem; }
.mt-card { display: flex; gap: .9rem; align-items: center; width: 100%; padding: .8rem; border-radius: 22px; text-align: left; color: var(--fg); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mt-card:active { transform: scale(.985); }
.mt-card .sum__thumb { width: 52px; }
.mt-card b { display: block; line-height: 1.25; }
.mt-card small { display: block; color: var(--fg-3); font-size: .85rem; line-height: 1.35; }
.mt-card .i { margin-left: auto; color: var(--fg-3); flex: none; }

/* City list */
.city-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: .5rem 1.1rem 1.4rem; }
.city-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  min-height: 56px; padding: 0 1.1rem; border-radius: 18px; text-align: left;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--fg); font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}
.city-opt[aria-checked="true"] { background: #fff; color: #000; border-color: #fff; }
.city-opt small { font-weight: 600; opacity: .7; }
.sheet__title { padding: 1.3rem 4.5rem .6rem 1.3rem; }
.sheet__title h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.sheet__title p { color: var(--fg-2); margin-top: .35rem; }

.count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
  background: var(--crimson); color: #fff; font-size: .75rem; font-weight: 800; line-height: 1;
}

/* sign-in prompt shown instead of checkout when the visitor has no account session */
.signin-gate { display: grid; justify-items: center; gap: .9rem; text-align: center; padding: 2.2rem 1.4rem 2rem; }
.signin-gate__ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--glass-strong); color: #fff; }
.signin-gate p { color: var(--fg-2); max-width: 38ch; }
.signin-gate .btn-row { justify-content: center; }

/* ---------- Real poster pictures + "only N left" (event cards) ---------- */
.poster--photo::after { background: linear-gradient(180deg, rgba(0, 0, 0, .18), transparent 30%, transparent 62%, rgba(0, 0, 0, .5)); }
.poster__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; display: block; }
.ecard__title { margin: .05rem 0 .15rem; font-size: 1.05rem; font-weight: 800; line-height: 1.25; color: var(--fg); overflow-wrap: anywhere; }
.ecard__price .tag.tag--stock { background: rgba(255, 196, 77, .16); border-color: rgba(255, 196, 77, .55); color: #FFD27A; font-size: .72rem; }
.ecard__price .tag.tag--stock.is-out { background: rgba(255, 99, 130, .16); border-color: rgba(255, 99, 130, .55); color: #FF9DB3; }
.fcard--photo .fcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; display: block; }
.fcard__foot .tag.tag--stock { margin-left: auto; background: rgba(255, 196, 77, .22); border-color: rgba(255, 196, 77, .6); color: #FFE3A8; }
.fcard__foot .tag.tag--stock.is-out { background: rgba(255, 99, 130, .22); border-color: rgba(255, 99, 130, .6); color: #FFC2D0; }

/* ---------- Real poster pictures: show the WHOLE picture (not cropped, not hidden behind the text) ---------- */
/* Featured card: the picture on top at its own shape, the details underneath. */
.fcard--photo { aspect-ratio: auto; display: flex; flex-direction: column; padding: 0; background: #12070d; }
.fcard--photo::after { display: none; }
.fcard--photo .fcard__img { position: static; z-index: auto; width: 100%; height: auto; max-height: 460px; object-fit: contain; background: #0b0508; }
.fcard--photo .fcard__panel { margin: 0; border-radius: 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .14); background: #1a0b12; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 1rem 1.15rem 1.1rem; }
/* Event cards in the list: same idea. The category and date labels stay on top of the picture. */
.poster--photo { aspect-ratio: auto; background: #0b0508; }
.poster--photo::after { display: none; }
.poster--photo .poster__img { position: static; z-index: auto; width: 100%; height: auto; max-height: 440px; object-fit: contain; }
