/* Responsive container: scales fluidly between 100% and max-width */
.video-container {
position: relative;
width: 100%;
max-width: 800px; /* adjust max width as needed */
margin: 40px auto;
}

/* Force the tech element to letterbox */
.video-js .vjs-tech {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    background-color: #000;
}

/* Video.js fluid mode handles width:100% & height:auto */
.video-js.vjs-fluid {
/* default 16:9 ratio; override if needed:
    padding-top: 75%; for 4:3 */
}

/* —— Pure-CSS triangle base —— */
.triangle {
width: 0;
height: 0;
border-top: 0.5rem solid transparent;
border-bottom: 0.5rem solid transparent;
border-left: 0.8rem solid #fff;        /* triangle color */
background: none;
display: inline-block;
}

/* rotate for left-pointing */
.triangle.left {
transform: rotate(180deg);
}

.video-js .vjs-progress-control .vjs-play-progress:before {
background: #ED1C24 !important;
}
.video-js .vjs-play-progress {
background-color: #ED1C24 !important;
}
.video-js .vjs-big-play-button .vjs-icon-placeholder:before {
transform: rotate(-45deg);
content: "\21BA";
font-size: 3rem;
}
.video-js .vjs-big-play-button:active,
.video-js .vjs-big-play-button:focus,
.video-js:hover .vjs-big-play-button {
color: #fff!important;
}
.video-js .vjs-loading-spinner {
border-color: #fff;
}
.vjs-big-play-button {
display: none !important;
}
.thumbnail-preview {
position: absolute;
bottom: 6em;
left: 50%;
transform: translateX(-50%) scale(1.0);
transform-origin: bottom center;
display: none;
z-index: 10;
}
.thumbnail-preview.vertical {
transform: translateX(-50%) scale(0.5);
border: 4px solid #fff!important;
border-radius: 20px!important;
}

/* strip out any bottom/left/transform here – JS will place it */
.thumbnail-time {
position: absolute;
display: none;
padding: 2px 0;
text-align: center;
color: #fff;
font-size: 1em;
background: transparent;
pointer-events: none;
}
.video-js .vjs-time-tooltip {
display: none !important;
}

@keyframes clickFlash {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: 0;
    }
}

#bezel-icon {
position: absolute;
top: 50%;
left: 50%;
width: 6rem;
height: 6rem;
background: rgba(0,0,0,0.5);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
opacity: 0;
transform-origin: center center;
transform: translate(-50%, -50%) scale(0.8);
transition: opacity .2s, transform .3s;
z-index: 1;
}
#bezel-icon.show {
/* match your 100% keyframe state exactly */
transform: translate3d(-50%, -50%, 0) scale(1.25);
opacity: 0;
animation: clickFlash 0.5s cubic-bezier(0,0,0.8,1) forwards;
/* kill the transition so nothing else interferes */
transition: none;
}
#bezel-icon .vjs-icon-placeholder {
font-size: 3.5rem;
color: #fff;
}

/* ——————————————————————————
SKIP-BEZEL (desktop only)
—————————————————————————— */
#skip-bezel {
position: absolute;
top: 50%;
width: 7.5rem;
height: 7.5rem;
background: rgba(0,0,0,0.5);
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
z-index: 1;
transform: translate(0, -50%);
transition: opacity .3s ease-in;
}
/* left / right placement */
#skip-bezel.left  { left: 10%; }
#skip-bezel.right { right: 10%; }

/* fade bezel in/out only */
#skip-bezel.show { opacity: 1; }

/* arrow row */
#skip-bezel .icons {
display: flex;
margin-bottom: 0.3em;
}
#skip-bezel .icons span {
padding: 0px 4px 0px 4px;
font-size: 1rem;
color: #fff;
opacity: 0.5;
}
@keyframes arrowFade {
to { opacity: 1; }
}
/* sequential fade-ins */
/* For FORWARD (default left-to-right fade) */
#skip-bezel.right.show .icons span:nth-child(1) {
animation: arrowFade 0.2s forwards 0s;
}
#skip-bezel.right.show .icons span:nth-child(2) {
animation: arrowFade 0.2s forwards 0.1s;
}
#skip-bezel.right.show .icons span:nth-child(3) {
animation: arrowFade 0.2s forwards 0.2s;
}

