.f-popup-video__grid {
    display: grid;
    gap: var(--column-gap, 30px);
    grid-template-columns: 1fr;
}

@media screen and (min-width: 1024px) {
    .f-popup-video__grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .f-popup-video__grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.f-popup-video__item {
    min-width: 0;
}

.f-popup-video__media {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.f-popup-video__cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    transform: none;
    -webkit-transition: none;
    transition: none;
}

.f-popup-video__cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(var(--color-background-secondary));
}

.f-popup-video__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.f-popup-video__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 32px;
    z-index: 2;
    pointer-events: none;
}

.f-popup-video__content > * {
    pointer-events: auto;
}

.f-popup-video__content.m-text-left {
    align-items: flex-start;
    text-align: left;
}

.f-popup-video__content.m-text-right {
    align-items: flex-end;
    text-align: right;
}

.f-popup-video__title {
    font-size: clamp(26px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    max-width: 720px;
    color: currentColor;
}

.f-popup-video__description {
    font-size: 15px;
    line-height: 1.7;
    max-width: 560px;
    margin: 0;
    color: currentColor;
    opacity: .92;
}

.f-popup-video__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: inherit;
    gap: 18px;
    margin-top: 8px;
    position: relative;

}
.f-popup-video__actions::before {
    background: rgb(var(--color-button));
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    z-index: -1;
    left: 50%;
    top: 50%;
    display: block;
    border-radius: 50%;
    animation: rs-pulse-border 1500ms ease-out infinite;
}
@keyframes rs-pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }

}


.f-popup-video__play {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgb(var(--color-button));
    color: rgb(var(--color-button-text));
    cursor: pointer;
    -webkit-transition: opacity 0.25s ease, transform 0.25s ease;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.f-popup-video__play svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.f-popup-video__play:hover {
    opacity: 0.85;
    transform: scale(1.06);
}

@media screen and (max-width: 767px) {
    .f-popup-video__play {
        width: 60px;
        height: 60px;
    }

    .f-popup-video__play svg {
        width: 16px;
        height: 16px;
    }

    .f-popup-video__content {
        padding: 20px;
        gap: 12px;
    }
    .f-popup-video__play-wrap {

        width: 130px;
        height: 130px;
    }
}

/* ===== 播放按钮旋转文字 ===== */
.f-popup-video__play-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
}

.f-popup-video__play-wrap .f-popup-video__play {
    position: relative;
    z-index: 1;
}

.f-popup-video__play-rotate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform-origin: 50% 50%;
    animation: f-popup-video-rotate 18s linear infinite;
    will-change: transform;
    pointer-events: none;
}

.f-popup-video__play-ring {
    fill: rgba(255, 255, 255, 0.55);
}

.f-popup-video__play-rotate-text {
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@keyframes f-popup-video-rotate {
    to {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 767px) {


    .f-popup-video__play-rotate-text {
        font-size: 10px;
    }
}

/* ===== 移动端封面图 ===== */
.f-popup-video__cover--mobile {
    display: none;
}

@media screen and (max-width: 767px) {
    .f-popup-video__cover--desktop {
        display: none;
    }

    .f-popup-video__cover--mobile {
        display: block;
    }
}


/* 内容显示位置：左 / 中 / 右（水平放置整个内容块） */
.f-popup-video__content.f-popup-video__content--pos-left {
    align-items: flex-start;
    padding-left: 15px;
}

.f-popup-video__content.f-popup-video__content--pos-center {
    align-items: center;
}

.f-popup-video__content.f-popup-video__content--pos-right {
    align-items: flex-end;
    padding-right: 15px;
}

@media screen and (min-width: 1280px) {
    .f-popup-video__content.f-popup-video__content--pos-left {
        padding-left: max(15px, calc((100vw - var(--container-width, 1280px)) / 2 + 15px));
    }

    .f-popup-video__content.f-popup-video__content--pos-right {
        padding-right: max(15px, calc((100vw - var(--container-width, 1280px)) / 2 + 15px));
    }
}

/* 文本对齐：块内文字 + 按钮组对齐跟随 */
.f-popup-video__content.m\:text-left {
    text-align: left;
}

.f-popup-video__content.m\:text-center {
    text-align: center;
}

.f-popup-video__content.m\:text-right {
    text-align: right;
}

.f-popup-video__content.m\:text-left .f-popup-video__actions {
    justify-content: flex-start;
}

.f-popup-video__content.m\:text-center .f-popup-video__actions {
    justify-content: center;
}

.f-popup-video__content.m\:text-right .f-popup-video__actions {
    justify-content: flex-end;
}

/* 副标题（参考图：黄色标签 + 短横线） */
.f-popup-video__subheading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    font-weight: 700;
    color: rgb(var(--color-button));
}



/* 播放按钮脉冲圈跟随播放按钮（不再固定于操作行中间） */
.f-popup-video__actions::before {
    display: none;
}

.f-popup-video__play {
    position: relative;
}

.f-popup-video__play::before {
    background: rgb(var(--color-button));
    content: "";
    position: absolute;
    inset: -6px;
    z-index: -1;
    border-radius: 50%;
    animation: f-popup-video-pulse 1500ms ease-out infinite;
}

@keyframes f-popup-video-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
/* 弹窗视频标题/描述：仅布局样式，字号由全局 h3/h4/h5/h6 类提供（参考其他卡片） */
.f-popup-video__heading {
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    max-width: 900px;
    color: currentColor;
}

.f-popup-video__text {
    line-height: 1.7;
    max-width: 560px;
    margin: 0;
    color: currentColor;
    opacity: .92;
}
