/**
 * Estilos do player Picture-in-Picture.
 */

.pip-video-container {
    /* width: 480px;
    height: 270px; */
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999999999;
    display: none;
    overflow: hidden;
    border: 4px solid #007cba;
    border-radius: 8px;
    background-color: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.pip-video-container.fullscreen {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
}

.pip-close-btn {
    position: absolute;
    top: 1px;
    right: 5px;
    z-index: 12;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #0a5eb8;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(10, 132, 255, 0.36);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(8, 44, 88, 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0;

}

.pip-close-btn i {
    font-style: normal;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-1px);
}

.pip-drag-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    z-index: 10;
    opacity: 0;
    color: #fff;
    font-size: 12px;
    line-height: 25px;
    text-align: center;
    cursor: move;
    background-color: rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease;
    touch-action: none;
}

.pip-video-container:hover .pip-drag-handle {
    opacity: 1;
}

.pip-video-container video,
.pip-video-container iframe,
.youtube-pip-player {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

.btn-container {
    position: fixed;
    top: 35%;
    right: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-audio-libras,
.btn-libras {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-audio-libras:focus,
.btn-audio-libras:active,
.btn-libras:focus,
.btn-libras:active {
    outline: none;
    box-shadow: none;
}

.btn-audio-libras img {
    width: 150px;
    display: block;
}

.btn-libras {
    display: flex;
    align-items: center;
}

.libras {
    width: 50px;
    height: 50px;
    display: block;
    transition: transform 0.1s ease;
}

.libras:hover {
    transform: scale(1.08);
}

.libras-banner {
    display: none;
    width: 200px;
    margin-right: 10px;
    padding: 1rem;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    background-color: #2975e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pip-audio-container {
    position: fixed;
    top: calc(5% + 64px);
    right: 0;
    z-index: 999998;
    display: none;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 18px 0 0 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pip-audio-container[style*="position: static"] {
    width: fit-content;
    max-width: 100%;
    border-radius: 18px;
}

.pip-audio-container audio {
    width: min(90vw, 320px);
    display: block;
}

.controls-container {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    padding: 10px;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease-in-out;
}

.pip-video-container:hover .controls-container {
    opacity: 1;
}

.control-button {
    padding: 5px;
    color: #fff;
    font-size: 14px;
    background: none;
    border: none;
}

.control-button img,
.fullscreen-btn img,
.play-button img {
    display: block;
    width: 18px;
    height: 18px;
}

.play-pause-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    margin: 0 10px;
    cursor: pointer;
    background-color: #607d8b;
    border-radius: 4px;
}

.progress {
    width: 0;
    height: 100%;
    background-color: #03a9f4;
    border-radius: 4px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 65px;
    height: 65px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:hover {
    background-color: #03a9f4;
}

.fullscreen-btn {
    position: absolute;
    top: 1px;
    left: 10px;
    z-index: 11;
    padding: 5px;
    color: #111;
    font-size: 12px;
    background-color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .pip-video-container {
        width: 320px;
        height: 180px;
        right: 10px;
        bottom: 10px;
    }

    .btn-container {
        top: 10px;
        gap: 0.25rem;
    }

    .btn-audio-libras img {
        width: 120px;
    }

    .libras-banner {
        width: 150px;
        padding: 0.75rem;
        font-size: 14px;
    }
}

