.eads-live-viewer {
    padding: 20px;
    box-sizing: border-box;
}

.eads-live-container {
    display: flex;
    gap: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

/* Sidebar */
.eads-live-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding-bottom: 10px;
}

.eads-live-list {
    height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 10px 10px 0;
}

/* Conteúdo Principal */
.eads-live-content {
    flex: 1;
    min-width: 0; /* Importante para flex */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: visible;
}

.eads-live-info {
    padding: 15px;
    overflow: auto;
    display: block;
    flex: 1;
}

/* Novo wrapper para o player e controles */
.eads-player-wrapper {
    margin-bottom: 20px;
    background: #000;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0; /* Impede que o player seja comprimido */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.eads-live-player {
    width: 100%;
    background: #000;
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* Proporção 16:9 padrão para vídeos */
    min-height: 0;
    display: block !important; /* Forçar exibição */
    overflow: hidden;
    margin: 0;
}

.eads-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block !important; /* Forçar exibição */
    visibility: visible !important; /* Garantir visibilidade */
}

#youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block !important; /* Forçar exibição */
}

/* Estilo para sobreposição do player - overlay bloqueador que impede TODOS os cliques */
.eads-player-overlay-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 999999 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    pointer-events: all !important;
}

.eads-player-overlay-blocker:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.eads-player-overlay-blocker:hover::after {
    content: '\f04b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Garantir que o iframe do YouTube NÃO possa ser clicado */
.eads-player-container iframe {
    z-index: 1 !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Estilo legado do overlay (manter para compatibilidade) */
.eads-player-overlay {
    display: none !important;
}

/* Chat */
.eads-live-chat {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.eads-chat-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.eads-chat-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.eads-chat-container {
    height: calc(100vh - 150px);
    position: relative;
}

#youtube-chat {
    width: 100%;
    height: 100%;
    border: none;
}

/* Headers */
.eads-section-header {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.eads-section-header h3 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 1400px) {
    .eads-live-sidebar,
    .eads-live-chat {
        width: 250px;
    }
}

@media (max-width: 1200px) {
    .eads-live-container {
        flex-wrap: wrap;
    }

    .eads-live-content {
        order: 1;
        width: 100%;
    }

    .eads-live-sidebar {
        order: 2;
        width: calc(50% - 10px);
        height: 400px;
    }

    .eads-live-chat {
        order: 3;
        width: calc(50% - 10px);
        height: 400px;
    }

    .eads-live-list,
    .eads-chat-container {
        height: calc(100% - 50px);
    }
}

@media (max-width: 768px) {
    .eads-live-container {
        padding: 10px;
        gap: 10px;
    }
    
    .eads-live-sidebar,
    .eads-live-content,
    .eads-live-chat {
        width: 100%;
    }
    
    .eads-live-sidebar {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .eads-live-player {
        min-height: 320px; /* Altura mínima ajustada para telas menores */
    }
    
    .eads-live-chat {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .eads-live-container {
        padding: 5px;
    }
    
    .eads-live-sidebar {
        max-height: 250px;
    }
    
    .eads-live-player {
        min-height: 280px; /* Altura mínima ajustada para telas muito pequenas */
    }
    
    .eads-live-chat {
        height: 350px;
    }
}

/* Lista de Lives */
/* Comentando os estilos antigos dos cards
.eads-live-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.eads-live-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.eads-live-item.active {
    border-color: #2196F3;
    background: #f8f9fa;
}

.eads-live-item.active .eads-live-item-title {
    color: #2196F3;
}

.eads-live-item-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: #f5f5f5;
}

.eads-live-item-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
*/

/* Novos estilos para o formato sanfona (accordion) */
.eads-accordion {
    width: 100%;
    padding-bottom: 5px;
}

.eads-accordion-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.eads-accordion-item.active-live {
    border: 1px solid #a5d6a7;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
    transform: translateY(-1px);
}

.eads-accordion-header {
    padding: 12px 15px;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: background 0.2s ease;
    border-left: 4px solid transparent;
    gap: 8px;
}

/* Novos estilos para o layout de informações no cabeçalho */
.eads-header-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding-right: 0;
    width: 100%;
    gap: 5px;
}

.eads-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    width: 100%;
}

.eads-header-date {
    font-size: 0.85em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
    margin-top: 2px;
}

.eads-header-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #888;
}

.eads-accordion-item.active-live .eads-accordion-header {
    background: #e8f5e9;
    border-left-color: #4CAF50;
    padding-top: 15px;
    padding-bottom: 15px;
}

.eads-accordion-header:hover {
    background: #f0f0f0;
}

.eads-accordion-title {
    font-weight: 600;
    font-size: 1em;
    display: block;
    color: #333;
    transition: color 0.2s ease;
    text-overflow: initial;
    overflow: visible;
    white-space: normal;
    margin-bottom: 6px;
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
}

.eads-accordion-item.active-live .eads-accordion-title {
    color: #2E7D32;
}

.eads-accordion-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    color: #777;
    margin-left: 8px;
}

