/* am-i.movie /1/: a small cinema for one film. Night indigo, one lamp;
   the look of am-i.wtf. The trailer plays, the film is one tap away. */
:root {
  color-scheme: dark;
  --bg: #100f24; --s1: #1a1936; --s2: #262450; --ink: #100f24;
  --text: #f0e8d4; --dim: #a8a2c8; --lamp: #f7c62f; --warm: #ffb057;
  --lilac: #b9a6ff; --rose: #ff7d6b; --line: #34316a; --black: #07060f;
  --display: "Caprasimo", "Cooper Black", Georgia, serif;
  --sans: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.58; text-wrap: pretty; overflow-x: hidden; transition: background .9s; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--lamp); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.px, .row img, .ico, .dr img, .lights img { image-rendering: pixelated; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; font-size: clamp(31px, 7.4vw, 48px); margin-bottom: 12px; }
p { margin-bottom: 1em; }
.kick { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lamp); margin-bottom: 12px; }
.dim { color: var(--dim); } .small { font-size: 14.5px; line-height: 1.5; }
.lede { font-size: clamp(18px, 4.6vw, 22px); line-height: 1.45; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; transition: opacity .9s; }
.mark { font-family: var(--display); font-size: 23px; text-decoration: none; white-space: nowrap; }
.mark span { color: var(--lamp); }
.mark small { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-left: 6px; }
.lights { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 9px; }
.lights[aria-pressed="true"] { color: var(--ink); background: var(--lamp); border-color: var(--lamp); }

