/**
 * Comunicados — player e capa de vídeo.
 * Rotas: Home e /comunicados/. O componente é responsivo no leitor público.
 */
.cc-announcement-reader__body .cc-announcement-video {
    display: block;
    width: min(100%, 960px);
    margin: 24px 0;
}

.cc-announcement-reader__body .cc-announcement-video__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid #d9e2d4;
    border-radius: 10px;
    background: #f4f7f2;
}

.cc-announcement-reader__body .cc-announcement-video__frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.cc-announcement-reader__body .cc-announcement-video__poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #edf2ea;
    cursor: pointer;
}

.cc-announcement-reader__body .cc-announcement-video__cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-announcement-reader__body .cc-announcement-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(48, 74, 43, 0.9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

.cc-announcement-reader__body .cc-announcement-video__play::after {
    position: absolute;
    top: 50%;
    left: 52%;
    width: 0;
    height: 0;
    content: "";
    transform: translate(-42%, -50%);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 16px solid #ffffff;
}

.cc-announcement-reader__body .cc-announcement-video__poster:hover .cc-announcement-video__play,
.cc-announcement-reader__body .cc-announcement-video__poster:focus .cc-announcement-video__play {
    background: rgba(61, 94, 42, 0.96);
}

.cc-announcement-reader__body .cc-announcement-video__poster:focus {
    outline: 2px solid #4e6e32;
    outline-offset: 3px;
}

.cc-announcement-reader__body .cc-announcement-video__frame.is-playing .cc-announcement-video__poster {
    display: none;
}

.cc-announcement-reader__body .cc-announcement-video__frame:not(.is-playing) iframe[data-cc-video-embed-src] {
    display: none;
}

@media (max-width: 767px) {
    .cc-announcement-reader__body .cc-announcement-video {
        margin: 18px 0;
    }

    .cc-announcement-reader__body .cc-announcement-video__frame {
        border-radius: 8px;
    }

    .cc-announcement-reader__body .cc-announcement-video__play {
        width: 52px;
        height: 52px;
    }
}
