/* ScreenKatta static site.
   Look: a dark hall where each film's image is the only light. Each film page
   gets its own accent (--a) from its poster; everything else is ink and cream.
   Layout: one centred column. On phones the four tabs sit at the bottom; on
   wide screens they move into the top bar. */
:root{
  --hall:#0c0b0a;--seat:#161513;--seat2:#1d1b19;--line:#272522;
  --text:#f3eee6;--soft:#d6cfc4;--dim:#8d877e;--faint:#5f5a53;--gold:#f5b335;--a:#f5b335;
  --font:"Bricolage Grotesque",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --col:760px;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--hall);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.45;font-variation-settings:"opsz" 14;padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px}
.wrap{max-width:var(--col);margin:0 auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* top bar */
.appbar{position:sticky;top:0;z-index:20;background:linear-gradient(var(--hall) 72%,rgba(12,11,10,0))}
.appbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-block:16px 12px}
.mark{font-weight:800;font-size:17px;letter-spacing:-.02em;font-variation-settings:"wdth" 80}
/* the clapperboard mark before the wordmark (same file as the favicon) */
.mark{display:inline-flex;align-items:center;gap:8px}
.mark::before{content:"";width:26px;height:26px;flex:none;background:url(/icon.svg) center/contain no-repeat}
.mark i{font-style:normal;color:var(--gold)}
.where{font-size:13px;color:var(--dim)}
.toptabs{display:none}

/* four tabs */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);background:var(--hall);border-top:1px solid var(--line);padding:8px max(6px,env(safe-area-inset-left,0px)) calc(10px + env(safe-area-inset-bottom,0px))}
.tabs a{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11.5px;color:var(--faint);font-weight:500}
.tabs svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tabs a[aria-current]{color:var(--text)}
.tabs a[aria-current] svg{stroke:var(--gold)}
@media (min-width:900px){
  body{padding-bottom:0}
  .tabs{display:none}
  .toptabs{display:flex;gap:26px;font-size:14px;color:var(--dim);font-weight:500}
  .toptabs a[aria-current]{color:var(--text);box-shadow:inset 0 -2px 0 var(--gold);padding-bottom:4px}
}

/* sections: title, content, at most one "see all" */
.sec{padding-top:30px}
.sh{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px}
.sh h2{margin:0;font-size:19px;font-weight:700;letter-spacing:-.01em}
.sh a{font-size:13px;color:var(--dim);white-space:nowrap}
.sh a::after{content:" \2192"}
.sh a:hover{color:var(--text)}
.end{height:40px}
.note{font-size:12.5px;color:var(--faint);margin:8px 0 0}
.empty{color:var(--dim);font-size:14px;margin:0}
h1.page{font-size:32px;line-height:1.05;font-weight:800;letter-spacing:-.02em;margin:10px 0 4px;font-variation-settings:"wdth" 85,"opsz" 60}
.lede{color:var(--dim);margin:0;font-size:14px}

/* home question */
.ask{margin:10px 0 0;font-size:30px;line-height:1.08;font-weight:300;letter-spacing:-.02em;font-variation-settings:"opsz" 60}
.ask b{font-weight:700}
.ask select{font:inherit;font-weight:700;color:var(--text);background:none;border:0;border-bottom:2px solid var(--text);padding:0 2px;cursor:pointer;appearance:none;-webkit-appearance:none;border-radius:0}

/* wide film rows (backdrop strips) */
.strip{position:relative;display:block;height:112px;margin-bottom:10px;border-radius:16px;overflow:hidden;background:var(--seat);transition:opacity .35s,filter .35s}
.strip img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.strip::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,11,10,.93) 34%,rgba(12,11,10,.2))}
.strip .in{position:relative;z-index:1;height:100%;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;padding:13px 15px}
.strip .n{font-size:18px;font-weight:700;line-height:1.1;font-variation-settings:"wdth" 85}
.strip .m{font-size:12px;color:#c9c2b8;margin-top:3px}
.strip .r{text-align:right}
.strip .g{font-size:30px;font-weight:800;line-height:.9;color:var(--a);font-variation-settings:"wdth" 75,"opsz" 96}
.strip .o{font-size:12px;color:#c9c2b8;margin-top:4px;font-variant-numeric:tabular-nums;white-space:nowrap}
.strip.late{opacity:.28;filter:grayscale(1)}
@media (min-width:700px){.strip{height:132px}}

/* poster grid */
.posters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}
@media (min-width:620px){.posters{grid-template-columns:repeat(5,minmax(0,1fr))}}
.posters .pi{display:block;width:100%;aspect-ratio:2/3;border-radius:10px;overflow:hidden;background:var(--seat)}
.posters .pi img{width:100%;height:100%;object-fit:cover}
.posters b{display:block;font-size:13px;font-weight:600;margin-top:6px;line-height:1.2}
.posters span{font-size:11.5px;color:var(--dim)}
.posters a:hover b{text-decoration:underline}

/* poster rail (home: coming to theatres / OTT) */
.rail{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;margin-right:-20px;padding-right:20px;scroll-snap-type:x proximity}
.rail::-webkit-scrollbar{display:none}
.rail a{flex:none;width:112px;scroll-snap-align:start}
.rail .pi{display:block;width:100%;aspect-ratio:2/3;border-radius:10px;overflow:hidden;background:var(--seat)}
.rail .pi img{width:100%;height:100%;object-fit:cover}
.rail b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:600;margin-top:6px;line-height:1.2}
.rail span{display:block;font-size:11.5px;color:var(--dim);margin-top:2px}
.rail em{font-style:normal;color:var(--gold);font-weight:600}
.rail a:hover b{text-decoration:underline}
@media (min-width:620px){.rail a{width:128px}}

