/* ==========================================================================
   FILE: tiktok-components.css
   ROLE: tiktok
   TikTok section components shared by the whole tiktok tree: action rail,
   video card shell and feed stage rules.
   Loaded on: /videos/, /latest-videos/, /onlyfans-videos/, /realgirls-videos/,
   /video/<jid>, /tag/<name>, /tags/, /flair/<name>, /u/<name>.
   ========================================================================== */

/* ==========================================================================
   TIKTOK COMPONENTS — successor to the legacy module sheet (tiktok/fab.css)
   Contains only the rules still referenced by live tiktok markup; loaded in
   the same cascade position as the old sheet (after base.css, before
   chrome/pages/tiktok-videos.css) so computed styles stay identical.
   ========================================================================== */:root{
    --main-color: #FF002F;
    --main-font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    --blog-body-bg: #202124;
    --blog-body-color: #fff
}

#__next,body,html{
    width: 100%;
    height: 100%;
    background-color: #000;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    padding-bottom: 20px;
}

body{
    margin: 0;
    font-family: var(--main-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.hp-action-rail__item{
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem;
    text-align: center;
    color: #fff
}

.hp-action-rail__item svg{
    filter: drop-shadow(0 0 3px rgba(0,0,0,.5))
}

.hp-action-rail__icon{
    width: 35px;
    height: 35px;
    text-align: center
}

.hp-action-rail__count{
    font-size: .9rem;
    font-weight: 100;
    text-align: center;
    text-shadow: 0 0 5px #000000b3
}

.hp-action-rail{
    position: absolute;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    bottom: 0;
    right: 0;
    margin: 1rem .5rem 1rem 1rem;
    z-index: 40;
    pointer-events: auto; 
}

.hp-video-overlay{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    z-index: 30;
    pointer-events: none; 
}

.hp-video-overlay__content{
    z-index: 35;
    width: 100%;
    overflow: inherit;
    padding: 2rem 1rem 1rem;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
}

@media (display-mode:standalone){
    .hp-video-overlay__content {
        padding-bottom: env(safe-area-inset-bottom)
    }
}

.hp-video-overlay__user{
    display: flex;
    font-weight: 600;
    flex-direction: row;
    justify-content: flex-start;
    font-family: var(--main-font),"Helvetica","Arial",sans-serif
}

.hp-video-overlay__desc{
    padding: 6px 0;
    width: 100%;
    max-width: 300px;

}

@media screen and (max-width: 376px){
    .hp-video-overlay__desc {
        max-width:65%
    }
}

.hp-video-overlay__link{
    font-size: .875rem;
    line-height: 1.25rem;
    color: #fff;
    cursor: pointer;
    font-family: "Helvetica","Arial",sans-serif

}

.hp-video-overlay__title{
    font-size: 1em
}

@media screen and (max-width: 420px){
    .hp-video-overlay__title {
        font-size:.9em
    }
}

.display_image__DSKmS,.hp-video-card__video{
    max-height: 100%;
    max-width: 100vw
}

.hp-video-card{
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-stop:always;content-visibility: auto
}

.hp-media-thumb{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    -webkit-filter: blur(18px);
    filter: blur(18px);
    object-position: center;
    opacity: .5;
    top: 0;
   
}

.hp-video-card__stage{
    position: relative;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    z-index: 10
}

.hp-video-card__stage video,.hp-video-card__stage>img{
    height: 100%;
    width: 100vw;
    object-fit: contain
}

@media screen and (min-width: 960px){
    .hp-video-card__stage video,.hp-video-card__stage>img {
        height:100vh
    }
}

.hp-videos-list{
    scroll-snap-type: y mandatory;
    /* auto, not scroll: `scroll` is what painted a permanent scrollbar over the
       feed on desktop (Windows reserves ~15px for a classic bar). The container
       still scrolls by wheel/touch/keyboard, snapping and scroll events intact. */
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    content-visibility: auto;
    contain-intrinsic-size: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* hide the inner bar for WebKit/Blink too (scrollbar-width is Firefox-only) */
.hp-videos-list::-webkit-scrollbar{
    width: 0;
    height: 0;
    display: none;
}

.pause_icon{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-image: url("%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%2214%22 y=%223%22 width=%225%22 height=%2218%22 rx=%221%22 /%3E %3Crect x=%225%22 y=%223%22 width=%225%22 height=%2218%22 rx=%221%22 /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
  }

.paused .pause_icon{
    display: block;
  }

.paused .hp-video-card__video{
    opacity: 0.5;
  }

.hp-video-card__stage{
      position: relative;
    }

.hp-action-rail__icon.mute-button{
    cursor: pointer;
    transition: all 0.2s ease;
}

.hp-action-rail__icon.mute-button:hover{
    transform: scale(1.1);
    filter: brightness(1.2);
}

.hp-video-overlay .position-absolute,
.hp-video-overlay button,
.hp-video-overlay a,
.hp-video-overlay [role="button"],
.hp-video-overlay .btn{
    pointer-events: auto;
}
