/**
 * Sistema Completo de Acessibilidade - Mapas Culturais 2.0
 * 
 * Módulos 100% Segregados e Visualmente Harmonizados:
 * 1. Skip Links e-MAG (Navegação por Teclado e Leitores de Tela)
 * 2. Módulo de Leitura de Texto por Voz (Exclusivo para Baixa Visão e Cegos)
 * 3. Módulo de Acessibilidade Visual (Exclusivo para Contraste e Fontes)
 * 4. Player Flutuante de Áudio Acessível (Área de Toque >= 44px)
 * 5. Alto Contraste Negativo (Compatível com Bootstrap 5)
 * 6. Posicionamento Perfeito em Coluna sem Sobreposição
 */

/* ==========================================================================
   1. Skip Links e-MAG (Padrão de Governo Eletrônico para Leitores de Tela)
   ========================================================================== */
.mc-skip-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000000;
    pointer-events: none;
}

.mc-skip-link {
    position: absolute;
    top: -1000px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #ffffff !important;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border: 2px solid #ffc107;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    transition: top 0.2s ease-in-out;
}

.mc-skip-link:focus,
.mc-skip-link:active {
    top: 0;
    outline: 3px solid #0d6efd;
    color: #ffc107 !important;
}

/* ==========================================================================
   2. Estilo Base Unificado das Bolhinhas de Acessibilidade
   ========================================================================== */
.mc-a11y-bubble-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 0;
    outline: none;
}

.mc-a11y-bubble-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.35);
    border-color: #004494;
}

.mc-a11y-bubble-btn:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

.mc-a11y-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    pointer-events: none;
}

/* ==========================================================================
   3. Posicionamento Vertical dos Botões na Lateral Direita (Sem Sobreposição)
   ========================================================================== */