/* poster rows */
.rows > a,.rows > div{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 0;border-top:1px solid var(--line)}
.rows > :first-child{border-top:0}
.rows .pi{width:44px;height:66px;border-radius:6px;overflow:hidden;background:var(--seat)}
.rows .pi img{width:100%;height:100%;object-fit:cover}
.rows b{display:block;font-size:15px;font-weight:600}
.rows span{font-size:12px;color:var(--dim)}
.tag{font-size:12px;color:var(--text);border:1px solid var(--line);border-radius:999px;padding:3px 9px;white-space:nowrap}

/* featured card */
.feature{position:relative;display:block;border-radius:18px;overflow:hidden;height:220px;background:var(--seat)}
.feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.feature::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,11,10,.1) 20%,rgba(12,11,10,.95))}
.feature .in{position:absolute;z-index:1;left:16px;right:16px;bottom:14px}
.feature small{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--a)}
.feature b{display:block;font-size:26px;line-height:1;font-weight:800;margin:6px 0;font-variation-settings:"wdth" 80,"opsz" 96}
.feature p{margin:0;font-size:13px;color:var(--soft)}

/* title page (film, series, person) */
.hero{position:relative;height:300px;background:var(--seat);max-width:1100px;margin:0 auto}
.hero img{width:100%;height:100%;object-fit:cover;object-position:center 25%}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,11,10,.55),rgba(12,11,10,0) 30%,rgba(12,11,10,0) 45%,var(--hall) 98%)}
@media (min-width:700px){.hero{height:420px}}
.hero .nav{position:absolute;z-index:2;top:14px;left:14px;right:14px;display:flex;justify-content:space-between}
.pill{background:rgba(12,11,10,.62);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:999px;padding:7px 13px;font-size:13px;font-weight:600;border:0;cursor:pointer}
.hero .t{position:absolute;z-index:1;left:0;right:0;bottom:4px}
.hero h1{margin:0;font-size:42px;line-height:.92;font-weight:800;letter-spacing:-.03em;font-variation-settings:"wdth" 75,"opsz" 96;text-wrap:balance}
@media (min-width:700px){.hero h1{font-size:60px}}
.hero.noimg{height:auto;background:none}
.hero.noimg::after{display:none}
.hero.noimg .t{position:static;padding-top:70px}
.meta{margin-top:10px;font-size:13px;color:var(--dim)}
.jump{position:sticky;top:0;z-index:15;margin-top:14px;background:var(--hall);border-bottom:1px solid var(--line)}
.jump .wrap{display:flex;gap:18px;padding-block:12px;font-size:13px;color:var(--faint);white-space:nowrap;overflow-x:auto;scrollbar-width:none}
.jump .wrap::-webkit-scrollbar{display:none}
.jump a:hover{color:var(--text)}
.sec[id]{scroll-margin-top:52px}

.two{display:grid;grid-template-columns:1fr 1fr}
.two > div + div{padding-left:16px;border-left:1px solid var(--line)}
.big{font-size:56px;line-height:.85;font-weight:800;letter-spacing:-.03em;font-variation-settings:"wdth" 75,"opsz" 96;font-variant-numeric:tabular-nums}
.big.a{color:var(--a)}
.big small{font-size:20px;font-weight:600;margin-left:3px}
.cap{font-size:12px;color:var(--dim);margin-top:8px;line-height:1.35}

.shows{display:flex;gap:6px;margin-bottom:12px;font-variant-numeric:tabular-nums}
.shows button{background:none;border:1px solid transparent;border-radius:999px;padding:4px 10px;font-size:14px;color:var(--faint);cursor:pointer}
.shows button[aria-pressed="true"]{color:var(--text);font-weight:700;border-color:var(--line)}
.bar{display:flex;height:10px;gap:3px}
.bar i{display:block;border-radius:3px;background:var(--a)}
.bar i.x{background:var(--line)}
.ticks{position:relative;height:32px;margin-top:8px;font-size:11.5px;color:var(--dim);font-variant-numeric:tabular-nums}
.ticks span{position:absolute;top:0;white-space:nowrap;line-height:1.25}
.ticks b{display:block;color:var(--text);font-weight:600}