.eads-accordion-item.active .eads-accordion-icon {
    transform: rotate(180deg);
}

.eads-accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.eads-accordion-item.active .eads-accordion-content {
    padding: 15px;
    max-height: 500px;
    background-color: #fafafa;
    border-top: 1px solid #eee;
}

/* Remover estilos antigos que não são mais necessários */
.eads-accordion-full-title {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    color: #333;
}

.eads-accordion-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.eads-accordion-description {
    font-size: 0.9em;
    line-height: 1.5;
    color: #444;
    margin-bottom: 15px;
    max-height: 100px;
    overflow-y: auto;
    padding: 5px 0;
}

/* Mantendo os estilos do status */
.eads-live-item-status {
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    line-height: 1.2;
    display: inline-block;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-right: 0;
}

.eads-live-item-status.scheduled {
    background: #ffd700;
    color: #333;
}

.eads-live-item-status.active {
    background: #4CAF50;
    color: #fff;
}

.eads-live-item-status.available {
    background: linear-gradient(135deg, #1e88e5, #64b5f6);
    color: #fff;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.eads-live-item-status.finished {
    background: #9E9E9E;
    color: #fff;
}

/* Ajustes responsivos para o accordion */
@media (max-width: 768px) {
    .eads-accordion-header {
        padding: 12px;
        gap: 5px;
    }
    
    .eads-header-info {
        flex-direction: column;
    }
    
    .eads-accordion-title {
        font-size: 0.95em;
        line-height: 1.3;
    }
    
    .eads-header-date {
        font-size: 0.8em;
    }
    
    .eads-header-actions {
        align-items: center;
    }
    
    .eads-accordion-item.active .eads-accordion-content {
        padding: 10px;
    }
    
    .eads-accordion-description {
        max-height: 80px;
    }
    
    .eads-live-item-status {
        font-size: 9px;
        padding: 3px 6px;
        min-width: 60px;
    }
}

/* Remover estilos antigos dos controles (mantendo apenas a declaração display: none) */
.eads-player-controls,
.eads-control-group,
.eads-control-button,
.eads-volume-control,
.eads-volume-slider,
.eads-volume-slider input[type="range"],
.eads-volume-slider input[type="range"]::-webkit-slider-thumb,
.eads-time-display,
.eads-progress-container,
.eads-progress-track,
.eads-progress-hover,
.eads-progress-tooltip,
.eads-progress-preview,
.eads-progress-bar,
.eads-progress-knob {
    display: none;
}

/* Estilos para os controles do vídeo */
.video-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #282828;
    border-radius: 0 0 5px 5px;
    z-index: 100;
    position: relative;
    margin: 0;
    border-top: 1px solid #333;
    order: 1; /* Garante que venha após o player na ordem flex */
    width: 100%;
    box-sizing: border-box;
    pointer-events: all !important;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-controls button {
    background-color: transparent;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    pointer-events: all !important;
    z-index: 10001 !important;
    position: relative !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.video-controls button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.video-controls button:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.video-controls button i {
    font-size: 14px;
}

.video-controls .progress-bar {
    flex-grow: 1;
    margin: 0 15px;
    background-color: #555;
    height: 6px;
    position: relative;
    cursor: pointer;
    border-radius: 3px;
    overflow: visible;
    pointer-events: all !important;
    z-index: 10001 !important;
}

.video-controls .progress {
    background-color: #ff0000;
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.video-controls .progress-indicator {
    position: absolute;
    top: -5px;
    left: 0;
    width: 16px;
    height: 16px;
    background-color: #ff0000;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-left: -8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-controls .progress-bar:hover .progress-indicator {
    opacity: 1;
}

.live-indicator {
    background-color: #ff0000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    transition: all 0.2s ease;
    text-transform: uppercase;
    pointer-events: all !important;
    z-index: 10001 !important;
    position: relative !important;
}

.live-indicator:hover {
    background-color: #cc0000;
}

/* Estilos para o controle de volume vertical - CORRIGIDO */
.volume-control {
    position: relative;
    display: inline-block;
}

.volume-slider {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 100px;
    background-color: #282828;
    border-radius: 4px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    /* Adicionar área de buffer para evitar perder hover */
    margin-bottom: -5px;
    padding-bottom: 15px;
}

/* Mostrar slider quando hover no controle OU no próprio slider */
.volume-control:hover .volume-slider,
.volume-slider:hover {
    display: flex;
}

/* Criar uma ponte invisível entre o botão e o slider */
.volume-control::before {
    content: '';
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background: transparent;
    z-index: 999;
}

.volume-track {
    width: 6px;
    height: 80px;
    background-color: #555;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.volume-track:hover {
    background-color: #666;
}

.volume-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ff0000;
    border-radius: 3px;
    height: 50%; /* Valor padrão inicial */
    transition: height 0.1s ease;
}

.volume-handle {
    position: absolute;
    left: 50%;
    bottom: 50%; /* Posição inicial baseada no volume-fill */
    width: 16px;
    height: 16px;
    background-color: #ff0000;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, 50%);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-handle:hover {
    transform: translate(-50%, 50%) scale(1.1);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

/* Melhorar o botão de volume */
#mute-btn {
    transition: all 0.2s ease;
}

#mute-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

#mute-btn.muted {
    color: #ff4444;
    background-color: rgba(255, 0, 0, 0.2);
}

#mute-btn.muted:hover {
    background-color: rgba(255, 0, 0, 0.3);
}

