.ctrex-ad-outer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ctrex-ad-container-hidden {
    display: none;
}

.ctrex-ad-wl-container {
    display: none;
    z-index: 1;
}

.ctrex-ad-wl-container.ctrex-ad-sticky {
    position: absolute;
    top: 0;
    left: 0;
}

.ctrex-ad-wl-container.is-active {
    display: block;
    z-index: 10;
}

.ctrex-ad-container {
    overflow: hidden;
    position: relative;
    height: 0;
    width: 0;
}

.ctrex-ad-container.has-prebid {
    width: auto;
    height: auto;
    overflow: visible;
}

/* ctrex-close-btn:start */
/* !important guards against publisher CSS; visibility and animation are left
   overridable because the ctrex-close-show-N classes drive the delayed reveal. */
.ctrex-ad-close-btn {
    all: initial;
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--ctrex-close-size, 20px) !important;
    height: var(--ctrex-close-size, 20px) !important;
    background: rgba(31, 31, 31, 0.52) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font: normal 14px/1 sans-serif !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    user-select: none !important;
    transform: scale(var(--ctrex-close-scale, 1)) !important;
    filter: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    z-index: 2147483647 !important;
    transition: none !important;
    opacity: 1 !important;
    visibility: hidden;
}

.ctrex-ad-close-btn svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 3.5 !important;
    overflow: visible !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    visibility: inherit !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    filter: none !important;
    float: none !important;
    position: static !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
}

.ctrex-ad-close-btn path {
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 3.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    vector-effect: non-scaling-stroke !important;
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    visibility: inherit !important;
    transform: none !important;
    filter: none !important;
}

/* Outside the creative: transform-origin sits on the edge facing the creative,
   so the --ctrex-close-scale counter-scale does not push the button onto it. */
.ctrex-ad-close-btn.ctrex-close-pos-left {
    top: calc(-1 * var(--ctrex-close-size, 20px) - 2px) !important;
    left: 2px !important;
    right: auto !important;
    bottom: auto !important;
    transform-origin: left bottom !important;
}

.ctrex-ad-close-btn.ctrex-close-pos-right {
    top: calc(-1 * var(--ctrex-close-size, 20px) - 2px) !important;
    right: 2px !important;
    left: auto !important;
    bottom: auto !important;
    transform-origin: right bottom !important;
}

.ctrex-ad-close-btn.ctrex-close-pos-bottomleft {
    bottom: calc(-1 * var(--ctrex-close-size, 20px) - 2px) !important;
    left: 2px !important;
    right: auto !important;
    top: auto !important;
    transform-origin: left top !important;
}

.ctrex-ad-close-btn.ctrex-close-pos-bottomright {
    bottom: calc(-1 * var(--ctrex-close-size, 20px) - 2px) !important;
    right: 2px !important;
    left: auto !important;
    top: auto !important;
    transform-origin: right top !important;
}

.ctrex-ad-close-btn.ctrex-close-inside.ctrex-close-pos-left {
    top: 2px !important;
    transform-origin: left top !important;
}

.ctrex-ad-close-btn.ctrex-close-inside.ctrex-close-pos-right {
    top: 2px !important;
    transform-origin: right top !important;
}

.ctrex-ad-close-btn.ctrex-close-inside.ctrex-close-pos-bottomleft {
    bottom: 2px !important;
    transform-origin: left bottom !important;
}

.ctrex-ad-close-btn.ctrex-close-inside.ctrex-close-pos-bottomright {
    bottom: 2px !important;
    transform-origin: right bottom !important;
}

