/* ==========================================================================
   MT - Video Feature
   Dark section with copy + stats and a poster that opens a pop-up player.
   ========================================================================== */

.elementor-widget-mtfe-video-feature { width: 100%; }

.mtfe-vf {
    --vf-bg: #0E0A18;
    --vf-text: #FFFFFF;
    --vf-muted: #B9B4C6;
    --vf-accent: #FFB800;
    --vf-btn-text: #191326;
    --vf-glow: #2340D8;

    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 64px;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 25px;
    box-sizing: border-box;
    color: var(--vf-text);
}

/* copy */
.mtfe-vf__eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.18em; color: var(--vf-accent); }
.mtfe-vf .mtfe-vf__title {
    margin: 16px 0 20px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--vf-text);
}
.mtfe-vf .mtfe-vf__title em { font-style: normal; font-size: inherit; color: var(--vf-accent); }
.mtfe-vf__text { margin: 0 0 30px; max-width: 500px; font-size: 17px; line-height: 1.7; color: var(--vf-muted); }

.mtfe-vf__stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0 0 36px; padding: 24px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.mtfe-vf__stats li { display: flex; flex-direction: column; gap: 2px; }
.mtfe-vf__stats strong { font-size: 32px; line-height: 1; font-weight: 800; color: var(--vf-text); }
.mtfe-vf__stats span { font-size: 13px; color: var(--vf-muted); }

.mtfe-vf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.mtfe-vf .mtfe-vf__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 26px 10px 10px;
    border: 0;
    border-radius: 40px;
    background: var(--vf-accent);
    color: var(--vf-btn-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.mtfe-vf .mtfe-vf__btn:hover, .mtfe-vf .mtfe-vf__btn:focus-visible { background: #FFFFFF; color: var(--vf-btn-text); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(255, 184, 0, 0.6); }
.mtfe-vf .mtfe-vf__btn:focus-visible { outline: 2px solid var(--vf-accent); outline-offset: 3px; }
.mtfe-vf__btn-ico { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: var(--vf-btn-text); }
.mtfe-vf__btn-ico svg { width: 16px; height: 16px; margin-left: 2px; fill: var(--vf-accent); }
.mtfe-vf__link { color: var(--vf-text); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.mtfe-vf__link:hover { color: var(--vf-accent); text-decoration-color: var(--vf-accent); }

/* poster */
.mtfe-vf__media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 50px 90px -40px rgba(35, 64, 216, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.mtfe-vf__media::before {   /* soft cobalt glow behind the poster edge */
    content: "";
    position: absolute;
    inset: -30%;
    z-index: -1;
    background: radial-gradient(closest-side, var(--vf-glow), transparent);
    opacity: 0.35;
}
.mtfe-vf .mtfe-vf__media img.mtfe-vf__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.8s ease; }
.mtfe-vf__media:hover img.mtfe-vf__img { transform: scale(1.03); }
.mtfe-vf__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 10, 24, 0.05) 40%, rgba(14, 10, 24, 0.55)); pointer-events: none; }

.mtfe-vf .mtfe-vf__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 96px;
    height: 96px;
    margin: 0;
    padding: 0;
    translate: -50% -50%;
    border: 0;
    border-radius: 50%;
    background: var(--vf-accent);
    color: var(--vf-btn-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.55);
    transition: transform 0.25s ease, background-color 0.25s ease;
}
.mtfe-vf .mtfe-vf__play svg { width: 34px; height: 34px; margin-left: 5px; fill: currentColor; }
.mtfe-vf .mtfe-vf__play:hover, .mtfe-vf .mtfe-vf__play:focus-visible { background: #FFFFFF; transform: scale(1.06); }
.mtfe-vf .mtfe-vf__play:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 4px; }
.mtfe-vf__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--vf-accent); animation: vf-ring 2.2s ease-out infinite; }
.mtfe-vf__ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--vf-accent); animation: vf-ring 2.2s ease-out 1.1s infinite; }
.mtfe-vf__chip {
    position: absolute;
    left: 22px;
    bottom: 20px;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(14, 10, 24, 0.7);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}
.mtfe-vf.is-empty .mtfe-vf__play, .mtfe-vf.is-empty .mtfe-vf__btn { cursor: default; opacity: 0.85; }

