﻿.pi-video-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.pi-video-card {
    padding: 28px;
}

.pi-video-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .pi-video-grid {
        grid-template-columns: 1fr;
    }
}

.pi-video-text {
    margin: 10px 0 0;
    line-height: 1.7;
}

.pi-video-cta {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pi-video-thumb {
    position: relative;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 14px;
    padding: 0;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    min-height: 220px;
}

    .pi-video-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.pi-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
}

    .pi-video-play::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 52%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 0;
        border-left: 16px solid rgba(255, 255, 255, 0.95);
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }

.pi-video-label {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-weight: 600;
}

/* Modal */
.pi-modal[hidden] {
    display: none;
}

.pi-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.pi-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.pi-modal-panel {
    position: relative;
    width: min(980px, 92vw);
    margin: 6vh auto 0;
    border-radius: 16px;
    overflow: hidden;
}

.pi-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pi-modal-title {
    font-weight: 600;
    color: #111827;
}

.pi-modal-close {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
}

    .pi-modal-close:hover,
    .pi-modal-close:focus {
        color: #111827;
        text-decoration: underline;
    }

.pi-video-frame {
    aspect-ratio: 16 / 9;
    background: #111;
}

    .pi-video-frame iframe,
    .pi-video-frame video {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }
