/* Verdct — one stylesheet, no build step. Kept hand-written on purpose: the whole site is meant to
   be readable by someone who has never seen the repo before.

   MOBILE FIRST. Every base rule is the small-screen layout; the `min-width` blocks at the bottom add
   the roomier ones. Written the other way round first, and it showed: the phone layout was whatever
   fell out of undoing the desktop one. */

:root {
    --ink: #f4f2ee;
    --ink-dim: #a4a3ae;
    --ink-faint: #6f6e7b;
    --bg: #0a0b10;
    --bg-raised: #121420;
    --bg-card: #14162280;
    --line: #23253a;
    --brand: #f5b942;
    --brand-ink: #10111a;

    --essential: #34d399;
    --strong: #7dd3a0;
    --worth-it: #f5b942;
    --mixed: #f78c6b;
    --damning: #f2586b;

    --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
    --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --shell: 1200px;
    --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

img { max-width: 100%; display: block; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 16px; }

/* ── Masthead ─────────────────────────────────────────────────────────── */

.masthead {
    position: sticky; top: 0; z-index: 40;
    background: rgba(10, 11, 16, .86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

/* On a phone the masthead is two compact rows: wordmark + nav, then the search box. Left as one
   68px row it ate a sixth of the screen before any content appeared. */
.masthead__inner {
    display: flex; align-items: center; gap: 14px 18px;
    flex-wrap: wrap; padding-block: 10px;
}

.wordmark {
    font-family: var(--serif);
    font-size: 22px; font-weight: 700; letter-spacing: -.5px;
    color: var(--ink);
    white-space: nowrap;
}
.wordmark span { color: var(--brand); }
.wordmark:hover { color: var(--ink); }

.nav { display: flex; gap: 16px; font-size: 14px; color: var(--ink-dim); margin-left: auto; }
.nav a.is-active { color: var(--brand); }

.masthead__search { flex: 1 0 100%; }

.searchbox {
    position: relative;
    display: flex;
}
.searchbox input {
    width: 100%;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    padding: 9px 16px 9px 40px;
    font: inherit; font-size: 14.5px;
    outline: none;
}
.searchbox input:focus { border-color: var(--brand); }
.searchbox input::placeholder { color: var(--ink-faint); }
.searchbox::before {
    content: '';
    position: absolute; left: 15px; top: 50%; width: 14px; height: 14px;
    transform: translateY(-50%);
    background: var(--ink-faint);
    -webkit-mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

.burger { display: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__art { position: absolute; inset: 0; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__art::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--bg) 6%, rgba(10,11,16,.72) 48%, rgba(10,11,16,.35) 100%),
                linear-gradient(0deg, var(--bg), transparent 62%);
}
/* Trailer hero: the video sits above the still backdrop and fades in only once it can play, so a
   slow connection shows the poster art rather than a black hole. */
.hero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .9s ease;
}
.hero.is-showing .hero__video { opacity: 1; }

/* The embedded trailer. Three things differ from the self-hosted <video>:
   - object-fit does nothing to an iframe, so the frame is sized to overflow the hero on whichever
     axis is short (16:9 against an arbitrary hero box) and pulled back to centre;
   - it can't be clicked — the hero is a backdrop, and the "Watch the trailer" button is the way in;
   - nothing tells us when it starts, so it fades in on a timer rather than on `is-showing`. */
.hero__embed {
    pointer-events: none; border: 0;
    width: max(100%, 177.7778vh); height: max(100%, 56.25vw);
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    animation: hero-embed-in .9s ease 1.2s forwards;
}
@keyframes hero-embed-in { to { opacity: 1; } }

/* An embed that autoplays is exactly what reduced-motion asks us not to do, and unlike the
   <video> there is no script here to hold it back — so it is simply not shown. */
@media (prefers-reduced-motion: reduce) {
    .hero__embed { display: none; }
}

/* The still-backdrop scrim is nearly opaque, which is right for flat generated art and wrong for
   moving footage — it buried the trailer. With a video behind it, darken only far enough to keep
   the title legible over the left column and let the rest of the frame through. */
.hero.is-showing .hero__art::after {
    background: linear-gradient(90deg, rgba(10,11,16,.92) 0%, rgba(10,11,16,.72) 26%, rgba(10,11,16,.18) 62%, rgba(10,11,16,.05) 100%),
                linear-gradient(0deg, rgba(10,11,16,.85), transparent 46%);
}
.hero--playing .hero__inner { min-height: 520px; }

.hero__controls {
    position: absolute; right: 16px; bottom: 16px; z-index: 3;
    display: flex; gap: 8px;
}
.hero__ctl {
    background: rgba(6, 7, 12, .6); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
    color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600;
    letter-spacing: .3px; padding: 7px 15px; cursor: pointer;
}
.hero__ctl:hover { border-color: var(--brand); color: var(--brand); }
.hero__ctl:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.hero__inner {
    position: relative; padding-block: 34px 32px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
}
.hero__poster { width: 132px; flex: none; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
/* The img carries width/height attributes to reserve space before it loads; without this the height
   attribute wins and a 2:3 poster renders 210x600. Generated SVGs rescaled and hid it — real
   artwork does not. `cover` also absorbs the poster ratios that are not exactly 2:3. */
.hero__poster img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.hero__body { max-width: 620px; }
/* Starts at 30px so a long title does not fill a phone screen before the poster is even visible. */
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 7vw, 62px); line-height: 1.05; margin: 10px 0 8px; letter-spacing: -1px; }
.hero__tagline { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-dim); margin: 0 0 18px; }

