.gtr-live-dialog { width: min(960px, calc(100% - 24px), 160vh); padding: 0; border: 0; background: #071b2b; }
.gtr-live-dialog::backdrop { background: #000b; }
.gtr-live-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.gtr-live-frame > iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.gtr-live-frame > iframe.connecting { opacity: 0; }
.gtr-live-fallback:not([hidden]) { position: absolute; inset: 0; display: grid; align-content: safe center; justify-items: center; gap: 8px; padding: 12px 28px; overflow: auto; color: #f5f7ff; text-align: center; }
.gtr-live-fallback[data-syncing]:not([hidden]) { inset: auto 0 0; padding-block: 4px; background: #071b2be8; }
.gtr-live-fallback [data-broadcast-balls] { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; }
.gtr-live-ball { display: grid; place-items: center; min-width: 1.75em; aspect-ratio: 1; border: 1px solid #7697ad; border-radius: 50%; font-weight: 700; }
.gtr-live-close { position: absolute; z-index: 2; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; min-width: 24px; height: 24px; min-height: 24px; margin: 0; padding: 0; border: 0 !important; border-radius: 0; color: #fff !important; background: transparent !important; box-shadow: none !important; text-shadow: 0 1px 4px #000; font: 32px/1 system-ui, sans-serif; cursor: pointer; appearance: none; }
.gtr-live-close:hover, .gtr-live-close:active { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.gtr-live-dialog.gtr-live-phone { position: fixed; inset: 0; width: 100vw; width: 100dvw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; overflow: hidden; }
.gtr-live-phone .gtr-live-window { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 100%; height: 100%; background: #071b2b; }
.gtr-live-phone .gtr-live-frame { width: min(100vw, 177.77778vh); width: min(100dvw, 177.77778dvh); }
@media (orientation: portrait) {
  .gtr-live-phone .gtr-live-frame { width: min(100vh, 177.77778vw); width: min(100dvh, 177.77778dvw); transform: rotate(90deg); }
}

button[data-magazine-live] {
  display:inline-grid; justify-items:center; align-content:center; gap:.15em; padding:0; border:0;
  color:inherit; background:none; font:inherit; line-height:1.1; cursor:pointer;
}
button[data-magazine-live]:disabled { cursor:default; }
button[data-magazine-live]:disabled::after { content:"开奖时开放"; font-size:.78em; font-weight:400; }
.gtr-live-dialog[data-magazine-live] .gtr-live-close { width:44px; height:44px; inset:2px 2px auto auto; }
