/* Shared parts of the detail pages (club, artist, residency): the event card, titles, empty state. Containers/chips themselves come from event-page.css. */
.pp-title { align-self: flex-start; height: 35px; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.pp-events { gap: 8px; }
/* the list has no spare padding under its last card (the panel's own 10px gap sits between it and the View all card) */
.ev-lineup.pp-events { padding-bottom: 0; }
.pp-empty { text-align: center; color: var(--text-secondary); font: 600 14px 'Poppins', sans-serif; padding: 24px 12px; }
/* the app's EventCard: card (padding 12) with a 130px picture beside the details */
.pp-ev { --h: 130px; display: flex; gap: 12px; align-items: stretch; text-decoration: none; color: inherit; padding: 12px; }
.pp-ev.pool { --h: 90px; }
/* the picture is exactly as tall as the details beside it: --h is the details' height (30 title + 45 guestlist slot + 25 date + 5 + 25 time = 130; a pool day 90),
   the picture stretches to the details' real height and is --h wide (a square), and its image adds no height of its own */
.pp-ev-img { position: relative; flex: 0 0 auto; align-self: stretch; height: auto; width: var(--h); border-radius: 7px; overflow: hidden; background: var(--background); box-shadow: var(--shadow-soft); }
.pp-ev-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-ev-info { flex: 1 1 auto; min-width: 0; min-height: var(--h); display: flex; flex-direction: column; align-items: flex-start; }
.pp-ev-title { height: 30px; font-size: 16px; font-weight: 600; max-width: 100%; box-sizing: border-box; }
.pp-ev-slot { height: 45px; display: flex; align-items: center; max-width: 100%; }
.pp-ev-gap { height: 5px; }
.pp-ev-gl .colored-chip-inner { height: 35px; padding: 0 12px; font-size: 12px; font-weight: 600; }
.pp-ev-meta { display: flex; flex-wrap: wrap; gap: 5px; max-width: 100%; }
.pp-ev-meta + .pp-ev-meta { margin-top: 5px; }
.pp-ev-info .ev-chip-sm { height: 25px; padding: 0 12px; font-size: 12px; font-weight: 500; line-height: 25px; display: inline-flex; align-items: center; max-width: 100%; box-sizing: border-box; }
.pp-ev-venue { max-width: 100%; }
.pp-ev-pool .colored-chip-inner { height: 25px; padding: 0 12px; font-size: 12px; font-weight: 600; background-color: rgba(3, 158, 205, .225); color: rgb(3, 158, 205); }
.pp-ev:hover { filter: brightness(1.05); }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .pp-ev-gl { background: none; }
    :root:not([data-theme="dark"]) .pp-ev-gl .colored-chip-inner { background: var(--success); color: #fff; }
    :root:not([data-theme="dark"]) .pp-ev-pool .colored-chip-inner { background: rgb(3, 158, 205); color: #fff; }
}
:root[data-theme="light"] .pp-ev-gl { background: none; }
:root[data-theme="light"] .pp-ev-gl .colored-chip-inner { background: var(--success); color: #fff; }
:root[data-theme="light"] .pp-ev-pool .colored-chip-inner { background: rgb(3, 158, 205); color: #fff; }
.layout-container .ev-lineup { overflow-y: auto; }
.error-message { text-align: center; padding: 60px 20px; }

/* loading skeleton */
.sk { background: linear-gradient(90deg, var(--background) 0%, var(--surface-light) 50%, var(--background) 100%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: 7px; }
.sk-chip { height: 35px; }
.pp-loading .pp-ev-img { background: none; }

/* ---- the app's club pins: a photo card with a tail; nearby clubs merge into one collage card ---- */
.mk-layer { position: absolute; left: 0; top: 0; }
.mk { position: absolute; transform: translate(-50%, -100%); cursor: pointer; width: var(--box); }
.mk-box { box-sizing: border-box; width: var(--box); height: var(--box); padding: calc(3px * var(--s)); border-radius: calc(8px * var(--s)); background: color-mix(in srgb, var(--background) 90%, transparent); box-shadow: 0 calc(4px * var(--s)) calc(8px * var(--s)) rgba(0, 0, 0, .35); }
.mk-in { position: relative; width: 100%; height: 100%; border-radius: calc(6px * var(--s)); overflow: hidden; background: #000; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mk-in.mk-n1 { display: block; background: none; }
.mk-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-cell { position: relative; overflow: hidden; background: #000; display: flex; align-items: center; }
.mk-cell.wide { grid-column: 1 / -1; }
.mk-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-cell.wide img { height: auto; object-fit: contain; }
.mk-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); color: #fff; font: 600 calc(var(--box) * 0.22) 'Poppins', sans-serif; }
.mk-tail { width: 0; height: 0; margin: 0 auto; border-left: calc(5px * var(--s)) solid transparent; border-right: calc(5px * var(--s)) solid transparent; border-top: calc(10px * var(--s)) solid color-mix(in srgb, var(--background) 90%, transparent); }


/* shared-styles.css forces every .layout-container to ONE column at <= 1024px (!important); these pages keep their own columns at tablet / small desktop widths */
@media (min-width: 740px) and (max-width: 1000px) { .layout-container.ev-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; } }
@media (min-width: 1001px) and (max-width: 1024px) { .layout-container.ev-page { grid-template-columns: minmax(0, 1fr) 420px !important; } }

/* "View all" button under an events list */
.pp-viewall { flex: 0 0 auto; margin-top: 0; }
/* the button sits in a surface card like the Upcoming | Previous switcher (padding 8, 51px tall, 35px control inside) */
.pp-viewall-card { flex: 0 0 auto; padding: 8px; height: 51px; box-sizing: border-box; }
.pp-viewall-card .pp-viewall { height: 35px; border-radius: 8px; font-size: 13px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* ---- the square event card (PP.eventSquare): container-less; put it inside an .ev-box or a grid */
.pp-sq { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; min-width: 0; }
.pp-sq:hover { filter: brightness(1.1); }
.pp-sq-img { position: relative; padding: 8px; }
.pp-sq-img img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 7px; background: var(--background); }
.pp-sq-info { padding: 6px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.pp-sq-info .ev-chip { max-width: 100%; box-sizing: border-box; white-space: nowrap; }
.pp-sq-info .pp-sq-name { height: 28px; padding: 0 12px; font: 600 14px/28px 'Poppins', sans-serif; display: inline-flex; align-items: center; }
.pp-sq-info .ev-chip-sm { height: 22px; padding: 0 10px; font-size: 11.5px; line-height: 22px; display: inline-flex; align-items: center; }
.pp-sq .ev-chip .ell { display: block; overflow: hidden; text-overflow: ellipsis; }
.pp-sq-meta { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; max-width: 100%; }
/* day chip over the image = the app's tinted chip (colour at 22.5% on the background at 90%, text in the colour); light mode = solid, white text */
.pp-sq-day { position: absolute; top: 16px; left: 16px; background-color: rgba(var(--bg-rgb), .9); }
.pp-sq-day .colored-chip-inner, .pp-sq-more .colored-chip-inner { height: 22px; padding: 0 8px; font-size: 12px; font-weight: 600; }
.pp-sq-more { cursor: pointer; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .pp-sq-day, :root:not([data-theme="dark"]) .pp-sq-more { background: none; }
    :root:not([data-theme="dark"]) .pp-sq-day .colored-chip-inner { background: var(--success); color: #fff; }
    :root:not([data-theme="dark"]) .pp-sq-more .colored-chip-inner { background: var(--secondary); color: #fff; }
}
:root[data-theme="light"] .pp-sq-day, :root[data-theme="light"] .pp-sq-more { background: none; }
:root[data-theme="light"] .pp-sq-day .colored-chip-inner { background: var(--success); color: #fff; }
:root[data-theme="light"] .pp-sq-more .colored-chip-inner { background: var(--secondary); color: #fff; }

/* events panel with square cards: 2 columns, scrolls inside the panel */
.ev-lineup.pp-sq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.pp-sq-grid .pp-empty { grid-column: 1 / -1; }

/* desktop: a page with a right-hand events panel (club, artist): the panel starts where the content starts (--pp-top, set by PP.stickPanel), is as tall as the rest of the screen from there and stays put while the page scrolls; the events scroll inside it */
@media (min-width: 1001px) {
    .layout-container.pp-sticky { align-items: start; }
    .layout-container.pp-sticky > .ev-right { position: sticky; top: var(--pp-top, 136px); align-self: start; height: calc(100vh - var(--pp-top, 136px) - 14px); }
    .layout-container.pp-sticky > .ev-right .ev-lineup-box { position: static; height: 100%; max-height: none; box-sizing: border-box; }
    .layout-container.pp-sticky > .ev-right .ev-pane { min-height: 0; flex: 1 1 auto; overflow: hidden; }
    .layout-container.pp-sticky > .ev-right .ev-lineup { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
}

/* the venue chip is dropped when it would push the card onto a fourth line (see PP.fitRows) */
.pp-ev.pp-novenue .pp-ev-venue { display: none; }

/* square card text never pushes past the card: chips shrink and cut off with "..." */
.pp-sq { overflow: hidden; }
.pp-sq-info { overflow: hidden; }
.pp-sq-info .ev-chip { min-width: 0; overflow: hidden; }
.pp-sq-info .ev-chip .ell { min-width: 0; }
.pp-sq-meta .ev-chip { flex: 0 1 auto; }

/* ---- a day with several events = a deck of cards (PP.stack). All cards share one cell; the top one is shown, the next peeks out behind it. */
.pp-stack { display: grid; position: relative; }
.pp-stack-item { grid-area: 1 / 1; min-width: 0; position: relative; z-index: 0; opacity: 0; visibility: hidden; transform: translateY(0) scale(.94); transform-origin: 50% 100%; pointer-events: none; }
.pp-stack-item.is-next { visibility: hidden; opacity: 0; }   /* the next card stays hidden until the swap chip is pressed */
.pp-stack-item.is-top { visibility: visible; opacity: 1; transform: none; z-index: 2; pointer-events: auto; }
.pp-stack-item.is-leaving { visibility: visible; z-index: 3; pointer-events: none; animation: ppSweep .52s cubic-bezier(.5, 0, .2, 1) forwards; }
.pp-stack-item.is-rising { visibility: visible; z-index: 2; opacity: 0; animation: ppRise .52s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes ppSweep { 0% { transform: none; opacity: 1; } 55% { transform: translate(34%, -6%) rotate(8deg); opacity: 1; } 100% { transform: translate(46%, 4%) rotate(11deg) scale(.96); opacity: 0; } }
@keyframes ppRise { 0% { transform: scale(.94); opacity: 0; } 100% { transform: none; opacity: 1; } }
.pp-sq-more i { margin-right: 5px; font-size: 10px; }
.pp-sq-more { cursor: pointer; user-select: none; }
.pp-sq-more:hover { filter: brightness(1.25); }
@media (prefers-reduced-motion: reduce) { .pp-stack-item, .pp-stack-item.is-next { transition: none; } }

/* the swap chip (1/2) sits on the picture, top-right, opposite the date chip: it never adds a line to the details */
.pp-sq-img > .pp-sq-more { position: absolute; top: 16px; right: 16px; background-color: rgba(var(--bg-rgb), .9); z-index: 4; }

/* a page with only an Upcoming list: the blue pill is a button that opens every event */
.ev-solo-link { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer; color: #fff; }
.ev-solo-link i { font-size: 11px; transition: transform .2s ease; }
.ev-tabs-solo:hover .dyn-pill { filter: brightness(1.12); }
.ev-solo-link:hover i { transform: translateX(3px); }

/* the View all card keeps its own padding on every page and size (the pages' phone rules shrink .ev-card padding, which pushed the 35px button off-centre in the 51px card) */
.layout-container .pp-viewall-card.ev-card { padding: 8px; display: flex; align-items: center; }
.pp-viewall-card .pp-viewall { width: 100%; }