.lines{margin:0;padding:0;list-style:none}
.lines li{padding:11px 0;border-top:1px solid var(--line);font-size:14px;color:var(--dim);display:flex;justify-content:space-between;gap:12px}
.lines li:first-child{border-top:0}
.lines li b,.lines li a{color:var(--text);font-weight:500;text-align:right}
.lines li a:hover{text-decoration:underline}
.story{margin:0 0 16px;font-size:14.5px;line-height:1.6;color:var(--soft);max-width:65ch}
.people{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.people a{flex:none;width:78px}
.people .ph{width:64px;height:64px;border-radius:50%;overflow:hidden;background:var(--seat2);border:1px solid var(--line);display:grid;place-items:center;font-weight:700;color:var(--dim);font-size:14px}
.people .ph img{width:100%;height:100%;object-fit:cover}
.people b{display:block;font-size:12.5px;font-weight:600;margin-top:6px;line-height:1.2}
.people span{font-size:11.5px;color:var(--dim)}
.review{border-top:1px solid var(--line);padding:12px 0}
.review:first-child{border-top:0;padding-top:0}
.review .by{font-size:12.5px;color:var(--dim);margin-bottom:4px}
.review .by b{color:var(--a);font-weight:700}
.review p{margin:0;font-size:14px;line-height:1.55;white-space:pre-line}
.clips{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none}
.clips a{flex:none;width:220px}
.clips .th{position:relative;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:var(--seat)}
.clips .th img{width:100%;height:100%;object-fit:cover}
.clips .th::after{content:"\25B6";position:absolute;left:10px;bottom:8px;font-size:12px;color:#fff}
.clips b{display:block;font-size:12.5px;font-weight:500;margin-top:6px;line-height:1.3;color:var(--soft)}

/* explore */
.searchbox{display:flex;align-items:center;gap:10px;background:var(--seat);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-top:6px}
.searchbox svg{width:18px;height:18px;stroke:var(--faint);fill:none;stroke-width:1.8;flex:none}
.searchbox input{flex:1;min-width:0;background:none;border:0;color:var(--text);font:inherit;font-size:16px;outline:none}
.searchbox input::placeholder{color:var(--faint)}
.words{display:flex;flex-wrap:wrap;gap:4px 18px}
.words a{font-size:26px;font-weight:300;letter-spacing:-.02em;line-height:1.25;font-variation-settings:"opsz" 60}
.words a:hover{color:var(--gold)}
.words sup{font-size:11px;color:var(--faint);font-weight:500;margin-left:2px;letter-spacing:0}
.cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (min-width:620px){.cards{grid-template-columns:repeat(3,1fr)}}
.cards a{position:relative;border-radius:14px;overflow:hidden;height:130px;background:var(--seat)}
.cards img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cards a::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 25%,rgba(12,11,10,.92))}
.cards span{position:absolute;z-index:1;left:12px;right:12px;bottom:10px;font-size:14px;font-weight:700;line-height:1.15}
.cards small{display:block;font-size:11.5px;font-weight:500;color:var(--dim)}
.tall{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none}
.tall a{flex:none;position:relative;width:110px;height:180px;border-radius:12px;overflow:hidden;background:var(--seat)}
.tall img{width:100%;height:100%;object-fit:cover}
.tall a::after{content:"\25B6";position:absolute;left:10px;bottom:8px;font-size:12px;color:#fff}
.plain > a{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--line);font-size:14.5px}
.plain > a:first-child{border-top:0}
.plain span{color:var(--dim);font-size:12.5px;white-space:nowrap}
.plain > a:hover{color:var(--gold)}
.chipset{display:flex;flex-wrap:wrap;gap:8px}
.chipset a,.chipset button{border:1px solid var(--line);background:none;border-radius:999px;padding:6px 12px;font-size:13px;color:var(--dim);cursor:pointer}
.chipset [aria-current],.chipset [aria-pressed="true"]{color:var(--hall);background:var(--text);border-color:var(--text)}
.homejump{padding-top:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.homejump::-webkit-scrollbar{display:none}.homejump a{flex:none}
.pager{display:flex;justify-content:space-between;padding-top:24px;font-size:14px;color:var(--dim)}
.pager a:hover{color:var(--text)}
.article{font-size:16px;line-height:1.7;color:var(--soft);max-width:65ch}
.article h2,.article h3{color:var(--text);line-height:1.2}
.article a{color:var(--gold)}
.foot{border-top:1px solid var(--line);margin-top:48px}
.foot .wrap{display:flex;flex-wrap:wrap;gap:8px 18px;padding-block:22px 28px;font-size:12.5px;color:var(--faint)}
.foot a:hover{color:var(--text)}
#results{margin-top:8px}
@media (prefers-reduced-motion:no-preference){.bar i{animation:grow .9s cubic-bezier(.2,.7,.2,1) both}@keyframes grow{from{transform:scaleX(.6);transform-origin:left;opacity:.5}}}

/* signed-in bits */
.me{font-size:13px;color:var(--dim);border:1px solid var(--line);border-radius:999px;padding:5px 12px;white-space:nowrap;display:inline-flex;align-items:center;gap:8px}
.me img{width:22px;height:22px;border-radius:50%;object-fit:cover;margin:-3px 0 -3px -8px}
.me:hover{color:var(--text)}
.acts{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom,0px));z-index:25;background:linear-gradient(rgba(12,11,10,0),var(--hall) 30%);padding-top:14px}
.acts .wrap{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-block:6px 12px}
.acts button{border-radius:12px;padding:12px;font-size:14px;font-weight:700;border:1px solid var(--line);background:var(--seat);color:var(--text);cursor:pointer}
.acts button.p{background:var(--text);color:var(--hall);border-color:var(--text)}
.acts button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.acts button.has-v{padding-block:5px}
.acts button small{display:block;font-size:11px;font-weight:500;opacity:.65;line-height:1.2}
.acts:not([data-released]) .wrap{grid-template-columns:1fr}
@media (min-width:900px){.acts{bottom:0}.acts .wrap{max-width:420px;margin-left:auto;margin-right:auto}}
dialog.sheet{border:0;padding:0;background:var(--seat);color:var(--text);width:min(520px,100%);max-width:100%;margin:auto auto 0;border-radius:20px 20px 0 0;max-height:88vh}
@media (min-width:700px){dialog.sheet{margin:auto;border-radius:20px}}
dialog.sheet::backdrop{background:rgba(0,0,0,.6)}
.sheet .in{padding:20px 20px calc(20px + env(safe-area-inset-bottom,0px));display:grid;gap:16px}
.sheet h3{margin:0;font-size:19px}
.sheet .row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.sheet .x{background:none;border:0;color:var(--dim);font-size:22px;cursor:pointer;line-height:1}
.sheet label.t{font-size:12.5px;color:var(--dim);display:block;margin-bottom:8px}
.sheet textarea,.sheet input[type=text]{width:100%;background:var(--hall);border:1px solid var(--line);border-radius:12px;color:var(--text);font:inherit;font-size:15px;padding:10px 12px}
.sheet textarea{min-height:96px;resize:vertical}
.sheet .save{background:var(--text);color:var(--hall);border:0;border-radius:12px;padding:13px;font-weight:700;font-size:15px;cursor:pointer}
.sheet .save:disabled{opacity:.5}
.sheet .msg{font-size:13px;color:var(--dim);min-height:1em;margin:0}
.sheet .del{background:none;border:0;color:var(--dim);font-size:13px;cursor:pointer;text-decoration:underline;justify-self:start;padding:0}
.sheet .opts > label{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-top:1px solid var(--line);font-size:15px;cursor:pointer}
.sheet .opts > label:first-child{border-top:0}
.sheet .opts input{width:20px;height:20px;accent-color:var(--gold)}

