/* The cinema is another object inside Cantown's miniature display case. */
dialog:has(.chapter-cinema){width:min(1040px,94vw);background:#35221f;box-shadow:0 24px 90px #150c13a6;border:1px solid #b38b5055}
dialog:has(.chapter-cinema) #dialog-content{padding:0}
dialog:has(.chapter-cinema) .dialog-close{background:linear-gradient(135deg,#62432e,#37251f);color:#ecd2a0;border:1px solid #b6925755;box-shadow:0 3px 12px #140b0999}
.chapter-cinema{position:relative;isolation:isolate;padding:34px 38px 32px;overflow:hidden;color:#efdbb6;background:radial-gradient(ellipse at 50% 42%,#80543355,transparent 65%),repeating-linear-gradient(2deg,#dfa16a05 0 1px,transparent 1px 5px),linear-gradient(110deg,#33211f,#4b3024 48%,#34221e)}
.chapter-cinema:before{content:'';position:absolute;inset:12px;z-index:-1;border:1px solid #c09a5b30;border-radius:13px;pointer-events:none;box-shadow:inset 0 0 0 3px #1d120f33}
.cinema-heading{position:relative;text-align:center;margin:0 0 25px;padding:10px 28px 0}
.cinema-mark{display:flex;justify-content:center;align-items:center;gap:8px;margin-bottom:15px;color:#c8a873;font:10px/1.2 Georgia;letter-spacing:.14em;text-transform:uppercase}
.cinema-reel{width:26px;height:26px;stroke:#b89a65;stroke-width:1.3;filter:drop-shadow(0 1px 1px #150c09)}
.chapter-cinema .chapter-number{margin:0 0 5px;font:italic 13px Georgia;color:#ceb38a}
.chapter-cinema .cinema-heading h2{margin:0;font:clamp(35px,4.4vw,55px)/1.05 Georgia;letter-spacing:-.035em;color:#f5e1bb;text-shadow:0 2px 1px #21110c}
.cinema-screen-frame{position:relative;border:1px solid #c7a16b79;padding:8px;border-radius:14px;background:linear-gradient(135deg,#b89764,#e7cda0 47%,#8e6941);box-shadow:0 12px 28px #130c0ba6,inset 0 0 0 2px #45302188,0 0 45px #edba5930}
.cinema-screen-frame:before,.cinema-screen-frame:after{content:'';position:absolute;width:3px;height:3px;top:3px;border-radius:50%;background:#3e291b;box-shadow:0 1px 0 #eed8a8;left:14px}
.cinema-screen-frame:after{left:auto;right:14px}
.cinema-screen{position:relative;aspect-ratio:16/9;overflow:hidden;background:#151112;border-radius:7px;box-shadow:0 0 0 1px #3c291e;isolation:isolate}
.chapter-film,.chapter-art{display:block;width:100%;height:100%;object-fit:contain;margin:0;border:0}
.chapter-film:focus-visible{outline:2px solid #ffe2a0;outline-offset:-3px}
.chapter-pending{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);padding:7px 15px;border:1px solid #c3a46e66;border-radius:3px;background:#36251be8;box-shadow:0 2px 10px #130c0955;color:#eed8ad;font:12px/1.2 Georgia;white-space:nowrap}
.cinema-footlight{display:flex;align-items:center;justify-content:center;gap:12px;margin:19px auto 20px;width:60%;color:#ba985c;font-size:10px}
.cinema-footlight i{height:1px;flex:1;background:linear-gradient(90deg,transparent,#c2a06766)}
.cinema-footlight i:last-child{transform:rotate(180deg)}

/* A little picture-house programme, built from the actual films. */
.chapter-cinema .cinema-screen-frame{max-width:calc(47svh * 16 / 9 + 12px);margin:0 auto}
.cinema-program-heading{display:flex;align-items:center;gap:15px;margin:24px 0 13px;color:#dbc297;font:italic 13px/1.2 Georgia}
.cinema-program-heading i{height:1px;flex:1;background:linear-gradient(90deg,#be97554d,#be97551a)}
.cinema-program-count{color:#ae8e67;font:10px/1.2 Georgia;letter-spacing:.06em}
.chapter-cinema .cinema-program{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0;padding:0;list-style:none}
.cinema-program>li{min-width:0;list-style:none}
.cinema-card{display:block;width:100%;height:100%;padding:5px;text-align:left;position:relative;overflow:hidden;border:1px solid #bd965456;border-radius:7px;background:linear-gradient(140deg,#eedec1,#d5bc93);color:#38271f;cursor:pointer;box-shadow:0 5px 12px #160b0755,inset 0 1px 0 #fff1d1a8;transition:box-shadow .22s,border-color .22s}
.cinema-card:hover{border-color:#f8dca2;box-shadow:0 7px 19px #160b0777,0 0 0 1px #f3d49d44}
.cinema-card:focus-visible{outline:2px solid #f8dca2;outline-offset:4px}
.cinema-still{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border-radius:3px;background:#281a17;isolation:isolate}
.cinema-still>img,.cinema-preview-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cinema-preview-video{opacity:0;transition:opacity .18s;pointer-events:none}
.cinema-card.is-previewing .cinema-preview-video{opacity:1}
.cinema-still:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 1px #291a1a45,inset 0 -25px 35px -30px #1f0d0a}
.cinema-card-play{position:absolute;right:9px;bottom:9px;display:grid;place-items:center;width:28px;height:28px;border:1px solid #f7e4be88;border-radius:50%;background:#332118a8;color:#ffeac0;box-shadow:0 2px 8px #170b0870;transition:opacity .2s}
.cinema-card-play svg{width:18px;height:18px}
.cinema-card.is-previewing .cinema-card-play{opacity:0}
.cinema-running-time{position:absolute;left:5px;bottom:5px;z-index:2;padding:2px 4px;border-radius:2px;background:#2e211bc9;color:#f7e7c8;font:10px/1.1 Georgia;letter-spacing:.025em;font-variant-numeric:tabular-nums;box-shadow:0 1px 2px #1d110e40}
.cinema-ticket-stamp{position:absolute;top:6px;right:6px;z-index:2;border:1px solid #785445cc;border-radius:2px;padding:3px 5px 2px;background:#eee0c0ed;color:#76503e;box-shadow:0 0 0 1px #f1dfb8b0,0 1px 2px #2d1c1633;font:10px/1 Georgia;text-transform:uppercase;letter-spacing:.09em;transform:rotate(5deg)}
.cinema-frame-corners{position:absolute;inset:4px;pointer-events:none;border:1px solid #f6d7a21f;border-radius:1px}
.cinema-card-caption{display:flex;align-items:center;gap:9px;min-height:45px;padding:8px 4px 4px}
.cinema-card-number{flex:none;color:#9d7b50;font:21px/1 Georgia;border-right:1px solid #9e784c40;padding-right:8px}
.cinema-card-title{flex:1;min-width:0;color:#493329;font:15px/1.15 Georgia;text-wrap:balance}
.cinema-card-arrow{flex:none;font:16px Georgia;color:#856440}
.cinema-card-pending{cursor:default;filter:saturate(.6)}
.cinema-card-pending .cinema-card-play,.cinema-card-pending .cinema-card-arrow{display:none}
.cinema-card-soon{display:block;padding:0 4px 7px 40px;font:11px Georgia;color:#8d7151}
@media(min-width:761px){
 .chapter-cinema{padding:25px 30px 26px}
 .chapter-cinema .cinema-heading{margin-bottom:17px;padding-top:0}
 .chapter-cinema .cinema-mark{margin-bottom:8px}
 .chapter-cinema .cinema-heading h2{font-size:40px}
}
@media(max-width:760px){
 .chapter-cinema .cinema-program{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 5px}
 .chapter-cinema .cinema-screen-frame{max-width:none;padding:4px;border-radius:8px}
 .chapter-cinema .cinema-screen{border-radius:4px}
 .cinema-program-heading{margin:20px 5px 12px;font-size:12px}
 .cinema-program-count{font-size:9px}
 .cinema-card{padding:4px}
 .cinema-card-caption{gap:7px;min-height:45px;padding:8px 3px 4px}
 .cinema-card-title{font-size:14px}
 .cinema-card-number{font-size:19px;padding-right:7px}
 .cinema-card-arrow{font-size:15px}
 .cinema-card-play{width:26px;height:26px;right:7px;bottom:7px}
}
@media(max-width:380px){
 .chapter-cinema .cinema-program{gap:10px}
 .cinema-card-caption{gap:6px}
 .cinema-card-title{font-size:13px}
 .cinema-card-number{font-size:17px;padding-right:6px}
}
@media(max-height:580px) and (min-width:600px){
 .chapter-cinema .cinema-screen-frame{max-width:calc(54svh * 16 / 9)}
 .chapter-cinema .cinema-program{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
 .cinema-program-heading{margin-top:18px}
}
@media(prefers-reduced-motion:reduce){
 .cinema-card,.cinema-preview-video,.cinema-card-play{transition:none}
 .cinema-preview-video{display:none}
}
/* A feature screen with its programme beside it: titles stay visible at laptop heights. */
.chapter-cinema .cinema-body{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:25px;align-items:center}
.chapter-cinema .cinema-body>.cinema-screen-frame{width:100%;max-width:none;margin:0;box-sizing:border-box}
.chapter-cinema .cinema-library{min-width:0}
.chapter-cinema .cinema-library .cinema-program-heading{margin:0 0 12px;font-size:13px}
.chapter-cinema .cinema-library .cinema-program{grid-template-columns:1fr;gap:11px;padding:0}
.chapter-cinema .cinema-library .cinema-card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px;align-items:center;padding:6px}
.chapter-cinema .cinema-library .cinema-card-caption{display:grid;grid-template-columns:1fr auto;gap:4px;padding:3px 5px 3px 0;min-height:0}
.chapter-cinema .cinema-library .cinema-card-number{grid-column:1/-1;font-size:12px;border:0;padding:0;letter-spacing:.12em}
.chapter-cinema .cinema-library .cinema-card-title{font-size:17px;line-height:1.12;text-wrap:pretty}
.chapter-cinema .cinema-library .cinema-card-play{width:23px;height:23px;right:5px;bottom:5px}
@media(max-width:900px){
 .chapter-cinema .cinema-body{display:block}
 .chapter-cinema .cinema-body>.cinema-screen-frame{margin:0 auto;max-width:calc(48svh * 16 / 9)}
 .chapter-cinema .cinema-library .cinema-program-heading{margin:20px 0 12px}
 .chapter-cinema .cinema-library .cinema-program{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .chapter-cinema .cinema-library .cinema-card{display:block;padding:4px}
 .chapter-cinema .cinema-library .cinema-card-caption{display:flex;gap:7px;min-height:38px;padding:6px 4px 2px}
 .chapter-cinema .cinema-library .cinema-card-number{font-size:17px;border-right:1px solid #9e784c40;padding-right:7px;letter-spacing:0}
 .chapter-cinema .cinema-library .cinema-card-title{font-size:14px}
}
