.mp-video-page {
    padding-top: 0;
}

.mp-video-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: var(--mp-radius-xl);
    color: #fff;
    background:
        linear-gradient(112deg, rgba(2, 47, 113, 0.98), rgba(9, 104, 216, 0.95) 58%, rgba(53, 184, 255, 0.9)),
        url("/home_new_images/topBG.webp") center / cover;
    box-shadow: 0 18px 44px rgba(9, 78, 165, 0.2);
}

.mp-video-intro::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 36px 36px;
    content: "";
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.65) 58%, transparent 92%);
}

.mp-video-intro__copy {
    position: relative;
    z-index: 1;
    max-width: 690px;
    padding: 46px 52px;
}

.mp-video-intro .mp-kicker {
    color: #9de4ff;
}

.mp-video-intro h1,
.mp-video-library-head h1,
.mp-video-detail h1 {
    margin: 8px 0 12px;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.mp-video-intro h1 {
    font-size: clamp(36px, 4vw, 56px);
}

.mp-video-intro p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.75;
}

.mp-video-intro__copy > a {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-top: 24px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.52);
    font-weight: 700;
}

.mp-video-intro__signal {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.mp-video-intro__signal span {
    position: absolute;
    width: 176px;
    height: 176px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.mp-video-intro__signal span:nth-child(2) {
    width: 126px;
    height: 126px;
    border-color: rgba(157, 228, 255, 0.42);
}

.mp-video-intro__signal span:last-child {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 8px solid rgba(255, 255, 255, 0.18);
    background: #fff;
    color: var(--mp-blue-strong);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 12px 32px rgba(0, 34, 92, 0.28);
}

.mp-video-intro__signal i {
    margin-left: 4px;
    font-size: 22px;
}

.mp-video-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 14px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--mp-card-border);
    border-radius: var(--mp-radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--mp-shadow);
}

.mp-video-carousel,
.mp-video-carousel__slides {
    position: relative;
    min-width: 0;
}

.mp-video-carousel__slides {
    overflow: hidden;
    aspect-ratio: 16 / 7.15;
    border-radius: 14px;
    background: #082957;
}

.mp-video-carousel__slide {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mp-video-carousel__slide.is-active {
    visibility: visible;
    opacity: 1;
}

.mp-video-carousel__slide button,
.mp-video-carousel__static,
.mp-video-feature__side button,
.mp-video-feature__side > div {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #082957;
    color: #fff;
    text-align: left;
}

.mp-video-carousel__slide img,
.mp-video-feature__side img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.mp-video-carousel__slide button:hover img,
.mp-video-feature__side button:hover img {
    transform: scale(1.035);
}

.mp-video-carousel__overlay {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 48%;
    justify-content: flex-end;
    padding: 28px 30px;
    background: linear-gradient(transparent, rgba(2, 19, 45, 0.92));
}

.mp-video-carousel__overlay small {
    color: #8ee1ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mp-video-carousel__overlay strong {
    max-width: 760px;
    margin-top: 4px;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.25;
}

.mp-video-carousel__overlay > span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
}

.mp-video-carousel__dots {
    position: absolute;
    right: 20px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    gap: 7px;
}

.mp-video-carousel__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.56);
    transition: width 0.25s ease, background 0.25s ease;
}

.mp-video-carousel__dots button.is-active {
    width: 24px;
    background: #fff;
}

.mp-video-feature__side {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 0;
}

.mp-video-feature__side button,
.mp-video-feature__side > div {
    min-height: 0;
    border-radius: 14px;
}

.mp-video-feature__side span {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 28px 16px 14px;
    background: linear-gradient(transparent, rgba(2, 19, 45, 0.9));
}

.mp-video-feature__side i {
    display: grid;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--mp-blue);
    font-size: 11px;
}

.mp-video-feature__side strong {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#factory-video-library {
    scroll-margin-top: 130px;
}