.ctrex-ad-close-btn.ctrex-close-show-0 { visibility: visible; }
.ctrex-ad-close-btn.ctrex-close-show-1 { visibility: visible; animation: ctrex-close-reveal 0s 1s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-2 { visibility: visible; animation: ctrex-close-reveal 0s 2s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-3 { visibility: visible; animation: ctrex-close-reveal 0s 3s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-4 { visibility: visible; animation: ctrex-close-reveal 0s 4s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-5 { visibility: visible; animation: ctrex-close-reveal 0s 5s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-6 { visibility: visible; animation: ctrex-close-reveal 0s 6s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-7 { visibility: visible; animation: ctrex-close-reveal 0s 7s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-8 { visibility: visible; animation: ctrex-close-reveal 0s 8s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-9 { visibility: visible; animation: ctrex-close-reveal 0s 9s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-10 { visibility: visible; animation: ctrex-close-reveal 0s 10s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-11 { visibility: visible; animation: ctrex-close-reveal 0s 11s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-12 { visibility: visible; animation: ctrex-close-reveal 0s 12s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-13 { visibility: visible; animation: ctrex-close-reveal 0s 13s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-14 { visibility: visible; animation: ctrex-close-reveal 0s 14s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-15 { visibility: visible; animation: ctrex-close-reveal 0s 15s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-16 { visibility: visible; animation: ctrex-close-reveal 0s 16s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-17 { visibility: visible; animation: ctrex-close-reveal 0s 17s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-18 { visibility: visible; animation: ctrex-close-reveal 0s 18s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-19 { visibility: visible; animation: ctrex-close-reveal 0s 19s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-20 { visibility: visible; animation: ctrex-close-reveal 0s 20s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-21 { visibility: visible; animation: ctrex-close-reveal 0s 21s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-22 { visibility: visible; animation: ctrex-close-reveal 0s 22s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-23 { visibility: visible; animation: ctrex-close-reveal 0s 23s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-24 { visibility: visible; animation: ctrex-close-reveal 0s 24s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-25 { visibility: visible; animation: ctrex-close-reveal 0s 25s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-26 { visibility: visible; animation: ctrex-close-reveal 0s 26s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-27 { visibility: visible; animation: ctrex-close-reveal 0s 27s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-28 { visibility: visible; animation: ctrex-close-reveal 0s 28s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-29 { visibility: visible; animation: ctrex-close-reveal 0s 29s backwards; }
.ctrex-ad-close-btn.ctrex-close-show-30 { visibility: visible; animation: ctrex-close-reveal 0s 30s backwards; }

@keyframes ctrex-close-reveal {
    from {
        visibility: hidden;
    }
}
/* ctrex-close-btn:end */

.ctrex-video-ad-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    border-radius: inherit;
}

.ctrex-video-ad-container.is-video-loading {
    background: transparent;
}

.ctrex-video-ad-container.is-video-loading .ctrex-video-element {
    opacity: 0;
}

.ctrex-video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ctrex-video-mute-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
}

.ctrex-video-ad-container:hover .ctrex-video-mute-overlay,
.ctrex-video-ad-container:focus-within .ctrex-video-mute-overlay {
    opacity: 1;
    pointer-events: auto;
}

.ctrex-video-mute-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
}

.ctrex-video-mute-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.ctrex-video-mute-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.ctrex-video-mute-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.ctrex-inimg-anchor {
    position: relative;
}

.ctrex-inimg-host {
    position: absolute;
    overflow: visible;
}

.ctrex-native-card {
    display: block;
    text-decoration: none;
    color: #111827;
    font-family: Arial, sans-serif;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.ctrex-native-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
    border-radius: 6px;
}

.ctrex-native-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ctrex-native-body {
    font-size: 13px;
    margin-bottom: 8px;
}

.ctrex-native-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ctrex-native-sponsor {
    font-size: 11px;
    color: #6b7280;
}

.ctrex-native-cta {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
}

/* ctrex-content-fallback:start */
.ctrex-content-fallback-host {
    display: block !important;
    box-sizing: border-box !important;
    position: fixed !important;
    overflow: hidden !important;
    border-radius: var(--ctrex-cf-radius, 6px) !important;
    background: #0b1220 !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    text-align: left !important;
    direction: ltr !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-text-size-adjust: 100% !important;
    -webkit-font-smoothing: antialiased !important;
}

.ctrex-content-fallback-host *,
.ctrex-content-fallback-host *::before,
.ctrex-content-fallback-host *::after {
    box-sizing: border-box !important;
    font-family: inherit !important;
    -webkit-font-smoothing: inherit !important;
}

.ctrex-content-fallback-slide {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #0b1220 !important;
    opacity: 1;
    animation: ctrex-cf-fade-in 280ms ease-out !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.ctrex-content-fallback-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transform: scale(1);
    transform-origin: center center !important;
    animation: ctrex-cf-zoom-in var(--ctrex-cf-zoom-duration, 4s) ease-out forwards !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
}

.ctrex-content-fallback-overlay {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    padding: var(--ctrex-cf-overlay-padding, 12px) var(--ctrex-cf-content-inset, 12px) var(--ctrex-cf-content-inset, 12px) !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 55%) !important;
    margin: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.ctrex-content-fallback-title {
    color: #fff !important;
    text-decoration: none !important;
    font-size: var(--ctrex-cf-title-size, 16px) !important;
    line-height: var(--ctrex-cf-title-line-height, 1.25) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65) !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: min(100%, var(--ctrex-cf-title-max-ch, 28ch)) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-indent: 0 !important;
}

.ctrex-content-fallback-title:hover {
    text-decoration: underline !important;
}

.ctrex-content-fallback-title-row {
    position: relative !important;
    padding-right: var(--ctrex-cf-title-row-padding, 36px) !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    pointer-events: auto !important;
}

.ctrex-content-fallback-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    top: auto !important;
    min-width: var(--ctrex-cf-cta-size, 24px) !important;
    width: var(--ctrex-cf-cta-size, 24px) !important;
    height: var(--ctrex-cf-cta-size, 24px) !important;
    border-radius: 999px !important;
    border: 1px solid currentColor !important;
    background: rgba(15, 23, 42, 0.55) !important;
    color: var(--ctrex-cf-accent, #3b82f6) !important;
    text-decoration: none !important;
    line-height: 1 !important;
    font-size: var(--ctrex-cf-cta-font-size, 12px) !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    z-index: 3 !important;
    transition: background 0.18s ease, transform 0.18s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.ctrex-content-fallback-cta:hover {
    background: rgba(15, 23, 42, 0.78) !important;
    transform: scale(1.04) !important;
}

.ctrex-content-fallback-progress {
    position: absolute !important;
    top: 8px !important;
    left: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    z-index: 3 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.ctrex-content-fallback-progress-track {
    flex: 1 1 0 !important;
    height: 3px !important;
    border-radius: 999px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.32) !important;
    cursor: pointer !important;
    overflow: hidden !important;
    min-width: 0 !important;
}

.ctrex-content-fallback-progress-fill {
    display: block !important;
    width: 0;
    height: 100% !important;
    border-radius: inherit !important;
    background: var(--ctrex-cf-accent, #3b82f6) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.ctrex-content-fallback-progress-fill.filled {
    width: 100%;
}

.ctrex-content-fallback-progress-fill.playing {
    animation-name: ctrex-cf-progress-fill !important;
    animation-timing-function: linear !important;
    animation-fill-mode: forwards !important;
}

.ctrex-content-fallback-nav {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: var(--ctrex-cf-nav-size, 26px) !important;
    height: var(--ctrex-cf-nav-size, 26px) !important;
    border: none !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.55) !important;
    color: var(--ctrex-cf-accent, #3b82f6) !important;
    font-size: var(--ctrex-cf-nav-font-size, 16px) !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: background 0.18s ease, transform 0.18s ease !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-indent: 0 !important;
}

.ctrex-content-fallback-nav:hover {
    background: rgba(15, 23, 42, 0.78) !important;
    transform: translateY(-50%) scale(1.04) !important;
}

.ctrex-content-fallback-nav.prev {
    left: var(--ctrex-cf-nav-offset, 8px) !important;
    right: auto !important;
}

.ctrex-content-fallback-nav.next {
    right: var(--ctrex-cf-nav-offset, 8px) !important;
    left: auto !important;
}

.ctrex-content-fallback-empty {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: var(--ctrex-cf-empty-size, 13px) !important;
    color: #cbd5e1 !important;
    text-align: center !important;
    padding: 8px !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
}

@keyframes ctrex-cf-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes ctrex-cf-zoom-in {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

@keyframes ctrex-cf-progress-fill {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
/* ctrex-content-fallback:end */

.ctrex-cl-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
}

.ctrex-cl-backdrop.is-visible {
    display: flex;
}

.ctrex-cl-modal {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 92vw;
    padding: 48px 40px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ctrex-cl-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    width: 100%;
    overflow: hidden;
}

.ctrex-cl-logo-wrap {
    max-width: 200px;
    max-height: 80px;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.ctrex-cl-logo-wrap img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ctrex-cl-domain {
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ctrex-cl-title {
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.ctrex-cl-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin: 0 0 32px 0;
}

.ctrex-cl-cta {
    display: block;
    width: 100%;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ctrex-cl-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ctrex-cl-unlock-msg {
    font-size: 13px;
    color: #888;
    margin-top: 16px;
    display: none;
}

.ctrex-cl-unlock-msg.is-visible {
    display: block;
}

@media (max-width: 480px) {
    .ctrex-cl-modal {
        padding: 32px 20px;
    }

    .ctrex-cl-logo-row {
        gap: 10px;
        margin-bottom: 20px;
    }

    .ctrex-cl-logo-wrap {
        max-width: 140px;
        max-height: 56px;
    }

    .ctrex-cl-logo-wrap img {
        max-height: 56px;
    }

    .ctrex-cl-domain {
        font-size: clamp(20px, 6.8vw, 28px);
    }

    .ctrex-cl-title {
        font-size: 16px;
    }

    .ctrex-cl-text {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 24px;
    }
}
