iframe {
border: none;
}
.opacity_0 {
opacity: 0 !important;
}
.opacity_08 {
opacity: 0.8 !important;
}
.custom-video-player {
position: relative;
width: 100%;
margin: 10px auto;
overflow: hidden;
background-color: #000;
display: flex;
align-items: center;
justify-content: center;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
.custom-video-player.play-button-visible {
cursor: pointer;
}
.custom-video-player:hover .big-play-button {
opacity: 1;
transform: translate(-50%, -50%) scale(1.1);
}
.quality-menu {
position: absolute;
bottom: 60px;
right: 130px;
background-color: #333;
border-radius: 5px;
padding: 10px;
display: none;
z-index: 31;
max-width: 120px;
max-height: 200px;
overflow-y: auto;
box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.quality-menu.show {
display: block;
}
.quality-option {
color: #fff;
padding: 5px 10px;
cursor: pointer;
white-space: nowrap;
text-align: center;
font-size: 15px;
border-radius: 3px;
margin-bottom: 2px;
transition: background 0.15s;
opacity: 0.88;
}
.quality-option:hover,
.quality-option.active {
background-color: var(--color-2196f3);
color: #fff;
opacity: 1;
}
.quality-button {
background: transparent;
border: none;
color: #fff;
cursor: pointer;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
padding: 5px;
margin-left: 0;
position: relative;
}
.quality-button svg {
width: 22px;
height: 22px;
fill: currentColor;
}
@media (max-width: 768px) {
.quality-option {
padding: 4px 8px;
font-size: 14px;
}
}
.video-duration-overlay {
position: absolute;
bottom: 8px;
inset-inline-start: 8px;
background: rgba(0, 0, 0, 0.7);
color: #fff;
padding: 5px 6px;
border-radius: 3px;
z-index: 6;
pointer-events: none;
}
.video-container iframe,
.video-container video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.video-container {
width: 100%;
height: 100%;
padding-bottom: 56.25%;
overflow: hidden;
}
.video-container.custom-ratio {
padding-bottom: 0;
height: auto;
}
.video-element {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: contain;
background-color: #000;
}
.custom-ratio .video-element {
position: relative;
max-height: 80vh;
}
.video-thumbnail {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 5;
background-color: #fff;
}
.player-controls {
position: absolute;
bottom: 0;
width: 100%;
padding: 5px;
transform: translateY(100%);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
gap: 5px;
z-index: 20;
box-shadow: inset 0 -40px 25px -20px rgba(0,0,0,0.9);
}
.player-controls.active {
transform: translateY(0);
}
.progress-container {
width: 100%;
height: 6px;
background-color: #999;
border-radius: 5px;
cursor: pointer;
position: relative;
transition: 0.1s;
}
.progress-container:hover {
height: 8px;
}
.progress-bar {
height: 100%;
width: 0;
background-color: var(--color-2196f3);
border-radius: 5px;
position: relative;
}
.progress-hover {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 0;
background-color: rgba(255, 255, 255, 0.3);
border-radius: 5px;
pointer-events: none;
}
.progress-handle {
position: absolute;
top: 50%;
right: -6px;
width: 12px;
height: 12px;
background-color: var(--color-2196f3);
border-radius: 50%;
transform: translateY(-50%);
box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
pointer-events: none;
}
.buffered-bar {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 0;
background-color: #eee;
border-radius: 5px;
}
.controls-container {
display: flex;
align-items: center;
justify-content: space-between;
}
.left-controls,
.right-controls {
display: flex;
align-items: center;
gap: 15px;
}
.player-button {
color: #fff;
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.2s;
}
.player-button svg {
width: 30px;
height: 30px;
}
.time-display {
color: #fff;
font-family: Arial, sans-serif;
font-size: 14px;
margin: 0 10px;
}
.volume-container {
position: relative;
display: flex;
align-items: center;
gap: 5px;
}
@media (max-width: 768px) {
.volume-container {
display: none;
}
}
.volume-slider-container {
position: relative;
width: 80px;
height: 5px;
background-color: #555;
border-radius: 5px;
transform-origin: center;
animation: slideInVolume 0.1s ease-out;
}
@keyframes slideInVolume {
from {
opacity: 0;
transform: scaleX(0.5) translateX(-50%);
}
to {
opacity: 1;
transform: scaleX(1) translateX(0);
}
}
.volume-slider-progress {
position: absolute;
top: 0;
left: 0;
height: 5px;
width: 0;
background-color: var(--color-2196f3);
border-radius: 5px;
pointer-events: none;
z-index: 0;
}
.volume-slider {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
appearance: none;
background-color: transparent;
outline: none;
margin: 0;
padding: 0;
z-index: 2;
}
.volume-slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 12px;
height: 12px;
background: #fff;
border-radius: 50%;
cursor: pointer;
position: relative;
z-index: 3;
}
.volume-slider::-moz-range-thumb {
width: 12px;
height: 12px;
background: #fff;
border-radius: 50%;
cursor: pointer;
border: none;
position: relative;
z-index: 3;
}
.fullscreen-button {
margin-right: 0;
}
.hidden {
display: none !important;
}
.big-play-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: var(--color-2196f3);
color: #fff;
border: none;
border-radius: 50%;
width: 70px;
height: 70px;
font-size: 28px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0.8;
transition: transform 0.3s, opacity 0.3s;
z-index: 10;
}
@media (max-width: 550px) {
.big-play-button {
width: 50px;
height: 50px;
}
}
.speed-menu {
position: absolute;
bottom: 70px;
right: 10px;
background-color: #333;
border-radius: 5px;
padding: 10px;
display: none;
z-index: 30;
max-width: 120px;
max-height: 200px;
overflow-y: auto;
}
.speed-menu.show {
display: block;
}
.speed-option {
color: #fff;
padding: 5px 10px;
cursor: pointer;
white-space: nowrap;
text-align: center;
}
.speed-option:hover,
.speed-option.active {
background-color: var(--color-2196f3);
}
@media (max-width: 600px) {
.speed-menu {
bottom: 50px;
right: 5px;
max-height: 150px;
}
.speed-option {
padding: 4px 8px;
font-size: 14px;
}
}
@media (max-width: 400px) {
.speed-menu {
max-height: 120px;
}
}
.speed-menu::-webkit-scrollbar {
width: 6px;
}
.speed-menu::-webkit-scrollbar-track {
background: #555;
border-radius: 3px;
}
.speed-menu::-webkit-scrollbar-thumb {
background: #888;
border-radius: 3px;
}
.speed-menu::-webkit-scrollbar-thumb:hover {
background: #aaa;
}
.loading-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(36, 37, 38, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 20;
}
.loading-spinner {
width: 50px;
height: 50px;
border: 5px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: var(--color-2196f3);
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.preview-container {
position: absolute;
bottom: 45px;
background-color: #fff;
border-radius: 10px;
border: 3px solid #fff;
display: none;
z-index: 25;
pointer-events: none;
}
.player-controls.active .preview-container.show {
display: block;
}
.preview-thumbnail {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 5px;
}
.preview-time {
position: absolute;
bottom: -30px;
width: 100%;
text-align: center;
color: #fff;
font-weight: 700;
font-size: 15px;
padding: 2px 0;
text-shadow: 0 0 3px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.3);
}
@media (max-width: 550px) {
.preview-container {
bottom: 30px;
width: 150px;
height: 84px;
}
.preview-time {
bottom: -25px;
}
}
.seek-indicator {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: var(--color-000);
color: var(--color-fff);
padding: 15px 20px;
border-radius: 12px;
display: flex;
align-items: center;
gap: 10px;
font-size: 16px;
font-weight: 600;
opacity: 0;
z-index: 999;
pointer-events: none;
transition: opacity 0.3s ease, transform 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.seek-indicator.show {
opacity: 0.9;
animation: seekPulse 0.8s ease-out;
}

.seek-indicator .seek-icon {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}

.seek-indicator .seek-icon svg {
width: 100%;
height: 100%;
}

@keyframes seekPulse {
0% {
transform: translateY(-50%) scale(0.8);
opacity: 0;
}
20% {
transform: translateY(-50%) scale(1.1);
opacity: 0.9;
}
100% {
transform: translateY(-50%) scale(1);
opacity: 0.9;
}
}


.progress-container:hover .progress-handle,
.progress-handle.dragging {
opacity: 1;
}

.progress-handle:hover,
.progress-handle.dragging {
transform: translateY(-50%) scale(1.2);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.player-element.dragging .progress-handle {
cursor: grabbing;
}

@media (max-width: 768px) {

.seek-indicator {
padding: 12px 16px;
font-size: 14px;
}

.seek-indicator .seek-icon {
width: 20px;
height: 20px;
}
}
.custom-audio-player {
position: relative;
width: 100%;
margin: 10px auto;
border-radius: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
height: auto;
padding-bottom: 0;
}
.audio-container {
position: relative;
width: 100%;
display: flex;
flex-direction: column;
background: linear-gradient(to bottom, #2c2c2c, #1a1a1a);
}
.audio-big-play-button {
position: absolute;
left: 50%;
top: 60%;
transform: translate(-50%, -50%);
width: 50px;
height: 50px;
background-color: var(--color-2196f3);
border-radius: 50%;
z-index: 10;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.audio-big-play-button svg {
width: 30px;
height: 30px;
color: white;
}
.audio-visualizer-container {
position: relative;
width: 100%;
height: 80px;
margin: 0 auto;
padding: 0 15px;
cursor: pointer;
}
.audio-waveform {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.waveform-progress {
position: absolute;
top: 0;
left: 0;
height: 100%;
z-index: 2;
overflow: hidden;
background: rgba(33, 150, 243, 0.2);
width: 0%;
pointer-events: none;
}
.audio-player-controls {
background: linear-gradient(to bottom, #2c2c2c, #1a1a1a);
padding: 0 15px 10px;
transform: none;
position: relative;
box-shadow: none;
}
.audio-time-display {
position: relative;
width: 100%;
height: 20px;
color: var(--color-333);
font-size: 14px;
padding: 0 15px;
z-index: 3;
pointer-events: none;
margin-bottom: 10px;
}
.current-time {
position: absolute;
inset-inline-start: 0;
background-color: var(--color-eee);
padding: 2px 6px;
border-start-end-radius: 3px;
border-end-end-radius: 3px;
}
.total-time {
position: absolute;
inset-inline-end: 0;
background-color: var(--color-eee);
padding: 2px 6px;
border-start-start-radius: 3px;
border-end-start-radius: 3px; 
}
.audio-download-button {
color: var(--color-2196f3);
}
.audio-controls-container {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
}
.audio-left-controls, 
.audio-right-controls {
display: flex;
align-items: center;
gap: 15px;
}
.audio-player-button {
background: transparent;
border: none;
color: #fff;
cursor: pointer;
font-size: 16px;
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
}
.audio-player-button svg {
width: 24px;
height: 24px;
fill: currentColor;
}
.audio-player-button:active {
transform: scale(1.2);
transition: transform 0.2s ease;
}
.audio-volume-container {
position: relative;
display: flex;
align-items: center;
}
.audio-volume-slider-container {
position: relative;
width: 80px;
height: 5px;
background-color: #555;
border-radius: 5px;
margin-left: 5px;
}
.audio-volume-slider-progress {
position: absolute;
top: 0;
left: 0;
height: 5px;
width: 0;
background-color: var(--color-2196f3);
border-radius: 5px;
pointer-events: none;
z-index: 0;
}
.audio-volume-slider {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
appearance: none;
background-color: transparent;
outline: none;
margin: 0;
padding: 0;
z-index: 2;
}
.audio-volume-slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 12px;
height: 12px;
background: #fff;
border-radius: 50%;
cursor: pointer;
position: relative;
z-index: 3;
}
.audio-volume-slider::-moz-range-thumb {
width: 12px;
height: 12px;
background: #fff;
border-radius: 50%;
cursor: pointer;
border: none;
position: relative;
z-index: 3;
}
.audio-speed-menu {
position: absolute;
bottom: 70px;
right: 15px;
background-color: #333;
border-radius: 5px;
padding: 10px;
display: none;
z-index: 30;
max-width: 120px;
max-height: 200px;
overflow-y: auto;
}
.audio-speed-menu.show {
display: block;
}
.audio-speed-option {
color: #fff;
padding: 5px 10px;
cursor: pointer;
white-space: nowrap;
text-align: center;
}
.audio-speed-option:hover,
.audio-speed-option.active {
background-color: var(--color-2196f3);
}
.audio-loading-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(36, 37, 38, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 20;
}
.audio-loading-spinner {
width: 50px;
height: 50px;
border: 5px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: var(--color-2196f3);
animation: spin 1s ease-in-out infinite;
}
.audio-element {
display: none;
}










.subtitles-menu {
    position: absolute;
    bottom: 60px;
    right: 145px;
    background: rgba(28, 28, 28, 0.9);
    border-radius: 4px;
    padding: 8px 0;
    display: none;
    z-index: 10;
    min-width: 120px;
    max-height: 200px;
    overflow-y: auto;
}


.subtitles-menu.show {
    display: block;
}

.subtitle-option {
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: #fff; /* Add this */
}
.subtitle-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.subtitle-option.active {
    background: rgba(33, 150, 243, 0.3);
}

.subtitles-button svg {
    width: 24px;
    height: 24px;
}
.custom-video-player:fullscreen .subtitles-container {
    bottom: 120px; /* Increase for more space above controls */
}

@media (max-width: 768px) {
    .custom-video-player:fullscreen .subtitles-container {
        bottom: 80px; /* Adjust for smaller screens */
    }
}
.subtitles-container {
    position: absolute;
    bottom: 60px; /* Above controls */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    text-align: center;
    pointer-events: none;
    z-index: 9;
}

.custom-subtitle {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 18px;
    line-height: 1.4;
    display: inline-block;
    text-shadow: 0 0 5px black;
}

@media (max-width: 768px) {
    .custom-subtitle {
        font-size: 16px;
    }
}