|
.video-player-container { |
|
position: relative; |
|
max-width: 100dvw; |
|
height: 100dvh; |
|
margin: 0; |
|
padding: 0; |
|
background-color: #000; |
|
border-radius: 8px; |
|
overflow: hidden; |
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); |
|
display: flex; |
|
} |
|
|
|
.video-title { |
|
color: #d5d6d7; |
|
display: flex; |
|
align-items: center; |
|
text-align: left; |
|
padding-bottom: 50px; |
|
padding: 20px; |
|
font-size: 1.5em; |
|
font-weight: bold; |
|
background-image: linear-gradient(#0e0f19cb 50%, transparent 100%); |
|
} |
|
|
|
.video-element { |
|
width: 100%; |
|
height: auto; |
|
display: block; |
|
} |
|
|
|
.player-overlay { |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
width: 100%; |
|
height: 100dvh; |
|
display: flex; |
|
flex-direction: column; |
|
justify-content: space-between; |
|
transition: opacity 0.5s; |
|
z-index: 100; |
|
} |
|
|
|
.player-overlay.hide { |
|
opacity: 0; |
|
pointer-events: none; |
|
} |
|
|
|
.player-overlay.show { |
|
opacity: 1; |
|
} |
|
|
|
.player-controls-top { |
|
display: flex; |
|
flex-direction: row; |
|
width: 95dvw; |
|
justify-content: center; |
|
align-items: center; |
|
} |
|
|
|
.player-controls-down { |
|
display: flex; |
|
flex-direction: row; |
|
width: 90dvw; |
|
justify-content: center; |
|
align-items: center; |
|
} |
|
|
|
.player-controls-left { |
|
width: 100%; |
|
display: flex; |
|
justify-content: left; |
|
} |
|
|
|
.player-controls-right { |
|
width: 100%; |
|
display: flex; |
|
justify-content: right; |
|
} |
|
|
|
.controls { |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
padding: 10px; |
|
padding-top: 50px; |
|
background-image: linear-gradient(transparent 5%, #0e0f19cb 60%); |
|
bottom: 0; |
|
position: relative; |
|
flex-direction: column; |
|
} |
|
|
|
.current-time, |
|
.duration { |
|
color: white; |
|
} |
|
|
|
.play-pause-btn, |
|
.control-btn { |
|
color: #4237b8; |
|
border-radius: 10px; |
|
padding: 10px; |
|
cursor: pointer; |
|
font-size: 1em; |
|
transition: background-color 0.3s; |
|
} |
|
|
|
.play-pause-btn:hover, |
|
.control-btn:hover { |
|
color: #5f6293; |
|
} |
|
|
|
.control-btn:disabled { |
|
color: #232435; |
|
cursor: not-allowed; |
|
} |
|
|
|
.progress-bar, |
|
.volume-control { |
|
margin: 0 5px; |
|
} |
|
|
|
.progress-bar { |
|
width: 85%; |
|
cursor: pointer; |
|
} |
|
|
|
.volume-control { |
|
width: 100px; |
|
cursor: pointer; |
|
} |
|
|
|
.download-btn { |
|
color: white; |
|
} |
|
|
|
.buffering-indicator { |
|
color: white; |
|
background-color: #00000069; |
|
position: fixed; |
|
top: 0; |
|
width: 100dvw; |
|
height: 100dvh; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
} |
|
|
|
.buffering-indicator .position-fix { |
|
transform: translate(-50%, -50%); |
|
} |
|
|
|
.context-menu { |
|
position: absolute; |
|
color: white; |
|
background: rgb(29, 31, 57); |
|
border: 1px solid #3640f7; |
|
border-radius: 10px; |
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); |
|
z-index: 1000; |
|
padding: 10px; |
|
} |
|
|
|
.context-menu ul { |
|
list-style: none; |
|
margin: 0; |
|
padding: 0; |
|
} |
|
|
|
.context-menu li { |
|
padding: 5px 10px; |
|
cursor: pointer; |
|
border-radius: 5px; |
|
} |
|
|
|
.context-menu li:hover { |
|
background-color: #5755a2; |
|
} |
|
|
|
|
|
|
|
input[type="range"] { |
|
-webkit-appearance: none; |
|
appearance: none; |
|
background: transparent; |
|
cursor: pointer; |
|
} |
|
|
|
|
|
input[type="range"]:focus { |
|
outline: none; |
|
} |
|
|
|
|
|
|
|
input[type="range"]::-webkit-slider-runnable-track { |
|
background-color: #403f4f; |
|
border-radius: 0.5rem; |
|
height: 0.5rem; |
|
} |
|
|
|
|
|
input[type="range"]::-webkit-slider-thumb { |
|
-webkit-appearance: none; |
|
appearance: none; |
|
margin-top: -6px; |
|
|
|
background-color: #4237b8; |
|
height: 1.2rem; |
|
width: 0.8rem; |
|
border-radius: 10px; |
|
} |
|
|
|
|
|
|
|
input[type="range"]::-moz-range-track { |
|
background-color: #403f4f; |
|
border-radius: 0.5rem; |
|
height: 0.5rem; |
|
} |
|
|
|
|
|
input[type="range"]::-moz-range-thumb { |
|
border: none; |
|
|
|
background-color: #4237b8; |
|
height: 1.2rem; |
|
width: 0.8rem; |
|
border-radius: 10px; |
|
} |
|
|