| .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; |
| overflow: hidden; |
| white-space: nowrap; |
| text-overflow: ellipsis; |
| align-items: center; |
| text-align: left; |
| padding: 15px; |
| font-size: 1.5em; |
|
|
| background-image: linear-gradient(#0e0f19cb 50%, transparent 100%); |
| } |
|
|
| .video-title-text { |
| font-weight: 200; |
| font-size: 1.2rem; |
| overflow: hidden; |
| white-space: nowrap; |
| text-overflow: ellipsis; |
| } |
|
|
| .player-exit { |
| padding-bottom: 0 !important; |
| } |
|
|
| .video-element { |
| width: 100%; |
| height: auto; |
| display: block; |
| transition: scale 1s ease, filter 1s ease; |
| } |
|
|
| .playing { |
| scale: 1; |
| filter: saturate(1); |
| } |
|
|
| .paused { |
| scale: 1.2; |
| filter: saturate(0); |
| } |
|
|
| .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; |
| background-color: transparent; |
| } |
|
|
| .player-overlay.show { |
| opacity: 1; |
| background-color: #00000062; |
| } |
|
|
| .player-controls-top { |
| display: flex; |
| flex-direction: row; |
| width: 95dvw; |
| justify-content: center; |
| align-items: center; |
| } |
|
|
| .player-controls-center { |
| gap: 5dvw; |
| display: flex; |
| justify-content: center; |
| align-items: center; |
| position: absolute; |
| top: 50%; |
| left: 50%; |
| transform: translate(-50%, -50%); |
| } |
|
|
| .player-controls-center .control-btn, |
| .player-controls-center .play-pause-btn { |
| cursor: pointer; |
| font-size: 2.5rem; |
| transition: background-color 0.3s; |
| color: var(--player-primary); |
| border: none !important; |
| min-width: 10%; |
| } |
|
|
| .material-symbols-outlined.large { |
| font-size: 65px; |
| } |
|
|
| .material-symbols-outlined.medium { |
| font-size: 40px; |
| } |
| .material-symbols-outlined.small { |
| font-size: 25px; |
| } |
|
|
| .rewind-label-left { |
| font-size: 1.2rem; |
| font-weight: 400; |
| position: absolute; |
| transform: translate(1.5rem, 1.3rem); |
| color: white; |
| } |
|
|
| .rewind-label-right { |
| font-size: 1.2rem; |
| font-weight: 400; |
| position: absolute; |
| transform: translate(-2.8rem, 1.3rem); |
| color: white; |
| } |
|
|
| .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; |
| font-weight: 200; |
| } |
|
|
| .play-pause-btn, |
| .control-btn { |
| color: var(--player-primary); |
| border-radius: 10px; |
| border: none; |
| padding: 5px; |
| padding-bottom: 0; |
| cursor: pointer; |
| font-size: 1em; |
| transition: background-color 0.3s; |
| outline: none; |
| } |
|
|
| .play-pause-btn:hover, |
| .control-btn:hover { |
| scale: 1.1; |
| } |
|
|
| .control-btn:disabled { |
| color: #232435; |
| cursor: not-allowed; |
| } |
|
|
|
|
| .progress-bar, |
| .volume-control { |
| margin: 0 5px; |
| } |
|
|
| .volumn-btn { |
| padding-bottom: 0; |
| } |
|
|
| .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 var(--player-primary); |
| border-radius: 10px; |
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); |
| z-index: 1000; |
| padding: 5px; |
| } |
|
|
| .context-menu ul { |
| list-style: none; |
| margin: 0; |
| padding: 0; |
| } |
|
|
| .context-menu li { |
| padding: 5px; |
| cursor: pointer; |
| border-radius: 5px; |
| color: rgb(184, 184, 189); |
| } |
|
|
| |
| |
| 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.3rem; |
| } |
|
|
| |
| input[type="range"]::-webkit-slider-thumb { |
| -webkit-appearance: none; |
| appearance: none; |
| margin-top: -5px; |
| |
| background-color: var(--player-primary); |
| height: 1rem; |
| 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: var(--player-primary); |
| height: 1.2rem; |
| width: 0.8rem; |
| border-radius: 10px; |
| } |
|
|
| ::cue { |
| color: rgb(199, 199, 199); |
| background-color: rgba(0, 0, 0, 0.7); |
| font-size: 1.3em; |
| line-height: 1.2; |
| } |
|
|