/* Celebrity Recognition Plugin - Fametown Style */

#celebrity-camera-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 25px;
    border: 2px solid #2c3e50;
    border-radius: 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
    color: #e2e8f0;
}

#celebrity-camera-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#celebrity-camera-container > * {
    position: relative;
    z-index: 1;
}

/* Header estilo Fametown */
.camera-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 
        0 8px 32px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.camera-header h3 {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.camera-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    color: #cbd5e1;
}

/* Selección de método de entrada */
.input-method-selection {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
}

.method-option {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    min-width: 220px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.method-option:hover {
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.method-option.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.method-option.drag-over {
    border-color: #fbbf24 !important;
    background: linear-gradient(135deg, #92400e 0%, #b45309 100%) !important;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.5) !important;
    transform: scale(1.02) !important;
}

.method-option.drag-over .method-icon {
    animation: dragBounce 0.6s ease-in-out infinite;
}

@keyframes dragBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.method-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.method-option h4 {
    margin: 0 0 10px 0;
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 600;
}

.method-option p {
    margin: 0 0 20px 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.4;
}

.method-divider {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: 600;
    font-size: 14px;
}

/* Controles estilo Fametown (simplificados para móvil) */
.camera-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.camera-controls button {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 4px 16px rgba(30, 64, 175, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.camera-controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.camera-controls button:hover::before {
    left: 100%;
}

.camera-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(30, 64, 175, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.camera-controls button:active {
    transform: translateY(0px);
}

.camera-controls button:disabled {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: rgba(107, 114, 128, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* Botones específicos estilo Fametown */
.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 
        0 4px 16px rgba(5, 150, 105, 0.3) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
    box-shadow: 
        0 8px 24px rgba(5, 150, 105, 0.4) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.btn-capture {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    box-shadow: 
        0 4px 16px rgba(220, 38, 38, 0.3) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    font-size: 16px !important;
    padding: 16px 32px !important;
}

.btn-capture:hover {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%) !important;
    border-color: rgba(154, 52, 18, 0.3) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
    border-color: rgba(75, 85, 99, 0.3) !important;
}

.btn-analyze {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    box-shadow: 
        0 4px 16px rgba(8, 145, 178, 0.3) !important,
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    font-size: 16px !important;
    padding: 16px 32px !important;
}

.btn-analyze:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #67e8f9 100%) !important;
}

.btn-save {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* Vista previa estilo Fametown */
.camera-preview {
    position: relative;
    text-align: center;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

#camera-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.3s ease;
}

#camera-video.camera-active {
    border: 2px solid #10b981;
    box-shadow: 
        0 0 24px rgba(16, 185, 129, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

#camera-video.switching-camera {
    transform: rotateY(180deg);
    opacity: 0.7;
}

#captured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid #06b6d4;
    box-shadow: 
        0 0 24px rgba(6, 182, 212, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Overlay para detección estilo Fametown */
.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.face-box {
    border: 2px solid #10b981 !important;
    background: rgba(16, 185, 129, 0.15) !important;
    border-radius: 6px;
    animation: pulse-fametown 2s infinite;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

@keyframes pulse-fametown {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
    }
    50% { 
        opacity: 0.7;
        box-shadow: 0 0 24px rgba(16, 185, 129, 0.6);
    }
}

/* Controles de imagen */
.image-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

/* Efecto de flash estilo Fametown */
.camera-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3b82f6, #10b981);
    opacity: 0.6;
    animation: flash-fametown 0.3s ease-out;
    pointer-events: none;
    z-index: 1000;
    border-radius: 12px;
}

@keyframes flash-fametown {
    0% { opacity: 0; }
    50% { opacity: 0.6; }
    100% { opacity: 0; }
}

/* Loading estilo Fametown */
#loading {
    text-align: center;
    padding: 30px;
    background: rgba(15, 52, 96, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.loading-content {
    max-width: 300px;
    margin: 0 auto;
}

.spinner-advanced {
    width: 60px;
    height: 60px;
    margin: 20px auto;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin-fametown 1s linear infinite;
    position: relative;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.spinner-advanced::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid transparent;
    border-top: 2px solid #10b981;
    border-radius: 50%;
    animation: spin-fametown 1.5s linear infinite reverse;
}

@keyframes spin-fametown {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: #cbd5e1;
    margin: 15px 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Barra de progreso estilo Fametown */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(30, 64, 175, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

/* Resultados estilo Fametown */
#results {
    margin-top: 25px;
}

.results-container {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #06b6d4;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    color: #e2e8f0;
}

.results-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
}

.results-container h3 {
    color: #67e8f9;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.result-section {
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 16px;
}

.result-section strong {
    color: #f1f5f9;
}

.result-section em {
    color: #94a3b8;
    font-style: italic;
}

/* Niveles de confianza estilo Fametown */
.high-confidence {
    color: #34d399;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.medium-confidence {
    color: #fbbf24;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.low-confidence {
    color: #f87171;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
}

/* Información de imagen estilo Fametown */
.image-info {
    background: rgba(30, 64, 175, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    margin: 15px 0;
    backdrop-filter: blur(8px);
}

.image-info p {
    margin: 5px 0;
    color: #cbd5e1;
}

/* Detalles técnicos estilo Fametown */
.advanced-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
}

.toggle-details {
    background: rgba(30, 64, 175, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #cbd5e1;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.toggle-details:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
    color: #f1f5f9;
}

.technical-details {
    margin-top: 15px;
    padding: 20px;
    background: rgba(15, 52, 96, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(8px);
}

.face-analysis {
    background: rgba(30, 64, 175, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border-left: 3px solid #06b6d4;
    color: #e2e8f0;
}

.labels-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.label-tag {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.safe-search {
    color: #34d399;
    font-weight: 600;
    padding: 8px;
    background: rgba(5, 150, 105, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

/* Acciones de resultado */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
}

.result-actions button {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border: 1px solid rgba(75, 85, 99, 0.3);
    color: #e2e8f0;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.result-actions button:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.analyze-another {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: white !important;
    font-weight: 600 !important;
}

.analyze-another:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4) !important;
}

/* Estilos para tarjetas de celebridades externas */
.external-celebrity-card {
    background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 18px;
    margin: 12px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.external-celebrity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
}

.external-celebrity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.external-celebrity-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.external-celebrity-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.external-celebrity-details {
    flex: 1;
}

.external-celebrity-details h4 {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 600;
    color: #fbbf24;
    line-height: 1.3;
}

.external-celebrity-details .celebrity-confidence {
    margin: 5px 0;
    font-size: 14px;
}

.external-celebrity-details .celebrity-source {
    margin: 8px 0;
    font-size: 13px;
    color: #d97706;
    font-style: italic;
}

.celebrity-actions {
    margin-top: 12px;
}

.celebrity-actions button {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.celebrity-actions button:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.6);
    color: #f59e0b;
    transform: translateX(2px);
}

/* Responsivo para tarjetas de celebridades externas en móvil */
@media (max-width: 768px) {
    .external-celebrity-card {
        padding: 15px;
        margin: 10px 0;
    }
    
    .external-celebrity-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .external-celebrity-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .external-celebrity-details h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .celebrity-actions button {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
}

/* Mensajes de error estilo Fametown */
.error-container {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    margin: 15px 0;
    box-shadow: 
        0 4px 16px rgba(127, 29, 29, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.warning-container {
    background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fed7aa;
    border-left-color: #fbbf24;
    box-shadow: 
        0 4px 16px rgba(146, 64, 14, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.error-suggestions {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

.error-suggestions h4 {
    margin-top: 0;
    color: #f1f5f9;
}

.error-suggestions ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.error-suggestions li {
    margin-bottom: 5px;
    color: #cbd5e1;
}

.retry-button {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.retry-button:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #67e8f9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

/* Notificaciones estilo Fametown */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    max-width: 350px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    backdrop-filter: blur(12px);
}

.notification.success {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

.notification.error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
}

.notification.info {
    border-left: 4px solid #06b6d4;
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Información del plugin estilo Fametown */
.plugin-info {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background: rgba(30, 64, 175, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.plugin-info small {
    color: #94a3b8;
    font-size: 12px;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    #celebrity-camera-container {
        margin: 5px;
        padding: 15px;
        border-radius: 10px;
        min-height: 100vh;
        box-sizing: border-box;
    }
    
    .camera-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .camera-header h3 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .camera-header p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Opciones de método en móvil */
    .input-method-selection {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .method-option {
        min-width: auto;
        width: 100%;
        max-width: 280px;
        padding: 20px 15px;
    }
    
    .method-divider {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .method-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .method-option h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .method-option p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    /* Controles de cámara simplificados */
    .camera-controls {
        justify-content: center;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .camera-controls button {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 44px;
        min-width: 80px;
        flex: 1;
        max-width: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    .camera-controls button .icon {
        font-size: 18px;
        margin: 0;
    }
    
    .camera-controls button .btn-text {
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
    }
    
    .image-controls button {
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 12px;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .btn-capture, .btn-analyze {
        font-size: 18px !important;
        padding: 16px 24px !important;
        min-height: 60px !important;
        font-weight: 700 !important;
    }
    
    .image-controls {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .camera-preview {
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    #camera-video, #captured-image {
        max-height: 50vh;
        object-fit: cover;
        border-radius: 15px;
        width: 100%;
    }
    
    .results-container {
        padding: 20px 15px;
        margin-top: 20px;
        border-radius: 15px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .result-actions button {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        border-radius: 10px;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        border-radius: 12px;
    }
    
    /* Mejoras específicas para touch */
    .camera-controls button:active,
    .image-controls button:active {
        transform: scale(0.98);
    }
    
    /* Mejor espaciado para dedos */
    .toggle-details {
        padding: 15px 25px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .technical-details {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    /* Loading más visible en móvil */
    #loading {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .spinner-advanced {
        width: 70px;
        height: 70px;
        margin: 25px auto;
        border-width: 5px;
    }
    
    .loading-text {
        font-size: 18px;
        margin: 20px 0;
        text-align: center;
    }
    
    /* Mejores estilos para error en móvil */
    .error-container {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .error-suggestions ul {
        padding-left: 25px;
    }
    
    .error-suggestions li {
        margin-bottom: 8px;
        line-height: 1.5;
    }
}

/* Interfaz específica para móviles */
.mobile-interface #celebrity-camera-container {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    padding: 15px;
    position: relative;
}

.mobile-interface .camera-preview {
    margin-bottom: 20px;
    position: relative;
}

.mobile-interface #camera-video,
.mobile-interface #captured-image {
    max-height: 60vh;
    object-fit: contain;
}

/* Instrucciones táctiles para móviles */
.mobile-touch-instructions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 10;
    animation: fadeInOut 3s ease-in-out;
    pointer-events: none;
    text-align: center;
    backdrop-filter: blur(8px);
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* Indicadores visuales para gestos */
.gesture-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid rgba(16, 185, 129, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    animation: pulseGesture 1s ease-out;
}

@keyframes pulseGesture {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Mejoras para pantalla completa */
video:fullscreen {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
}

video:-webkit-full-screen {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
}

/* Botón flotante para instrucciones */
.mobile-help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
}

.mobile-help-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.6);
}

.mobile-help-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    padding: 25px;
    z-index: 10001;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    color: #e2e8f0;
    backdrop-filter: blur(12px);
}

.mobile-help-popup h4 {
    margin-top: 0;
    color: #67e8f9;
    text-align: center;
    font-size: 18px;
}

.mobile-help-popup ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.mobile-help-popup li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 14px;
    line-height: 1.4;
}

.mobile-help-popup li:last-child {
    border-bottom: none;
}

.mobile-help-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(4px);
}

/* Animaciones estilo Fametown */
@keyframes bounceInFametown {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.results-container {
    animation: bounceInFametown 0.6s ease;
}

/* Estados de captura */
.capturing {
    animation: captureFlashFametown 0.5s ease;
}

@keyframes captureFlashFametown {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 
            0 16px 40px rgba(16, 185, 129, 0.4),
            0 0 32px rgba(59, 130, 246, 0.3);
    }
}

/* Efectos de hover mejorados */
#captured-image:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 32px rgba(6, 182, 212, 0.5),
        0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Mejoras para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para teclado estilo Fametown */
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

/* Efectos de partículas estilo Fametown */
.success-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #10b981, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: successPulseFametown 0.6s ease-out;
    pointer-events: none;
    z-index: 1000;
}

@keyframes successPulseFametown {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Iconos mejorados */
.icon {
    font-size: 1.2em;
    margin-right: 6px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Estilos para tarjetas de personajes */
.character-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Destacar el primer resultado (mejor coincidencia) */
.character-card.primary-match {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border: 2px solid #3b82f6;
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: primaryPulse 2s ease-in-out infinite;
}

@keyframes primaryPulse {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(59, 130, 246, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(59, 130, 246, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.primary-badge {
    position: absolute;
    top: -5px;
    right: 15px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a1a;
    padding: 5px 12px;
    border-radius: 0 0 8px 8px;
    font-size: 11px;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    animation: badgeBounce 1s ease-out;
}

@keyframes badgeBounce {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    50% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.character-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.character-image {
    flex-shrink: 0;
    width: 80px;
    height: 116px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.character-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.character-card:hover .character-thumbnail {
    transform: scale(1.1);
}

.character-details {
    flex: 1;
}

.character-details h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.character-details h4 a {
    color: #67e8f9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.character-details h4 a:hover {
    color: #0ea5e9;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.character-confidence {
    margin: 5px 0;
    font-size: 14px;
}

.character-excerpt {
    margin: 8px 0;
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.4;
}

.character-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #06b6d4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.character-link:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateX(3px);
    color: #0ea5e9;
}

/* Estilos especiales para el primer personaje encontrado */
.primary-match .character-image {
    border-color: #fbbf24;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
}

.primary-match .character-details h4 a {
    color: #fde047;
}

.primary-match .character-details h4 a:hover {
    color: #facc15;
    text-shadow: 0 0 12px rgba(253, 224, 71, 0.6);
}

.primary-match .character-link {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.primary-match .character-link:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.6);
    color: #f59e0b;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Responsivo para tarjetas de personajes en móvil */
@media (max-width: 768px) {
    .character-card {
        padding: 15px;
        margin: 12px 0;
        border-radius: 10px;
    }
    
    .character-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .character-image {
        width: 100px;
        height: 100px;
    }
    
    .character-details h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .character-link {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 15px;
    }
    
    .primary-badge {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
        border-radius: 8px;
    }
}

/* Indicador de carga para búsqueda de personajes */
.searching-characters {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    margin: 15px 0;
    color: #cbd5e1;
}

.searching-characters .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mensaje cuando no hay personajes encontrados */
.no-characters-found {
    padding: 20px;
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    color: #94a3b8;
}

/* Transiciones suaves globales estilo Fametown */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button, .notification, .results-container, .character-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar personalizado estilo Fametown */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 64, 175, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #059669);
}

/* Detalles técnicos */
.technical-details-container {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.technical-details-toggle {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.technical-details-toggle:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
}

.technical-details-content {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    font-size: 14px;
    line-height: 1.6;
}

.technical-details-content h4 {
    color: #495057;
    margin: 15px 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.technical-details-content h4:first-child {
    margin-top: 0;
}

/* Detalles técnicos visibles directamente */
.technical-details-visible {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    font-size: 14px;
    line-height: 1.6;
}

.technical-details-visible h4 {
    color: #495057;
    margin: 15px 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.technical-details-visible h4:first-child {
    margin-top: 0;
}