.th-video-hero,
.th-video-hero * {
    box-sizing: border-box;
}

.th-video-hero {
    position: relative;
    height: min(900px, 100svh) !important;
    min-height: 680px;
    overflow: hidden;
    background:
        radial-gradient(circle at 44% 30%, rgba(20, 103, 232, .2), transparent 28%),
        linear-gradient(135deg, #061a31, #0a2b50);
}

.th-video-hero__media {
    position: relative !important;
    width: 100%;
    height: 100%;
    max-height: none !important;
    overflow: hidden;
}

.th-video-hero__media > img,
.th-video-hero__media > video {
    position: absolute !important;
    top: 50% !important;
    right: max(24px, calc((100vw - 1400px) / 2)) !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    width: min(53vw, 780px) !important;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
    box-shadow: 0 34px 80px rgba(0, 8, 25, .42);
}

.th-video-hero__media > img {
    z-index: 0;
    transform: translateY(-50%) scale(1.02);
    transition: opacity .8s ease;
}

.th-video-hero__media > video {
    z-index: 1 !important;
    opacity: 0;
    object-fit: contain;
    background: #f3f6f9;
    transform: translateY(-50%);
    filter: brightness(1.07) saturate(1.07);
    transition: opacity .8s ease;
}

.th-video-hero__media.is-video-ready > video {
    opacity: 1;
}

.th-video-hero__media.is-video-ready > img {
    opacity: 0;
}

.th-video-hero__media.has-video-error > video {
    display: none !important;
}

.th-video-hero__veil {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: max(24px, calc((100vw - 1400px) / 2));
    bottom: auto;
    left: auto;
    width: min(53vw, 780px);
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    transform: translateY(-50%);
    background:
        linear-gradient(90deg, rgba(3, 18, 35, .2), transparent 34%),
        linear-gradient(0deg, rgba(3, 17, 32, .24), transparent 28%);
}

.th-video-hero__grid {
    position: absolute;
    z-index: 3;
    inset: 0;
    opacity: .1;
    background-image:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.th-video-hero__content {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: max(24px, calc((100vw - 1400px) / 2));
    width: min(600px, 41vw);
    padding: 0;
    transform: translateY(-46%);
}

.th-video-hero__eyebrow {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 8px 13px;
    color: #cce7ff;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
}

.th-video-hero__eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #70cf4f;
    box-shadow: 0 0 0 5px rgba(112, 207, 79, .13);
}

.th-video-hero h1 {
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(45px, 5vw, 72px);
    font-weight: 750;
    line-height: .98;
    letter-spacing: -.04em;
}

.th-video-hero h1 span {
    color: #8ac8ff;
}

.th-video-hero__content > p {
    max-width: 650px;
    margin: 0 0 32px;
    color: #d4dfeb;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.7;
}

.th-video-hero__actions {
    display: flex;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 11px;
}

.th-video-hero__button {
    display: inline-flex !important;
    min-height: 52px;
    padding: 0 20px !important;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.th-video-hero__button:hover {
    font-size: 13px !important;
    transform: translateY(-2px);
}

.th-video-hero__button--primary {
    color: #fff !important;
    background: linear-gradient(135deg, #1877f2, #0754b9);
    box-shadow: 0 14px 30px rgba(4, 63, 134, .38);
}

.th-video-hero__button--glass {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(12px);
}

.th-video-hero__button--glass:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .15);
}

.th-video-hero__button svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.th-video-hero__signals {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.th-video-hero__signals span {
    position: relative;
    padding-left: 13px;
    color: #9fb1c5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.th-video-hero__signals span::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 5px;
    height: 5px;
    content: "";
    transform: translateY(-50%);
    border-radius: 50%;
    background: #64bd45;
}

.th-video-hero__controls {
    position: absolute;
    z-index: 5;
    right: max(22px, calc((100vw - 1400px) / 2));
    top: calc(50% + min(14.90625vw, 219px) - 58px);
    bottom: auto;
    display: flex;
    gap: 8px;
}

.th-video-hero__controls button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 13px;
    background: rgba(5, 25, 47, .48);
    cursor: pointer;
    place-items: center;
    backdrop-filter: blur(12px);
    transition: background .2s ease, transform .2s ease;
}

.th-video-hero__controls button:hover {
    background: rgba(20, 103, 232, .7);
    transform: translateY(-2px);
}

.th-video-hero__controls svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.th-icon-play,
.th-icon-sound,
.is-paused .th-icon-pause,
.is-muted .th-icon-sound {
    display: none;
}

.is-paused .th-icon-play,
.is-muted .th-icon-muted {
    display: block;
}

.th-video-hero__scroll {
    position: absolute;
    z-index: 5;
    bottom: 34px;
    left: 50%;
    display: flex;
    color: #c0cedd !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: .12em;
    text-decoration: none !important;
    text-transform: uppercase;
    transform: translateX(-50%);
    align-items: center;
    flex-direction: column;
    gap: 9px;
}

.th-video-hero__scroll i {
    display: block;
    width: 1px;
    height: 28px;
    background: linear-gradient(#9ab0c7, transparent);
}

@media (max-width: 1050px) {
    .th-video-hero {
        height: auto !important;
        min-height: 0;
    }

    .th-video-hero__media {
        height: auto;
        min-height: 0;
        padding: calc(96px + (100vw - 40px) * .5625 + 28px) 24px 64px;
    }

    .th-video-hero__media > img,
    .th-video-hero__media > video,
    .th-video-hero__veil {
        top: 96px !important;
        right: 20px !important;
        bottom: auto !important;
        left: 20px !important;
        width: calc(100% - 40px) !important;
        height: auto !important;
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-radius: 24px;
        transform: none;
    }
    .th-video-hero__veil {
        background: linear-gradient(0deg, rgba(3,17,32,.28), transparent 45%);
    }
    .th-video-hero__content {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        transform: none;
    }
    .th-video-hero__scroll { display: none; }
    .th-video-hero__controls { top: calc(56.25vw + 50px); right: 34px; bottom: auto; }
}

@media (max-width: 520px) {
    .th-video-hero__media {
        padding: calc(96px + (100vw - 28px) * .5625 + 26px) 18px 52px;
    }

    .th-video-hero__media > img,
    .th-video-hero__media > video,
    .th-video-hero__veil {
        right: 14px !important;
        left: 14px !important;
        width: calc(100% - 28px) !important;
        height: auto !important;
        border-radius: 20px;
    }
    .th-video-hero__content {
        top: auto;
        left: auto;
        width: 100%;
    }
    .th-video-hero h1 { font-size: clamp(39px, 12vw, 56px); }
    .th-video-hero__actions { align-items: stretch; flex-direction: column; }
    .th-video-hero__button { width: 100%; }
    .th-video-hero__signals { gap: 9px 14px; }
    .th-video-hero__controls { top: calc(56.25vw + 40px); right: 26px; bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .th-video-hero__media > video { opacity: 0; }
    .th-video-hero__media > img { opacity: 1; }
    .th-video-hero * { transition: none !important; }
}
