/* =========================================================================
   Labocine — EVENT ROWS: an event in a list, as a cinema programme sets it
   (views/partials/event_row.hbs). /events shows them full size; an
   organisation's page, smaller, on a dark panel.

   The date in serif numerals, the month in mono; a still, or the event's
   colour without one; the title, what it is, who presents it; then where the
   event stands. The title's link covers the row; the host's name and the
   calendar keep their own links, above it.
   ========================================================================= */
.evr-list {
    --evr-text: #f4f4f6;
    --evr-muted: #9a9aa8;
    --evr-line: rgba(255, 255, 255, 0.08);
    --evr-green: #34e08a;
    --evr-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --evr-serif: Georgia, "Times New Roman", serif;
    --evr-date: 64px;
    --evr-thumb: 176px;
    --evr-gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--evr-text);
}
.evr {
    position: relative;
    display: grid;
    grid-template-columns: var(--evr-date) var(--evr-thumb) minmax(0, 1fr) auto;
    grid-template-areas: "date thumb body side";
    align-items: center;
    gap: var(--evr-gap);
    padding: 16px 0;
    border-top: 1px solid var(--evr-line);
}
.evr__date { grid-area: date; display: grid; justify-items: center; line-height: 1; }
.evr__date b { font-family: var(--evr-serif); font-size: 2rem; font-weight: 400; letter-spacing: -0.02em; color: var(--evr-text); }
.evr__date i { margin-top: 6px; font-family: var(--evr-mono); font-style: normal; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--evr-muted); }
.evr__date .evr__y { margin-top: 3px; }
.evr__thumb {
    grid-area: thumb;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    background: rgba(var(--evr-accent-rgb, 52, 224, 138), 0.22) center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.evr__thumb:not([style]) {
    background-image: linear-gradient(135deg, rgba(var(--evr-accent-rgb, 52, 224, 138), 0.6), rgba(7, 7, 10, 0.9) 85%);
}
.evr.is-past .evr__thumb { filter: saturate(0.55) brightness(0.82); transition: filter 0.3s ease; }
.evr.is-past:hover .evr__thumb { filter: none; }
.evr__body { grid-area: body; display: grid; gap: 4px; min-width: 0; }
.evr__t { font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--evr-text); text-decoration: none; }
.evr__t::after { content: ""; position: absolute; inset: 0; }
.evr__t:hover, .evr__t:focus { color: #fff; text-decoration: none; }
.evr:hover .evr__t { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.evr__t:focus-visible { outline: none; }
.evr__t:focus-visible::after { outline: 2px solid var(--evr-green); outline-offset: 3px; border-radius: 8px; }
.evr__m, .evr__host { font-size: 0.84rem; line-height: 1.45; color: var(--evr-muted); }
.evr__host a { position: relative; z-index: 1; color: var(--evr-text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.evr__host a:hover { color: #fff; text-decoration-color: currentColor; }
.evr__side { grid-area: side; position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; justify-self: end; }
.evr__state { font-family: var(--evr-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--evr-muted); white-space: nowrap; }
.evr__state--live { display: inline-flex; align-items: center; gap: 7px; color: var(--evr-green); }
.evr__state--live i { width: 7px; height: 7px; border-radius: 50%; background: var(--evr-green); box-shadow: 0 0 10px rgba(52, 224, 138, 0.7); }
.evr__cal {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--evr-text);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.evr__cal:hover, .evr__cal:focus { border-color: var(--evr-green); color: var(--evr-green); text-decoration: none; }
.evr__cal:focus-visible { outline: 2px solid var(--evr-green); outline-offset: 2px; }

/* an organisation's own events (its page): smaller, and no "Presented by" */
.evr-list--host { --evr-date: 48px; --evr-thumb: 120px; --evr-gap: 14px; }
.evr-list--host .evr { padding: 12px 0; }
.evr-list--host .evr__date b { font-size: 1.5rem; }
.evr-list--host .evr__t { font-size: 0.95rem; }
.evr-list--host .evr__m { font-size: 0.78rem; }
.evr-list--host .evr__host { display: none; }
.evr-list--host .evr__cal { height: 30px; padding: 0 12px; font-size: 0.74rem; }

/* the dark panel the rows sit on, on a light page */
.evr-panel {
    padding: 20px 24px 10px;
    border-radius: 12px;
    background: #0e0e13;
    color: #f4f4f6;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
}
.evr-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.evr-panel__t { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 400; color: #f4f4f6; }
.evr-panel__all { font-size: 0.86rem; font-weight: 600; color: #34e08a; }
.evr-panel__all:hover, .evr-panel__all:focus { color: #5ff0a6; }

/* a phone: the still and its text, the date on the still */
@media (max-width: 640px) {
    .evr-list, .evr-list--host { --evr-thumb: 112px; --evr-gap: 12px; }
    .evr {
        grid-template-columns: var(--evr-thumb) minmax(0, 1fr);
        grid-template-areas: "thumb body" "thumb side";
        align-items: start;
        row-gap: 8px;
    }
    .evr__date {
        grid-area: thumb;
        z-index: 1;
        display: flex;
        align-items: baseline;
        gap: 4px;
        align-self: start;
        justify-self: start;
        margin: 5px;
        padding: 3px 6px;
        border-radius: 5px;
        background: rgba(7, 7, 10, 0.78);
    }
    .evr__date b, .evr-list--host .evr__date b { font-size: 0.95rem; }
    .evr__date i, .evr__date .evr__y { margin-top: 0; font-size: 0.56rem; }
    .evr__side { justify-self: start; gap: 10px; }
    .evr__cal { height: 30px; padding: 0 12px; font-size: 0.74rem; }
    .evr-panel { padding: 16px 16px 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .evr.is-past .evr__thumb, .evr__cal { transition: none; }
}

/* Remind me on an upcoming row: a form, so it works without script */
.evr__remind { display: inline-flex; margin: 0; }
button.evr__cal { background: none; cursor: pointer; font-family: inherit; }
.evr__remind-b.is-on { border-color: var(--evr-green); color: var(--evr-green); }
