/* NewsVerify Pro - Frontend Styles */

/* Container principal */
.newsverify-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    box-sizing: border-box;
}

/* Header */
.newsverify-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.newsverify-icon {
    margin-right: 12px;
    color: #3b82f6;
}

.newsverify-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

/* Selector de tipo */
.newsverify-type-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.newsverify-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.newsverify-radio-label input[type="radio"] {
    margin-right: 8px;
    accent-color: #3b82f6;
}

.newsverify-radio-label:hover {
    color: #3b82f6;
}

/* Formulario */
.newsverify-form {
    margin-bottom: 20px;
}

.newsverify-input-group {
    position: relative;
    margin-bottom: 16px;
}

.newsverify-content {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.newsverify-content:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsverify-char-counter {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.newsverify-char-counter .current {
    font-weight: 500;
}

/* Botón de envío */
.newsverify-submit-btn {
    width: 100%;
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsverify-submit-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.newsverify-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.newsverify-submit-btn .btn-spinner svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Área de resultados */
.newsverify-results {
    border-top: 1px solid #f3f4f6;
    padding-top: 20px;
    margin-top: 20px;
}

.newsverify-results.show {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* OCULTAR COMPLETAMENTE LAS ÁREAS DE RESULTADOS HASTA QUE SE MUESTREN */
.newsverify-results,
.newsverify-auto-results {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.newsverify-results.show,
.newsverify-auto-results.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

/* Asegurar que los elementos internos estén ocultos solo cuando el contenedor no tenga .show */
.newsverify-results:not(.show) .confidence-meter,
.newsverify-results:not(.show) .result-sources,
.newsverify-auto-results:not(.show) .confidence-meter,
.newsverify-auto-results:not(.show) .result-sources {
    display: none !important;
}

.newsverify-results.show .confidence-meter,
.newsverify-results.show .result-sources,
.newsverify-auto-results.show .confidence-meter,
.newsverify-auto-results.show .result-sources {
    display: block !important;
}

/* Asegurar que los valores por defecto no aparezcan */
.confidence-value:empty::before {
    content: '';
}

.sources-count:empty::before {
    content: '';
}

/* REGLA SÚPER ESPECÍFICA PARA EVITAR QUE APAREZCAN ÁREAS VACÍAS */
body .newsverify-container .newsverify-results:not(.show),
body .newsverify-container .newsverify-auto-results:not(.show),
body .newsverify-auto-button-container .newsverify-auto-results:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Asegurar que cuando se muestre, sí sea visible */
body .newsverify-container .newsverify-results.show,
body .newsverify-container .newsverify-auto-results.show,
body .newsverify-auto-button-container .newsverify-auto-results.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Reglas agresivas simplificadas - solo lo necesario */
html body [id*="newsverify"] .newsverify-results:not(.show),
html body [id*="newsverify"] .newsverify-auto-results:not(.show),
html body [class*="newsverify"] .newsverify-results:not(.show),
html body [class*="newsverify"] .newsverify-auto-results:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.newsverify-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 32px;
}

.result-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    flex-shrink: 0;
    vertical-align: middle;
    position: relative;
}

.status-icon.real {
    background: #10b981;
    color: white;
}

.status-icon.fake {
    background: #ef4444;
    color: white;
}

.status-icon.misleading {
    background: #f59e0b;
    color: white;
}

.status-icon.unverified {
    background: #6b7280;
    color: white;
}

.status-text {
    font-weight: 600;
    font-size: 16px;
    color: inherit;
    opacity: 1;
    visibility: visible;
    display: block;
}

.status-text.real { color: #10b981; }
.status-text.fake { color: #ef4444; }
.status-text.misleading { color: #f59e0b; }
.status-text.unverified { color: #6b7280; }

/* Medidor de confianza - FORZAR LAYOUT HORIZONTAL */
.confidence-meter {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    font-size: 14px !important;
    width: 100% !important;
    margin-top: 8px !important;
    min-height: 24px !important;
    box-sizing: border-box !important;
}

/* REGLAS SÚPER ESPECÍFICAS PARA FORZAR DISPOSICIÓN HORIZONTAL */
html body .newsverify-container .newsverify-results .confidence-meter,
html body .newsverify-auto-button-container .newsverify-auto-results .confidence-meter,
html body .newsverify-results .confidence-meter,
html body .newsverify-auto-results .confidence-meter,
.newsverify-container .confidence-meter,
.newsverify-results .confidence-meter,
.newsverify-auto-results .confidence-meter {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.confidence-label {
    font-weight: 500 !important;
    color: #6b7280 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.confidence-bar {
    width: 100px !important;
    height: 10px !important;
    background: #f3f4f6 !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.confidence-fill {
    height: 100% !important;
    background: linear-gradient(to right, #ef4444, #f59e0b, #10b981) !important;
    border-radius: 5px !important;
    transition: width 0.5s ease !important;
    width: 0% !important;
    display: block !important;
}

.confidence-value {
    font-weight: 600 !important;
    color: #1f2937 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-width: 35px !important;
    text-align: right !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* Contenido de resultados */
.newsverify-result-content {
    line-height: 1.6;
}

.result-summary {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid #3b82f6;
    font-size: 14px;
    color: #374151;
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid #3b82f6;
    font-size: 14px;
    color: #374151;
}

.result-details {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Fuentes - Slider Horizontal */
.result-sources h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sources-count {
    background: #3b82f6;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.sources-list {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.sources-slider {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    padding: 8px 0 12px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
    white-space: nowrap !important;
}

.sources-slider::-webkit-scrollbar {
    height: 6px;
}

.sources-slider::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.sources-slider::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.sources-slider::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.source-item {
    flex: 0 0 auto !important;
    min-width: 220px !important;
    max-width: 300px !important;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 12px;
    margin-bottom: 8px;
    display: inline-block !important;
    vertical-align: top !important;
    white-space: normal !important;
}

.source-item:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.source-link {
    display: block;
    width: 100%;
    height: auto;
    color: #3b82f6;
    text-decoration: none;
}

.source-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.source-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.source-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    background: white;
    padding: 2px;
}

.source-content {
    flex: 1;
    min-width: 0;
}

.source-title {
    font-weight: 500;
    font-size: 13px;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.source-domain {
    font-size: 11px;
    color: #6b7280;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.source-domain::before {
    content: "🔗";
    font-size: 10px;
}

/* Navegación del slider */
.sources-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.sources-nav-btn {
    background: #e5e7eb;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #4b5563;
    transition: all 0.2s ease;
}

.sources-nav-btn:hover:not(:disabled) {
    background: #d1d5db;
    color: #1f2937;
}

.sources-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sources-indicator {
    font-size: 11px;
    color: #6b7280;
    padding: 0 8px;
}

.no-sources {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
    background: rgba(107, 114, 128, 0.05);
    border: 1px solid rgba(107, 114, 128, 0.1);
    border-radius: 8px;
    font-size: 14px;
}

/* Mensajes de error */
.newsverify-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    margin-top: 16px;
}

.error-icon {
    color: #dc2626;
    flex-shrink: 0;
}

.error-message {
    font-size: 14px;
    font-weight: 500;
}

/* Temas */

/* Tema oscuro */
.newsverify-theme-dark {
    background: #1f2937;
    color: #f9fafb;
    border-color: #374151;
}

.newsverify-theme-dark .newsverify-header {
    border-color: #374151;
}

.newsverify-theme-dark .newsverify-title {
    color: #f9fafb;
}

.newsverify-theme-dark .newsverify-content {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.newsverify-theme-dark .newsverify-content:focus {
    border-color: #60a5fa;
}

.newsverify-theme-dark .result-summary {
    background: #374151;
    color: #d1d5db;
    border-color: #60a5fa;
}

.newsverify-theme-dark .sources-count {
    background: #60a5fa;
    color: #1f2937;
}

.newsverify-theme-dark .sources-slider::-webkit-scrollbar-track {
    background: #374151;
}

.newsverify-theme-dark .sources-slider::-webkit-scrollbar-thumb {
    background: #6b7280;
}

.newsverify-theme-dark .sources-slider::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.newsverify-theme-dark .source-item {
    background: #374151;
    border-color: #4b5563;
}

.newsverify-theme-dark .source-item:hover {
    background: #4b5563;
    border-color: #60a5fa;
}

.newsverify-theme-dark .source-title {
    color: #f9fafb;
}

.newsverify-theme-dark .source-domain {
    color: #9ca3af;
}

.newsverify-theme-dark .sources-nav-btn {
    background: #4b5563;
    color: #d1d5db;
}

.newsverify-theme-dark .sources-nav-btn:hover:not(:disabled) {
    background: #6b7280;
    color: #f9fafb;
}

.newsverify-theme-dark .sources-indicator {
    color: #9ca3af;
}

.newsverify-theme-dark .no-sources {
    background: rgba(156, 163, 175, 0.05);
    border-color: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

.newsverify-theme-dark .newsverify-results {
    border-color: #374151;
}

/* Responsive */
@media (max-width: 640px) {
    .newsverify-container {
        margin: 10px;
        padding: 16px;
        border-radius: 8px;
    }
    
    .newsverify-result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .confidence-meter {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }
    
    .confidence-bar {
        flex: 1;
        max-width: 120px;
    }
    
    /* Slider responsivo */
    .source-item {
        min-width: 180px;
        max-width: 250px;
    }
    
    .source-title {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }
    
    .source-domain {
        font-size: 10px;
    }
    
    .sources-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .sources-indicator {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .source-item {
        min-width: 160px;
        max-width: 200px;
    }
    
    .sources-slider {
        gap: 8px;
    }
}

/* Animaciones */
.newsverify-results {
    animation: slideIn 0.3s ease-out;
}

.newsverify-error {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de carga */
.newsverify-container.loading .newsverify-content {
    opacity: 0.6;
    pointer-events: none;
}

.newsverify-container.loading .newsverify-submit-btn {
    pointer-events: none;
}

/* Accesibilidad */
.newsverify-container:focus-within {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Botón automático en posts */
.newsverify-auto-button-container {
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-left: none;
    display: block;
    visibility: visible;
    opacity: 1;
}

.newsverify-auto-style-minimal {
    background: transparent;
    border: none;
    border-left: none;
    box-shadow: none;
}

.newsverify-auto-style-prominent {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.newsverify-auto-verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #3b82f6;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: none;
    text-shadow: none;
}

.newsverify-auto-verify-btn:hover:not(:disabled) {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.newsverify-auto-verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsverify-auto-style-minimal .newsverify-auto-verify-btn {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    backdrop-filter: none;
    text-shadow: none;
}

.newsverify-auto-style-minimal .newsverify-auto-verify-btn:hover:not(:disabled) {
    background: #2563eb;
    border-color: #2563eb;
}

.newsverify-auto-verify-btn .btn-icon {
    font-size: 16px;
}

.newsverify-auto-verify-btn .btn-spinner {
    display: flex;
    align-items: center;
    gap: 6px;
}

.newsverify-auto-verify-btn .btn-spinner svg {
    animation: spin 1s linear infinite;
}

.newsverify-auto-results {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    backdrop-filter: none;
    border: 1px solid #e2e8f0;
}

.newsverify-auto-results.show {
    display: block;
    visibility: visible;
    opacity: 1;
}

.newsverify-auto-style-minimal .newsverify-auto-results {
    background: #f8fafc;
    border-color: #e2e8f0;
    backdrop-filter: none;
}

.newsverify-auto-error {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsverify-auto-error .error-icon {
    font-size: 16px;
}

/* Responsive para botón automático */
@media (max-width: 640px) {
    .newsverify-auto-button-container {
        margin: 15px 0;
        padding: 12px;
        border-radius: 8px;
    }
    
    .newsverify-auto-verify-btn {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    
    .newsverify-auto-results {
        padding: 12px;
    }
}

/* Aviso de noticia reciente */
.newsverify-recent-notice {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.newsverify-recent-notice i {
    color: #2196f3;
    margin-top: 2px;
    flex-shrink: 0;
}

.newsverify-recent-notice strong {
    color: #1976d2;
}

/* Tema oscuro para aviso de noticia reciente */
.newsverify-theme-dark .newsverify-recent-notice {
    background: #1a237e;
    border-left-color: #3f51b5;
    color: #e8eaf6;
}

.newsverify-theme-dark .newsverify-recent-notice i {
    color: #7986cb;
}

.newsverify-theme-dark .newsverify-recent-notice strong {
    color: #9fa8da;
}

/* Responsive para aviso de noticia reciente */
@media (max-width: 640px) {
    .newsverify-recent-notice {
        padding: 10px;
        font-size: 13px;
        margin-bottom: 12px;
    }
}

/* Print styles */
@media print {
    .newsverify-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .newsverify-submit-btn,
    .newsverify-auto-button-container,
    .newsverify-recent-notice {
        display: none;
    }
}

/* Mejorar visibilidad en dispositivos móviles */
@media screen and (max-width: 768px) {
    .newsverify-container {
        margin: 10px !important;
        padding: 16px !important;
        border-radius: 8px !important;
    }
    
    .newsverify-result-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .confidence-meter {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 8px !important;
    }
    
    .source-item {
        padding: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .source-title {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    .source-domain {
        font-size: 12px !important;
        margin-top: 4px !important;
    }
}

/* Específico para modo incógnito - algunos navegadores ocultan elementos */
@media screen {
    .newsverify-container,
    .newsverify-auto-button-container,
    .newsverify-results,
    .newsverify-auto-results {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Asegurar que jQuery no interfiera con estilos */
.newsverify-container[style*="display: none"],
.newsverify-results[style*="display: none"],
.newsverify-auto-results[style*="display: none"] {
    display: block !important;
}

/* Las reglas ::before eliminadas para evitar iconos duplicados - el JS maneja los iconos */

/* Asegurar scroll horizontal en desktop específicamente */
@media (min-width: 641px) {
    .sources-slider {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 16px !important;
        scroll-behavior: smooth !important;
        padding: 8px 0 16px 0 !important;
        scrollbar-width: thin !important;
        scrollbar-color: #cbd5e0 #f7fafc !important;
    }
    
    .source-item {
        flex: 0 0 auto !important;
        min-width: 240px !important;
        max-width: 320px !important;
        width: auto !important;
        display: block !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Scrollbar mejorado para desktop */
    .sources-slider::-webkit-scrollbar {
        height: 10px !important;
    }
    
    .sources-slider::-webkit-scrollbar-track {
        background: #f1f5f9 !important;
        border-radius: 5px !important;
    }
    
    .sources-slider::-webkit-scrollbar-thumb {
        background: #cbd5e0 !important;
        border-radius: 5px !important;
    }
    
    .sources-slider::-webkit-scrollbar-thumb:hover {
        background: #94a3b8 !important;
    }
}

/* DEBUG - Eliminar cualquier CSS que pueda estar causando layout vertical */
.sources-slider > * {
    float: none !important;
    clear: none !important;
    width: auto !important;
}

/* Fuentes - Slider Horizontal */
.result-sources h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FUERZAS SCROLL HORIZONTAL EN DESKTOP - ESPECIFICIDAD MÁXIMA */
.newsverify-container .newsverify-results .result-sources .sources-list .sources-slider,
.newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    scroll-behavior: smooth !important;
    padding: 8px 0 12px 0 !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e0 #f7fafc !important;
    white-space: nowrap !important;
}

.newsverify-container .newsverify-results .result-sources .sources-list .sources-slider .source-item,
.newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider .source-item {
    flex: 0 0 auto !important;
    min-width: 220px !important;
    max-width: 300px !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    padding: 12px !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    display: block !important;
    vertical-align: top !important;
    white-space: normal !important;
}

/* DESKTOP ESPECÍFICO - MÁS ESPECÍFICO AÚN */
@media (min-width: 641px) {
    .newsverify-container .newsverify-results .result-sources .sources-list,
    .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list {
        position: relative !important;
        overflow: hidden !important;
        border-radius: 8px !important;
    }
    
    .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider,
    .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 16px !important;
        scroll-behavior: smooth !important;
        padding: 8px 0 16px 0 !important;
        scrollbar-width: thin !important;
        scrollbar-color: #cbd5e0 #f7fafc !important;
    }
    
    .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider .source-item,
    .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider .source-item {
        flex: 0 0 auto !important;
        min-width: 240px !important;
        max-width: 320px !important;
        width: auto !important;
        display: block !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Scrollbar mejorado para desktop */
    .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider::-webkit-scrollbar,
    .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider::-webkit-scrollbar {
        height: 10px !important;
    }
    
    .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider::-webkit-scrollbar-track,
    .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider::-webkit-scrollbar-track {
        background: #f1f5f9 !important;
        border-radius: 5px !important;
    }
    
    .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider::-webkit-scrollbar-thumb,
    .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider::-webkit-scrollbar-thumb {
        background: #cbd5e0 !important;
        border-radius: 5px !important;
    }
    
    .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider::-webkit-scrollbar-thumb:hover,
    .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider::-webkit-scrollbar-thumb:hover {
        background: #94a3b8 !important;
    }
}

/* DEBUG - Eliminar cualquier CSS que pueda estar causando layout vertical */
.sources-slider > * {
    float: none !important;
    clear: none !important;
    width: auto !important;
}

/* SOLUCIÓN ULTRA-ESPECÍFICA PARA LAYOUT HORIZONTAL - MÁXIMA PRIORIDAD */
@media screen and (min-width: 641px) {
    /* Especificidad máxima usando body como prefijo */
    body .post-content .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider,
    body .entry-content .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider,
    body .content .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider,
    body .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider,
    body .post-content .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider,
    body .entry-content .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider,
    body .content .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider,
    body .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        scroll-behavior: smooth !important;
        scrollbar-width: thin !important;
        scrollbar-color: #cbd5e0 #f7fafc !important;
        gap: 12px !important;
        padding: 8px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    body .post-content .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider .source-item,
    body .entry-content .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider .source-item,
    body .content .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider .source-item,
    body .newsverify-container .newsverify-results .result-sources .sources-list .sources-slider .source-item,
    body .post-content .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider .source-item,
    body .entry-content .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider .source-item,
    body .content .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider .source-item,
    body .newsverify-auto-button-container .newsverify-auto-results .result-sources .sources-list .sources-slider .source-item {
        display: inline-block !important;
        flex: 0 0 auto !important;
        white-space: normal !important;
        vertical-align: top !important;
        margin: 0 !important;
        margin-right: 0 !important;
        min-width: 200px !important;
        max-width: 300px !important;
        width: auto !important;
        float: none !important;
        clear: none !important;
        position: relative !important;
        box-sizing: border-box !important;
    }
}

/* ==================================================== */
/* CSS DE MÁXIMA ESPECIFICIDAD PARA SOBRESCRIBIR TODO */
/* ==================================================== */

/* BOTÓN AUTOMÁTICO - Color turquesa como el usuario quiere */
html body div.newsverify-auto-button-container .newsverify-auto-verify-btn,
html body .post-content div.newsverify-auto-button-container .newsverify-auto-verify-btn,
html body .newsverify-auto-style-minimal .newsverify-auto-verify-btn,
html body .post-content .newsverify-auto-style-minimal .newsverify-auto-verify-btn {
    background: #0891b2 !important;
    border-color: #0891b2 !important;
    color: white !important;
}

html body div.newsverify-auto-button-container .newsverify-auto-verify-btn:hover:not(:disabled),
html body .post-content div.newsverify-auto-button-container .newsverify-auto-verify-btn:hover:not(:disabled),
html body .newsverify-auto-style-minimal .newsverify-auto-verify-btn:hover:not(:disabled),
html body .post-content .newsverify-auto-style-minimal .newsverify-auto-verify-btn:hover:not(:disabled) {
    background: #0e7490 !important;
    border-color: #0e7490 !important;
    color: white !important;
}

/* CENTRADO PERFECTO DEL ÍCONO DE ESTADO */
html body .newsverify-container .newsverify-results .result-status .status-icon,
html body .newsverify-auto-results .result-status .status-icon,
html body div.newsverify-container .status-icon,
html body div.newsverify-auto-results .status-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 10px !important;
    height: 24px !important;
    width: 24px !important;
    text-align: center !important;
}

/* BARRA DE CONFIANZA - Forzar disposición horizontal con máxima especificidad */
html body div.newsverify-container .newsverify-results .confidence-meter,
html body div.newsverify-auto-button-container .newsverify-auto-results .confidence-meter,
html body .post-content div.newsverify-container .newsverify-results .confidence-meter,
html body .post-content div.newsverify-auto-button-container .newsverify-auto-results .confidence-meter {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-top: 8px !important;
    min-height: 24px !important;
}

/* Etiqueta "Confianza:" */
html body div.newsverify-container .confidence-label,
html body div.newsverify-auto-results .confidence-label,
html body .post-content .confidence-label {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    margin-right: 0 !important;
}

/* Barra de progreso */
html body div.newsverify-container .confidence-bar,
html body div.newsverify-auto-results .confidence-bar,
html body .post-content .confidence-bar {
    width: 100px !important;
    height: 10px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    margin: 0 !important;
}

/* Valor del porcentaje */
html body div.newsverify-container .confidence-value,
html body div.newsverify-auto-results .confidence-value,
html body .post-content .confidence-value {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    min-width: 35px !important;
    text-align: left !important;
    margin-left: 0 !important;
}

/* Asegurar que todo permanezca en UNA sola línea horizontal */
html body div.newsverify-container .confidence-meter > *,
html body div.newsverify-auto-results .confidence-meter > *,
html body .post-content .confidence-meter > * {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

/* FORZAR que NO se rompa en múltiples líneas en ningún caso */
html body div.newsverify-container .confidence-meter,
html body div.newsverify-auto-results .confidence-meter {
    flex-wrap: nowrap !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

/* Media queries para mantener horizontal incluso en móviles */
@media (max-width: 768px) {
    html body div.newsverify-container .confidence-meter,
    html body div.newsverify-auto-results .confidence-meter {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        font-size: 13px !important;
    }
    
    html body div.newsverify-container .confidence-bar,
    html body div.newsverify-auto-results .confidence-bar {
        width: 80px !important;
        height: 8px !important;
    }
    
    html body div.newsverify-container .confidence-value,
    html body div.newsverify-auto-results .confidence-value {
        min-width: 30px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    html body div.newsverify-container .confidence-meter,
    html body div.newsverify-auto-results .confidence-meter {
        gap: 4px !important;
        font-size: 12px !important;
    }
    
    html body div.newsverify-container .confidence-bar,
    html body div.newsverify-auto-results .confidence-bar {
        width: 70px !important;
        height: 8px !important;
    }
    
    html body div.newsverify-container .confidence-value,
    html body div.newsverify-auto-results .confidence-value {
        min-width: 25px !important;
        font-size: 12px !important;
    }
} 