/* Dapur Guru V2.18.2.1 — Promo video inside Fitur Unggulan cards */

.pv-feature-card {
    position: relative;
}

.pv-feature-card.has-promo-video {
    cursor: pointer;
}

.pv-feature-card.has-promo-video:hover,
.pv-feature-card.has-promo-video:focus-visible {
    transform: translateY(-3px);
}

.pv-feature-card.has-promo-video:focus-visible {
    outline: 3px solid rgba(80, 71, 229, .22);
    outline-offset: 3px;
}

.pv-feature-grid-3x2 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.2rem !important;
    align-items: stretch;
}

.pv-feature-grid-3x2 .pv-feature-card {
    min-width: 0;
    min-height: 248px;
}

.pv-feature-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: .9rem;
    overflow: hidden;
    border-radius: 12px;
    background: #e9eefb;
}

.pv-feature-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/*
 * Intentionally no play/pause overlay inside the thumbnail.
 * The "Putar Video" action remains at the bottom of the card.
 */

.pv-feature-video-action {
    position: absolute;
    right: .85rem;
    bottom: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    color: #345de0;
    font-size: .72rem;
    font-weight: 800;
}

.pv-modal-open {
    overflow: hidden;
}

.pv-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(7, 16, 41, .76);
    backdrop-filter: blur(8px);
}

.pv-modal-card {
    position: relative;
    width: min(960px, 96vw);
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0,0,0,.34);
}

.pv-close {
    position: absolute;
    z-index: 2;
    top: .8rem;
    right: .8rem;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(11, 25, 57, .8);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.pv-player {
    aspect-ratio: 16 / 9;
    background: #070d1a;
}

.pv-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.pv-modal-copy {
    padding: 1.15rem 1.35rem 1.3rem;
}

.pv-modal-copy h3 {
    margin: 0;
    color: #173f84;
    font-size: 1.2rem;
}

.pv-modal-copy p {
    margin: .35rem 0 0;
    color: #6d7890;
}

[x-cloak] {
    display: none !important;
}

@media (max-width: 1023.98px) {
    .pv-feature-grid-3x2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .pv-feature-grid-3x2 {
        grid-template-columns: 1fr !important;
    }

    .pv-feature-grid-3x2 .pv-feature-card {
        min-height: 0;
    }

    .pv-modal {
        padding: .65rem;
    }

    .pv-modal-card {
        border-radius: 14px;
    }
}