/* Ajustes para responsividade */
@media screen and (max-width: 768px) {
    .video-controls {
        flex-wrap: wrap;
        padding: 10px;
        gap: 10px;
    }
    
    .live-indicator {
        order: 1;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .video-controls .progress-bar {
        order: 3;
        width: 100%;
        margin: 8px 0 4px 0;
    }
    
    .control-buttons {
        order: 2;
        gap: 5px;
    }
    
    .video-controls button {
        width: 30px;
        height: 30px;
    }
    
    .video-controls button i {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .eads-player-wrapper {
        margin-bottom: 15px;
    }
    
    .video-controls {
        padding: 8px;
        position: relative;
        display: flex;
        width: 100%;
        visibility: visible;
        opacity: 1;
        min-height: 40px;
    }
    
    .control-buttons {
        gap: 2px;
    }
    
    .video-controls button {
        width: 28px;
        height: 28px;
    }
    
    .live-indicator {
        font-size: 10px;
        padding: 3px 6px;
        margin-right: 5px;
    }
}

/* Correção específica para dispositivos muito pequenos */
@media screen and (max-width: 400px) {
    .video-controls {
        min-height: 80px;
        padding: 6px;
        flex-direction: column;
    }
    
    .live-indicator {
        margin-bottom: 5px;
        align-self: flex-start;
    }
    
    .control-buttons {
        margin: 5px 0;
        justify-content: center;
        width: 100%;
    }
    
    .video-controls .progress-bar {
        margin: 2px 0;
    }
}

/* Ajustes para controles em telas pequenas */
@media screen and (max-width: 768px) {
    .eads-live-player {
        margin-bottom: 0; /* Remove margin extra */
    }
    
    .video-controls {
        position: relative;
        bottom: auto;
    }
}

@media screen and (max-width: 480px) {
    .eads-live-player {
        margin-bottom: 0; /* Remove o espaço que estava criando na versão mobile */
    }
}

/* Informações da Live */
.eads-live-info {
    padding: 15px;
}

.eads-live-info h2 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #333;
    font-weight: 600;
}

.eads-live-meta {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95em;
    display: flex;
    gap: 15px;
}

.eads-live-description {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #333;
    white-space: pre-line; /* Preserva quebras de linha */
}

/* Seção de Downloads */
.eads-downloads-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: block;
    border: none;
}

.eads-downloads-section h3 {
    margin: 0 0 15px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.eads-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eads-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: background-color 0.2s;
}

.eads-download-item:hover {
    background: #f2f2f2;
}

.eads-download-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eads-download-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2196F3;
}

