.media-holder {
    position: relative;
    width: 100%;
    height: auto;
    background-color: #000;
}

.media-elements{
    position: relative;
    height: 100%;
    width: 100%;
}

/* Video Loader css inside video elements start */
.media-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}
.media-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #fff;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Video Loader css inside video elements end */


/* video controls css start  */
.media-controls{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 15px;
    /* visibility: hidden;
    opacity: 0;
    transition: .3s linear; */
}
.media-elements:hover .media-controls{
    visibility: visible;
    opacity: 1;
}

/* PROGRESS BAR CSS START  */
.progress-bar {
    width: 100%;
    height: 3px;
    background-color: rgba(204, 204, 204, 0.3);
    position: relative;
    border-radius: 3px;
    overflow: visible !important;
    cursor: pointer;
    transition: .1s linear;
}
/* .progress-bar:hover {
    height: 5px;
} */
.progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--ColorLightPrimaryAlpha);
    border-radius: 3px;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--ColorPrimary);
    width: 0%;
    transition: width 0.1s ease-in-out;
    border-radius: 3px;
    position: absolute;
    z-index: 9;
}

.progress-time {
    position: absolute;
    top: -30px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.progress-bar:hover .progress-time {
    opacity: 1;
}
/* PROGRESS BAR CSS END  */


.media-controls .controls{
    /* min-height: 60px; */
}
/* play pause button css start  */
.media-holder button{
    border: 0;
    background: none;
    padding: 10px;
}
.media-play-pause-button svg{
    font-size: 30px !important;
    color: #f1f1f1;
}
.media-holder svg{
    color: var(--ColorLightPrimary);
}

/* play pause button css end  */



/* volume control css start  */
.volume-control {
    flex-grow: 1;
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.volume-slider {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background-color: var(--ColorLightPrimaryAlpha);
    outline: none;
    border-radius: 5px;
    max-width: 70px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background-color: var(--ColorLightPrimary);
    border-radius: 50%;
    cursor: pointer;
}
.volume-slider::-moz-range-thumb {
    appearance: none;
    background-color: var(--ColorLightPrimary);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
}


/* volume control css Hide  */



.hide {
display: none;
}




.settings{
    position: absolute;
    bottom: 100%;
    background: white;
    padding: 10px;
    right: 0;
    margin: 15px;
    margin-bottom: 0;
    min-width: 200px;
    border-radius: 10px;
    visibility: hidden;
    opacity: 0;
    transition: .3s linear;
}
.showSetting{
    visibility: visible;
    opacity: 1;
}

/* .speed-controller {
    position: relative;
    display: inline-block;
} */
.settings svg{
    color: var(--ColorDarkPrimary);
}

/* .speed-dropdown {
    position: relative;
} */

.speed-toggle-button {
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}

.speed-toggle-button span {
    margin-right: 5px;
}

/* .speed-options {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0;
    margin: 5px 0;
    background-color: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
*/
.speed-options li {
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.speed-options li:hover,
.speed-options li.active {
    background-color: #f1f1f1;
} 
.speed-options li.active {
    font-weight: bold;
} 

.settings-button {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}


.custom-switch{
    padding: 5px 10px;
    cursor: pointer;
}
.custom-switch label{
    cursor: pointer;
}
.form-check {
    margin-bottom: 0;
}
.form-switch {
	padding-left: 0;
}
.form-switch .form-check-input {
    margin-left: 0;
    cursor: pointer;
}



.quality-dropdown {
    position: relative;
}

.quality-button {
    padding: 5px 10px;
    /* background-color: #f1f1f1; */
    border: none;
    cursor: pointer;
}

.quality-options {
    /* position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    padding: 0; */
    /* background-color: #fff;
    border: 1px solid #ccc;
    list-style: none; */
    /* display: none; */
}
.quality-options li.active {
    font-weight: bold;
}

.quality-options li {
    padding: 5px 10px;
    cursor: pointer;
}

.quality-options li:hover {
    background-color: #f1f1f1;
}