/* Fringe video detail mobile UX — video-first, less generic article clutter */
@media (max-width: 760px){
  body:has(.player-wrap) .site-top-shell{
    position: relative !important;
    padding-bottom: 6px !important;
  }

  body:has(.player-wrap) main.wrap{
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin: 0 auto !important;
    padding: 0 0 14px !important;
  }

  body:has(.player-wrap) article.card{
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    background: linear-gradient(160deg,#101936,#0b1228) !important;
  }

  /* User came for the video: put it first and keep it above the narrative. */
  body:has(.player-wrap) .player-wrap{
    order: 1 !important;
    margin: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.32) !important;
  }

  body:has(.player-wrap) h1{
    order: 2 !important;
    margin: 8px 0 2px !important;
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.035em !important;
  }

  body:has(.player-wrap) #oc-view-count,
  body:has(.player-wrap) .card-views{
    order: 3 !important;
    margin: 0 !important;
    font-size: 14px !important;
    color: #b9c6ea !important;
  }

  body:has(.player-wrap) .video-tags{
    order: 4 !important;
    margin: 3px 0 0 !important;
    gap: 6px !important;
  }

  body:has(.player-wrap) .video-tags .pill,
  body:has(.player-wrap) .video-tags .tag{
    padding: 5px 8px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    max-width: 100% !important;
  }

  /* Low-value mobile clutter: remove the article/blog framing. */
  body:has(.player-wrap) .crumbs,
  body:has(.player-wrap) .meta:not(.video-tags),
  body:has(.player-wrap) .player-wrap + p.muted,
  body:has(.player-wrap) .fringe-embed-fallback,
  body:has(.player-wrap) .fringe-player-fallback{
    display: none !important;
  }

  body:has(.player-wrap) .player-wrap ~ p:not(.meta):not(.actions):not(.muted){
    order: 5 !important;
    margin: 4px 0 0 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    color: #dbe6ff !important;
  }

  body:has(.player-wrap) .actions{
    order: 6 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 8px 0 0 !important;
  }

  body:has(.player-wrap) .actions .read{
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
  }

  body:has(.player-wrap) .actions .read:first-child::before{
    content: 'Source';
    font-size: 0;
  }

  body:has(.player-wrap) .actions .read:first-child{
    background: #121c37 !important;
    color: #d8e6ff !important;
    border: 1px solid #33497f !important;
    box-shadow: none !important;
  }

  body:has(.player-wrap) .actions .read.secondary{
    background: linear-gradient(135deg,#7c5cff,#38bdf8) !important;
    color: #07111f !important;
  }
}
