.circle-media__video {
    position: relative;
    width: 100%;
}


.circle-media__video-player {
    /*width: 38vw;*/
    /*height: 100%;*/
    object-fit: cover;
    width: 100%;
}

.custom-controls {
    visibility: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
}

.circle-media__video:hover .custom-controls{
    visibility: visible;
}

.control-buttons {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 16px;
    margin: 0;
    padding: 10px;
    transition: margin-bottom 0.2s;
}

.right-controls{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.ltr .control-buttons {
    flex-direction: row-reverse;
}

.control-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}

.play-icon{
    height: 22px;
}

.subtitleBtn{
    display: flex;
}

.subtitle-icon {
    width: 21px;
    height: 16px;
}

.subtitleSelect {
    display: none;
    position: absolute;
    bottom: 40px;
    left: 0;
}

.subtitleSelect.show {
    display: block;
}

.subtitleSelect option {
    color: #000;
    background-color: #fff;
    font-family: 'SimplePro-H-Bold', sans-serif;
    cursor: pointer;
}

.circle-media__video .sound-icon {
    width: 22px;
    height: 22px;
}

.progress-bar-container {
    position: absolute;
    bottom: 0; /* Stick to the bottom */
    left: 0;
    right: 0; /* Ensure it spans from left to right corners */
    height: 5px;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
    cursor: pointer;
    direction: ltr;
    transition: height 0.2s;
}

.progress-bar {
    height: 100%;
    width: 0; /* Start from the left */
    background-color: var(--bg-color); /* Progress color */
    transition: width 0.1s;
}

.video-container:hover .progress-bar-container {
    height: 5px;
}

.ltr .right-controls{
    flex-direction: row-reverse;
}
.subtitleUl,
.settingsUl{
    visibility: hidden;
    position: absolute;
    bottom: 50px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #000000;
}
.subtitleUl {
    right: 70px;
}
.settingsUl {
    right: 43px;
}
.subtitleUl.show,
.settingsUl.show{
    visibility: visible;
}
.subtitleUl li,
.settingsUl li{
    cursor: pointer;
    font-size: 12px;
    height: 21px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #707070;
}
.subtitleUl li.active,
.settingsUl li.active{
    background: var(--bg-color);
}
.subtitleUl li:last-child,
.settingsUl li:last-child{
    border-bottom: 0;
}

.subtitleUl:after,
.settingsUl:after{
    width: 12px;
    height: 10px
}

:where(.subtitleUl):after,
:where(.settingsUl):after{
    aspect-ratio: 1;
    background-color: inherit;
    content: "";
    left: 0;
    mask-image: linear-gradient(-45deg, transparent 50%, #000 50%);
    position: absolute;
    rotate: -136deg;
    bottom: 0;
    translate: 20px 5px;
}

.ltr .subtitleUl{
    right: 80px;
    left: auto;
}

.ltr .settingsUl{
    right: 43px;
}

.hidden {
    display: none;
}

.circle-media__video:hover .progress-bar-container {
    height: 5px;
}

.circle-media__video:hover .custom-controls {

    background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(255,255,255,0) 100%);
}

.circle-media__video button {
    background: transparent;
    border: none;
    cursor: pointer;
}

.circle-media__caption {
    display: block;
    font-size: 16px;
    margin: 6px 4px 0 0;
}

.circle-media__credit {
    /*font-family: SimplePro-H-Regular, sans-serif;*/
    font-size: 12px;
    display: block;
    margin: 6px 4px 0 0;
}

.circle-media__video .stripe-preview {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    overflow: hidden;
    display: none;             /* shown on hover */
    pointer-events: none;
    z-index: 12;
}

.circle-media__video .stripe-preview img {
    position: relative;        /* so top offset works */
    display: block;
}

/*
****************************************************
* LTR SUPPORT
****************************************************
 */
.ltr .subtitleSelect {
    left: auto;
    right: 0;
}

/*
****************************************************
* Mobile
****************************************************
 */
@media (max-width: 768px) {
    .circle-media__video-player {
        width: 100%;
    }

    .circle-media__credit {
        font-size: 12px;
        margin: 0px 4px 0 0;
    }

    .ltr .circle-media__credit {
        margin-top: 4px;
    }

    .circle-media__video:hover .control-buttons{
        margin-bottom: 4px;
    }
    .control-buttons {
        gap: 10px;
        margin: 0;
        padding: 5px;
        background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(255,255,255,0) 100%);
    }
    .circle-media__video{
        width: 100%;
        height: 100%;
    }
    .circle-media__video .sound-icon {
        width: 15px;
        height: 15px;
    }

    .play-icon{
        height: 18px;
    }
    .subtitle-icon {
        width: 21px;
        height: 16px;
    }
    .quality-icon{
        width: 20px;
    }
    .circle-media__video:hover .progress-bar-container{
        height: 2px;
    }
    
    .subtitleUl, .settingsUl{
        bottom: 40px;
    }

    .subtitleUl{
        right: 65px;
    }

    .settingsUl {
        right: 33px;
    }
    .ltr .settingsUl{
        right: 33px;
    }
    .ltr .subtitleUl{
        right: 65px;
    }

}

@media all and (display-mode: fullscreen) {
    video::-webkit-media-controls {
        display:none !important;
    }
    .custom-controls{
        position: fixed;
    }
}
