.home-2026-videos__panel {
    position: relative;
    padding: 36px 30px 16px;
    border: 1px solid var(--home-2026-border);
    border-radius: 8px;
    background: #ffffff;
}

.home-2026-videos__panel > .home-2026-section-title {
    position: absolute;
    top: 0;
    left: 50%;
    width: 310px;
    max-width: calc(100% - 48px);
    min-height: 24px;
    margin: 0;
    padding: 0 8px;
    background: #ffffff;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.home-2026-videos__panel > .home-2026-section-title::before,
.home-2026-videos__panel > .home-2026-section-title::after {
    flex: 0 0 34px;
}

.home-2026-videos__panel > .home-2026-section-title span {
    white-space: nowrap;
}

.home-2026-videos__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-2026-videos__grid[data-home-2026-videos-carousel] {
    display: flex;
    gap: 0;
    overflow: hidden;
}

.home-2026-videos__grid[data-home-2026-videos-carousel].flickity-enabled {
    display: block;
    overflow: hidden;
    cursor: grab;
}

.home-2026-videos__grid[data-home-2026-videos-carousel].flickity-enabled:focus {
    outline: none;
}

.home-2026-videos__grid[data-home-2026-videos-carousel].is-pointer-down {
    cursor: grabbing;
}

.home-2026-videos__grid[data-home-2026-videos-carousel] .flickity-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.home-2026-videos__grid[data-home-2026-videos-carousel] .flickity-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.home-2026-videos__item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.home-2026-videos__grid[data-home-2026-videos-carousel] .home-2026-videos__item {
    flex: 0 0 auto;
    width: calc((100% - 44px) / 3);
    margin-right: 22px;
}

@media (min-width: 992px) {
    .home-2026-videos__grid[data-home-2026-videos-carousel]:not(.flickity-enabled) {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
        overflow: visible;
    }

    .home-2026-videos__grid[data-home-2026-videos-carousel]:not(.flickity-enabled) .home-2026-videos__item {
        width: auto;
        margin-right: 0;
    }
}

.home-2026-videos__media {
    position: relative;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    background: #fff5f8;
    overflow: hidden;
}

.home-2026-videos__media[data-video-id] {
    cursor: pointer;
}

.home-2026-videos__media iframe,
.home-2026-videos__media video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.home-2026-videos__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(13, 78, 145, 0.05);
}

.home-2026-videos__play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--home-2026-primary-dark);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 22px rgba(173, 0, 66, 0.18);
}

.home-2026-videos__play img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(25%) sepia(97%) saturate(2502%) hue-rotate(325deg) brightness(91%) contrast(92%);
    transform: translate(calc(-50% + 2px), -50%);
}

.home-2026-videos__item p {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    min-height: 48px;
    margin: 0;
    padding: 10px 10px 12px;
    color: var(--home-2026-blue);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
}

.box-pp-video {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    width: 100vw;
    height: 100vh;
    background: #0009;
    cursor: pointer;
    opacity: 0;
    transition: opacity .28s ease;
}

.box-pp-video.is-open {
    opacity: 1;
}

.box-pp-video.is-closing {
    opacity: 0;
}

.bpp-video {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-block;
    width: min(870px, calc(100vw - 64px));
    aspect-ratio: 16 / 9;
    opacity: 0;
    transform: translate(-50%, -46%) scale(.94);
    transition: opacity .28s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
}

.box-pp-video.is-open .bpp-video {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.box-pp-video.is-closing .bpp-video {
    opacity: 0;
    transform: translate(-50%, -46%) scale(.96);
}

.bpp-video::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    z-index: 1;
    width: 30px;
    height: 30px;
    background: url("https://cdn.diemnhangroup.com/seoulcenter/2023/12/icon-close-white.svg") center / 100% no-repeat;
    pointer-events: none;
}

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

@media (max-width: 991.98px) {
    .home-2026-videos__panel {
        padding: 32px 12px 12px;
    }

    .home-2026-videos__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-2026-videos__grid[data-home-2026-videos-carousel] .home-2026-videos__item {
        width: 100%;
        margin-right: 16px;
    }
}

@media (max-width: 575.98px) {
    .bpp-video {
        width: calc(100vw - 32px);
    }

    .bpp-video::before {
        top: -34px;
        right: 0;
    }

    .home-2026-videos__panel > .home-2026-section-title {
        width: max-content;
        max-width: calc(100% - 32px);
        padding: 0 6px;
    }
}
