/* UPDATE 01 — only the two requested changes:
   1) preserve the uploaded media's original aspect ratio (no crop/stretch)
   2) make the content category bar transparent/TikTok-like and overlay it at the top
*/

/* Preserve the media's natural aspect ratio inside the Shorts viewport. */
.card video,
.card.landscape video,
.card.portrait video,
.card img.postImage {
  object-fit: contain !important;
  object-position: center center !important;
  background: #000;
}

/* Do not let the category choices push the video downward. */
#contentFilters {
  background: transparent !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  top: 56px !important;
  z-index: 45 !important;
  padding: 8px 12px 10px !important;
}

/* TikTok-style transparent category labels. */
#contentFilters .contentFilter {
  background: transparent !important;
  border: 0 !important;
  color: rgba(255,255,255,.72) !important;
  border-radius: 0 !important;
  padding: 7px 10px 8px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.9) !important;
  position: relative;
}

#contentFilters .contentFilter:hover {
  background: transparent !important;
  color: #fff !important;
}

#contentFilters .contentFilter.active {
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
}

#contentFilters .contentFilter.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

/* Keep the feed under the fixed header, but don't reserve a separate black
   category strip. The categories now float over the top of the video. */
#feed {
  margin-top: 56px !important;
  height: calc(100dvh - 56px) !important;
}

/* The first visible video still starts at the normal top of the feed. */
#feed .card {
  min-height: calc(100dvh - 56px);
}
