/* SportCV video modal caption refinement:
   hide only the large top video title, keep the bottom date/title overlay,
   keep the same bottom position, with the bottom date/title overlay 30% larger. */
#mediaViewerBackdrop .media-viewer-story-video-card .media-viewer-story-title{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

#mediaViewerBackdrop .media-viewer-story-video-card .media-viewer-media-footer{
  left:22px !important;
  right:22px !important;
  bottom:6px !important;
  padding:0 58px 0 0 !important;
  min-height:0 !important;
  gap:6px !important;
  align-items:flex-end !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

#mediaViewerBackdrop .media-viewer-story-video-card .media-viewer-media-footer-main{
  display:block !important;
  min-width:0 !important;
  max-width:calc(100% - 4px) !important;
}

#mediaViewerBackdrop .media-viewer-story-video-card .media-viewer-media-date{
  display:block !important;
  margin:0 0 1px !important;
  padding:0 !important;
  color:rgba(255,255,255,.88) !important;
  font-size:14.3px !important;
  line-height:1.05 !important;
  font-weight:850 !important;
  letter-spacing:-.015em !important;
  text-shadow:0 2px 8px rgba(0,0,0,.55) !important;
}

#mediaViewerBackdrop .media-viewer-story-video-card .media-viewer-media-note{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  max-width:min(520px, 100%) !important;
  max-height:39px !important;
  overflow:hidden !important;
  color:#fff !important;
  font-size:16.25px !important;
  line-height:1.12 !important;
  font-weight:900 !important;
  letter-spacing:-.02em !important;
  text-shadow:0 2px 9px rgba(0,0,0,.58) !important;
}

#mediaViewerBackdrop .media-viewer-story-video-card .media-viewer-media-edit-btn{
  right:0 !important;
  bottom:0 !important;
}

@media (max-width:700px){
  #mediaViewerBackdrop .media-viewer-story-video-card .media-viewer-media-footer{
    left:22px !important;
    right:22px !important;
    bottom:4px !important;
    padding-right:54px !important;
  }
  #mediaViewerBackdrop .media-viewer-story-video-card .media-viewer-media-date{
    font-size:12.35px !important;
    line-height:1.05 !important;
    margin-bottom:1px !important;
  }
  #mediaViewerBackdrop .media-viewer-story-video-card .media-viewer-media-note{
    font-size:14.3px !important;
    line-height:1.08 !important;
    max-height:31px !important;
  }
}


/* SportCV v28: cleaner video title/caption cards + stable newest-first display */
.video-shell{
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
}
.video-shell .video-frame{
  flex:0 0 auto !important;
}
.video-shell .video-meta{
  flex:1 1 auto !important;
  min-height:58px !important;
  padding:9px 10px 10px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  overflow:hidden !important;
}
.video-shell .video-meta-title{
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  font-size:14px !important;
  line-height:1.18 !important;
  font-weight:900 !important;
  color:#12233f !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}
.video-shell .video-meta-caption{
  display:-webkit-box !important;
  -webkit-line-clamp:1 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:750 !important;
  color:#65748c !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}
@media (max-width:640px){
  .video-shell .video-meta{
    min-height:56px !important;
    padding:8px 9px 9px !important;
  }
  .video-shell .video-meta-title{
    font-size:13px !important;
  }
  .video-shell .video-meta-caption{
    font-size:11.5px !important;
  }
}