.eyebrow {
    font-size: 11.5px; letter-spacing: 2.6px; text-transform: uppercase;
    color: var(--brand); font-weight: 700;
}

/* ── Verdict score ────────────────────────────────────────────────────── */

.verdict { display: inline-flex; align-items: center; gap: 12px; }
.verdict__score {
    font-family: var(--serif); font-weight: 700;
    font-size: 40px; line-height: 1;
    width: 78px; height: 78px; flex: none;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 2.5px solid currentColor;
    background: rgba(255,255,255,.03);
}
.verdict__meta { line-height: 1.3; }
.verdict__band { font-weight: 700; font-size: 17px; letter-spacing: -.2px; }
.verdict__count { color: var(--ink-dim); font-size: 13.5px; }

.verdict--sm .verdict__score { width: 46px; height: 46px; font-size: 21px; border-width: 2px; }

.tone-essential { color: var(--essential); }
.tone-strong { color: var(--strong); }
.tone-worth-it { color: var(--worth-it); }
.tone-mixed { color: var(--mixed); }
.tone-damning { color: var(--damning); }
.tone-none { color: var(--ink-faint); }

/* ── Buttons / chips ──────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand); color: var(--brand-ink);
    border: 0; border-radius: 999px;
    padding: 11px 22px;
    font: inherit; font-size: 14.5px; font-weight: 700;
    cursor: pointer;
}
.btn:hover { color: var(--brand-ink); filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-block;
    border: 1px solid var(--line); border-radius: 999px;
    padding: 5px 13px; font-size: 13px; color: var(--ink-dim);
    background: var(--bg-raised);
}
a.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.chip--flag { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }

/* ── Sections & rails ─────────────────────────────────────────────────── */

