/* Signature: Movieweb.nl (zonderslop, 21-11). Load after kit.css and a movieweb theme.
 * The film ticket: title cards (.mw-ticket) have a film edge on the left (sprocket holes punched out of a dark strip)
 * and a perforated tear line before the stub (.mw-ticket__stub) that holds the "waar te zien" services.
 * Genre tiles (.mw-genres) are photo tiles with a picto badge. Season stickers (.mw-sticker) use the projector/bulb
 * gold only for small labels. Colours come from the theme tokens --mw-*.
 */

/* ---------- Logo: drawn mark (icons/movieweb/mark.svg, inline, currentColor) + name ---------- */
.zs-logo:has(.mw-mark) { display: inline-flex; align-items: center; gap: .55rem; font-weight: var(--zs-display-weight, 700); font-synthesis: none; }
.mw-mark { width: 2.2rem; height: 2.2rem; flex: none; color: inherit; }

/* ---------- Pictogram tile ---------- */
.mw-picto { --picto-bg: var(--zs-picto); display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem;
  border-radius: var(--zs-radius-sm); background: var(--zs-picto); color: var(--zs-picto-ink); }
.mw-picto svg { width: 72%; height: 72%; }
.mw-picto--accent { --picto-bg: var(--mw-velvet); background: var(--mw-velvet); color: #fff; }
.mw-picto--sm { width: 2rem; height: 2rem; border-radius: 6px; }

/* ---------- Film edge: a dark strip with sprocket holes, reusable as a band divider ---------- */
.mw-filmstrip { height: 1.1rem; background: radial-gradient(.3rem .24rem at 50% 50%, var(--mw-film-hole) 98%, transparent) .35rem 50% / .95rem 100% repeat-x, var(--mw-film); }

/* ---------- Season sticker (Sint t/m 5-12, Kerst 6-31/12) ---------- */
.mw-sticker { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem .3rem .4rem; border-radius: 999px;
  background: var(--mw-gold); color: var(--mw-gold-ink); font-weight: 700; font-size: .92rem; transform: rotate(-2deg); }
.mw-sticker svg { width: 1.35rem; height: 1.35rem; }

/* ---------- Title card as a ticket ---------- */
.mw-tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.mw-ticket { --edge: 1.1rem; position: relative; display: grid; grid-template-columns: var(--edge) 1fr; background: var(--mw-ticket); color: var(--mw-ticket-ink);
  border-radius: var(--zs-radius); overflow: hidden; box-shadow: 0 1px 0 var(--zs-line), 0 10px 24px -18px rgba(10, 14, 40, .5); }
.mw-ticket::before { content: ""; grid-row: 1 / -1; background:
  radial-gradient(.24rem .3rem at 50% 50%, var(--mw-film-hole) 98%, transparent) 50% .35rem / 100% .95rem repeat-y, var(--mw-film); }
.mw-ticket__body { display: grid; gap: .5rem; padding: 1rem 1.1rem 1rem 1rem; min-width: 0; }
.mw-ticket__media { margin: -1rem -1.1rem .25rem -1rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--zs-surface-alt); }
.mw-ticket__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mw-ticket h3 { margin: 0; font-size: clamp(1.2rem, .5vw + 1.05rem, 1.45rem); color: inherit; }
.mw-ticket h3 a { color: inherit; text-decoration: none; }
.mw-ticket h3 a::after { content: ""; position: absolute; inset: 0; }
.mw-ticket h3 a:focus-visible { outline: none; }
.mw-ticket:has(h3 a:focus-visible) { outline: 3px solid var(--zs-accent); outline-offset: 3px; }
.mw-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--mw-ticket-muted, var(--zs-muted)); }
.mw-meta li { display: inline-flex; align-items: center; gap: .35rem; }
.mw-meta svg { width: 1.1rem; height: 1.1rem; color: var(--mw-meta-icon, var(--zs-brand-text)); --picto-bg: var(--mw-ticket); }
.mw-ticket__stub { margin: .35rem -1.1rem -1rem -1rem; padding: .7rem 1.1rem .8rem 1rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  border-top: 2px dashed color-mix(in srgb, var(--mw-ticket-ink) 28%, transparent); font-size: .88rem; }
.mw-ticket__stub b { font-weight: 700; margin-right: .2rem; }
.mw-service { padding: .15rem .55rem; border-radius: 6px; background: var(--zs-surface-alt); color: var(--zs-ink); font-weight: 600; }

/* ---------- Genre tiles: photo + picto badge (kit .zs-tile underneath) ---------- */
.mw-genres { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) { .mw-genres { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mw-genres .zs-tile { min-height: 9.5rem; }
.mw-genres .zs-tile__text { display: flex; align-items: center; gap: .55rem; padding: .8rem .9rem; }
.mw-genres .zs-tile h3 { font-size: clamp(.98rem, 3.6vw, 1.15rem); margin: 0; min-width: 0; }
@media (max-width: 30rem) { .mw-genres .zs-tile__text { flex-direction: column; align-items: flex-start; gap: .35rem; padding: .7rem; } .mw-genres .mw-picto { width: 1.9rem; height: 1.9rem; } }
.mw-genres .mw-picto { width: 2.2rem; height: 2.2rem; border-radius: 7px; }

/* ---------- Season band (hero kicker) ---------- */
.mw-season { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.mw-genres, .mw-tickets { margin-top: 1.1rem; }
/* Ticket image (Revenuesites 21-11, rule 1): never a poster or still (rights). Use the title's GENRE photo from img/movieweb
 * (movieweb-genre-<genre>-800.webp, same credit list) or another free-licence scene photo that fits the genre.
 * The clapperboard panel below is only the last fallback when a title has no genre at all. */
.mw-ticket__media--empty { display: grid; place-items: center; background: var(--mw-film); color: color-mix(in srgb, var(--mw-gold) 85%, transparent); --picto-bg: var(--mw-film); }
.mw-ticket__media--empty svg { width: 22%; height: auto; }