.eads-download-item-title {
    font-weight: 500;
    color: #333;
}

.eads-download-item-actions {
    display: flex;
    gap: 5px;
}

.eads-download-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #2196F3;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.2s;
}

.eads-download-btn:hover {
    background: #1976D2;
    color: white;
    text-decoration: none;
}

.eads-download-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .eads-download-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        gap: 10px;
    }
    
    .eads-download-item-actions {
        width: 100%;
    }
    
    .eads-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Estado vazio para downloads */
.eads-downloads-list .eads-empty-state {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px dashed #ddd;
}

.eads-downloads-list .eads-empty-state p {
    margin: 0;
    color: #777;
    font-size: 0.9em;
}

/* Estado vazio */
.eads-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.eads-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.eads-empty-state p {
    margin: 0;
    font-size: 1.1em;
}

/* Botões */
.eads-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.eads-button-primary {
    background: #2196F3;
    color: #fff;
}

.eads-button-primary:hover {
    background: #1976D2;
}

/* Responsividade */
@media (max-width: 1400px) {
    .eads-live-container {
        gap: 10px;
    }
    .eads-live-sidebar {
        width: 25%;
    }
    .eads-live-content {
        width: 50%;
    }
    .eads-live-chat {
        width: 25%;
    }
}

@media (max-width: 1200px) {
    .eads-live-container {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }
    .eads-live-sidebar {
        width: 30%;
    }
    .eads-live-content {
        width: 67%;
    }
    .eads-live-chat {
        width: 100%;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .eads-live-viewer {
        padding: 10px;
    }
    
    .eads-live-container {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }
    .eads-live-sidebar,
    .eads-live-content,
    .eads-live-chat {
        width: 100%;
    }
    .eads-live-sidebar {
        max-height: 300px;
        overflow-y: auto;
    }
    .eads-live-player {
        height: 56.25vw;
    }
    .eads-live-chat {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .eads-live-viewer {
        padding: 5px;
    }
    
    .eads-live-container {
        padding: 0;
    }
    .eads-live-sidebar {
        max-height: 250px;
    }
    .eads-live-chat {
        height: 350px;
    }
}

@media (max-width: 400px) {
    .eads-live-viewer {
        padding: 2px;
    }
}

@media (max-width: 320px) {
    .eads-live-viewer {
        padding: 0;
    }
}

/* Suporte ao Elementor */
.elementor-widget-eads_live_viewer {
    width: 100%;
}

.eads-live-viewer.hide-sidebar .eads-live-sidebar {
    display: none;
}

.eads-live-viewer.hide-sidebar .eads-live-content {
    width: 75%;
}

.eads-live-viewer.hide-chat .eads-live-chat {
    display: none;
}

.eads-live-viewer.hide-chat .eads-live-content {
    width: 80%;
}

.eads-live-viewer.hide-sidebar.hide-chat .eads-live-content {
    width: 100%;
}

/* Ajustes responsivos para o Elementor */
@media (max-width: 1200px) {
    .eads-live-viewer.hide-sidebar .eads-live-content,
    .eads-live-viewer.hide-chat .eads-live-content,
    .eads-live-viewer.hide-sidebar.hide-chat .eads-live-content {
        width: 100%;
    }
}

/* Estilos para o modal de acesso negado */
.eads-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.eads-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

.eads-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eads-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.eads-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eads-modal-close:hover {
    color: #333;
}

.eads-modal-body {
    padding: 20px;
}

.eads-access-denied-message {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.eads-access-denied-message .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #e74c3c;
    margin-right: 15px;
}

.eads-access-denied-message p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.eads-product-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.eads-product-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CSS para ocultar as legendas do YouTube - APENAS quando classe .eads-captions-disabled estiver ativa */
.eads-captions-disabled .ytp-caption-segment, 
.eads-captions-disabled .captions-text, 
.eads-captions-disabled .ytp-caption-window-container, 
.eads-captions-disabled .ytp-subtitles-player-content,
.eads-captions-disabled .ytp-caption-window,
.eads-captions-disabled .caption-window,
.eads-captions-disabled .ytp-chrome-controls .ytp-subtitles-button.ytp-button,
.eads-captions-disabled .ytp-caption-segment-inline,
.eads-captions-disabled .ytp-caption-position,
.eads-captions-disabled [class*="caption"],
.eads-captions-disabled [class*="subtitle"],
.eads-captions-disabled [class*="ytp-subtitle"],
.eads-captions-disabled [class*="ytp-caption"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -9999 !important;
    transform: scale(0) !important;
    max-height: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
}

/* Garantir que iframes do YouTube sejam sempre visíveis */
.eads-player-container iframe {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
}

/* Estilo para o botão de desativar legendas - melhorado para mostrar estado */
#disable-captions {
    /* Usar os mesmos estilos dos outros botões */
    background-color: transparent;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all !important;
    z-index: 10001 !important;
    position: relative !important;
    user-select: none !important;
    font-size: 11px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    border: 2px solid transparent;
}

#disable-captions:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

#disable-captions:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Estado quando legendas estão DESABILITADAS (botão ativo/pressionado) */
#disable-captions.active {
    background-color: rgba(255, 0, 0, 0.4);
    color: #fff;
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4), inset 0 0 10px rgba(255, 0, 0, 0.2);
}