/* pop-up player */
.mtfe-vf__modal {
    width: min(1100px, 92vw);
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #000000;
    overflow: visible;
}
.mtfe-vf__modal::backdrop { background: rgba(8, 6, 14, 0.88); }
.mtfe-vf__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; }
.mtfe-vf__frame iframe, .mtfe-vf__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mtfe-vf .mtfe-vf__close {
    position: absolute;
    right: -14px;
    top: -14px;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #FFFFFF;
    color: #191326;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mtfe-vf .mtfe-vf__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mtfe-vf .mtfe-vf__close:hover { background: var(--vf-accent); color: #191326; }

@keyframes vf-ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mtfe-vf__ring, .mtfe-vf__ring::after { animation: none; } }

@media (max-width: 1024px) {
    .mtfe-vf { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .mtfe-vf__media { order: -1; }
}
@media (max-width: 767px) {
    .mtfe-vf { padding: 0 15px; }
    .mtfe-vf .mtfe-vf__title, body .mtfe-vf h2.mtfe-vf__title { font-size: 34px !important; }
    .mtfe-vf .mtfe-vf__play { width: 72px; height: 72px; }
    .mtfe-vf .mtfe-vf__play svg { width: 26px; height: 26px; }
    .mtfe-vf__media { border-radius: 20px; }
    .mtfe-vf__stats strong { font-size: 26px; }
    .mtfe-vf .mtfe-vf__close { right: 6px; top: -54px; }
}

/* ==========================================================================
   Full-width background layout
   ========================================================================== */
.mtfe-vf.is-bg {
    display: flex;
    align-items: center;
    max-width: none;
    min-height: 680px;
    padding: 120px max(25px, calc((100% - 1290px) / 2));
    overflow: hidden;
}
.mtfe-vf.is-bg .mtfe-vf__copy { position: relative; z-index: 2; max-width: 560px; }
.mtfe-vf.is-bg .mtfe-vf__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
}
.mtfe-vf.is-bg .mtfe-vf__media::before { content: none; }
.mtfe-vf.is-bg .mtfe-vf__media:hover img.mtfe-vf__img { transform: none; }
.mtfe-vf.is-bg .mtfe-vf__shade {
    background:
        linear-gradient(90deg, rgba(14, 10, 24, 0.96) 0%, rgba(14, 10, 24, 0.86) 34%, rgba(14, 10, 24, 0.35) 62%, rgba(14, 10, 24, 0.1) 100%),
        linear-gradient(0deg, rgba(14, 10, 24, 0.55), transparent 30%);
}
.mtfe-vf.is-bg .mtfe-vf__play { left: 72%; width: 112px; height: 112px; }
.mtfe-vf.is-bg .mtfe-vf__play svg { width: 40px; height: 40px; }
.mtfe-vf.is-bg .mtfe-vf__chip { left: auto; right: max(25px, calc((100% - 1290px) / 2)); bottom: 32px; }
.mtfe-vf.is-bg .mtfe-vf__stats { border-top-color: rgba(255, 255, 255, 0.18); }
@media (max-width: 1024px) {
    .mtfe-vf.is-bg { padding: 90px 25px 260px; align-items: flex-start; }
    .mtfe-vf.is-bg .mtfe-vf__media { order: 0; }
    .mtfe-vf.is-bg .mtfe-vf__shade { background: linear-gradient(180deg, rgba(14, 10, 24, 0.95) 0%, rgba(14, 10, 24, 0.85) 55%, rgba(14, 10, 24, 0.2) 100%); }
    .mtfe-vf.is-bg .mtfe-vf__play { left: 50%; top: auto; bottom: 70px; translate: -50% 0; width: 88px; height: 88px; }
    .mtfe-vf.is-bg .mtfe-vf__chip { right: 25px; bottom: 24px; }
}
@media (max-width: 767px) {
    .mtfe-vf.is-bg { padding: 64px 15px 220px; }
    .mtfe-vf.is-bg .mtfe-vf__play { bottom: 56px; width: 76px; height: 76px; }
    .mtfe-vf.is-bg .mtfe-vf__chip { right: 15px; }
}
@media (max-width: 767px) {
    .mtfe-vf.is-bg { padding-bottom: 320px; }
    .mtfe-vf.is-bg .mtfe-vf__shade { background: linear-gradient(180deg, rgba(14, 10, 24, 0.94) 0%, rgba(14, 10, 24, 0.8) 52%, rgba(14, 10, 24, 0.15) 72%, rgba(14, 10, 24, 0.45) 100%); }
    .mtfe-vf.is-bg .mtfe-vf__media img.mtfe-vf__img { object-position: 62% 100%; }
    .mtfe-vf.is-bg .mtfe-vf__play { bottom: 110px; }
}
.mtfe-vf a.mtfe-vf__link, .mtfe-vf a.mtfe-vf__link:visited { color: var(--vf-text); }
.mtfe-vf a.mtfe-vf__link:hover { color: var(--vf-accent); }
