/* 嵌入式直播播放器：铺满 iframe/web-view 的可用视口，视频等比显示，控件由 SDK 提供。 */
:root { color-scheme: dark; font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: #fff; background: #000; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #000; }
#player-host { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #000; }
.player-mount { width: 100%; height: 100%; }
#player-host video { object-fit: contain; }
/* 状态提示位于左下方控制栏上方，避开浏览器顶部提示和中央播放按钮。 */
#status-panel { position: fixed; z-index: 100; bottom: calc(64px + env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); width: fit-content; max-width: 560px; margin: 0; padding: 10px 14px; border-radius: 8px; background: rgb(20 24 30 / 80%); text-align: left; pointer-events: none; overflow-wrap: anywhere; }
/* 实际协议属于 SDK 控制栏，在刷新按钮右侧显示，随控件自动隐藏。 */
.xgplayer .live-protocol { display: inline-flex; align-items: center; height: 100%; margin-left: 12px; color: #fff; font: 600 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; white-space: nowrap; pointer-events: none; user-select: none; }
[hidden] { display: none !important; }
#status[data-state="error"] { color: #ffbbbb; }
#retry { margin-top: 10px; padding: 8px 16px; border: 1px solid #89909c; border-radius: 6px; background: #303641; color: #fff; font: inherit; cursor: pointer; pointer-events: auto; }
#retry:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
noscript { position: fixed; inset: 0; display: grid; place-items: center; }