/* top bar tools: search icon and sign-in, on every page */
.tools{display:flex;align-items:center;gap:10px}
.icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);color:var(--dim)}
.icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round}
.icon:hover,.icon[aria-current]{color:var(--text);border-color:var(--dim)}
.me.in{color:var(--text)}

/* home intro */
.intro{padding-top:14px}
.intro h1{font-size:34px;line-height:1.05;font-weight:800;letter-spacing:-.025em;margin:0;font-variation-settings:"wdth" 85,"opsz" 60;text-wrap:balance}
.intro p{color:var(--soft);font-size:15.5px;line-height:1.5;margin:10px 0 0;max-width:52ch}
.go{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:18px}
.go a{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line);background:var(--seat);border-radius:14px;padding:12px}
.go a b{font-size:15px}
.go a span{font-size:12px;color:var(--dim)}
.go a:hover{border-color:var(--dim)}
.go a.p{background:var(--gold);border-color:var(--gold);color:var(--hall)}
.go a.p span{color:rgba(12,11,10,.7)}
@media (min-width:700px){.intro h1{font-size:46px}}
.homeby{font-size:14px;color:var(--dim);display:flex;align-items:center;gap:6px;white-space:nowrap}
.homeby select{font:inherit;font-weight:700;color:var(--text);background:var(--seat);border:1px solid var(--line);border-radius:999px;padding:4px 10px;cursor:pointer}
.later{font-size:12.5px;color:var(--faint);margin:16px 0 8px;letter-spacing:.04em;text-transform:uppercase}
.strip.late{opacity:.55;filter:grayscale(.6)}

