.ahura_player {
    --ah-player-radius: 12px;
    --ah-player-overlay: rgba(0, 0, 0, 0.38);
    --ah-player-overlay-poster: rgba(0, 0, 0, 0.32);
    position: relative;
    display: block;
    overflow: hidden;
    clear: both;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f0f0f;
    border-radius: var(--ah-player-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.ahura_player .ahura-player-media,
.ahura_player > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.ahura_player video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
    cursor: pointer;
}

.ahura_player.no-controls .video_controls {
    display: none !important;
}

.ahura_player.no-video {
    aspect-ratio: auto;
    min-height: 120px;
    background: #d4d4d4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ah-player-radius, 12px);
}

body:not(.elementor-page) video::-webkit-media-controls {
    display: none;
}

.video_controls {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    height: 80px;
    align-items: center;
    display: flex;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(30px);
}

.video_controls.show-video-controls,
.ahura_player.is-paused.has-controls .video_controls,
.ahura_player.is-playing.has-controls:hover .video_controls,
.ahura_player.is-playing.has-controls.is-hovering .video_controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.video_controls_wrapper {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
    flex-wrap: wrap;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    padding: 10px 15px;
}

.video_controls .video_controls_top {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.video_controls .video_play,
.video_controls .video_pause {
    width: 30px;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.video_controls .video_pause {
    display: none;
}

.video_controls .video_fullscreen {
    right: 1em;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video_controls .video_fullscreen .ah-theme-icon,
.video_controls .video_fullscreen .ah-isax {
    --ah-theme-icon-filter: brightness(0) invert(1);
    color: #fff;
}

.video_controls .video_fullscreen .ah-theme-icon img,
.video_controls .video_fullscreen .ah-isax img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
}

.video_controls .video_audio_wrapper {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 25px;
    padding: 0 3px;
}

.video_controls_wrapper svg {
    width: 30px;
    height: 30px;
}

.video_controls_wrapper svg path {
    stroke: #fff;
}

.video_controls_wrapper :is(.v-up, .v-mute) {
    height: 30px;
    cursor: pointer;
    display: inline-block;
}

.video_controls .video_controls_left {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 10px 10px 10px 0;
}

.video_timer {
    margin-left: 20px;
}

.video_timer {
    color: white;
}

.video_time_duration,
.video_time_current {
    font-style: normal;
}

.video-play-button {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ah-player-overlay);
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.ahura_player.has-poster .video-play-button {
    background: var(--ah-player-overlay-poster);
}

.ahura_player.is-playing .video-play-button {
    opacity: 0;
    pointer-events: none;
}

.video-play-button:not(.is-visible) {
    opacity: 0;
    pointer-events: none;
}

.video-play-button:hover .ah-theme-icon,
.video-play-button:hover i {
    transform: scale(1.08);
}

.video-play-button .ah-theme-icon,
.video-play-button .ah-isax,
.video-play-button i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 0 12px rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-play-button .ah-theme-icon img,
.video-play-button .ah-isax img {
    width: 44px;
    height: 44px;
}

.video-play-button i {
    font-size: 2.4em;
    color: #1a1a1a;
}

.ahura_player .video_audio {
    margin: 0 5px;
}

.ahura_player input[type="range"] {
    width: 100%;
    position: relative;
    font-size: 1rem;
    background: #fff0;
    border: none;
    overflow: hidden;
    color: #ffffff;
    direction: ltr;
    --thumb-height: 1.125em;
    --track-height: 0.2em;
    --track-color: rgba(0, 0, 0, 0.6);
    --brightness-hover: 180%;
    --brightness-down: 80%;
    --clip-edges: 0.125em;
}

.ahura_player input[type="range"]:active {
    cursor: grabbing;
}

.ahura_player input[type="range"]:disabled {
    filter: grayscale(1);
    opacity: 0.3;
    cursor: not-allowed;
}

.ahura_player input[type="range"],
.ahura_player input[type="range"]::-webkit-slider-runnable-track,
.ahura_player input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    transition: all ease 100ms;
    height: var(--thumb-height);
}

.ahura_player input[type="range"]::-webkit-slider-runnable-track,
.ahura_player input[type="range"]::-webkit-slider-thumb {
    position: relative;
}

.ahura_player input[type="range"]::-webkit-slider-thumb {
    --thumb-radius: calc((var(--thumb-height) * 0.5) - 1px);
    --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5 - 0.5px);
    --clip-bottom: calc(var(--thumb-height) - var(--clip-top));
    --clip-further: calc(100% + 1px);
    --box-fill: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0 100vmax currentColor;
    width: var(--thumb-width, var(--thumb-height));
    background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--track-height) + 1px);
    background-color: currentColor;
    box-shadow: var(--box-fill);
    border-radius: var(--thumb-width, var(--thumb-height));
    filter: brightness(100%);
    clip-path: polygon(
            100% -1px,
            var(--clip-edges) -1px,
            0 var(--clip-top),
            -100vmax var(--clip-top),
            -100vmax var(--clip-bottom),
            0 var(--clip-bottom),
            var(--clip-edges) 100%,
            var(--clip-further) var(--clip-further)
    );
}

