/* WTJ V244: portal ao vivo mobile — placar com fallback, sem letras de PNG quebrado. */
html body #bocha-broadcast-score-overlay[hidden],
html body #bocha-score-fallback[hidden],
html body #wtj-sponsor-fallback[hidden]{display:none!important}
html body .bocha-broadcast-canvas #bocha-broadcast-score-overlay{font-size:0;color:transparent}
html body .bocha-video-dialog.bocha-replay-visible #bocha-score-fallback,
html body .bocha-video-dialog.bocha-replay-visible #wtj-sponsor-fallback{display:none!important}
/* Placar secundário HTML: aparece somente se o servidor não entregar a arte PNG. */
.wtj-score-fallback{position:absolute;left:50%;top:2.2%;transform:translateX(-50%);z-index:9;max-width:75%;width:max-content;min-width:48%;color:white;text-align:center;text-shadow:0 2px 5px #000b;font:750 clamp(8px,1.3vw,18px)/1.1 system-ui;pointer-events:none}
.wtj-score-fb-header{display:inline-block;max-width:98%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f7d17c;background:#102843eb;border:1px solid #c1a15d70;border-radius:10px 10px 0 0;font-size:.8em;padding:.5em 1.2em}
.wtj-score-fb-row{min-height:3.2em;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:1em;padding:.65em .8em;border-radius:12px;background:#081930f2;border:1px solid #e5c88082;box-shadow:0 4px 20px #0009}
.wtj-fb-team{display:flex;align-items:center;gap:.55em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wtj-fb-right{justify-content:flex-end}
.wtj-fb-team img{width:2.4em;height:2.4em;object-fit:contain;flex:0 0 auto}
.wtj-score-fb-numbers{color:#f5d179;font-size:2.3em;font-weight:950;white-space:nowrap}.wtj-score-fb-numbers i{font-size:.5em;color:#fff;font-style:normal;padding:0 .22em}
.wtj-fb-players{padding:.35em .8em;border-radius:0 0 8px 8px;background:#091b36d9;color:#cce4ff;font-size:.86em}
.wtj-sponsor-fallback{position:absolute;right:3%;bottom:3%;z-index:9;max-width:26%;min-width:14%;display:flex;flex-direction:column;align-items:center;gap:.2em;background:#061326de;border:1px solid #d2b67d9e;border-radius:11px;padding:.5em .7em;color:#f6f9ff;font:800 clamp(8px,1.1vw,14px)/1.15 system-ui;text-align:center;pointer-events:none;box-shadow:0 4px 18px #0008}
.wtj-sponsor-fallback img{width:100%;max-height:3.5em;object-fit:contain;background:#fff;padding:.25em;border-radius:6px}
.wtj-sponsor-fallback small{font-size:.7em;color:#dfc281}
.wtj-sponsor-fallback strong{font-size:1em;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Fundo ocupa a tela toda; vídeo e placar continuam no mesmo quadro 16:9. */
html body #bocha-broadcast-video-stage{background:radial-gradient(ellipse at center,#203759 0%,#0d1b33 52%,#030c1b 100%)!important}
html body #bocha-broadcast-canvas{box-shadow:0 8px 30px #0008}
html body dialog#bocha-live-dialog.wtj-landscape-rotated #bocha-broadcast-video-stage{position:absolute!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;width:100dvh!important;height:100vw!important;max-width:none!important;max-height:none!important;transform:translate(-50%,-50%) rotate(90deg)!important;transform-origin:center center!important}
html body dialog#bocha-live-dialog.wtj-landscape-rotated .bocha-video-title{display:none!important}
html body dialog#bocha-live-dialog.wtj-landscape-rotated #bocha-broadcast-canvas{max-height:100%!important;max-width:100%!important}
@media(orientation:portrait) and (max-width:820px){
 html body dialog#bocha-live-dialog[open]:not(.wtj-immersive):not(:fullscreen){max-height:calc(100dvh - 16px)!important;height:auto!important;min-height:0!important;top:50%!important;transform:translateY(-50%)!important}
 html body dialog#bocha-live-dialog[open]:not(.wtj-immersive):not(:fullscreen) .bocha-broadcast-video-stage{position:relative!important;inset:auto!important;height:auto!important;aspect-ratio:16/9!important;flex:none!important}
 .wtj-score-fallback{font-size:clamp(7px,1.65vw,13px)!important}
 .wtj-sponsor-fallback{font-size:clamp(7px,1.4vw,11px)!important}
}
@media(orientation:landscape) and (max-height:600px){
 html body dialog#bocha-live-dialog.wtj-immersive .bocha-broadcast-canvas,
 html body #bocha-broadcast-video-stage:fullscreen .bocha-broadcast-canvas{max-height:100%!important}
 .wtj-score-fallback{font-size:clamp(9px,2vh,16px)}
 .wtj-sponsor-fallback{font-size:clamp(8px,1.6vh,14px)}
}
