body.yg-showme-open { overflow: hidden; }

.yg-showme {
  position: fixed;
  inset: 0;
  z-index: 2147483002;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.yg-showme[hidden] { display: none !important; }

.yg-showme-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
}

.yg-showme-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 44px 0 0;
  box-sizing: border-box;
}

.yg-showme-close {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 40px;
  height: 40px;
  border: 1px solid #444;
  border-radius: 50%;
  background: #111;
  color: #ffe566;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.yg-showme-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 64px;
  border: 1px solid #444;
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.92);
  color: #ffe566;
  font-size: 32px;
  cursor: pointer;
}

.yg-showme-prev { left: 8px; }
.yg-showme-next { right: 8px; }

.yg-showme-layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: #0a0a0a;
}

.yg-showme-stage {
  min-height: 50vh;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.yg-showme-image,
.yg-showme-video {
  width: 100%;
  max-width: 100vw;
  max-height: 85vh;
  object-fit: contain;
  background: #000;
}

.yg-showme-side {
  width: 100%;
  background: #141414;
  border-top: 1px solid #333;
}

.yg-showme-tweet { padding: 16px 20px; border-bottom: 1px solid #2a2a2a; }
.yg-showme-handle { margin: 0 0 4px; color: #ffe566; font: 600 14px/1.3 system-ui, sans-serif; }
.yg-showme-date { margin: 0 0 8px; color: #888; font: 12px/1.3 system-ui, sans-serif; }
.yg-showme-tweet-text {
  color: #eee;
  font: 16px/1.55 Georgia, serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.yg-showme-comments { padding: 14px 20px 20px; }
.yg-showme-comments-title { margin: 0 0 6px; color: #ffe566; font: 700 15px Georgia, serif; }
.yg-showme-guest-note { margin: 0 0 10px; color: #999; font: 12px/1.4 system-ui, sans-serif; }
.yg-showme-comments-list { max-height: 240px; overflow-y: auto; }
.yg-showme-comments-empty { color: #888; font: 13px system-ui, sans-serif; }
.yg-showme-comment { margin: 0 0 12px; }
.yg-showme-comment-meta { margin: 0 0 4px; color: #bbb; font: 12px system-ui, sans-serif; }
.yg-showme-comment-body { margin: 0; color: #eee; font: 14px/1.45 Georgia, serif; white-space: pre-wrap; }
.yg-showme-comment-form { display: grid; gap: 6px; margin-top: 12px; }
.yg-showme-comment-label { color: #aaa; font: 12px system-ui, sans-serif; }
.yg-showme-comment-form input,
.yg-showme-comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #111;
  color: #eee;
  font: 14px/1.4 system-ui, sans-serif;
}
.yg-showme-comment-submit {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #417586;
  color: #fff;
  font: 700 13px system-ui, sans-serif;
  cursor: pointer;
}

.yg-showme-counter {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  margin: 0;
  color: #ccc;
  font: 13px system-ui, sans-serif;
  background: rgba(0,0,0,.55);
  padding: 4px 10px;
  border-radius: 999px;
}

.yg-open-count {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 4;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.72);
  color: #ffe566;
  border: 1px solid rgba(255, 229, 102, 0.45);
  border-radius: 999px;
  padding: 3px 8px;
  font: 600 12px/1.2 system-ui, Helvetica, sans-serif;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 1px #000;
}

.yg-disaster-thumb { position: relative; }
.yg-disaster-thumb .yg-open-count { left: 8px; bottom: 8px; }

@media (max-width: 640px) {
  .yg-open-count { font-size: 11px; padding: 2px 7px; }
}
