.stig-card {
  position: relative;
  isolation: isolate;
  background: #020603;
  border: 1px solid #303030;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  cursor: pointer;
}

.stig-card:hover {
  background: #071009;
}

.stig-card:has(.stig-more[open]) {
  z-index: 1;
}

.stig-card-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.stig-card-open:focus-visible {
  outline: 2px solid #45dd92;
  outline-offset: 2px;
}

.stig-card :is(a:not(.stig-card-open), button, input, textarea, select, video, audio, summary, .stig-more) {
  position: relative;
  z-index: 2;
}

.stig-card--reply {
  border-left: 3px solid #45dd92;
}

.restig-label {
  font-size: 11px;
  color: #a3a3a3;
}

.stig-content {
  flex: 1;
  min-width: 0;
}

.stig-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.stig-pinned-label,
.stig-pinned-time {
  color: #45dd92;
  font-size: 12px;
}

.stig-pinned-label {
  margin-bottom: 3px;
}

.username {
  font-weight: bold;
  color: #f1f1f1;
}

.stig-meta .handle {
  color: #8a8a8a;
  font-size: 12px;
}

.timestamp {
  color: #8a8a8a;
  font-size: 12px;
}

.stig-location-meta {
  color: #8a8a8a;
  font-size: 12px;
}

.stig-location-meta a {
  color: inherit;
}

.stig-location-meta a:hover {
  color: #45dd92;
}

.reply-context {
  margin: 3px 0 5px;
  color: #a3a3a3;
  font-size: 12px;
  line-height: 1.35;
}

.reply-context a {
  color: #45dd92;
}

.stig-body {
  margin: 4px 0 6px;
  word-wrap: break-word;
  line-height: 1.4;
  color: #f1f1f1;
}

.stig-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stig-actions .action,
.stig-actions .inline-action {
  display: inline;
}

.stig-actions button.action {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: #8a8a8a;
  cursor: pointer;
  font-family: inherit;
}

.stig-actions a.action,
.stig-actions span.action {
  font-size: 12px;
  color: #8a8a8a;
}

.stig-actions .action:hover {
  color: #45dd92;
}

.stig-actions .action.active {
  color: #45dd92;
  font-weight: bold;
}

.stig-actions .action.danger:hover {
  color: #ff6b6b;
}

.stig-more { position: relative; }
.stig-more summary {
  list-style: none;
  font-size: 12px;
  color: #8a8a8a;
  cursor: pointer;
}
.stig-more summary::-webkit-details-marker { display: none; }
.stig-more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  width: 160px;
  padding: 4px;
  background: #080808;
  border: 1px solid #303030;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.stig-more-menu button, .stig-more-menu a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: #f1f1f1;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.stig-more-menu button:hover, .stig-more-menu a:hover,
.stig-more-menu button:focus-visible, .stig-more-menu a:focus-visible {
  background: #14251b;
  color: #45dd92;
}
.stig-more-status { font-size: 12px; color: #a3a3a3; }
.stig-more-status:empty { display: none; }

.stig-cw {
  position: relative;
}

.stig-cw-cover {
  background: #020603;
  border: 1px solid #303030;
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stig-cw-cover p {
  margin: 0;
  font-size: 12px;
  color: #a3a3a3;
  flex: 1;
}

.stig-cw-cover strong {
  color: #f1f1f1;
}

.stig-cw-reveal {
  background: none;
  border: 1px solid #262626;
  border-radius: 3px;
  color: #8a8a8a;
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.stig-cw-reveal:hover {
  border-color: #45dd92;
  color: #45dd92;
}

.stig-cw-content[hidden] {
  display: none;
}

.stig-media {
  margin: 6px 0;
  border-radius: 4px;
  overflow: hidden;
  max-width: 100%;
}

.voice-stig {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  margin: 8px 0 10px;
  padding: 20px 16px 16px;
  border: 1px solid #303030;
  border-radius: 16px;
  background: #071009;
  cursor: default;
}

.voice-stig [hidden] {
  display: none !important;
}

.voice-stig-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.voice-stig-play:focus-visible {
  outline: 2px solid #2fe28a;
  outline-offset: 3px;
}

.voice-stig-ring {
  position: absolute;
  inset: 0;
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.voice-stig-play img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

.voice-stig-play-shade {
  position: absolute;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgb(0 0 0 / 30%);
}

.voice-stig-play-icon {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #fff;
}

.voice-stig[data-playing='true'] .voice-stig-play-icon {
  width: 23px;
  height: 30px;
  margin-left: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 7px solid #fff;
  border-right: 7px solid #fff;
}

.voice-stig-seek {
  width: min(100%, 330px);
  height: 16px;
  margin: 0;
  accent-color: #2fe28a;
  cursor: pointer;
}

.voice-stig-subtitle {
  min-height: 24px;
  margin: 0;
  color: #f1f1f1;
  text-align: center;
  line-height: 1.4;
}

.voice-stig noscript audio {
  display: block;
  width: 100%;
}

.stig-media audio {
  display: block;
  width: 100%;
}

.stig-img-wrap {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
}

.stig-alt-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #f1f1f1;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  pointer-events: none;
  user-select: none;
}

.stig-media img {
  display: block;
  max-width: 100%;
  max-height: 400px;
  height: auto;
  border-radius: 4px;
}

.stig-media video {
  display: block;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 4px;
  background: #000;
}
