/* JCG 1.7 player-only styles: fullscreen state and iframe geometry remain owned by plugin. */
:root{--jcg-primary:#00b956;--jcg-ink:#10203b}
[hidden]{display:none!important}
.jcg-player-shell{position:relative;isolation:isolate;overflow:hidden;border:1px solid #22324a;border-radius:18px;background:#090f1c;box-shadow:0 12px 30px #091a3230;color:white}.jcg-player-stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:var(--jcg-stage-aspect,1.7777778);max-height:none;overflow:hidden;background:#081b22}.jcg-player{position:relative;flex:none;width:min(100%,calc(100% * var(--jcg-player-ratio,1.333333) / var(--jcg-stage-aspect,1.7777778)));height:auto;max-height:100%;aspect-ratio:var(--jcg-player-ratio,1.333333);background:#101b2d;overflow:hidden}.jcg-player>iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#0d1724}.jcg-player-cover{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(130deg,#1e334c,#0a1425)}.jcg-player-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.42;filter:blur(2px);transform:scale(1.025)}.jcg-player-cover__overlay{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:15px;padding:22px;text-align:center}.jcg-player-cover__overlay strong{font-size:clamp(1.35rem,3.5vw,2.2rem);color:#fff;text-shadow:0 3px 12px #0008}.jcg-player-icon{display:grid;place-items:center;width:76px;height:76px;border:3px solid white;border-radius:50%;background:var(--jcg-primary);box-shadow:0 9px 25px #0006;font-size:2rem;padding-left:4px}.jcg-player-loading,.jcg-player-error{position:absolute;inset:0;z-index:3;display:grid;place-items:center;text-align:center;background:#101b2dda;color:white;font-weight:750;padding:24px}.jcg-player-loading[hidden],.jcg-player-error[hidden],.jcg-player-cover[hidden],.jcg-player-rotate[hidden],.jcg-player-status[hidden]{display:none!important}.jcg-player-error button{border:0;border-radius:9px;margin-left:10px;padding:8px 12px;color:#fff;background:var(--jcg-primary);cursor:pointer}.jcg-player-toolbar{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:59px;padding:10px 16px;background:#101b30;border-top:1px solid #35435c}.jcg-player-toolbar__title{font-weight:780;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.jcg-player-toolbar__buttons{display:flex;gap:8px;flex-shrink:0}.jcg-player-toolbar button{display:inline-flex;align-items:center;gap:6px;cursor:pointer;border:1px solid #485b75;border-radius:9px;color:white;background:#1e314b;padding:8px 13px;font-size:.9rem}.jcg-player-toolbar button:hover{background:#2f496a}.jcg-player-rotate{position:absolute;z-index:12;top:20px;left:50%;transform:translateX(-50%);max-width:90%;border:1px solid #ffcc87;border-radius:10px;background:#0b1629ed;padding:12px 18px;text-align:center;font-weight:800}.jcg-player-status{position:absolute;z-index:12;left:12px;bottom:75px;background:#0c182cd9;border-radius:10px;padding:9px 16px;font-size:.85rem}.jcg-player-unavailable{padding:80px 20px;text-align:center;font-size:1.1rem}
/* Fullscreen implementation retains browser-native mode and a scroll-restoring iOS immersive fallback. */
html.jcg-immersive-open{overflow:hidden!important;overscroll-behavior:none}body.jcg-immersive-open{position:fixed!important;top:var(--jcg-scroll-offset,0)!important;left:0!important;width:100%!important;height:100%!important;overflow:hidden!important;overscroll-behavior:none!important}
body.jcg-immersive-open #page,body.jcg-immersive-open .site,body.jcg-immersive-open .site-content,body.jcg-immersive-open .content-area,body.jcg-immersive-open .site-main,body.jcg-immersive-open .inside-article{transform:none!important;filter:none!important;perspective:none!important;contain:unset!important}
.jcg-player-shell.is-jcg-immersive,.jcg-player-shell:fullscreen,.jcg-player-shell:-webkit-full-screen{position:fixed!important;z-index:2147483000!important;top:var(--jcg-vy,0)!important;left:var(--jcg-vx,0)!important;width:var(--jcg-vw,100vw)!important;height:var(--jcg-vh,100dvh)!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:#060d19!important;box-shadow:none!important}
.jcg-player-shell:fullscreen,.jcg-player-shell:-webkit-full-screen{top:0!important;left:0!important;width:100%!important;height:100%!important}
.jcg-player-shell.is-jcg-immersive .jcg-player-stage,.jcg-player-shell:fullscreen .jcg-player-stage,.jcg-player-shell:-webkit-full-screen .jcg-player-stage{flex:1!important;min-height:0!important;width:100%!important;max-height:none!important;aspect-ratio:auto!important;overflow:hidden}
.jcg-player-shell.is-jcg-immersive .jcg-player,.jcg-player-shell:fullscreen .jcg-player,.jcg-player-shell:-webkit-full-screen .jcg-player{width:100%;height:100%;max-width:100%;max-height:100%;flex:none}
.jcg-player-shell[data-fullscreen-fit="contain"].is-jcg-immersive .jcg-player,.jcg-player-shell[data-fullscreen-fit="contain"]:fullscreen .jcg-player,.jcg-player-shell[data-fullscreen-fit="contain"]:-webkit-full-screen .jcg-player{width:min(100%,calc((var(--jcg-vh,100dvh) - 60px) * var(--jcg-game-aspect,1.777)))!important;height:min(100%,calc(var(--jcg-vw,100vw) / var(--jcg-game-aspect,1.777)))!important;aspect-ratio:var(--jcg-game-aspect,1.777)!important}
.jcg-player-shell.is-jcg-immersive .jcg-player-toolbar,.jcg-player-shell:fullscreen .jcg-player-toolbar{flex-shrink:0;min-height:60px}.jcg-player-shell.is-jcg-immersive .jcg-player-toolbar button[data-jcg-fullscreen],.jcg-player-shell:fullscreen .jcg-player-toolbar button[data-jcg-fullscreen]{background:var(--jcg-primary);border-color:var(--jcg-primary)}

/* Mobile inline player: match the game aspect ratio instead of forcing a small 16:9 letterbox. Fullscreen selectors above remain unchanged. */
@media(max-width:650px){
 .jcg-player-shell:not(.is-jcg-immersive):not(:fullscreen):not(:-webkit-full-screen) .jcg-player-stage{--jcg-stage-aspect:var(--jcg-player-ratio,1.333333);max-width:100%;}
 .jcg-player-shell:not(.is-jcg-immersive):not(:fullscreen):not(:-webkit-full-screen) .jcg-player{width:100%;max-width:100%;}
}

/* Fullscreen exit affordance: no mini-toolbar while playing expanded. */
.jcg-player-exit{display:none;position:absolute;z-index:60;top:calc(8px + env(safe-area-inset-top,0px));right:calc(8px + env(safe-area-inset-right,0px));width:34px;height:34px;min-width:34px;min-height:34px;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.55);border-radius:8px;background:rgba(8,29,43,.68);color:#fff;cursor:pointer;padding:6px;box-shadow:0 2px 10px #0005}
.jcg-player-exit svg{width:18px;height:18px;fill:none;stroke:currentColor}
.jcg-player-exit:hover,.jcg-player-exit:focus-visible{background:#006d45;border-color:#fff;color:#fff;outline-offset:2px}
.jcg-player-shell:is(.is-jcg-immersive,:fullscreen,:-webkit-full-screen) .jcg-player-toolbar{display:none!important}
.jcg-player-shell:is(.is-jcg-immersive,:fullscreen,:-webkit-full-screen)>.jcg-player-exit{display:flex!important}
.jcg-player-shell[data-fullscreen-fit="contain"]:is(.is-jcg-immersive,:fullscreen,:-webkit-full-screen) .jcg-player{width:min(100%,var(--jcg-vh,100dvh) * var(--jcg-game-aspect,1.777))!important;height:min(100%,var(--jcg-vw,100vw) / var(--jcg-game-aspect,1.777))!important}
