/* KAJE V52: full-screen viewer, program/space/gallery media, table reservation */
.xv{position:fixed;inset:0;z-index:99999;background:#000;display:flex;flex-direction:column;direction:rtl;color:#fff;font-family:inherit}
.xv *{box-sizing:border-box}
.xv-top{display:flex;align-items:center;gap:10px;padding:10px 14px;background:linear-gradient(#000c,#0000);position:absolute;top:0;left:0;right:0;z-index:3}
.xv-title{font-weight:800;font-size:18px;flex:1;text-shadow:0 1px 4px #000}
.xv-btn{border:0;border-radius:999px;background:#fff2;color:#fff;font-size:20px;min-width:44px;height:44px;padding:0 14px;cursor:pointer;backdrop-filter:blur(6px)}
.xv-btn.gold{background:#c99b44;color:#1d1912;font-weight:800;font-size:16px}
.xv-stage{flex:1;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y}
.xv-stage img,.xv-stage video{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;background:#000}
.xv-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3}
.xv-prev{left:10px}.xv-next{right:10px}
.xv-bottom{position:absolute;bottom:0;left:0;right:0;padding:12px 14px 16px;background:linear-gradient(#0000,#000d);z-index:3;display:flex;flex-direction:column;gap:8px}
.xv-desc{font-size:15px;line-height:1.8;max-height:22vh;overflow:auto}
.xv-dots{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.xv-dot{width:9px;height:9px;border-radius:50%;background:#fff5;border:0;padding:0}
.xv-dot.on{background:#c99b44}
.xv-bar{position:absolute;top:0;left:0;height:3px;background:#c99b44;z-index:4;width:0}
.xm{position:fixed;inset:0;z-index:99998;background:#000b;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:16px;direction:rtl}
.xm-box{background:#fffaf1;color:#2b211d;border-radius:18px;max-width:980px;width:100%;padding:16px 16px 22px;margin:auto}
.xm-top{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.xm-top h3{margin:0;flex:1;font-size:22px}
.xm-x{border:0;background:#2b211d14;border-radius:50%;width:40px;height:40px;font-size:22px;cursor:pointer}
.xm-tabs{display:flex;gap:8px;margin:8px 0 14px}
.xm-tab{border:1px solid #c99b44;background:transparent;border-radius:999px;padding:8px 18px;font-weight:700;cursor:pointer;color:#2b211d}
.xm-tab.on{background:#c99b44;color:#1d1912}
.xm-album{margin:0 0 20px}.xm-album h4{margin:0 0 8px;font-size:18px}
.xm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.xm-th{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:#222;cursor:pointer;border:0;padding:0}
.xm-th img,.xm-th video{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}
.xm-th:hover img,.xm-th:hover video{transform:scale(1.08)}
.xm-th .pl{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:34px;color:#fff;text-shadow:0 2px 8px #000}
.xm-empty{padding:20px;text-align:center;color:#7a6a58}
.xs{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#111;margin-bottom:10px;cursor:zoom-in}
.xs img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .7s,transform .5s}
.xs img.on{opacity:1}.xs:hover img.on{transform:scale(1.04)}
/* reservation */
.xr-wrap{display:grid;grid-template-columns:1fr;gap:14px}
.xr-hall{margin-bottom:16px}
.xr-hallhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.xr-bar{text-align:center;font-size:12px;letter-spacing:3px;background:#2b211d;color:#fff;border-radius:8px;padding:4px;margin-bottom:8px}
.xr-tables{display:grid;grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:8px}
.xr-t{position:relative;height:46px;border-radius:12px;border:2px solid #2e9e5b;background:#dff6e8;color:#14532d;font-weight:800;font-size:16px;cursor:pointer}
.xr-t.vip{grid-column:span 2}
.xr-t.taken{background:#f8d4d4;border-color:#d33;color:#7f1d1d;cursor:not-allowed}
.xr-t.held{background:#fde9c7;border-color:#e08a00;color:#7a4a00;cursor:not-allowed}
.xr-t.small{background:#e6e6e6;border-color:#999;color:#666}
.xr-t.sel{background:#2f6fe0;border-color:#1c4fb3;color:#fff}
.xr-t::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;background:#1d1912;color:#fff;font-size:12px;font-weight:600;padding:5px 9px;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .12s;z-index:5}
.xr-t:hover::after{opacity:1}
.xr-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;margin-top:6px}
.xr-legend i{display:inline-block;width:14px;height:14px;border-radius:4px;vertical-align:-2px;margin-left:5px;border:2px solid}
.xr-note{min-height:22px;font-size:14px;font-weight:700;margin:6px 0}
.xr-card .field{margin-bottom:10px}
.xr-card input,.xr-card select{width:100%;padding:10px;border-radius:10px;border:1px solid #cdbb9a;font:inherit;background:#fff}
.xr-btn{display:block;width:100%;border:0;border-radius:12px;padding:14px;background:#c99b44;color:#1d1912;font-weight:800;font-size:17px;cursor:pointer}
.xr-btn[disabled]{opacity:.5;cursor:not-allowed}
.xr-btn.sec{background:#fff;border:1px solid #c99b44;margin-top:8px}
.xr-err{color:#b3261e;font-weight:700;min-height:20px;margin:6px 0}
.xr-pay{text-align:center}
.xr-pay h3{margin:0 0 8px}.xr-code{font-size:38px;font-weight:900;letter-spacing:6px;direction:ltr;background:#fff;border:2px dashed #c99b44;border-radius:14px;padding:10px;margin:12px 0}
.xr-test{background:#fff4d6;border:1px solid #e3b341;border-radius:10px;padding:8px;font-size:13px;margin-bottom:10px}
@media(max-width:700px){.xv-title{font-size:15px}.xr-tables{grid-template-columns:repeat(auto-fill,minmax(48px,1fr))}}
.eventTag{display:none!important}
.xr-t.off{background:#f4f4f4;border:2px dashed #ccc;color:#aaa;cursor:not-allowed}.xr-hall.off{opacity:.65}.xr-off{background:#e0e0e0;color:#555;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700}
/* V52: the opening video fills the whole first screen (screen height minus the top bar) */
.hero{min-height:calc(100vh - 125px)!important;min-height:calc(100dvh - 125px)!important}
@media(max-width:700px){.hero{min-height:calc(100vh - 104px)!important;min-height:calc(100dvh - 104px)!important}}
@media(max-height:520px){.hero{min-height:520px!important}}
.heroMedia video,.heroMedia img{object-fit:cover!important;width:100%!important;height:100%!important}

/* V53 */
.xvbox{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#000;border-radius:14px;overflow:hidden}
.xvbox video{width:100%;height:100%;max-height:70vh;object-fit:contain;background:#000;display:block}
.xv-stage .xvbox video{max-height:100%}
.xv-big{position:absolute;inset:0;margin:auto;width:84px;height:84px;border-radius:50%;border:0;background:#c99b44;color:#1d1912;font-size:38px;cursor:pointer;box-shadow:0 6px 24px #0008}
.xv-msg{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;text-align:center;padding:16px;background:#111}
.xv-msg a{color:#ffdda2}
.xm-box .xvbox{height:auto;aspect-ratio:16/9;margin-bottom:10px}
.eventVid{position:absolute;top:11px;left:11px;background:#c99b44;color:#1d1912;border-radius:999px;padding:5px 10px;font-size:10px;font-weight:700;z-index:1}

/* V54: portrait video version (phones) */
.xm-box .xvbox.xv-vert{aspect-ratio:9/16;max-height:72vh;width:auto;max-width:100%;margin-inline:auto}
.xm-box .xvbox.xv-vert video{max-height:72vh}
