/* Movieweb site layer: page-specific layout on top of kit.css + theme + signature.css. Tokens only (light/dark, theme A/B). */

/* Header: the season item is a small film-dark pill with the ticket yellow, so it stands out on the yellow header */
.zs-nav .mw-nav-season { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem .25rem .4rem; border-radius: 999px;
  background: var(--mw-film); color: var(--mw-gold); font-weight: 700; border-bottom: 0; }
.zs-nav .mw-nav-season:hover { color: var(--mw-gold); opacity: .9; }
.zs-nav .mw-nav-season svg { width: 1.3rem; height: 1.3rem; --picto-bg: var(--mw-film); }

/* Section heads with a "see all" link */
.mw-shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; }
.mw-shelf-head h2 { margin-bottom: 0; }
.mw-more { font-weight: 700; color: var(--zs-brand-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mw-more::after { content: " \2192"; }
.mw-lead { color: var(--zs-muted); max-width: 42rem; margin: .5rem 0 0; }

/* Ticket card media: the pictogram stand-in should not dominate a list */
.mw-tickets .mw-ticket__media { aspect-ratio: 21 / 9; }
.mw-tickets .mw-ticket__media--empty svg { width: 3.4rem; }

/* Genres without a photo: compact picto links under the tiles */
.mw-genre-links { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.mw-genre-links a { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem .35rem .4rem; border-radius: 999px;
  background: var(--zs-surface); border: 1px solid var(--zs-line); color: var(--zs-ink); font-weight: 600; text-decoration: none; }
.mw-genre-links a:hover { border-color: var(--zs-brand-text); }

/* Holiday tiles: two wide tiles */
@media (min-width: 48rem) { .mw-holidays { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mw-holidays .zs-tile { min-height: 14rem; } }

/* Page head without a photo (genre without photo, title, sources) */
.mw-pagehead { background: var(--zs-brand); color: var(--zs-on-brand); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.mw-pagehead h1 { color: var(--zs-on-brand); margin: 0 0 .4rem; overflow-wrap: anywhere; }
.mw-pagehead .mw-lead { color: color-mix(in srgb, var(--zs-on-brand) 82%, transparent); }
.mw-pagehead__inner { display: flex; gap: 1.1rem; align-items: flex-start; }
.mw-pagehead .mw-picto { background: var(--mw-velvet); color: #fff; --picto-bg: var(--mw-velvet); width: 3.5rem; height: 3.5rem; }

/* Title detail */
.mw-title { display: grid; gap: 1.4rem; align-items: center; }
@media (min-width: 48rem) { .mw-title { grid-template-columns: 15rem 1fr; } }
.mw-title__media { aspect-ratio: 4 / 3; border-radius: var(--zs-radius); max-width: 15rem; width: 100%; }
.mw-title__media svg { width: 40%; height: auto; }
.mw-title__hub { margin: 0 0 .3rem; font-weight: 700; }
.mw-title__hub a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mw-title__alt { margin: 0 0 .8rem; color: color-mix(in srgb, var(--zs-on-brand) 78%, transparent); }
.mw-pagehead .mw-meta { color: color-mix(in srgb, var(--zs-on-brand) 88%, transparent); }
.mw-pagehead .mw-meta svg { color: currentColor; --picto-bg: var(--zs-brand); }
.mw-meta--lg { font-size: 1rem; gap: .5rem 1.2rem; }
.mw-meta--lg svg { width: 1.35rem; height: 1.35rem; }
.mw-chips { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mw-chips li { padding: .2rem .65rem; border-radius: 999px; background: color-mix(in srgb, var(--zs-on-brand) 14%, transparent); font-size: .9rem; }
.mw-title-body { display: grid; gap: 1.2rem; }
@media (min-width: 56rem) { .mw-title-body { grid-template-columns: 1fr 1fr; align-items: start; } }
.mw-panel { background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); padding: 1.3rem 1.4rem; }
.mw-panel h2 { font-size: 1.35rem; }
.mw-panel .mw-credit { font-size: .85rem; color: var(--zs-muted); }
.mw-panel .mw-credit a { color: inherit; }
.mw-cast { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }

/* Season page: link to the other season */
.mw-crosslink { display: flex; gap: 1rem; align-items: flex-start; }
.mw-crosslink h2 { margin-top: .2rem; }
.mw-crosslink p { color: var(--zs-muted); max-width: 40rem; }

/* Pager */
.mw-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.2rem; padding-bottom: 3rem; }

/* Sources */
.mw-prose { max-width: 46rem; }
.mw-credits { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.mw-credits li { display: grid; gap: .15rem; padding-bottom: .9rem; border-bottom: 1px solid var(--zs-line); overflow-wrap: anywhere; }
.mw-credits span { color: var(--zs-muted); }

/* Photo credit sits on the photo: links follow the credit colour (theme link colour is unreadable there) */
.zs-hero__credit a { color: inherit; }

/* Four tickets per row on wide screens, so rows of 8 stay complete */
.mw-tickets { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }

/* Phones: keep the menu on one line (season item, Actie, Genres) */
@media (max-width: 30rem) { .zs-nav .mw-nav-optional { display: none; } .zs-nav { flex-wrap: nowrap; } }

/* Long photo credits wrap inside the 16px gutter instead of running to the left edge */
.zs-hero__credit { left: 1rem; margin: 0; text-align: right; }

/* Phones: room under the hero buttons for the photo credit, and lower pictogram panels so lists stay scannable */
@media (max-width: 40rem) {
  .zs-hero { padding-bottom: 2.6rem; }
  .mw-tickets .mw-ticket__media--empty { aspect-ratio: 3 / 1; }
  .mw-tickets .mw-ticket__media--empty svg { width: 2.6rem; }
}

/* Panels without a photo: the year as a large black numeral on ticket yellow, picto small in the corner (never yellow on white) */
.mw-panel-year { position: relative; background: var(--mw-ticket); color: var(--mw-ticket-ink); --picto-bg: var(--mw-ticket); }
.mw-panel-year .mw-panel-year__num { font-family: var(--zs-font-display); font-weight: var(--zs-display-weight, 400); font-stretch: 125%; font-size: 2.6rem; line-height: 1;
  color: var(--mw-ticket-ink); letter-spacing: .01em; }
.mw-ticket__media--empty.mw-panel-year svg.mw-panel-year__picto { position: absolute; top: .55rem; left: .7rem; width: 1.6rem; height: 1.6rem; }
.mw-title__media.mw-panel-year .mw-panel-year__num { font-size: clamp(3rem, 8vw, 4.2rem); }
.mw-title__media.mw-panel-year svg.mw-panel-year__picto { width: 2rem; height: 2rem; top: .8rem; left: .9rem; }

/* Tip ticket with a genre photo (zonderslop a1b3abb): year large on a soft scrim, picto badge top left */
.mw-ticket__media--photo { position: relative; }
.mw-tickets .mw-ticket__media--photo { aspect-ratio: 16 / 9; }
.mw-ticket__media--photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--mw-film) 78%, transparent) 0%, transparent 62%); }
.mw-ticket__picto { position: absolute; top: .55rem; left: .6rem; z-index: 1; }
.mw-ticket__year { position: absolute; right: .8rem; bottom: .35rem; z-index: 1; font-family: var(--zs-font-display);
  font-weight: var(--zs-display-weight, 400); font-stretch: 125%; font-size: 2.3rem; line-height: 1; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
/* The year is shown on the photo; keep it in the meta line for screen readers only */
.mw-ticket__media--photo ~ .mw-meta .mw-visually-year,
.mw-panel-year ~ .mw-meta .mw-visually-year { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Title page panel: genre photo with the year, framed so it reads on the yellow page head */
.mw-title__media { overflow: hidden; box-shadow: 0 0 0 3px var(--mw-film); }
.mw-title__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mw-title__media .mw-ticket__year { font-size: clamp(2.6rem, 7vw, 3.6rem); }

/* Phones: home shelves become one swipeable row (keeps the page short); the row scrolls, the page never does */
@media (max-width: 40rem) {
  .mw-tickets--scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 17rem); overflow-x: auto;
    overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-bottom: .6rem; }
  .mw-tickets--scroll > .mw-ticket { scroll-snap-align: start; }
}

/* Long single words (De Schapenspeurder) must wrap inside the card, not widen it. */
.mw-ticket__body { grid-template-columns: minmax(0, 1fr); }
.mw-ticket h3 { overflow-wrap: break-word; hyphens: auto; }

/* Prompt box (home, /zoeken) and quiz (/quiz) */
.mw-prompt { display: grid; gap: .45rem; margin-top: 1.25rem; max-width: 44rem; }
.mw-prompt label { font-weight: 700; }
.mw-prompt__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.mw-prompt input, .mw-input { flex: 1 1 16rem; min-width: 0; min-height: 3rem; padding: .6rem .9rem; font: inherit; color: var(--zs-ink); background: var(--zs-surface); border: 2px solid var(--mw-velvet); border-radius: var(--zs-radius-sm); }
.mw-input { width: 100%; max-width: 32rem; border-color: var(--zs-line); }
.mw-prompt input:focus-visible, .mw-input:focus-visible { outline: 3px solid var(--mw-focus); outline-offset: 2px; }
.mw-pagehead .mw-prompt .zs-btn--primary, .mw-ask .mw-prompt .zs-btn--primary { background: var(--mw-velvet); color: var(--mw-gold); }
.mw-prompt__examples { margin: .2rem 0 0; font-size: .92rem; display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.mw-prompt__examples a { color: inherit; }
.mw-pagehead__main { flex: 1; min-width: 0; }
.mw-reason { margin: .6rem 0 0; font-size: .92rem; color: var(--mw-ticket-muted); line-height: 1.4; }
.mw-ai-note { margin-top: -1.25rem; padding-bottom: 1.5rem; font-size: .85rem; color: var(--zs-muted); }
.mw-ask > * { max-width: 46rem; }
.mw-ask > p:last-child { margin-top: 1.25rem; }
.mw-ask .mw-prompt .zs-btn--primary { background: var(--zs-accent); color: var(--zs-accent-ink); }

.mw-quiz { display: grid; gap: 1.75rem; max-width: 52rem; }
.mw-quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mw-quiz legend { font: var(--zs-display-weight) 1.2rem/1.25 var(--zs-font-display); margin-bottom: .75rem; padding: 0; }
.mw-quiz legend label { font: inherit; }
.mw-quiz__hint { font: 400 .9rem/1.4 var(--zs-font-body); color: var(--zs-muted); }
p.mw-quiz__hint { margin: .6rem 0 0; }
.mw-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.mw-choice, .mw-mood { position: relative; cursor: pointer; }
.mw-choice input, .mw-mood input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mw-choice span { display: inline-block; padding: .6rem 1rem; border: 2px solid var(--zs-line); border-radius: var(--zs-radius-sm); background: var(--zs-surface); }
.mw-moods { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.mw-mood { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border: 2px solid var(--zs-line); border-radius: var(--zs-radius); background: var(--zs-surface); font-weight: 600; }
.mw-choice:has(input:checked) span, .mw-mood:has(input:checked) { border-color: var(--mw-velvet); background: var(--mw-ticket); color: var(--mw-ticket-ink); }
.mw-choice:has(input:focus-visible) span, .mw-mood:has(input:focus-visible) { outline: 3px solid var(--mw-focus); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mw-choice:has(input:checked) span, :root:not([data-theme="light"]) .mw-mood:has(input:checked) { border-color: var(--mw-ticket); } }
:root[data-theme="dark"] .mw-choice:has(input:checked) span, :root[data-theme="dark"] .mw-mood:has(input:checked) { border-color: var(--mw-ticket); }
.mw-quiz > .zs-btn { justify-self: start; }
.mw-more-tips { margin-top: 1.25rem; }
@media (min-width: 40.01rem) { .mw-more-tips { display: none; } }
@media (max-width: 40rem) { .mw-tickets.is-collapsed > li:nth-child(n+7) { display: none; } }

/* "Waar kijk je het?": plain links, no buttons (an ID is no promise it streams in NL now) */
.mw-watch h2 { margin-bottom: .8rem; }
.mw-watch__main { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin: 0 0 .5rem; }
.mw-watch__main svg { width: 1.5rem; height: 1.5rem; flex: none; }
.mw-watch__others { margin: 0; color: var(--zs-muted); }
.mw-watch__others a { color: inherit; }
