/* ============================================================================
   Labocine — EVENTS, below the hero (views/Client/events/event.hbs).

   One reel from the leader to the credits: the hero's film language carries
   all the way down — the gate's corner brackets and readouts, frames that
   develop from negatives, sprocket holes, and the leader's countdown as each
   section's cue. Every frame comes from the event's atlas, the one image the
   hero reel already loaded. Loaded after events.css; scoped under .ev.
   ============================================================================ */

@property --cue { syntax: "<angle>"; inherits: false; initial-value: 360deg; }

/* ---------------------------------------------------------------- shared */
/* min-width: 0 so a long running head truncates instead of widening its grid */
.ev-mark {
    display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; margin: 0 0 16px;
    font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2);
}
.ev-mark__run { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ev-mark__dial {
    position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: conic-gradient(rgba(var(--accent-rgb), 0.4) var(--cue), rgba(255, 255, 255, 0.04) 0);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.ev-mark__dial::before {
    content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0b0b10;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.ev-mark__dial::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background:
        linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)) center / 1px 100% no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)) center / 100% 1px no-repeat;
}
.ev-mark__dial b { position: relative; z-index: 1; font-size: 0.86rem; font-weight: 700; letter-spacing: 0; color: #fff; }
.is-in .ev-mark__dial { animation: ev-mark-sweep 1.2s var(--ease) both; }
@keyframes ev-mark-sweep { from { --cue: 0deg; } to { --cue: 360deg; } }

.ev-sechead { position: relative; z-index: 2; max-width: 860px; }
.ev-sechead--center { display: grid; justify-items: center; margin: 0 auto; text-align: center; }
.ev-sechead__lede { max-width: 60ch; margin-top: 18px; font-size: 1.06rem; line-height: 1.65; color: var(--muted); }

/* a sprocket rule opens each section after the lineup */
.ev-week::before, .ev-awards::before, .ev-pass::before, .ev-archive::before, .ev-credits::before {
    content: ""; display: block; height: 8px; max-width: var(--maxw); margin: 0 auto clamp(52px, 7vw, 92px);
    background: radial-gradient(ellipse 5px 3px at center, rgba(var(--accent-rgb), 0.32) 92%, transparent 100%) 0 50% / 20px 8px repeat-x;
}

/* the gate's corner brackets, wherever a still is shown */
.ev-gatebox { position: absolute; inset: 9px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.35s ease, inset 0.45s var(--ease); }
.ev-gatebox i { position: absolute; width: 14px; height: 14px; border: 0 solid rgba(255, 255, 255, 0.86); }
.ev-gatebox i:nth-child(1) { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.ev-gatebox i:nth-child(2) { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.ev-gatebox i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.ev-gatebox i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.ev-gatebox--bill { inset: 20px; opacity: 0.9; }
.ev-gatebox--bill i { width: 24px; height: 24px; }

/* ------------------------------------------------------------- the strip */
.ev-strip { position: relative; z-index: 2; overflow: hidden; padding: 0; background: #050507; border-block: 1px solid var(--line); }
.ev-strip::before, .ev-strip::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 9%; pointer-events: none; }
.ev-strip::before { left: 0; background: linear-gradient(90deg, #050507, transparent); }
.ev-strip::after { right: 0; background: linear-gradient(-90deg, #050507, transparent); }
.ev-strip__run { display: flex; width: max-content; animation: ev-strip calc(var(--n, 32) * 2.6s) linear infinite; }
.ev-strip:hover .ev-strip__run, .ev-strip.is-paused .ev-strip__run { animation-play-state: paused; }
@keyframes ev-strip { to { transform: translateX(-50%); } }
.ev-frame {
    position: relative; flex: none; width: 178px; margin: 0; padding: 17px 5px; border: 0; cursor: pointer;
    background-color: #17140f;
    background-image:
        radial-gradient(ellipse 3.4px 2.4px at center, #050507 92%, transparent 100%),
        radial-gradient(ellipse 3.4px 2.4px at center, #050507 92%, transparent 100%);
    background-size: 15px 17px, 15px 17px; background-position: 4px 0, 4px 100%; background-repeat: repeat-x;
}
.ev-frame__img {
    display: block; aspect-ratio: 16 / 9; border-radius: 2px;
    background-image: var(--atlas); background-size: calc(var(--cols) * 100%) calc(var(--rows) * 100%);
    background-position: var(--px) var(--py); background-repeat: no-repeat;
    filter: saturate(0.75) brightness(0.8);
    transition: filter 0.5s var(--ease), transform 0.5s var(--spring);
}
.ev-frame:hover .ev-frame__img, .ev-frame:focus-visible .ev-frame__img { filter: none; transform: scale(1.04); }
.ev-frame i { position: absolute; left: 9px; bottom: 2px; font-family: var(--mono); font-style: normal; font-size: 0.52rem; letter-spacing: 0.16em; color: rgba(255, 186, 104, 0.78); }
.ev-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.ev-strip__pause {
    position: absolute; right: 14px; top: 50%; z-index: 3; transform: translateY(-50%);
    display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(7, 7, 10, 0.78); backdrop-filter: blur(8px); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2);
}
.ev-strip__pause svg { width: 13px; height: 13px; }
.ev-strip__pause .i-play, .ev-strip__pause[aria-pressed="true"] .i-pause { display: none; }
.ev-strip__pause[aria-pressed="true"] .i-play { display: block; }

/* ------------------------------------------------------------ lineup head */
.ev-head { min-width: 0; }
.ev-window-label {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
    font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.ev-window-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14); }
.ev-window-label.is-last { color: var(--accent); }
.ev-window-label.is-last i { animation: ev-pulse 1.4s infinite; }
.ev-count b { color: var(--accent); font-weight: 700; }

/* ------------------------------------------------------------------ cards */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; gap: 50px 22px; margin: 24px 0 0; padding: 0; list-style: none; }
.ev-card { position: relative; min-width: 0; }
.ev-card[hidden] { display: none; }
.ev-card__hit { display: block; border-radius: 12px; color: inherit; text-decoration: none; outline: none; }
.ev-card__hit:hover, .ev-card__hit:focus { color: inherit; text-decoration: none; }
.ev-card__hit:focus-visible .ev-card__img { box-shadow: 0 0 0 2px var(--accent); }
.ev-card__img {
    position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #111117;
    box-shadow: 0 0 0 1px var(--line), 0 26px 50px -30px rgba(0, 0, 0, 0.9); transition: box-shadow 0.5s ease;
}
.ev-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1.7s var(--ease); transition-delay: 0s, var(--dev-delay, 0ms); }
html.ev-dev .ev-card:not(.is-dev) .ev-card__img img { filter: invert(1) sepia(0.6) saturate(2.6) hue-rotate(150deg) brightness(0.6) contrast(1.1); }
.ev-card:hover .ev-card__img img { transform: scale(1.07); }
.ev-card:hover .ev-card__img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 34px 70px -30px var(--card-tone, var(--accent)); }
.ev-card:hover .ev-gatebox, .ev-card__hit:focus-visible .ev-gatebox { opacity: 1; inset: 12px; }
.ev-card__callout {
    position: absolute; left: 10px; top: 10px; z-index: 2; max-width: calc(100% - 64px); padding: 5px 9px; border-radius: 7px;
    overflow: hidden; background: rgba(7, 7, 10, 0.72); backdrop-filter: blur(8px);
    font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; white-space: nowrap; text-overflow: ellipsis;
}
/* numbers as architecture: the screening number rides over the still's corner */
.ev-card__body { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 0 2px; }
.ev-card__num {
    --num: clamp(60px, 5.4vw, 88px);
    position: relative; z-index: 2; margin-top: calc(var(--num) * -0.42);
    font-size: var(--num); font-weight: 900; line-height: 0.82; letter-spacing: -0.06em; font-variant-numeric: tabular-nums;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.34);
    background: linear-gradient(0deg, var(--accent) 0 50%, transparent 50% 100%) 0 0 / 100% 200% no-repeat;
    -webkit-background-clip: text; background-clip: text;
    transition: background-position 0.9s var(--lift), -webkit-text-stroke-color 0.5s ease;
}
.ev-card:hover .ev-card__num, .ev-card__hit:focus-visible .ev-card__num { background-position: 0 100%; -webkit-text-stroke-color: var(--accent); }
.ev-card__txt { display: grid; gap: 3px; min-width: 0; padding-top: 12px; }
.ev-card__t { font-size: 1.02rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; color: #fff; }
.ev-card__by { font-size: 0.86rem; color: #cfcfd8; }
.ev-card__meta { font-size: 0.77rem; color: var(--muted-2); }

/* + saves a film to the watchlist */
.ev-save {
    position: absolute; right: 10px; top: 10px; z-index: 3;
    display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
    background: rgba(7, 7, 10, 0.64); backdrop-filter: blur(8px); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    opacity: 0; transform: scale(0.9); transition: opacity 0.25s ease, transform 0.35s var(--spring), background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.ev-card:hover .ev-save, .ev-save:focus-visible, .ev-save[aria-pressed="true"] { opacity: 1; transform: none; }
.ev-save:hover { background: rgba(7, 7, 10, 0.86); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.9); }
.ev-save svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.ev-save__plus { transform-origin: 12px 12px; transition: opacity 0.2s ease, transform 0.3s var(--spring); }
.ev-save__tick { stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.3s ease 0.06s; }
.ev-save[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px rgba(var(--accent-rgb), 0.9); }
.ev-save[aria-pressed="true"] .ev-save__plus { opacity: 0; transform: rotate(90deg) scale(0.5); }
.ev-save[aria-pressed="true"] .ev-save__tick { stroke-dashoffset: 0; }
.ev-save--wide { position: relative; right: auto; top: auto; display: inline-flex; gap: 8px; width: auto; height: 46px; padding: 0 18px; border-radius: 999px; opacity: 1; transform: none; font-size: 0.88rem; font-weight: 800; }
.ev-save--wide span { white-space: nowrap; }
@media (hover: none) { .ev-save { opacity: 1; transform: none; } }

/* the billboard that opens each reel */
.ev-card--bill { grid-column: 1 / -1; }
.ev-card--bill .ev-save--wide { position: absolute; right: 22px; top: 22px; background: rgba(7, 7, 10, 0.6); }
.ev-card--bill .ev-save--wide[aria-pressed="true"] { background: var(--accent); }
.ev-bill { position: relative; display: block; overflow: hidden; isolation: isolate; border-radius: 20px; color: #fff; text-decoration: none; background: #0b0b10; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -50px rgba(0, 0, 0, 0.95); }
.ev-bill:hover, .ev-bill:focus { color: #fff; text-decoration: none; }
.ev-bill:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.ev-bill__img { position: relative; display: block; aspect-ratio: 21 / 9; }
.ev-bill__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 7s var(--ease); }
.ev-bill:hover .ev-bill__img img { transform: scale(1.07); }
.ev-bill__img::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(7, 7, 10, 0.94) 0%, rgba(7, 7, 10, 0.62) 40%, rgba(7, 7, 10, 0) 72%), linear-gradient(0deg, rgba(7, 7, 10, 0.86) 0%, transparent 48%);
}
.ev-bill__readout { position: absolute; right: 54px; bottom: 30px; z-index: 2; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.ev-bill__body { position: absolute; left: clamp(22px, 3.4vw, 48px); bottom: clamp(22px, 3.2vw, 44px); z-index: 2; display: grid; gap: 14px; max-width: min(600px, 64%); }
.ev-bill__reel { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.ev-bill__row { display: flex; align-items: flex-end; gap: 18px; }
.ev-bill__num { flex: none; font-size: clamp(70px, 8vw, 132px); font-weight: 900; line-height: 0.78; letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6); }
.ev-bill__t { font-size: clamp(1.6rem, 3.1vw, 2.9rem); font-weight: 900; line-height: 0.98; letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
.ev-bill__by { display: block; margin-top: 8px; font-size: 0.92rem; color: #d7d7df; }
.ev-bill__syn { display: -webkit-box; max-width: 54ch; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 0.98rem; line-height: 1.55; color: #cfcfd8; }
.ev-bill__more { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 800; color: var(--accent); }
.ev-bill__more svg { width: 16px; height: 16px; transition: transform 0.3s var(--spring); }
.ev-bill:hover .ev-bill__more svg { transform: translateX(5px); }

.ev-grid[data-view="grid"] .ev-card--echo { display: none; }
.ev-grid[data-view="list"] .ev-card--bill { display: none; }

/* the index: the lineup as a printed program, reels as running heads */
.ev-grid[data-view="list"] { display: block; margin-top: 18px; border-top: 1px solid var(--line); }
.ev-grid[data-view="list"] .ev-card { border-bottom: 1px solid var(--line); }
.ev-grid[data-view="list"] .ev-card--echo::before {
    content: attr(data-reel); display: block; padding: 30px 6px 12px; border-bottom: 1px solid var(--line);
    font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent);
}
.ev-grid[data-view="list"] .ev-card__hit { padding: 16px 56px 16px 6px; border-radius: 0; transition: background 0.3s ease, padding 0.4s var(--ease); }
.ev-grid[data-view="list"] .ev-card__hit:hover { padding-left: 18px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.09), transparent 70%); }
.ev-grid[data-view="list"] .ev-card__img { display: none; }
.ev-grid[data-view="list"] .ev-card__body { grid-template-columns: 70px minmax(0, 1fr); align-items: center; }
.ev-grid[data-view="list"] .ev-card__num { --num: 2.1rem; margin-top: 0; -webkit-text-stroke-width: 1px; }
.ev-grid[data-view="list"] .ev-card__txt { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 18px; padding-top: 0; }
.ev-grid[data-view="list"] .ev-card__t { font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -0.02em; }
.ev-grid[data-view="list"] .ev-save { top: 50%; right: 8px; opacity: 1; transform: translateY(-50%); }

/* ------------------------------------------------------- play all, progress */
.ev-btn--play { height: auto; min-height: 58px; padding: 9px 28px 9px 20px; gap: 12px; }
.ev-btn--play svg { width: 20px; height: 20px; }
.ev-btn--play span { display: grid; gap: 1px; text-align: left; line-height: 1.15; }
.ev-btn--play b { font-size: 1rem; font-weight: 800; }
.ev-btn--play i { max-width: 32ch; overflow: hidden; font-size: 0.74rem; font-style: normal; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; opacity: 0.74; }
.ev-progress { display: grid; gap: 8px; width: min(380px, 100%); margin-top: 18px; }
.ev-progress__bar { position: relative; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.ev-progress__bar i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8); transform-origin: left; animation: ev-grow 1.4s var(--lift) 0.5s both; }
@keyframes ev-grow { from { transform: scaleX(0); } }
.ev-progress__read { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted); }
.ev-progress__read b { color: #fff; }
.ev-fine--region { color: #f8dca6; }

/* where a film plays, on its still; dimmed where it doesn't play for you */
.ev-card__geo { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.ev-card__img:has(.ev-seen) .ev-card__geo { right: 44px; }
.ev-card.is-elsewhere .ev-card__img img { filter: grayscale(0.6) brightness(0.7); }
.ev-grid[data-view="grid"] .ev-card__geo-list { display: none; }
.ev-card__nope { font-size: 0.8rem; font-weight: 700; color: #f8dca6; }

/* ------------------------------------------------------------ the offer */
/* the pass as a dialog: a card over a blurred page, a reel of the lineup
   along its top; a sheet from the foot of the screen on a phone */
.ev-offer {
    width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: var(--text);
    display: grid; place-items: center; overflow-y: auto; overscroll-behavior: contain;
}
.ev-offer:not([open]) { display: none; }
.ev-offer::backdrop { background: rgba(4, 4, 7, 0.74); backdrop-filter: blur(12px) saturate(1.2); animation: ev-offer-fade 0.45s ease both; }
.ev-offer.is-closing::backdrop { animation: ev-offer-fade 0.26s ease reverse both; }
@keyframes ev-offer-fade { from { opacity: 0; } }
.ev-offer__card {
    position: relative; width: min(560px, calc(100% - 32px)); margin: 24px auto; overflow: hidden; border-radius: 24px; background: #0d0d12;
    box-shadow: inset 0 0 0 1px var(--line-2), 0 60px 140px -30px rgba(0, 0, 0, 0.95), 0 0 140px -60px var(--accent);
    animation: ev-offer-in 0.65s var(--lift) both;
}
.ev-offer.is-closing .ev-offer__card { animation: ev-offer-out 0.26s ease both; }
/* the card takes the dialog's first focus, so no button looks pressed */
.ev-offer__card:focus-visible { outline: none; }
@keyframes ev-offer-in { from { opacity: 0; transform: translateY(26px) scale(0.96); } }
@keyframes ev-offer-out { to { opacity: 0; transform: translateY(14px) scale(0.97); } }
.ev-offer__x {
    position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0;
    border-radius: 50%; background: rgba(7, 7, 10, 0.66); backdrop-filter: blur(8px); color: #fff;
}
.ev-offer__x svg { width: 16px; height: 16px; }
.ev-offer__reel {
    position: relative; overflow: hidden; padding: 15px 0; background-color: #17140f;
    background-image: radial-gradient(ellipse 3.4px 2.4px at center, #050507 92%, transparent 100%), radial-gradient(ellipse 3.4px 2.4px at center, #050507 92%, transparent 100%);
    background-size: 15px 15px, 15px 15px; background-position: 4px 0, 4px 100%; background-repeat: repeat-x;
}
.ev-offer__reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #0d0d12 0%, transparent 40%), linear-gradient(90deg, rgba(13, 13, 18, 0.7), transparent 18%, transparent 82%, rgba(13, 13, 18, 0.7)); }
.ev-offer__run { display: flex; gap: 6px; width: max-content; animation: ev-strip 60s linear infinite; }
.ev-offer__run span {
    flex: none; width: 140px; aspect-ratio: 16 / 9; border-radius: 3px;
    background-image: var(--atlas); background-size: calc(var(--cols) * 100%) calc(var(--rows) * 100%); background-position: var(--px) var(--py); background-repeat: no-repeat;
}
.ev-offer__body { display: grid; gap: 14px; padding: 6px 32px 28px; }
.ev-offer__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.ev-offer__eyebrow i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ev-pulse 1.6s infinite; }
.ev-offer__t { font-size: clamp(1.75rem, 3.4vw, 2.35rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
.ev-offer__d { font-size: 0.98rem; line-height: 1.6; color: var(--muted); }
.ev-offer__perks { display: grid; gap: 9px; margin: 2px 0; }
.ev-offer__perks li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; line-height: 1.4; color: #e6e6ec; }
.ev-offer__perks li::before {
    content: "\2713"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: -1px; border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.16); color: var(--accent); font-size: 0.72rem; font-weight: 700;
}
.ev-offer__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.ev-offer__alt { color: #dcdce3; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ev-offer__alt:hover, .ev-offer__alt:focus { color: #fff; }
.ev-offer__fine { font-size: 0.82rem; color: var(--muted-2); }
.ev-offer__fine a { color: #dcdce3; text-decoration: underline; text-underline-offset: 3px; }
.ev-offer__later { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ev-offer__later:hover { color: #fff; }

/* ------------------------------------------------------------- the lift */
/* A card the pointer rests on lifts in place: it grows a little, takes a
   surface, and unfolds its synopsis and actions below. Every change is a
   transition, so moving from card to card hands off smoothly; JS only adds
   .is-lifted after a short rest (event-program.js). */
.ev { --lift: cubic-bezier(0.22, 1, 0.36, 1); }
.ev-grid[data-view="grid"] .ev-card:not(.ev-card--bill) {
    z-index: 1; transform-origin: var(--ox, 50%) 30%;
    transition: transform 0.45s var(--lift), z-index 0s 0.45s;
}
.ev-grid[data-view="grid"] .ev-card:not(.ev-card--bill)::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    inset: -12px -12px calc(-14px - var(--more-h, 0px)) -12px; border-radius: 20px;
    background: linear-gradient(180deg, #16161d, #101015);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 90px -36px rgba(0, 0, 0, 0.95), 0 0 90px -46px var(--card-tone, var(--accent));
    opacity: 0; transform: scale(0.97); transition: opacity 0.3s ease, transform 0.45s var(--lift);
}
.ev-grid[data-view="grid"] .ev-card.is-lifted { z-index: 8; transform: translateY(-6px) scale(1.05); transition: transform 0.6s var(--lift), z-index 0s; }
.ev-grid[data-view="grid"] .ev-card.is-dropping { z-index: 7; }
.ev-grid[data-view="grid"] .ev-card.is-lifted::before { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.6s var(--lift); }
.ev-card__more {
    position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 12px; padding: 14px 2px 2px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.2s ease, transform 0.3s var(--lift), visibility 0s 0.3s;
}
.ev-card.is-lifted .ev-card__more { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 0.4s ease 0.12s, transform 0.55s var(--lift) 0.08s, visibility 0s; }
.ev-card__syn { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; font-size: 0.84rem; line-height: 1.55; color: var(--muted); }
.ev-card__acts { display: flex; align-items: center; gap: 10px; }
.ev-card__info { margin-left: auto; padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.ev-card__info:hover { color: #fff; }
.ev-card__when { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }

/* what + does, said on hover */
.ev-save[data-tip]::after {
    content: attr(data-tip); position: absolute; right: 0; top: calc(100% + 8px); z-index: 4;
    padding: 6px 10px; border-radius: 8px; background: rgba(7, 7, 10, 0.94); box-shadow: inset 0 0 0 1px var(--line-2);
    color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0; white-space: nowrap; pointer-events: none;
    opacity: 0; transform: translateY(-4px); transition: opacity 0.2s ease, transform 0.25s var(--lift);
}
.ev-save[data-tip]:hover::after, .ev-save[data-tip]:focus-visible::after { opacity: 1; transform: none; transition-delay: 0.3s; }
.ev--nolist .ev-save { display: none; }

/* -------------------------------------------------------------- the week */
.ev:not(.ev-theater) > section.ev-week { max-width: none; padding-left: 0; padding-right: 0; }
.ev-week .ev-sechead, .ev-lanes__note { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad); }
.ev-lanes { --lane-l: clamp(78px, 9vw, 124px); position: relative; display: grid; gap: 10px; margin-top: clamp(30px, 4vw, 52px); }
.ev-lane { display: grid; grid-template-columns: var(--lane-l) minmax(0, 1fr); align-items: center; height: 66px; }
.ev-lane__day { padding-left: var(--pad); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--muted-2); white-space: nowrap; }
.ev-lane__day em { display: block; margin-top: 3px; font-style: normal; letter-spacing: 0.2em; color: var(--accent); }
.ev-lane__film {
    --fw: 116px; --fh: 65px;
    position: relative; display: block; height: var(--fh); overflow: hidden; border-radius: 6px 0 0 6px;
    filter: saturate(0.85) brightness(0.8);
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent);
    transition: filter 0.6s ease, opacity 0.6s ease;
}
/* one row of the atlas, a frame line between the cells, run on the compositor */
.ev-lane__film::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + var(--cols) * var(--fw));
    background-image: linear-gradient(90deg, transparent calc(100% - 4px), #07070a 0), var(--atlas);
    background-size: var(--fw) 100%, calc(var(--cols) * var(--fw)) calc(var(--rows) * var(--fh));
    background-position: 0 0, 0 var(--py);
    background-repeat: repeat-x;
    animation: ev-lane var(--dur, 70s) linear infinite;
    will-change: transform;
}
.ev-lane.is-rev .ev-lane__film::before { animation-direction: reverse; }
.ev-lane:hover .ev-lane__film { filter: none; }
@keyframes ev-lane { to { transform: translateX(calc(var(--cols) * var(--fw) * -1)); } }
.ev-lane.is-today .ev-lane__film { filter: none; box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.6), 0 0 44px -8px rgba(var(--accent-rgb), 0.6); }
.ev-lane.is-today .ev-lane__day { color: #fff; }
.ev-lane.is-past .ev-lane__film { opacity: 0.26; filter: grayscale(1); }
.ev-lane.is-past .ev-lane__film::before, .ev-lanes[data-phase="after"] .ev-lane__film::before { animation-play-state: paused; }
.ev-lanes[data-phase="before"] .ev-lane__film { filter: saturate(0.5) brightness(0.62); }
.ev-lanes[data-phase="before"] .ev-lane__film::before { animation-duration: calc(var(--dur, 70s) * 3); }
.ev-lanes[data-phase="before"]::before {
    content: ""; position: absolute; left: var(--lane-l); top: -6px; bottom: -6px; z-index: 2; width: 64px;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 6px, transparent 6px 12px), linear-gradient(90deg, #07070a, rgba(7, 7, 10, 0.4));
}
.ev-lanes[data-phase="after"] .ev-lane__film { opacity: 0.32; filter: grayscale(0.8); }
.ev-playhead {
    --t: 0; position: absolute; top: -12px; bottom: -12px; z-index: 3; width: 2px; pointer-events: none;
    left: calc(var(--lane-l) + (100% - var(--lane-l)) * var(--t));
    background: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.9); transition: left 1s linear;
}
.ev-playhead span {
    position: absolute; top: -30px; left: 0; transform: translateX(-12px); padding: 5px 10px; border-radius: 999px; white-space: nowrap;
    background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.ev-lanes[data-phase="after"] .ev-playhead, .ev-lanes[data-phase="unscheduled"] .ev-playhead { display: none; }
.ev-lanes__note { margin-top: 26px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------ the awards */
.ev-envs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 330px)); justify-content: center; gap: 30px; margin-top: clamp(40px, 5vw, 66px); }
.ev-env { --mx: 50%; --my: 30%; position: relative; }
.ev-env__paper {
    position: relative; display: flex; flex-direction: column; gap: 12px; aspect-ratio: 5 / 7; overflow: hidden; border-radius: 6px;
    padding: calc(53% + 34px) 26px 26px;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.016) 0 2px, transparent 2px 7px),
        radial-gradient(120% 70% at 50% 100%, rgba(var(--accent-rgb), 0.1), transparent 60%),
        linear-gradient(170deg, #131a16, #0a0d0b 72%);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.24), 0 50px 90px -40px rgba(0, 0, 0, 0.95);
    transition: transform 0.6s var(--ease), box-shadow 0.6s ease;
}
.ev-env:hover .ev-env__paper { transform: translateY(-8px); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.5), 0 60px 110px -40px rgba(var(--accent-rgb), 0.42); }
.ev-env__flap {
    position: absolute; left: 0; right: 0; top: 0; height: 38%;
    /* a hairline along both edges of the V, then the paper */
    background:
        linear-gradient(to top right, transparent calc(50% - 1.5px), rgba(var(--accent-rgb), 0.5) 50%, transparent calc(50% + 1.5px)) 0 0 / 50% 100% no-repeat,
        linear-gradient(to top left, transparent calc(50% - 1.5px), rgba(var(--accent-rgb), 0.5) 50%, transparent calc(50% + 1.5px)) 100% 0 / 50% 100% no-repeat,
        linear-gradient(180deg, #1f2e26, #131d18);
    clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0;
    transition: transform 0.8s var(--ease), opacity 0.6s ease;
}
.ev-env__flap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35)); }
.ev-env__sheen {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity 0.4s ease;
    background:
        radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.16), transparent 38%),
        conic-gradient(from 210deg at var(--mx) var(--my), transparent 0deg, rgba(var(--accent-rgb), 0.22) 40deg, transparent 90deg);
}
.ev-env:hover .ev-env__sheen { opacity: 1; }
.ev-env__seal {
    position: absolute; left: 50%; top: calc(38% - 32px); z-index: 2; display: grid; place-items: center; width: 64px; height: 64px;
    border-radius: 50%; transform: translateX(-50%);
    background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55), transparent 32%), radial-gradient(circle at 50% 50%, var(--accent) 0 58%, rgba(0, 0, 0, 0.35) 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65), inset 0 -4px 8px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(var(--accent-rgb), 0.18);
    transition: transform 0.6s var(--spring), box-shadow 0.4s ease, opacity 0.5s ease;
}
.ev-env__seal::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(0, 0, 0, 0.35); }
.ev-env__seal b { position: relative; font-family: Georgia, "Times New Roman", serif; font-size: 0.92rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent-ink); }
.ev-env:hover .ev-env__seal { transform: translateX(-50%) scale(1.06); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7), 0 0 30px rgba(var(--accent-rgb), 0.55); }
.ev-env__kicker { position: relative; z-index: 1; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.ev-env__name { position: relative; z-index: 1; font-size: clamp(1.45rem, 2.3vw, 1.95rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.ev-env__text { position: relative; z-index: 1; font-family: Georgia, "Times New Roman", serif; font-size: 0.98rem; font-style: italic; line-height: 1.5; color: #cfd8d2; }
.ev-env__state {
    position: relative; z-index: 1; margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(var(--accent-rgb), 0.3);
    font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.ev-env.is-open .ev-env__paper { padding-top: 34px; }
.ev-env.is-open .ev-env__flap { opacity: 0; transform: rotateX(180deg); }
.ev-env.is-open .ev-env__seal { opacity: 0; transform: translateX(-50%) scale(0.5); }
.ev-env__winner { position: relative; z-index: 1; display: grid; gap: 6px; margin-top: auto; color: #fff; text-decoration: none; }
.ev-env__winner:hover, .ev-env__winner:focus { color: #fff; text-decoration: none; }
.ev-env__goes { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--accent); }
.ev-env__winner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.4); }
.ev-env__winner b { font-size: 1.1rem; font-weight: 900; letter-spacing: -0.02em; }
.ev-env__winner i { font-style: normal; font-size: 0.84rem; color: var(--muted); }
.ev-awards__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; margin-top: 44px; }

/* ------------------------------------------------------------- the passes */
.ev:not(.ev-theater) > section.ev-pass { display: block; }
.ev-badges { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 30px clamp(30px, 6vw, 96px); margin-top: 26px; }
.ev-lanyard { --sway: 0deg; display: grid; justify-items: center; transform: rotate(var(--sway)); transform-origin: 50% 0; transition: transform 0.9s var(--spring); }
.ev-lanyard > a { animation: ev-sway 7s ease-in-out infinite; transform-origin: 50% -150px; }
.ev-lanyard--main > a { animation-delay: -3.2s; }
@keyframes ev-sway { 0%, 100% { rotate: -1.1deg; } 50% { rotate: 1.1deg; } }
.ev-lanyard__strap {
    position: relative; width: 28px; height: 150px; margin-bottom: -10px; overflow: hidden; border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.35)), var(--accent);
}
.ev-lanyard:not(.ev-lanyard--main) .ev-lanyard__strap { background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.35)), #d9d9e0; }
.ev-lanyard__strap::before {
    content: "LABOCINE \00B7 LABOCINE \00B7 LABOCINE \00B7 LABOCINE"; position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
    writing-mode: vertical-rl; font-family: var(--mono); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.3em; color: rgba(0, 0, 0, 0.55); white-space: nowrap;
}
.ev-badge {
    --mx: 30%; --my: 20%;
    position: relative; display: grid; gap: 12px; width: 280px; padding: 30px 24px 22px; overflow: hidden; border-radius: 18px;
    color: #0b0b10; text-decoration: none; background: linear-gradient(170deg, #f4f4f6, #d6d6de);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transition: transform 0.5s var(--spring), box-shadow 0.4s ease;
}
.ev-badge:hover, .ev-badge:focus { color: #0b0b10; text-decoration: none; transform: translateY(-6px); }
.ev-badge--main { color: #fff; background: linear-gradient(160deg, #11261c, #07110c 72%); box-shadow: 0 50px 100px -30px rgba(var(--accent-rgb), 0.55), inset 0 0 0 1px rgba(var(--accent-rgb), 0.5); }
.ev-badge--main:hover, .ev-badge--main:focus { color: #fff; }
.ev-badge__foil {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.14; mix-blend-mode: screen; transition: opacity 0.4s ease;
    background:
        radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.55), transparent 38%),
        conic-gradient(from 200deg at var(--mx) var(--my), #7af0c1, #8fd3ff, #ad8cff, #ff9ee0, #8fd3ff, #7af0c1);
}
.ev-lanyard:hover .ev-badge__foil { opacity: 0.3; }
.ev-badge__hole { position: absolute; top: 12px; left: 50%; width: 46px; height: 10px; border-radius: 999px; transform: translateX(-50%); background: #07070a; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7); }
.ev-badge__top { position: relative; display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.66; }
.ev-badge__kind { position: relative; font-size: 2.3rem; font-weight: 900; line-height: 1; letter-spacing: -0.045em; }
.ev-badge--main .ev-badge__kind { color: var(--accent); }
.ev-badge__stamp {
    position: absolute; right: 18px; top: 66px; padding: 4px 10px; border: 2px solid var(--accent); border-radius: 6px;
    color: var(--accent); font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; transform: rotate(-12deg);
}
.ev-badge__who { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0; border-block: 1px solid rgba(0, 0, 0, 0.12); }
.ev-badge--main .ev-badge__who { border-color: rgba(255, 255, 255, 0.12); }
.ev-badge__photo { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 12px; background: rgba(0, 0, 0, 0.1); font-size: 1.1rem; font-weight: 900; }
.ev-badge--main .ev-badge__photo { background: rgba(var(--accent-rgb), 0.16); color: var(--accent); }
.ev-badge__name { font-size: 1.04rem; font-weight: 800; }
.ev-badge__perk { position: relative; font-size: 0.82rem; line-height: 1.45; opacity: 0.8; }
.ev-badge__price { position: relative; font-size: 0.9rem; }
.ev-badge__price b { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.03em; }
.ev-badge__code {
    position: relative; height: 32px; border-radius: 2px; opacity: 0.55;
    background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 9px, currentColor 9px 12px, transparent 12px 14px, currentColor 14px 15px, transparent 15px 19px);
}
.ev-matrix { width: min(740px, 100%); margin: clamp(44px, 5vw, 70px) auto 0; border-collapse: collapse; font-size: 0.92rem; }
.ev-matrix th, .ev-matrix td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: center; color: #dcdce3; }
.ev-matrix th[scope="row"] { text-align: left; font-weight: 600; color: #ececf1; }
.ev-matrix th[scope="row"] i { display: block; margin-top: 3px; font-size: 0.76rem; font-style: normal; font-weight: 400; color: var(--muted-2); }
.ev-matrix thead th { padding-bottom: 18px; border-bottom-color: var(--line-2); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ev-matrix thead b { display: block; margin-top: 8px; font-size: 1.7rem; letter-spacing: -0.03em; text-transform: none; color: #fff; }
.ev-matrix thead i { display: block; font-size: 0.72rem; font-style: normal; letter-spacing: 0; text-transform: none; color: var(--muted-2); }
.ev-matrix .is-main { background: rgba(var(--accent-rgb), 0.06); }
.ev-matrix thead .is-main { color: var(--accent); }
.ev-yes { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--accent); }
.ev-yes::before { content: "\2713"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.16); font-size: 0.7rem; }
.ev-no { color: var(--muted-2); }
.ev-pass__go { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.ev-fine--center { margin: 18px auto 0; text-align: center; }

/* ------------------------------------------------------------ the archive */
.ev-lids { display: grid; grid-auto-columns: 200px; grid-auto-flow: column; gap: 28px; margin: 38px calc(var(--pad) * -1) 0; padding: 12px var(--pad) 26px; overflow-x: auto; list-style: none; scroll-snap-type: x proximity; scrollbar-width: none; }
.ev-lids::-webkit-scrollbar { display: none; }
.ev-lid a { display: grid; justify-items: center; gap: 12px; color: inherit; text-align: center; text-decoration: none; scroll-snap-align: start; }
.ev-lid a:hover, .ev-lid a:focus { color: inherit; text-decoration: none; }
.ev-lid__can {
    position: relative; display: grid; place-items: center; width: 184px; height: 184px; border-radius: 50%;
    background:
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
        conic-gradient(from 30deg, #26272c, #5a5c63, #26272c, #6f7179, #26272c, #484a51, #26272c);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), inset 0 0 0 11px rgba(0, 0, 0, 0.32), inset 0 0 0 13px rgba(255, 255, 255, 0.08), 0 30px 50px -24px rgba(0, 0, 0, 0.9);
    transition: transform 0.7s var(--ease);
}
.ev-lid__label {
    position: absolute; inset: 36px; border-radius: 50%; background: #111 center / cover no-repeat;
    filter: grayscale(1) brightness(0.68) contrast(1.1); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.45); transition: filter 0.6s ease;
}
.ev-lid__ed { position: relative; z-index: 1; padding: 4px 11px; border-radius: 6px; background: rgba(7, 7, 10, 0.74); font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.04em; color: #fff; }
.ev-lid a:hover .ev-lid__can, .ev-lid a:focus-visible .ev-lid__can { transform: rotate(-16deg) translateY(-4px); }
.ev-lid a:hover .ev-lid__label, .ev-lid a:focus-visible .ev-lid__label { filter: none; }
.ev-lid__t { font-size: 0.96rem; font-weight: 800; line-height: 1.25; color: #fff; }
.ev-lid__m { font-family: var(--mono); font-size: 0.64rem; font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }

/* ------------------------------------------------------------ the credits */
.ev:not(.ev-theater) > section.ev-credits { max-width: none; padding-left: 0; padding-right: 0; padding-bottom: clamp(100px, 10vw, 160px); }
.ev-credits__view {
    position: relative; height: min(68vh, 600px); overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
.ev-credits__roll { display: grid; justify-items: center; padding: min(68vh, 600px) var(--pad); text-align: center; animation: ev-roll var(--roll, 90s) linear infinite; animation-play-state: paused; }
.ev-credits__view.is-rolling .ev-credits__roll { animation-play-state: running; }
.ev-credits__view.is-rolling:hover .ev-credits__roll, .ev-credits__view.is-rolling:focus-within .ev-credits__roll { animation-play-state: paused; }
.ev-credits__view.is-static { height: auto; max-height: 70vh; overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
.ev-credits__view.is-static .ev-credits__roll { padding: 20px var(--pad); animation: none; }
@keyframes ev-roll { to { transform: translateY(-100%); } }
.ev-credits__kicker { margin: 52px 0 16px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.ev-credits__kicker:first-child { margin-top: 0; }
.ev-credits__title { margin-bottom: 36px; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.ev-credits__list { display: grid; gap: 11px; width: min(760px, 100%); }
.ev-credits__list div { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: baseline; }
.ev-credits__list dt { text-align: right; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #ececf1; }
.ev-credits__list dd { text-align: left; font-size: 0.92rem; color: var(--muted); }
.ev-credits__countries { max-width: 780px; font-size: 1.05rem; line-height: 2.1; color: #dcdce3; }
.ev-credits__countries span { white-space: nowrap; }
.ev-credits__countries sup { margin-left: 2px; font-family: var(--mono); font-size: 0.58rem; color: var(--accent); }
.ev-credits__by { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; color: #fff; }
.ev-credits__fin { margin-top: 80px; font-family: Georgia, "Times New Roman", serif; font-size: 2.8rem; font-style: italic; color: #fff; }
.ev-credits__end { display: grid; justify-items: center; gap: 16px; max-width: var(--maxw); margin: 44px auto 0; padding: 0 var(--pad); text-align: center; }
.ev-credits__line { font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; color: #fff; }
.ev-credits__acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 8px; }

/* --------------------------------------------------------- watchlist tray */
.ev-tray {
    position: fixed; left: 50%; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 24px);
    padding: 7px 7px 7px 8px; border-radius: 999px; background: rgba(14, 14, 19, 0.84); backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px -20px rgba(0, 0, 0, 0.9);
    transform: translate(-50%, 170%); visibility: hidden; transition: transform 0.55s var(--spring), visibility 0s 0.55s;
}
.ev-tray.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform 0.55s var(--spring); }
.ev-tray.is-bump .ev-tray__strip { animation: ev-bump 0.5s var(--spring); }
/* the first save says what the watchlist is for */
.ev-tray__tip {
    position: absolute; left: 50%; bottom: calc(100% + 14px); width: max-content; max-width: min(380px, calc(100vw - 32px));
    padding: 11px 16px; border-radius: 12px; background: #fff; color: #0a0a0f;
    font-size: 0.84rem; font-weight: 700; line-height: 1.4; text-align: center; pointer-events: none;
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity 0.25s ease, transform 0.35s var(--lift), visibility 0s 0.35s;
}
.ev-tray__tip::after { content: ""; position: absolute; left: 50%; top: 100%; border: 7px solid transparent; border-top-color: #fff; transform: translateX(-50%); }
.ev-tray.has-tip .ev-tray__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.3s ease, transform 0.5s var(--lift), visibility 0s; }
.ev-tray__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; padding: 6px 8px 10px; border-bottom: 1px solid var(--line); }
.ev-tray__head b { font-size: 0.86rem; }
.ev-tray__head i { font-family: var(--mono); font-size: 0.58rem; font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
@keyframes ev-bump { 40% { transform: scale(1.12); } }
.ev-tray__mine { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 3px 10px 3px 6px; border: 0; border-radius: 999px; background: none; color: inherit; text-align: left; cursor: pointer; }
.ev-tray__mine:hover { background: rgba(255, 255, 255, 0.05); }
.ev-tray__strip {
    display: flex; gap: 2px; padding: 6px 4px; border-radius: 5px;
    background-color: #17140f;
    background-image: radial-gradient(ellipse 2px 1.4px at center, #050507 92%, transparent 100%), radial-gradient(ellipse 2px 1.4px at center, #050507 92%, transparent 100%);
    background-size: 8px 6px, 8px 6px; background-position: 2px 0, 2px 100%; background-repeat: repeat-x;
}
.ev-tray__strip:empty { display: none; }
.ev-tray__strip img { display: block; width: 40px; height: 22.5px; object-fit: cover; border-radius: 1px; }
.ev-tray__read { display: grid; min-width: 0; }
.ev-tray__read b { overflow: hidden; max-width: 34ch; font-size: 0.86rem; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.ev-tray__read i { font-family: var(--mono); font-size: 0.64rem; font-style: normal; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; }
.ev-tray__list {
    position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); display: grid; gap: 2px; max-height: 52vh; padding: 8px; overflow-y: auto;
    border-radius: 18px; background: rgba(14, 14, 19, 0.97); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 70px -20px rgba(0, 0, 0, 0.95);
}
.ev-tray__list[hidden] { display: none; }
.ev-tray__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.ev-tray__open { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px; border: 0; border-radius: 10px; background: none; color: inherit; text-align: left; cursor: pointer; }
.ev-tray__open:hover { background: rgba(255, 255, 255, 0.05); }
.ev-tray__open img { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }
.ev-tray__open b { display: block; overflow: hidden; font-size: 0.86rem; white-space: nowrap; text-overflow: ellipsis; }
.ev-tray__open i { display: block; font-size: 0.74rem; font-style: normal; color: var(--muted-2); }
.ev-tray__rm { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: #fff; font-size: 1rem; cursor: pointer; }
.ev-tray__rm:hover { background: rgba(255, 92, 108, 0.2); }
.ev-fly { position: fixed; z-index: 90; border-radius: 8px; object-fit: cover; pointer-events: none; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.8s ease; }

/* --------------------------------------------------------- the title page */
/* above the site's top bar (z-index 200): a title page has the whole screen */
.ev-sheet { position: fixed; inset: 0; z-index: 300; display: grid; place-items: start center; overflow-y: auto; padding: clamp(12px, 4vh, 48px) clamp(12px, 3vw, 40px); }
.ev-sheet[hidden] { display: none; }
.ev-sheet__backdrop { position: fixed; inset: 0; background: rgba(4, 4, 7, 0.8); backdrop-filter: blur(14px) saturate(1.2); opacity: 0; transition: opacity 0.34s ease; }
.ev-sheet.is-open .ev-sheet__backdrop { opacity: 1; }
.ev-sheet__panel {
    --sheet-tone: var(--accent);
    position: relative; width: min(1000px, 100%); overflow: hidden; border-radius: 22px; background: #0d0d12; outline: none;
    box-shadow: inset 0 0 0 1px var(--line-2), 0 60px 140px -30px rgba(0, 0, 0, 0.9), 0 0 160px -60px var(--sheet-tone);
    opacity: 0; transform: translateY(30px) scale(0.98); transition: opacity 0.34s ease, transform 0.55s var(--spring), box-shadow 0.8s ease;
}
.ev-sheet.is-open .ev-sheet__panel { opacity: 1; transform: none; }
/* the panel only holds focus for the trap; it is not a control */
.ev-sheet__panel:focus-visible { outline: none; }
.ev-sheet__media { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: #000; }
.ev-sheet__media img {
    display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
    opacity: 0; filter: invert(1) sepia(0.6) saturate(2.4) hue-rotate(150deg) brightness(0.6);
    transition: opacity 0.5s ease, filter 1.4s var(--ease); view-transition-name: ev-film;
}
.ev-sheet__media img.is-in { opacity: 1; filter: none; }
.ev-sheet__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #0d0d12 0%, rgba(13, 13, 18, 0.62) 32%, transparent 64%); }
.ev-sheet__no {
    position: absolute; left: 30px; top: 22px; z-index: 2; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; line-height: 1; letter-spacing: -0.06em;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
}
.ev-sheet__over { position: absolute; left: clamp(20px, 3.4vw, 40px); right: clamp(20px, 3.4vw, 40px); bottom: 18px; z-index: 2; }
.ev-sheet__readout { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.ev-sheet__t { margin-top: 8px; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 900; line-height: 0.98; letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
.ev-sheet__by { margin-top: 8px; font-size: 1rem; font-weight: 600; color: #dedee6; }
.ev-sheet__body { padding: clamp(18px, 3vw, 30px) clamp(20px, 3.4vw, 40px) clamp(22px, 3vw, 32px); }
.ev-sheet__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ev-sheet__act { display: contents; }
.ev-sheet__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); margin-top: 28px; }
.ev-sheet__window { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.ev-sheet__syn { margin-top: 12px; font-size: 1.02rem; line-height: 1.7; color: #d4d4dc; }
.ev-sheet__note { margin-top: 12px; font-size: 0.84rem; color: #f5b544; }
.ev-sheet__when { font-size: 0.9rem; color: var(--muted); }
.ev-spec { margin: 0; border-top: 1px solid var(--line); }
.ev-spec div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ev-spec dt { padding-top: 3px; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.ev-spec dd { font-size: 0.9rem; color: #e6e6ec; }
.ev-sheet__also { margin-top: 32px; }
.ev-also { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin: 14px 0 0; padding: 0; list-style: none; }
.ev-also button { display: grid; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.ev-also img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); transition: transform 0.5s var(--ease), box-shadow 0.3s ease; }
.ev-also button:hover img { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
.ev-also b { font-size: 0.84rem; font-weight: 700; line-height: 1.3; color: #fff; }
.ev-also i { font-family: var(--mono); font-size: 0.6rem; font-style: normal; letter-spacing: 0.1em; color: var(--muted-2); }
.ev-sheet__nav {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 16px;
    border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.78rem; color: var(--muted-2);
}
.ev-sheet__nav button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: #fff; transition: background 0.2s ease; }
.ev-sheet__nav button:hover { background: rgba(255, 255, 255, 0.15); }
.ev-sheet__nav svg { width: 18px; height: 18px; }
.ev-sheet__x {
    position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px;
    border: 0; border-radius: 50%; background: rgba(7, 7, 10, 0.6); backdrop-filter: blur(8px); color: #fff;
}
.ev-sheet__x svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
    .ev-bill__body { max-width: 78%; }
    .ev-bill__syn { display: none; }
    .ev-lanes { --lane-l: 70px; }
    .ev-lane { height: 52px; }
    .ev-lane__film { --fw: 92px; --fh: 52px; }
}
@media (max-width: 640px) {
    .ev-frame { width: 140px; padding: 14px 4px; }
    .ev-grid { grid-template-columns: 1fr 1fr; gap: 34px 12px; }
    .ev-card__num { --num: 48px; }
    .ev-card__t { font-size: 0.92rem; }
    .ev-card__by, .ev-card__meta { font-size: 0.74rem; }
    .ev-card__callout { display: none; }
    .ev-bill__img { aspect-ratio: 4 / 3; }
    .ev-bill__body { max-width: none; right: 18px; gap: 10px; }
    .ev-bill__num { font-size: 56px; }
    .ev-bill__readout { display: none; }
    .ev-card--bill .ev-save--wide { right: 14px; top: 14px; height: 38px; padding: 0 12px; }
    .ev-card--bill .ev-save--wide span { display: none; }
    .ev-grid[data-view="list"] .ev-card__body { grid-template-columns: 48px minmax(0, 1fr); }
    .ev-grid[data-view="list"] .ev-card__txt { grid-template-columns: 1fr; gap: 2px; }
    .ev-lanes { --lane-l: 58px; gap: 8px; }
    .ev-lane { height: 42px; }
    .ev-lane__film { --fw: 75px; --fh: 42px; }
    .ev-lane__day { padding-left: 14px; font-size: 0.56rem; }
    .ev-playhead span { font-size: 0.52rem; }
    .ev-envs { grid-template-columns: minmax(0, 330px); }
    .ev-env__paper { aspect-ratio: 4 / 5; }
    .ev-badges { gap: 24px; }
    .ev-badge { width: min(300px, 86vw); }
    .ev-lanyard__strap { height: 90px; }
    .ev-matrix th, .ev-matrix td { padding: 12px 8px; font-size: 0.84rem; }
    .ev-credits__list div { grid-template-columns: 1fr; gap: 2px; }
    .ev-credits__list dt, .ev-credits__list dd { text-align: center; }
    .ev-tray { gap: 8px; }
    .ev-btn--play i { max-width: 22ch; }
    .ev-offer { place-items: end center; }
    .ev-offer__card { width: 100%; margin: 0; border-radius: 22px 22px 0 0; animation-name: ev-offer-up; }
    .ev-offer__body { padding: 4px 22px 26px; }
    .ev-offer__acts .ev-btn { width: 100%; }
    .ev-tray__strip img:nth-child(n+3) { display: none; }
    .ev-tray__read b { max-width: 15ch; }
    .ev-sheet { padding: 0; }
    .ev-sheet__panel { min-height: 100%; border-radius: 0; }
    .ev-sheet__media { aspect-ratio: 16 / 10; }
    .ev-sheet__cols { grid-template-columns: 1fr; }
    .ev-sheet__readout { letter-spacing: 0.1em; }
}

@keyframes ev-offer-up { from { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
    .ev-strip__run, .ev-lane__film::before, .ev-lanyard > a, .ev-offer__run { animation: none; }
    .ev-grid[data-view="grid"] .ev-card.is-lifted { transform: none; }
}