.section { padding: 34px 0; }
.section + .section { padding-top: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section__head h2 { font-family: var(--serif); font-size: 22px; margin: 0; letter-spacing: -.5px; }
.section__head a { font-size: 14px; color: var(--ink-dim); }

.rail {
    display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}
.rail > * { flex: 0 0 134px; scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.grid { display: grid; gap: 20px 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* ── Film card ────────────────────────────────────────────────────────── */

.card { display: block; }
.card__art {
    position: relative; border-radius: 10px; overflow: hidden;
    background: var(--bg-raised); aspect-ratio: 2 / 3;
    border: 1px solid var(--line);
    transition: transform .18s ease, border-color .18s ease;
}
.card:hover .card__art { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.card__art img { width: 100%; height: 100%; object-fit: cover; }
.card__score {
    position: absolute; top: 9px; right: 9px;
    background: rgba(6,7,12,.86); backdrop-filter: blur(6px);
    border: 1.5px solid currentColor; border-radius: 999px;
    min-width: 38px; height: 30px; padding: 0 8px;
    display: grid; place-items: center;
    font-family: var(--serif); font-weight: 700; font-size: 15px;
}
.card__flag {
    position: absolute; left: 9px; top: 9px;
    background: var(--brand); color: var(--brand-ink);
    border-radius: 4px; padding: 3px 7px;
    font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase;
}
.card__title { margin: 10px 0 2px; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.card__meta { color: var(--ink-faint); font-size: 12.5px; }

/* ── Browse layout ────────────────────────────────────────────────────── */

.browse { display: grid; grid-template-columns: 1fr; gap: 24px; padding-block: 24px 56px; align-items: start; }
.filters { min-width: 0; }
.filters__group + .filters__group { margin-top: 18px; }
.filters h3 {
    font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--ink-faint); margin: 0 0 11px; font-weight: 700;
}
/* Phone: the rail reads as rows of tappable chips. Desktop turns it back into a list. */
.filters__list { display: flex; flex-wrap: wrap; gap: 7px; }
.filters__list a {
    font-size: 13.5px; color: var(--ink-dim);
    border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.filters__list a.is-on { color: var(--brand); border-color: var(--brand); font-weight: 600; }

/* A facet's values grow with the catalogue, so the tail folds away rather than pushing results
   off the page. No JavaScript — <details> already does this. */
.filters__more > summary {
    font-size: 12.5px; color: var(--ink-faint); cursor: pointer;
    padding: 5px 0; list-style: none; user-select: none;
}
.filters__more > summary::-webkit-details-marker { display: none; }
.filters__more > summary::before { content: '+ '; }
.filters__more[open] > summary::before { content: '\2212 '; }
.filters__more > summary:hover { color: var(--brand); }
.filters__more > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.results__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.results__count { color: var(--ink-dim); font-size: 14px; }
/* Must wrap. Five sort chips have a min-content of ~390px, which pushed the whole browse grid past
   a 375px viewport — and only on the search page, where the fifth chip appears. */
.sorts { display: flex; gap: 6px; flex-wrap: wrap; }

/* The second index, surfaced: reviews whose text matches the same query. */
.matched {
    border: 1px solid var(--line); border-left: 2px solid var(--brand);
    border-radius: var(--radius); background: var(--bg-raised);
    padding: 20px 22px; margin-bottom: 30px;
}
.matched__head {
    font-family: var(--serif); font-size: 17px; margin: 0 0 14px; letter-spacing: -.3px; font-weight: 400;
    color: var(--ink-dim);
}
.matched__list { display: grid; gap: 12px; grid-template-columns: 1fr; }
.matched__item { display: flex; gap: 12px; align-items: flex-start; }
.matched__item .verdict__score { width: 40px; height: 40px; font-size: 17px; }
.matched__film { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.matched__body {
    display: block; font-size: 13px; line-height: 1.5; color: var(--ink-faint);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.matched__item:hover .matched__film { color: var(--brand); }

.pager { display: flex; gap: 10px; justify-content: center; margin-top: 44px; align-items: center; }
.pager__at { color: var(--ink-faint); font-size: 13.5px; }

/* ── Film page ────────────────────────────────────────────────────────── */

.film { display: grid; grid-template-columns: 1fr; gap: 30px; padding-block: 28px 56px; align-items: start; }
.film > * { min-width: 0; }
.factlist { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; margin: 0; }
.factlist dt { color: var(--ink-faint); }
.factlist dd { margin: 0; }

.prose { max-width: 62ch; }
.prose p { color: var(--ink-dim); }

/* Every credited name is a link to a search, so it has to read as one. */
/* ── Credits and person pages ─────────────────────────────────────────── */

.credits {
    display: flex; gap: 14px; overflow-x: auto; margin: 0 0 30px;
    padding-bottom: 10px; scroll-snap-type: x mandatory;
}
.credits::-webkit-scrollbar { height: 8px; }
.credits::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.credit { flex: 0 0 84px; scroll-snap-align: start; text-align: center; }
.credit img {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center top;
    border: 1px solid var(--line); background: var(--bg-raised);
    transition: border-color .18s ease, transform .18s ease;
}
.credit:hover img { border-color: color-mix(in srgb, var(--brand) 55%, transparent); transform: translateY(-3px); }
.credit__name { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.credit__role { display: block; font-size: 11.5px; color: var(--ink-faint); }

.profile__inner { display: flex; gap: 20px; align-items: center; padding-block: 34px; flex-wrap: wrap; }
.profile__face {
    width: 108px; height: 108px; border-radius: 50%; object-fit: cover; object-position: center top;
    border: 1px solid var(--line); background: var(--bg-raised); flex: 0 0 auto;
}
.profile h1 { font-family: var(--serif); font-size: 32px; margin: 4px 0 0; letter-spacing: -1px; }
.profile__count { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-faint); }

.person { display: inline-block; border-bottom: 1px solid var(--line); }
.person:not(:last-child)::after { content: ','; color: var(--ink-faint); border: 0; }
.person:hover { border-bottom-color: var(--brand); }
.factlist dd .person + .person { margin-left: 5px; }

.panel {
    background: var(--bg-raised); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px;
}
.panel + .panel { margin-top: 20px; }
.panel h3 { margin: 0 0 14px; font-size: 15px; letter-spacing: -.2px; }

.dist { display: grid; gap: 7px; }
.dist__row { display: grid; grid-template-columns: 74px 1fr 24px; align-items: center; gap: 10px; font-size: 12.5px; }
.dist__bar { height: 7px; border-radius: 4px; background: #ffffff12; overflow: hidden; }
.dist__fill { height: 100%; border-radius: 4px; background: currentColor; }
.dist__n { color: var(--ink-faint); text-align: right; }

.reviews { display: grid; gap: 14px; margin-top: 8px; }
/* One column on a phone; the home page's "just judged" block spreads out when there is room. */
.reviews--grid { grid-template-columns: 1fr; }
.review {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg-raised); padding: 20px 22px;
}
.review--unscoreable { border-style: dashed; background: transparent; }
.review__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.review__who { font-weight: 600; font-size: 14.5px; }
.review__when { color: var(--ink-faint); font-size: 12.5px; }
.review__body { margin: 0; font-size: 15.5px; line-height: 1.62; }
.review--unscoreable .review__body { color: var(--ink-faint); }
.review__why {
    margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
    font-size: 13px; color: var(--ink-faint); display: flex; gap: 9px; align-items: flex-start;
}
.review__why b { color: var(--ink-dim); font-weight: 600; white-space: nowrap; }

/* ── Forms ────────────────────────────────────────────────────────────── */

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-dim); margin-bottom: 6px; }
.field input, .field textarea, .field select {
    width: 100%; background: var(--bg); color: var(--ink);
    border: 1px solid var(--line); border-radius: 10px;
    padding: 11px 13px; font: inherit; font-size: 15px; outline: none; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }

.notice { border-radius: 10px; padding: 13px 16px; font-size: 14px; margin-bottom: 18px; }
.notice--bad { background: #f2586b1c; border: 1px solid #f2586b55; color: #ffc4cc; }
.notice--good { background: #34d3991c; border: 1px solid #34d39955; color: #b8f2da; }
.notice--flat { background: var(--bg-raised); border: 1px solid var(--line); color: var(--ink-dim); }

/* ── Built page ───────────────────────────────────────────────────────── */

.wire { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.wire th, .wire td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wire th { color: var(--ink-faint); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; }
.wire td:first-child { font-weight: 600; width: 34%; }
.wire code, code.inline { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 13px; }
.wire tr.is-pending td { color: var(--ink-faint); }

.lede { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink-dim); max-width: 66ch; }

pre.guide {
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; overflow-x: auto; font-size: 13px; line-height: 1.7;
    color: var(--ink-dim); white-space: pre-wrap;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); padding: 34px 0 54px; color: var(--ink-faint); font-size: 13.5px; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
/* "Built with searchstack.dev" — the same lockup on every site we build. */
.footer__badge a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink-faint); }
.footer__badge a:hover .ss-badge__wordmark { opacity: .75; }
.ss-badge__logo { display: block; width: 22px; height: 22px; object-fit: contain; }
.ss-badge__wordmark { font-weight: 700; letter-spacing: -.02em; font-size: 14px; color: var(--ink); }
.ss-badge__wordmark span { color: #FD8802; }

.empty { padding: 60px 0; text-align: center; color: var(--ink-faint); }

/* ── Typeahead skin (the @searchstack/autocomplete widget) ────────────── */

:root {
    --searchstack-list-background-color: #121420;
    --searchstack-list-border-color: #23253a;
    --searchstack-list-item-background-hover-color: rgba(245, 185, 66, .12);
    --searchstack-list-border-radius: 12px;

    /* On a touch screen narrower than 500px the widget swaps the anchored dropdown for a full-screen
       modal, which is a second surface with its own variables — skinning the dropdown alone left the
       phone with a white sheet carrying this site's near-white type on it. */
    --searchstack-mobile-background-color: #0a0b10;
    --searchstack-mobile-history-header-color: #6f6e7b;
    --searchstack-mobile-list-item-background-hover-color: rgba(245, 185, 66, .12);
    --searchstack-mobile-list-item-background-focused-color: rgba(245, 185, 66, .14);
    --searchstack-mobile-list-item-padding-left: 12px;
    --searchstack-mobile-list-item-padding-right: 12px;
}
/* Keyboard focus needs to look different from nothing at all. The widget puts
   `searchstack-list-item-focused` on the arrowed-to row but ships no visible treatment for it, and
   it injects its own stylesheet at runtime — after this file — so these need !important to land. */
.searchstack-list-item-focused,
.searchstack-history-item.searchstack-list-item-focused {
    background: rgba(245, 185, 66, .14) !important;
    box-shadow: inset 3px 0 0 var(--brand);
}
.searchstack-list-item-focused .ta__t { color: var(--brand); }

/* The rest of the modal is not reachable by variable: its header bar, its input and its icon buttons
   carry hard-coded light colours (or the browser's own), so they have to be overridden outright —
   and after the widget's runtime stylesheet, hence !important. */
.searchstack-mobile-controls-container {
    background-color: rgba(10, 11, 16, .92) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line) !important;
}
.searchstack-mobile-input {
    background: transparent !important;
    color: var(--ink) !important;
    /* 16px is the floor below which iOS Safari zooms the page in on focus and never zooms back. */
    font: inherit !important; font-size: 16px !important;
    caret-color: var(--brand);
}
.searchstack-mobile-input::placeholder { color: var(--ink-faint); }
.searchstack-mobile-button { color: var(--ink-dim); }
.searchstack-mobile-button:disabled { color: var(--ink-faint); opacity: .45; }
.searchstack-mobile-history-item { color: var(--ink-dim) !important; }
.searchstack-mobile-list-item-focused { box-shadow: inset 3px 0 0 var(--brand); }
.searchstack-mobile-list-item-focused .ta__t { color: var(--brand); }

.ta { display: flex; gap: 11px; align-items: center; padding: 4px 2px; }
.ta img { width: 34px; height: 51px; border-radius: 4px; object-fit: cover; }
.ta__t { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.ta__m { font-size: 12px; color: var(--ink-faint); }
/* A person's photograph is portrait-cropped square, so it reads as a face next to a poster. */
.ta__face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center top; }
.ta--person img { align-self: center; }
.ta__foot { padding: 9px 12px; font-size: 12px; color: var(--ink-faint); border-top: 1px solid var(--line); }
.ta__foot kbd {
    font: inherit; font-size: 11px; border: 1px solid var(--line); border-radius: 4px;
    padding: 1px 5px; background: var(--bg);
}

/* ── Responsive ───────────────────────────────────────────────────────── */

/* ── Wider screens ────────────────────────────────────────────────────────
   Everything above is the phone layout. These add room back as it appears. */

@media (min-width: 600px) {
    .shell { padding: 0 24px; }
    .rail { gap: 18px; }
    .rail > * { flex-basis: 152px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; }
    .matched__list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .reviews { gap: 18px; }
    .reviews--grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .review { padding: 20px 22px; }
    .section { padding: 52px 0; }
    .hero__inner { flex-direction: row; align-items: flex-end; gap: 32px; padding-block: 52px 46px; }
    .hero__poster { width: 168px; }
    .hero__tagline { font-size: 19px; }
}

@media (min-width: 760px) {
    .masthead__inner { flex-wrap: nowrap; height: 68px; padding-block: 0; gap: 24px; }
    .wordmark { font-size: 25px; }
    .nav { gap: 22px; font-size: 14.5px; margin-left: 0; }
    .masthead__search { flex: 0 1 340px; margin-left: auto; }
    .hero__poster { width: 210px; }
    .hero__inner { gap: 44px; padding-block: 74px 66px; }
    .rail > * { flex-basis: 176px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 18px; }
    .section__head h2 { font-size: 27px; }
    .section__head { margin-bottom: 22px; }
    .browse { padding-block: 40px 72px; }
    .film { padding-block: 44px 80px; gap: 40px; }
}

@media (min-width: 1000px) {
    .browse { grid-template-columns: 226px 1fr; gap: 40px; }
    .film { grid-template-columns: 1fr 340px; gap: 52px; }

    /* The rail only earns stickiness once it sits beside the results rather than above them. */
    .filters { position: sticky; top: 92px; }
    .filters__group + .filters__group { margin-top: 26px; }
    .filters__list { flex-direction: column; flex-wrap: nowrap; gap: 3px; }
    .filters__list a { border: 0; border-radius: 0; padding: 4px 0; font-size: 14px; }
    .filters__list a.is-on { border: 0; }
    .factlist { gap: 8px 20px; }
}
