/* Estilo do Card Flutuante de Vídeo M11 */
.m11-video-card {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    width: 200px;
    height: 300px;
    z-index: 999999;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
    background-color: #000;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    transform-origin: bottom left;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.m11-video-card.m11-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.m11-video-card.m11-visible:hover {
    transform: scale(1.03);
}

/* Vídeo em Tela Cheia no Card */
.m11-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Deixa o clique passar para o container ou botões */
}

/* Botões do Topo */
.m11-close-btn,
.m11-audio-btn {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.m11-close-btn:hover,
.m11-audio-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Fechar no canto superior esquerdo */
.m11-close-btn {
    top: 12px;
    left: 12px;
    opacity: 0; /* Oculto por padrão, aparece ao passar o mouse */
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.m11-close-btn svg {
    stroke: #ffffff !important;
    fill: none !important;
    width: 16px !important;
    height: 16px !important;
    display: block !important;
}

.m11-close-btn svg * {
    stroke: #ffffff !important;
    fill: none !important;
}

.m11-video-card:hover .m11-close-btn {
    opacity: 1;
}

/* Som no canto superior direito */
.m11-audio-btn {
    top: 12px;
    right: 12px;
}

.m11-audio-btn svg {
    fill: #ffffff !important;
    stroke: none !important;
    width: 18px !important;
    height: 18px !important;
    display: block;
}

.m11-audio-btn svg * {
    fill: #ffffff !important;
    stroke: none !important;
}

.m11-sound-icon {
    display: block;
}

/* Botão de Chamada para Ação (CTA) */
.m11-cta-btn {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    padding: 10px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #111;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.m11-cta-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: #000;
}

.m11-cta-btn .play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.m11-cta-btn .btn-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsivo para Dispositivos Móveis */
@media (max-width: 768px) {
    .m11-video-card {
        width: 140px;
        height: 210px;
        bottom: 16px;
        left: 16px;
        right: auto;
        border-radius: 20px;
    }
    
    .m11-close-btn {
        opacity: 1; /* Sempre visível no mobile */
        width: 28px;
        height: 28px;
        top: 8px;
        left: 8px;
    }
    
    .m11-audio-btn {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
    }
    
    .m11-cta-btn {
        bottom: 12px;
        padding: 7px 10px;
        font-size: 11px;
        border-radius: 16px;
    }
    
    .m11-cta-btn .play-icon svg {
        width: 10px;
        height: 10px;
    }
}
