/* Player de vídeo do portfólio — ver assets/js/video-player.js */

.pf-video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #1c1c22;
}

.pf-video__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pf-video__play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.pf-video__play:hover,
.pf-video__play:focus-visible {
    background: rgba(0, 0, 0, 0.45);
}

.pf-video__play-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--color-primary, #ff014f);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease;
}

.pf-video__play:hover .pf-video__play-icon {
    transform: scale(1.08);
}

/* Triângulo de play, sem depender de icon font */
.pf-video__play-icon::before {
    content: "";
    display: block;
    margin-left: 5px;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
}

.pf-video--active {
    aspect-ratio: auto;
}

.pf-video__el {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    background: #000;
}

.pf-video__error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    color: #c8c8d0;
    font-size: 15px;
}

.pf-video__error a {
    color: var(--color-primary, #ff014f);
    text-decoration: underline;
}

@media (max-width: 767px) {
    .pf-video__play-icon {
        width: 54px;
        height: 54px;
    }

    .pf-video__play-icon::before {
        border-width: 9px 0 9px 14px;
    }
}