.mp-video-section {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--mp-card-border);
    border-radius: var(--mp-radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--mp-shadow);
}

.mp-video-section__heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
}

.mp-video-section__heading > div {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.mp-video-section__icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #cce4ff;
    border-radius: 13px;
    background: linear-gradient(145deg, #f4faff, #e1f2ff);
    color: var(--mp-blue);
    font-size: 18px;
}

.mp-video-section__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mp-video-section__heading small,
.mp-video-library-head .mp-kicker,
.mp-video-detail .mp-kicker {
    color: var(--mp-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mp-video-section__heading h2 {
    overflow: hidden;
    margin: 1px 0 0;
    font-size: 23px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-video-section__heading > a {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
    color: var(--mp-blue-strong);
    font-weight: 700;
}

.mp-video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.mp-video-card {
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #d6e9fb;
    border-radius: 14px;
    background: #fff;
    color: var(--mp-ink);
    text-align: left;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mp-video-card:hover {
    border-color: #9dcfff;
    box-shadow: 0 12px 26px rgba(12, 89, 177, 0.13);
    transform: translateY(-3px);
}

.mp-video-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e9f3fc;
}

.mp-video-card__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 54%, rgba(1, 21, 52, 0.7));
    content: "";
}

.mp-video-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}

.mp-video-card:hover .mp-video-card__media img {
    transform: scale(1.045);
}

.mp-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 7px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: #fff;
    color: var(--mp-blue-strong);
    box-shadow: 0 8px 20px rgba(0, 29, 76, 0.22);
    transform: translate(-50%, -50%);
}

.mp-video-play i {
    margin-left: 3px;
    font-size: 14px;
}

.mp-video-card__watch {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mp-video-card__body {
    display: block;
    min-height: 84px;
    padding: 13px 14px 15px;
}

.mp-video-card__body strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-video-card__body small {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px;
    color: var(--mp-muted);
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mp-video-library-head {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    padding: 30px 36px;
    border: 1px solid var(--mp-card-border);
    border-radius: var(--mp-radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--mp-shadow);
}

.mp-video-library-head h1 {
    color: var(--mp-ink);
    font-size: clamp(30px, 3vw, 42px);
}

.mp-video-library-head p {
    margin: 0;
    color: var(--mp-muted);
}

.mp-video-library-head > span {
    display: grid;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 50%;
    background: var(--mp-gradient);
    color: #fff;
    box-shadow: 0 12px 28px rgba(22, 119, 255, 0.22);
    font-size: 27px;
}

.mp-video-tabs {
    display: flex;
    gap: 9px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 13px;
    border: 1px solid var(--mp-card-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    scrollbar-width: thin;
}

.mp-video-tabs a {
    flex: 0 0 auto;
    padding: 9px 15px;
    border: 1px solid #d8e9f8;
    border-radius: 9px;
    background: #f8fbff;
    color: #435775;
    font-weight: 700;
}

.mp-video-tabs a:hover,
.mp-video-tabs a.is-active {
    border-color: var(--mp-blue);
    background: var(--mp-blue);
    color: #fff;
}

.mp-video-section--library {
    margin-top: 16px;
}

.mp-video-detail {
    padding: 34px;
    border: 1px solid var(--mp-card-border);
    border-radius: var(--mp-radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--mp-shadow);
}

.mp-video-detail > header {
    max-width: 920px;
    margin-bottom: 24px;
}

.mp-video-detail h1 {
    color: var(--mp-ink);
    font-size: clamp(30px, 3.5vw, 46px);
}

.mp-video-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--mp-muted);
    font-size: 12px;
}

.mp-video-detail__meta span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.mp-video-detail__player,
.mp-video-detail__cover {
    overflow: hidden;
    margin: 0;
    border-radius: 16px;
    background: #061a35;
}

.mp-video-detail__player video {
    display: block;
    width: 100%;
    max-height: 680px;
    aspect-ratio: 16 / 9;
    background: #061a35;
}

.mp-video-detail__cover img {
    width: 100%;
    max-height: 680px;
    object-fit: contain;
}

.mp-video-detail__summary,
.mp-video-richtext {
    margin-top: 22px;
    color: #40536f;
    font-size: 15px;
    line-height: 1.85;
}

.mp-video-detail__summary {
    padding: 20px 22px;
    border-left: 3px solid var(--mp-blue);
    border-radius: 0 12px 12px 0;
    background: #f3f9ff;
}

.mp-video-detail__summary > :first-child,
.mp-video-richtext > :first-child {
    margin-top: 0;
}

.mp-video-detail__summary > :last-child,
.mp-video-richtext > :last-child {
    margin-bottom: 0;
}

.mp-video-richtext img,
.mp-video-richtext video,
.mp-video-richtext iframe {
    max-width: 100%;
}

.mp-video-detail__external {
    gap: 8px;
    margin-top: 22px;
}

body.mp-video-modal-open {
    overflow: hidden;
}

.mp-video-modal[hidden] {
    display: none;
}

.mp-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.mp-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 13, 31, 0.82);
    backdrop-filter: blur(7px);
}

