:root {
    --fd-tab-h: var(--tb-h, 3.25rem);
}

html,
body {
    background: #000;
    color: #fff;
}
.xgplayer .xg-top-bar xg-icon {
    display: none !important;
}
#app {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.fd-root {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #000;
}

.fd-feed {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: var(--fd-tab-h);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
}

.fd-feed::-webkit-scrollbar {
    display: none;
}

.fd-card {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--fd-tab-h));
    min-height: 30rem;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
}

.fd-player,
.fd-poster,
.fd-player .veplayer,
.fd-player .xgplayer,
.fd-player video {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    background: #000;
}

.fd-player {
    z-index: 1;
    background: transparent;
}

.fd-poster {
    z-index: 2;
    object-fit: cover;
    opacity: 1;
    transition: opacity .2s ease;
    pointer-events: none;
}

.fd-poster-hidden {
    opacity: 0;
}

.fd-player video {
    object-fit: cover;
}

.fd-shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, 0) 28%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .78) 100%);
}

.ep-side {
    position: absolute;
    right: 1rem;
    bottom: 12.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.375rem;
}

.ep-side-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    cursor: pointer;
}

.ep-side-btn-save {
    width: 1.5rem;
    height: 1.5rem;
}

.ep-side-label {
    font-size: .6875rem;
    color: #fff;
    font-family: 'SF pro 500', sans-serif;
}

.ep-side-icon-hd {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0 .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: .5263rem;
    color: #2b2b2b;
    font-size: .5789rem;
    text-transform: uppercase;
}

.ep-side-icon-rate {
    border-radius: .3125rem;
    width: 1.9375rem;
    height: 1.0625rem;
    border: .0625rem solid #FFFFFF;
    font-size: .625rem;
    color: #fff;
    font-family: 'SF pro 400', sans-serif;
}

.ep-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    padding-top: 1.75rem;
    background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0) 100%);
}

.ep-info {
    padding: 0 1rem;
}

.ep-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: .6875rem;
}

.ep-title {
    font-size: 1.125rem;
    color: #fff;
    max-width: 14.375rem;
    font-family: 'SF pro 600', sans-serif;
}

.ep-title-more {
    width: 1.0513rem;
    height: 1.0513rem;
    margin-left: .25rem;
}

.ep-desc {
    font-size: .75rem;
    color: #A0A0A0;
    margin-bottom: .75rem;
    max-width: 18.75rem;
    font-family: 'SF pro 400', sans-serif;
}

.ep-progress {
    position: relative;
    height: .1875rem;
    margin: 0 1rem 0 0.9rem;
    background: rgba(255, 255, 255, .16);
}

.ep-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    max-width: 100%;
    background: #FA3767;
    border-radius: .25rem
}

.ep-progress-fill::after {
    content: '';
    position: absolute;
    right: -0.1rem;
    top: 50%;
    width: .3125rem;
    height: .3125rem;
    border-radius: 50%;
    background: #FA3767;
    transform: translateY(-50%);
}

.ep-watchbar {
    height: 2.5625rem;
    padding: 0 1rem;
    background: #282828;
    border: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.ep-watchbar-icon {
    width: .875rem;
    height: .75rem;
}

.ep-watchbar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.ep-watchbar-text {
    font-size: .625rem;
    font-weight: 500;
    color: rgba(170, 170, 170, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    flex: 1;
    font-family: 'Gilroy 400', sans-serif;
}

.ep-watchbar-chevron {
    width: 1.0513rem;
    height: 1.0513rem;
    transform: rotate(-90deg);
    flex-shrink: 0;
}

.ep-watchbar-chevron img {
    width: 0.82rem;
    height: 0.82rem;
    object-fit: contain;
}

.tb-tabbar {
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(.625rem);
}

@supports (height: 100dvh) {
    .fd-card {
        height: calc(100dvh - var(--fd-tab-h));
    }
}
