.pman-live-stream-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.pman-live-stream-panel {
  width: min(330px, calc(100vw - 20px));
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  position: relative;
}

.pman-live-stream-panel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.pman-live-stream-close {
  position: absolute;
  top: 4px;
  right: 8px;
  border: none;
  width: 22px;
  height: 22px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pman-live-stream-close:hover {
  color: #fff;
}

.pman-live-stream-badge {
  position: absolute;
  left: 10px;
  bottom: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.45);
  z-index: 12;
  transition: opacity 0.2s ease;
}

.pman-live-stream-unmute {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  z-index: 25;
}

.pman-live-stream-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff0033;
}

.pman-live-stream-modal .plyr {
  --plyr-color-main: #ffffff;
  --plyr-video-control-color: #fff;
  --plyr-control-radius: 8px;
}

.pman-live-stream-modal .plyr__controls {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.42));
  padding-top: 26px;
}

.pman-live-stream-modal.pman-ui-hidden .pman-live-stream-badge,
.pman-live-stream-modal.pman-ui-hidden .pman-live-stream-close,
.pman-live-stream-modal.pman-ui-hidden .plyr__controls {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .pman-live-stream-modal {
    right: 10px;
    bottom: 10px;
  }

  .pman-live-stream-panel {
    width: min(290px, calc(100vw - 20px));
  }
}