.house { position: relative; padding-bottom: 6px; }
.stage { position: relative; max-width: min(1100px, calc((100svh - 250px) * 16 / 9)); min-width: min(100%, 320px); margin: 0 auto; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 0 60px rgba(247, 198, 47, .10); transition: box-shadow .9s; }
@media (min-width: 760px) { .screen { border-radius: 10px; } .stage { padding: 0 20px; } }
#player, #player iframe, .screen > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.poster { position: absolute; inset: 0; display: block; }
.poster img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; opacity: .8; }
.tag { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.tag[hidden] { display: none; }
.card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(7, 6, 15, .93); text-align: center; padding: 14px; }
.card[hidden] { display: none; }
.card .k { font-family: var(--display); font-size: clamp(22px, 6vw, 38px); line-height: 1.1; margin: 0; }
.again { font-size: 13.5px; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

.go { font-weight: 800; font-size: 16px; color: var(--ink); background: var(--lamp); border-radius: 999px; padding: 11px 20px; line-height: 1.2; box-shadow: 0 3px 0 #a67f0c; }
.go:active { transform: translateY(2px); box-shadow: 0 1px 0 #a67f0c; }
.go.big { display: block; width: 100%; max-width: 440px; margin: 0 auto; font-size: 18.5px; padding: 14px 18px 13px; }
.go.big i { display: block; font-style: normal; font-weight: 600; font-size: 13px; opacity: .75; margin-top: 2px; }
.go.resume { background: var(--text); box-shadow: 0 3px 0 #8f8a78; margin-top: 12px; font-size: 16px; }
.go[hidden] { display: none; }

.desk { max-width: 1100px; margin: 0 auto; padding: 16px 16px 0; }
.pre { text-align: center; }
.pre[hidden] { display: none; }
.sound { margin-top: 13px; font-size: 13.5px; font-weight: 700; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.sound[aria-pressed="true"] { color: var(--ink); background: var(--lilac); border-color: var(--lilac); }
.now { display: flex; align-items: baseline; gap: 9px; font-size: 15px; min-height: 30px; }
.now[hidden] { display: none; }
.now .nk { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lamp); }
.now b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; }
.now #nowtime { color: var(--dim); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.now .tr { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.bar { height: 3px; background: var(--s2); border-radius: 2px; margin: 8px 0 0; overflow: hidden; }
.bar[hidden] { display: none; }
.bar i { display: block; height: 100%; width: 0; background: var(--lamp); }
.ribbon { list-style: none; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 12px 16px 6px; margin: 0 -16px; -webkit-overflow-scrolling: touch; }
.ribbon::-webkit-scrollbar { display: none; }
.ribbon button { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--text); background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.ribbon button span { font-weight: 500; color: var(--dim); font-variant-numeric: tabular-nums; font-size: 12px; }
.ribbon button img { width: 20px; height: auto; image-rendering: pixelated; margin: -3px 0 -3px -3px; }
.ribbon li.on button { color: var(--ink); background: var(--lamp); border-color: var(--lamp); }
.ribbon li.on button span { color: var(--ink); opacity: .7; }

/* the front row */
.row { display: flex; align-items: flex-end; justify-content: center; gap: clamp(2px, 1.6vw, 16px); padding: 20px 8px 0; max-width: 760px; margin: 0 auto; border-bottom: 5px solid var(--s2); }
.row img { width: auto; height: auto; max-width: 8.2vw; flex: 0 1 auto; min-width: 0; transform-origin: 50% 100%; cursor: pointer; }
@media (min-width: 620px) { .row img { max-width: none; } }
.row img.hop { animation: hop .46s steps(4) infinite; }
.row img.once { animation: hop .46s steps(4) 2; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* lights down */
body.dark { background: var(--black); }
body.dark .top { opacity: .38; }
body.dark .top:hover, body.dark .top:focus-within { opacity: 1; }
body.dark .screen { box-shadow: 0 0 0 1px #17162c, 0 0 90px rgba(240, 232, 212, .09); }
body.dark .row img { filter: brightness(.34) saturate(.6); transition: filter .9s; }
body.dark .row img.hop { filter: brightness(.8); }
body.dark .row { border-color: #12112a; }
body.dark .ribbon button { background: #0d0c1c; border-color: #1c1b38; color: #b9b3a2; }
body.dark .ribbon li.on button { background: var(--lamp); color: var(--ink); border-color: var(--lamp); }
body.dark .prog, body.dark .credits, body.dark .doors, body.dark footer { opacity: .5; transition: opacity .9s; }
body.dark .prog:hover, body.dark .credits:hover, body.dark .doors:hover { opacity: 1; }

.prog { padding: 56px 0 30px; }
.scenes { list-style: none; margin-top: 18px; border-top: 1px solid var(--line); }
.scenes li { border-bottom: 1px solid var(--line); }
.scenes button { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 2px 10px; width: 100%; text-align: left; padding: 12px 2px; }
.scenes time { font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--lamp); font-weight: 700; padding-top: 4px; }
.scenes b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; }
.scenes span { grid-column: 2; font-size: 15px; line-height: 1.45; color: var(--dim); }
.scenes li.on b { color: var(--lamp); }
.scenes button:hover b { color: var(--lamp); }

.credits { padding: 40px 0; background: var(--s1); text-align: center; }
.credits .ico { margin-bottom: 6px; }
.credits h2 { font-size: clamp(46px, 13vw, 84px); margin-bottom: 4px; }
.credits dl { margin: 26px auto 26px; max-width: 460px; }
.credits dt { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-top: 16px; }
.credits dd { font-size: 18px; line-height: 1.4; }
.credits p { text-align: left; }
.credits p.lede { text-align: center; }
.links { display: grid; gap: 8px; margin-top: 20px; }
.links a { display: block; text-decoration: none; font-weight: 800; background: var(--s2); border-radius: 12px; padding: 11px 14px; }
.links a i { display: block; font-style: normal; font-weight: 500; font-size: 14px; color: var(--dim); }
@media (min-width: 620px) { .links { grid-template-columns: 1fr 1fr; } }

.doors { padding: 44px 0 30px; }
.dr { display: grid; gap: 10px; }
@media (min-width: 620px) { .dr { grid-template-columns: 1fr 1fr; } }
.dr a { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 0 12px; align-items: center; text-decoration: none; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; }
.dr img { grid-row: 1 / 3; justify-self: center; }
.dr b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; }
.dr span { font-size: 14.5px; line-height: 1.4; color: var(--dim); }
.dr a:hover b { color: var(--lamp); }

footer { padding: 26px 0 60px; font-size: 14px; line-height: 1.55; color: var(--dim); border-top: 1px solid var(--line); }
footer b { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .row img.hop, .row img.once { animation: none; } body, .top { transition: none; } }

/* v2, edition 2: the pills with a picture were squeezed and ran under
   the next pill (Daniel, on his phone, 6 Dec 2026). No pill may shrink. */
.ribbon li { flex: 0 0 auto; }
.ribbon button img { flex: 0 0 auto; }