/* For REWIND (right-to-left fade) */
#skip-bezel.left.show .icons span:nth-child(1) {
animation: arrowFade 0.2s forwards 0.2s;
}
#skip-bezel.left.show .icons span:nth-child(2) {
animation: arrowFade 0.2s forwards 0.1s;
}
#skip-bezel.left.show .icons span:nth-child(3) {
animation: arrowFade 0.2s forwards 0s;
}

#skip-bezel .skip-text {
font-size: 0.8rem;
color: #fff;
line-height: 1;
}

@media (max-width: 768px) {
    /* strip the old bg so only ::before shows */
    #skip-bezel {
    background: none !important;
    }

    /* base circle styling: size + centering logic will be overridden per side */
    #skip-bezel::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 40rem;
    height: 40rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    z-index: 0;
    }

    /* LEFT bezel circle  → 10% from left */
    #skip-bezel.left::before {
    left: -30rem;
    /* translate only on Y */
    transform: translateY(-50%);
    }

    /* RIGHT bezel circle → 10% from right */
    #skip-bezel.right::before {
    right: -30rem;
    /* clear the left offset and only translate Y */
    left: auto;
    transform: translateY(-50%);
    }

    /* keep icons/text fully opaque and centred in the container */
    #skip-bezel .icons,
    #skip-bezel .skip-text {
    position: relative;
    z-index: 1;
    }
    /* left / right placement */
    #skip-bezel.left  { left: -1%; }
    #skip-bezel.right { right: -1%; }
}
/* Base: catch skip button in any state */
.video-js .vast-skip-button,
.video-js .vast-skip-button.enabled,
.video-js .vast-skip-button.disabled {
    position: absolute !important;
    top:    auto         !important;  /* remove any top:0 */
    bottom: 3.5rem       !important;  /* float just above the control bar */
    right:  1rem         !important;  /* inset from right edge */
    left:   auto         !important;
    transform: none      !important;
    margin: 0            !important;
    z-index: 1        !important;

    /* pill styling */
    background: rgba(0,0,0,0.7) !important;
    color:      #fff            !important;
    font-size:  1rem            !important;
    line-height:1.4             !important;
    padding:    0.6rem 1.5rem   !important;
    white-space: nowrap         !important;
    text-align: center          !important;
    pointer-events: all         !important;
}

/* If there’s an inner container, strip its own positioning */
.video-js .vast-skip-button > *,
.video-js .vast-skip-button.enabled > *,
.video-js .vast-skip-button.disabled > * {
    background: none       !important;
    color:      inherit    !important;
    font:       inherit    !important;
    padding:    0           !important;
    margin:     0           !important;
    transform:  none        !important;
    top:        auto        !important;
    bottom:     auto        !important;
    left:       auto        !important;
    right:      auto        !important;
}

/* the invisible container that holds our frame */
#pause-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: none;      /* hide by default */
    pointer-events: none;
}

/* the dark frame behind the ad + padding */
#pause-banner .video-banner-ads{
    background: rgba(0,0,0,1.0);
    padding: 8px 8px 32px 8px;
    position: relative;
    width: 300px;
    height: 250px;
    pointer-events: auto;  /* allow clicks within the frame */
}

/* close button */
#pause-banner .close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border: none;
    background: #353535;
    color: #fff;
    font-size: 24px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
}
#pause-banner .ads-title {
    background: #1B1B1B;
    display: flex;
    align-items: center; /* vertically center the button */
    justify-content: flex-end; /* move button to the right */
    margin-top: 2px;
    padding: 16px;
    pointer-events: auto; /* Ensure it accepts pointer events */
    z-index: 1001;
}