/* the middle "+" tab: log a film */
.tabs a.plus{color:var(--hall)}
.tabs a.plus svg{width:46px;height:46px;padding:11px;margin-top:-18px;border-radius:50%;background:var(--gold);stroke:var(--hall);stroke-width:2.4;box-shadow:0 6px 18px rgba(0,0,0,.45)}
.tabs a.plus[aria-current] svg{stroke:var(--hall)}
.tabs a.plus{font-size:0}
.log{display:none;font-size:13px;font-weight:700;color:var(--hall);background:var(--gold);border-radius:999px;padding:6px 13px;white-space:nowrap}
@media (min-width:900px){.log{display:inline-block}}

/* cast row: long names and roles wrap inside their column, two lines at most */
.people b,.people span{display:block;overflow-wrap:anywhere;line-height:1.3}
.people span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:2px}
.people b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ratings under the title */
.ratings{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.rating{display:inline-flex;align-items:center;gap:7px;background:var(--seat);border:1px solid var(--line);border-radius:12px;padding:6px 11px 6px 7px;font-size:14px}
.rating b{font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.rating small{font-size:12px;color:var(--dim)}
.rating .ico{flex:none}
.rating svg.ico{width:22px;height:22px}
.ico.imdb{background:#f5c518;color:#000;font-weight:900;font-size:11.5px;letter-spacing:-.02em;border-radius:4px;padding:3px 5px;line-height:1}
@media (max-width:599px){.rating small.name{display:none}.rating{padding:5px 9px 5px 6px}}

.ico.mc,.ico.skm{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-weight:900;font-size:11px;line-height:1}
.ico.mc{background:#2b2b2b;color:#fff;box-shadow:inset 0 0 0 2px var(--mc,#888)}
.ico.mc.good{--mc:#00ce7a}.ico.mc.mixed{--mc:#ffbd3f}.ico.mc.bad{--mc:#ff6874}
.ico.skm{background:var(--gold);color:var(--hall);font-size:9.5px;letter-spacing:-.02em}
.rating.sk{border-color:rgba(245,179,53,.45);color:var(--text);font:inherit;font-size:14px;cursor:pointer}
.rating.sk:hover{border-color:var(--gold)}
button.rating.sk b{font-size:14px}
.rating.sk b{font-size:15px}
/* phones: one row that scrolls sideways instead of wrapping */
@media (max-width:599px){.ratings{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-20px;padding-right:20px}.ratings::-webkit-scrollbar{display:none}.rating{flex:none}}

/* phones have Search in the bottom tabs, so the top-bar icon is for wide screens */
@media (max-width:899px){.tools .icon{display:none}}

/* reels: one clip per screen, swipe up for the next */
body.reels-on{overflow:hidden}
body.reels-on .appbar,body.reels-on .foot{display:none}
.reels{position:fixed;left:0;right:0;top:0;bottom:calc(64px + env(safe-area-inset-bottom,0px));background:#000;color:#fff;z-index:20}
@media (min-width:900px){.reels{bottom:0}body.reels-on .tabs{display:none}}
.rfeed{height:100%;overflow-y:scroll;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none}
.rfeed::-webkit-scrollbar{display:none}
.rcard{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;display:flex;justify-content:center}
.rstage{position:relative;height:100%;width:100%;overflow:hidden;background:#000;container-type:size}
@media (min-width:600px){.rstage{width:calc(100dvh * 9 / 16);max-width:100%}}
.rthumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.75}
.rstage iframe{position:absolute;top:50%;left:50%;width:177.78cqh;height:100cqh;min-width:100cqw;min-height:56.25cqw;transform:translate(-50%,-50%);border:0;pointer-events:none}
.rstage::after{content:"";position:absolute;inset:auto 0 0 0;height:45%;background:linear-gradient(transparent,rgba(0,0,0,.85));pointer-events:none}
.rtap{position:absolute;inset:0;background:none;border:0;cursor:pointer;z-index:1}
.rcard.paused .rtap::after{content:"\25B6";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;background:rgba(0,0,0,.5);display:grid;place-items:center;font-size:24px;color:#fff;line-height:64px;text-align:center}
.rinfo{position:absolute;left:16px;right:84px;bottom:22px;z-index:2;max-width:520px}
@media (min-width:600px){.rinfo{left:calc(50% - 50dvh * 9 / 16 + 16px)}}
.rinfo small{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.7);font-weight:600}
.rinfo a{display:block;font-size:21px;font-weight:800;line-height:1.1;margin-top:4px;text-shadow:0 1px 8px rgba(0,0,0,.6);font-variation-settings:"wdth" 85}
.rinfo p{margin:4px 0 0;font-size:13.5px;color:rgba(255,255,255,.82);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rstatus{display:inline-block;margin-top:8px;font-size:12px;font-weight:700;background:var(--gold);color:#000;border-radius:999px;padding:3px 10px}
.rrail{position:absolute;right:10px;bottom:22px;z-index:2;display:flex;flex-direction:column;gap:16px;align-items:center}
@media (min-width:600px){.rrail{right:calc(50% - 50dvh * 9 / 16 + 10px)}}
.rrail a,.rrail button{display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:0;color:#fff;font:inherit;font-size:11px;font-weight:600;cursor:pointer}
.rrail svg{width:44px;height:44px;padding:10px;border-radius:50%;background:rgba(0,0,0,.4);stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rtop{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;justify-content:space-between;align-items:center;padding:calc(10px + env(safe-area-inset-top,0px)) 14px 24px;background:linear-gradient(rgba(0,0,0,.65),transparent);pointer-events:none}
.rtop b{font-size:16px}
.rbtn{pointer-events:auto;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(0,0,0,.45);border:0;color:#fff;cursor:pointer}
.rbtn svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rend{align-items:center;text-align:center;padding:0 32px}
.rend div{display:grid;gap:8px;justify-items:center}
.rend b{font-size:18px}
.rend p{margin:0;color:rgba(255,255,255,.7);font-size:14px}
.rend a{margin-top:8px;background:var(--gold);color:#000;border-radius:999px;padding:9px 18px;font-weight:700;font-size:14px}

/* profile */
.profile{padding-top:10px}
.phead{display:flex;align-items:center;gap:14px}
.pav{width:72px;height:72px;border-radius:50%;overflow:hidden;background:var(--seat2);display:grid;place-items:center;font-size:28px;font-weight:800;color:var(--gold);flex:none;border:2px solid var(--line)}
.pav img{width:100%;height:100%;object-fit:cover}
.pwho{flex:1;min-width:0}
.pwho h1{margin:0;font-size:26px;line-height:1.1;font-weight:800;letter-spacing:-.02em;font-variation-settings:"wdth" 85,"opsz" 60;overflow-wrap:anywhere}
.pwho p{margin:4px 0 0;color:var(--dim);font-size:14px}
.pmenu{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--seat);display:grid;place-items:center;cursor:pointer;flex:none}
.pmenu svg{width:20px;height:20px;fill:var(--text)}
.pbio{color:var(--soft);font-size:14.5px;margin:14px 0 0;max-width:60ch}
.pstats{display:flex;gap:8px;margin-top:20px;overflow-x:auto;scrollbar-width:none;margin-right:-20px;padding-right:20px}
.pstats::-webkit-scrollbar{display:none}
.pstats button,.pstats>span{flex:1 0 82px}
.pstats svg{width:20px;height:20px;stroke:var(--text);fill:none;stroke-width:2;stroke-linecap:round;margin:2px 0 3px}
.pstats button,.pstats>span{background:var(--seat);border:1px solid var(--line);border-radius:14px;padding:10px;display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--dim);font:inherit;font-size:12.5px;cursor:pointer;min-height:58px}
.pstats b{font-size:20px;color:var(--text);font-weight:800}
.pstats button[aria-selected="true"]{border-color:var(--gold);color:var(--text)}
.pbody{padding-top:20px;min-height:200px}
.previews{display:grid;gap:10px}
.prev{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;background:var(--seat);border:1px solid var(--line);border-radius:14px;padding:10px}
.prev .pi{width:56px;height:84px;border-radius:8px;overflow:hidden;background:var(--seat2)}
.prev .pi img{width:100%;height:100%;object-fit:cover}
.prev b{display:block;font-size:15px}
.pv{display:inline-block;margin-top:6px;font-size:12px;font-weight:700;color:#111;background:var(--v);border-radius:999px;padding:2px 9px}
.prev p{margin:6px 0 0;font-size:13.5px;color:var(--soft);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.plists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (min-width:620px){.plists{grid-template-columns:repeat(3,minmax(0,1fr))}}
.plist b{display:block;font-size:14px;margin-top:8px}
.plist>span:last-child{font-size:12px;color:var(--dim)}
.pcoll{display:grid;grid-template-columns:1fr 1fr;gap:2px;border-radius:12px;overflow:hidden;aspect-ratio:1;background:var(--seat)}
.pcoll img,.pcoll i{width:100%;height:100%;object-fit:cover;display:block;background:var(--seat2)}
.pempty{text-align:center;padding:30px 10px;color:var(--dim)}
.pcta{display:inline-block;margin-top:10px;background:var(--gold);color:var(--hall);border-radius:999px;padding:9px 18px;font-weight:700;font-size:14px}
.pmenu-list{display:grid}
.pmenu-list a,.pmenu-list button{text-align:left;background:none;border:0;border-top:1px solid var(--line);color:var(--text);font:inherit;font-size:15px;padding:14px 2px;cursor:pointer}
.pmenu-list>:first-child{border-top:0}
.pmenu-list .danger{color:#f87171}
.sk-skel{background:linear-gradient(90deg,var(--seat) 0%,var(--seat2) 50%,var(--seat) 100%);background-size:200% 100%;border-radius:8px;display:block}
@media (prefers-reduced-motion:no-preference){.sk-skel{animation:sk 1.2s linear infinite}@keyframes sk{from{background-position:200% 0}to{background-position:-200% 0}}}
.pstats>span.sk-skel{border:0}

/* Letterboxd import */
.import .steps{color:var(--soft);padding-left:20px;margin:18px 0;line-height:1.6}
.import .pick{display:inline-flex;position:relative;background:var(--gold);color:var(--hall);border-radius:999px;padding:11px 20px;font-weight:700;font-size:15px;cursor:pointer}
.import .pick input{position:absolute;inset:0;opacity:0;cursor:pointer}
.lbstatus{margin-top:16px;color:var(--soft)}
.lbstatus .bar{height:6px;border-radius:3px;background:var(--seat2);overflow:hidden;margin-top:8px}
.lbstatus .bar i{display:block;height:100%;background:var(--gold);transition:width .3s}
.lbstatus .ok{color:var(--text)}
.lbstatus details{margin-top:12px;color:var(--dim);font-size:14px}
.lbstatus ul{margin:8px 0 0;padding-left:18px;max-height:260px;overflow:auto}
.import h2.sub{font-size:17px;margin:30px 0 8px}
.import table.map{border-collapse:collapse;font-size:14px}
.import table.map td{padding:7px 18px 7px 0;border-bottom:1px solid var(--line)}

/* profile stats */
.stiles{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
@media (min-width:620px){.stiles{grid-template-columns:repeat(4,1fr)}}
.stiles div{background:var(--seat);border:1px solid var(--line);border-radius:14px;padding:12px}
.stiles b{display:block;font-size:24px;font-weight:800}
.stiles span{font-size:12.5px;color:var(--dim)}
.sh3{font-size:15px;margin:22px 0 8px}
.sbars{display:grid;gap:6px}
.sbar{display:grid;grid-template-columns:84px 1fr 36px;align-items:center;gap:10px;font-size:13px;color:var(--dim)}
.sbar i{display:block;height:10px;border-radius:5px;background:var(--gold)}
.sbar b{color:var(--text);text-align:right;font-weight:700}

/* my apps filter */
.homejump button{flex:none}
.appsbar{font-size:13px;color:var(--dim);margin:14px 0 0}
.appsbar button{background:none;border:0;color:var(--gold);font:inherit;padding:0;cursor:pointer}
.posters a[hidden]{display:none}

/* taste twins */
.twins{display:grid;gap:8px}
.twins > a,.twins > div{display:flex;align-items:center;gap:12px;background:var(--seat);border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.twins .pav{width:40px;height:40px;font-size:16px;flex:none}
.twins b{display:block;font-size:14px}
.twins span{font-size:12.5px;color:var(--dim)}

/* shared lists */
.listacts{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.listacts:empty{display:none}
.listacts .pcta{margin-top:0;border:0;cursor:pointer;font:inherit;font-weight:700;font-size:14px}
.linkbtn{background:none;border:0;color:var(--dim);font:inherit;font-size:13px;text-decoration:underline;cursor:pointer;padding:0}
/* episodes */
#seasons li.season{cursor:pointer;flex-wrap:wrap}
.eptag{color:var(--gold)}
.eps{flex-basis:100%;padding:10px 0 4px}
.epgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:6px}
.epgrid button{border:1px solid var(--line);background:var(--seat);color:var(--dim);border-radius:8px;padding:8px 0;font:inherit;font-size:13px;cursor:pointer}
.epgrid button[aria-pressed="true"]{background:var(--gold);color:var(--hall);border-color:var(--gold);font-weight:700}
.epall{margin-top:10px;background:none;border:1px solid var(--line);color:var(--text);border-radius:999px;padding:7px 14px;font:inherit;font-size:13px;cursor:pointer}
/* profile: shared list tag, TV progress */
.plist .stag{color:var(--gold)}
.tvrow{display:grid;gap:8px}
.tvrow a{display:flex;gap:12px;align-items:center;background:var(--seat);border:1px solid var(--line);border-radius:14px;padding:8px}
.tvrow img{width:44px;height:66px;border-radius:6px;object-fit:cover}
.tvrow b{display:block;font-size:14px}
.tvrow span{font-size:12.5px;color:var(--dim)}
/* What to watch tonight: the home button and /pick */
.pickcta{display:block;margin:10px 0 4px;padding:14px 16px;border-radius:14px;background:var(--seat);border:1px solid var(--line);border-left:4px solid var(--gold)}
.pickcta b{display:block;font-size:16px}
.pickcta span{font-size:13px;color:var(--dim)}
.pickcta:hover b{text-decoration:underline}
.picker h2.sub{font-size:15px;margin:24px 0 10px}
.pickout{margin-top:28px}
.picklist{display:flex;flex-direction:column;gap:10px}
.pickrow{display:flex;align-items:center;gap:12px;padding:8px;border-radius:12px;background:var(--seat)}
.pickrow .pn{flex:none;width:18px;text-align:center;font-weight:800;color:var(--gold)}
.pickrow .pp{flex:none;width:64px;aspect-ratio:2/3;border-radius:8px;overflow:hidden;background:var(--line)}
.pickrow .pp img{width:100%;height:100%;object-fit:cover;display:block}
.pickrow .pt{display:flex;flex-direction:column;gap:3px;min-width:0}
.pickrow .pt b{font-size:15px;line-height:1.25}
.pickrow .ps{font-size:12.5px;color:var(--soft)}
.pickrow .ps em{font-style:normal;font-weight:700;color:var(--gold)}
.pickrow .pw{font-size:12.5px;color:var(--dim)}
.pickrow:hover b{text-decoration:underline}
.pickmore{margin-top:14px;border:1px solid var(--line);background:none;color:var(--text);border-radius:999px;padding:9px 18px;font-size:14px;cursor:pointer}
/* "Did you watch it?" (home card, film page line) */
.ask{display:flex;gap:12px;align-items:center;margin:10px 0 4px;padding:10px;border-radius:14px;background:var(--seat);border:1px solid var(--line)}
.ask[hidden],.askline[hidden]{display:none}
.ask .ap{flex:none;width:56px;aspect-ratio:2/3;border-radius:8px;overflow:hidden;background:var(--line)}
.ask .ap img{width:100%;height:100%;object-fit:cover;display:block}
.ask .at{display:flex;flex-direction:column;gap:3px;min-width:0}
.ask .at b{font-size:15px;line-height:1.25}
.ask .at span{font-size:12.5px;color:var(--dim)}
.ask .ab{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.ask .ab button,.askline button{border:1px solid var(--line);background:none;color:var(--text);border-radius:999px;padding:6px 14px;font-size:13px;cursor:pointer}
.ask .ab button.p{background:var(--gold);border-color:var(--gold);color:var(--hall);font-weight:700}
.ask .ab button:disabled{opacity:.5}
.acts .askline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-block:0;font-size:13px;color:var(--soft)}
.acts .askline[hidden]{display:none}
.acts .askline span{flex:1 1 auto}
.acts .askline button{padding:6px 14px;border-radius:999px;font-size:13px;font-weight:600}
/* First-time setup (/welcome) */
.welcome .wstep{font-size:12.5px;color:var(--gold);font-weight:700;margin:0 0 4px;text-transform:uppercase;letter-spacing:.04em}
.welcome h2.sub{font-size:15px;margin:24px 0 10px}
.wbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:28px}
.wsticky{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom,0px));background:var(--hall);padding:12px 0;border-top:1px solid var(--line);justify-content:space-between}
.wnext{display:inline-block;background:var(--gold);color:var(--hall);border:0;border-radius:999px;padding:11px 24px;font-weight:700;font-size:15px;cursor:pointer}
.wnext:disabled{opacity:.6}
.wskip{background:none;border:0;color:var(--dim);font-size:14px;cursor:pointer;text-decoration:underline}
.wcount{font-size:13.5px;color:var(--soft)}
.wfilms{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.wfilm{display:flex;gap:12px;padding:8px;border-radius:12px;background:var(--seat);border:1px solid transparent}
.wfilm.on{border-color:var(--gold)}
.wfilm img{flex:none;width:64px;aspect-ratio:2/3;border-radius:8px;object-fit:cover;background:var(--line)}
.wfilm b{display:block;font-size:15px;line-height:1.25}
.wfilm span{font-size:12.5px;color:var(--dim)}
.wfilm .wv{margin-top:8px;gap:6px}
.wfilm .wv button{padding:5px 10px;font-size:12.5px}
/* /admin (worker/src/admin.tsx) */
.adm .chipset{align-items:center;margin:8px 0 16px}
.adm .chipset form{margin-left:auto}
.adm button{border:1px solid var(--line);background:var(--seat);color:var(--text);border-radius:999px;padding:7px 14px;font-size:13px;cursor:pointer}
.adm button.on{border-color:var(--gold);color:var(--gold)}
.adm-note{padding:10px 14px;border-radius:12px;background:var(--seat);border-left:4px solid var(--gold);margin:0 0 16px}
.adm-form{display:flex;flex-direction:column;gap:10px}
.adm-form textarea,.adm-links input{width:100%;background:var(--seat);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:8px 10px;font:inherit;font-size:13px}
.adm-rows{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}
.adm-rows li{padding:12px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.adm-film{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.adm-film span{font-size:12.5px;color:var(--dim)}
.adm-links{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}
@media (max-width:640px){.adm-links{grid-template-columns:1fr}}
.adm-msg{white-space:pre-wrap;margin:0;font-size:14px}
.adm-table{overflow-x:auto}
.adm-table table{border-collapse:collapse;font-size:13px;width:100%}
.adm-table th,.adm-table td{text-align:left;padding:6px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
