/*custom video player ui (ported from pics.boysare.moe, adapted for a live stream)*/

.video-player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    cursor: default;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
    cursor: default;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 8px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.35));
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 4;
}

.video-player:hover .video-controls,
.video-player.paused .video-controls,
.video-player:focus-within .video-controls {
    opacity: 1;
}

/*offline / loading overlay wins over the controls*/
.video-player.is-blocked .video-controls {
    opacity: 0;
    pointer-events: none;
}

.vp-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.1s;
}

.vp-btn:hover {
    opacity: 1;
}

.vp-btn:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 2px;
}

/*live badge where the seek bar would be*/
.vp-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-left: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.vp-live-dot {
    width: 6px;
    height: 6px;
    background: #e5484d;
}

.vp-spacer {
    flex: 1;
}

.video-player:fullscreen,
.video-player:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

.video-player:fullscreen video,
.video-player:-webkit-full-screen video {
    object-fit: contain;
}