#disable-captions.active:hover {
    background-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), inset 0 0 15px rgba(255, 0, 0, 0.3);
}

/* Estado quando legendas estão HABILITADAS (botão normal) */
#disable-captions:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

#disable-captions:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Adicionar um pequeno indicador visual */
#disable-captions::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Indicador quando legendas estão desabilitadas */
#disable-captions.active::after {
    background-color: #ff0000;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
}

/* Indicador quando legendas estão habilitadas */
#disable-captions:not(.active)::after {
    background-color: #00ff00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
}

/* Adicionar uma transição suave para todos os botões */
.control-buttons button {
    transition: all 0.2s ease;
}

/* Garantir que o iframe ocupe todo o contêiner */
.eads-player-container iframe,
#youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 10;
}

/* Remover o overlay quando o player estiver carregado */
.eads-player-container iframe + .eads-player-overlay {
    display: none !important;
}

/* Adicionar estados de hover nos itens */
.eads-accordion-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.eads-accordion-header:hover {
    background: #f0f0f0;
}

.eads-accordion-item.active-live:hover .eads-accordion-header {
    background: #d7eeda;
}

/* Garantir que os containers tenham sizing correto */
*, *:before, *:after {
    box-sizing: border-box;
}

/* Estilo para indicador de carregamento do player */
.eads-player-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 18px;
    z-index: 5;
}