.mp-video-modal__dialog {
    position: relative;
    width: min(1040px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: #071a35;
    color: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.mp-video-modal__dialog > header,
.mp-video-modal__dialog > footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 15px 18px;
}

.mp-video-modal__dialog > header span {
    color: #71d4ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mp-video-modal__dialog h2 {
    margin: 2px 0 0;
    font-size: 18px;
}

.mp-video-modal__dialog header button {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.mp-video-modal__stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.mp-video-modal__stage video,
.mp-video-modal__stage iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.mp-video-modal__stage [hidden] {
    display: none;
}

.mp-video-modal__dialog > footer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.mp-video-modal__dialog > footer a {
    color: #80dcff;
    font-weight: 700;
}

@media (max-width: 960px) {
    .mp-video-feature {
        grid-template-columns: minmax(0, 1fr) 230px;
    }

    .mp-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .mp-video-intro {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .mp-video-intro__copy {
        padding: 32px 24px 86px;
    }

    .mp-video-intro__signal {
        position: absolute;
        right: -4px;
        bottom: 24px;
        width: 110px;
        height: 80px;
    }

    .mp-video-intro__signal span:first-child,
    .mp-video-intro__signal span:nth-child(2) {
        display: none;
    }

    .mp-video-intro__signal span:last-child {
        width: 58px;
        height: 58px;
    }

    .mp-video-feature {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .mp-video-carousel__slides {
        aspect-ratio: 16 / 10;
    }

    .mp-video-feature__side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .mp-video-feature__side button,
    .mp-video-feature__side > div {
        aspect-ratio: 16 / 9;
    }

    .mp-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-video-section,
    .mp-video-detail {
        padding: 16px;
    }

    .mp-video-library-head {
        padding: 24px;
    }

    .mp-video-library-head > span {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 21px;
    }

    .mp-video-modal {
        padding: 12px;
    }
}

@media (max-width: 520px) {
    .mp-video-intro h1 {
        font-size: 36px;
    }

    .mp-video-carousel__overlay {
        padding: 22px 18px;
    }

    .mp-video-carousel__dots {
        right: 14px;
        bottom: 12px;
    }

    .mp-video-feature__side,
    .mp-video-grid {
        grid-template-columns: 1fr;
    }

    .mp-video-section__heading {
        align-items: flex-start;
    }

    .mp-video-section__heading h2 {
        white-space: normal;
    }

    .mp-video-library-head > span {
        display: none;
    }

    .mp-video-detail h1 {
        font-size: 30px;
    }

    .mp-video-modal__dialog > footer span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-video-carousel__slide,
    .mp-video-card,
    .mp-video-card__media img,
    .mp-video-carousel__slide img,
    .mp-video-feature__side img {
        transition: none;
    }
}
