/* Omox Movie ad breaks - layered inside the Video.js player element.
 *
 * Every rule is scoped under ".video-js .jx-ad". Video.js resets buttons with
 * ".video-js button { background: 0 0; border: none; display: inline-block;
 * font-size: inherit; ... }" and sets a 10px base font on ".video-js", so a
 * single-class selector here loses the cascade and the controls render bare.
 */

/* Bootstrap's ".ratio > *" is what gives a child of a .ratio box its height,
 * by absolutely positioning it. Video.js ships ".video-js { position: relative }"
 * at the same specificity and loads later, so it wins - the player drops back
 * into normal flow, its height: 100% has no parent height to resolve against,
 * and it collapses to 0. Sound plays on with no picture and no controls.
 * This file loads after video-js.css, so restating the position fixes it. */
.ratio > .video-js,
.ratio > .video-js.vjs-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-js.jx-ad-active .vjs-control-bar,
.video-js.jx-ad-active .vjs-big-play-button,
.video-js.jx-ad-active .vjs-loading-spinner,
.video-js.jx-ad-active .vjs-text-track-display {
    display: none !important;
}

.video-js .jx-ad {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: #000;
    color: #fff;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

.video-js .jx-ad .jx-ad-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

/* Top: "Ad" badge and time remaining */
.video-js .jx-ad .jx-ad-top {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.video-js .jx-ad .jx-ad-badge {
    background: #f8a518;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 4px;
}

.video-js .jx-ad .jx-ad-clock {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.video-js .jx-ad button,
.video-js .jx-ad a {
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

.video-js .jx-ad button:focus-visible,
.video-js .jx-ad a:focus-visible {
    outline: 2px solid #f8a518;
    outline-offset: 2px;
}

.video-js .jx-ad svg {
    display: block;
    fill: currentColor;
}

/* Mute - top right */
.video-js .jx-ad .jx-ad-mute {
    position: absolute;
    top: 8px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    cursor: pointer;
    transition: background .2s;
}

/* Fullscreen - left of mute */
.video-js .jx-ad .jx-ad-full {
    position: absolute;
    top: 8px;
    right: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    cursor: pointer;
    transition: background .2s;
}

.video-js .jx-ad .jx-ad-full svg {
    width: 24px;
    height: 24px;
}

.video-js .jx-ad .jx-ad-full:hover,
.video-js .jx-ad .jx-ad-mute:hover {
    background: rgba(0, 0, 0, .7);
}

.video-js .jx-ad .jx-ad-mute svg {
    width: 22px;
    height: 22px;
}

/* Centre play - shown when playback needs a tap, or after the viewer paused the ad */
.video-js .jx-ad .jx-ad-resume {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    padding: 0 0 0 4px;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    cursor: pointer;
}

.video-js .jx-ad .jx-ad-resume svg {
    width: 34px;
    height: 34px;
}

.video-js .jx-ad .jx-ad-resume[hidden] {
    display: none;
}

/* Bottom: click-through on the left, skip on the right */
.video-js .jx-ad .jx-ad-bottom {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.video-js .jx-ad .jx-ad-bottom > * {
    pointer-events: auto;
}

.video-js .jx-ad .jx-ad-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 30px;
    background-image: linear-gradient(135deg, #ec5b2b 0%, #e0840f 100%);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

.video-js .jx-ad .jx-ad-cta:hover {
    color: #fff;
    filter: brightness(1.1);
}

.video-js .jx-ad .jx-ad-skip {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px 9px 16px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 4px;
    background: rgba(0, 0, 0, .65);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.video-js .jx-ad .jx-ad-skip svg {
    width: 18px;
    height: 18px;
}

.video-js .jx-ad .jx-ad-skip:not(:disabled):hover {
    background: rgba(0, 0, 0, .9);
    border-color: #fff;
}

.video-js .jx-ad .jx-ad-skip:disabled {
    cursor: default;
    color: rgba(255, 255, 255, .8);
    border-color: rgba(255, 255, 255, .25);
}

.video-js .jx-ad .jx-ad-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, .2);
    pointer-events: none;
}

.video-js .jx-ad .jx-ad-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #f8a518;
    transition: width .25s linear;
}

@media (max-width: 575.98px) {
    .video-js .jx-ad .jx-ad-top { top: 8px; left: 8px; }
    .video-js .jx-ad .jx-ad-mute { top: 4px; right: 6px; width: 34px; height: 34px; }
    .video-js .jx-ad .jx-ad-mute svg { width: 20px; height: 20px; }
    .video-js .jx-ad .jx-ad-full { top: 4px; right: 46px; width: 34px; height: 34px; }
    .video-js .jx-ad .jx-ad-full svg { width: 22px; height: 22px; }
    .video-js .jx-ad .jx-ad-bottom { left: 8px; right: 8px; bottom: 12px; }
    .video-js .jx-ad .jx-ad-cta,
    .video-js .jx-ad .jx-ad-skip { padding: 7px 11px; font-size: 12.5px; }
    .video-js .jx-ad .jx-ad-resume { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
    .video-js .jx-ad .jx-ad-resume svg { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .video-js .jx-ad .jx-ad-progress span { transition: none; }
}
