/* VelChat mobile profile cover restore
   Keep the original Wondertag cover controls, but prevent the profile avatar from being clipped on phones. */
@media (max-width: 767px) {
  body .wo_user_profile .tag_cover_bg,
  body .wo_user_profile .profile-container,
  body .wo_user_profile > .container,
  body .wo_user_profile .container-fluid,
  body .wo_user_profile .tag_page_name_hdr,
  body .wo_user_profile .tag_page_name_hdr .event-info-cont-small {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  body .wo_user_profile .profile-container.tag_cover_bg {
    position: relative !important;
    z-index: 1 !important;
  }

  body .wo_user_profile .cardheader.user-cover,
  body .page-margin.profile.wo_user_profile .profile-container.tag_cover_bg .card.hovercard .cardheader.user-cover {
    position: relative !important;
    padding-bottom: 32.7% !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    z-index: 1 !important;
  }

  body .wo_user_profile .cardheader.user-cover .tag_usr_prof_covr,
  body .wo_user_profile .cardheader.user-cover .user-cover-reposition-container,
  body .wo_user_profile .cardheader.user-cover .user-cover-reposition-w {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  body .wo_user_profile .cardheader.user-cover #cover-image,
  body .wo_user_profile .cardheader.user-cover .tag_usr_prof_covr img,
  body .wo_user_profile .cardheader.user-cover .user-cover-reposition-w img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  body .wo_user_profile .tag_page_name_hdr {
    position: relative !important;
    z-index: 5 !important;
  }

  body .wo_user_profile .tag_page_name_hdr .user-avatar {
    position: relative !important;
    z-index: 6 !important;
    overflow: visible !important;
    margin-top: -50px !important;
  }

  body .wo_user_profile .tag_page_name_hdr .user-avatar img {
    position: relative !important;
    z-index: 7 !important;
  }

  body .wo_user_profile .cardheader.user-cover form.profile-cover-changer,
  body .wo_user_profile .profile-cover-changer {
    position: absolute !important;
    top: auto !important;
    right: 15px !important;
    bottom: 15px !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 30px) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 20 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body .wo_user_profile .profile-cover-changer .profile_cover,
  body .wo_user_profile .profile-cover-changer .when-notedit {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 30px) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body .wo_user_profile .profile-cover-changer .when-edit[style*="display: none"] {
    display: none !important;
  }

  body .wo_user_profile .profile-cover-changer .when-edit:not([style*="display: none"]) {
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  body .wo_user_profile .profile-cover-changer .btn-file,
  body .wo_user_profile .profile-cover-changer .btn-file.btn-sm,
  body .wo_user_profile .profile-cover-changer .tag_cover_upload_btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: none !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 36px !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body .wo_user_profile .profile-cover-changer .btn-file.btn-sm {
    padding: 0 5px !important;
  }

  body .wo_user_profile .profile-cover-changer .btn-file svg,
  body .wo_user_profile .profile-cover-changer .btn-file.btn-sm svg,
  body .wo_user_profile .profile-cover-changer .tag_cover_upload_btn svg {
    position: static !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: -2px 5px 0 0 !important;
    padding: 0 !important;
    flex: 0 0 20px !important;
    text-indent: 0 !important;
    color: inherit !important;
  }

  body .wo_user_profile .profile-cover-changer .btn-file.btn-sm svg {
    margin: -2px 0 0 !important;
  }

  body .wo_user_profile .profile-cover-changer .btn-file input[type="file"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 3 !important;
  }

  body .wo_user_profile .cardheader.user-cover .tag_user_prof_opts {
    top: 15px !important;
    right: 15px !important;
    z-index: 21 !important;
  }
}

/* Keep video title compatibility fields invisible without touching the real caption textarea. */
.tag_pub_video_title,
.tag_pub_video_title input.videoTitle,
.video-form.tag_pub_video_title,
input.videoTitle[data-velchat-auto-title="1"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.tag_video_queue_note {
  margin-top: 10px;
  opacity: .78;
  font-size: 13px;
}
