/* GRUMPY//NET v2 — the Grump Theatre (0.19.0, Phase 9c). Prefix th- (mockups TH9b-*). */
/* the red dot on the Theatre menu item while it's open */
.th-navdot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ff4d3a;box-shadow:0 0 8px #ff4d3a;margin-left:6px;vertical-align:middle}
/* the lobby */
.th-main{display:flex;flex-direction:column;gap:14px;padding-top:18px;padding-bottom:26px}
.th-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.th-top h1{margin:0;font:400 28px var(--f-head);color:#fff}
.th-wait{padding:40px 0;text-align:center;color:var(--dim)}
.th-err{margin:0;padding:10px 14px;border-radius:12px;background:#2a1408;border:1px solid #6a2a10;color:#ffc0a0;font-size:14px}
.th-gone{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;background:#14200f;border:1px solid #2f6a4f;color:#cfeedd;font-size:14px}
.th-gone b{color:#fff}.th-gone .x{margin-left:auto}
.th-host{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 16px;border-radius:14px;background:#0f1a24;border:1px solid #23466f;color:#cfe6ff}
.th-host.on{background:#0d1610;border-color:#2f6a4f;color:#cfeedd}
.th-host b{color:#fff;display:block}.th-host small{font-size:13px}
.th-ht{flex:1 1 280px;min-width:0}
.th-hacts{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}
.th-cdl{font-size:13px}
.th-count{font:400 26px var(--f-num);color:#ffd23f;line-height:1}
.th-sw{width:58px;height:32px;border-radius:999px;background:#2a2a30;border:0;position:relative;cursor:pointer;flex:none}
.th-sw::after{content:"";position:absolute;top:4px;left:4px;width:24px;height:24px;border-radius:50%;background:#bbb;transition:left .15s}
.th-sw.on{background:#2fae6a}.th-sw.on::after{left:30px;background:#fff}
.th-sw:disabled{opacity:.5;cursor:wait}
.th-marq{position:relative;display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:22px;align-items:center;padding:22px 26px;border-radius:18px;background:radial-gradient(900px 260px at 50% -80px,#3a1d08,#120a05 70%);border:2px solid #6a4410;box-shadow:inset 0 0 0 6px #1a0f05,inset 0 0 0 8px #3a2408}
.th-bulbs{position:absolute;inset:7px;border-radius:13px;pointer-events:none;padding:5px;background:radial-gradient(circle,#ffd98a 0 2.2px,transparent 3px) 0 0/22px 22px;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.85}
.th-marq.dark .th-bulbs{background:radial-gradient(circle,#5a4422 0 2.2px,transparent 3px) 0 0/22px 22px}
.th-word{font:400 13px var(--f-pix);letter-spacing:.22em;color:#ffd23f}
.th-mtxt{min-width:0}
.th-marq h2{margin:4px 0 6px;font:400 30px/1.1 var(--f-head);color:#fff;overflow-wrap:anywhere}
.th-marq p{margin:0;color:#e9d9bd;font-size:14.5px}
.th-marq .th-meta{margin-top:8px;font-size:13px;color:#cdb58a}.th-meta b{color:#fff}
.th-acts{display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:230px}
.th-acts .cm-fine{text-align:center}
.th-big{min-height:54px !important;font-size:16px !important;padding:0 22px !important}
.th-grumpimg{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;background:#1a0f05;border:2px dashed #5a3a10;overflow:hidden}
.th-grumpimg img{width:118px;height:118px;object-fit:contain;filter:grayscale(.5) brightness(.8)}
.th-grumpimg.on{border-style:solid;border-color:#d9a441}.th-grumpimg.on img{filter:none}
/* posters (real ones load over the stand-in colours) */
.th-post{position:relative;display:flex;flex-direction:column;justify-content:flex-end;width:150px;height:225px;border-radius:10px;padding:8px;box-sizing:border-box;overflow:hidden;font:400 13px/1.15 var(--f-head);color:#fff;text-shadow:0 2px 4px #000;box-shadow:0 8px 24px rgba(0,0,0,.6);flex:none}
.th-post img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.th-post .th-pl{position:relative}
.th-post img ~ .th-pl{display:none}
.th-post.th-pmini{width:34px;height:50px;padding:0;border-radius:5px;font-size:0}
.th-post.th-php{width:100%;height:auto;aspect-ratio:2/3;font-size:12px;padding:7px}
.th-post.th-psg{width:100%;height:auto;aspect-ratio:2/3;font-size:12px}
.th-c1{background:linear-gradient(160deg,#ff7a2f,#5a1a5a 60%,#120618)}.th-c2{background:linear-gradient(170deg,#2fb6ff,#13305a 55%,#05080f)}
.th-c3{background:linear-gradient(165deg,#8bff7a,#1f5a2a 55%,#050f07)}.th-c4{background:linear-gradient(170deg,#ffe07a,#8a3a10 60%,#140703)}
.th-c5{background:linear-gradient(165deg,#c98aff,#3a1a7a 60%,#0a0518)}.th-c6{background:linear-gradient(170deg,#ff8aa8,#7a1a3a 60%,#14050a)}
.th-g3{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,.9fr);gap:14px;align-items:start}
.th-g2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px;align-items:start}
.th-box{min-width:0}
.th-screenline{height:10px;border-radius:50%/100% 100% 0 0;background:linear-gradient(#e9e2d0,#8a7a5a);margin:0 30px 2px;box-shadow:0 0 18px rgba(255,233,176,.4)}
.th-seats{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;padding:10px;border-radius:12px;background:#0c0704;border:1px solid #2c1c08}
.th-seat{height:46px;border-radius:10px 10px 4px 4px;background:#2a1408;border-bottom:4px solid #4a2410;display:grid;place-items:center;position:relative}
.th-seat.th-empty{opacity:.45}
.th-sav{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;border:2px solid #0c0704;font:800 13px var(--f-body);color:#140a04}
.th-stag{position:absolute;top:-7px;right:-3px;font-size:13px}
.th-names{display:flex;gap:6px;flex-wrap:wrap;margin:0;font-size:12.5px}
.th-names span{padding:3px 9px;border-radius:999px;background:#1a1108;border:1px solid #3a2a10}
.th-q{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 9px;border-radius:10px;background:#1a1108;font-size:13.5px}
.th-q b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-q small{display:block;color:var(--dim);font-size:11.5px}
.th-q.now{border:1px solid #d9a441;background:#2a1c08}
.th-qa{display:flex;gap:6px;align-items:center}
.th-sub{font:800 10.5px var(--f-body);letter-spacing:.1em;text-transform:uppercase;color:var(--dim);margin-top:2px}
.th-vote{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:0 10px;border-radius:9px;border:1px solid #5a4214;background:#0f0905;color:var(--text);font:800 13px var(--f-body);cursor:pointer}
.th-vote.on{border-color:#6be0c9;color:#6be0c9;background:#0e2420}
.th-vote:disabled{opacity:.5}
.th-mini-b{min-height:36px;padding:0 9px;border-radius:9px;border:1px solid #3a2a10;background:#140d06;color:var(--text-2);font:700 12px var(--f-body);cursor:pointer}
.th-mini-b:hover{border-color:var(--orange);color:#fff}
.th-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.th-pager{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:var(--dim)}
.th-pager button{min-width:40px;height:34px;border-radius:9px;border:1px solid var(--line);background:#140d06;color:var(--text-2);cursor:pointer}
.th-pager button[disabled]{opacity:.4;cursor:default}
.th-tabs{display:flex;gap:4px}
.th-bop{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:8px;align-items:center;font-size:13.5px;padding:5px 8px;border-radius:8px}
.th-bop:nth-child(odd){background:#1a1108}
.th-bop b.n{font:400 20px var(--f-num);color:#fff}
.th-w{color:#fff}
.th-hist{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.th-hist small{display:block;color:var(--dim);font-size:11px;margin-top:3px;text-align:center}
.th-badges{display:flex;gap:8px;flex-wrap:wrap}
.th-badge{display:flex;align-items:center;gap:8px;padding:7px 11px;border-radius:12px;background:linear-gradient(180deg,#2a1c08,#1a1108);border:1px solid #6a4a14;font-size:12.5px;color:var(--text-2)}
.th-badge b{display:block;color:#ffd23f;font-size:13px}
.th-badge i{font-style:normal;font-size:22px}
.th-badge.lock{opacity:.5;border-style:dashed}
.th-pbadges{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 2px}
.th-pbadges .th-badge{padding:4px 9px}.th-pbadges .th-badge i{font-size:16px}
/* the screening: a slot the Theatre's frame sits on (ui/theatreframe.js) */
.th-watch{padding:8px 10px 0}
.th-slot{position:relative;min-height:560px;border-radius:14px;background:#0a0704}
.th-slot .th-wait{padding-top:120px}
.th-frame{position:absolute;z-index:45;background:#0a0704;overflow:hidden}
.th-frame[hidden]{display:none}
.th-ifr{display:block;width:100%;height:100%;border:0;background:#0a0704}
.th-frame.mini{border-radius:14px;position:fixed;right:20px;bottom:20px;width:384px;height:calc(216px + 42px);border:1px solid #5a3612;box-shadow:0 20px 50px rgba(0,0,0,.8);z-index:60;display:flex;flex-direction:column}
.th-frame.mini .th-ifr{height:216px;flex:none;order:0}
.th-frame.mini.pipped{display:none}
.th-mbar{order:1;display:flex;align-items:center;gap:6px;height:42px;padding:0 8px;background:#150d06;border-top:1px solid #3a220c;font-size:13px;color:var(--text)}
.th-mbar[hidden]{display:none}
.th-mt{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:700}
.th-mlive{width:8px;height:8px;border-radius:50%;background:#7a5a3a;flex:none}.th-mlive.on{background:#ff4d3a;box-shadow:0 0 6px #ff4d3a}
.th-mb{height:30px;min-width:34px;padding:0 9px;border-radius:8px;border:1px solid #5a3612;background:#1c1209;color:var(--text);font:700 12.5px var(--f-body);cursor:pointer;display:inline-grid;place-items:center}
.th-mb:hover{border-color:var(--orange)}
/* 🌙 lights down (while the movie plays on the watch page) */
.th-dim{position:fixed;inset:0;background:#000;opacity:0;pointer-events:none;transition:opacity .8s;z-index:44}
body.th-lightsdown .th-dim{opacity:.62}
/* the site's chat dock steps aside on the screening (Dan: the Theatre chat is the one) */
body.th-watching .chatfab,body.th-watching .chatdrawer{display:none !important}
body.th-watching .foot{margin-top:0}
/* "Now showing" strip: Home + Community only */
.th-stripwrap{padding-top:12px}
body:not([data-page="home"]):not([data-page="community"]) .th-stripwrap{display:none}
.th-strip{display:flex;align-items:center;gap:14px;padding:10px 14px;border-radius:14px;background:linear-gradient(90deg,#2a1206,#140a05);border:1px solid #8a5a14}
.th-strip.doors{background:linear-gradient(90deg,#14200f,#0c1209);border-color:#2f6a4f}
.th-stxt{min-width:0;flex:1;line-height:1.35}
.th-strip b{color:#fff}
.th-slbl{display:block;font:400 11px var(--f-pix);color:#ffd23f;letter-spacing:.14em;margin-bottom:3px}
.th-slbl.open{color:#6be0c9}
.th-sicon{font-size:28px;flex:none}
.th-live{display:inline-block;width:9px;height:9px;border-radius:50%;background:#ff4d3a;box-shadow:0 0 8px #ff4d3a;margin-right:6px;vertical-align:1px}
/* dialogs: suggest + TV code */
.th-dlg{width:min(760px,calc(100vw - 24px))}
.th-dlg .th-tvf{width:min(420px,100%);margin:0 auto}
.th-sgbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.th-sgbar input{flex:1 1 200px;height:42px;border-radius:10px;border:1px solid var(--line);background:#1c1209;color:var(--text);padding:0 12px;font:500 15px var(--f-body)}
.th-sgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;max-height:min(56vh,520px);overflow-y:auto;padding:2px}
.th-sgi{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}
.th-sgi b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-codein{font:400 34px var(--f-num) !important;letter-spacing:.3em;text-transform:uppercase;text-align:center;height:58px !important}
.th-small{margin:0;font-size:13.5px;color:var(--text-2);line-height:1.45}
.th-flash{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:80;background:#1e140a;border:1px solid #5a3612;border-radius:12px;padding:10px 16px;font-size:14px;box-shadow:0 10px 30px rgba(0,0,0,.6)}
/* Settings › Theatre */
.th-setgrid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;align-items:start}
.th-setcol{display:flex;flex-direction:column;gap:8px;min-width:0}
.th-sw2{flex-direction:column;align-items:stretch}
.th-opt{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 12px;border-radius:10px;background:#1a1108}
.th-opt b{display:block}
.th-opt small{display:block;color:var(--dim);font-size:12px}
.th-opt select{height:40px;max-width:220px;border-radius:9px;background:#0f0905;color:var(--text);border:1px solid #5a4214;padding:0 8px}
.th-opt input[type=range]{width:170px;accent-color:#ff8a2b}
.th-seg{display:inline-flex;border:1px solid #5a4214;border-radius:10px;overflow:hidden;flex-wrap:wrap}
.th-seg button{min-height:38px;padding:0 11px;border:0;background:#0f0905;color:var(--text-2);font:700 12.5px var(--f-body);cursor:pointer}
.th-seg button.on{background:#ff8a2b;color:#1a0d02}
.th-segs{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.th-optcol{grid-template-columns:minmax(0,1fr)}.th-optcol .th-segs{justify-content:flex-start}
.th-cols{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;max-width:260px}
.th-cols button{width:28px;height:28px;border-radius:50%;border:2px solid #0f0905;cursor:pointer;padding:0}
.th-cols button.on{outline:2px solid #fff;outline-offset:1px}
.th-any input{width:30px;height:28px;padding:0;border:0;background:none;cursor:pointer}
.th-prev{position:relative;height:120px;border-radius:12px;background:linear-gradient(160deg,#3a1d5a,#0a0518 70%);display:flex;align-items:flex-end;justify-content:center;padding-bottom:14px}
.th-prev.raise{padding-bottom:30px}
.th-prev span{color:#fff;font-size:18px;padding:2px 10px;border-radius:6px}
.th-prev.sz-s span{font-size:14px}.th-prev.sz-l span{font-size:22px}.th-prev.sz-xl span{font-size:27px}
.th-prev.bg-box span{background:rgba(0,0,0,.75)}
.th-prev.bg-shadow span{text-shadow:0 0 4px #000,0 2px 3px #000,0 0 8px #000}
.th-prev.yellow span{color:#ffe25a}
/* phones and narrow windows */
@media (max-width:1100px){.th-g3{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.th-g3 > :first-child{grid-column:1/-1}.th-hist{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:860px){.th-marq{grid-template-columns:110px minmax(0,1fr)}.th-marq .th-acts{grid-column:1/-1}.th-post.th-pbig,.th-grumpimg{width:110px;height:165px}.th-grumpimg{height:110px}.th-g2,.th-setgrid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){
  .th-g3{grid-template-columns:minmax(0,1fr)}
  .th-marq{grid-template-columns:84px minmax(0,1fr);padding:16px;gap:14px}.th-post.th-pbig,.th-grumpimg{width:84px;height:126px}.th-grumpimg{height:84px}.th-grumpimg img{width:70px;height:70px}
  .th-marq h2{font-size:20px}.th-acts{min-width:0}
  .th-seats{grid-template-columns:repeat(6,minmax(0,1fr))}
  .th-host{padding:10px 12px}.th-hacts{margin-left:0}
  .th-strip{flex-wrap:wrap}.th-strip .gb-btn{margin-left:auto}
  .th-frame.mini{right:8px;bottom:8px;width:min(320px,calc(100vw - 16px));height:calc(180px + 42px)}.th-frame.mini .th-ifr{height:180px}
  .th-watch{padding:4px 0 0}
  .th-opt{grid-template-columns:minmax(0,1fr)}.th-cols,.th-segs{justify-content:flex-start}
}