/* 3.1. Botão 1: Leitor de Página Inteira (Leitura Contínua) */
.mc-tts-continuous-container,
.mc-tts-container {
    position: fixed;
    right: 20px;
    top: calc(50% - 99px);
    transform: translateY(-50%);
    z-index: 999993;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* 3.2. Botão 2: Leitor Dinâmico (Ao Passar o Mouse) */
.mc-tts-hover-container {
    position: fixed;
    right: 20px;
    top: calc(50% - 33px);
    transform: translateY(-50%);
    z-index: 999992;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Estado de Leitura Ativa no Botão do Leitor Contínuo */
.mc-a11y-bubble-btn.is-speaking {
    border-color: #dc3545 !important;
    animation: mcTtsPulse 1.6s infinite ease-in-out;
}

.mc-a11y-bubble-btn.is-speaking i {
    color: #dc3545 !important;
}

@keyframes mcTtsPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Estado Ativo no Botão do Leitor Dinâmico (Ao Passar o Mouse) */
.mc-a11y-bubble-btn.is-active {
    border-color: #198754 !important;
    animation: mcHoverPulse 1.6s infinite ease-in-out;
}

.mc-a11y-bubble-btn.is-active i {
    color: #198754 !important;
}

@keyframes mcHoverPulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

/* Ícone Composto para Leitor ao Passar o Mouse (Ponteiro + Alto-falante) */
.mc-tts-hover-icon-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.mc-tts-icon-pointer {
    font-size: 19px;
    color: #0056b3;
    position: absolute;
    bottom: 2px;
    left: 2px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mc-tts-icon-speaker {
    font-size: 13px;
    color: #0056b3;
    position: absolute;
    top: 2px;
    right: 1px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mc-a11y-bubble-btn:hover .mc-tts-icon-pointer {
    transform: translate(-1px, -1px);
}

.mc-a11y-bubble-btn:hover .mc-tts-icon-speaker {
    transform: scale(1.18);
}

/* 3.3. Botão 3: Acessibilidade Visual (Contraste e Fontes) */
.mc-a11y-container {
    position: fixed;
    right: 20px;
    top: calc(50% + 33px);
    transform: translateY(-50%);
    z-index: 999990;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Painel / Gaveta de Funções Visuais */
.mc-a11y-panel {
    position: absolute;
    right: 66px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 290px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    animation: mcFadeInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mcFadeInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.mc-a11y-panel-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.mc-a11y-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.2px;
}

.mc-a11y-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mc-a11y-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 6px;
    flex: 1;
    min-width: 52px;
    cursor: pointer;
    color: #334155;
    font-size: 14px;
    transition: all 0.15s ease-in-out;
    outline: none;
}

.mc-a11y-tool-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.mc-a11y-tool-btn:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 1px;
}

.mc-a11y-tool-btn.active {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

.mc-a11y-btn-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   4. Player Flutuante de Leitura de Tela (Web Speech API)
   ========================================================================== */
.mc-tts-player {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 50px;
    border: 2px solid #0d6efd;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.25);
    z-index: 999995;
    min-width: 360px;
    max-width: 95vw;
    animation: mcSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mcSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.mc-tts-pulse {
    animation: mcPulse 1.2s infinite;
}

@keyframes mcPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Botões do Player com alvo tátil de mínimo 44x44px (Padrão WCAG 2.1 AA) */
.mc-tts-ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0;
}

.mc-tts-speed-btn {
    height: 44px;
    border-radius: 22px !important;
    padding: 0 14px !important;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Seletor dos 2 Modos de Leitura (Contínuo vs Ao Passar o Mouse) */
.mc-tts-mode-group {
    background: #e9ecef;
    border-radius: 22px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
}

.mc-tts-mode-btn {
    border-radius: 18px !important;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px !important;
    transition: all 0.2s ease-in-out;
    border: none !important;
    box-shadow: none !important;
}

.mc-tts-mode-btn.active {
    background-color: #0056b3 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 86, 179, 0.35) !important;
}

.mc-tts-mode-btn:not(.active) {
    background-color: transparent !important;
    color: #495057 !important;
}

.mc-tts-mode-btn:hover:not(.active) {
    color: #0056b3 !important;
    background-color: rgba(0, 86, 179, 0.08) !important;
}

/* Modo Dinâmico Ativo - Indicação visual sutil */
body.mc-tts-hover-mode-active {
    cursor: default;
}

/* Realce adicional em Alto Contraste para o Seletor de Modos */
body.pojo-a11y-negative-contrast .mc-tts-mode-group {
    background: #000000 !important;
    border: 1px solid #ffff00 !important;
}

body.pojo-a11y-negative-contrast .mc-tts-mode-btn.active {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

body.pojo-a11y-negative-contrast .mc-tts-mode-btn:not(.active) {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

body.pojo-a11y-negative-contrast .mc-tts-mode-btn:hover:not(.active) {
    background-color: #222222 !important;
    color: #ffffff !important;
}


/* Indicador Flutuante do Leitor ao Passar o Mouse */
.mc-tts-hover-indicator {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #198754;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    z-index: 999994;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(25, 135, 84, 0.35);
    animation: mcSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mc-tts-hover-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    animation: mcPulse 1.2s infinite;
}

body.pojo-a11y-negative-contrast .mc-tts-hover-indicator {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}

body.pojo-a11y-negative-contrast .mc-tts-hover-dot {
    background-color: #ffff00 !important;
}

body.pojo-a11y-negative-contrast .mc-a11y-bubble-btn.is-active {
    border-color: #00ff00 !important;
    background-color: #000000 !important;
}

body.pojo-a11y-negative-contrast .mc-a11y-bubble-btn.is-active i {
    color: #00ff00 !important;
}

/* Super Realce Visual de Parágrafo/Trecho em Leitura para Baixa Visão */
.mc-reading-highlight {
    outline: 4px solid #ffc107 !important;
    outline-offset: 4px !important;
    background-color: rgba(255, 193, 7, 0.22) !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease, outline 0.2s ease !important;
}

/* ==========================================================================
   5. Alto Contraste Negativo (Compatível com Modern Mapas & Bootstrap 5)
   ========================================================================== */
body.pojo-a11y-negative-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Força fundo preto e textos legíveis em todos os elementos da página, exceto widgets de acessibilidade */
body.pojo-a11y-negative-contrast *:not(.mc-a11y-container):not(.mc-a11y-container *):not(.mc-tts-container):not(.mc-tts-container *):not(.mc-tts-player):not(.mc-tts-player *):not(#vlibras-access-wrapper):not(.leaflet-container):not(.leaflet-container *):not(.leaflet-pane):not(.leaflet-pane *):not([id*="map"]):not([id*="map"] *):not([class*="leaflet"]) {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #444444 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Links */
body.pojo-a11y-negative-contrast a:not(.btn):not(.mc-skip-link) {
    color: #00e5ff !important;
    text-decoration: underline !important;
}

body.pojo-a11y-negative-contrast a:hover:not(.btn):not(.mc-skip-link) {
    color: #ffff00 !important;
}

/* Títulos h1 a h6 */
body.pojo-a11y-negative-contrast h1,
body.pojo-a11y-negative-contrast h2,
body.pojo-a11y-negative-contrast h3,
body.pojo-a11y-negative-contrast h4,
body.pojo-a11y-negative-contrast h5,
body.pojo-a11y-negative-contrast h6,
body.pojo-a11y-negative-contrast .mc-footer-title {
    color: #ffff00 !important;
}

/* Strong e destaques */
body.pojo-a11y-negative-contrast strong,
body.pojo-a11y-negative-contrast b {
    color: #ffff00 !important;
}

/* Textos secundários e mutados */
body.pojo-a11y-negative-contrast .text-muted,
body.pojo-a11y-negative-contrast .text-secondary {
    color: #d1d5db !important;
}

/* Cards, Navbar, Modais e Rodapé */
body.pojo-a11y-negative-contrast .navbar,
body.pojo-a11y-negative-contrast .mc-navbar,
body.pojo-a11y-negative-contrast .card,
body.pojo-a11y-negative-contrast .modal-content,
body.pojo-a11y-negative-contrast .dropdown-menu,
body.pojo-a11y-negative-contrast .list-group-item,
body.pojo-a11y-negative-contrast footer,
body.pojo-a11y-negative-contrast .mc-footer {
    background-color: #111111 !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
}

/* Inputs, Selects e Textareas */
body.pojo-a11y-negative-contrast input:not([type="checkbox"]):not([type="radio"]),
body.pojo-a11y-negative-contrast select,
body.pojo-a11y-negative-contrast textarea {
    background-color: #1a1a1a !important;
    color: #ffff00 !important;
    border: 2px solid #ffffff !important;
}

body.pojo-a11y-negative-contrast input::placeholder,
body.pojo-a11y-negative-contrast textarea::placeholder {
    color: #aaaaaa !important;
}

/* Botões do Bootstrap em Alto Contraste */
body.pojo-a11y-negative-contrast .btn {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
    font-weight: 700 !important;
}

body.pojo-a11y-negative-contrast .btn:hover,
body.pojo-a11y-negative-contrast .btn:focus {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border-color: #ffff00 !important;
}

/* Tabelas */
body.pojo-a11y-negative-contrast .table {
    border-color: #ffffff !important;
}

body.pojo-a11y-negative-contrast .table th,
body.pojo-a11y-negative-contrast .table td {
    background-color: #0d0d0d !important;
    color: #ffffff !important;
    border-color: #444444 !important;
}

/* Badges e Selos */
body.pojo-a11y-negative-contrast .badge {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
}

/* Preserva as bolhinhas de acessibilidade no modo Alto Contraste */
body.pojo-a11y-negative-contrast .mc-a11y-bubble-btn {
    background-color: #000000 !important;
    border-color: #ffff00 !important;
    color: #ffff00 !important;
}

body.pojo-a11y-negative-contrast .mc-a11y-bubble-btn i {
    color: #ffff00 !important;
}

body.pojo-a11y-negative-contrast .mc-a11y-panel {
    background: #000000 !important;
    border: 2px solid #ffff00 !important;
}

body.pojo-a11y-negative-contrast .mc-a11y-panel * {
    background: transparent !important;
    color: #ffffff !important;
}

body.pojo-a11y-negative-contrast .mc-a11y-panel-title {
    color: #ffff00 !important;
}

body.pojo-a11y-negative-contrast .mc-a11y-tool-btn {
    border-color: #ffff00 !important;
    color: #ffff00 !important;
}

body.pojo-a11y-negative-contrast .mc-a11y-tool-btn.active {
    background: #ffff00 !important;
    color: #000000 !important;
}

body.pojo-a11y-negative-contrast .mc-a11y-tool-btn.active * {
    color: #000000 !important;
}

body.pojo-a11y-negative-contrast .mc-tts-player {
    background: #000000 !important;
    border-color: #ffff00 !important;
}

body.pojo-a11y-negative-contrast .mc-tts-player * {
    color: #ffffff !important;
}

/* ==========================================================================
/* ==========================================================================
   Preservação e Acessibilidade para Mapas Interativos (Leaflet / OpenStreetMap / GIS)
   Evita que o Alto Contraste pinte as camadas de mapas de preto
   ========================================================================== */

/* Imagens, fotos e mídias visuais nunca devem receber cor de fundo opaca que oculte sua transparência */
body.pojo-a11y-negative-contrast img,
body.pojo-a11y-negative-contrast svg,
body.pojo-a11y-negative-contrast canvas {
    background-color: transparent !important;
}

/* Contêiner principal do mapa */
body.pojo-a11y-negative-contrast .leaflet-container,
body.pojo-a11y-negative-contrast [id*="map"],
body.pojo-a11y-negative-contrast #mc-search-map,
body.pojo-a11y-negative-contrast #agents-map,
body.pojo-a11y-negative-contrast #spaces-map,
body.pojo-a11y-negative-contrast #events-map,
body.pojo-a11y-negative-contrast #agent-mini-map,
body.pojo-a11y-negative-contrast #space-mini-map,
body.pojo-a11y-negative-contrast div#gmap {
    background-color: #1a1a1a !important;
    border: 2px solid #ffff00 !important;
    color: #ffffff !important;
}

/* Todos os painéis internos do Leaflet (tile-pane, overlay-pane, marker-pane, etc.) devem ser 100% transparentes */
body.pojo-a11y-negative-contrast .leaflet-pane,
body.pojo-a11y-negative-contrast .leaflet-pane *,
body.pojo-a11y-negative-contrast .leaflet-tile-pane,
body.pojo-a11y-negative-contrast .leaflet-tile-container,
body.pojo-a11y-negative-contrast .leaflet-layer,
body.pojo-a11y-negative-contrast .leaflet-marker-pane,
body.pojo-a11y-negative-contrast .leaflet-shadow-pane,
body.pojo-a11y-negative-contrast .leaflet-overlay-pane,
body.pojo-a11y-negative-contrast .leaflet-overlay-pane svg,
body.pojo-a11y-negative-contrast .leaflet-overlay-pane path,
body.pojo-a11y-negative-contrast .leaflet-tooltip-pane,
body.pojo-a11y-negative-contrast .leaflet-popup-pane {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
}

/* Tiles (imagens de satélite / rua do OpenStreetMap) mantêm-se 100% nítidos e visíveis */
body.pojo-a11y-negative-contrast .leaflet-tile {
    background: transparent !important;
    background-color: transparent !important;
    filter: brightness(0.95) contrast(1.15) !important;
    border: none !important;
}

/* Marcadores e Ícones no Mapa */
body.pojo-a11y-negative-contrast .leaflet-marker-icon,
body.pojo-a11y-negative-contrast .leaflet-marker-shadow {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    filter: drop-shadow(0 0 2px #ffff00) !important;
}

/* Círculos e geometrias desenhadas com Leaflet Vector (circleMarker, polygon) */
body.pojo-a11y-negative-contrast .leaflet-overlay-pane svg path {
    stroke: #ffff00 !important;
    stroke-width: 3px !important;
}

/* Controles de Zoom (+ e -) */
body.pojo-a11y-negative-contrast .leaflet-control-zoom,
body.pojo-a11y-negative-contrast .leaflet-bar {
    background-color: #000000 !important;
    border: 2px solid #ffff00 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.9) !important;
}

body.pojo-a11y-negative-contrast .leaflet-control-zoom a {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-bottom: 1px solid #444444 !important;
}

body.pojo-a11y-negative-contrast .leaflet-control-zoom a:hover,
body.pojo-a11y-negative-contrast .leaflet-control-zoom a:focus {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

/* Barra de Atribuição (OpenStreetMap contributors) */
body.pojo-a11y-negative-contrast .leaflet-control-attribution {
    background-color: rgba(0, 0, 0, 0.85) !important;
    color: #ffffff !important;
    border-top-left-radius: 4px;
    padding: 2px 6px !important;
}

body.pojo-a11y-negative-contrast .leaflet-control-attribution a {
    color: #00e5ff !important;
    text-decoration: underline !important;
}

/* Popups e Caixas de Diálogo dos Marcadores do Mapa */
body.pojo-a11y-negative-contrast .leaflet-popup-content-wrapper {
    background-color: #111111 !important;
    color: #ffffff !important;
    border: 2px solid #ffff00 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.9) !important;
}

body.pojo-a11y-negative-contrast .leaflet-popup-tip {
    background-color: #111111 !important;
    border: 1px solid #ffff00 !important;
}

body.pojo-a11y-negative-contrast .leaflet-popup-content {
    color: #ffffff !important;
}

body.pojo-a11y-negative-contrast .leaflet-popup-content a {
    color: #00e5ff !important;
}

body.pojo-a11y-negative-contrast .leaflet-popup-close-button {
    color: #ffff00 !important;
}

body.pojo-a11y-negative-contrast .leaflet-popup-close-button:hover {
    color: #ff0055 !important;
}

/* Botões flutuantes de ação rápida do mapa de busca */
body.pojo-a11y-negative-contrast #mc-view-map-container .btn {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}

body.pojo-a11y-negative-contrast #mc-view-map-container .btn:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

body.pojo-a11y-negative-contrast #mc-map-empty-alert {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffff00 !important;
}

body.pojo-a11y-negative-contrast #mc-map-empty-alert * {
    color: #ffffff !important;
}

   6. Posicionamento Responsivo para Telas Menores (Mobile / Tablets)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 1. Leitor de Voz no mobile */
    .mc-tts-container {
        right: 12px;
        top: auto;
        bottom: 148px;
        transform: none;
    }

    /* 2. Acessibilidade Visual no mobile */
    .mc-a11y-container {
        right: 12px;
        top: auto;
        bottom: 88px;
        transform: none;
    }

    .mc-a11y-bubble-btn {
        width: 48px;
        height: 48px;
    }

    .mc-a11y-icon {
        width: 30px;
        height: 30px;
    }

    .mc-a11y-panel {
        right: 0;
        bottom: 58px;
        top: auto;
        transform: none;
        min-width: 280px;
        max-width: calc(100vw - 24px);
    }

    .mc-tts-continuous-container,
    .mc-tts-container {
        top: auto;
        bottom: 190px;
        right: 12px;
        transform: none;
    }

    .mc-tts-hover-container {
        top: auto;
        bottom: 136px;
        right: 12px;
        transform: none;
    }

    .mc-a11y-container {
        top: auto;
        bottom: 82px;
        right: 12px;
        transform: none;
    }

    .mc-tts-player {
        bottom: 250px;
        min-width: 320px;
        max-width: calc(100vw - 20px);
        border-radius: 28px;
    }

    .mc-tts-hover-indicator {
        bottom: 250px;
        font-size: 11px;
        padding: 6px 14px;
        max-width: calc(100vw - 24px);
    }

    .mc-tts-hover-icon-wrapper {
        width: 28px;
        height: 28px;
    }

    .mc-tts-icon-pointer {
        font-size: 16px;
        bottom: 1px;
        left: 1px;
    }

    .mc-tts-icon-speaker {
        font-size: 11px;
        top: 1px;
        right: 0px;
    }

    .mc-tts-mode-btn {
        padding: 4px 8px !important;
        font-size: 11px;
    }
}
