.custom-fake-video.loaded .watched-label, .lazy-youtube-wrapper.loaded .watched-label {
    display: none;
}
.lazy-youtube-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
}
.lazy-youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 3;
    pointer-events: all;
}
.youtube-thumbnail {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.lazy-load-active {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    overflow: hidden;
}

/* Custom Video Container Styles */
.custom-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: all;
}
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: display 0.2s ease;
    display: none;
    z-index: 20;
    color: #fff;
    font-size: 1.3em;
    pointer-events: all;
}

.custom-close-btn {
    position: absolute;
    bottom: 80%;
    left: 50%;
    z-index: 25;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    line-height: 50px;
    height: 50px;
    text-align: center;
    cursor: pointer;
    font-size: 20px;
    transform: translate(-50%, -50%);
    display: none;
    pointer-events: auto;
}
:fullscreen .custom-close-btn {
    display: block !important;
}
:fullscreen .post-current-idvideo {
    display: block !important;
}
.custom-video-container:hover .custom-controls,
.custom-video-container:not(.playing) .custom-controls {
    display: block;
    pointer-events: all;
    z-index: 25;
}
.custom-play-pause-btn, .custom-play-button {
    position: absolute;
    max-width: 90px;
    max-height: 90px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 26;
    width: 35%;
    height: 35%;
}
.custom-video-container:hover .custom-play-pause-btn,
.custom-video-container:not(.playing) .custom-play-pause-btn {
    display: block;
    pointer-events: all;
}
.custom-play-pause-btn .play-icon, .custom-play-button .play-icon,
.custom-play-pause-btn .pause-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index:26;
}
.custom-play-pause-btn .pause-icon {
    display: none;
}
.custom-control-video {
    position: absolute;
    bottom: 0;
    padding: 10px;
    width: 100%;
}
.custom-progress-container {
    height: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: height 0.2s ease;
    width: 100%;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    z-index: 25;
    margin-bottom: 10px;
}
.custom-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ff0000;
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s ease;
}
.custom-progress-bar-thumb {
    height: 5px;
    background: 
#ff0000;
    border-radius: 2px;
    transition: width 0.1s linear;
}
.custom-time {
    color: white;
    font-size: 12px;
    min-width: 70px;
    text-align: center;
}
.custom-volume-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    min-width: 40px;
    justify-content: center;
}
.custom-volume-container .volume-icon {
    width: 24px;
    height: 24px;
    color: white;
    transition: all 0.2s ease;
}
.custom-volume-container .volume-icon:hover {
    color: 
#ff0000;
}

.custom-post-link {
    position: absolute;
    bottom: 100%;
    min-width: 220px;
    left: 1.5%;
    display: inline-flex;
    gap: 6px;
    padding: 7px 7px 5px 7px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: .8em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-direction: column;
}

.custom-post-link:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.custom-post-link:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.post-thumbnail-container {
    position: relative;
    width: 70px;
    height: 40px;
    flex-shrink: 0;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-icon {
    display: block;
    position: relative;
    width: 50px;
    height: 35px;
    flex-shrink: 0;
    background-color: #323232ad;
}

.post-link-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 24;
    cursor: pointer;
}



.custom-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}



.custom-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    background: #ff0000;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.custom-progress-container:hover .custom-progress-thumb {
    opacity: 1;
}

.custom-progress-thumb:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.custom-progress-thumb.dragging {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
}

.custom-progress-container.dragging {
    height: 12px;
}

.custom-progress-container.dragging .custom-progress-thumb {
    opacity: 1;
}
