.dgf-tasy-video {
    position: relative;
    z-index: 8;
    margin-top: -58px;
    padding: 0 0 clamp(68px, 14vw, 92px);
    background: linear-gradient(180deg, transparent 0 58px, #fff 58px 100%);
}

.dgf-tasy-video__container {
    position: relative;
}

.dgf-tasy-video__position {
    position: relative;
    width: min(100%, 640px);
    margin-inline: auto;
}

.dgf-tasy-video__motion {
    position: relative;
    transform-origin: 82% 100%;
}

.dgf-tasy-video__shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--dgf-radius-card);
    background: var(--dgf-dark-900);
    box-shadow:
        0 30px 70px -38px rgba(6,19,39,.70),
        0 12px 28px -22px rgba(245,130,31,.48);
    isolation: isolate;
}

.dgf-tasy-video__facade,
.dgf-tasy-video__iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.dgf-tasy-video__facade {
    z-index: 1;
    overflow: hidden;
    color: #fff;
    background: var(--dgf-dark-900);
    cursor: pointer;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

.dgf-tasy-video__facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    transform: scale(1.012);
    transition: transform .55s cubic-bezier(.22,1,.36,1), filter .35s ease;
}

.dgf-tasy-video__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6,19,39,.08) 22%, rgba(6,19,39,.72) 100%),
        linear-gradient(90deg, rgba(6,19,39,.26), transparent 62%);
    transition: background-color .28s ease;
}

.dgf-tasy-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--dgf-orange), var(--dgf-orange-soft));
    box-shadow: 0 18px 38px -18px rgba(245,130,31,.86);
    transform: translate(-50%, -50%);
    transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease;
}

.dgf-tasy-video__play svg {
    width: 25px;
    height: 25px;
    margin-left: 2px;
}

.dgf-tasy-video__caption {
    position: absolute;
    z-index: 3;
    right: 20px;
    bottom: 18px;
    left: 20px;
    color: #fff;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.dgf-tasy-video__caption > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: #FFD0A4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dgf-tasy-video__caption > span::before {
    content: '';
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--dgf-orange);
}

.dgf-tasy-video__caption h2 {
    max-width: calc(100% - 70px);
    margin: 0;
    color: #fff;
    font-size: clamp(17px, 4.8vw, 22px);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.dgf-tasy-video__caption h2 em {
    color: #D9E3F1;
    font-style: normal;
    font-weight: 700;
}

.dgf-tasy-video__facade:hover img {
    filter: saturate(1.06) brightness(.96);
    transform: scale(1.035);
}

.dgf-tasy-video__facade:hover .dgf-tasy-video__play {
    box-shadow: 0 22px 42px -18px rgba(245,130,31,.96);
    transform: translate(-50%, -50%) scale(1.06);
}

.dgf-tasy-video__facade:focus-visible {
    outline: 3px solid rgba(245,130,31,.78);
    outline-offset: -5px;
}

.dgf-tasy-video__iframe {
    z-index: 4;
    background: #000;
}

.dgf-tasy-video.is-playing .dgf-tasy-video__caption {
    visibility: hidden;
    opacity: 0;
}

@media (min-width: 1024px) {
    .dgf-tasy-video {
        min-height: 210px;
        margin-top: 0;
        padding: 64px 0 80px;
        background: #fff;
    }

    .dgf-tasy-video.is-enhanced {
        height: clamp(620px, 72vh, 820px);
        min-height: 0;
        padding: 0;
    }

    .dgf-tasy-video__position {
        width: clamp(320px, 26vw, 430px);
        margin-right: 0;
    }

    .dgf-tasy-video.is-enhanced .dgf-tasy-video__position {
        position: fixed;
        z-index: 48;
        right: clamp(16px, 2vw, 32px);
        bottom: 28px;
        margin: 0;
        pointer-events: none;
    }

    .dgf-tasy-video.is-enhanced .dgf-tasy-video__motion {
        pointer-events: auto;
        will-change: opacity, transform;
    }

    .dgf-tasy-video.is-enhanced .dgf-tasy-video__shell {
        will-change: border-radius, box-shadow;
    }

    .dgf-tasy-video__caption {
        right: 18px;
        bottom: 16px;
        left: 18px;
    }

    .dgf-tasy-video__caption h2 {
        font-size: clamp(17px, 1.45vw, 21px);
    }
}

@media (max-width: 520px) {
    .dgf-tasy-video__shell {
        border-radius: 16px;
    }

    .dgf-tasy-video__play {
        width: 52px;
        height: 52px;
    }

    .dgf-tasy-video__caption {
        right: 15px;
        bottom: 14px;
        left: 15px;
    }

    .dgf-tasy-video__caption h2 {
        max-width: calc(100% - 52px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dgf-tasy-video__facade img,
    .dgf-tasy-video__play,
    .dgf-tasy-video__caption {
        transition: none;
    }
}
