html.broadcast-popup-open {
  overflow: hidden;
}

dialog.broadcast-popup {
  --broadcast-popup-ready: 1;
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  margin: auto;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 16px;
  background: #08080a;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: inherit;
}

dialog.broadcast-popup[open] {
  display: flex;
  flex-direction: column;
}

dialog.broadcast-popup::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.broadcast-popup__toolbar {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 52px;
  padding: 4px 6px;
}

.broadcast-popup__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.broadcast-popup__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.broadcast-popup__close:focus-visible,
.broadcast-popup__media:focus-visible,
.broadcast-popup__video:focus-visible {
  outline: 2px solid #e4ca80;
  outline-offset: -3px;
}

.broadcast-popup__media {
  display: block;
  min-height: 0;
  overflow: hidden;
}

.broadcast-popup__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 148px);
  max-height: calc(100dvh - 148px);
  object-fit: contain;
}

.broadcast-popup__actions {
  flex: 0 0 auto;
  padding: 12px;
}

.broadcast-popup__video {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  background: #c9a227;
  color: #08080a;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
}

.broadcast-popup__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.broadcast-popup.broadcast-popup--video { width:min(680px,calc(100vw - 32px)); }
.broadcast-popup__title { margin:0; padding:0 22px 18px; color:#f6eed8; font-size:clamp(18px,3.6vw,24px); font-weight:800; line-height:1.45; word-break:keep-all; white-space:pre-line; }
.broadcast-popup--video .broadcast-popup__image { aspect-ratio:16/9; object-fit:cover; }
.broadcast-popup--video .broadcast-popup__actions { padding:18px 22px 22px; }
.broadcast-popup--video { overflow-y:auto; }
.broadcast-popup--video .broadcast-popup__actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.broadcast-popup--video .broadcast-popup__actions a { color:#f6eed8; background:transparent; border:1px solid #8a762f; }
.broadcast-popup--video button.broadcast-popup__video { border:0; font-family:inherit; cursor:pointer; }
.broadcast-popup--video .broadcast-popup__media { position:relative; width:100%; padding:0; border:0; background:transparent; cursor:pointer; }
.broadcast-popup__play-mark { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:68px; height:68px; padding-left:4px; border-radius:50%; color:#08080a; background:#e4bd37; box-shadow:0 4px 28px #0008; font-size:28px; }
.broadcast-popup__player { width:100%; aspect-ratio:16/9; min-height:180px; flex-shrink:0; border:0; }
.broadcast-popup--video .broadcast-popup__actions.is-playing { grid-template-columns:1fr; }
@media(max-width:420px) { .broadcast-popup--video .broadcast-popup__actions { grid-template-columns:1fr; padding:14px; } }
