/* C1/S23: the AI declaration is a persistent, visible part of the live-room shell.
   This stylesheet is loaded after the room-polish compatibility layers so the trust copy
   cannot be moved off-screen by a legacy visual-only rule. */
html body.watch .watch #stage-wrap > .ai-disclosure-group {
  display: block !important;
  position: absolute !important;
  z-index: 63 !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  overflow: visible !important;
  color: rgba(255, 255, 255, .86) !important;
  pointer-events: auto !important;
}

html body.watch .watch #stage-wrap > .ai-disclosure-group > summary {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  gap: 4px;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(12, 8, 20, .52);
  color: inherit;
  font-size: 11px;
  line-height: 1.2;
  writing-mode: horizontal-tb !important;
}

html body.watch .watch #stage-wrap > .ai-disclosure-group > summary .ai-mark {
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  overflow: visible !important;
  clip: auto !important;
  opacity: 1 !important;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  pointer-events: auto;
}

html body.watch .watch #stage-wrap > .ai-disclosure-group > summary::before {
  content: none !important;
}

html body.watch .watch #stage-wrap > .ai-disclosure-group > #ai-disclosure {
  display: flex !important;
  position: absolute !important;
  top: 34px;
  left: 0;
  right: auto;
  width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(8, 7, 11, .88);
  color: rgba(255, 255, 255, .94);
  font-size: 11px;
  line-height: 1.35;
}

html body.watch .watch #stage-wrap > .ai-disclosure-group > #ai-disclosure button {
  flex: none;
  min-width: 44px;
  min-height: 44px;
}

html body.watch .watch #stage-wrap > .top .ai-tag {
  display: inline-flex !important;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 999px;
  background: rgba(12, 8, 20, .44);
  color: rgba(255, 255, 255, .9);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 1 !important;
}

/* The desktop room polish hid the old host link because its name was duplicated in
   a separate card. C1's AI-host label belongs to that link, so keep the complete
   host row in the stage and let the row size itself around the portrait/name/tag. */
@media (min-width: 900px) {
  html body.watch .watch #stage-wrap > .top > #host-link {
    display: inline-flex !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: min(48%, 360px) !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  html body.watch .watch #stage-wrap > .top > #host-link .host-name {
    display: inline-block !important;
    min-width: 0;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 900px) {
  html body.watch .watch #stage-wrap > .ai-disclosure-group {
    top: 78px !important;
    right: 14px !important;
    left: auto !important;
  }
  html body.watch .watch #stage-wrap > .ai-disclosure-group > #ai-disclosure {
    left: auto;
    right: 0;
  }
}

@media (max-width: 899px) {
  html body.watch .watch #stage-wrap > .ai-disclosure-group {
    top: calc(var(--room-header-h, 0px) + 60px) !important;
    right: 12px !important;
    left: 12px !important;
  }
  html body.watch .watch #stage-wrap > .ai-disclosure-group > summary {
    min-height: 28px;
    font-size: 10px;
  }
  html body.watch .watch #stage-wrap > .top .ai-tag {
    min-height: 20px;
    padding-inline: 5px;
    font-size: 10px;
  }
}