/* Estilo para mensagens de erro genéricas */
.eads-error-message {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    max-width: 500px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.eads-error-message i {
    font-size: 42px;
    color: #f44336;
    margin-bottom: 10px;
}

.eads-error-message p {
    margin: 0;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.eads-error-message button {
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.eads-error-message button:hover {
    background-color: #1976D2;
}

/* Estilo para o placeholder do player */
.eads-player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #1e1e1e;
    color: white;
    z-index: 1;
}

.eads-player-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.eads-player-placeholder p {
    font-size: 16px;
    margin: 0;
}

/* Remover estilos dos botões "Assistir" - não são mais utilizados */
.eads-watch-button,
.eads-watch-header-button {
    display: none !important;
}

/* Estilo para mensagem de erro do player */
.eads-player-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e1e1e;
    color: white;
    z-index: 5;
    text-align: center;
}

.eads-player-error div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.eads-player-error i {
    font-size: 42px;
    color: #ff5252;
    margin-bottom: 10px;
}

.eads-player-error p {
    font-size: 16px;
    margin: 0;
}

.eads-player-error button {
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.eads-player-error button:hover {
    background-color: #1976D2;
}

/* Garantir que os controles sejam totalmente clicáveis - FIX CRÍTICO */
.video-controls {
    pointer-events: all !important;
    z-index: 10000 !important;
    position: relative !important;
}

.video-controls button {
    pointer-events: all !important;
    z-index: 10001 !important;
    position: relative !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.video-controls button:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.video-controls .progress-bar {
    pointer-events: all !important;
    z-index: 10001 !important;
    position: relative !important;
    cursor: pointer !important;
}

.live-indicator {
    pointer-events: all !important;
    z-index: 10001 !important;
    position: relative !important;
    cursor: pointer !important;
}

/* Garantir que nenhum elemento pai bloqueie os cliques */
.eads-player-wrapper,
.eads-live-content,
.eads-live-viewer {
    pointer-events: all !important;
}

/* Sobreposições específicas para debug */
.video-controls button.debug-active {
    background-color: rgba(255, 0, 0, 0.3) !important;
    border: 2px solid red !important;
}

/* Responsividade mantendo clicabilidade */
@media screen and (max-width: 768px) {
    .video-controls button {
        pointer-events: all !important;
        z-index: 10001 !important;
        min-width: 30px !important;
        min-height: 30px !important;
        touch-action: manipulation !important;
    }
}

@media screen and (max-width: 480px) {
    .video-controls button {
        pointer-events: all !important;
        z-index: 10001 !important;
        min-width: 28px !important;
        min-height: 28px !important;
        touch-action: manipulation !important;
    }
}

/* Ajustes responsivos para controles de volume */
@media screen and (max-width: 768px) {
    /* Volume slider mais visível em dispositivos móveis */
    .volume-slider {
        width: 35px;
        height: 120px;
        padding: 15px 0;
        margin-bottom: -10px;
        padding-bottom: 20px;
    }
    
    .volume-track {
        width: 8px;
        height: 90px;
    }
    
    .volume-handle {
        width: 18px;
        height: 18px;
    }
    
    /* Ponte maior para dispositivos touch */
    .volume-control::before {
        width: 50px;
        height: 15px;
        bottom: 30px;
    }
    
    /* Botão de volume maior em mobile */
    #mute-btn {
        min-width: 35px !important;
        min-height: 35px !important;
    }
}

@media screen and (max-width: 480px) {
    /* Controle de volume ainda mais acessível em telas pequenas */
    .volume-slider {
        width: 40px;
        height: 140px;
        bottom: 45px;
        padding: 20px 0;
    }
    
    .volume-track {
        width: 10px;
        height: 100px;
    }
    
    .volume-handle {
        width: 20px;
        height: 20px;
    }
    
    /* Manter o slider visível por mais tempo em dispositivos touch */
    .volume-control:active .volume-slider,
    .volume-slider:active {
        display: flex;
    }
}

/* Hover states melhorados para desktop */
@media (hover: hover) {
    .volume-control:hover .volume-slider {
        animation: fadeInVolume 0.2s ease;
    }
    
    @keyframes fadeInVolume {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
}

/* Estilos para links automáticos detectados nas descrições */
.eads-auto-link {
    color: #1e88e5;
    text-decoration: underline;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
    word-break: break-all;
}

.eads-auto-link:hover {
    color: #1565c0;
    text-decoration-color: #1565c0;
    text-shadow: 0 1px 2px rgba(21, 101, 192, 0.1);
}

.eads-auto-link:visited {
    color: #7b1fa2;
}

.eads-auto-link:visited:hover {
    color: #6a1b9a;
}

.eads-email-link {
    color: #43a047;
}

.eads-email-link:hover {
    color: #2e7d32;
    text-decoration-color: #2e7d32;
}

.eads-email-link:visited {
    color: #388e3c;
}

/* Responsividade para links em descrições */
@media (max-width: 768px) {
    .eads-auto-link {
        word-break: break-all;
        hyphens: auto;
    }
}

/* Ocultar controles nativos do YouTube do iframe */
.eads-hide-yt-controls::-webkit-media-controls,
.eads-hide-yt-controls::-webkit-media-controls-enclosure,
.eads-hide-yt-controls::-webkit-media-controls-panel,
.eads-hide-yt-controls-panel,
.eads-hide-yt-controls .ytp-chrome-bottom,
.eads-hide-yt-controls .ytp-chrome-top,
.eads-hide-yt-controls .ytp-gradient-bottom,
.eads-hide-yt-controls .ytp-gradient-top,
.eads-hide-yt-controls .ytp-chrome-controls,
.eads-hide-yt-controls .ytp-chrome-top-buttons,
.eads-hide-yt-controls .ytp-chrome-bottom-buttons,
.eads-hide-yt-controls .ytp-chrome-top,
.eads-hide-yt-controls .ytp-chrome-bottom {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    max-height: 0 !important;
}

/* Estilo customizado para o seletor de velocidade */
#speed-control {
    background: #000;
    color: #fff;
    border: 1.5px solid #e53935;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 15px;
    height: 32px;
    margin-left: 10px;
    outline: none;
    transition: border 0.2s;
}
#speed-control:focus, #speed-control:hover {
    border-color: #ff5252;
    background: #111;
}
#speed-control option {
    background: #111;
    color: #fff;
}