/* otrip.io — the club page (/club/:handle), its events (/club/:handle/events)
   and the event page (/event/:id). Ported from the approved design
   mobile-app/design-v2/artifacts/club-public-page.html (2026-10-18) on top of
   styles.css. Every class is prefixed — pub- (shared), cp- (club), cx- (club
   events), ev- (event) — so nothing here meets another page's rules.
   Breakpoints as the design: phone < 760, tablet 760–1023, desktop ≥ 1024. */

/* ── Page base (body.pub) ── */
.pub { --amber-50: #FFFBEB; --amber-7: #B45309; }
.pub main img { display: block; }
.pub .ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pub .btn--glass { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.pub .btn--ghost:hover { color: var(--z-900); }
.pub .btn--icon { width: 52px; padding: 0; }
.pub .chip--amber { background: var(--amber-50); color: var(--amber-7); }
.pub a.chip { color: var(--z-700); }
.pub a.chip:hover { color: var(--z-900); }
/* The header over the photo, as the design draws it. */

/* ── Shared: avatars ── */
.pub-f1 { background: linear-gradient(145deg, #93C5FD, #2563EB); }
.pub-f2 { background: linear-gradient(145deg, #FDBA74, #EA580C); }
.pub-f3 { background: linear-gradient(145deg, #C4B5FD, #7C3AED); }
.pub-f4 { background: linear-gradient(145deg, #86EFAC, #16A34A); }
.pub-f5 { background: linear-gradient(145deg, #F9A8D4, #DB2777); }
.pub-f6 { background: linear-gradient(145deg, #5EEAD4, #0D9488); }
.pub-f7 { background: linear-gradient(145deg, #FCD34D, #CA8A04); }
.cp-stack i img, .ev-pp i img, .cp-host .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── Shared: section heading ── */
.pub-sech { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.pub-sech h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.pub-sech a, .pub-sech button { font-size: 15px; font-weight: 700; color: var(--teal-7); background: none; border: 0; font-family: inherit; cursor: pointer; padding: 0; }

/* ── Shared: event cards ── */
.pub-grid2 { display: grid; gap: 16px; }
.cp-feat + .pub-grid2 { margin-top: 16px; }
.pub-ecard { border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--z-200); background: #FFFFFF; display: flex; flex-direction: column; color: inherit; }
a.pub-ecard:hover { color: inherit; }
/* The frame keeps 16:9 whatever the photo's shape: without overflow hidden and an
   absolute picture, Chrome lets a tall photo set the frame's height (Safari does not). */
.pub-ecard__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.pub-ecard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pub-ecard__vid { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #FFFFFF; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pub-ecard__d { position: absolute; left: 12px; top: 12px; width: 50px; height: 54px; border-radius: 12px; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.pub-ecard__d i { font-style: normal; font-size: 9.5px; font-weight: 800; color: #DC2626; letter-spacing: .06em; }
.pub-ecard__d b { font-size: 21px; font-weight: 700; line-height: 21px; color: var(--z-900); }
.pub-ecard__b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.pub-ecard__b h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.pub-ecard__b span { font-size: 14px; color: var(--z-500); }
.pub-ecard__b .chip { font-size: 12.5px; padding: 4px 10px; }
.cp-page .pub-ecard__b .chips { margin-top: 4px; }

/* ── Shared: side cards, the dark action card, the QR ── */
.pub-scard { border-radius: 24px; padding: 22px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--z-200); }
.pub-scard h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.pub-scard p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--z-600); }
.pub-dark { background: var(--deep); color: #FFFFFF; box-shadow: none; }
.pub-dark h3 { color: #FFFFFF; }
.pub-dark p { color: rgba(255, 255, 255, .75); }
.pub-btns { display: grid; gap: 10px; margin-top: 16px; }
.pub-qr { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.pub-qr img { width: 84px; height: 84px; background: #FFFFFF; border-radius: 12px; padding: 7px; flex: none; }
.pub-qr span { font-size: 13.5px; color: rgba(255, 255, 255, .75); line-height: 1.45; }
.pub-qr span b { display: block; color: #FFFFFF; font-size: 14.5px; }

/* ── Shared: a club's round mark + "More from" row ── */
.pub-cl { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(145deg, #0F766E, #2DD4BF); display: grid; place-items: center; flex: none; overflow: hidden; color: #FFFFFF; }
.pub-cl img { width: 100%; height: 100%; object-fit: cover; }
.pub-cl b { font-size: 17px; font-weight: 800; }
.pub-moreh { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pub-moreh > div { flex: 1; min-width: 0; }
.pub-moreh > div > b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pub-moreh > div > span { font-size: 14px; color: var(--z-500); }

/* ── Shared: the phone's bottom bar ── */
.pub-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--z-200); }
.pub-mbar .btn { flex: 1; height: 48px; }
.pub-mbar .btn--icon { flex: none; width: 48px; }

/* ════════════ Club page ════════════ */
.cp-hero { position: relative; height: clamp(440px, 48vw, 600px); color: #FFFFFF; overflow: hidden; }
.cp-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 47, 46, .55) 0%, rgba(4, 47, 46, 0) 28%, rgba(4, 47, 46, 0) 45%, rgba(4, 20, 19, .82) 100%); }
.cp-id { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; padding-bottom: 34px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: end; }
.cp-logo { width: 120px; height: 120px; border-radius: 50%; border: 5px solid #FFFFFF; background: linear-gradient(145deg, #0F766E, #2DD4BF); display: grid; place-items: center; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); overflow: hidden; color: #FFFFFF; }
.cp-logo img { width: 100%; height: 100%; object-fit: cover; }
.cp-logo b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.cp-name { min-width: 0; }
.cp-name h1 { margin: 10px 0 6px; font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1; overflow-wrap: anywhere; }
.cp-name p { margin: 0; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .88); }
.cp-cta { grid-column: 1 / -1; display: flex; gap: 10px; }

.cp-bar { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 22px 0; border-bottom: 1px solid var(--z-100); }
.cp-stats { display: flex; gap: 30px; }
.cp-stats div b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.cp-stats div span { font-size: 13.5px; color: var(--z-500); font-weight: 600; }
.cp-faces { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 14.5px; color: var(--z-600); }
.cp-faces b { color: var(--z-900); }
.cp-stack { display: flex; }
.cp-stack i { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid #FFFFFF; margin-right: -10px; display: grid; place-items: center; color: #FFFFFF; font-style: normal; font-size: 12px; font-weight: 700; overflow: hidden; }

.cp-tabs { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--z-100); }
.cp-tabs .shell { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cp-tabs .shell::-webkit-scrollbar { display: none; }
.cp-tabs a { flex: none; padding: 16px 14px 14px; font-size: 15px; font-weight: 700; color: var(--z-500); border-bottom: 2.5px solid transparent; }
.cp-tabs a:hover { color: var(--z-900); }
.cp-tabs a.on { color: var(--z-900); border-bottom-color: var(--teal); }
.cp-tabs a em { font-style: normal; font-weight: 700; color: var(--z-400); margin-left: 4px; }
/* Anchored sections land below the sticky tab row. */
.cp-page section[id] { scroll-margin-top: 64px; }

.cp-cols { display: grid; gap: 40px; padding-top: 34px; padding-bottom: 70px; }
.cp-main { min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.cp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Featured next event */
.cp-feat { display: grid; border-radius: 24px; overflow: hidden; background: #FFFFFF; box-shadow: 0 0 0 1px var(--z-200), 0 30px 60px -40px rgba(4, 47, 46, .45); }
.cp-feat__img { position: relative; min-height: 240px; }
.cp-feat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-feat__soon { position: absolute; left: 16px; top: 16px; background: rgba(4, 47, 46, .72); color: #FFFFFF; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 6px 12px; backdrop-filter: blur(6px); }
.cp-feat__b { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cp-feat__k { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.cp-feat__when { display: flex; align-items: center; gap: 14px; }
.cp-cal { width: 62px; height: 66px; border-radius: 15px; box-shadow: 0 0 0 1px var(--z-200), 0 6px 14px -8px rgba(0, 0, 0, .25); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; background: #FFFFFF; }
.cp-cal i { font-style: normal; font-size: 11px; font-weight: 800; color: #DC2626; letter-spacing: .06em; }
.cp-cal b { font-size: 28px; font-weight: 700; line-height: 28px; }
.cp-feat__when div b { display: block; font-size: 16px; font-weight: 800; }
.cp-feat__when div span { font-size: 14px; color: var(--z-500); }
.cp-feat__t { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.cp-meta { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--z-600); }
.cp-meta b { color: var(--z-900); }
.cp-meta:empty { display: none; }
.cp-feat__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cp-feat__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* Past events */
.cp-grid3 { display: grid; gap: 14px; }
.cp-pcard { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; color: #FFFFFF; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
a.cp-pcard:hover { color: #FFFFFF; }
.cp-pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4, 20, 19, .82)); }
.cp-pcard > div { position: relative; z-index: 1; }
.cp-pcard b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.cp-pcard span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .85); margin-top: 3px; }
.cp-pcard em { position: absolute; right: 12px; top: 12px; z-index: 1; font-style: normal; font-size: 12.5px; font-weight: 700; background: rgba(0, 0, 0, .45); border-radius: 999px; padding: 4px 10px; display: flex; align-items: center; gap: 5px; }

/* Photos */
.cp-phgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-radius: 20px; overflow: hidden; }
.cp-phgrid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cp-phgrid .cp-tall { grid-row: span 2; aspect-ratio: auto; height: 100%; }

/* Side cards */
.cp-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.cp-facts li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--z-700); }
.cp-facts li svg { color: var(--teal); }
.cp-facts:empty { display: none; }
.cp-side #about p { white-space: pre-line; }
.cp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cp-rules { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.cp-rules li { display: flex; gap: 10px; font-size: 15px; color: var(--z-700); line-height: 1.45; }
.cp-rules li svg { color: var(--teal); margin-top: 2px; }
.cp-host { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.cp-host .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; font-weight: 700; flex: none; overflow: hidden; }
.cp-host b { display: block; font-size: 16px; }
.cp-host span { font-size: 13.5px; color: var(--z-500); }
.cp-host a { font-size: 14px; font-weight: 700; }

/* Empty state (no public events coming up) */
.cp-empty { border-radius: 24px; padding: 34px 24px; text-align: center; background: radial-gradient(circle at 50% 0%, var(--teal-50), #FFFFFF 70%); box-shadow: 0 0 0 1px var(--z-200); }
.cp-halo { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; background: var(--teal-50); box-shadow: 0 0 0 12px rgba(13, 148, 136, .06); display: grid; place-items: center; color: var(--teal); }
.cp-empty h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.cp-empty p { margin: 0 auto 16px; max-width: 40ch; color: var(--z-600); }

/* ════════════ Club events (See all) ════════════ */
.cx-head { padding-top: 28px; }
.cx-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 18px; font-size: 15px; font-weight: 700; }
.cx-head .pub-moreh { margin: 0; padding-bottom: 22px; border-bottom: 1px solid var(--z-100); }
.cx-head .pub-cl { width: 64px; height: 64px; }
.cx-head .pub-cl b { font-size: 22px; }
.cx-head h1 { margin: 0 0 2px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.cx-count { font-size: 15px; font-weight: 700; color: var(--z-500); }
.cx-pager { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.cx-pager .btn svg { margin-right: -4px; }
.cx-page .cp-side { top: 100px; }

/* ════════════ Event page ════════════ */
.ev-hero { position: relative; height: clamp(460px, 46vw, 580px); color: #FFFFFF; overflow: hidden; }
.ev-hero > .ev-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A cover video shows once app.js starts it (.ev-media--on); until then, with
   script off or with reduced motion, the still picture after it does. */
.ev-hero > video.ev-media:not(.ev-media--on) { display: none; }
.ev-hero > .ev-media--on ~ .ev-poster { display: none; }
/* The cover video's play control, above the title (the app's TransferRing play:
   54, black at 42%, a white triangle nudged 3px right, its length in a pill under it). */
.ev-play { position: absolute; left: 50%; top: 40%; translate: -50% -50%; z-index: 2; display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #FFFFFF; cursor: pointer; font-family: inherit; }
.ev-play__btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .15s, background .15s; }
.ev-play__btn svg { margin-left: 3px; }
.ev-play:hover .ev-play__btn { background: rgba(0, 0, 0, .55); transform: scale(1.06); }
.ev-play:focus-visible { outline: none; }
.ev-play:focus-visible .ev-play__btn { outline: 3px solid #FFFFFF; outline-offset: 3px; }
/* Under 1,024px the title block takes more of a shorter header: the open photo is higher up, between the top bar and the chips. */
@media (max-width: 1023px) { .ev-play { top: 32%; } }
.ev-play__len { height: 21px; line-height: 21px; padding: 0 9px; border-radius: 999px; background: rgba(0, 0, 0, .5); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Its window: the whole video with sound and controls, shaped like the video (app.js sets it). */
.ev-vid { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.ev-vid::backdrop { background: rgba(4, 10, 10, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ev-vid__in { border-radius: 20px; overflow: hidden; background: #000; }
.ev-vid__in video { display: block; width: min(1080px, 92vw); max-height: 82vh; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.ev-vid__x { position: absolute; top: -52px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; }
.ev-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 47, 46, .55) 0%, rgba(4, 47, 46, 0) 28%, rgba(4, 47, 46, 0) 42%, rgba(4, 20, 19, .85) 100%); }
.ev-id { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; padding-bottom: 34px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: end; }
.ev-cal { width: 92px; height: 100px; border-radius: 20px; background: #FFFFFF; color: var(--z-900); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); }
.ev-cal i { font-style: normal; font-size: 13px; font-weight: 800; color: #DC2626; letter-spacing: .08em; }
.ev-cal b { font-size: 42px; font-weight: 700; line-height: 42px; }
.ev-cal small { font-size: 12px; font-weight: 700; color: var(--z-500); letter-spacing: .06em; }
.ev-name { min-width: 0; }
.ev-name h1 { margin: 12px 0 8px; font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; overflow-wrap: anywhere; }
.ev-name p { margin: 0; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .88); }
.ev-byclub { display: inline-flex; align-items: center; gap: 8px; padding: 4px 13px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #FFFFFF; font-size: 13.5px; font-weight: 700; backdrop-filter: blur(8px); }
a.ev-byclub:hover { color: #FFFFFF; }
.ev-byclub__l { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(145deg, #0F766E, #2DD4BF); display: grid; place-items: center; overflow: hidden; }
.ev-byclub__l img { width: 100%; height: 100%; object-fit: cover; }
.ev-byclub__l b { font-size: 10px; font-weight: 800; }
.ev-off { background: rgba(239, 68, 68, .85); }
.ev-acts { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }

.ev-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; padding: 22px 0; border-bottom: 1px solid var(--z-100); }
.ev-bar > div { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.ev-bar p { min-width: 0; }
.ev-bar .ev-si { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; flex: none; }
.ev-bar b { display: block; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.ev-bar span { display: block; font-size: 13.5px; color: var(--z-500); margin-top: 1px; }
.ev-bar .ev-amb { background: var(--amber-50); color: var(--amber-7); }

.ev-cols { display: grid; gap: 40px; padding-top: 34px; padding-bottom: 70px; }
.ev-main { min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.ev-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ev-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--z-700); max-width: 62ch; white-space: pre-line; }

/* Recap ribbon (past) */
.ev-recap { display: flex; align-items: center; gap: 14px; border-radius: 20px; padding: 16px 18px; background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal-100); }
.ev-recap .ev-rk { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #FFFFFF; display: grid; place-items: center; flex: none; }
.ev-recap b { display: block; font-size: 17px; font-weight: 800; }
.ev-recap span { font-size: 14.5px; color: var(--z-600); }

/* Gallery */
.ev-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-radius: 22px; overflow: hidden; }
.ev-gal button { all: unset; cursor: pointer; position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--z-100); }
.ev-gal button img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ev-gal button:hover img { transform: scale(1.04); }
.ev-gal button:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.ev-gal .ev-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ev-gal .ev-vid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .35) 0, rgba(0, 0, 0, .35) 22px, transparent 23px); }
.ev-gal .ev-vid em { position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%); z-index: 1; width: 0; height: 0; border-left: 14px solid #FFFFFF; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.ev-gal .ev-vid small { position: absolute; right: 8px; bottom: 8px; z-index: 1; color: #FFFFFF; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .55); border-radius: 6px; padding: 2px 6px; }
.ev-gal .ev-more { display: grid; place-items: center; }
.ev-gal .ev-more img { filter: brightness(.45); }
.ev-gal .ev-more strong { position: absolute; inset: 0; display: grid; place-items: center; color: #FFFFFF; font-size: 28px; font-weight: 800; }
.ev-galnote { margin: 10px 0 0; font-size: 13.5px; color: var(--z-500); }

/* People */
.ev-people { display: flex; flex-wrap: wrap; gap: 14px 10px; }
.ev-pp { width: 74px; text-align: center; }
.ev-pp i { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; color: #FFFFFF; font-style: normal; font-weight: 700; font-size: 16px; overflow: hidden; }
.ev-pp b { display: block; font-size: 13.5px; font-weight: 600; color: var(--z-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-pp span { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--z-500); background: var(--z-100); border-radius: 999px; padding: 1px 7px; }
.ev-pp--more i { background: var(--z-100); color: var(--z-700); font-size: 15px; }
.ev-pnote { margin: 12px 0 0; font-size: 13.5px; color: var(--z-500); }

/* Where */
.ev-where { border-radius: 22px; box-shadow: 0 0 0 1px var(--z-200); overflow: hidden; }
.ev-wr { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.ev-wr + .ev-wr { border-top: 1px solid var(--z-100); }
.ev-wi { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; flex: none; }
.ev-wr > div { flex: 1; min-width: 0; }
.ev-wr small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--z-500); }
.ev-wr b { display: block; font-size: 16px; margin-top: 2px; }
.ev-wr span { font-size: 14px; color: var(--z-500); }
.ev-wr a { font-size: 14.5px; font-weight: 700; align-self: center; }

.ev-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-rules li { display: flex; gap: 10px; font-size: 15.5px; color: var(--z-700); }
.ev-rules li svg { color: var(--teal); margin-top: 2px; }

/* Side: price, steps, next event, club */
.pub-dark .ev-price { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.pub-dark .ev-price b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.pub-dark .ev-price span { font-size: 14px; color: var(--teal-300); font-weight: 700; }
.ev-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; counter-reset: s; }
.ev-steps li { display: flex; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .82); line-height: 1.4; }
.ev-steps li::before { counter-increment: s; content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #FFFFFF; font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.ev-nextev { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #FFFFFF; }
a.ev-nextev:hover { color: #FFFFFF; background: rgba(255, 255, 255, .12); }
.ev-nextev img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.ev-nextev b { display: block; font-size: 15px; }
.ev-nextev span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.ev-clubc { display: flex; align-items: center; gap: 12px; }
.ev-clubc .pub-cl { width: 52px; height: 52px; }
.ev-clubc > div { min-width: 0; }
.ev-clubc > div > b { display: block; font-size: 17px; }
.ev-clubc > div > span { font-size: 13.5px; color: var(--z-500); }
.pub-scard .ev-clubd { margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ev-share { display: flex; gap: 8px; margin-top: 14px; }

/* Photo viewer */
.ev-lb { position: fixed; inset: 0; z-index: 100; background: rgba(9, 9, 11, .96); display: none; flex-direction: column; color: #FFFFFF; }
.ev-lb.ev-lb--open { display: flex; }
.ev-lb-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.ev-lb-t { flex: 1; min-width: 0; }
.ev-lb-t b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-lb-t span { font-size: 13.5px; color: rgba(255, 255, 255, .65); }
.ev-lb-x, .ev-lb-nav { all: unset; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; flex: none; }
.ev-lb-x:focus-visible, .ev-lb-nav:focus-visible { outline: 2px solid var(--teal-300); }
.ev-lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 20px; touch-action: pan-y; }
.ev-lb-stage img, .ev-lb-stage video { max-height: 100%; max-width: min(1100px, 100%); object-fit: contain; border-radius: 8px; min-width: 0; }
.ev-lb-stage [hidden] { display: none; }
.ev-lb-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 6px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.ev-lb-cap a { color: var(--teal-300); font-weight: 700; }
.ev-lb-strip { display: flex; gap: 6px; padding: 8px 20px 20px; overflow-x: auto; scrollbar-width: none; }
.ev-lb-strip button { all: unset; cursor: pointer; flex: none; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; opacity: .5; position: relative; background: rgba(255, 255, 255, .08); }
.ev-lb-strip button.on { opacity: 1; box-shadow: 0 0 0 2px #FFFFFF; }
.ev-lb-strip button:focus-visible { outline: 2px solid var(--teal-300); }
.ev-lb-strip img { width: 100%; height: 100%; object-fit: cover; }
html.ev-lb-lock { overflow: hidden; }

/* ── Phone (< 760) ── */
@media (max-width: 759px) {
  .pub-sech h2 { font-size: 22px; }
  .pub-qr { display: none; }

  .cp-hero { height: auto; overflow: visible; }
  /* The app's cover shape, 16:9 (mobile-app src/lib/cover-layout.ts; user, 2026-10-21 — it was 4:3). */
  .cp-hero .cp-cover { position: relative; height: auto; aspect-ratio: 16 / 9; }
  .cp-hero .cp-scrim { bottom: auto; height: calc(100vw * .5625); background: linear-gradient(180deg, rgba(4, 47, 46, .55), transparent 35%); }
  .cp-id { position: relative; color: var(--z-900); grid-template-columns: 1fr; gap: 0; padding-bottom: 0; margin-top: -52px; }
  .cp-logo { width: 96px; height: 96px; border-width: 4px; }
  .cp-logo b { font-size: 32px; }
  .cp-name .chips .chip { background: var(--teal-50); color: var(--teal-7); backdrop-filter: none; }
  .cp-name h1 { font-size: 32px; margin-top: 12px; }
  .cp-name p { color: var(--z-500); font-size: 14.5px; }
  .cp-cta { margin-top: 16px; }
  .cp-cta .btn { flex: 1; height: 48px; }
  .cp-cta .btn--light { background: var(--teal); color: #FFFFFF; }
  .cp-cta .btn--glass { background: #FFFFFF; color: var(--z-800); box-shadow: inset 0 0 0 1.5px var(--z-200); backdrop-filter: none; }
  .cp-bar { gap: 16px; padding: 18px 0; }
  .cp-stats { gap: 0; width: 100%; justify-content: space-between; }
  .cp-stats div b { font-size: 20px; }
  .cp-faces { margin-left: 0; }
  .cp-tabs a { padding: 14px 10px 12px; font-size: 14.5px; }
  .cp-cols { padding-top: 24px; padding-bottom: 110px; }
  .cp-main { gap: 38px; }
  .cp-feat__t { font-size: 22px; }
  .cp-pscroll { display: flex; overflow-x: auto; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding-inline: var(--pad); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cp-pscroll .cp-pcard { flex: none; width: 72%; scroll-snap-align: start; }
  .cx-page .cp-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cx-page .cp-pcard { padding: 12px; }
  .cx-page .cp-pcard b { font-size: 15px; }
  .cx-head .pub-moreh .btn { display: none; }

  .ev-hero { height: auto; min-height: 0; padding-top: 96px; padding-bottom: 0; }
  .ev-id { position: relative; grid-template-columns: auto 1fr; gap: 14px; padding-top: 150px; padding-bottom: 22px; }
  .ev-cal { width: 66px; height: 72px; border-radius: 16px; }
  .ev-cal b { font-size: 30px; line-height: 30px; }
  .ev-cal small { font-size: 10px; }
  .ev-name h1 { font-size: 30px; margin: 10px 0 6px; }
  .ev-name p { font-size: 14.5px; }
  .ev-acts { margin-top: 4px; }
  .ev-acts .btn { height: 48px; }
  .ev-acts .btn:not(.btn--icon) { flex: 1; }
  .ev-acts .ev-wide { display: none; }
  .ev-bar { gap: 14px 12px; padding: 18px 0; }
  .ev-bar .ev-si { width: 34px; height: 34px; border-radius: 10px; }
  .ev-bar b { font-size: 14.5px; }
  .ev-bar span { font-size: 12.5px; }
  .ev-cols { padding-top: 24px; padding-bottom: 110px; }
  .ev-main { gap: 36px; }
  .ev-gal { grid-template-columns: repeat(3, 1fr); border-radius: 18px; gap: 4px; }
  .ev-gal .ev-hide-phone { display: none; }
  .ev-lb-nav { display: none; }
  .ev-lb-stage { padding: 0; }
  .ev-lb-stage img, .ev-lb-stage video { border-radius: 0; max-width: 100%; }
}

/* ── Tablet and up (≥ 760) ── */
@media (min-width: 760px) {
  .pub-mbar { display: none; }
  .pub-grid2 { grid-template-columns: 1fr 1fr; }

  .cp-grid3 { grid-template-columns: repeat(3, 1fr); }
  .cp-feat { grid-template-columns: 1.1fr 1fr; }
  .cp-phgrid { grid-template-columns: repeat(4, 1fr); }

  .ev-bar { grid-template-columns: repeat(4, 1fr); }
}

/* ── Desktop (≥ 1024) ── */
@media (min-width: 1024px) {
  /* Name and buttons share one row only from here: on a tablet the buttons took
     the row and left a long name 147 px wide, running up under the logo. */
  .cp-cta { grid-column: auto; align-self: end; }
  .cp-id { grid-template-columns: auto 1fr auto; }
  .ev-id { grid-template-columns: auto 1fr auto; }
  .ev-acts { grid-column: auto; align-self: end; flex-wrap: nowrap; }
  .cp-cols, .ev-cols { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
  .cp-side { position: sticky; top: 76px; align-self: start; }
  .ev-side { position: sticky; top: 24px; align-self: start; }
  .cx-page .cp-side { top: 100px; }
}

/* Motion: a cover video shows only its still picture. */
@media (prefers-reduced-motion: reduce) {
  .ev-hero > video.ev-media { display: none; }
  .ev-hero > .ev-media--on ~ .ev-poster { display: block; }
}
