.bloxdhub-custom-video-player {
position: relative;
background: #000;
border-radius: 8px;
overflow: hidden;
width: 100%;
height: 100%;
min-height: 200px;
cursor: pointer;
user-select: none;
z-index: 1;
isolation: isolate;
contain: layout style paint;
}
.video-container {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.video-element {
width: 100%;
height: 100%;
object-fit: contain;
cursor: pointer;
background: #000;
}
.video-loading {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.7);
color: #fff;
z-index: 10;
pointer-events: none;
}
.video-loading.show {
display: flex;
}
.video-loading.hidden {
display: none;
}
.video-loading .loading-spinner {
width: 32px;
height: 32px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top: 3px solid #ffb914;
border-radius: 50%;
margin-bottom: 10px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.video-play-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.1);
z-index: 5;
transition: opacity 0.3s ease;
pointer-events: auto;
cursor: pointer;
}
.video-play-overlay.hidden {
opacity: 0;
pointer-events: none;
}
.play-btn {
width: 60px;
height: 60px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
border: 2px solid rgba(255, 255, 255, 0.3);
color: #fff;
font-size: 24px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}
.play-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.1);
}
.bloxdhub-video-controls {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.8) 100%);
opacity: 0;
transition: opacity 0.3s ease;
z-index: 100;
pointer-events: none;
isolation: isolate;
contain: layout style paint;
}
.bloxdhub-video-controls .controls-top,
.bloxdhub-video-controls .controls-bottom {
pointer-events: auto;
}
.bloxdhub-custom-video-player:hover .bloxdhub-video-controls,
.bloxdhub-custom-video-player.controls-visible .bloxdhub-video-controls {
opacity: 1;
}
.controls-top {
display: flex;
justify-content: flex-end;
padding: 15px;
gap: 10px;
}
.controls-bottom {
padding: 15px;
}
.mute-btn,
.fullscreen-btn {
width: 36px;
height: 36px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.6);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
backdrop-filter: blur(10px);
}
.mute-btn:hover,
.fullscreen-btn:hover {
background: rgba(0, 0, 0, 0.8);
transform: scale(1.1);
}
.progress-container {
margin-bottom: 15px;
}
.progress-bar {
position: relative;
width: 100%;
height: 4px;
background: rgba(255, 255, 255, 0.3);
border-radius: 2px;
cursor: pointer;
transition: height 0.2s ease;
}
.progress-bar:hover {
height: 6px;
}
.progress-buffered {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: rgba(255, 255, 255, 0.4);
border-radius: 2px;
transition: width 0.3s ease;
}
.progress-current {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: #ffb914;
border-radius: 2px;
transition: width 0.1s ease;
}
.progress-thumb {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 12px;
height: 12px;
background: #ffb914;
border-radius: 50%;
opacity: 0;
transition: opacity 0.2s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.progress-bar:hover .progress-thumb {
opacity: 1;
}
.controls-row {
display: flex;
align-items: center;
gap: 15px;
}
.play-pause-btn,
.restart-btn {
width: 36px;
height: 36px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.6);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
backdrop-filter: blur(10px);
}
.play-pause-btn:hover,
.restart-btn:hover {
background: rgba(0, 0, 0, 0.8);
transform: scale(1.1);
}
.time-display {
color: #fff;
font-size: 14px;
font-weight: 500;
background: rgba(0, 0, 0, 0.6);
padding: 6px 12px;
border-radius: 4px;
backdrop-filter: blur(10px);
}
.video-error {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.8);
color: #fff;
text-align: center;
z-index: 15;
pointer-events: none;
}
.video-error.show {
display: flex;
}
.video-error i {
font-size: 48px;
margin-bottom: 15px;
opacity: 0.6;
}
.video-error p {
margin: 0 0 15px 0;
font-size: 16px;
}
.retry-btn {
background: #ffb914;
color: #000;
border: none;
padding: 8px 16px;
border-radius: 4px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
pointer-events: auto;
}
.retry-btn:hover {
background: #fcd373;
transform: scale(1.05);
}
.bloxdhub-custom-video-player[data-simplified="true"] .bloxdhub-video-controls {
display: none;
}
.bloxdhub-custom-video-player[data-simplified="true"] .controls-top {
display: none;
}
.bloxdhub-custom-video-player[data-simplified="true"] .controls-bottom {
display: none;
}
@media (max-width: 768px) {
.play-btn {
width: 50px;
height: 50px;
font-size: 20px;
}
.controls-top,
.controls-bottom {
padding: 10px;
}
.mute-btn,
.fullscreen-btn,
.play-pause-btn,
.restart-btn {
width: 32px;
height: 32px;
font-size: 14px;
}
.time-display {
font-size: 12px;
padding: 4px 8px;
}
}
