/* Player de vídeo protegido — controles próprios, sem menu nativo de download */

.ph-video-protected {
    position: relative;
    line-height: 0;
    background: #000;
}

.ph-video-protected video {
    background: #000;
}

/* iPhone/iPad: player nativo do iOS. Nenhum overlay nosso pode ficar por
   cima dele — os controles do Safari são desenhados dentro do próprio
   <video> e qualquer elemento sobreposto rouba o toque. */
.ph-video-native .ph-vp-controls,
.ph-video-native .ph-vp-big-play {
    display: none !important;
}

.ph-video-native video {
    max-width: 100%;
}

/* Botão de play grande sobre o vídeo — alvo de toque óbvio, importante no
   iPhone/iOS onde a barra de controles pequena embaixo passa despercebida. */
.ph-vp-big-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: opacity .15s ease, visibility .15s ease;
}

.ph-vp-big-play svg {
    width: 30px;
    height: 30px;
    margin-left: 3px;
    flex-shrink: 0;
}

.ph-vp-big-play.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ph-vp-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #14151f;
    padding: 6px 10px;
    border-radius: 0 0 6px 6px;
    line-height: normal;
}

.ph-vp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    opacity: .85;
    transition: opacity .15s ease;
}

.ph-vp-btn:hover {
    opacity: 1;
}

.ph-vp-btn svg {
    width: 20px;
    height: 20px;
}

.ph-vp-time {
    color: #cfd3dc;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 32px;
}

.ph-vp-duration {
    text-align: right;
}

.ph-vp-seek {
    position: relative;
    flex: 1;
    height: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.ph-vp-seek::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .18);
}

.ph-vp-seek-buffered,
.ph-vp-seek-played {
    position: absolute;
    left: 0;
    height: 4px;
    border-radius: 2px;
    width: 0%;
}

.ph-vp-seek-buffered {
    background: rgba(255, 255, 255, .32);
}

.ph-vp-seek-played {
    background: #0f5faa;
}

/* Fullscreen: a barra de controles acompanha o vídeo */
.ph-video-protected:fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
}

.ph-video-protected:fullscreen video {
    max-height: calc(100vh - 42px);
}