.ahura_player input[type="range"]:hover::-webkit-slider-thumb {
    filter: brightness(var(--brightness-hover));
    cursor: grab;
}

.ahura_player input[type="range"]:active::-webkit-slider-thumb {
    filter: brightness(var(--brightness-down));
    cursor: grabbing;
}

.ahura_player input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(var(--track-color) 0 0) scroll no-repeat center /
		100% calc(var(--track-height) + 1px);
}

.ahura_player input[type="range"]:disabled::-webkit-slider-thumb {
    cursor: not-allowed;
}

.ahura_player input[type="range"],
.ahura_player input[type="range"]::-moz-range-track,
.ahura_player input[type="range"]::-moz-range-thumb {
    appearance: none;
    transition: all ease 100ms;
    height: var(--thumb-height);
}

.ahura_player input[type="range"]::-moz-range-track,
.ahura_player input[type="range"]::-moz-range-thumb,
.ahura_player input[type="range"]::-moz-range-progress {
    background: #fff0;
}

.ahura_player input[type="range"]::-moz-range-thumb {
    background: currentColor;
    border: 0;
    width: var(--thumb-width, var(--thumb-height));
    border-radius: var(--thumb-width, var(--thumb-height));
    cursor: grab;
}

.ahura_player input[type="range"]:active::-moz-range-thumb {
    cursor: grabbing;
}

.ahura_player input[type="range"]::-moz-range-track {
    width: 100%;
    background: var(--track-color);
}

.ahura_player input[type="range"]::-moz-range-progress {
    appearance: none;
    background: currentColor;
    transition-delay: 30ms;
}

.ahura_player input[type="range"]::-moz-range-track,
.ahura_player input[type="range"]::-moz-range-progress {
    height: calc(var(--track-height) + 1px);
    border-radius: var(--track-height);
}

.ahura_player input[type="range"]::-moz-range-thumb,
.ahura_player input[type="range"]::-moz-range-progress {
    filter: brightness(100%);
}

.ahura_player input[type="range"]:hover::-moz-range-thumb,
.ahura_player input[type="range"]:hover::-moz-range-progress {
    filter: brightness(var(--brightness-hover));
}

.ahura_player input[type="range"]:active::-moz-range-thumb,
.ahura_player input[type="range"]:active::-moz-range-progress {
    filter: brightness(var(--brightness-down));
}

.ahura_player input[type="range"]:disabled::-moz-range-thumb {
    cursor: not-allowed;
}

@media screen and (max-width: 767px) {
    .video_controls {
        height: auto;
    }

    .video_controls_wrapper {
        flex-wrap: nowrap;
        padding: 6px;
    }

    .video_controls .video_controls_top {
        width: auto;
    }

    .ahura_player input[type="range"].video_audio {
        width: 60px;
    }

    .video_timer {
        display: none;
    }

    .video-play-button .ah-theme-icon,
    .video-play-button .ah-isax,
    .video-play-button i {
        width: 72px;
        height: 72px;
    }

    .video-play-button .ah-theme-icon img,
    .video-play-button .ah-isax img {
        width: 34px;
        height: 34px;
    }
}