/* Force square video thumbnails for previews and posts */
.video-note-preview-container,
.video-note-container,
.post-video-note .video-note-container {
  width: 160px !important;
  height: 160px !important;
  min-width: 100px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #000 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45) !important;
}

.video-note-preview-container video,
.video-note-container video,
.post-video-note .video-note-container video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
}

.video-note-preview .video-note-duration {
  /* preview (composer) keeps badge over the thumbnail */
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 6 !important;
}

/* Post layout: place duration to the right of the video thumbnail */
.post-video-note {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.post-video-note .video-note-duration {
  position: static !important;
  margin-left: 0 !important;
  align-self: flex-start !important;
  background: rgba(0,0,0,0.65) !important;
  color: #fff !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  font-size: 0.85rem !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5) !important;
}

@media (max-width: 720px) {
  .video-note-preview-container,
  .video-note-container,
  .post-video-note .video-note-container {
    width: 140px !important;
    height: 140px !important;
  }
}
